nwg-panel: disable the brightness indicator

This commit is contained in:
2024-06-16 05:42:58 +00:00
parent 1ecc033ff5
commit a6d268ca72
2 changed files with 12 additions and 3 deletions

View File

@@ -6,7 +6,6 @@
# - add CPU/meminfo executor # - add CPU/meminfo executor
# - use sane-sysinfo # - use sane-sysinfo
# - fix swaync icon # - fix swaync icon
# - disable the brightness icon from bar
{ {
components, components,
height, height,

View File

@@ -70,12 +70,22 @@ in
./playerctl-no-prev-next.diff ./playerctl-no-prev-next.diff
]; ];
# disable the drop-down chevron by the controls. # - disable the drop-down chevron by the controls.
# it's precious space on moby, doesn't do much to help on lappy either. # 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 "") + '' postPatch = (base.postPatch or "") + ''
substituteInPlace nwg_panel/modules/controls.py --replace-fail \ 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)' \
'# 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 # XXX(2024/06/13) the bluetooth stuff doesn't cross compile, so disable it