Add Flameshot screenshot bindings

This commit is contained in:
2026-05-12 01:07:17 -07:00
parent ddaa3a78ac
commit 3e0b8873e5
3 changed files with 6 additions and 3 deletions

View File

@@ -240,7 +240,8 @@ function M.setup(ctx)
bind(hyper .. " + V", exec([[cliphist list | rofi -dmenu -p "Clipboard" | cliphist decode | wl-copy]])) bind(hyper .. " + V", exec([[cliphist list | rofi -dmenu -p "Clipboard" | cliphist decode | wl-copy]]))
bind(hyper .. " + P", exec("rofi-pass")) 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 .. " + C", exec("rofi_tmcodex.sh"))
bind(hyper .. " + SHIFT + C", exec("rofi_tmcodex.sh resume")) bind(hyper .. " + SHIFT + C", exec("rofi_tmcodex.sh resume"))
bind(hyper .. " + SHIFT + L", exec("hyprlock")) bind(hyper .. " + SHIFT + L", exec("hyprlock"))

View File

@@ -156,7 +156,8 @@ spawnBindings =
, key hyper xK_e viewNextEmptyWorkspace , key hyper xK_e viewNextEmptyWorkspace
, key hyper xK_v (spawnAction "rofi -modi 'clipboard:greenclip print' -show clipboard") , key hyper xK_v (spawnAction "rofi -modi 'clipboard:greenclip print' -show clipboard")
, key hyper xK_p (spawnAction "rofi-pass") , 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_c (spawnAction "shell_command.sh")
, key hyper xK_g gatherFocusedAppId , key hyper xK_g gatherFocusedAppId
, key (hyper .|. shift) xK_l (spawnAction "loginctl lock-session") , key (hyper .|. shift) xK_l (spawnAction "loginctl lock-session")

View File

@@ -1069,7 +1069,8 @@ addKeys conf@XConfig { modMask = modm } =
, ((modm, xK_v), spawn "xclip -o | xdotool type --file -") , ((modm, xK_v), spawn "xclip -o | xdotool type --file -")
, ((hyper, xK_v), spawn "rofi -modi 'clipboard:greenclip print' -show clipboard") , ((hyper, xK_v), spawn "rofi -modi 'clipboard:greenclip print' -show clipboard")
, ((hyper, xK_p), spawn "rofi-pass") , ((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, xK_c), spawn "rofi_tmcodex.sh")
, ((hyper .|. shiftMask, xK_c), spawn "rofi_tmcodex.sh resume") , ((hyper .|. shiftMask, xK_c), spawn "rofi_tmcodex.sh resume")
, ((hyper .|. shiftMask, xK_l), spawn "dm-tool lock") , ((hyper .|. shiftMask, xK_l), spawn "dm-tool lock")