forked from LukeSmithxyz/LARBS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbc4973
commit 787456e
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/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. | ||
|
||
setbg & # set the background with the `setbg` script | ||
xcompmgr & # xcompmgr for transparency | ||
dwmbar & # script for updating the status bar | ||
dunst & # dunst for notifications | ||
sxhkd & # Bind keys with sxhkd | ||
xset r rate 300 50 & # Speed xrate up | ||
unclutter & # Remove mouse when idle | ||
|
||
# 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 | ||
xmodmap -e 'keycode 135 = Super_R' & | ||
|
||
xrandr -q | grep "DP2 con" >/dev/null 2>&1 && xrandr --output DP1 --auto --output LVDS1 --off | ||
|
||
# This loop will run the `refbar` script to refresh the statusbar whenever a | ||
# command changes the music player's status. | ||
while pgrep -x mpd; do | ||
mpc idle >/dev/null 2>&1 | ||
refbar | ||
done & |