diff options
-rw-r--r-- | .config/i3/config | 4 | ||||
-rwxr-xr-x | .local/bin/screenshot.sh | 11 | ||||
-rwxr-xr-x | .local/bin/ttl.sh | 11 |
3 files changed, 24 insertions, 2 deletions
diff --git a/.config/i3/config b/.config/i3/config index c06ea59..16aa2c6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -21,8 +21,8 @@ bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ t bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle # Screenshot via ImageMagick -bindsym --release Shift+Print exec --no-startup-id import screenshot.png && xclip -selection clipboard -target image/png -i < screenshot.png && rm screenshot.png -bindsym --release Print exec --no-startup-id import -window root screenshot.png && xclip -selection clipboard -target image/png -i < screenshot.png && rm screenshot.png +bindsym --release Shift+Print exec --no-startup-id screenshot.sh +bindsym --release Print exec --no-startup-id screenshot.sh -window root # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod diff --git a/.local/bin/screenshot.sh b/.local/bin/screenshot.sh new file mode 100755 index 0000000..0fa365a --- /dev/null +++ b/.local/bin/screenshot.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Screenshot via ImageMagick +# Passes all args down to import command + +SCREENSHOTS_DIR=$HOME/Pictures/Screenshots +FILENAME=$SCREENSHOTS_DIR/$(date +%F_%H-%M-%S).png + +echo "$@" + +mkdir -p $SCREENSHOTS_DIR +import $@ $FILENAME && xclip -selection clipboard -target image/png -i < $FILENAME diff --git a/.local/bin/ttl.sh b/.local/bin/ttl.sh new file mode 100755 index 0000000..2fa2a16 --- /dev/null +++ b/.local/bin/ttl.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Fix default TTL and disable ipv6 making changes permanent +# TODO: replace wlo1 with automatically detected device name + +sudo sysctl \ + net.ipv4.ip_default_ttl=65 \ + net.ipv6.conf.all.disable_ipv6=1\ + net.ipv6.conf.default.disable_ipv6=1 \ + net.ipv6.conf.wlo1.disable_ipv6=1 \ + | sudo tee /etc/sysctl.d/fix-ttl.conf -a + |