Skip to content

Commit c20579d

Browse files
committed
basic readme, package details
1 parent ae1c369 commit c20579d

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.org

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#+TITLE: StumpWM scratchpads
2+
3+
* Origin
4+
Adapted from code as part of @herbertjones [StumpWM Config](https://github.com/herbertjones/my-stumpwm-config).
5+
6+
* Description
7+
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.
8+
9+
* Usage
10+
Load it as a module after copying it somewhere, e.g. ~~/stumpwm~:
11+
#+begin_src elisp
12+
(set-module-dir "~/stumpwm")
13+
(load-module "scratchpad")
14+
#+end_src
15+
16+
Then can bind a key to run or raise a program, e.g. a floating termite window:
17+
#+begin_src lisp
18+
(defcommand scratchpad-term () ()
19+
(scratchpad:toggle-floating-scratchpad "term" "termite"
20+
:initial-gravity :center
21+
:initial-width 1900
22+
:initial-height 1200))
23+
(define-key *top-map* (kbd "s-t") "scratchpad-term")
24+
#+end_src
25+
26+
* License
27+
[Unlicense](https://unlicense.org/)
28+

scratchpad.asd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
;;;; scratchpad.asd
22

33
(asdf:defsystem #:scratchpad
4-
:description "Toggleable windows"
5-
:author "Your Name <[email protected]>"
6-
:license "Specify license here"
7-
:version "0.0.1"
4+
:description "Toggleable windows module for StumpWM"
5+
:author "John (podiki)"
6+
:license "The Unlicense"
7+
:version "0.1"
88
:serial t
99
:depends-on (#:stumpwm :alexandria :anaphora)
1010
:components ((:file "package")

0 commit comments

Comments
 (0)