aboutsummaryrefslogtreecommitdiff
path: root/swob.sh
diff options
context:
space:
mode:
authorLibravatar remph <lhr@disroot.org>2024-10-31 18:26:08 +0000
committerLibravatar remph <lhr@disroot.org>2024-11-03 02:49:53 +0000
commit075e8ac472403934f4ca383beae2cd9ac555f71a (patch)
tree0b15f8fcbea9017b5d361b6733fd3d594bee751c /swob.sh
parentb07d54a12e7d42228093d0da7365617defd042e6 (diff)
Minor changes:
* Allow changing volume/brightness while locked in Sway * Ensure separate wob instance for each WAYLAND_DISPLAY * Update copyright, mostly for other branches based on this
Diffstat (limited to 'swob.sh')
-rwxr-xr-xswob.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/swob.sh b/swob.sh
index bdcdf01..77968fa 100755
--- a/swob.sh
+++ b/swob.sh
@@ -1,12 +1,10 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2023-2024 The Remph <lhr@disroot.org>
-# SPDX-License-Identifier: FSFULLRWD
+# SPDX-License-Identifier: GPL-3.0-or-later
-wobfifo=${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/wob
-wobini=
-readonly wobfifo
-# `set -e' comes after readonly, which isn't vital enough to kill the script for
set ${BASH_VERSION:+-o pipefail} -efmu
+wobfifo=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY.swob
+wobini=
set_wobini() {
for dir in ${XDG_CONFIG_HOME:+"$XDG_CONFIG_HOME"} ~/.config /etc; do