From 1697e03a03a3860633cf695139df77d37da4703e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 15 Apr 2023 10:26:52 +0200 Subject: sway: add present script, workspace and key bindings --- scripts/present.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/present.sh (limited to 'scripts/present.sh') diff --git a/scripts/present.sh b/scripts/present.sh new file mode 100755 index 0000000..045af6d --- /dev/null +++ b/scripts/present.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ "$1" = "mirror" ]; then + swaymsg "workspace P" + "${DOTFILES_LOCATION}"/scripts/sway-toolwait -w at.yrlf.wl_mirror wl-mirror eDP-1 + swaymsg "fullscreen" +elif [ -f "$1" ]; then + "${DOTFILES_LOCATION}"/scripts/sway-toolwait pdfpc "$1" + swaymsg "[title=\"pdfpc - presentation ()\"] focus" && \ + swaymsg "move window to workspace P" && \ + swaymsg "workspace P" && \ + swaymsg "[title=\"pdfpc - presenter ()\"] focus" +fi -- cgit v1.2.3