Skip to content

Instantly share code, notes, and snippets.

@BitWizCoder-ol
Created August 22, 2023 23:56
Show Gist options
  • Save BitWizCoder-ol/c84fe3d0a33f4486ab94cb5375b0cb5d to your computer and use it in GitHub Desktop.
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.
#!/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