From e9aaf8dbf729c17942e3ee69df28aa323d3fc0f6 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 24 Sep 2023 16:53:41 +0100 Subject: Changed in screenshot.sh from selected-window to focused-window --- .local/bin/screenshot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/screenshot.sh b/.local/bin/screenshot.sh index bb4bdb6..29c62c8 100755 --- a/.local/bin/screenshot.sh +++ b/.local/bin/screenshot.sh @@ -9,7 +9,8 @@ case $1 in # Take a screenshot and save it to the clipboard grim -g "$(slurp -d)" - | wl-copy ;; - selected-window) + focused-window) + # Take a screenshot of the focused window pos=$(qtile cmd-obj -o window -f get_position | awk '{ print $1" "$2}' | tr -dc '0-9 ') xpos=$(echo $pos | awk '{ print $1 }') ypos=$(echo $pos | awk '{ print $2 }') -- cgit v1.2.3