1#!/bin/sh -x
2autocutsel -fork
3autocutsel -fork -selection PRIMARY
4
5# Start headless applications
6i3-msg exec "polybar top"
7i3-msg exec "polybar bottom"
8i3-msg exec "feh --bg-scale ~/.wallpaper.png"
9i3-msg exec "blueman-applet"
10i3-msg exec "redshift"
11i3-msg exec "/usr/lib/geoclue-2.0/demos/agent"
12i3-msg exec "dunst"
13i3-msg exec "playerctl pause"
14i3-msg exec "mpDris2"
15i3-msg exec "setxkbmap -option compose:ralt"
16i3-msg exec "gotify-desktop"
17i3-msg exec "picom"
18i3-msg exec "solaar -w hide"
19i3-msg exec "unclutter --ignore-scrolling --start-hidden"
20i3-msg exec "emacs --daemon"
21i3-msg exec "xrdb -load ~/.Xresources"
22i3-msg exec "xfsettingsd"
23i3-msg exec "darkman get"
24
25i3-msg exec st "zsh -c 'bitw serve'"
26
27{{- if eq .chezmoi.hostname "angmar" }}
28i3-msg exec "mpdscribble"
29i3-msg exec "mpd ~/.config/mpd/mpd.conf"
30i3-msg exec "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile"
31i3-msg workspace 7
32i3-msg exec "hydrus-client"
33i3-msg workspace 6
34i3-msg exec "telegram-desktop"
35i3-msg exec "sprig"
36i3-msg exec "signal-desktop"
37i3-msg workspace 1
38i3-msg exec "firefox-developer-edition"
39i3-msg exec "xrandr -r 165.00"
40{{- end }}
41
42sleep 50
43i3-msg exec "nextcloud"
44
45##############################
46# Wacom tablet configuration #
47##############################
48
49# Tablet button 1 = delete
50xsetwacom set "Wacom Intuos BT S Pad pad" Button 1 "key del"
51# Tablet button 3 = ctrl+z
52xsetwacom set "Wacom Intuos BT S Pad pad" Button 3 "key +ctrl z -ctrl"
53# Tablet button 4 = ctrl+shift+z
54xsetwacom set "Wacom Intuos BT S Pad pad" Button 8 "key +ctrl +shift z -shift -ctrl"
55
56exit