| 1 | #!/bin/bash |
| 2 | # gar session wrapper - sets up environment before starting gar |
| 3 | |
| 4 | # Optional: configure monitor layout |
| 5 | # Uncomment and customize for your setup: |
| 6 | # xrandr --output eDP-1 --mode 2880x1800 --pos 0x0 |
| 7 | # xrandr --output DP-1 --mode 1920x1080 --pos 0x0 \ |
| 8 | # --output HDMI-1 --mode 2560x1440 --pos 1920x0 |
| 9 | |
| 10 | # Launch compositor before WM (for proper screen repainting) |
| 11 | if command -v picom &> /dev/null; then |
| 12 | picom -b --use-ewmh-active-win & |
| 13 | sleep 0.1 |
| 14 | fi |
| 15 | |
| 16 | # Set log level |
| 17 | export GAR_LOG=info |
| 18 | |
| 19 | # Launch polybar after gar starts (needs i3 IPC socket) |
| 20 | (sleep 0.5 && ~/.config/polybar/launch.sh) & |
| 21 | |
| 22 | # Start gar |
| 23 | exec /home/mfwolffe/GithubOrgs/tenseleyFlow/gar/target/release/gar |