dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 5b097d64504b31a6050304945caa81ad1ff0a130
parent bd373bdd28aafc066c1c9abad4fee64779b4667f
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Thu, 30 Apr 2026 14:13:20 -0300

.local/bin: added startpwm

Diffstat:
A.local/bin/startpwm | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/.local/bin/startpwm b/.local/bin/startpwm @@ -0,0 +1,20 @@ +#/bin/sh + +{ + if ! tmux has-session -t pwm 2>/dev/null; then + tmux new-session -s pwm -c ~ -d + sleep 0.2 + tmux send-keys -t pwm:0.0 "sudo make clean; make -C dox/dev/pwm; sudo make -C dox/dev/pwm install; DISPLAY=:0 TMUX= pwm" + tmux new-window -d -t pwm:1 -c ~/dox/dev/pwm -n pwm + tmux new-window -d -t pwm:2 -c ~/dox/dev/dwm-commented -n dwm-com + tmux new-window -d -t pwm:3 -c ~/dox/dev/dwm -n dwm + fi + sleep 1 + DISPLAY=:0 setxkbmap us -variant altgr-intl + # DISPLAY=:0 xrandr --dpi 108 + # DISPLAY=:0 xrandr --setprovideroutputsource modesetting NVIDIA-0 + # DISPLAY=:0 xrandr --auto + DISPLAY=:0 st -e tmux a -t pwm +}& + +X -nolisten tcp -keeptty :0 vt1 >$XDG_RUNTIME_DIR/X.out.log 2>$XDG_RUNTIME_DIR/X.err.log