Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Junker/stumpwm-rofi
Rofi module for StumpWM
https://github.com/Junker/stumpwm-rofi
rofi stumpwm
Last synced: 3 months ago
JSON representation
Rofi module for StumpWM
- Host: GitHub
- URL: https://github.com/Junker/stumpwm-rofi
- Owner: Junker
- Created: 2022-06-05T13:13:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T15:09:59.000Z (3 months ago)
- Last Synced: 2024-08-01T19:17:51.916Z (3 months ago)
- Topics: rofi, stumpwm
- Language: Common Lisp
- Homepage:
- Size: 4.88 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-stumpwm - rofi - StumpWM rofi integration (Modules)
README
# StumpWM Rofi
Rofi module for StumpWM
## Requrements
- [Rofi](https://github.com/davatorium/rofi) installed
## Installation
```bash
cd ~/.stumpwm.d/modules/
git clone https://github.com/Junker/stumpwm-rofi rofi
``````lisp
(stumpwm:add-to-load-path "~/.stumpwm.d/modules/rofi")
(load-module "rofi")
```## Usage
```lisp
;; list of pairs '(("name" . "command"))
(defvar *my-menu*
'(("Something" . "any-stumpwm-command")
("Terminal" . "exec kitty")
("Editor" . "exec featherpad")
("Krusader" . "exec krusader")
("💼 Work >" . (("Emacs" . "app-emacs")
("DBeaver" . "app-dbeaver")
("QOwnNotes" . "app-qownnotes")))
("🌍 Inet >" . (("Firefox" . "app-firefox")
("Telegram" . "app-telegram")
("Mail" . "exec thunderbird")))))(defcommand my-menu () ()
(rofi:menu *my-menu*)
;; or with rofi arguments
(rofi:menu *my-menu* "-show-icons -theme gruvbox-dark-hard -cycle false"))(define-key *top-map* (kbd "s-x") "my-menu")
;; command list (colon)
(define-key *top-map* (kbd "s-;") "rofi-colon");; windowlist
(define-key *top-map* (kbd "s-Tab") "rofi-windowlist");; custom list choose
(message (cdr (rofi:choose '(("1" . "one") ("2" . "two") ("3" . "three"))
"-theme fancy")))
```