OSDN Git Service

add wmautostart
authorpaperbenni <paperbenni@gmail.com>
Fri, 9 Oct 2020 13:50:51 +0000 (15:50 +0200)
committerpaperbenni <paperbenni@gmail.com>
Fri, 9 Oct 2020 13:50:51 +0000 (15:50 +0200)
autostart.sh
wmautostart.sh [new file with mode: 0644]

index aad830a..941cfd7 100755 (executable)
@@ -16,6 +16,9 @@ else
     instantutils default
 fi
 
+# apply wm settings
+/usr/share/instantutils/wmautostart.sh
+
 # architecture detection
 if [ -z "$1" ]; then
     if uname -m | grep -q '^arm'; then
diff --git a/wmautostart.sh b/wmautostart.sh
new file mode 100644 (file)
index 0000000..2c204e6
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# gets executed every time the window manager restarts
+
+if iconf defaultlayout
+then
+    instantwmctrl prefix 1
+    sleep 0.1
+    instantwmctrl layout "$(iconf defaultlayout)"
+fi