add executor to gnome on kestrel with svs status

This commit is contained in:
Tyler Starr 2024-11-07 20:43:19 -08:00
parent 48457c9b23
commit 295a283cb6
2 changed files with 24 additions and 0 deletions

View File

@ -2,6 +2,7 @@
{
imports = [
./backup.nix
./gnome.nix
];
# Use performance governor for sweet gaming performance!

View File

@ -0,0 +1,23 @@
{ config, lib, pkgs, user, home-manager, ... }:
{
environment.systemPackages = with pkgs; [
gnomeExtensions.executor # Execute shell commands display output top bar.
];
home-manager.users.${user} = {
dconf.settings = {
"org/gnome/shell" = {
enabled-extensions = [
"executor@raujonas.github.io"
];
};
"org/gnome/shell/extensions/executor" = {
"click-on-output-active" = false;
"center-active" = false;
"left-active" = false;
"right-active" = true;
"right-commands-json" = ''{"commands":[{"isActive":true,"command":"pySVS 54:B7:E5:57:1A:7B --volume=A | grep -oP \"(?<=VOLUME': )-?\\d+\" | xargs -I{} echo \"󰓃 {}dB\"","interval":20,"uuid":"732cd6de-ff5f-46a7-b8bb-51d1c621cc60"}]}'';
};
};
};
}