Last active
September 16, 2022 19:10
-
-
Save djtran/a62351e601a288ec33287af3ada37db4 to your computer and use it in GitHub Desktop.
Startup glava with dynamic screen size
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
| #!/bin/bash | |
| pkill glava | |
| GEOMETRY=$(xrandr | grep "Screen 0" | tr "," "\n" | grep current | awk 'BEGIN {FS = " "} {print $2,$4 }') | |
| glava --desktop -r "setgeometry 0 0 $GEOMETRY" & |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you include glava in the script name at all the script will kill itself, so avoid that lol