From 5617b764bf63346711337ea9eaaa3c5335bcf6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 8 Feb 2021 17:18:39 +0300 Subject: Script to update display config Without having to reload all of Sway's config. --- dotfiles/.local/bin/setbg | 7 +------ dotfiles/.local/bin/updisplay | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100755 dotfiles/.local/bin/updisplay diff --git a/dotfiles/.local/bin/setbg b/dotfiles/.local/bin/setbg index 255f503..9daca99 100755 --- a/dotfiles/.local/bin/setbg +++ b/dotfiles/.local/bin/setbg @@ -5,9 +5,4 @@ mon="1" cp $1 "$HOME/.config/wall$mon.png" -IFS=$'\n' -outputcf=$(grep '^output .* background.*$' ~/.config/sway/$(uname -n)) - -for line in $outputcf; do - swaymsg $line -done +updisplay diff --git a/dotfiles/.local/bin/updisplay b/dotfiles/.local/bin/updisplay new file mode 100755 index 0000000..e9a7f69 --- /dev/null +++ b/dotfiles/.local/bin/updisplay @@ -0,0 +1,8 @@ +#!/bin/sh + +IFS=$'\n' +outputcf=$(grep '^output .*$' ~/.config/sway/$(uname -n)) + +for line in $outputcf; do + swaymsg $line +done -- cgit v1.2.3