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 | 10 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-memory | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-microphone | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-nettraf | 22 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-volume | 2 |
7 files changed, 23 insertions, 23 deletions
diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index 56d15d3..2229164 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -21,8 +21,8 @@ esac case $BLOCK_BUTTON 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) setsid -f "$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" ;; + 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" ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler index f673fb3..75092f3 100755 --- a/.local/bin/statusbar/sb-doppler +++ b/.local/bin/statusbar/sb-doppler @@ -7,7 +7,7 @@ doppler="${XDG_CACHE_HOME:-$HOME/.cache}/doppler.gif" getdoppler() { curl -sL https://meteoinfo.ru/hmc-output/rmap/phenomena.gif > "$doppler" ;} -showdoppler() { setsid -f mpv "$doppler" > /dev/null ;} +showdoppler() { setsid -f mpv --no-osc --loop=inf --no-terminal "$doppler" ;} case $BLOCK_BUTTON in 1) [ $(($(date '+%s') - $(stat -c %Y "$doppler"))) -gt "$secs" ] && getdoppler diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index d0e5326..f7df265 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -34,17 +34,17 @@ readfile() { weatherdata="$(cat "$weatherreport")" ;} showweather() { readfile - printf "rain: %s min: %sĀ° max: %sĀ°\n" "$(getprecipchance)" $(getdailyhighlow) + printf "ļ© %s ļ %sĀ° ļ
%sĀ°\n" "$(getprecipchance)" $(getdailyhighlow) } case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e less -Sfr "$weatherreport" ;; 2) getforecast && showweather ;; - 3) notify-send "š Weather module" "\- Left click for full forecast. + 3) notify-send " ļ Weather module" "\- Left click for full forecast. - Middle click to update forecast. -ā: Chance of rain/snow -š„¶: Daily low -š: Daily high" ;; + ļ© : Chance of rain/snow + ļ : Daily low + ļ
: Daily high" ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory index d95d85c..fffee63 100755 --- a/.local/bin/statusbar/sb-memory +++ b/.local/bin/statusbar/sb-memory @@ -1,9 +1,9 @@ #!/bin/sh case $BLOCK_BUTTON in - 1) notify-send "š§ Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;; + 1) notify-send " ļø Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;; 2) setsid -f "$TERMINAL" -e btop ;; - 3) notify-send "š§ Memory module" "\- Shows Memory Used/Total. + 3) notify-send " ļø Memory module" "\- Shows Memory Used/Total. - Click to show memory hogs. - Middle click to open htop." ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/statusbar/sb-microphone b/.local/bin/statusbar/sb-microphone index 45754c2..397d04b 100755 --- a/.local/bin/statusbar/sb-microphone +++ b/.local/bin/statusbar/sb-microphone @@ -7,7 +7,7 @@ case $BLOCK_BUTTON in 2) wpctl set-mute @DEFAULT_SOURCE@ toggle ;; 4) wpctl set-volume @DEFAULT_SOURCE@ 1%+ ;; 5) wpctl set-volume @DEFAULT_SOURCE@ 1%- ;; - 3) notify-send "ļ° Microphone volume module" "\- Shows volume ļ°, ļ± if muted. + 3) notify-send " ļ° Microphone volume module" "\- Shows volume ļ°, ļ± if muted. - Middle click to mute. - Scroll to change." ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf index 2f223d6..ce001b0 100755 --- a/.local/bin/statusbar/sb-nettraf +++ b/.local/bin/statusbar/sb-nettraf @@ -6,21 +6,21 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e bmon ;; - 3) notify-send "š Network traffic module" "š»: Traffic received -šŗ: Traffic transmitted" ;; + 3) notify-send " ļ¬ Network traffic module" " ļ£ : Traffic received + ļ¢ : Traffic transmitted" ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac update() { - sum=0 - for arg; do - read -r i < "$arg" - sum=$(( sum + i )) - done - cache=/tmp/${1##*/} - [ -f "$cache" ] && read -r old < "$cache" || old=0 - printf %d\\n "$sum" > "$cache" - printf %d\\n $(( sum - old )) + sum=0 + for arg; do + read -r i < "$arg" + sum=$(( sum + i )) + done + cache=/tmp/${1##*/} + [ -f "$cache" ] && read -r old < "$cache" || old=0 + printf %d\\n "$sum" > "$cache" + printf %d\\n $(( sum - old )) } rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes) diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 2676ead..a7253f1 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -7,7 +7,7 @@ case $BLOCK_BUTTON in 2) wpctl set-mute @DEFAULT_SINK@ toggle ;; 4) wpctl set-volume @DEFAULT_SINK@ 1%+ ;; 5) wpctl set-volume @DEFAULT_SINK@ 1%- ;; - 3) notify-send "š¢ Volume module" "\- Shows volume š, š if muted. + 3) notify-send "ļØ Volume module" "\- Shows volume ļØ , ļ© if muted. - Middle click to mute. - Scroll to change." ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; |