config: fix gnome-control-center bind, disable unused panels
This commit is contained in:
parent
1b4b665b2b
commit
e2bcffa79e
3 changed files with 19 additions and 2 deletions
|
@ -28,7 +28,6 @@
|
||||||
equibop
|
equibop
|
||||||
fractal
|
fractal
|
||||||
geary
|
geary
|
||||||
gnome-control-center
|
|
||||||
gns3-gui
|
gns3-gui
|
||||||
gns3-server
|
gns3-server
|
||||||
imhex
|
imhex
|
||||||
|
|
|
@ -58,7 +58,7 @@ _: {
|
||||||
|
|
||||||
", XF86MonBrightnessUp, exec, brillo -q -u 300000 -A 5"
|
", XF86MonBrightnessUp, exec, brillo -q -u 300000 -A 5"
|
||||||
", XF86MonBrightnessDown, exec, brillo -q -u 300000 -U 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"
|
", XF86PowerOff, exec, wlogout"
|
||||||
"$mod Alt, l, exec, loginctl lock-session"
|
"$mod Alt, l, exec, loginctl lock-session"
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,6 +6,24 @@
|
||||||
imports = [./binds.nix];
|
imports = [./binds.nix];
|
||||||
home.packages = [
|
home.packages = [
|
||||||
inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
|
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 = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue