From d36941b3d1cd3464cf89812abba69a7fdee28d87 Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Sun, 20 Apr 2025 11:00:17 -0700 Subject: [PATCH] New DWL utility to switch context --- dwl.switch_context | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dwl.switch_context diff --git a/dwl.switch_context b/dwl.switch_context new file mode 100755 index 0000000..70a016a --- /dev/null +++ b/dwl.switch_context @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +function log_this() { + TSTMP=$(date) + echo "$TSTMP : " $1 >> $DWL_LOG_FILE +} + +# ---------------------------------------------------------- +# Let DWL start +# ---------------------------------------------------------- + +log_this "Switch Context: Configuring $(wlr-randr | grep -E "^\w+" | wc -l) displays" +source ~/bin/dwl.randr_setup + +log_this "Switch Context: Starting somebar using $SOMEBAR_FIFO" +source ~/bin/dwl.bar_setup