diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/screenshot.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 }') |