16 lines
452 B
Bash
Executable file
16 lines
452 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Define the desired hostname to compare
|
|
EXPECTED_HOSTNAME="dell7770-linux"
|
|
|
|
# Get the current hostname
|
|
CURRENT_HOSTNAME=$(hostname)
|
|
|
|
# Check if the current hostname is not equal to the expected hostname
|
|
if [[ "$CURRENT_HOSTNAME" != "$EXPECTED_HOSTNAME" ]]; then
|
|
waybar &
|
|
# notify-send "$EXPECTED_HOSTNAME // $CURRENT_HOSTNAME"
|
|
# notify-send "hypridle launched!!"
|
|
else
|
|
waybar --config ~/.config/waybar/config-laptop.jsonc
|
|
fi
|