aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-10-14 19:50:49 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-10-14 19:50:49 +0200
commitdf59a15732be35ab4d3ec4ff49a4e90afadd369d (patch)
tree4d2c4e7cd82ea3360b29589c8dc680c76901d4f4
parent7f926ce106aabba97c1f4530ba15bf564a93c18b (diff)
downloaddotfiles-df59a15732be35ab4d3ec4ff49a4e90afadd369d.tar.gz
Added scrot for taking screenshots
-rw-r--r--i3config3
-rwxr-xr-xshenanigans.sh6
2 files changed, 8 insertions, 1 deletions
diff --git a/i3config b/i3config
index fea0413..2eeb915 100644
--- a/i3config
+++ b/i3config
@@ -42,6 +42,9 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
42bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status 42bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
43bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status 43bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
44 44
45# Take screeshot
46bindsym --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
46floating_modifier $mod 49floating_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
67screenshot() {
68 scrot -s -e 'xclip -selection clipboard -t image/png -i $f && rm $f'
69}
70
67backup() { 71backup() {
68 CWD=$(pwd) 72 CWD=$(pwd)
69 VHOME=/home/$USER/Vault 73 VHOME=/home/$USER/Vault