summaryrefslogtreecommitdiff
path: root/bin/wminit
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-15 22:34:35 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-15 22:34:35 -0500
commitc40794b2040330ec2625bedf7df961115680c08b (patch)
tree4ff1d4fda76d5d59d5d3604a015cc474438ab470 /bin/wminit
parent8fdacc55625a04f94d3e364d53aeec84bc93f6be (diff)
update bin
Diffstat (limited to 'bin/wminit')
-rwxr-xr-xbin/wminit13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/wminit b/bin/wminit
new file mode 100755
index 0000000..8d7d313
--- /dev/null
+++ b/bin/wminit
@@ -0,0 +1,13 @@
+#!/command/execlineb -P
+importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR
+if { forx var { WAYLAND_DISPLAY DISPLAY HYPRLAND_INSTANCE_SIGNATURE }
+ importas -i value ${var}
+ redirfd -w 1 ${XDG_RUNTIME_DIR}/wl_env/${var} printf "%s\n" ${value}
+}
+if { dbus-update-activation-environment
+ WAYLAND_DISPLAY
+ DISPLAY
+ HYPRLAND_INSTANCE_SIGNATURE
+ XDG_CURRENT_DESKTOP
+}
+redirfd -w 1 ${XDG_RUNTIME_DIR}/service/hyprland/data/ready printf "\n"