Added scrot for taking screenshots
| Author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-14 19:50:49 +0200 |
| Committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-14 19:50:49 +0200 |
| Commit | df59a15732be35ab4d3ec4ff49a4e90afadd369d (patch) |
|
-rw-r--r-- |
i3config | 3 | |
-rwxr-xr-x |
shenanigans.sh | 6 |
2 files changed, 8 insertions, 1 deletions
| diff --git a/i3config b/i3config | |||
| ... | |||
| 42 | bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status |
42 | bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status |
| 43 | bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status |
43 | bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status |
| 44 | 44 | ||
| 45 | # Take screeshot |
||
| 46 | bindsym --release $mod+z exec scrot -s - | xclip -selection clipboard -target image/png |
||
| 47 | |||
| 45 | # Use Mouse+$mod to drag floating windows to their wanted position |
48 | # Use Mouse+$mod to drag floating windows to their wanted position |
| 46 | floating_modifier $mod |
49 | floating_modifier $mod |
| 47 | 50 | ||
| ... | |||
| diff --git a/shenanigans.sh b/shenanigans.sh | |||
| 1 | # Software list. |
1 | # Software list. |
| 2 | # cifs-utils tree hstr s3cmd xclip mc gnupg ripgrep jq xmlstarlet htop nvtop newsboat tmux ctags vim picom |
2 | # cifs-utils tree hstr s3cmd xclip mc gnupg ripgrep jq xmlstarlet htop nvtop newsboat tmux ctags vim picom scrot |
| 3 | 3 | ||
| 4 | # Magical environment variables. |
4 | # Magical environment variables. |
| 5 | 5 | ||
| ... | |||
| 63 | if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi |
63 | if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi |
| 64 | 64 | ||
| 65 | # Useful function. Much wow! |
65 | # Useful function. Much wow! |
| 66 | |||
| 67 | screenshot() { |
||
| 68 | scrot -s -e 'xclip -selection clipboard -t image/png -i $f && rm $f' |
||
| 69 | } |
||
| 66 | 70 | ||
| 67 | backup() { |
71 | backup() { |
| 68 | CWD=$(pwd) |
72 | CWD=$(pwd) |
| ... | |||