Sway: Difference between revisions

imported>Rasmus-kirk
fixed small sway/systemd error
imported>Rasmus-kirk
Added autostart sway section
Line 102: Line 102:
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
}}
}}
==== Auto-start Sway ====
Add the following lines to atuostart sway after user login:
<syntaxhighlight lang="nix">
  environment.loginShellInit = ''
    if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
      exec sway
    fi
  '';
</syntaxhighlight>


=== Polkit ===
=== Polkit ===