From 054544a911daea986342ed2559cc0f863f3afcab Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 23 Oct 2023 11:05:24 +0200 Subject: updated notifications to match mako --- bin/common/ytclipo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/common/ytclipo b/bin/common/ytclipo index 712b068..5d86c3f 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -15,7 +15,7 @@ inp="$1" # works when link is from yt-local inp="https://youtu.be/$(echo "$inp" | sed 's/.*\(.\{11\}\)$/\1/')" >&2 printf "inp: %s\n" "$inp" -notify-send "ytclipo" "downloading $inp" || : +notify-send "ytclipo" "downloading $inp" || : yt-dlp "$inp" \ --restrict-filenames \ @@ -24,4 +24,4 @@ yt-dlp "$inp" \ -S "res:1080" \ -P "$HOME/vids/youtube/" \ -o "%(channel)s - %(title)s.%(ext)s" -notify-send "ytclipo" "ytclipo
finished downloading." || : +notify-send "ytclipo" "finished downloading." || : -- cgit v1.2.3 From ffba2961d1eb398aa906b8218ed3cc1e9586e45e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 23 Oct 2023 11:05:54 +0200 Subject: added gw alias --- config/essentials/zsh/aliases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index db5bd4f..1ed793c 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -186,6 +186,7 @@ alias cdzot='mkdir -p /tmp/zottesite && cd /tmp/zottesite' alias gdate='date +%y_%m_%d-%T' alias tpid='tail -f /dev/null --pid' alias pwdcp='pwd | clipp' +alias gw="grep -ri" alias vbm='vboxmanage' alias vbls='vbm list vms' -- cgit v1.2.3 From e8ca2914556f5256badc186444a278a7dee48b22 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 23 Oct 2023 11:10:48 +0200 Subject: use case statement to select desktop manager --- config/essentials/zsh/.zshrc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 7fa61c7..3f2d7f4 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -1,15 +1,14 @@ #!/bin/zsh -if [[ "/dev/tty1" = "$TTY" || "/dev/tty2" = "$TTY" ]] && [[ "$(id -u)" -ne 0 ]] +if [ "$(id -u)" -ne 0 ] then - clear - if [ "/dev/tty1" = "$TTY" ] - then - exec startw > /dev/null 2>&1 - else - exec startx > /dev/null 2>&1 - fi - exit + [ "${TTY%%tty*}" = '/dev/' ] && clear + case "${TTY#/dev/tty}" in + 1) exec startdwl > /dev/null 2>&1 ;; + 2) exec startx > /dev/null 2>&1 ;; + 3) exec startw > /dev/null 2>&1 ;; + *) false ;; + esac && exit fi autoload -U select-word-style -- cgit v1.2.3