From 0afd73753d72b7ac2de83f80f457a85a5a33a29c Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 25 Sep 2026 04:32:15 +0530 Subject: 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. --- modules/desktop/rofi/rofi-action.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/desktop/rofi/rofi-action.sh (limited to 'modules/desktop/rofi/rofi-action.sh') 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 -- cgit v1.2.3