Created
August 22, 2023 23:56
-
-
Save BitWizCoder-ol/c84fe3d0a33f4486ab94cb5375b0cb5d to your computer and use it in GitHub Desktop.
Enable the app finder toggling using the super key. Add this to the PATH and assign a super key as a shortcut for this script. Additionally, ensure that the script is executable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the process ID (PID) of the Application Finder | |
appfinder_pid=$(pgrep -x "xfce4-appfinder") | |
# If the Application Finder is running (PID exists), close it | |
if [[ -n "$appfinder_pid" ]]; then | |
pkill -f "xfce4-appfinder" | |
else | |
# If the Application Finder is not running, start it | |
xfce4-appfinder | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment