dwmbar added to xinitrc
This commit is contained in:
6
.local/bin/dwmbar
Executable file
6
.local/bin/dwmbar
Executable file
@@ -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
|
||||||
5
.xinitrc
5
.xinitrc
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
setbg & # Set the background
|
setbg & # Set the background
|
||||||
sxhkd & # Bind keys
|
sxhkd & # Bind keys
|
||||||
# Switch to US international with Caps as Mod/Escape
|
# 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' &
|
setxkbmap -option caps:super -variant altgr-intl && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' &
|
||||||
# Properties button extra Mod/Escape
|
# Properties button extra Mod/Escape
|
||||||
@@ -12,5 +12,6 @@ xcompmgr & # xcompmgr for transparency
|
|||||||
dunst & # dunst for notifications
|
dunst & # dunst for notifications
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
ssh-agent dwm
|
dwmbar &
|
||||||
|
ssh-agent dwm || break
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user