android.lisp 505 B

1234567891011121314151617
  1. (in-package :stumpwm)
  2. (defcommand xclip-kdeconnect-handler () ()
  3. "Open URL on Android device via KDE Connect."
  4. (let ((clipboard (get-x-selection)))
  5. (run-shell-command
  6. (join `("kdeconnect-handler" ,clipboard)))
  7. (message (concat "Open URL on Android " clipboard))))
  8. (defcommand scrcpy () ()
  9. (run-shell-command "scrcpy --max-fps 30 --turn-screen-off"))
  10. (defcommand kdeconnect-indicator () ()
  11. (run-shell-command
  12. (concat (getenv "HOME") "/.guix-profile/bin/kdeconnect-indicator")))