aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/updisplay
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-06-23 09:05:23 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-06-23 09:05:23 +0300
commit0307a93e790e9e6ad7247429574a43730e7c82ce (patch)
tree0c03dc182de1e75fd4580050a22fed3e34d3afa5 /dotfiles/.local/bin/updisplay
parentaa83e1e05381dde8400d3748f5b6dd0dca5f09a8 (diff)
downloadswayrice-0307a93e790e9e6ad7247429574a43730e7c82ce.tar.gz
swayrice-0307a93e790e9e6ad7247429574a43730e7c82ce.zip
updisplay script now POSIX-compatible
Diffstat (limited to 'dotfiles/.local/bin/updisplay')
-rwxr-xr-xdotfiles/.local/bin/updisplay3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/updisplay b/dotfiles/.local/bin/updisplay
index e9a7f69..4bd27af 100755
--- a/dotfiles/.local/bin/updisplay
+++ b/dotfiles/.local/bin/updisplay
@@ -1,6 +1,7 @@
#!/bin/sh
-IFS=$'\n'
+IFS='
+'
outputcf=$(grep '^output .*$' ~/.config/sway/$(uname -n))
for line in $outputcf; do