about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-04T17·53+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-04T17·53+0000
commit9e233b621ed6256776c2875cb0337ecf9d0458ff (patch)
tree6a4ebe91a097925c3126428164671ed1357ca932 /configs
parentcb533533c1f32fb5a0681f5cc17e698a8121feea (diff)
Support monitor resolution function
Useful because I always forget the dimensions of my screens.
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/zsh/dumping_grounds.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/shared/zsh/dumping_grounds.zsh b/configs/shared/zsh/dumping_grounds.zsh
index a1c510e6e981..b61f08da0bfd 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.