Skip to content

Commit

Permalink
feat(keybinds): take screenshot of focused window with scrot
Browse files Browse the repository at this point in the history
  • Loading branch information
ACuteWoof committed Oct 11, 2024
1 parent add6182 commit fa78a2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ The mouse can also be used to switch focus between windows by simply hovering ov
- <kbd>[mod]</kbd> <kbd>V</kbd> shows the active windows through Rofi
- <kbd>[mod]</kbd> <kbd>D</kbd> sends a notification including the current date and time
- <kbd>[mod]</kbd> <kbd>Q</kbd> kills focused window
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>S</kbd> takes a full screenshot using Scrot
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>S</kbd> takes a full screenshot using Scrot to clipboard
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>F</kbd> takes a screenshot of the focused window using Scrot to clipboard
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>P</kbd> opens the Rofi power menu
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>R</kbd> restarts Qtile
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>Q</kbd> shuts down Qtile
Expand Down
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
),
Key([mod], "f", lazy.spawn("flameshot gui"), desc="Open flameshot gui"),
Key([mod, "control"], "s", lazy.spawn("scrot - | xclip -selection clipboard -target image/png"), desc="Take full screenshot to clipboard"),
Key([mod, "control"], "f", lazy.spawn("scrot -w $(xdo id -p PID) - | xclip -selection clipboard -target image/png"), desc="Take current window as screenshot to clipboard"),
Key([mod], "e", lazy.spawn("tauon"), desc="Open tauon music box"),
Key([mod], "z", lazy.spawn(f"{home}/.config/qtile/view.sh"), desc="View in Zathura"),
Key([mod], "y", lazy.spawn(f"{home}/.config/qtile/yt.sh"), desc="Open YouTube video in MPV"),
Expand Down
4 changes: 4 additions & 0 deletions qtile.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ <h2>Miscellaneous and launching programs</h2>
<kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>S</kbd> takes a
full screenshot using Scrot
</li>
<li>
<kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>F</kbd> takes a
screenshot of the focused window using Scrot
</li>
<li>
<kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>P</kbd> Opens
the Rofi power menu
Expand Down

0 comments on commit fa78a2b

Please sign in to comment.