From bbfdec393bad4f3b0f4020a190da0b0c8d5b6bf2 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sun, 26 Jan 2020 13:38:03 -0500 Subject: [PATCH] Fish: ydl4 and 72 hz functions --- .config/fish/functions/72.fish | 6 ++++++ .config/fish/functions/ydl4.fish | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 .config/fish/functions/72.fish create mode 100644 .config/fish/functions/ydl4.fish diff --git a/.config/fish/functions/72.fish b/.config/fish/functions/72.fish new file mode 100644 index 0000000..1c15a9c --- /dev/null +++ b/.config/fish/functions/72.fish @@ -0,0 +1,6 @@ +# Defined in /tmp/fish.73stHk/72.fish @ line 1 +function 72 + xrandr --newmode (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2- | tr ' ' \n | awk '$1=$1') +xrandr --addmode (xrandr --listactivemonitors | tail -n1 | cut -d' ' -f5- | awk '$1=$1') (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2) +xrandr --output (xrandr --listactivemonitors | tail -n1 | cut -d' ' -f5- | awk '$1=$1') --mode (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2) +end diff --git a/.config/fish/functions/ydl4.fish b/.config/fish/functions/ydl4.fish new file mode 100644 index 0000000..a23c1ff --- /dev/null +++ b/.config/fish/functions/ydl4.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.nB8upe/ydl4.fish @ line 2 +function ydl4 --description 'alias ydl4 ydl --format mp4' + ydl --format mp4 $argv; +end