You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
319 B
22 lines
319 B
#!/bin/sh
|
|
|
|
if test "$1" = "-r"; then
|
|
RELOAD=1
|
|
echo "Hot reload..."
|
|
else
|
|
RELOAD=
|
|
fi
|
|
|
|
pkill polybar
|
|
|
|
bar() {
|
|
if test -z "$RELOAD"; then
|
|
polybar -c "$HOME/.config/polybar/config.ini" "$@" &
|
|
else
|
|
polybar -r -c "$HOME/.config/polybar/config.ini" -l warning "$@" &
|
|
fi
|
|
}
|
|
|
|
bar top
|
|
bar workspaces
|
|
bar bottom
|