2023-04-01 15:35:26 -04:00
|
|
|
#!/usr/bin/env sh
|
2021-02-15 20:53:16 -05:00
|
|
|
|
|
|
|
userresources="$XDG_CONFIG_HOME/X11/xresources"
|
|
|
|
|
|
|
|
systemctl --user import-environment PATH
|
|
|
|
systemctl --user import-environment DISPLAY
|
|
|
|
|
|
|
|
if [ -f "$userresources" ]; then
|
|
|
|
xrdb -merge "$userresources"
|
|
|
|
fi
|
|
|
|
|
2022-07-20 20:39:01 -04:00
|
|
|
{{ if .features.optimus -}}
|
2021-02-15 20:53:16 -05:00
|
|
|
/usr/bin/prime-offload > /dev/null 2>&1
|
2022-07-20 20:39:01 -04:00
|
|
|
{{- end }}
|
2021-02-15 20:53:16 -05:00
|
|
|
|
|
|
|
setxkbmap hypermode
|
|
|
|
|
|
|
|
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$" &
|
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# TODO put xmonad-specific stuff in its own script
|
2021-06-17 01:17:06 -04:00
|
|
|
tmuxctl start
|
2021-02-15 20:53:16 -05:00
|
|
|
greenclip daemon &
|
|
|
|
redshift > /dev/null 2>&1 &
|
|
|
|
dunst &
|
2022-07-20 20:39:01 -04:00
|
|
|
{{ if .development.emacs -}}
|
2021-02-15 20:53:16 -05:00
|
|
|
emacs-start &
|
2022-07-20 20:39:01 -04:00
|
|
|
{{- end }}
|
|
|
|
{{ if .features.seafile -}}
|
2021-02-15 20:53:16 -05:00
|
|
|
seafile-applet > /dev/null 2>&1 &
|
2022-07-20 20:39:01 -04:00
|
|
|
{{- end }}
|
2023-10-07 15:04:26 -04:00
|
|
|
{{ if .features.networkmanager -}}
|
|
|
|
nm-applet > /dev/null 2>&1 &
|
|
|
|
{{- end }}
|
2023-04-09 11:09:53 -04:00
|
|
|
{{ if .features.activitywatch -}}
|
2023-04-29 13:27:23 -04:00
|
|
|
aw-server > /dev/null 2>&1 &
|
|
|
|
aw-watcher-window > /dev/null 2>&1 &
|
|
|
|
aw-watcher-afk > /dev/null 2>&1 &
|
2023-04-09 11:09:53 -04:00
|
|
|
{{- end }}
|
2021-02-15 20:53:16 -05:00
|
|
|
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
|