mirror of https://github.com/tiyn/dotfiles
LukeSmith made a guide on how to set this up. I did it analog to him. - clock shows the calendar - internet shows nmtuimaster
parent
4997bcb4f0
commit
b59ac5e0eb
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
|
||||||
|
|
||||||
date +" %d %b %H:%M"
|
date +" %d %b %H:%M"
|
||||||
|
|
||||||
|
case $BLOCK_BUTTON in
|
||||||
|
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" ;;
|
||||||
|
esac
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
|
||||||
|
|
||||||
sensors | awk '/Core 0/ {print " " $3}'
|
sensors | awk '/Core 0/ {print " " $3}'
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
|
||||||
|
|
||||||
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=""
|
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=""
|
||||||
|
|
||||||
[ ! -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
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
|
||||||
|
|
||||||
free -h | awk '/^Mem:/ {print " " $3 "/" $2}'
|
free -h | awk '/^Mem:/ {print " " $3 "/" $2}'
|
||||||
|
Loading…
Reference in new issue