diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/2nd_monitor b/de/home/.config/sway-profiles/profiles/3/shortcuts/2nd_monitor index 633bc94..311aa08 100755 --- a/de/home/.config/sway-profiles/profiles/3/shortcuts/2nd_monitor +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/2nd_monitor @@ -1,9 +1,14 @@ #!/bin/bash swaymsg workspace number '39:' -swaymsg move workspace to output HDMI-A-1 +connected_displays=`swaymsg -rt get_outputs | jq .[].name` +if echo "${connected_displays}" | grep -q 'DP-6';then + swaymsg move workspace to output DP-6 +elif echo "${connected_displays}" | grep -q 'HDMI-A-1';then + swaymsg move workspace to output HDMI-A-1 +fi -firefox -P Work 'https://library.lanecc.edu/' \ -'https://inside.lanecc.edu/sites/default/files/pg/map_2024_ltr.pdf' \ -'https://lanecc.libcal.com/allspaces' \ -'https://library.lanecc.edu/study-rooms#maps' +#firefox -P Work 'https://library.lanecc.edu/' \ +#'https://inside.lanecc.edu/sites/default/files/pg/map_2024_ltr.pdf' \ +#'https://lanecc.libcal.com/allspaces' \ +#'https://library.lanecc.edu/study-rooms#maps'