2021-05-26 05:23:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-12-25 19:30:33 +00:00
|
|
|
function log_this() {
|
|
|
|
TSTMP=$(date)
|
|
|
|
echo "$TSTMP : " $1 >> $DWL_LOG_FILE
|
|
|
|
}
|
2021-05-26 05:23:50 +00:00
|
|
|
|
2024-09-19 01:44:47 +00:00
|
|
|
log_this "Entourage: $XDG_RUNTIME_DIR"
|
2021-06-01 05:23:35 +00:00
|
|
|
|
2021-05-29 22:40:00 +00:00
|
|
|
# ----------------------------------------------------------
|
2021-05-26 05:23:50 +00:00
|
|
|
# Let DWL start
|
2021-05-29 22:40:00 +00:00
|
|
|
# ----------------------------------------------------------
|
2021-05-26 05:23:50 +00:00
|
|
|
while [ ! -e "$XDG_RUNTIME_DIR/wayland-0.lock" ]
|
|
|
|
do
|
2023-12-25 19:30:33 +00:00
|
|
|
log_this "DWL getting ready..."
|
2021-05-26 05:23:50 +00:00
|
|
|
sleep 1
|
|
|
|
done
|
2023-12-25 19:30:33 +00:00
|
|
|
log_this "DWL ready!"
|
2021-05-26 05:23:50 +00:00
|
|
|
|
2021-05-29 22:40:00 +00:00
|
|
|
# ----------------------------------------------------------
|
2024-09-19 01:44:47 +00:00
|
|
|
# Background and support tasks
|
2021-05-29 22:40:00 +00:00
|
|
|
# ----------------------------------------------------------
|
2022-11-07 02:07:44 +00:00
|
|
|
# TODO: Consuimng too much CPU - keeps fan spinning
|
2024-09-19 01:44:47 +00:00
|
|
|
# source ~/bin/dwl.wallpaper_setup
|
2021-05-26 05:23:50 +00:00
|
|
|
|
2023-12-25 19:30:33 +00:00
|
|
|
log_this "Entourage: Starting screen locker with 10min idle time"
|
2024-09-19 01:44:47 +00:00
|
|
|
source ~/bin/dwl.idle_setup
|
2021-12-20 22:44:41 +00:00
|
|
|
|
2024-09-19 01:44:47 +00:00
|
|
|
log_this "Entourage: Configuring $(wlr-randr | grep -E "^\w+" | wc -l) displays"
|
|
|
|
source ~/bin/dwl.randr_setup
|
2023-12-25 19:30:33 +00:00
|
|
|
|
2024-09-19 01:44:47 +00:00
|
|
|
log_this "Entourage: Setting up notification"
|
|
|
|
source ~/bin/dwl.notification_setup
|
2023-12-25 19:30:33 +00:00
|
|
|
|
2024-09-19 01:44:47 +00:00
|
|
|
log_this "Entourage: Setting up MPD support"
|
|
|
|
source ~/bin/dwl.mpd_support_setup
|
2021-05-29 22:40:00 +00:00
|
|
|
|
2024-09-19 01:44:47 +00:00
|
|
|
log_this "Entourage: Starting somebar using $SOMEBAR_FIFO"
|
|
|
|
source ~/bin/dwl.bar_setup
|