From 1a38f439bf0677b173b597e859f8d70eb4cd1c7f Mon Sep 17 00:00:00 2001 From: Vojtech Spurny Date: Thu, 7 Nov 2024 11:53:53 +0100 Subject: [PATCH 1/2] updated vojta's arandr scripts --- appconfig/i3/doti3/i3blocks.conf_git | 2 +- miscellaneous/arandr_scripts/vojta/home.sh | 2 ++ miscellaneous/arandr_scripts/vojta/lab.sh | 2 +- miscellaneous/arandr_scripts/vojta/presentation.sh | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100755 miscellaneous/arandr_scripts/vojta/home.sh diff --git a/appconfig/i3/doti3/i3blocks.conf_git b/appconfig/i3/doti3/i3blocks.conf_git index d5bc1efc..c1bee3cf 100644 --- a/appconfig/i3/doti3/i3blocks.conf_git +++ b/appconfig/i3/doti3/i3blocks.conf_git @@ -755,7 +755,7 @@ instance=Master interval=1 signal=10 command=~/.i3/show_volume.sh -# olor=#000000 # EPIGEN_ADD_LINE_COLORSCHEME_LIGHT +# color=#000000 # EPIGEN_ADD_LINE_COLORSCHEME_LIGHT color=#ffffff # EPIGEN_DEL_LINE_COLORSCHEME_LIGHT # EPIGEN_DEL_BLOCK_PAVEL EPIGEN_DEL_BLOCK_VOJTA EPIGEN_DEL_BLOCK_MATEJ EPIGEN_DEL_BLOCK_ONDRA } diff --git a/miscellaneous/arandr_scripts/vojta/home.sh b/miscellaneous/arandr_scripts/vojta/home.sh new file mode 100755 index 00000000..8951d244 --- /dev/null +++ b/miscellaneous/arandr_scripts/vojta/home.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP --primary --mode 1920x1200 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off diff --git a/miscellaneous/arandr_scripts/vojta/lab.sh b/miscellaneous/arandr_scripts/vojta/lab.sh index f9dcf8af..d4e14a13 100755 --- a/miscellaneous/arandr_scripts/vojta/lab.sh +++ b/miscellaneous/arandr_scripts/vojta/lab.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP --mode 1920x1200 --pos 0x0 --rotate normal --output HDMI-A-0 --off --output DisplayPort-0 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off +xrandr --output eDP --mode 1920x1200 --pos 0x0 --rotate normal --output HDMI-A-0 --off --output DisplayPort-0 --off --output DisplayPort-1 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off diff --git a/miscellaneous/arandr_scripts/vojta/presentation.sh b/miscellaneous/arandr_scripts/vojta/presentation.sh index 7cf2ee40..f64c318a 100755 --- a/miscellaneous/arandr_scripts/vojta/presentation.sh +++ b/miscellaneous/arandr_scripts/vojta/presentation.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1-1 --off --output HDMI-1-2 --mode 1920x1200 --pos 0x0 --rotate normal +xrandr --output eDP --mode 1920x1200 --pos 0x0 --rotate normal --output HDMI-A-0 --off --output DisplayPort-0 --off --output DisplayPort-1 --primary --mode 1920x1200 --pos 0x0 --rotate normal --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off From 7de89b6524341e8cac18bb1db0ff11b4148888b2 Mon Sep 17 00:00:00 2001 From: Vojtech Spurny Date: Thu, 7 Nov 2024 20:34:42 +0100 Subject: [PATCH 2/2] Vojta add new monitor configuration --- miscellaneous/arandr_scripts/vojta/home.sh | 2 +- scripts/vojta_set_monitor.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/miscellaneous/arandr_scripts/vojta/home.sh b/miscellaneous/arandr_scripts/vojta/home.sh index 8951d244..9d578437 100755 --- a/miscellaneous/arandr_scripts/vojta/home.sh +++ b/miscellaneous/arandr_scripts/vojta/home.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP --primary --mode 1920x1200 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off +xrandr --output eDP --mode 1920x1200 --pos 1920x0 --rotate normal --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off diff --git a/scripts/vojta_set_monitor.sh b/scripts/vojta_set_monitor.sh index dca50892..1e5f24e5 100755 --- a/scripts/vojta_set_monitor.sh +++ b/scripts/vojta_set_monitor.sh @@ -11,9 +11,10 @@ fi MONITOR=$(echo "LAB STANDALONE +HOME PRESENTATION" | rofi -dmenu -p -i "Select setup:") -if [[ "$MONITOR" != "LAB" ]] && [[ "$MONITOR" != "PRESENTATION" ]] && [[ "$MONITOR" != "STANDALONE" ]]; then +if [[ "$MONITOR" != "LAB" ]] && [[ "$MONITOR" != "PRESENTATION" ]] && [[ "$MONITOR" != "STANDALONE" ]] && [[ "$MONITOR" != "HOME" ]]; then notify-send -u low -t 100 "Wrong choice!" -h string:x-canonical-private-synchronous:anything exit fi