Added xsession and tmux_status files
This commit is contained in:
17
tmux_status.laptop
Executable file
17
tmux_status.laptop
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# vim: filetype=sh
|
||||
|
||||
#while true; do
|
||||
|
||||
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 ',')
|
||||
|
||||
echo "$IP ${WEATHER}°F"
|
||||
|
||||
#sleep 30
|
||||
|
||||
#done
|
Reference in New Issue
Block a user