From 4d4ecd8235a1712ffa00cfe5c66cfa63d0e3d572 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Tue, 19 May 2026 12:45:12 +0545 Subject: [PATCH] feat(config/hypr/configs): add screenshot keybinding and enable workspace cycle configuration - New Features: Added `mainMod + P` binding to execute `grimblast save screen` for screen capture - Enhancements: Set `allow_workspace_cycles = true` to permit cycling layouts across workspaces --- config/hypr/configs/keybinds.lua | 2 +- config/hypr/configs/misc.lua | 4 ++++ config/hypr/configs/monitor_and_env.lua | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/hypr/configs/keybinds.lua b/config/hypr/configs/keybinds.lua index b942e27e..0168debc 100644 --- a/config/hypr/configs/keybinds.lua +++ b/config/hypr/configs/keybinds.lua @@ -52,7 +52,7 @@ hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd("uwsm app -- " .. terminal)) hl.bind("ALT + SHIFT + Return", hl.dsp.exec_cmd("uwsm app -- " .. terminal, { float = true })) hl.bind("ALT + E", hl.dsp.exec_cmd("uwsm app -- " .. file_manager)) hl.bind(mainMod .. " + B", hl.dsp.exec_cmd("uwsm app -- " .. browser)) - +hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("grimblast save screen")) -- Cycle Layout in Specific workspace hl.bind(mainMod .. " + Tab", cycle_layout("next")) hl.bind(mainMod .. " + SHIFT + Tab", cycle_layout("prev")) diff --git a/config/hypr/configs/misc.lua b/config/hypr/configs/misc.lua index 1207d99d..fe82d719 100644 --- a/config/hypr/configs/misc.lua +++ b/config/hypr/configs/misc.lua @@ -35,6 +35,10 @@ hl.config({ no_hardware_cursors = 0, }, + binds = { + allow_workspace_cycles = true, + }, + dwindle = { preserve_split = true, special_scale_factor = 0.95, diff --git a/config/hypr/configs/monitor_and_env.lua b/config/hypr/configs/monitor_and_env.lua index bda1b25d..1f380389 100644 --- a/config/hypr/configs/monitor_and_env.lua +++ b/config/hypr/configs/monitor_and_env.lua @@ -11,6 +11,7 @@ hl.monitor({ for key, val in pairs({ XCURSOR_SIZE = "6", + GDK_CURRENT_DESKTOP = "wayland", CLUTTER_BACKEND = "wayland", GDK_BACKEND = "wayland,x11,*", QT_QPA_PLATFORM = "wayland;xcb",