Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junker/stumpwm-kbdd
Per window XKB layout switcher and modeline module for StumpWM.
https://github.com/junker/stumpwm-kbdd
keyboard-layout stumpwm xkb
Last synced: about 1 month ago
JSON representation
Per window XKB layout switcher and modeline module for StumpWM.
- Host: GitHub
- URL: https://github.com/junker/stumpwm-kbdd
- Owner: Junker
- Created: 2022-02-17T13:29:09.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-29T09:15:42.000Z (3 months ago)
- Last Synced: 2024-11-08T04:38:19.901Z (about 1 month ago)
- Topics: keyboard-layout, stumpwm, xkb
- Language: Common Lisp
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StumpWM KBDD
Per window XKB layout switcher and modeline module for StumpWM.
## Requirements
- [kbdd](https://github.com/qnikst/kbdd) daemon installed
- [DBUS](https://github.com/death/dbus) library## Installation
```bash
cd ~/.stumpwm.d/modules/
git clone https://github.com/Junker/stumpwm-kbdd kbdd
``````lisp
(stumpwm:add-to-load-path "~/.stumpwm.d/modules/kbdd")
(load-module "kbdd")
```## Usage
```lisp
;; Optional. can be defined in Xorg config
(run-shell-command "setxkbmap -layout us,ru");; Required. start KBDD daemon
(run-shell-command "/usr/bin/kbdd");; init module
(setf kbdd:*locales* '((0 . :US) (1 . :RU)))
(kbdd:kbdd)
(define-key *top-map* (kbd "s-l") "kbdd-switch-layout")
```### Commands
- kbdd-switch-layout
- kbdd-next-layout
- kbdd-prev-layout### Parameters
- kbdd:\*layouts\* - Reuqired. List of layouts defined in xorg
(can see with: "setxkbmap -query | grep layout")### Modeline
%L - keyboard layout formatter
### Modeline mouse interaction
- **left button:** switch layout
- **right button:** switch layout
- **wheel up:** next layout
- **wheel down:** previous layout