#!/bin/sh at_home=$(swaymsg -t get_outputs | grep 'CB242Y') if [ -n "$at_home" ]; then swaymsg output HDMI-A-1 enable scale 1 swaymsg output eDP-1 disable swaymsg workspace number 1 fi;