startLemon.sh 562 B

1234567891011121314151617181920
  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 == "--xfce" ]]; then
  6. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1920x15+0+0
  7. fi
  8. if [[ $1 == "--single-1440" ]]; then
  9. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1440x15+0+0
  10. fi
  11. if [ $(xrandr --query | grep '\bconnected\b' | wc -l) -gt 1 ]; then
  12. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 3440x15+1920
  13. else
  14. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1920x15
  15. fi