DWL startup scripting cleanup

This commit is contained in:
Mahesh Asolkar 2024-03-24 12:37:05 -07:00
parent 464d2a6a25
commit 52d9a2773d
4 changed files with 29 additions and 9 deletions

View File

@ -14,8 +14,22 @@ if [[ $NUM_DISPS > 1 ]]; then
# Dual screen
# wlr-randr --output HDMI-A-1 --on --pos 0,0 --output eDP-1 --on --pos 0,1050
# wlr-randr --output HDMI-A-1 --on --pos 0,0 --output eDP-1 --on --pos 2560,0
# With Dell 1920x1200 display
wlr-randr --output HDMI-A-1 --on --pos 0,0 --output eDP-1 --on --pos 0,1200
# With Dell 1920x1200 display - vertical arrangement
#
# .--------------------------------.
# | |
# | DELL 24" 1920x1200 |
# | (HDMI-A-1) |
# | |
# `--------------------------------'
# | |
# | LAPTOP 13" 1366x768 |
# | (eDP-1) |
# | |
# `-------------------------'
#
wlr-randr --output HDMI-A-1 --on --pos 0,0 --output eDP-1 --on --pos 300,1200
else
# Single laptop screen
wlr-randr --output HDMI-A-1 --off --output eDP-1 --on --pos 0,0
@ -47,8 +61,7 @@ swayidle -w timeout 600 swaylock &
# ----------------------------------------------------------
# Redirect STDIN to STDOUT and pass along to tags script
# ----------------------------------------------------------
BAR_PATH=/usr/local/bin/somebar
# BAR_PATH=/home/mahesh/git/somebar_20231001/build/somebar
DWL_BAR=$DWL_BAR_PATH/somebar
export SOMEBAR_FIFO=$XDG_RUNTIME_DIR/somebar.fifo
mkfifo $SOMEBAR_FIFO -m666
@ -58,5 +71,5 @@ conky -c ~/.conkyrc > $SOMEBAR_FIFO &
(while read line
do
echo $line
done) | ($BAR_PATH -s $SOMEBAR_FIFO > $XDG_RUNTIME_DIR/somebar.log 2>&1)
done) | ($DWL_BAR -s $SOMEBAR_FIFO > $XDG_RUNTIME_DIR/somebar.log 2>&1)

View File

@ -2,6 +2,12 @@
echo $XDG_RUNTIME_DIR used for Wayland session
export WLR_LIBINPUT_NO_DEVICES=1
export DWL_PATH=/usr/local/bin
# export DWL_PATH=/home/mahesh/git/dwl_20240101
export DWL_BAR_PATH=/usr/local/bin
# export DWL_BAR_PATH=/home/mahesh/git/somebar_20240217/build
# export DWLTAGS_SHOW_MON=1
export PATH=~/bin:$PATH
# export DWL_LOG_VERBOSE=1
@ -9,4 +15,4 @@ export PATH=~/bin:$PATH
echo "Session: in $XDG_RUNTIME_DIR" >> $DWL_LOG_FILE
env
exec /usr/local/bin/dwl -s $HOME/bin/dwl.entourage
exec $DWL_PATH/dwl -s $HOME/bin/dwl.entourage

View File

@ -1,8 +1,9 @@
#!/usr/bin/env bash
act=$1
timestamp=$(date)
echo "$0 - $act" >> ~/dwl_key_act.log
echo "$0 - $timestamp - $act" >> ~/dwl_key_act.log
# In Wayland, use the following like X11's xev:
#
@ -20,7 +21,7 @@ case $act in
# wlan) ;;
# tools) ;;
# search) ;;
# launch) ;;
launch) wldash;;
# explore) ;;
*) echo "Unknown action '$act'";;
esac

View File

@ -52,5 +52,5 @@ function pgrep () {
}
function start_tmux () {
tmux new -A -s Tenor
TERM=screen-256color tmux new -A -s DevEnv
}