user playerctld as systemd service

This commit is contained in:
Aly Raffauf 2024-08-02 14:49:18 -04:00
parent c3895dc388
commit f8f1a48ce9
7 changed files with 7 additions and 16 deletions

View file

@ -129,7 +129,6 @@ in {
(lib.getExe pkgs.mako)
(lib.getExe pkgs.waybar)
(lib.getExe pkgs.wayland-pipewire-idle-inhibit)
(lib.getExe' pkgs.playerctl "playerctld")
]
++ lib.lists.optional (cfg.desktop.redShift)
"${lib.getExe pkgs.gammastep} -l 33.74:-84.38"

View file

@ -161,7 +161,6 @@ in {
{command = lib.getExe pkgs.autotiling;}
{command = lib.getExe pkgs.mako;}
{command = lib.getExe pkgs.wayland-pipewire-idle-inhibit;}
{command = lib.getExe' pkgs.playerctl "playerctld";}
]
++ lib.optional cfg.desktop.redShift
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}

View file

@ -13,9 +13,9 @@
swaylock.enable = lib.mkDefault true;
waybar.enable = lib.mkDefault true;
};
services = {
swayidle.enable = lib.mkDefault true;
swayosd.enable = lib.mkDefault true;
};
};
@ -34,6 +34,11 @@
swayosd
];
services = {
playerctld.enable = lib.mkDefault true;
swayosd.enable = lib.mkDefault true;
};
xdg.portal = {
enable = true;
configPackages =

View file

@ -217,7 +217,6 @@ in {
};
swayidle.enable = lib.mkEnableOption "Swayidle idle daemon.";
swayosd.enable = lib.mkEnableOption "On Screen Display (OSD) for volume/brightness/etc.";
};
theme = {

View file

@ -3,6 +3,5 @@
./easyeffects
./mpd
./swayidle
./swayosd
];
}

View file

@ -7,9 +7,8 @@
cfg = config.ar.home;
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg";
in {
config = lib.mkIf cfg.apps.swayidle.enable {
config = lib.mkIf cfg.services.swayidle.enable {
services.swayidle = {
enable = true;

View file

@ -1,9 +0,0 @@
{
config,
lib,
...
}: {
config = lib.mkIf config.ar.home.apps.swayosd.enable {
services.swayosd.enable = true;
};
}