Sway: Difference between revisions
imported>LoganWalls Add information about setting up Sway with Home Manager |
imported>Alberand m Add short note for newebies - what kanshi is? I was confused if I need it. And fixed missing quote. |
||
Line 165: | Line 165: | ||
=== Systemd services === | === Systemd services === | ||
As explained above, we don't run sway itself as a systemd service. There are auxiliary daemons that we do want to run as systemd services, for example Kanshi [https://sr.ht/~emersion/kanshi/], which implements monitor hot swapping. It would be enabled as follows: | Kanshi is output configuration daemon. As explained above, we don't run sway itself as a systemd service. There are auxiliary daemons that we do want to run as systemd services, for example Kanshi [https://sr.ht/~emersion/kanshi/], which implements monitor hot swapping. It would be enabled as follows: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
# kanshi systemd service | # kanshi systemd service | ||
Line 172: | Line 172: | ||
serviceConfig = { | serviceConfig = { | ||
Type = "simple"; | Type = "simple"; | ||
ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file'; | ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file''; | ||
}; | }; | ||
}; | }; |