aboutsummaryrefslogtreecommitdiff
path: root/scripts/present.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/present.sh')
-rwxr-xr-xscripts/present.sh13
1 files changed, 13 insertions, 0 deletions
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