Wofi menu crash if monitor scale is not 1

Fix

sed -i "s/wofi --show drun --allow-images/wofi --normal-window --show drun --allow-images/" .config/hypr/hyprland.conf
Beta, tester/developer needed :-)
#!/bin/bash
# Check scale value and fix wofi crash
# .local/bin/wofi-ch.sh

scale=$(cat .config/hypr/hyprland.conf | awk '/monitor=/' | awk -F',' '{print $NF}')

if [ $scale != '1' ]
then
sed -i "s/wofi --show drun --allow-images/wofi --normal-window --show drun --allow-images/" .config/hypr/hyprland.conf
exit
fi
1 Like