fix: screenshare work

This commit is contained in:
Swarsel 2024-11-06 16:33:19 +01:00
parent 202b723e1f
commit 444a6ee59f
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 22 additions and 20 deletions

View file

@ -2,9 +2,9 @@ SHARESCREEN="$(nix eval --raw ~/.dotfiles#nixosConfigurations."$(hostname)".conf
if [[ "$1" == "start" ]]; then
wl-mirror "$SHARESCREEN" & sleep 0.1
swaymsg output eDP-2 mode 1280x800
swaymsg '[app_id=at.yrlf.wl_mirror] move to workspace 12:S'
swaymsg '[app_id=at.yrlf.wl_mirror] fullscreen'
swaymsg output eDP-2 mode 1280x800
else
swaymsg output eDP-2 mode 2560x1600
fi