A collection of scripts and configurations for Bash (and others)
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.

launch.sh 306B

123456789101112
  1. #!/bin/bash
  2. killall -q polybar
  3. if type "xrandr"; then
  4. for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
  5. MONITOR=$m polybar --reload obsidianblk >>/tmp/polybar_obsidianblk.log 2>&1 & disown
  6. done
  7. else
  8. polybar --reload obsidianblk >>/tmp/polybar_obsidianblk.log 2>&1 & disown
  9. fi