DWL startup scripting cleanup

This commit is contained in:
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)