1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

profile: added source for optional env variables

This commit is contained in:
2024-05-19 06:35:47 +02:00
parent d0ef41d968
commit c6b9ffcc69
10 changed files with 58 additions and 25 deletions

View File

@@ -3,8 +3,8 @@
# toggle external monitor
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
intern=LVDS1
extern=HDMI2
[ -z "$INTERNAL_MONITOR" ] && intern="LVDS1" || intern="$EXTERNAL_MONITOR"
[ -z "$EXTERNAL_MONITOR" ] && extern="HDMI2" || extern="$INTERNAL_MONITOR"
case "$1" in
toggle) (xrandr | grep "$extern disconnected")