diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-15 10:26:52 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-15 10:26:52 +0200 |
| commit | 1697e03a03a3860633cf695139df77d37da4703e (patch) | |
| tree | fef579a6698c62fd7cb5e0fc2f8d6158a2398907 /scripts/present.sh | |
| parent | 4ccdc231b3fb4cc3a9c9aad626de46a32bc9a628 (diff) | |
| download | dotfiles-1697e03a03a3860633cf695139df77d37da4703e.tar.gz dotfiles-1697e03a03a3860633cf695139df77d37da4703e.zip | |
sway: add present script, workspace and key bindings
Diffstat (limited to 'scripts/present.sh')
| -rwxr-xr-x | scripts/present.sh | 13 |
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 |
