First you need to edit /etc/profile and comment out that line you added (put a # at the start of the line) since we don't want it auto-running that script on the login terminal any more.
Now install i3 and the stuff needed to make it usable.
Code:
sudo apt-get install xorg xinit i3 i3status dmenu
I *think* that'll pull in all the needed dependencies on Debian.
Now make/edit ~/.bash_profile to start X automatically:
Code:
nano ~/.bash_profile
And add this at the bottom (if the file is empty just add this):
Code:
[[ -z $DISPLAY && $XDG_VTNR -le 3 ]] && startx
(This assumes that you're logging in on VT3 or lower, if you're not we'll cross that bridge then)
Now make/edit ~/.xinitrc to make it start i3 when X starts:
Code:
nano ~/.xinitrc
And add this at the bottom:
Code:
exec i3
Now make the i3 config file:
Code:
nano ~/.i3/config
And put the following in it:
Code:
set $mod Mod4
# start a terminal
bindsym $mod+Return exec xfce4-terminal --hide-menubar
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
new_window 1pixel
hide_edge_borders both
exec --no-startup-id xset -dpms;xset s off
exec --no-startup-id xfce4-terminal -e "node /path/to/index.js" --hide-menubar --hold
Reboot and it *should* work. The i3 bar shouldn't show, but if it does let me know and I'll sort it (I'm using a more recent i3 than Debian has and the config has changed so it's tricky to test).
That's a very minimal config. All you can do is close windows (win+shift+q), open a terminal (win+enter) and also launch programs by pressing win+d and then typing their name. To exit i3 press win+shift+e.
, , , , , , , , , ,
`' (o,o) (o,o) (o,o) (o,o) (o,o)
*\* |)__) |)__) |)__) |)__) |)__)
''`>-,--”-”---”-”---”-”---”-”---”-”----
,'.*''`
|