aboutsummaryrefslogtreecommitdiff
path: root/.config/dwl
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-24 13:29:56 +0300
committerawy <awy@awy.one>2024-11-24 13:29:56 +0300
commit511afc41829d5626e9e9b84cbc3d4a7c14d63165 (patch)
tree14e7cb05f7206e39828bc49e6689f530615a41b9 /.config/dwl
parent7b52375768323ce6b88156aa48b0d50ec2c8dafc (diff)
upload
Diffstat (limited to '.config/dwl')
-rwxr-xr-x.config/dwl/autostart12
-rwxr-xr-x.config/dwl/portal4
-rwxr-xr-x.config/dwl/start30
3 files changed, 46 insertions, 0 deletions
diff --git a/.config/dwl/autostart b/.config/dwl/autostart
new file mode 100755
index 0000000..075ace9
--- /dev/null
+++ b/.config/dwl/autostart
@@ -0,0 +1,12 @@
+#!/bin/sh
+pipewire & \
+pipewire-pulse & \
+wireplumber & \
+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 &
diff --git a/.config/dwl/portal b/.config/dwl/portal
new file mode 100755
index 0000000..16f5f61
--- /dev/null
+++ b/.config/dwl/portal
@@ -0,0 +1,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
new file mode 100755
index 0000000..d20b2d4
--- /dev/null
+++ b/.config/dwl/start
@@ -0,0 +1,30 @@
+#!/bin/sh
+export XDG_RUNTIME_DIR=/tmp/xdg-runtime-$(id -u)
+mkdir -p $XDG_RUNTIME_DIR
+chmod 0700 $XDG_RUNTIME_DIR
+
+export QT_SCALE_FACTOR=1
+export GBM_BACKEND=nvidia-drm
+export LIBVA_DRIVER_NAME=nvidia
+export __GLX_VENDOR_LIBRARY_NAME=nvidia
+export QT_QPA_PLATFORM=wayland
+export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
+export XDG_SESSION_TYPE=wayland
+export MOZ_ENABLE_WAYLAND=1
+export GDK_BACKEND=wayland
+export WLR_NO_HARDWARE_CURSORS=1
+export XDG_CURRENT_DESKTOP=wlr
+export XDG_SESSION_DESKTOP=wlr
+export SDL_VIDEODRIVER=wayland
+export CLUTTER_BACKEND=wayland
+export ELECTRON_OZONE_PLATFORM_HINT=auto
+export EDITOR=nvim
+export SUDO=doas
+
+export __GL_THREADED_OPTIMIZATIONS=0
+
+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
+killall someblocks
+rm $XDG_RUNTIME_DIR/statuspipe