aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-24 22:17:00 +0300
committerawy <awy@awy.one>2024-11-24 22:17:00 +0300
commit4301b821835e8e55640312e78777e25c9243e7fb (patch)
treec13ffef33f688e557de9a29dc75c810e65878595
parent13fbd5bc4ecf15e8d9b9578e03f83669f218ee32 (diff)
change stuff
-rwxr-xr-x.config/dwl/autostart7
-rwxr-xr-x.config/dwl/portal1
-rwxr-xr-x.config/dwl/start7
-rwxr-xr-x.local/bin/reloadpipewire7
-rwxr-xr-x.local/bin/reloadsingbox3
5 files changed, 20 insertions, 5 deletions
diff --git a/.config/dwl/autostart b/.config/dwl/autostart
index 075ace9..4f0623d 100755
--- a/.config/dwl/autostart
+++ b/.config/dwl/autostart
@@ -1,12 +1,9 @@
#!/bin/sh
-pipewire & \
-pipewire-pulse & \
-wireplumber & \
+reloadpipewire
swaybg -o DP-2 -i /mnt/ssd/papes/thiemeyer_road_to_samarkand.jpg & \
swaybg -o DP-3 -i /mnt/ssd/papes/thiemeyer_road_to_samarkand.jpg & \
wlr-randr --output DP-3 --mode 2560x1440@239.998001 \
wlr-randr --output DP-2 --mode 2560x1440@165 \
$HOME/.config/dwl/portal & \
dunst & \
-gpg-agent --daemon & \
-sing-box -c /mnt/ssd/settings/config.json run &
+reloadsingbox
diff --git a/.config/dwl/portal b/.config/dwl/portal
index 16f5f61..54fcc4e 100755
--- a/.config/dwl/portal
+++ b/.config/dwl/portal
@@ -2,3 +2,4 @@ sleep 1
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
/lib/xdg-desktop-portal-wlr &
+
diff --git a/.config/dwl/start b/.config/dwl/start
index d20b2d4..36bb503 100755
--- a/.config/dwl/start
+++ b/.config/dwl/start
@@ -9,6 +9,7 @@ export LIBVA_DRIVER_NAME=nvidia
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
+export QT_QPA_PLATFORMTHEME=qt6ct
export XDG_SESSION_TYPE=wayland
export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND=wayland
@@ -23,6 +24,12 @@ export SUDO=doas
export __GL_THREADED_OPTIMIZATIONS=0
+gpg-connect-agent updatestartuptty /bye >/dev/null
+unset SSH_AGENT_PID
+if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
+ export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
+fi
+
mkfifo $XDG_RUNTIME_DIR/statuspipe
someblocks -p > $XDG_RUNTIME_DIR/statuspipe &
dbus-run-session dwl -s '$XDG_CONFIG_HOME/dwl/autostart &> /dev/null' < $XDG_RUNTIME_DIR/statuspipe
diff --git a/.local/bin/reloadpipewire b/.local/bin/reloadpipewire
new file mode 100755
index 0000000..e883493
--- /dev/null
+++ b/.local/bin/reloadpipewire
@@ -0,0 +1,7 @@
+#!/bin/sh
+killall pipewire
+killall pipewire-pulse
+killall wireplumber
+setsid -f pipewire
+setsid -f pipewire-pulse
+setsid -f wireplumber
diff --git a/.local/bin/reloadsingbox b/.local/bin/reloadsingbox
new file mode 100755
index 0000000..731c618
--- /dev/null
+++ b/.local/bin/reloadsingbox
@@ -0,0 +1,3 @@
+#!/bin/sh
+killall sing-box
+setsid -f sing-box -c /mnt/ssd/settings/config.json run