Support monitor resolution function

Useful because I always forget the dimensions of my screens.
This commit is contained in:
William Carroll 2019-03-04 17:53:49 +00:00
parent cb533533c1
commit 9e233b621e

View file

@ -207,6 +207,11 @@ router() {
netstat -nr | grep default | head -n 1 | awk '{ print $2 }'
}
monitor_dimensions() {
# Outputs the dimensions of your computer monitor
xdpyinfo | awk '/dimensions/{ print $2 }'
}
lt() {
# Convenience wrapper around `exa --tree`.
# Optionally accepts a number for the max-depth and a directory to list.