Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/podiki/scratchpad
Toggleable windows module for StumpWM
https://github.com/podiki/scratchpad
common-lisp stumpwm
Last synced: about 2 months ago
JSON representation
Toggleable windows module for StumpWM
- Host: GitHub
- URL: https://github.com/podiki/scratchpad
- Owner: podiki
- License: unlicense
- Created: 2019-07-05T19:05:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T19:36:42.000Z (over 5 years ago)
- Last Synced: 2024-08-02T21:38:33.021Z (5 months ago)
- Topics: common-lisp, stumpwm
- Language: Common Lisp
- Size: 6.84 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
- awesome-stumpwm - scratchpads - Toggleable windows module (Modules)
README
#+TITLE: StumpWM scratchpads
* Origin
Adapted from code as part of [[https://github.com/herbertjones/my-stumpwm-config][Herbert Jones's StumpWM config]] and discussed on [[https://www.reddit.com/r/stumpwm/comments/98q287/scratchpad/][this thread]] at [[https://www.reddit.com/r/stumpwm/][r/stumpwm]].* Description
Provides functions (and thus easy keybindings) to raise or hide windows in a split or as a floating window. For example, can have a keybinding to provide a terminal to execute quick commands and then hide it until needed again, or to show a chat program when needed.* Usage
Load it as a module after copying it somewhere, e.g. ~~/stumpwm~:
#+begin_src elisp
(set-module-dir "~/stumpwm")
(load-module "scratchpad")
#+end_srcThen can bind a key to run or raise a program, e.g. a floating termite window:
#+begin_src lisp
(defcommand scratchpad-term () ()
(scratchpad:toggle-floating-scratchpad "term" "termite"
:initial-gravity :center
:initial-width 1900
:initial-height 1200))
(define-key *top-map* (kbd "s-t") "scratchpad-term")
#+end_src* License
[[https://unlicense.org/][Unlicense]]