GNOME desktop keyboard shortcuts as a getpkg package
- Shell 100%
|
All checks were successful
Build-Test-Publish / build (push) Successful in 8s
Ctrl+Alt+T opens a terminal; Ctrl+Alt+E opens Files, jumping to the path in the clipboard when there is one. Bindings route through the installed script so updates ship without touching gsettings. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .gitea/workflows | ||
| hotkeys | ||
| publish.sh | ||
| README.md | ||
| setup_script.sh | ||
| test.sh | ||
hotkeys
GNOME desktop keyboard shortcuts, packaged as a getpkg tool.
| Shortcut | Action |
|---|---|
| Ctrl+Alt+T | Open a new terminal window (Ptyxis, with fallbacks) |
| Ctrl+Alt+E | Open a new Files (Nautilus) window — if the clipboard contains a path, it opens that location; a file path opens its folder with the file selected |
Install
getpkg install hotkeys
Installation applies the keybindings automatically, and only on systems
where they can work: apply/remove refuse to touch anything unless
gsettings and the GNOME media-keys schema are present, and the install
hook additionally requires a desktop session. On servers and non-GNOME
desktops the package installs but has no effect.
Usage
hotkeys apply # install/refresh the keybindings
hotkeys remove # remove them
hotkeys status # show what's bound
The shortcuts invoke hotkeys open-terminal / hotkeys open-files, so
behaviour changes ship via getpkg update without touching gsettings.
The clipboard handling understands plain paths, file:// URIs, ~
expansion, and paths wrapped in quotes or whitespace.
Set HOTKEYS_TERMINAL to override the terminal command, e.g.
HOTKEYS_TERMINAL="kitty".
Test
./test.sh