dotfiles/.xinitrc

37 lines
436 B
Bash

#!/bin/bash
# Disable screen turnoff
xset -dpms
xset s off
# Composite manager
case "$(hostname)" in
"ryx")
compton -d :0.0 -b
compton -d :0.1 -b
;;
"len")
compton -d :1 -b
;;
*)
esac
# Background
xrdb ~/.Xresources
nitrogen --restore
# Sync clipboard
autocutsel -fork
autocutsel -fork -selection PRIMARY
# Window manager
case "$(hostname)" in
"ryx")
DISPLAY=:0.1 i3 &
DISPLAY=:0.0 i3 &
;;
*)
exec i3
esac