Add Hyprland screenshot shortcuts
This commit is contained in:
parent
6987ad3f49
commit
0cd9eea75b
2 changed files with 23 additions and 2 deletions
|
|
@ -16,8 +16,8 @@
|
|||
$ULTRA = desc:LG Electronics LG ULTRAWIDE 512AZWSDD473
|
||||
$SIDE = desc:STD Computer Inc LED
|
||||
|
||||
monitor = $ULTRA,3440x1440@159.96,0x0,1, bitdepth, 10, cm, hdr, sdrbrightness, 1.3
|
||||
# monitor = $ULTRA,3440x1440@159.96,0x0,1
|
||||
monitor = $ULTRA,3440x1440@159.96,0x0,1
|
||||
# monitor = $ULTRA,3440x1440@159.96,0x0,1, bitdepth, 10, cm, hdr, sdrbrightness, 1.3
|
||||
monitor = $SIDE,1920x1080@60,-1400x-1080,1
|
||||
|
||||
|
||||
|
|
@ -218,6 +218,11 @@ bind = $mainMod, F, fullscreen
|
|||
bind = $mainMod CTRL, F, fullscreenstate, 0, 2
|
||||
bind = $mainMod, C, centerwindow, 1
|
||||
|
||||
# Screenshots to clipboard
|
||||
bind = , Print, exec, sh -lc 'grim -g "$(slurp)" - | wl-copy --type image/png'
|
||||
bind = CTRL, Print, exec, sh -lc 'grim - | wl-copy --type image/png'
|
||||
bind = ALT, Print, exec, ~/.config/hypr/scripts/screenshot-active-window.sh
|
||||
|
||||
# Focus and movement
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, right, movefocus, l
|
||||
|
|
|
|||
|
|
@ -269,6 +269,8 @@
|
|||
isort
|
||||
pipenv
|
||||
jq
|
||||
grim
|
||||
slurp
|
||||
wl-clipboard
|
||||
nodejs
|
||||
texlab
|
||||
|
|
@ -282,6 +284,20 @@
|
|||
home.file = {
|
||||
".config/hypr/hyprland.conf".source = ../configs/hypr/hyprland.conf;
|
||||
".config/hypr/hyprpaper.conf".source = ../configs/hypr/hyprpaper.conf;
|
||||
".config/hypr/scripts/screenshot-active-window.sh" = {
|
||||
executable = true;
|
||||
text = ''
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
GEOMETRY="$(
|
||||
hyprctl activewindow -j \
|
||||
| jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"'
|
||||
)"
|
||||
|
||||
grim -g "$GEOMETRY" - | wl-copy --type image/png
|
||||
'';
|
||||
};
|
||||
|
||||
".config/hyfetch.json".text = builtins.toJSON {
|
||||
preset = "voidgirl";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue