From 5df8cb82ccb01fefbd70aa059a326925b9ea98d6 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 12 Jan 2025 12:50:56 +0900 Subject: some changes on scripts which depends on rofi. Downside is only way to close the rofi is pressing esc button. However, you can execute immediately the script. ie., rofi menu is opened, by pressing Super W, it will execute wallpaper menu immediately. --- config/hypr/scripts/KeyBinds.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/hypr/scripts/KeyBinds.sh') diff --git a/config/hypr/scripts/KeyBinds.sh b/config/hypr/scripts/KeyBinds.sh index 4aca73d9..9e01a7c3 100755 --- a/config/hypr/scripts/KeyBinds.sh +++ b/config/hypr/scripts/KeyBinds.sh @@ -5,6 +5,11 @@ # Kill yad to not interfere with this binds pkill yad || true +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + # Define the config files KEYBINDS_CONF="$HOME/.config/hypr/configs/Keybinds.conf" USER_KEYBINDS_CONF="$HOME/.config/hypr/UserConfigs/UserKeybinds.conf" -- cgit v1.2.3