Added xsession and tmux_status files

This commit is contained in:
Mahesh Asolkar 2020-12-24 22:00:28 -08:00
parent 2f0e1af64b
commit 7ad96623fe
2 changed files with 30 additions and 0 deletions

13
dwm.xsession Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
xrdb -merge $HOME/.Xresources
# Use DWM
while true
do
$HOME/bin/dwm_status
sleep 10s
done &
feh --bg-fill $HOME/.config/wallpaper.jpg &
picom -cCGf &
exec $HOME/apps/bin/dwm "#662211"

17
tmux_status.laptop Executable file
View 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