-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: working batch script; add start scripts to config dir
- Loading branch information
1 parent
d68340a
commit 9bd2e0b
Showing
8 changed files
with
39 additions
and
210 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
@echo off | ||
@REM powershell.exe -Command "Start-Process -NoNewWindow -FilePath ./start.ps1" | ||
@REM powershell.exe -Command "Start-Process -FilePath 'powershell' -ArgumentList '-File ./script.ps1' -WindowStyle Hidden" | ||
@REM Start-Process -NoNewWindow -FilePath "zebar" -ArgumentList "open bar --args $monitor" | ||
|
||
@REM for /f "tokens=*" %%a in ('zebar monitors') do ( | ||
@REM start /b zebar open bar --args %%a | ||
@REM ) | ||
@REM Start hidden powershell script, which runs `zebar open bar --args ...` for every monitor. | ||
powershell -WindowStyle hidden -Command ^ | ||
$monitors = zebar monitors; ^ | ||
foreach ($monitor in $monitors) { Start-Process -NoNewWindow -FilePath \"zebar\" -ArgumentList \"open bar --args $monitor\" }; | ||
|
||
@REM Start-Process -NoNewWindow -FilePath "zebar" -ArgumentList "open bar --args $monitor"Write-Output 'first line'; ^ | ||
@REM Write-Output 'second line'; |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Run `zebar open bar --args ...` for every monitor. | ||
zebar monitors --print0 | xargs -0 -P 99 -I % sh -c 'zebar open bar --args %' |
This file contains 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
This file contains 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
Oops, something went wrong.