mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
19 lines
422 B
Bash
19 lines
422 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
ARGS=(
|
||
|
"Enable Picom"
|
||
|
"Disable Picom"
|
||
|
)
|
||
|
|
||
|
CHOICE=$(printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/rofidmenu.rasi -dmenu -l 5 -i -p "Picom Options")
|
||
|
|
||
|
# printf '%s\n' {$CHOICE} | awk '{print $NF}'
|
||
|
|
||
|
echo "$CHOICE"
|
||
|
|
||
|
if [[ "$CHOICE" == "Enable Picom" ]]; then
|
||
|
~/SudacodeRice/scripts/picom.sh
|
||
|
elif [[ "$CHOICE" == "Disable Picom" ]]; then
|
||
|
~/SudacodeRice/scripts/picom.sh -k
|
||
|
fi
|