OSDN Git Service

fix instantshutdown
authorpaperbenni <paperbenni@gmail.com>
Mon, 6 Apr 2020 23:04:31 +0000 (01:04 +0200)
committerpaperbenni <paperbenni@gmail.com>
Mon, 6 Apr 2020 23:04:31 +0000 (01:04 +0200)
programs/instantshutdown
programs/xnest [new file with mode: 0644]

index 46217bb..d859a7b 100755 (executable)
@@ -7,7 +7,8 @@
 answer=$(echo "yes
 no
 logout
-reboot" | instantmenu -n -p "do you want to shut down?")
+reboot
+kill wm" | instantmenu -n -p "do you want to shut down?")
 
 # if there are apps open, ask for confirmation
 zconfirm() {
@@ -39,12 +40,15 @@ r*)
     reboot
     ;;
 
-s*)
+l*)
     zconfirm "sign out"
     rm ~/.instantosrunning
     sleep 0.4
     kill -9 -1
     ;;
+k*)
+    pkill instantwm
+    ;;
 *)
     echo "no choice, not shutting down"
     ;;
diff --git a/programs/xnest b/programs/xnest
new file mode 100644 (file)
index 0000000..79908dd
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+Xephyr -br -ac -noreset -screen 800x600 :1 &
+sleep 3
+DISPLAY=:1 $@