From 625e17bcf1b3cc5193c3e1a1a93ae690c4a774e8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 17 Jun 2023 11:15:28 +0200 Subject: move ~/bin to ~/.local/bin --- .config/sway/config | 4 ++-- .config/waybar/config | 2 +- .local/bin/iwctl-re | 9 +++++++++ .local/bin/screenshot | 3 +++ .zshrc | 2 +- bin/iwctl-re | 9 --------- bin/screenshot | 3 --- 7 files changed, 16 insertions(+), 16 deletions(-) create mode 100755 .local/bin/iwctl-re create mode 100755 .local/bin/screenshot delete mode 100755 bin/iwctl-re delete mode 100755 bin/screenshot diff --git a/.config/sway/config b/.config/sway/config index f06dd33..2db5ca4 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -126,8 +126,8 @@ seat * hide_cursor when-typing enable # set $print_key_code 191 - bindcode $print_key_code exec $HOME/bin/screenshot - bindcode $mod+$print_key_code exec $HOME/bin/screenshot -g "$(slurp)" + bindcode $print_key_code exec $HOME/.local/bin/screenshot + bindcode $mod+$print_key_code exec $HOME/.local/bin/screenshot -g "$(slurp)" # # Moving around: diff --git a/.config/waybar/config b/.config/waybar/config index d32c360..d5750b2 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -38,7 +38,7 @@ "format": "{ipaddr}", "format-disconnected": "Offline", "interval": 1, - "on-click-right": "~/bin/iwctl-re", + "on-click-right": "~/.local/bin/iwctl-re", "on-click-middle": "notify-send 'WLAN Reload' 'Restart iwd.service'; sudo systemctl restart iwd.service" }, "battery": { diff --git a/.local/bin/iwctl-re b/.local/bin/iwctl-re new file mode 100755 index 0000000..4343b30 --- /dev/null +++ b/.local/bin/iwctl-re @@ -0,0 +1,9 @@ +#!/bin/zsh + +notify-send "WLAN Reload" "Disconnect" +iwctl station wlan0 disconnect + +sleep 5 + +notify-send "WLAN Reload" "Reconnect" +iwctl --passphrase $(pass router/passphrase) station wlan0 connect "$(pass router/name)" $(pass router/security) diff --git a/.local/bin/screenshot b/.local/bin/screenshot new file mode 100755 index 0000000..78b6d19 --- /dev/null +++ b/.local/bin/screenshot @@ -0,0 +1,3 @@ +#!/bin/zsh + +GRIM_DEFAULT_DIR=$HOME/Images/Screenshots grim $@ diff --git a/.zshrc b/.zshrc index 091aae5..82ae926 100644 --- a/.zshrc +++ b/.zshrc @@ -30,6 +30,6 @@ alias nnn="nnn -a -A -d -D -i -U" # nix alias nix-shell="nix-shell --run \$SHELL" -export PATH=$PATH:~/bin +export PATH=$PATH:~/.local/bin eval "$(starship init zsh)" diff --git a/bin/iwctl-re b/bin/iwctl-re deleted file mode 100755 index 4343b30..0000000 --- a/bin/iwctl-re +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/zsh - -notify-send "WLAN Reload" "Disconnect" -iwctl station wlan0 disconnect - -sleep 5 - -notify-send "WLAN Reload" "Reconnect" -iwctl --passphrase $(pass router/passphrase) station wlan0 connect "$(pass router/name)" $(pass router/security) diff --git a/bin/screenshot b/bin/screenshot deleted file mode 100755 index 78b6d19..0000000 --- a/bin/screenshot +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/zsh - -GRIM_DEFAULT_DIR=$HOME/Images/Screenshots grim $@ -- cgit v1.2.3