Start sway as a systemd user process again

After login on TTY1 sway was started by calling
    exec sway

See also b84d88fc92

Co-authored-by: Hendrik Sokolowski <hensoko@gssws.de>
pull/80/head
Hendrik Sokolowski 5 months ago
parent 797e83f9aa
commit 159ae86722
  1. 2
      modules/sway/config/config.d/custom-keybindings.conf
  2. 1
      modules/sway/default.nix
  3. 2
      modules/terminal-life/zsh/default.nix

@ -37,7 +37,7 @@ set $mode_system (l)ock, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutd
bindsym $mod+0 mode "$mode_system"
mode "$mode_system" {
bindsym l exec swaylock-bg, mode "default"
bindsym e exec swaymsg exit, mode "default"
bindsym e exec systemctl --user stop graphical-session.target, mode "default"
bindsym s exec systemctl suspend, mode "default"
bindsym h exec systemctl hibernate, mode "default"
bindsym r exec systemctl reboot, mode "default"

@ -86,6 +86,7 @@ in
#programs.waybar.systemd.enable = true;
systemd.user.services.mako = import ./mako.service.nix pkgs;
systemd.user.services.sway = import ./sway.service.nix pkgs;
systemd.user.services.swayidle = import ./swayidle.service.nix pkgs;
systemd.user.services.xsettingsd = import ./xsettingsd.service.nix pkgs;
systemd.user.services.waybar = import ./waybar.service.nix pkgs;

@ -19,7 +19,7 @@ in
};
loginExtra = ''
[ "$(tty)" = "/dev/tty1" ] && exec sway
[ "$(tty)" = "/dev/tty1" ] && exec ${pkgs.sway-service}/bin/sway-service
'';
shellAliases = {

Loading…
Cancel
Save