diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-18 23:00:24 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-18 23:00:24 -0300 |
commit | 0a043dbb7259cc59ac56b31573469f445a7921ed (patch) | |
tree | 28e87b1b7bbc035fbc467d5a7fc63204960dc247 /screenzug.sh |
up
Diffstat (limited to 'screenzug.sh')
-rwxr-xr-x | screenzug.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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 |