From a6d268ca7234048677ad04a5ca5ca3b38675dd21 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 16 Jun 2024 05:42:58 +0000 Subject: [PATCH] nwg-panel: disable the brightness indicator --- hosts/common/programs/nwg-panel/config.nix | 1 - hosts/common/programs/nwg-panel/default.nix | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/common/programs/nwg-panel/config.nix b/hosts/common/programs/nwg-panel/config.nix index 71f76c19..bf26d36d 100644 --- a/hosts/common/programs/nwg-panel/config.nix +++ b/hosts/common/programs/nwg-panel/config.nix @@ -6,7 +6,6 @@ # - add CPU/meminfo executor # - use sane-sysinfo # - fix swaync icon -# - disable the brightness icon from bar { components, height, diff --git a/hosts/common/programs/nwg-panel/default.nix b/hosts/common/programs/nwg-panel/default.nix index dab5920f..54f01a6f 100644 --- a/hosts/common/programs/nwg-panel/default.nix +++ b/hosts/common/programs/nwg-panel/default.nix @@ -70,12 +70,22 @@ in ./playerctl-no-prev-next.diff ]; - # disable the drop-down chevron by the controls. - # it's precious space on moby, doesn't do much to help on lappy either. + # - disable the drop-down chevron by the controls. + # it's precious space on moby, doesn't do much to help on lappy either. + # - disable brightness indicator for same reason. + # - *leave* the volume indicator: one *could* remove it, however on desko that would leave the controls pane empty + # making the dropdown inaccessible postPatch = (base.postPatch or "") + '' substituteInPlace nwg_panel/modules/controls.py --replace-fail \ 'box.pack_start(self.pan_image, False, False, 4)' \ '# box.pack_start(self.pan_image, False, False, 4)' + substituteInPlace nwg_panel/modules/controls.py --replace-fail \ + 'box.pack_start(self.bri_image, False, False, 4)' \ + '# box.pack_start(self.bri_image, False, False, 4)' + + # substituteInPlace nwg_panel/modules/controls.py --replace-fail \ + # 'box.pack_start(self.vol_image, False, False, 4)' \ + # '# box.pack_start(self.vol_image, False, False, 4)' ''; # XXX(2024/06/13) the bluetooth stuff doesn't cross compile, so disable it