From 3e0b8873e5222ceb5fb84c20eb1ced23bb4be3d6 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 12 May 2026 01:07:17 -0700 Subject: [PATCH] Add Flameshot screenshot bindings --- dotfiles/config/hypr/hyprland/binds.lua | 3 ++- dotfiles/config/river-xmonad/Main.hs | 3 ++- dotfiles/config/xmonad/xmonad.hs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dotfiles/config/hypr/hyprland/binds.lua b/dotfiles/config/hypr/hyprland/binds.lua index ce6bae3a..da7ae112 100644 --- a/dotfiles/config/hypr/hyprland/binds.lua +++ b/dotfiles/config/hypr/hyprland/binds.lua @@ -240,7 +240,8 @@ function M.setup(ctx) bind(hyper .. " + V", exec([[cliphist list | rofi -dmenu -p "Clipboard" | cliphist decode | wl-copy]])) bind(hyper .. " + P", exec("rofi-pass")) - bind(hyper .. " + H", exec([[grim -g "$(slurp)" - | swappy -f -]])) + bind("Print", exec("flameshot gui")) + bind(hyper .. " + H", exec("flameshot gui")) bind(hyper .. " + C", exec("rofi_tmcodex.sh")) bind(hyper .. " + SHIFT + C", exec("rofi_tmcodex.sh resume")) bind(hyper .. " + SHIFT + L", exec("hyprlock")) diff --git a/dotfiles/config/river-xmonad/Main.hs b/dotfiles/config/river-xmonad/Main.hs index d9b9081e..2087cc03 100644 --- a/dotfiles/config/river-xmonad/Main.hs +++ b/dotfiles/config/river-xmonad/Main.hs @@ -156,7 +156,8 @@ spawnBindings = , 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 noMods xK_Print (spawnAction "flameshot gui") + , key hyper xK_h (spawnAction "flameshot gui") , key hyper xK_c (spawnAction "shell_command.sh") , key hyper xK_g gatherFocusedAppId , key (hyper .|. shift) xK_l (spawnAction "loginctl lock-session") diff --git a/dotfiles/config/xmonad/xmonad.hs b/dotfiles/config/xmonad/xmonad.hs index 497cf568..b7ed1f1e 100644 --- a/dotfiles/config/xmonad/xmonad.hs +++ b/dotfiles/config/xmonad/xmonad.hs @@ -1069,7 +1069,8 @@ addKeys conf@XConfig { modMask = modm } = , ((modm, xK_v), spawn "xclip -o | xdotool type --file -") , ((hyper, xK_v), spawn "rofi -modi 'clipboard:greenclip print' -show clipboard") , ((hyper, xK_p), spawn "rofi-pass") - , ((hyper, xK_h), spawn "rofi_shutter") + , ((0, xK_Print), spawn "flameshot gui") + , ((hyper, xK_h), spawn "flameshot gui") , ((hyper, xK_c), spawn "rofi_tmcodex.sh") , ((hyper .|. shiftMask, xK_c), spawn "rofi_tmcodex.sh resume") , ((hyper .|. shiftMask, xK_l), spawn "dm-tool lock")