Files
snips/dwl.entourage
2026-03-01 09:16:40 -08:00

45 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
function log_this() {
TSTMP=$(date)
echo "$TSTMP : " $1 >> $DWL_LOG_FILE
}
log_this "Entourage: $XDG_RUNTIME_DIR"
# ----------------------------------------------------------
# Let DWL start
# ----------------------------------------------------------
while [ ! -e "$XDG_RUNTIME_DIR/wayland-0.lock" ]
do
log_this "DWL getting ready..."
sleep 1
done
log_this "DWL ready!"
# ----------------------------------------------------------
# Background and support tasks
# ----------------------------------------------------------
# TODO: Consuimng too much CPU - keeps fan spinning
# source ~/bin/dwl.wallpaper_setup
log_this "Entourage: Starting screen locker with 10min idle time"
source ~/bin/dwl.idle_setup
log_this "Entourage: Configuring $(wlr-randr | grep -E "^\w+" | wc -l) displays"
source ~/bin/dwl.randr_setup
log_this "Entourage: Setting up notification"
source ~/bin/dwl.notification_setup
log_this "Entourage: Setting up MPD support"
source ~/bin/dwl.mpd_support_setup
# SOMEBAR # log_this "Entourage: Starting somebar using $SOMEBAR_FIFO"
log_this "Entourage: Starting waybar"
source ~/bin/dwl.bar_setup
pipewire &
wireplumber &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &