From 158210f009b6eabf2b573f9d9dbc6374f005f97d Mon Sep 17 00:00:00 2001 From: tristan Date: Mon, 7 Apr 2025 14:24:03 +0100 Subject: [PATCH] framework: fix locking and ozone --- home/desktop/hyprland/default.nix | 3 ++- home/desktop/hyprland/hycov.nix | 25 ------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 home/desktop/hyprland/hycov.nix diff --git a/home/desktop/hyprland/default.nix b/home/desktop/hyprland/default.nix index df36e65..704dfab 100644 --- a/home/desktop/hyprland/default.nix +++ b/home/desktop/hyprland/default.nix @@ -30,7 +30,7 @@ in { enable = true; settings = { general = { - before_sleep_cmd = "rbw lock"; + before_sleep_cmd = "rbw lock; hyprlock"; after_sleep_cmd = "hyprctl dispatch dpms on"; ignore_dbus_inhibit = false; lock_cmd = "pidof ${lock_cmd} || ${lock_cmd}"; @@ -193,6 +193,7 @@ in { "XDG_SESSION_DESKTOP,Hyprland" "QT_AUTO_SCREEN_SCALE_FACTOR,1" "QT_WAYLAND_DISABLE_WINDOWDECORATION,1" + "NIXOS_OZONE_WL,1" ]; windowrule = [ "float, title:wlogout" diff --git a/home/desktop/hyprland/hycov.nix b/home/desktop/hyprland/hycov.nix deleted file mode 100644 index cf62e31..0000000 --- a/home/desktop/hyprland/hycov.nix +++ /dev/null @@ -1,25 +0,0 @@ -{pkgs, ...}: { - wayland.windowManager.hyprland = { - plugins = with pkgs; [ - hycov - ]; - settings.plugin.hycov = { - overview_gappo = 20; - }; - settings.bind = [ - # bind key to toggle overview(normal mode) - "ALT,tab,hycov:toggleoverview" - - # bind key to toggle overview(force mode,no affected by `only_active_workspace` and `only_active_monitor`) - "ALT,grave,hycov:toggleoverview,forceall" #grave key is the '~' key - - # The direction switch shortcut key binding. - # calculate the window closest to the direction to switch focus. - # This keybind is applicable not only to the overview but also to the general layout - "ALT,h,hycov:movefocus,l" - "ALT,l,hycov:movefocus,r" - "ALT,k,hycov:movefocus,u" - "ALT,j,hycov:movefocus,d" - ]; - }; -}