From 6514d453329c2e8af06f5db62c289917ea7d85eb Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 5 Jun 2020 21:48:35 +0100 Subject: [PATCH] Added basic .xprofile that switches capslock with esc and has a basic dwm statusbar --- .xprofile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .xprofile diff --git a/.xprofile b/.xprofile new file mode 100644 index 0000000..6ab8fcd --- /dev/null +++ b/.xprofile @@ -0,0 +1,22 @@ +# Switch Caps and Escape + +/usr/bin/setxkbmap -option caps:swapescape + + +# DWM Statusbar with xorg-xsetroot + +while true; do + + # Build the status bar + status_bar="" + status_bar+=" $USER" + status_bar+=" $(cat /sys/class/power_supply/BAT0/capacity)%" + status_bar+=" $( date +"%F %R" )" + + # Set the status bar + xsetroot -name "$status_bar" + sleep 1m + +done & + +exec dwm