Skip to content

Instantly share code, notes, and snippets.

@BrunoGiubilei
Last active March 5, 2021 19:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrunoGiubilei/59c2b48a64a64d3294bb2e278c962a9c to your computer and use it in GitHub Desktop.
Save BrunoGiubilei/59c2b48a64a64d3294bb2e278c962a9c to your computer and use it in GitHub Desktop.
#!/bin/bash
init() {
killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar sensual
echo "Polybar relançada..."
'repeater'
}
repeater() {
while read j
do
'init'
break
done < <(inotifywait -e modify ~/.config/polybar/config)
}
'init' &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment