Skip to content

Instantly share code, notes, and snippets.

@txtyash
Created July 20, 2022 10:20
Show Gist options
  • Save txtyash/fecdc7941829bd946c083233a508ceb7 to your computer and use it in GitHub Desktop.
Save txtyash/fecdc7941829bd946c083233a508ceb7 to your computer and use it in GitHub Desktop.
My .xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# setxkbmap -option altwin:swap_lalt_lwin
# setxkbmap -option caps:swapescape
feh --bg-scale --randomize ~/pictures/wallpapers/*
picom --experimental-backend -b --config ~/.config/picom/picom.conf
exec xmonad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment