Added dwm helpers for laptop computers
This commit is contained in:
11
dwm_status.laptop
Executable file
11
dwm_status.laptop
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# vim: filetype=sh
|
||||
|
||||
VOL=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
|
||||
LOCALTIME=$(date +"%Y %h %d %I:%M%p %Z")
|
||||
IP=$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1)
|
||||
WEATHER=$(weather fips4105192520 | grep Tempera | awk '{print $2}')
|
||||
BAT=$(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')
|
||||
|
||||
xsetroot -name " 🔊 $VOL | $IP | 🔋 $BAT | ${WEATHER}°F | $LOCALTIME"
|
Reference in New Issue
Block a user