about summary refs log tree commit diff
path: root/configs/shared/zsh/dumping_grounds.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/zsh/dumping_grounds.zsh')
-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.