From 4b552afb7a15f69c5acf37f6e532e67ca81428c8 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 4 May 2026 22:12:36 -0700 Subject: [PATCH] Update command launcher keybindings --- dotfiles/config/hypr/hyprland.lua | 3 +-- dotfiles/config/river-xmonad/Main.hs | 2 +- dotfiles/config/xmonad/xmonad.hs | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dotfiles/config/hypr/hyprland.lua b/dotfiles/config/hypr/hyprland.lua index e70dceb3..fd992b98 100644 --- a/dotfiles/config/hypr/hyprland.lua +++ b/dotfiles/config/hypr/hyprland.lua @@ -2006,7 +2006,7 @@ end) bind(main_mod .. " + apostrophe", focus_next_class) bind(mod_alt .. " + W", show_active_window_info) -bind(main_mod .. " + X", hl.dsp.window.move({ workspace = "special:NSP" })) +bind(main_mod .. " + X", exec("rofi_command.sh")) bind(main_mod .. " + SHIFT + X", hl.dsp.workspace.toggle_special("NSP")) bind(mod_alt .. " + E", function() toggle_scratchpad("element") @@ -2082,7 +2082,6 @@ bind(hyper .. " + V", exec([[cliphist list | rofi -dmenu -p "Clipboard" | cliphi bind(hyper .. " + P", exec("rofi-pass")) bind(hyper .. " + H", exec([[grim -g "$(slurp)" - | swappy -f -]])) bind(hyper .. " + C", exec("shell_command.sh")) -bind(hyper .. " + X", exec("rofi_command.sh")) bind(hyper .. " + SHIFT + L", exec("hyprlock")) bind(hyper .. " + K", exec("rofi_kill_process.sh")) bind(hyper .. " + SHIFT + K", exec("rofi_kill_all.sh")) diff --git a/dotfiles/config/river-xmonad/Main.hs b/dotfiles/config/river-xmonad/Main.hs index 6c4a451a..d9b9081e 100644 --- a/dotfiles/config/river-xmonad/Main.hs +++ b/dotfiles/config/river-xmonad/Main.hs @@ -152,13 +152,13 @@ spawnBindings = , key (super .|. ctrl) xK_e (shiftFocusedToNextEmptyWorkspace False) , key (super .|. shift) xK_e (shiftFocusedToNextEmptyWorkspace True) , key super xK_v (spawnAction "wl-paste | wtype -") + , key super xK_x (spawnAction "rofi_command.sh") , key hyper xK_e viewNextEmptyWorkspace , key hyper xK_v (spawnAction "rofi -modi 'clipboard:greenclip print' -show clipboard") , key hyper xK_p (spawnAction "rofi-pass") , key hyper xK_h (spawnAction "rofi_shutter") , key hyper xK_c (spawnAction "shell_command.sh") , key hyper xK_g gatherFocusedAppId - , key hyper xK_x (spawnAction "rofi_command.sh") , key (hyper .|. shift) xK_l (spawnAction "loginctl lock-session") , key hyper xK_k (spawnAction "rofi_kill_process.sh") , key (hyper .|. shift) xK_k (spawnAction "rofi_kill_all.sh") diff --git a/dotfiles/config/xmonad/xmonad.hs b/dotfiles/config/xmonad/xmonad.hs index 5bb31574..58a7768f 100644 --- a/dotfiles/config/xmonad/xmonad.hs +++ b/dotfiles/config/xmonad/xmonad.hs @@ -1031,7 +1031,7 @@ addKeys conf@XConfig { modMask = modm } = , ((modm, xK_m), withFocused minimizeWindow) , ((modm .|. shiftMask, xK_m), deactivateFullOr $ withLastMinimized maximizeWindowAndFocus) - , ((modm, xK_x), addHiddenWorkspace "NSP" >> windows (W.shift "NSP")) + , ((modm, xK_x), spawn "rofi_command.sh") , ((modalt, xK_space), deactivateFullOr restoreOrMinimizeOtherClasses) , ((modalt, xK_Return), deactivateFullAnd restoreAllMinimized) , ((hyper, xK_g), gatherThisClass) @@ -1073,7 +1073,6 @@ addKeys conf@XConfig { modMask = modm } = , ((hyper, xK_p), spawn "rofi-pass") , ((hyper, xK_h), spawn "rofi_shutter") , ((hyper, xK_c), spawn "shell_command.sh") - , ((hyper, xK_x), spawn "rofi_command.sh") , ((hyper .|. shiftMask, xK_l), spawn "dm-tool lock") , ((hyper, xK_l), selectLayout) , ((hyper, xK_k), spawn "rofi_kill_process.sh")