From f43587456c0dc60ff6c78d81aba285ac2493e08e Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 14 Mar 2023 00:02:37 +0100 Subject: [PATCH] Add the resize-window function. --- .functions.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.functions.zsh b/.functions.zsh index d2874c5..7f360af 100644 --- a/.functions.zsh +++ b/.functions.zsh @@ -28,6 +28,12 @@ mc () { cd "$1" } +# Select a window and resize it to the specified resolution. +# resize-window [width (default: 1280)] [height (default: 720)] +resize-window () { + xdotool selectwindow windowsize ${1-1280} ${2-720} +} + # Converts any given files to 128K Opus using ffmpeg. # to-opus to-opus () {