From 98cda9fcfbc7fec79bd02f377ab66fd49c5c9152 Mon Sep 17 00:00:00 2001 From: Aney Date: Thu, 22 Oct 2020 14:29:49 +0100 Subject: [PATCH] Changes to .xinitrc for slstatus, also renamed because I never use .xprofile --- .xinitrc | 17 +++++++++++++++++ .xprofile | 38 -------------------------------------- 2 files changed, 17 insertions(+), 38 deletions(-) create mode 100644 .xinitrc delete mode 100644 .xprofile diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..f632056 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,17 @@ +# Switch Caps and Escape + +/usr/bin/setxkbmap -option caps:swapescape + +# Key repeat rate + +xset r rate 300 50 + +# Set desktop background with feh + +feh --bg-fill Pictures/wallpapers/mist_forrest.jpg + +# DWM with status bar (slstatus) + +slstatus & + +exec dwm diff --git a/.xprofile b/.xprofile deleted file mode 100644 index c04710b..0000000 --- a/.xprofile +++ /dev/null @@ -1,38 +0,0 @@ -# Switch Caps and Escape - -/usr/bin/setxkbmap -option caps:swapescape - -# Switch left alt and cmd -# I need this to be only for apple devices... -/usr/bin/setxkbmap -option altwin:swap_alt_win - -# Key Repeat Rate - -# xset r rate 280 40 # Defaults -xset r rate 300 50 -# Key Repeat Rate - -# xset r rate 280 40 # Defaults -xset r rate 300 50 - -# Set desktop background with feh - -feh --bg-fill Pictures/wallpapers/mist_forrest.jpg - -# 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 +"%A %d/%m/%Y %R" )" - - # Set the status bar - xsetroot -name "$status_bar" - sleep 1m - -done & - -exec dwm