Skip to content

Instantly share code, notes, and snippets.

@djtran
Last active September 16, 2022 19:10
Show Gist options
  • Select an option

  • Save djtran/a62351e601a288ec33287af3ada37db4 to your computer and use it in GitHub Desktop.

Select an option

Save djtran/a62351e601a288ec33287af3ada37db4 to your computer and use it in GitHub Desktop.
Startup glava with dynamic screen size
#!/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" &
@djtran
Copy link
Author

djtran commented Dec 16, 2019

if you include glava in the script name at all the script will kill itself, so avoid that lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment