From 0a043dbb7259cc59ac56b31573469f445a7921ed Mon Sep 17 00:00:00 2001 From: mono-b Date: Sun, 18 Dec 2022 23:00:24 -0300 Subject: up --- screenzug.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 screenzug.sh (limited to 'screenzug.sh') diff --git a/screenzug.sh b/screenzug.sh new file mode 100755 index 0000000..eeb69a3 --- /dev/null +++ b/screenzug.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +HDMI_ON_OFF=$(xrandr | grep Screen | awk '{ print $8 }') +CONFIG="$HOME/.config/i3/config" + +case $HDMI_ON_OFF in + 3280) + sed -i '/"ncmpzug"/s/462/1822/g' $CONFIG + st -n ncmpzug -e ncmpcpp-ueberzug + ;; + 1920) + sed -i '/"ncmpzug"/s/1822/462/g' $CONFIG + st -n ncmpzug -e ncmpcpp-ueberzug + ;; +esac -- cgit v1.2.1