Skip to content

Instantly share code, notes, and snippets.

@Keshav13142
Created October 29, 2024 11:37
Show Gist options
  • Save Keshav13142/936445ff0ed908ccb0334ccff4546766 to your computer and use it in GitHub Desktop.
Save Keshav13142/936445ff0ed908ccb0334ccff4546766 to your computer and use it in GitHub Desktop.
zebar start bat file
@echo off
@REM Start hidden powershell script, which runs `zebar open bar --args ...` for every monitor.
powershell -WindowStyle hidden -Command ^
taskkill -f -im zebar.exe; ^
$monitors = zebar monitors; ^
foreach ($monitor in $monitors) { Start-Process -WindowStyle Hidden -FilePath \"zebar\" -ArgumentList \"open bar --args $monitor\" };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment