aboutsummaryrefslogtreecommitdiff
path: root/linux/sway/autostart.m4
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2024-02-09 11:52:25 +0100
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2024-02-09 11:52:25 +0100
commit304edf080d65dad148ab6246d9fcf072ba7e86c2 (patch)
tree79899fec431fe534f3aaa6c8a03bbf0e502dfbef /linux/sway/autostart.m4
parent76dce9a62c564070eb7a079a37a05ba5eb2355cf (diff)
downloaddotfiles-304edf080d65dad148ab6246d9fcf072ba7e86c2.tar.gz
dotfiles-304edf080d65dad148ab6246d9fcf072ba7e86c2.zip
some things
Diffstat (limited to 'linux/sway/autostart.m4')
-rw-r--r--linux/sway/autostart.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/linux/sway/autostart.m4 b/linux/sway/autostart.m4
new file mode 100644
index 0000000..ae49261
--- /dev/null
+++ b/linux/sway/autostart.m4
@@ -0,0 +1,42 @@
+m4_include(`system.m4')m4_dnl
+# Fix GTK+ application slow start
+exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
+
+# screen locking
+m4_changequote({, })m4_dnl
+m4_ifelse(SYSID, {2}, {m4_dnl
+exec swayidle -w \
+ timeout 300 'swaymsg "output * dpms off"' \
+ timeout 3600 physlock \
+ resume 'swaymsg "output * dpms on"' \
+ before-sleep physlock
+})m4_dnl
+m4_changequote(`, ')m4_dnl
+
+# notification centre
+exec swaync
+
+# system tray applets
+exec blueman-applet
+exec udiskie
+exec nm-applet --indicator
+
+# Wayland Overlay Bar, volume/brigtness bar
+set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
+exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
+
+# use clipman for clipboard management
+exec wl-paste -t text --watch clipman store --no-persist
+
+# Nice color hues in the evenings
+exec wlsunset -l 59.9614 -L 10.925 -t 4500 -T 6500 -g 1.0
+
+# start nextcloud
+exec_always nextcloud --background
+
+# gnome keyring daemon
+exec_always eval $(gnome-keyring-daemon --start)
+exec_always export SSH_AUTH_SOCK
+
+# IME
+exec_always fcitx5 -d