Compare commits

..

2 Commits

Author SHA1 Message Date
Nathan McCarty d5ece48cbd
Add logout shortcut 2023-06-18 03:04:42 -04:00
Nathan McCarty 27f005271a
Be more specific about what sessions we want 2023-06-18 03:03:04 -04:00
2 changed files with 9 additions and 5 deletions

View File

@ -288,7 +288,7 @@ in with lib; {
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ "hyprland-session.target" ]; };
};
# Setup swayosd as a service
systemd.user.services.swayosd = {
@ -301,7 +301,7 @@ in with lib; {
ExecStart = "${pkgs.swayosd}/bin/swayosd";
Restart = "on-failure";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ "hyprland-session.target" ]; };
};
# Shortcut dispatcher
xdg.configFile."shortcuts/shortcuts.toml" = {
@ -326,7 +326,7 @@ in with lib; {
ExecStart = "${inputs.self.packages.${pkgs.system}.pyprland}/bin/pypr";
Restart = "on-failure";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ "hyprland-session.target" ]; };
};
# And its config file
xdg.configFile."hypr/pyprland.json" = let
@ -383,7 +383,7 @@ in with lib; {
ExecStart = "${notif-package}/bin/swaync";
Restart = "on-failure";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ "hyprland-session.target" ]; };
};
#########################
## Swayidle
@ -869,7 +869,7 @@ in with lib; {
KillMode = "mixed";
};
Install = { WantedBy = [ "graphical-session-pre.target" ]; };
Install = { WantedBy = [ "hyprland-session-pre.target" ]; };
};
#########################
## EasyEffects

4
shortcuts/session/logout Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
session=`loginctl session-status | head -n 1 | awk '{print $1}'`
loginctl terminate-session $session