home: fix desktop services (#88)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

* waybar: increase to proper height 34px

* sway: restart sway-session-target at launch

* home/services: bind desktop services to sway and hyprland
This commit is contained in:
Aly Raffauf 2024-08-11 23:43:48 -04:00 committed by GitHub
parent 7bb74d3da9
commit aea06d5eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 24 additions and 19 deletions

View file

@ -15,6 +15,12 @@ in {
systemd = {
enable = true;
extraCommands = lib.mkDefault [
"systemctl --user stop sway-session.target"
"systemctl --user start sway-session.target"
];
variables = ["--all"];
};

View file

@ -11,5 +11,11 @@ in {
latitude = lib.mkDefault "33.74";
longitude = lib.mkDefault "-84.38";
};
systemd.user.services.gammastep = {
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
Service.Restart = lib.mkForce "no";
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
};
};
}

View file

@ -41,6 +41,7 @@ in {
systemd.user.services.mako = {
Unit = {
After = "graphical-session.target";
BindsTo = ["hyprland-session.target" "sway-session.target"];
Description = "Lightweight Wayland notification daemon";
Documentation = "man:mako(1)";
PartOf = "graphical-session.target";
@ -50,8 +51,7 @@ in {
BusName = "org.freedesktop.Notifications";
ExecReload = ''${lib.getExe' pkgs.mako "makoctl"} reload'';
ExecStart = "${lib.getExe pkgs.mako}";
Restart = "on-failure";
RestartSec = 5;
Restart = lib.mkForce "no";
Type = "dbus";
};

View file

@ -10,14 +10,14 @@ in {
systemd.user.services.pipewire-inhibit-idle = {
Unit = {
After = "graphical-session.target";
BindsTo = ["hyprland-session.target" "sway-session.target"];
Description = "inhibit idle when audio is playing with Pipewire.";
PartOf = "graphical-session.target";
};
Service = {
ExecStart = lib.getExe pkgs.wayland-pipewire-idle-inhibit;
Restart = "on-failure";
RestartSec = 5;
Restart = "no";
};
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];

View file

@ -89,14 +89,14 @@ in {
systemd.user.services.randomWallpaper = {
Unit = {
After = "graphical-session.target";
BindsTo = ["hyprland-session.target" "sway-session.target"];
Description = "Lightweight swaybg-based random wallpaper daemon.";
PartOf = "graphical-session.target";
};
Service = {
ExecStart = "${wallpaperD}";
Restart = "on-failure";
RestartSec = 5;
Restart = "no";
};
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];

View file

@ -60,10 +60,8 @@ in {
systemd.user.services.swayidle = {
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
Service = {
Restart = lib.mkForce "on-failure";
RestartSec = 5;
};
Service.Restart = lib.mkForce "no";
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
};
};
}

View file

@ -18,11 +18,8 @@ in {
systemd.user.services.swayosd = {
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
Service = {
Restart = lib.mkForce "on-failure";
RestartSec = 5;
};
Service.Restart = lib.mkForce "no";
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
};
xdg.configFile."swayosd/style.css" = {

View file

@ -357,10 +357,8 @@ in {
systemd.user.services.waybar = {
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
Service = {
Restart = lib.mkForce "on-failure";
RestartSec = 5;
};
Service.Restart = lib.mkForce "no";
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
};
xdg.configFile."nwg-drawer/drawer.css".text = ''