From 30122e78d75fac3c22725583209465097d2fc849 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 28 Mar 2024 10:04:43 +0300 Subject: [PATCH] Sway : Add selection screenshot. --- module/foot/Foot.ini | 2 +- module/sway/module/20-Screenshot | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/foot/Foot.ini b/module/foot/Foot.ini index bd929ed..95baa4b 100644 --- a/module/foot/Foot.ini +++ b/module/foot/Foot.ini @@ -21,7 +21,7 @@ font=Terminess Nerd Font Mono:size=14 # underline-thickness= # box-drawings-uses-font-glyphs=no dpi-aware=yes -overflowing-glyphs=yes +# overflowing-glyphs=yes # initial-window-size-pixels=700x500 # Or, # initial-window-size-chars= diff --git a/module/sway/module/20-Screenshot b/module/sway/module/20-Screenshot index c0ee01a..b70e62b 100644 --- a/module/sway/module/20-Screenshot +++ b/module/sway/module/20-Screenshot @@ -1,5 +1,5 @@ # Fullscreen screenshot. -bindsym $mod+shift+v grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png +bindsym $mod+shift+v exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png # Select screenshot. -# bindsym $mod+v # TODO: Add selectable screenshot. +bindsym $mod+v exec grim -g "$(slurp -d)" - | wl-copy