diff options
| 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) | |
| tree | 4d2c4e7cd82ea3360b29589c8dc680c76901d4f4 | |
| parent | 7f926ce106aabba97c1f4530ba15bf564a93c18b (diff) | |
| download | dotfiles-df59a15732be35ab4d3ec4ff49a4e90afadd369d.tar.gz | |
Added scrot for taking screenshots
| -rw-r--r-- | i3config | 3 | ||||
| -rwxr-xr-x | shenanigans.sh | 6 |
2 files changed, 8 insertions, 1 deletions
| @@ -42,6 +42,9 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT | |||
| 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 index 5a4bde9..44fa5ba 100755 --- a/shenanigans.sh +++ b/shenanigans.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 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 | ||
| @@ -64,6 +64,10 @@ 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 | 66 | ||
| 67 | screenshot() { | ||
| 68 | scrot -s -e 'xclip -selection clipboard -t image/png -i $f && rm $f' | ||
| 69 | } | ||
| 70 | |||
| 67 | backup() { | 71 | backup() { |
| 68 | CWD=$(pwd) | 72 | CWD=$(pwd) |
| 69 | VHOME=/home/$USER/Vault | 73 | VHOME=/home/$USER/Vault |
