dotfiles/dot_config/X11/xinitrc.tmpl

48 lines
981 B
Bash

#!/bin/sh
userresources="$XDG_CONFIG_HOME/X11/xresources"
systemctl --user import-environment PATH
systemctl --user import-environment DISPLAY
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
{{ if .features.optimus -}}
/usr/bin/prime-offload > /dev/null 2>&1
{{- end }}
setxkbmap hypermode
{{ if .features.virtualbox -}}
KEYS="Control_L=Escape"
KEYS="$KEYS;Control_R=Return"
KEYS="$KEYS;Super_L=Tab"
KEYS="$KEYS;Super_R=backslash"
KEYS="$KEYS;Alt_R=space"
KEYS="$KEYS;ISO_Level3_Shift=XF86Search"
xman -t 500 "$KEYS" "^VirtualBox Machine$" &
{{- end }}
# TODO put xmonad-specific stuff in its own script
tmuxctl start
greenclip daemon &
redshift > /dev/null 2>&1 &
dunst &
{{ if .development.emacs -}}
emacs-start &
{{- end }}
{{ if .features.seafile -}}
seafile-applet > /dev/null 2>&1 &
{{- end }}
flameshot > /dev/null 2>&1 &
rofi-bw -d 3600 &
autorandr --change > /dev/null
picom --config "$XDG_CONFIG_HOME/picom.conf" -b
numlockx on
exec xmonad