Skip to content

Instantly share code, notes, and snippets.

@tyjak
Last active September 17, 2022 19:36
Show Gist options
  • Save tyjak/3e0bc7adbd07f82eb7eeca30215e9934 to your computer and use it in GitHub Desktop.
Save tyjak/3e0bc7adbd07f82eb7eeca30215e9934 to your computer and use it in GitHub Desktop.
#!/bin/sh
# get width of the monitor
# GistID: 3e0bc7adbd07f82eb7eeca30215e9934
xrandr | grep "*" | cut -d" " -f4 | cut -d"x" -f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment