From 18497419838d63c09fa86ed2217b94b7a2b2b32a Mon Sep 17 00:00:00 2001 From: awy Date: Sat, 30 Nov 2024 16:19:05 +0300 Subject: icons --- .local/bin/statusbar/sb-clock | 4 ++-- .local/bin/statusbar/sb-doppler | 2 +- .local/bin/statusbar/sb-forecast | 10 +++++----- .local/bin/statusbar/sb-memory | 4 ++-- .local/bin/statusbar/sb-microphone | 2 +- .local/bin/statusbar/sb-nettraf | 22 +++++++++++----------- .local/bin/statusbar/sb-volume | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) (limited to '.local/bin/statusbar') 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 ' ')\>/&<\/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" ;; -- cgit v1.2.3