diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-25 04:32:15 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-25 04:32:31 +0530 |
| commit | 0afd73753d72b7ac2de83f80f457a85a5a33a29c (patch) | |
| tree | c09106db3779a59f3a9a7db9553da5ef3d928d46 /modules/desktop/rofi/rofi-action.sh | |
| parent | f36491c92269d3e1dd241e67c292af762ac498c3 (diff) | |
| download | home-manager-config-0afd73753d72b7ac2de83f80f457a85a5a33a29c.tar.gz home-manager-config-0afd73753d72b7ac2de83f80f457a85a5a33a29c.zip | |
feat(desktop/rofi): added rofi actions
Rofi actions allows users to run some of the most commonly run shell
commands (like shutdown, poweroff monitors, start usque/vpn tunnels),
from a rofi menu instead of having to memorize and type them out.
Diffstat (limited to 'modules/desktop/rofi/rofi-action.sh')
| -rw-r--r-- | modules/desktop/rofi/rofi-action.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/desktop/rofi/rofi-action.sh b/modules/desktop/rofi/rofi-action.sh new file mode 100644 index 0000000..1e09b75 --- /dev/null +++ b/modules/desktop/rofi/rofi-action.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Fire-and-forget action menu driven by rofi's dmenu mode. +# The entries and the commands they run are generated at build time +# from `config.desktop.rofi.action.actions`. + +options="@@OPTIONS@@" + +chosen=$(echo -e "$options" | rofi -dmenu -i -p "Action:") + +case "$chosen" in +# replacing "@@CASES@@") : ;; instead of @@CASES@@ for linter/formatter +"@@CASES@@") : ;; +esac |
