home: add swayosd service

This commit is contained in:
Aly Raffauf 2024-08-02 14:40:56 -04:00
parent 650ce2c546
commit e469d1e0cf
5 changed files with 13 additions and 1 deletions

View file

@ -17,6 +17,7 @@
./rofi ./rofi
./swayidle ./swayidle
./swaylock ./swaylock
./swayosd
./thunar ./thunar
./tmux ./tmux
./vsCodium ./vsCodium

View file

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

View file

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

View file

@ -11,6 +11,7 @@
rofi.enable = lib.mkDefault true; rofi.enable = lib.mkDefault true;
swayidle.enable = lib.mkDefault true; swayidle.enable = lib.mkDefault true;
swaylock.enable = lib.mkDefault true; swaylock.enable = lib.mkDefault true;
swayosd.enable = lib.mkDefault true;
waybar.enable = lib.mkDefault true; waybar.enable = lib.mkDefault true;
}; };

View file

@ -64,6 +64,7 @@ in {
rofi.enable = lib.mkEnableOption "Rofi launcher."; rofi.enable = lib.mkEnableOption "Rofi launcher.";
swayidle.enable = lib.mkEnableOption "Swayidle idle daemon."; swayidle.enable = lib.mkEnableOption "Swayidle idle daemon.";
swaylock.enable = lib.mkEnableOption "Swaylock screen locker."; swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
swayosd.enable = lib.mkEnableOption "On Screen Display (OSD) for volume/brightness/etc.";
thunar.enable = lib.mkOption { thunar.enable = lib.mkOption {
description = "Thunar file manager."; description = "Thunar file manager.";