executable_looking-glass-client-wrapper 610 B

123456789101112131415161718192021
  1. #!/run/current-system/profile/bin/guile \
  2. -e main -s
  3. !#
  4. (define %display
  5. (and=> (getenv "DISPLAY")
  6. (lambda (display)
  7. display)))
  8. (define (main args)
  9. (when %display
  10. (display "Disable DPMS and screensaver.\n" (current-error-port))
  11. (system* "xset" "s" "off")
  12. (system* "xset" "-dpms"))
  13. (apply system* (append '("looking-glass-client"
  14. "spice:enable" "no"
  15. "wayland:warpSupport" "no"
  16. "input:grabKeyboard" "no"
  17. "win:dontUpscale" "yes")
  18. (cdr args))))