From 7ad96623fe73c3a8a3eaa0456d355a4fdc997f11 Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Thu, 24 Dec 2020 22:00:28 -0800 Subject: [PATCH] Added xsession and tmux_status files --- dwm.xsession | 13 +++++++++++++ tmux_status.laptop | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 dwm.xsession create mode 100755 tmux_status.laptop diff --git a/dwm.xsession b/dwm.xsession new file mode 100755 index 0000000..5154d1f --- /dev/null +++ b/dwm.xsession @@ -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" diff --git a/tmux_status.laptop b/tmux_status.laptop new file mode 100755 index 0000000..4685d5d --- /dev/null +++ b/tmux_status.laptop @@ -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