swaync: make the backlight/mpris items configurable
This commit is contained in:
parent
a7df4cc125
commit
0bd92ef77e
|
@ -62,6 +62,8 @@ in
|
|||
name of entry in /sys/class/backlight which indicates the primary backlight.
|
||||
'';
|
||||
};
|
||||
enableBacklight = mkEnableOption "include a backlight slider in the swaync dropdown (requires an active session with systemd-logind)";
|
||||
enableMpris = (mkEnableOption "show the currently playing media in the swaync dropdown, and navigation buttons") // { default = true; };
|
||||
};
|
||||
};
|
||||
default = {};
|
||||
|
@ -166,9 +168,13 @@ in
|
|||
"dnd"
|
||||
"inhibitors"
|
||||
"buttons-grid"
|
||||
] ++ lib.optionals cfg.config.enableBacklight [
|
||||
"backlight"
|
||||
] ++ [
|
||||
"volume"
|
||||
] ++ lib.optionals cfg.config.enableMpris [
|
||||
"mpris"
|
||||
] ++ [
|
||||
"notifications"
|
||||
];
|
||||
widget-config = {
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
actions.screenoff.delay = 300;
|
||||
actions.screenoff.enable = true;
|
||||
};
|
||||
sane.programs.swaynotificationcenter.config = {
|
||||
enableMpris = false; #< consumes too much screen real-estate
|
||||
};
|
||||
|
||||
sane.programs.waybar.config = {
|
||||
fontSize = 14;
|
||||
|
|
Loading…
Reference in New Issue
Block a user