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 "setxkbmap -option compose:ralt"
15i3-msg exec "xset r rate 250 50"
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 "caddy start --adapter caddyfile --config ~/Bulk/Media/Caddyfile"
29i3-msg workspace 7
30i3-msg exec "hydrus-client"
31i3-msg workspace 6
32i3-msg exec "telegram-desktop"
33i3-msg exec "sprig"
34i3-msg exec "beeper"
35i3-msg workspace 1
36i3-msg exec "firefox-developer-edition"
37i3-msg exec "xrandr -r 165.00"
38{{- end }}
39
40sleep 50
41i3-msg exec "nextcloud"
42
43##############################
44# Wacom tablet configuration #
45##############################
46
47# Tablet button 1 = delete
48xsetwacom set "Wacom Intuos BT S Pad pad" Button 1 "key del"
49# Tablet button 3 = ctrl+z
50xsetwacom set "Wacom Intuos BT S Pad pad" Button 3 "key +ctrl z -ctrl"
51# Tablet button 4 = ctrl+shift+z
52xsetwacom set "Wacom Intuos BT S Pad pad" Button 8 "key +ctrl +shift z -shift -ctrl"
53
54exit