Skip to content

podiki/scratchpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StumpWM scratchpads

Origin

Adapted from code as part of Herbert Jones’s StumpWM config and discussed on this thread at 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~:

(set-module-dir "~/stumpwm")
(load-module "scratchpad")

Then can bind a key to run or raise a program, e.g. a floating termite window:

(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")

License

Unlicense

About

Toggleable windows module for StumpWM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published