Hyprland-dotfiles/polybar/launch.sh
Stephan Raabe ad02173020 Updates
2023-09-05 16:27:40 +02:00

26 lines
929 B
Bash
Executable File

#!/usr/bin/env bash
# ____ _ _ ____ _ _
# / ___|| |_ __ _ _ __| |_ | _ \ ___ | |_ _| |__ __ _ _ __
# \___ \| __/ _` | '__| __| | |_) / _ \| | | | | '_ \ / _` | '__|
# ___) | || (_| | | | |_ | __/ (_) | | |_| | |_) | (_| | |
# |____/ \__\__,_|_| \__| |_| \___/|_|\__, |_.__/ \__,_|_|
# |___/
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
# -----------------------------------------------------
# Quit running polybar instances
# -----------------------------------------------------
polybar-msg cmd quit
# -----------------------------------------------------
# Loading the configuration based on the username
# -----------------------------------------------------
if [[ $USER = "raabe" ]]
then
polybar -r mypolybar
else
polybar -r mybar
fi