1
0
Fork 0

change sb icons

This commit is contained in:
Luca Bilke 2022-08-11 10:20:33 +02:00
parent ceaa39efb2
commit 822cbb3726
5 changed files with 7 additions and 8 deletions

View file

@ -1,9 +1,9 @@
#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send " CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)\\n(100% per core)" ;;
1) notify-send " CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)\\n(100% per core)" ;;
2) setsid -f "$TERMINAL" -e htop ;;
3) notify-send " CPU module " "\- Shows CPU temperature.
3) notify-send " CPU module " "\- Shows CPU temperature.
- Click to show intensive processes.
- Middle click to open htop." ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;

View file

@ -1,6 +1,5 @@
#!/bin/sh
# Displays todays precipication chance (☔) and daily low (🥶) and high (🌞).
# Usually intended for the statusbar.
# If we have internet, get a weather report from wttr.in and store it locally.

View file

@ -11,7 +11,7 @@ pidof dwm >/dev/null &&
case $BLOCK_BUTTON in
1) groff -mom "${READMEFILE:-${XDG_DATA_HOME:-$HOME/.local/share}/larbs/readme.mom}" -Tpdf | zathura - ;;
2) restartwm ;;
3) notify-send " Help module" "\- Left click to open LARBS guide.
3) notify-send " Help module" "\- Left click to open LARBS guide.
- Middle click to refresh window manager." ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac; echo ""
esac; echo ""

View file

@ -6,5 +6,5 @@
# https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/
ifinstalled "geoip" || exit
addr="$(curl ifconfig.me 2>/dev/null)" || exit
addr="$(curl snaile.de/ip 2>/dev/null)" || exit
grep "flag: " "${XDG_DATA_HOME:-$HOME/.local/share}/larbs/emoji" | grep "$(geoiplookup "$addr" | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"

View file

@ -4,7 +4,7 @@ filter() {
if mpc 1>/dev/null 2>&1 && [ "$(mpc | wc -l)" -eq 3 ]; then
song=$(mpc current -f "%artist% - %title%" | xargs -0 )
[ ${#song} -gt 35 ] && song="$(printf %.35s song)…"
mpc | awk 'NR==2' | grep -q playing && icon="" || icon=""
mpc | awk 'NR==2' | grep -q playing && icon="" || icon=""
echo " $icon $song "
elif mpc 1>/dev/null 2>&1 && [ "$(mpc | wc -l)" -eq 1 ]; then
echo " ﱙ "
@ -19,7 +19,7 @@ case $BLOCK_BUTTON in
1) mpc status | filter ; setsid -f "$TERMINAL" -e ncmpcpp ;; # right click, pause/unpause
2) mpc toggle | filter ;; # right click, pause/unpause
3) mpc status | filter ; notify-send " Music module" "\- Shows mpd song playing.
- when paused.
- when paused.
- Left click opens ncmpcpp.
- Middle click pauses.
- Scroll changes track.";; # right click, pause/unpause