added stuff

This commit is contained in:
vanten-s 2024-10-26 19:55:54 +02:00
parent e1c8f30eb3
commit 778a5f259a
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
5 changed files with 30 additions and 0 deletions

View file

@ -155,6 +155,7 @@ in {
cifs-utils
ffmpeg
pulsemixer
wineWowPackages.staging
xorg.xhost
swaybg
swww

View file

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

@ -0,0 +1,6 @@
#!/usr/bin/env bash
sudo wg-quick up $(cat /tmp/interface)
notify-send "Activated interface $(cat /tmp/interface)"

View file

@ -15,11 +15,13 @@
home.packages = with pkgs; [
fortune
libnotify
mako
kdePackages.kalgebra
libreoffice
htop
ripgrep
chromium
xwaylandvideobridge
qtpass
pipewire
@ -48,6 +50,7 @@
steam
libei
hyprlock
inkscape
waypaper
];