From 295a283cb6669982871b5bb93d4f70f112717ca5 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Thu, 7 Nov 2024 20:43:19 -0800 Subject: [PATCH] add executor to gnome on kestrel with svs status --- provision/hosts/kestrel/configuration.nix | 1 + provision/hosts/kestrel/gnome.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 provision/hosts/kestrel/gnome.nix diff --git a/provision/hosts/kestrel/configuration.nix b/provision/hosts/kestrel/configuration.nix index 4f9d1a32..bb332047 100644 --- a/provision/hosts/kestrel/configuration.nix +++ b/provision/hosts/kestrel/configuration.nix @@ -2,6 +2,7 @@ { imports = [ ./backup.nix + ./gnome.nix ]; # Use performance governor for sweet gaming performance! diff --git a/provision/hosts/kestrel/gnome.nix b/provision/hosts/kestrel/gnome.nix new file mode 100644 index 00000000..7ca7e250 --- /dev/null +++ b/provision/hosts/kestrel/gnome.nix @@ -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"}]}''; + }; + }; + }; +}