From bf8c6b1e20f42a7725d8d919830fdb274596b20f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 18 May 2019 21:19:17 -0400 Subject: [PATCH] dwmbar added to xinitrc --- .local/bin/dwmbar | 6 ++++++ .xinitrc | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 .local/bin/dwmbar diff --git a/.local/bin/dwmbar b/.local/bin/dwmbar new file mode 100755 index 0000000..e5a2ffb --- /dev/null +++ b/.local/bin/dwmbar @@ -0,0 +1,6 @@ +#!/bin/sh + +while :; do + xsetroot -name "$(sed 's/^/🔋:/' /sys/class/power_supply/BAT?/capacity 2>/dev/null | tr '\n' ' ') $(date '+%Y %b %d (%a) %I:%M%p')" + sleep 30 +done diff --git a/.xinitrc b/.xinitrc index cb672ea..8b3910d 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,7 +1,7 @@ #!/bin/sh setbg & # Set the background -sxhkd & # Bind keys +sxhkd & # Bind keys # Switch to US international with Caps as Mod/Escape setxkbmap -option caps:super -variant altgr-intl && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' & # Properties button extra Mod/Escape @@ -12,5 +12,6 @@ xcompmgr & # xcompmgr for transparency dunst & # dunst for notifications while :; do - ssh-agent dwm + dwmbar & + ssh-agent dwm || break done