voidrice/.xprofile

24 lines
872 B
Text
Raw Normal View History

2019-05-27 17:40:58 +00:00
#!/bin/sh
# This file runs when a DM logs you into a graphical session.
# If you use startx/xinit like a Chad, this file will also be sourced.
2019-09-22 18:29:01 +00:00
# Set Caps to Mod/Escape
setxkbmap -option caps:swapescape && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' &
# Properties button extra Mod/Escape
xmodmap -e 'keycode 135 = Super_R' &
2019-05-27 17:40:58 +00:00
setbg & # set the background with the `setbg` script
xcompmgr & # xcompmgr for transparency
2019-09-21 19:39:49 +00:00
dwmblocks & # script for updating the status bar
2019-05-27 17:40:58 +00:00
dunst & # dunst for notifications
sxhkd & # Bind keys with sxhkd
xset r rate 300 50 & # Speed xrate up
unclutter & # Remove mouse when idle
2019-09-22 18:29:01 +00:00
# This loop will update the mpd statusbar module whenever a command changes the
# music player's status. mpd must be running on X's start for this to work.
while pgrep -x mpd >/dev/null; do
mpc idle >/dev/null; pkill -RTMIN+11 dwmblocks
done