From 2d4c97052778df38c89508b0c13ed8d4c52690fc Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Wed, 15 Jan 2025 15:00:02 -0800 Subject: [PATCH] New backup 2025-01-15 15:00:02 --- .../profiles/3/shortcuts/2nd_monitor | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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'