startLemon.sh 456 B

123456789101112131415
  1. #!/bin/bash
  2. if [[ $1 == "--single-1080" ]]; then
  3. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1920x15+1920+0
  4. fi
  5. if [[ $1 == "--single-1440" ]]; then
  6. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1440x15+0+0
  7. fi
  8. if [ $(xrandr --query | grep '\bconnected\b' | wc -l) -gt 1 ]; then
  9. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 3440x15+1920
  10. else
  11. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1920x15
  12. fi