diff --git a/config/home-manager/programs/default.nix b/config/home-manager/programs/default.nix index 65e31cb..bb85197 100644 --- a/config/home-manager/programs/default.nix +++ b/config/home-manager/programs/default.nix @@ -28,7 +28,6 @@ equibop fractal geary - gnome-control-center gns3-gui gns3-server imhex diff --git a/config/home-manager/programs/hypr/land/binds.nix b/config/home-manager/programs/hypr/land/binds.nix index 3d4bf6f..5b1f39f 100644 --- a/config/home-manager/programs/hypr/land/binds.nix +++ b/config/home-manager/programs/hypr/land/binds.nix @@ -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" ]; diff --git a/config/home-manager/programs/hypr/land/default.nix b/config/home-manager/programs/hypr/land/default.nix index 20f6cb6..6ded509 100644 --- a/config/home-manager/programs/hypr/land/default.nix +++ b/config/home-manager/programs/hypr/land/default.nix @@ -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;