From 9e233b621ed6256776c2875cb0337ecf9d0458ff Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 4 Mar 2019 17:53:49 +0000 Subject: [PATCH] Support monitor resolution function Useful because I always forget the dimensions of my screens. --- configs/shared/zsh/dumping_grounds.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/shared/zsh/dumping_grounds.zsh b/configs/shared/zsh/dumping_grounds.zsh index a1c510e6e..b61f08da0 100644 --- a/configs/shared/zsh/dumping_grounds.zsh +++ b/configs/shared/zsh/dumping_grounds.zsh @@ -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.