Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AwesomeWM setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gr4c3r
n00b
n00b


Joined: 21 Sep 2013
Posts: 3

PostPosted: Sun Sep 22, 2013 12:59 pm    Post subject: AwesomeWM setup Reply with quote

Hi,

finally I've managed to setup awesome wm, start it automatically and autologin, without an display manger.
As single user on this system, I prefer autologin.
Since I had different problems to find right ways, I wanted to share the way how I did this and which is working fine for me.
Maybe someone have an better way to do this.

I followed this Wiki entry to install and configure awesome.
http://wiki.gentoo.org/wiki/Awesome

Now in /etc/inittab have append the line:
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux


with "-a <user>" (<user> as my username) that my user logs in automatically on tty1.
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux -a <user>


Add bellow into ~/.bashrc to run XServer when I log in.
In bellow script I check if there's already an DISPLAY defined and if current tty is /dev/tty1 to avoid to start an xServer again and again everytime when I start a shell.
Code:
if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then
    while true
    do
        startx --
        sleep 10
    done
fi


Add awesome to ~/.xinitrc
Code:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session awesome


Regards Julian
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 99
Location: AU

PostPosted: Mon Sep 23, 2013 3:17 pm    Post subject: Reply with quote

Another bash way to start it is x11-misc/cdm
Back to top
View user's profile Send private message
rorgoroth
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 221
Location: England, UK

PostPosted: Mon Sep 23, 2013 4:27 pm    Post subject: Reply with quote

Here is my way of starting Awesome at login:

(Using .zprofile)
Code:
[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1


It allows the chance to change to another tty if I need/want to do something as root or normal user before starting an X session.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum