diff --git a/.config/sway/config b/.config/sway/config index 3a4c1ed..c4db425 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -58,8 +58,10 @@ bindsym --to-code $mod+n exec $term -e newsboat for_window [app_id="in_scratchpad"] move container to scratchpad, focus # powermenu -bindsym --to-code $mod+SHIFT+BackSpace exec ~/.config/tofi/powermenu.sh +bindsym --to-code $mod+SHIFT+BackSpace exec ~/Scripts/tofi/powermenu.sh +# vpn selector +bindsym --to-code $mod+SHIFT+v exec ~/Scripts/tofi/select_vpn.sh # drag floating windows by holding down $mod and left mouse button. # resize them with right mouse button + $mod. diff --git a/.config/tofi/powermenu.sh b/.config/tofi/powermenu.sh deleted file mode 100755 index d0a3828..0000000 --- a/.config/tofi/powermenu.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -op=$( echo -e " Shutdown\n Reboot\n Suspend\n" | tofi | awk '{print tolower($2)}' ) - -case $op in - shutdown) - shutdown now - ;; - reboot) - shutdown -r now - ;; - suspend) - systemctl suspend - ;; -esac diff --git a/.zprofile b/.zprofile index 155aea4..08a8473 100644 --- a/.zprofile +++ b/.zprofile @@ -1,3 +1,5 @@ +export PATH=~/.local/bin:~/.cargo/bin:$PATH + if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then exec sway fi diff --git a/.zshrc b/.zshrc index 86fee96..125cf43 100644 --- a/.zshrc +++ b/.zshrc @@ -24,7 +24,6 @@ alias rutracker='RUTRACKER_USERNAME=$(pass show rutracker | grep -oP "username:\ alias weather='curl wttr.in/tyumen' alias toggle_vpn='sudo toggle_vpn' -export PATH=/home/nikita/.local/bin:~/.cargo/bin:$PATH export WLR_NO_HARDWARE_CURSORS=1 export EDITOR=nvim export SUDO_EDITOR=/usr/bin/nvim