mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 00:53:55 -05:00
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
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:
parent
7bb74d3da9
commit
aea06d5eda
|
@ -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"];
|
||||
};
|
||||
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
@ -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"];
|
||||
|
|
|
@ -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"];
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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" = {
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue