diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2021-07-21 15:05:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 15:05:28 +0200 |
commit | 2e6876e6c1109673db2527c4349fbdac0f1557fe (patch) | |
tree | 7e0028cede47398c74056c92af30c515bc8f9579 /scripts/.local | |
parent | 26d393eacb0468edeed62befe365c1ae0752a680 (diff) | |
parent | cf3eefda31e98d4725a64000861a388ba7708c62 (diff) | |
download | dotfiles-2e6876e6c1109673db2527c4349fbdac0f1557fe.tar.gz |
Merge pull request #2 from eug-vs/feat/stow
feat!: move to GNU Stow, remove wiki
Diffstat (limited to 'scripts/.local')
-rwxr-xr-x | scripts/.local/bin/screenshot.sh | 11 | ||||
-rwxr-xr-x | scripts/.local/bin/tmux-kill-menu.sh | 2 | ||||
-rwxr-xr-x | scripts/.local/bin/tmuxinator-menu.sh | 5 | ||||
-rwxr-xr-x | scripts/.local/bin/ttl.sh | 11 | ||||
-rwxr-xr-x | scripts/.local/bin/wallpaper.sh | 4 | ||||
-rwxr-xr-x | scripts/.local/bin/webcam.sh | 1 |
6 files changed, 34 insertions, 0 deletions
diff --git a/scripts/.local/bin/screenshot.sh b/scripts/.local/bin/screenshot.sh new file mode 100755 index 0000000..66d9c5c --- /dev/null +++ b/scripts/.local/bin/screenshot.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# 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/scripts/.local/bin/tmux-kill-menu.sh b/scripts/.local/bin/tmux-kill-menu.sh new file mode 100755 index 0000000..e910a4d --- /dev/null +++ b/scripts/.local/bin/tmux-kill-menu.sh @@ -0,0 +1,2 @@ +#!/bin/sh +tmux ls -F "#{session_name}" | dmenu -l 10 | xargs tmux kill-session -t diff --git a/scripts/.local/bin/tmuxinator-menu.sh b/scripts/.local/bin/tmuxinator-menu.sh new file mode 100755 index 0000000..4dfcc14 --- /dev/null +++ b/scripts/.local/bin/tmuxinator-menu.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +PROJECTS_DIR=~/.config/tmuxinator + +ls $PROJECTS_DIR | sed 's/\.yml//g' | dmenu -l 10 | xargs tmuxinator start diff --git a/scripts/.local/bin/ttl.sh b/scripts/.local/bin/ttl.sh new file mode 100755 index 0000000..20c13e5 --- /dev/null +++ b/scripts/.local/bin/ttl.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# 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 + diff --git a/scripts/.local/bin/wallpaper.sh b/scripts/.local/bin/wallpaper.sh new file mode 100755 index 0000000..4d52bdb --- /dev/null +++ b/scripts/.local/bin/wallpaper.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Launch SXIV in wallpapers dir, C-x-w to set wallpaper + +sxiv -t ~/Pictures/Wallpapers diff --git a/scripts/.local/bin/webcam.sh b/scripts/.local/bin/webcam.sh new file mode 100755 index 0000000..3a0cbff --- /dev/null +++ b/scripts/.local/bin/webcam.sh @@ -0,0 +1 @@ +mpv av://v4l2:/dev/video0 --profile=low-latency --untimed -vf "hflip" |