Hyprland-dotfiles/polybar/launch.sh
Stephan Raabe 585834d31d Updates
2023-08-20 11:46:46 +02:00

27 lines
930 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