serhii.net

In the middle of the desert you can say anything you want

29 Mar 2021

Day 818

i3 startup - final

I can’t start everything from within i3 config. keynav doesn’t work (though it’s running), and compton creates a black strip in the bottom monitor when started as exec compton via i3. Though executing a startup script from within i3, a script starting everything else I need, somehow works. I remember dealing with this in the past, and this created the current chaotic setup.

Startup script (./s/s.sh) :

setxkbmap -option -option 'grp:rctrl_toggle, compose:rwin, compose:paus' v5,ruua
xmodmap ~/s/mod4
xcape -e 'Control_L=Escape' -t 100 

autorandr -l home

feh --bg-center ~/s/bg.jpg ~/s/bg.jpg

compton

keynav

i3 config startup script:

exec ~/s/s.sh
exec --no-startup-id redshift
exec --no-startup-id nm-applet

Removing dysfunctional setups

vim - remove save as root

I had this, but it started too often by error.

:W sudo saves the file 
" command W w !sudo tee % > /dev/null

New zsh prompt

Added this in a modified sh-trapd00r theme:

dir_status="%{$c1%}%* %B%7c/ %?"
PROMPT='%{$fg_bold[green]%}%p%{$reset_color%}${dir_status} ${ret_status}%{$reset_color%}
%{$fg_bold[green]%}> %{$reset_color%}'
Nel mezzo del deserto posso dire tutto quello che voglio.