Created
October 29, 2024 11:37
-
-
Save Keshav13142/936445ff0ed908ccb0334ccff4546766 to your computer and use it in GitHub Desktop.
zebar start bat file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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