snips/dwl.session

17 lines
467 B
Bash
Executable File

#!/usr/bin/env bash
export XDG_RUNTIME_DIR=$(mktemp --directory --suffix=.${USER})
echo $XDG_RUNTIME_DIR used for Wayland session
export WLR_LIBINPUT_NO_DEVICES=1
export PATH=~/bin:$PATH
export DWLTAGS_FILE=${XDG_RUNTIME_DIR}/dwl.tags.${USER}.out
# export DWLTAGS_FMT=TXT # Waybar uses this
export DWLTAGS_FMT=DZEN
echo "Session: in $1 " $DWLTAGS_FILE
echo "Session: " $DWLTAGS_FILE >> $XDG_RUNTIME_DIR/dwl.log
exec /usr/local/bin/dwl -s $HOME/bin/dwl.entourage