From 72762f583352d6a6bb398bec7a403435590c0dc6 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 1 May 2024 21:21:11 +0700 Subject: [PATCH] add keybind for screenshot to clipboard and save (#454) --- .config/ags/modules/cheatsheet/data_keybinds.js | 1 + .config/hypr/hyprland/keybinds.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/.config/ags/modules/cheatsheet/data_keybinds.js b/.config/ags/modules/cheatsheet/data_keybinds.js index 1dbcd0eb9..b64156797 100644 --- a/.config/ags/modules/cheatsheet/data_keybinds.js +++ b/.config/ags/modules/cheatsheet/data_keybinds.js @@ -71,6 +71,7 @@ export const keybindList = [[ "name": "Utilities", "binds": [ { "keys": ["PrtSc"], "action": "Screenshot >> clipboard" }, + { "keys": ["Ctrl", "PrtSc"], "action": "Screenshot >> file + clipboard" }, { "keys": ["󰖳", "Shift", "+", "S"], "action": "Screen snip >> clipboard" }, { "keys": ["󰖳", "Shift", "+", "T"], "action": "Image to text >> clipboard" }, { "keys": ["󰖳", "Shift", "+", "C"], "action": "Color picker" }, diff --git a/.config/hypr/hyprland/keybinds.conf b/.config/hypr/hyprland/keybinds.conf index dc79b59eb..1817634c5 100644 --- a/.config/hypr/hyprland/keybinds.conf +++ b/.config/hypr/hyprland/keybinds.conf @@ -41,6 +41,7 @@ bind = Control+Shift+Alt+Super, Delete, exec, systemctl poweroff || loginctl pow # Screenshot, Record, OCR, Color picker, Clipboard history bind = Super+Shift+Alt, S, exec, grim -g "$(slurp)" - | swappy -f - bindl=,Print,exec,grim - | wl-copy +bindl= Control,Print, exec, mkdir -p ~/Pictures/Screenshots && ~/.config/ags/scripts/grimblast.sh copysave screen ~/Pictures/Screenshots/Screenshot_"$(date '+%Y-%m-%d_%H.%M.%S')".png bind = Super+Shift, S, exec, ~/.config/ags/scripts/grimblast.sh --freeze copy area bind = Super+Alt, R, exec, ~/.config/ags/scripts/record-script.sh bind = Control+Alt, R, exec, ~/.config/ags/scripts/record-script.sh --fullscreen