hyprpm/hyprlock

This commit is contained in:
xsghetti 2024-02-26 00:59:53 -05:00
parent d4376c8ddf
commit e973ebbc15
39 changed files with 2500 additions and 7 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env sh
# Define the list of commands to check in order of preference
commands_to_check=("htop" "btop" "top")
# Determine the terminal emulator to use
term=$(cat $HOME/.config/hypr/keybindings.conf | grep ^'$term' | cut -d '=' -f2)
# Try to execute the first available command in the specified terminal emulator
for command in "${commands_to_check[@]}"; do
if command -v "$command" &> /dev/null; then
$term -e "$command"
break # Exit the loop if the command executed successfully
fi
done