aboutsummaryrefslogtreecommitdiff
path: root/local/bin/wlr-select-screen
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-01-20 15:40:02 +0100
committerKarel Kočí <cynerd@email.cz>2022-01-20 15:40:02 +0100
commit8fae57dbeab4e49ca2ef8e0806ef9a25789d5157 (patch)
tree2ae60d6bb2bee3ba1839e8ecf2d1a66a853444f1 /local/bin/wlr-select-screen
parent658251b375c8f3a5051cd46e216445ba49728af2 (diff)
downloadmyconfigs-8fae57dbeab4e49ca2ef8e0806ef9a25789d5157.tar.gz
myconfigs-8fae57dbeab4e49ca2ef8e0806ef9a25789d5157.tar.bz2
myconfigs-8fae57dbeab4e49ca2ef8e0806ef9a25789d5157.zip
sway: various fixes and updates
Diffstat (limited to 'local/bin/wlr-select-screen')
-rwxr-xr-xlocal/bin/wlr-select-screen9
1 files changed, 9 insertions, 0 deletions
diff --git a/local/bin/wlr-select-screen b/local/bin/wlr-select-screen
new file mode 100755
index 0000000..9eedeb4
--- /dev/null
+++ b/local/bin/wlr-select-screen
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -eu
+
+screens="$(cat)"
+if [ "$(echo "$screens" | wc -l)" -gt 1 ]; then
+ echo "$screens" | wofi -d -p "Select screen to share"
+else
+ echo "$screens"
+fi