Change switcher scripts to use wofi instead of rofi
This commit is contained in:
parent
24385e6e65
commit
487f1c8704
@ -7,9 +7,9 @@ waybar_config="$HOME/.config/waybar/config"
|
|||||||
# Get all available layouts
|
# Get all available layouts
|
||||||
layouts=($(ls "$waybar_layouts" | sort))
|
layouts=($(ls "$waybar_layouts" | sort))
|
||||||
|
|
||||||
# If rofi is available, use it for selection
|
# If wofi is available, use it for selection
|
||||||
if command -v rofi &> /dev/null; then
|
if command -v wofi &> /dev/null; then
|
||||||
choice=$(printf '%s\n' "${layouts[@]}" | rofi -dmenu -i -p "Waybar Layout")
|
choice=$(printf '%s\n' "${layouts[@]}" | wofi --dmenu -i -p "Waybar Layout")
|
||||||
else
|
else
|
||||||
# Otherwise use a simple CLI menu
|
# Otherwise use a simple CLI menu
|
||||||
echo "Available Waybar Layouts:"
|
echo "Available Waybar Layouts:"
|
||||||
|
|||||||
@ -7,9 +7,9 @@ waybar_css="$HOME/.config/waybar/style.css"
|
|||||||
# Get all available styles
|
# Get all available styles
|
||||||
styles=($(ls "$waybar_styles"/*.css 2>/dev/null | xargs -n1 basename | sort))
|
styles=($(ls "$waybar_styles"/*.css 2>/dev/null | xargs -n1 basename | sort))
|
||||||
|
|
||||||
# If rofi is available, use it for selection
|
# If wofi is available, use it for selection
|
||||||
if command -v rofi &> /dev/null; then
|
if command -v wofi &> /dev/null; then
|
||||||
choice=$(printf '%s\n' "${styles[@]}" | rofi -dmenu -i -p "Waybar Style")
|
choice=$(printf '%s\n' "${styles[@]}" | wofi --dmenu -i -p "Waybar Style")
|
||||||
else
|
else
|
||||||
# Otherwise use a simple CLI menu
|
# Otherwise use a simple CLI menu
|
||||||
echo "Available Waybar Styles:"
|
echo "Available Waybar Styles:"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user