config: fix gnome-control-center bind, disable unused panels

This commit is contained in:
Anthony Rodriguez 2024-12-19 13:51:23 +01:00
parent 1b4b665b2b
commit e2bcffa79e
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 19 additions and 2 deletions

View file

@ -28,7 +28,6 @@
equibop
fractal
geary
gnome-control-center
gns3-gui
gns3-server
imhex

View file

@ -58,7 +58,7 @@ _: {
", XF86MonBrightnessUp, exec, brillo -q -u 300000 -A 5"
", XF86MonBrightnessDown, exec, brillo -q -u 300000 -U 5"
", XF86AudioMedia, exec, sh -c env XDG_CURRENT_DESKTOP=gnome gnome-control-center"
", XF86AudioMedia, exec, XDG_CURRENT_DESKTOP=gnome gnome-control-center"
", XF86PowerOff, exec, wlogout"
"$mod Alt, l, exec, loginctl lock-session"
];

View file

@ -6,6 +6,24 @@
imports = [./binds.nix];
home.packages = [
inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
# disable unused panels - https://github.com/maydayv7/dotfiles/blob/4de45008a6915753834aa7e1cbafbacfff8b7adc/modules/gui/desktop/hyprland/apps/utilities.nix#L42-L57
(pkgs.gnome-control-center.overrideAttrs (old: {
postInstall =
old.postInstall
+ ''
dir=$out/share/applications
for panel in $dir/*
do
[ "$panel" = "$dir/gnome-network-panel.desktop" ] && continue
[ "$panel" = "$dir/gnome-bluetooth-panel.desktop" ] && continue
[ "$panel" = "$dir/gnome-wifi-panel.desktop" ] && continue
[ "$panel" = "$dir/gnome-wwan-panel.desktop" ] && continue
[ "$panel" = "$dir/gnome-sharing-panel.desktop" ] && continue
[ "$panel" = "$dir/gnome-wacom-panel.desktop" ] && continue
rm "$panel"
done
'';
}))
];
wayland.windowManager.hyprland = {
enable = true;