diff options
| author | Ja.KooLit <ejhay.games@gmail.com> | 2024-09-02 18:28:52 +0900 |
|---|---|---|
| committer | Ja.KooLit <ejhay.games@gmail.com> | 2024-09-02 18:29:19 +0900 |
| commit | a4ad2cb5b4177c4bab9ce44936153e5e63c0bd3b (patch) | |
| tree | 363b7805e1c63466d1e107c11899504dae9543be /config/hypr/scripts/KeyHints.sh | |
| parent | 175669676d99250c70946ff0b8ac1b1c4cee1da2 (diff) | |
fix for help file not working on some distros
Diffstat (limited to 'config/hypr/scripts/KeyHints.sh')
| -rwxr-xr-x | config/hypr/scripts/KeyHints.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 85fb1dc6..0f8a989a 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -2,6 +2,9 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Keyhints. Idea got from Garuda Hyprland +# GDK BACKEND. Change to either wayland or x11 if having issues +BACKEND=wayland + # Detect monitor resolution and scale x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width') y_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .height') @@ -28,7 +31,7 @@ dynamic_width=$(($dynamic_width > $max_width ? $max_width : $dynamic_width)) dynamic_height=$(($dynamic_height > $max_height ? $max_height : $dynamic_height)) # Launch yad with calculated width and height -yad --width=$dynamic_width --height=$dynamic_height \ +GDK_BACKEND=$BACKEND yad --width=$dynamic_width --height=$dynamic_height \ --center \ --title="Keybindings" \ --no-buttons \ |
