-
Notifications
You must be signed in to change notification settings - Fork 176
/
Copy pathautostart
52 lines (43 loc) · 1.4 KB
/
autostart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# >> Run with every reload
exec_always {
# Xwayland app settings
xrdb ~/.Xdefaults
}
# >> Run once on login
exec {
# Sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
# See FS#63021
# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
# - systemd
# systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
# - non-systemd
hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# Prevents GTK apps from hanging for 15-20 sec before launching
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
# Enable screensharing
# Gentoo
gentoo-pipewire-launcher
/usr/libexec/xdg-desktop-portal -r
/usr/libexec/xdg-desktop-portal-wlr -r
# Notifications
dunst
# kdeconnect
# - Gentoo
/usr/bin/kdeconnectd
# - Arch
# /usr/lib/kdeconnectd
# Eww stuff
$eww/init
# Other daemons
$sway/battery-notifications
$sway/xkb-layout-notifications
# Smart english layout
# Switch to english keyboard layout for some windows and restore the old
# layout afterwards. Configuration is in the script itself.
$sway/smart-english-layout
# Fix Awakened PoE Trade (somewhat)
# $sway/fix-awakened-poe-trade
$cmd_nightmode
}
# vim:set ft=conf: