added stuff
This commit is contained in:
parent
e1c8f30eb3
commit
778a5f259a
|
@ -155,6 +155,7 @@ in {
|
|||
cifs-utils
|
||||
ffmpeg
|
||||
pulsemixer
|
||||
wineWowPackages.staging
|
||||
xorg.xhost
|
||||
swaybg
|
||||
swww
|
||||
|
|
|
@ -116,6 +116,8 @@ bind = $mainMod, D, exec, dmenu_path | fuzzel -d | sh
|
|||
bind = $mainMod SHIFT, P, exec, ~/scripts/password-select.sh
|
||||
bind = $mainMod SHIFT, U, exec, ~/scripts/usernames.sh
|
||||
bind = $mainMod SHIFT, O, exec, ~/scripts/otp.sh
|
||||
bind = $mainMod SHIFT, D, exec, ~/scripts/down.sh
|
||||
bind = $mainMod, U, exec, ~/scripts/up.sh
|
||||
bind = $mainMod SHIFT, L, exec, hyprlock
|
||||
bind = $mainMod SHIFT, S, exec, grimblast save area ss.png && wl-copy < ss.png
|
||||
bind = $mainMod SHIFT, R, forcerendererreload
|
||||
|
|
18
dotfiles/scripts/down.sh
Executable file
18
dotfiles/scripts/down.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$(sudo wg)" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
TEXT=$(sudo wg | head -n1)
|
||||
|
||||
readarray -d ": " -t strarr <<< "$TEXT"
|
||||
|
||||
INTERFACE=${strarr[1]}
|
||||
|
||||
echo $INTERFACE > /tmp/interface
|
||||
|
||||
sudo wg-quick down $INTERFACE
|
||||
|
||||
notify-send "Deactivated interface $(cat /tmp/interface)"
|
||||
|
6
dotfiles/scripts/up.sh
Executable file
6
dotfiles/scripts/up.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
sudo wg-quick up $(cat /tmp/interface)
|
||||
|
||||
notify-send "Activated interface $(cat /tmp/interface)"
|
||||
|
Loading…
Reference in a new issue