diff options
author | Justine Smithies <justine@smithies.me.uk> | 2023-09-24 16:53:41 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2023-09-24 16:53:41 +0100 |
commit | e9aaf8dbf729c17942e3ee69df28aa323d3fc0f6 (patch) | |
tree | 0f243cb9e7c7d161d1bbcf968293d5f9e55fb310 /.local | |
parent | 61cbca5f5c43fb090f6339b44a5ebefc7cba76d1 (diff) |
Changed in screenshot.sh from selected-window to focused-window
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 }') |