mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-31 00:17:46 +02:00
statusbar: updated scripts
This commit is contained in:
parent
78bfabfc08
commit
8097527147
@ -1,7 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
date +" %d %b %H:%M"
|
date +" %d %b %H:%M"
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
|
||||||
1) notify-send -u low "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..0m/<\/span><\/b>/")" ;;
|
|
||||||
esac
|
|
||||||
|
@ -6,7 +6,3 @@
|
|||||||
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')
|
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')
|
||||||
|
|
||||||
printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon"
|
printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon"
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
|
||||||
1) $TERMINAL -e "nmtui" ;;
|
|
||||||
esac
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user