Jouni Rinne | 1 Oct 2008 14:10
Favicon

Newbie questions

Two questions from an awesome-n00b:
1) What is the meaning of the small white (or black-on-white) squares on the tab
selector?
2) How can I get rid of them? (Annoyingly, the squares partially obscure the tab
numbers)

Jouni Rinne
--

-- 
| me <at> home ~$whoami            ^ ^  | "Trust me, I know what I'm doing!" |
| Jouni 'Mad Max' Rinne      ('x') | - Sledge Hammer                    |
| me <at> home ~$man woman       C " "  | -------[ph34r t3h p3Ngu1n]-------- |
| Segmentation fault (core dumped) | ::   Last.fm user ID: l33tmmx   :: |

Jouni Rinne | 1 Oct 2008 14:02
Favicon

Startup script

Because awesome seems to lack an inbuild method of starting programs at startup
(unlike my previous wm-of-choice, fluxbox), and kdm, gdm and other display
managers completely ignore .xinitrc and .Xsession, I made the following wrapper
script:

#!/bin/bash
STARTFILE=${HOME}/.config/awesome/startup
if [ ! -e $STARTFILE ]; then
	touch $STARTFILE
	chmod +x $STARTFILE
fi
$STARTFILE
exec awesome

Then I modified the /usr/share/xsessions/awesome.desktop to run the wrapper
script. (KDM uses the mentioned .desktop file, at least on Gentoo). The programs
to start should be placed in the ~/.config/awesome/startup file.

Maybe something similar could be integrated in the future versions of awesome?

Jouni Rinne

--

-- 
| me <at> home ~$whoami            ^ ^  | "Trust me, I know what I'm doing!" |
| Jouni 'Mad Max' Rinne      ('x') | - Sledge Hammer                    |
| me <at> home ~$man woman       C " "  | -------[ph34r t3h p3Ngu1n]-------- |
| Segmentation fault (core dumped) | ::   Last.fm user ID: l33tmmx   :: |

Julien Danjou | 1 Oct 2008 14:18
Gravatar

Re: Startup script

At 1222862577 time_t, Jouni Rinne wrote:
> Because awesome seems to lack an inbuild method of starting programs at startup
> (unlike my previous wm-of-choice, fluxbox), and kdm, gdm and other display
> managers completely ignore .xinitrc and .Xsession, I made the following wrapper
> script:

Yes it does, because adding such a feature would be like reinventing the
wheel.
If you want to start program use .xinitrc or .xsession, depending on
what you use to start X (startx or a DM).

You can also use awful.spawn() at the end of rc.lua.

--

-- 
Julien Danjou
// ᐰ <julien <at> danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
Jouni Rinne | 1 Oct 2008 14:30
Favicon

Re: Startup script

Julien Danjou kirjoitti:
> At 1222862577 time_t, Jouni Rinne wrote:
>> Because awesome seems to lack an inbuild method of starting programs at startup
>> (unlike my previous wm-of-choice, fluxbox), and kdm, gdm and other display
>> managers completely ignore .xinitrc and .Xsession, I made the following wrapper
>> script:
> 
> Yes it does, because adding such a feature would be like reinventing the
> wheel.
> If you want to start program use .xinitrc or .xsession, depending on
> what you use to start X (startx or a DM).

Well, at least KDM ignores .xsession (or .Xsession) too, don't know about other
DM's, haven't tried them on this computer.

> 
> You can also use awful.spawn() at the end of rc.lua.
> 

Thanks, I'll try that method :)

JR

--

-- 
| me <at> home ~$whoami            ^ ^  | "Trust me, I know what I'm doing!" |
| Jouni 'Mad Max' Rinne      ('x') | - Sledge Hammer                    |
| me <at> home ~$man woman       C " "  | -------[ph34r t3h p3Ngu1n]-------- |
| Segmentation fault (core dumped) | ::   Last.fm user ID: l33tmmx   :: |

(Continue reading)

Pierre Guinoiseau | 1 Oct 2008 15:18
Gravatar

Re: Startup script

KDM _can_ run .xsession (I use it), just launch "Custom session" or
something like this (I don't remember well), and it'll do. ;)
And GDM can to, in a similar way, I use it too on another laptop.

Jouni Rinne wrote:
> Julien Danjou kirjoitti:
>> At 1222862577 time_t, Jouni Rinne wrote:
>>> Because awesome seems to lack an inbuild method of starting programs at startup
>>> (unlike my previous wm-of-choice, fluxbox), and kdm, gdm and other display
>>> managers completely ignore .xinitrc and .Xsession, I made the following wrapper
>>> script:
>> Yes it does, because adding such a feature would be like reinventing the
>> wheel.
>> If you want to start program use .xinitrc or .xsession, depending on
>> what you use to start X (startx or a DM).
> 
> Well, at least KDM ignores .xsession (or .Xsession) too, don't know about other
> DM's, haven't tried them on this computer.
> 
>> You can also use awful.spawn() at the end of rc.lua.
>>
> 
> Thanks, I'll try that method :)
> 
> JR
> 

Mike Mattie | 1 Oct 2008 18:07
Picon

[Fwd: Re: Startup script]

forgot to "Reply All"

-------- Original Message --------
Subject: 	Re: Startup script
Date: 	Wed, 01 Oct 2008 09:03:54 -0700
From: 	Mike Mattie <codermattie <at> gmail.com>
To: 	Jouni Rinne <jouni.rinne <at> luukku.com>
References: 	<48E366F1.7060508 <at> luukku.com>

Jouni Rinne wrote:
>  Because awesome seems to lack an inbuild method of starting programs at startup
>  (unlike my previous wm-of-choice, fluxbox), and kdm, gdm and other display
>  managers completely ignore .xinitrc and .Xsession, I made the following wrapper
>  script:
>
>  #!/bin/bash
>  STARTFILE=${HOME}/.config/awesome/startup
>  if [ ! -e $STARTFILE ]; then
>  	touch $STARTFILE
>  	chmod +x $STARTFILE
>  fi
>  $STARTFILE
>  exec awesome
>
>  Then I modified the /usr/share/xsessions/awesome.desktop to run the wrapper
>  script. (KDM uses the mentioned .desktop file, at least on Gentoo). The programs
>  to start should be placed in the ~/.config/awesome/startup file.
>
>  Maybe something similar could be integrated in the future versions of awesome?
>
(Continue reading)

Jouni Rinne | 2 Oct 2008 13:04
Favicon

Re: Startup script

Pierre Guinoiseau kirjoitti:
> KDM _can_ run .xsession (I use it), just launch "Custom session" or
> something like this (I don't remember well), and it'll do. ;)
> And GDM can to, in a similar way, I use it too on another laptop.
> 

Of course you are right, I wasn't aware of that... Thanks for pointing that out
for me :)
(sigh) I just hope the *DM developers would make things easier for the
'do-it-yourself' people like us.

> Jouni Rinne wrote:
>> Julien Danjou kirjoitti:
>>> At 1222862577 time_t, Jouni Rinne wrote:
>>>> Because awesome seems to lack an inbuild method of starting programs at startup
>>>> (unlike my previous wm-of-choice, fluxbox), and kdm, gdm and other display
>>>> managers completely ignore .xinitrc and .Xsession, I made the following wrapper
>>>> script:
>>> Yes it does, because adding such a feature would be like reinventing the
>>> wheel.
>>> If you want to start program use .xinitrc or .xsession, depending on
>>> what you use to start X (startx or a DM).
>> Well, at least KDM ignores .xsession (or .Xsession) too, don't know about other
>> DM's, haven't tried them on this computer.
>>
>>> You can also use awful.spawn() at the end of rc.lua.
>>>
>> Thanks, I'll try that method :)
>>
>> JR
(Continue reading)

Tobias Nissen | 6 Oct 2008 23:49
Picon

Real alt+tab behaviour

Hi!

In http://awesome.naquadah.org/bugs/index.php?do=details&task_id=208 it
says, that the default alt+tab behaviour has been implemented. In the
rc.lua file that ships with the current awesome 3 version in Debian
experimental, alt+tab only calls awful.client.focus.history.previous,
which switches focus only between the last two focused clients (even
when alt is held down and tab is pressed multiple times).

Has anyone lua code floating around that accomplishes this? If not, do
I have to define a keychain for alt or something like that? Any
pointers?

Regards,
Tobias
dante4d | 7 Oct 2008 21:19
Picon

Modkey only binds

Hi,
can I create key binding using only Control key, or Alt+Shift (simulate X grp_switch keys, so I can make my own logic for switching)?
So far I haven't come up with any solution.
Thanks
Dave
Julien Danjou | 8 Oct 2008 08:50
Gravatar

Re: Modkey only binds

Hi,

At 1223407164 time_t, dante4d wrote:
> can I create key binding using only Control key, or Alt+Shift (simulate X
> grp_switch keys, so I can make my own logic for switching)?
> So far I haven't come up with any solution.

No you can't use only modkeys as binding. That's rather a X limitation
than an awesome one.

Cheers,
--

-- 
Julien Danjou
// ᐰ <julien <at> danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD

Gmane