startLemon.sh 676 B

123456789101112131415161718192021222324
  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 [[ $1 == "--720-side-car" ]]; then
  12. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1360x15+1920
  13. fi
  14. if [ $(xrandr --query | grep '\bconnected\b' | wc -l) -gt 1 ]; then
  15. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 3440x15+1920
  16. else
  17. /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1920x15
  18. fi