New DWL utility to switch context

This commit is contained in:
Mahesh Asolkar 2025-04-20 11:00:17 -07:00
parent 4de2de5cf7
commit d36941b3d1
Signed by: asolkar
GPG Key ID: 371CA8164433BDCC

16
dwl.switch_context Executable file
View File

@ -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