diff options
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/ClipManager.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/scripts/KeyBinds.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/scripts/RofiEmoji.sh | 6 | ||||
| -rwxr-xr-x | config/hypr/scripts/RofiSearch.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarLayout.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarStyles.sh | 2 |
6 files changed, 19 insertions, 3 deletions
diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index ddce2999..13f90a9e 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -6,6 +6,11 @@ # CTRL Del to delete an entry # ALT Del to wipe clipboard contents +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + while true; do result=$( rofi -i -dmenu \ 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" diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index 6bf6a5ab..fa27a341 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -2,6 +2,11 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Rofi Emoticons. Not my own. Cant remember the source +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + sed '1,/^# # DATA # #$/d' "$0" | \ rofi -i -dmenu -config ~/.config/rofi/config-emoji.rasi | \ awk -F'\t' '{print $1}' | \ @@ -10,6 +15,7 @@ wl-copy exit + # # DATA # # 😀 face face | grin | grinning face 😃 face with big eyes face | grinning face with big eyes | mouth | open | smile diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh index 9b7e4bd4..ccc73016 100755 --- a/config/hypr/scripts/RofiSearch.sh +++ b/config/hypr/scripts/RofiSearch.sh @@ -9,7 +9,7 @@ rofi_config="$HOME/.config/rofi/config-search.rasi" # Kill Rofi if already running before execution if pgrep -x "rofi" >/dev/null; then pkill rofi - exit 0 + #exit 0 fi # Open rofi with a dmenu and pass the selected item to xdg-open for Google search diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index 36cbeb10..738d34f4 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -50,7 +50,7 @@ main() { # Kill Rofi if already running before execution if pgrep -x "rofi" >/dev/null; then pkill rofi - exit 0 + #exit 0 fi main diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index 95a348ba..096e4d7c 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -44,7 +44,7 @@ main() { # Kill Rofi if already running before execution if pgrep -x "rofi" >/dev/null; then pkill rofi - exit 0 + #exit 0 fi main |
