mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 22:00:38 -04:00
hyprpm/hyprlock
This commit is contained in:
parent
d4376c8ddf
commit
e973ebbc15
39 changed files with 2500 additions and 7 deletions
15
.config/hypr/scripts/sysmonlaunch.sh
Executable file
15
.config/hypr/scripts/sysmonlaunch.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue