updated colorschemes

This commit is contained in:
Wryn (yage) Wagner 2022-03-07 12:19:02 -07:00
parent b2a7c1c699
commit 6f7fca0029
5 changed files with 46 additions and 7 deletions

View File

@ -11,21 +11,36 @@ GET_PRIMARY_MONITOR() {
PRIMARY_MONITOR=$(GET_PRIMARY_MONITOR)
GET_DEFAULT_EXTERNAL_MONITOR() {
GET_ALL_EXTERNAL_MONITORS() {
xrandr \
| grep ' connect' \
| awk '{print $1;}' \
| grep -v "$NATIVE_MONITOR" \
| head -n 1
2>/dev/null
}
GET_DEFAULT_EXTERNAL_MONITOR() {
GET_ALL_EXTERNAL_MONITORS | head -n 1
}
EXTERNAL_MONITOR=$(GET_DEFAULT_EXTERNAL_MONITOR)
DISCONNECT_OTHER() {
local SFX="$1"
for D in $(xrandr --listmonitors | sed '1d' | awk '{print $NF;}' | grep -v "^$(GET_PRIMARY_MONITOR)$")
local INACTIVE_MONITORS=$(\
xrandr --listmonitors \
| sed '1d' | awk '{print $NF;}' \
| grep -v "^$(GET_PRIMARY_MONITOR)$"
)
for ACTIVE_MONITOR in ${@:2}
do
xrandr --output $D --off
INACTIVE_MONITORS=$(echo $INACTIVE_MONITORS | grep -v "^$ACTIVE_MONITOR$")
done
local MONITOR
for MONITOR in $INACTIVE_MONITORS
do
xrandr --output $MONITOR --off
done
sleep 1

View File

@ -8,7 +8,7 @@ source ${0:a:h}/common
xrandr \
--output $EXTERNAL_MONITOR \
--primary \
--auto \
--mode 1920x1080 \
--rotate normal \
--pos 0x0 \
&& DISCONNECT_OTHER login \

24
bin/xorg/butterfree/workdock Executable file
View File

@ -0,0 +1,24 @@
#!/bin/zsh
source ${0:a:h}/common
LEFT=$(GET_ALL_EXTERNAL_MONITORS | grep 'DP.-1')
RIGHT=$(GET_ALL_EXTERNAL_MONITORS | grep 'DP.-2')
[ $LEFT ] && [ $RIGHT ] || {
NOTIFY "Unable to detect work monitors; are you connected?"
return
}
xrandr \
--output $RIGHT \
--primary \
--mode 1920x1080 \
--scale 1.25x1.25 \
--rotate normal \
--pos 2400x0 \
--output $LEFT \
--mode 1920x1080 \
--scale 1.25x1.25 \
--rotate normal \
--pos 0x0 \
&& DISCONNECT_OTHER login $LEFT \
|| NOTIFY "Unable to connect '$EXTERNAL_MONITOR' to 1920x1080"

View File

@ -1 +1 @@
/home/w0ryn/.wryn/colorschemes/valentines.conf
/home/w0ryn/.wryn/colorschemes/st-patricks.conf

View File

@ -1,5 +1,5 @@
background #050500
foreground #3D7D58
foreground #DDFDA8
cursor #AAFF00
selection_background #FFFF00
selection_foreground #000000