From 4e5bf71bb5debc346f4473d65b8d89752d037b76 Mon Sep 17 00:00:00 2001
From: Jens Nolte <jens@nightmarestudio.de>
Date: Sat, 1 Feb 2020 21:10:56 +0100
Subject: [PATCH] Update run-sway to restore to last used command

---
 bin/run-sway | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/run-sway b/bin/run-sway
index 992c0c8..81096cb 100755
--- a/bin/run-sway
+++ b/bin/run-sway
@@ -3,7 +3,7 @@
 set -e
 set -u
 
-readonly default_bar_command="qbar server"
+readonly default_bar_command="$(swaymsg -t get_bar_config bar-0 | jq --raw-output .status_command)"
 readonly executable_name=qbar
 readonly sway_bar_id=bar-0
 
-- 
GitLab