37 lines
1.3 KiB
Bash
Executable File
37 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
show_cmd_menu() {
|
|
local menu_options=" Start Screensaver
|
|
Show Keybindings
|
|
Open Manual
|
|
Take Screenshot
|
|
Start Screenrecord
|
|
Choose Theme
|
|
Next Background
|
|
Pick Color
|
|
Toggle Nightlight
|
|
Toggle Idle Lock
|
|
Toggle Top Bar
|
|
Update Timezone
|
|
Setup Fingerprint"
|
|
local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_250 -p "Trigger Command")
|
|
|
|
case "$selection" in
|
|
*Screensaver*) ~/.local/share/omarchy/bin/omarchy-launch-screensaver ;;
|
|
*Keybindings*) ~/.local/share/omarchy/bin/omarchy-menu-keybindings ;;
|
|
*Manual*) setsid chromium --new-window --app="https://manuals.omamix.org/2/the-omarchy-manual" & ;;
|
|
*Screenshot*) ~/.local/share/omarchy/bin/omarchy-cmd-screenshot ;;
|
|
*Screenrecord*) ~/.local/share/omarchy/bin/omarchy-cmd-screenrecord ;;
|
|
*Theme*) ~/.local/share/omarchy/bin/omarchy-theme-menu ;;
|
|
*Background*) ~/.local/share/omarchy/bin/omarchy-theme-bg-next ;;
|
|
*Color*) pkill hyprpicker || hyprpicker -a ;;
|
|
*Nightlight*) ~/.local/share/omarchy/bin/omarchy-toggle-nightlight ;;
|
|
*Idle*) ~/.local/share/omarchy/bin/omarchy-toggle-idle ;;
|
|
*Bar*) pkill -SIGUSR1 waybar ;;
|
|
*Timezone*) ~/.local/share/omarchy/bin/omarchy-cmd-tzupdate ;;
|
|
*Fingerprint*) ~/.local/share/omarchy/bin/omarchy-setup-fingerprint ;;
|
|
esac
|
|
}
|
|
|
|
show_cmd_menu
|