aboutsummaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-30 16:19:05 +0300
committerawy <awy@awy.one>2024-11-30 16:19:05 +0300
commit18497419838d63c09fa86ed2217b94b7a2b2b32a (patch)
treeac962e680ffa19cab329edf33d6a3ba256d3437f /.local/bin
parent04a706bf3c225fccd11cc3821f36ffed5a30cf65 (diff)
icons
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/statusbar/sb-clock4
-rwxr-xr-x.local/bin/statusbar/sb-doppler2
-rwxr-xr-x.local/bin/statusbar/sb-forecast10
-rwxr-xr-x.local/bin/statusbar/sb-memory4
-rwxr-xr-x.local/bin/statusbar/sb-microphone2
-rwxr-xr-x.local/bin/statusbar/sb-nettraf22
-rwxr-xr-x.local/bin/statusbar/sb-volume2
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" ;;