sway: move some autostart commands to services

This commit is contained in:
Konstantin Koslowski 2025-01-09 09:09:49 +01:00
parent b6fcc08f61
commit e60a4ec31e

11
config
View file

@ -353,8 +353,6 @@ for_window [title="float*"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
for_window [app_id="imv"] floating enable
for_window [app_id="nm-openconnect-auth-dialog"] floating enable
for_window [app_id="com.obsproject.Studio"] floating enable
for_window [app_id=".*"] title_format '<span font_weight="bold">%title</span> <span>(%app_id)</span>'
for_window [class=".*"] title_format '<span font_weight="bold">%title</span> <span>(%class:%instance)</span>'
# different dashes!
@ -362,15 +360,11 @@ for_window [app_id="firefox" title="Firefox — Sharing Indicator"] floating ena
for_window [app_id="firefox" title="Firefox - Sharing Indicator"] floating enable
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable
for_window [title="bluetoothctl"] floating enable
for_window [title="fzf"] floating enable
# mark rules
for_window [class="Plexamp" window_type="normal"] mark s
for_window [app_id="com.obsproject.Studio"] mark d
for_window [class="Ferdium" window_type="normal" window_role="browser-window"] mark z
for_window [class="Signal" window_type="normal" window_role="browser-window"] mark x
for_window [class="Chromium" instance="crx_cifhbcnohmdccbgoicgdjpfamggdegmo" window_type="normal"] mark c
# matlab workaround
no_focus [class="MATLAB R2021a" instance="sun-awt-X11-XDialogPeer"]
#
# Autostart
@ -378,10 +372,5 @@ no_focus [class="MATLAB R2021a" instance="sun-awt-X11-XDialogPeer"]
exec_always $idle_cmd
exec_always $sov_cmd
exec_always systemctl --user start sway-session.target
exec "bash -c 'sleep 10; nextcloud --background'"
exec --no-startup-id dunst
exec --no-startup-id nm-applet --indicator
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id $swayidle_cmd
include /etc/sway/config.d/*