From ad4550d6060c76a21fce0148e80d112c5fb93ba5 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Fri, 31 May 2019 13:10:48 +0200 Subject: [PATCH] Removed .sh extension from scripts --- ...less-desktop.sh => build-suckless-desktop} | 0 bin/.local/bin/{vpn-switch.sh => vpn-switch} | 0 clean-dead-symlinks.sh => clean-dead-symlinks | 0 dwm/.dwm/autostart.sh | 8 ++++---- .../bin/screen_desktop} | 0 dwm/.xbindkeysrc | 8 ++++---- install.sh => install | 0 .../bin/{notmuch-hook.sh => notmuch-hook} | 0 newsboat/.config/newsboat/config | 2 +- restic/.config/systemd/user/restic.service | 2 +- restic/.local/bin/{backup.sh => backup} | 0 .../bin/{linkhandler.sh => linkhandler} | 0 vifm/.config/vifm/vifmrc | 6 +++--- ...rate-lock-image.sh => generate-lock-image} | 0 ...round-image.sh => switch-background-image} | 0 wireguard/.scripts/vpn-switch.sh | 20 ------------------- 16 files changed, 13 insertions(+), 33 deletions(-) rename bin/.local/bin/{build-suckless-desktop.sh => build-suckless-desktop} (100%) rename bin/.local/bin/{vpn-switch.sh => vpn-switch} (100%) rename clean-dead-symlinks.sh => clean-dead-symlinks (100%) rename dwm/{.screenlayout/screen_desktop.sh => .local/bin/screen_desktop} (100%) rename install.sh => install (100%) rename mutt/.local/bin/{notmuch-hook.sh => notmuch-hook} (100%) rename restic/.local/bin/{backup.sh => backup} (100%) rename urlscan/.local/bin/{linkhandler.sh => linkhandler} (100%) rename vifm/.local/bin/{generate-lock-image.sh => generate-lock-image} (100%) rename vifm/.local/bin/{switch-background-image.sh => switch-background-image} (100%) delete mode 100755 wireguard/.scripts/vpn-switch.sh diff --git a/bin/.local/bin/build-suckless-desktop.sh b/bin/.local/bin/build-suckless-desktop similarity index 100% rename from bin/.local/bin/build-suckless-desktop.sh rename to bin/.local/bin/build-suckless-desktop diff --git a/bin/.local/bin/vpn-switch.sh b/bin/.local/bin/vpn-switch similarity index 100% rename from bin/.local/bin/vpn-switch.sh rename to bin/.local/bin/vpn-switch diff --git a/clean-dead-symlinks.sh b/clean-dead-symlinks similarity index 100% rename from clean-dead-symlinks.sh rename to clean-dead-symlinks diff --git a/dwm/.dwm/autostart.sh b/dwm/.dwm/autostart.sh index 0624ce9..b3fffb5 100755 --- a/dwm/.dwm/autostart.sh +++ b/dwm/.dwm/autostart.sh @@ -6,16 +6,16 @@ SCREENCOUNT=$(xrandr | grep -c "\*") # If multi screen add special mode for monitor so it supports 1440p over HDMI if [ "$SCREENCOUNT" -eq 2 ] then - if [ -f "$HOME/.screenlayout/screen_desktop.sh" ] + if [ -f "$HOME/.local/bin/screen_desktop" ] then - /bin/sh ~/.screenlayout/screen_desktop.sh + screen_desktop # Make sure mouse is on main screen so windows are launched there xdotool mousemove 3360 1080 fi else - if [ -f "$HOME/.screenlayout/screen.sh" ] + if [ -f "$HOME/.local/bin/screen" ] then - /bin/sh ~/.screenlayout/screen.sh + screen fi fi diff --git a/dwm/.screenlayout/screen_desktop.sh b/dwm/.local/bin/screen_desktop similarity index 100% rename from dwm/.screenlayout/screen_desktop.sh rename to dwm/.local/bin/screen_desktop diff --git a/dwm/.xbindkeysrc b/dwm/.xbindkeysrc index 3341cea..04435ae 100644 --- a/dwm/.xbindkeysrc +++ b/dwm/.xbindkeysrc @@ -15,11 +15,11 @@ Mod4 + Print # Audio controls -"pactl set-sink-volume 0 +5%" +"pactl set-sink-volume @DEFAULT_SINK@ +5%" XF86AudioRaiseVolume -"pactl set-sink-volume 0 -5%" +"pactl set-sink-volume @DEFAULT_SINK@ -5%" XF86AudioLowerVolume -"pactl set-sink-mute 0 toggle" +"pactl set-sink-mute @DEFAULT_SINK@ toggle" XF86AudioMute # Screen brightness controls @@ -49,5 +49,5 @@ Mod4 + p # Wireguard -"~/.scripts/vpn-switch.sh" +"~/.scripts/vpn-switch" Mod4 + w diff --git a/install.sh b/install similarity index 100% rename from install.sh rename to install diff --git a/mutt/.local/bin/notmuch-hook.sh b/mutt/.local/bin/notmuch-hook similarity index 100% rename from mutt/.local/bin/notmuch-hook.sh rename to mutt/.local/bin/notmuch-hook diff --git a/newsboat/.config/newsboat/config b/newsboat/.config/newsboat/config index a485af0..ff97cbc 100644 --- a/newsboat/.config/newsboat/config +++ b/newsboat/.config/newsboat/config @@ -9,7 +9,7 @@ show-read-feeds no show-read-articles no auto-reload yes reload-time 10 -external-url-viewer "urlscan -dc -r 'linkhandler.sh {}'" +external-url-viewer "urlscan -dc -r 'linkhandler {}'" notify-program "/usr/bin/notify-send" bind-key ^R reload-all diff --git a/restic/.config/systemd/user/restic.service b/restic/.config/systemd/user/restic.service index eaae0ff..a3483e8 100644 --- a/restic/.config/systemd/user/restic.service +++ b/restic/.config/systemd/user/restic.service @@ -2,7 +2,7 @@ Description=Restic Backup [Service] -ExecStart=/home/alrayyes/.local/bin/backup.sh +ExecStart=/home/alrayyes/.local/bin/backup [Install] WantedBy=default.target diff --git a/restic/.local/bin/backup.sh b/restic/.local/bin/backup similarity index 100% rename from restic/.local/bin/backup.sh rename to restic/.local/bin/backup diff --git a/urlscan/.local/bin/linkhandler.sh b/urlscan/.local/bin/linkhandler similarity index 100% rename from urlscan/.local/bin/linkhandler.sh rename to urlscan/.local/bin/linkhandler diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index 242b053..8ab2c38 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -145,9 +145,9 @@ command! mkcd :mkdir %a | cd %a command! vgrep nvim "+grep %a" command! reload :write | restart command! ncdu ncdu %d 2> /dev/null -command! lockwallpaper generate-lock-image.sh %f 2> /dev/null -command! backgroundwallpaperone switch-background-image.sh %f 1 2> /dev/null -command! backgroundwallpapertwo switch-background-image.sh %f 2 2> /dev/null +command! lockwallpaper generate-lock-image %f 2> /dev/null +command! backgroundwallpaperone switch-background-image %f 1 2> /dev/null +command! backgroundwallpapertwo switch-background-image %f 2 2> /dev/null " Fuzzy file search command! FZFfind :set noquickview | :execute 'goto "'.system('find | fzf --height 10 2>/dev/tty ').'"%IU' | redraw diff --git a/vifm/.local/bin/generate-lock-image.sh b/vifm/.local/bin/generate-lock-image similarity index 100% rename from vifm/.local/bin/generate-lock-image.sh rename to vifm/.local/bin/generate-lock-image diff --git a/vifm/.local/bin/switch-background-image.sh b/vifm/.local/bin/switch-background-image similarity index 100% rename from vifm/.local/bin/switch-background-image.sh rename to vifm/.local/bin/switch-background-image diff --git a/wireguard/.scripts/vpn-switch.sh b/wireguard/.scripts/vpn-switch.sh deleted file mode 100755 index 08ab8c9..0000000 --- a/wireguard/.scripts/vpn-switch.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -### -# Switch wireguard vpns up/down -### - -STATUS="$(nmcli device status | grep -c wg0)" - -case $STATUS in - 1) - sudo wg-quick down wg0 - sudo wg-quick down wg1 - notify-send "down" - ;; - *) - sudo wg-quick up wg0 - sudo wg-quick up wg1 - notify-send "up" - ;; - esac