summaryrefslogtreecommitdiff
path: root/config/x11/xinitrc
blob: 5057ae3ddcc30c8b774ea26d139f268426b3b5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

userresources="$HOME/.config/x11/xresources"

# merge in defaults and keymaps
if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

dunst &
picom &
setxkbmap -option "caps:ctrl_modifier"      # Map Caps Lock to Ctrl
setxkbmap us                                # Set US keyboard layout
slstatus &
swall -d "$HOME/.config/wallpapers/current" # Set a wallpaper
unclutter &                                 # Hide mouse cursor if inactive
xgamma -gamma 0.8                           # Change gamma
xset r rate 300 50                          # Increase cursor speed
xset s off && xset -dpms                    # Disable screen blackening

exec dwm