From 8fae57dbeab4e49ca2ef8e0806ef9a25789d5157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 20 Jan 2022 15:40:02 +0100 Subject: sway: various fixes and updates --- local/bin/startsway | 5 +++-- local/bin/wlr-select-screen | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) mode change 100644 => 100755 local/bin/startsway create mode 100755 local/bin/wlr-select-screen (limited to 'local') diff --git a/local/bin/startsway b/local/bin/startsway old mode 100644 new mode 100755 index a162deb..995362e --- a/local/bin/startsway +++ b/local/bin/startsway @@ -1,5 +1,6 @@ -#!/bin/sh +#!/bin/bash set -eu +exec 1> >(logger -s -t "${0##*/}") 2>&1 # Declare the current desktop export XDG_CURRENT_DESKTOP=sway @@ -14,4 +15,4 @@ export force_s3tc_enable=true export MOZ_USE_XINPUT2=1 export MOZ_ENABLE_WAYLAND=1 -exec dbus-launch --exit-with-session sway +exec dbus-run-session sway 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 -- cgit v1.2.3