1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Removed .sh extension from scripts

This commit is contained in:
Ryan Kes 2019-05-31 13:10:48 +02:00
parent 6d0db786d6
commit ad4550d606
16 changed files with 13 additions and 33 deletions

View File

@ -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

View File

@ -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

View File

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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