From 752a145bb598ffe38959a73e07fe6f04c78932fd Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 2 Feb 2024 15:32:40 +0100 Subject: [PATCH] Make some hyprland changes - switch from wofi to rofi-wayland - enable polkit kde agent - add brightnessctl to env --- home/hyprland.nix | 10 +++++++--- system/hyprland.nix | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index ac06cdc..555f561 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -3,16 +3,19 @@ let mkd = lib.mkDefault; terminal = "${pkgs.kitty}/bin/kitty"; files = "${pkgs.dolphin}/bin/dolphin"; - rofi = "${pkgs.wofi}/bin/wofi"; + rofi = "${pkgs.rofi-wayland}/bin/rofi"; notifydaemon = "${pkgs.dunst}/bin/dunst"; + brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; + polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"; in { home.packages = with pkgs; [ kitty dolphin - wofi + rofi-wayland wev dunst + brightnessctl ]; wayland.windowManager.hyprland = { @@ -32,6 +35,7 @@ in exec-once = [ notifydaemon + polkit-agent ]; # Source a file (multi-file configs) @@ -141,7 +145,7 @@ in "$mod, M, exit, " "$mod, E, exec, ${files}" "$mod, V, togglefloating, " - "$mod, R, exec, ${rofi} --show drun" + "$mod, R, exec, ${rofi} -show drun" "$mod, P, pseudo," # dwindle" "$mod, O, togglesplit," # dwindle" diff --git a/system/hyprland.nix b/system/hyprland.nix index dd4d29b..6a95887 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -19,5 +19,6 @@ rofi hyprpicker udiskie + polkit-kde-agent ]; }