diff options
Diffstat (limited to '.local/bin/statusbar')
-rwxr-xr-x | .local/bin/statusbar/sb-clock | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-doppler | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-forecast | 6 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-internet | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-mailbox | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-memory | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-microphone | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-nettraf | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-volume | 4 |
9 files changed, 17 insertions, 17 deletions
diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index 3e7dd23..b2ed96a 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -20,10 +20,10 @@ esac case $1 in 1) notify-send "This Month" "$(cal | sed "s/\<$(date +'%e'|tr -d ' ')\>/<b><span color='red'>&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;; - 2) hyprctl dispatch exec "kitty -e calcurse" ;; + 2) hyprctl dispatch exec "$TERMINAL -e calcurse" ;; 3) notify-send "π
Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\` - Middle click opens calcurse if installed" ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac date "+%Y %b %d (%a) $icon %H:%M" diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler index a29203a..e6062a3 100755 --- a/.local/bin/statusbar/sb-doppler +++ b/.local/bin/statusbar/sb-doppler @@ -16,7 +16,7 @@ case $1 in 3) notify-send "πΊοΈ Doppler RADAR module" "\- Left click for local Doppler RADAR. - Middle click to update RADAR location. After $secs seconds, new clicks will also automatically update the doppler RADAR." ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac echo π
diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index c912d75..4167dc6 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -38,11 +38,11 @@ showweather() { } openterm() { - hyprctl dispatch exec "[float; size 1800 1300;]" 'kitty -e sh -c "curl wttr.in/Moscow; read _"' + hyprctl dispatch exec "[float; size 1800 1300;]" '$TERMINAL -e sh -c "curl wttr.in/Moscow; read _"' } case $1 in - 1) hyprctl dispatch exec "[float; size 1700 1100;]" "kitty -e less -Sfr \"$weatherreport\"" + 1) hyprctl dispatch exec "[float; size 1700 1100;]" "$TERMINAL -e less -Sfr \"$weatherreport\"" ;; 2) getforecast && showweather ;; 3) notify-send "π Weather module" "\- Left click for full forecast. @@ -50,7 +50,7 @@ case $1 in β: Chance of rain/snow π₯Ά: Daily low π: Daily high" ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac checkforecast || getforecast diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index 7ba5a0e..0e21c3b 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -24,7 +24,7 @@ case $1 in π: ethernet working π: vpn is active " ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac # Wifi diff --git a/.local/bin/statusbar/sb-mailbox b/.local/bin/statusbar/sb-mailbox index 0fe9556..b03724f 100755 --- a/.local/bin/statusbar/sb-mailbox +++ b/.local/bin/statusbar/sb-mailbox @@ -4,13 +4,13 @@ # When clicked, brings up `neomutt`. case $1 in - 1) hyprctl dispatch exec 'kitty -e neomutt'; pkill -RTMIN+12 waybar ;; + 1) hyprctl dispatch exec '$TERMINAL -e neomutt'; pkill -RTMIN+12 waybar ;; 2) setsid -f mailsync >/dev/null ;; 3) notify-send "π¬ Mail module" "\- Shows unread mail - Shows π if syncing mail - Left click opens neomutt - Middle click syncs mail" ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory index 45e2701..c39488f 100755 --- a/.local/bin/statusbar/sb-memory +++ b/.local/bin/statusbar/sb-memory @@ -2,11 +2,11 @@ case $1 in 1) notify-send "π§ Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;; - 2) hyprctl dispatch exec 'kitty -e sh -c "btop"' ;; + 2) hyprctl dispatch exec '$TERMINAL -e sh -c "btop"' ;; 3) notify-send "π§ Memory module" "\- Shows Memory Used/Total. - Click to show memory hogs. - Middle click to open btop." ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac free --mebi | sed -n '2{p;q}' | awk '{printf ("π§ %2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}' diff --git a/.local/bin/statusbar/sb-microphone b/.local/bin/statusbar/sb-microphone index 3b83060..610eb21 100755 --- a/.local/bin/statusbar/sb-microphone +++ b/.local/bin/statusbar/sb-microphone @@ -3,11 +3,11 @@ # Prints the current microphone volume or ο± if muted. case $1 in - 1) hyprctl dispatch exec "kitty -e pulsemixer" ;; + 1) hyprctl dispatch exec "$TERMINAL -e pulsemixer" ;; 3) notify-send "π€ Microphone volume module" "\- Shows volume ποΈ, ο± if muted. - Middle click to mute. - Scroll to change." ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac vol="$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)" diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf index 8f2ee77..0f4201b 100755 --- a/.local/bin/statusbar/sb-nettraf +++ b/.local/bin/statusbar/sb-nettraf @@ -5,10 +5,10 @@ # second, gives network traffic per second. case $1 in - 1) hyprctl dispatch exec "kitty -e bmon" ;; + 1) hyprctl dispatch exec "$TERMINAL -e bmon" ;; 3) notify-send "π Network traffic module" "π»: Traffic received πΊ: Traffic transmitted" ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac update() { diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 702742c..3b77433 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -3,11 +3,11 @@ # Prints the current volume or π if muted. case $1 in - 1) hyprctl dispatch exec "kitty -e pulsemixer" ;; + 1) hyprctl dispatch exec "$TERMINAL -e pulsemixer" ;; 3) notify-send "π’ Volume module" "\- Shows volume π, π if muted. - Middle click to mute. - Scroll to change." ;; - 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; + 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; esac vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" |