Guest User

sudo nano /usr/sbin/MST.sh

a guest
Mar 14th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1. #!/bin/bash
  2. #DISPLAY=:0.1 Xephyr :2 -dpi 96 -fullscreen -screen $secondmonres -nolisten tcp -sw-cursor &
  3. secondmonres=1024x768
  4. thirdmonres=1280x1024
  5. secondmonkbd=/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-kbd
  6. secondmonmice=/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse
  7. sudo INPDEV.sh
  8. sh ~/.screenlayout/screen.sh
  9. sleep 5
  10. setxkbmap -option grp:switch,grp:ctrl_shift_toggle,grp_led:scroll us,ru
  11. x11vnc -forever -alwaysshared &
  12. sleep 5
  13. Xephyr :2 -dpi 96 -screen $secondmonres -nolisten tcp -sw-cursor -keybd evdev,,device=$secondmonkbd -mouse evdev,,device=$secondmonmice &
  14. sleep 1
  15. Xephyr :3 -dpi 96 -screen $thirdmonres -nolisten tcp -sw-cursor &
  16. sleep 5
  17. xdotool search --name "Xephyr on :2" set_window --name "Xephyr2"
  18. sleep 1
  19. xdotool search --name "Xephyr on :3" set_window --name "Xephyr3"
  20. sleep 2
  21. wmctrl -r "Xephyr2" -e 0,1281,0,1024,768
  22. sleep 1
  23. wmctrl -r "Xephyr3" -e 0,2305,0,1280,1024
  24. sleep 2
  25. wmctrl -r Xephyr2 -b toggle,fullscreen
  26. sleep 1
  27. wmctrl -r Xephyr3 -b toggle,fullscreen
  28. sleep 1
  29. xprop -name Xephyr2 -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_SKIP_TASKBAR
  30. sleep 1
  31. xprop -name Xephyr3 -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_SKIP_TASKBAR
  32.  
Advertisement
Add Comment
Please, Sign In to add comment