Guest User

Untitled

a guest
Jul 5th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.15 KB | None | 0 0
  1. ;;; The very basic config for StumpWM.
  2.  
  3. ;; Terminal
  4. (defcommand rxvt () () (run-or-raise "rxvt -fg white -bg black -cr grey +sb -geometry 80x40 -sl 5000" '(:class "rxvt")))
  5. (define-key *root-map* (kbd "c") "rxvt")
  6.  
  7. ;; Web browsers
  8. (defcommand firefox () () (run-or-raise "firefox" '(:class "firefox")))
  9. (defcommand google-chrome () () (run-or-raise "google-chrome" '(:class "google-chrome")))
  10. (define-key *root-map* (kbd "f") "firefox")
  11. (define-key *root-map* (kbd "x") "google-chrome")
  12.  
  13. ;; Office
  14. (defcommand acroread () () (run-or-raise "~/bin/acroread" '(:class "acroread")))
  15. (defcommand libreoffice () () (run-or-raise "/usr/bin/libreoffice" '(:class "libreoffice")))
  16. (define-key *root-map* (kbd "l") "libreoffice")
  17. (define-key *root-map* (kbd "M-a") "acroread")
  18.  
  19. ;; Wi-Fi
  20. (defcommand wicd () () (run-or-raise "/usr/bin/wicd-gtk --no-tray" '(:class "wicd")))
  21. (define-key *root-map* (kbd "w") "wicd")
  22.  
  23. ;; System
  24. (defcommand suspend () () (run-or-raise "sudo /usr/sbin/pm-suspend" '(:class "pm")))
  25. (defcommand aumix () () (run-or-raise "aumix" '(:class "aumix")))
  26. (define-key *root-map* (kbd "M-s") "suspend")
  27. (define-key *root-map* (kbd "a") "aumix")
Add Comment
Please, Sign In to add comment