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:
parent
6d0db786d6
commit
ad4550d606
@ -6,16 +6,16 @@ SCREENCOUNT=$(xrandr | grep -c "\*")
|
|||||||
# If multi screen add special mode for monitor so it supports 1440p over HDMI
|
# If multi screen add special mode for monitor so it supports 1440p over HDMI
|
||||||
if [ "$SCREENCOUNT" -eq 2 ]
|
if [ "$SCREENCOUNT" -eq 2 ]
|
||||||
then
|
then
|
||||||
if [ -f "$HOME/.screenlayout/screen_desktop.sh" ]
|
if [ -f "$HOME/.local/bin/screen_desktop" ]
|
||||||
then
|
then
|
||||||
/bin/sh ~/.screenlayout/screen_desktop.sh
|
screen_desktop
|
||||||
# Make sure mouse is on main screen so windows are launched there
|
# Make sure mouse is on main screen so windows are launched there
|
||||||
xdotool mousemove 3360 1080
|
xdotool mousemove 3360 1080
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -f "$HOME/.screenlayout/screen.sh" ]
|
if [ -f "$HOME/.local/bin/screen" ]
|
||||||
then
|
then
|
||||||
/bin/sh ~/.screenlayout/screen.sh
|
screen
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
Mod4 + Print
|
Mod4 + Print
|
||||||
|
|
||||||
# Audio controls
|
# Audio controls
|
||||||
"pactl set-sink-volume 0 +5%"
|
"pactl set-sink-volume @DEFAULT_SINK@ +5%"
|
||||||
XF86AudioRaiseVolume
|
XF86AudioRaiseVolume
|
||||||
"pactl set-sink-volume 0 -5%"
|
"pactl set-sink-volume @DEFAULT_SINK@ -5%"
|
||||||
XF86AudioLowerVolume
|
XF86AudioLowerVolume
|
||||||
"pactl set-sink-mute 0 toggle"
|
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
||||||
XF86AudioMute
|
XF86AudioMute
|
||||||
|
|
||||||
# Screen brightness controls
|
# Screen brightness controls
|
||||||
@ -49,5 +49,5 @@
|
|||||||
Mod4 + p
|
Mod4 + p
|
||||||
|
|
||||||
# Wireguard
|
# Wireguard
|
||||||
"~/.scripts/vpn-switch.sh"
|
"~/.scripts/vpn-switch"
|
||||||
Mod4 + w
|
Mod4 + w
|
||||||
|
@ -9,7 +9,7 @@ show-read-feeds no
|
|||||||
show-read-articles no
|
show-read-articles no
|
||||||
auto-reload yes
|
auto-reload yes
|
||||||
reload-time 10
|
reload-time 10
|
||||||
external-url-viewer "urlscan -dc -r 'linkhandler.sh {}'"
|
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
|
||||||
notify-program "/usr/bin/notify-send"
|
notify-program "/usr/bin/notify-send"
|
||||||
|
|
||||||
bind-key ^R reload-all
|
bind-key ^R reload-all
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Description=Restic Backup
|
Description=Restic Backup
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/home/alrayyes/.local/bin/backup.sh
|
ExecStart=/home/alrayyes/.local/bin/backup
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
@ -145,9 +145,9 @@ command! mkcd :mkdir %a | cd %a
|
|||||||
command! vgrep nvim "+grep %a"
|
command! vgrep nvim "+grep %a"
|
||||||
command! reload :write | restart
|
command! reload :write | restart
|
||||||
command! ncdu ncdu %d 2> /dev/null
|
command! ncdu ncdu %d 2> /dev/null
|
||||||
command! lockwallpaper generate-lock-image.sh %f 2> /dev/null
|
command! lockwallpaper generate-lock-image %f 2> /dev/null
|
||||||
command! backgroundwallpaperone switch-background-image.sh %f 1 2> /dev/null
|
command! backgroundwallpaperone switch-background-image %f 1 2> /dev/null
|
||||||
command! backgroundwallpapertwo switch-background-image.sh %f 2 2> /dev/null
|
command! backgroundwallpapertwo switch-background-image %f 2 2> /dev/null
|
||||||
|
|
||||||
" Fuzzy file search
|
" Fuzzy file search
|
||||||
command! FZFfind :set noquickview | :execute 'goto "'.system('find | fzf --height 10 2>/dev/tty ').'"%IU' | redraw
|
command! FZFfind :set noquickview | :execute 'goto "'.system('find | fzf --height 10 2>/dev/tty ').'"%IU' | redraw
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user