mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07: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
|