jerome zh | 1 Apr 2011 07:03
Picon

Switch between GNOME and Awesome

Hi all,


Does anyone know the simplest way to switch between GNOME and Awesome? I am currently in Awesome with my debian5.
Thanks in advance. 

--
Regards,

Jerome
floyd.will | 1 Apr 2011 13:21
Picon

Re: Switch between GNOME and Awesome

On , jerome zh <jeromezhr <at> gmail.com> wrote:
> Hi all,
>
> Does anyone know the simplest way to switch between GNOME and Awesome? I am currently in Awesome with my debian5.
> Thanks in advance. 
> --
> Regards,
>
> Jerome

ahem. wiki: https://awesome.naquadah.org/wiki/Quickly_Setting_up_Awesome_with_Gnome

gnome is a Desktop Environment which uses Metacity (still?) as its Window Manager. awesome is a Window Manager too, and you can use it to replace Metacity.

jerome zh | 1 Apr 2011 15:45
Picon

Re: Switch between GNOME and Awesome



2011/4/1 <floyd.will <at> gmail.com>
On , jerome zh <jeromezhr <at> gmail.com> wrote:
> Hi all,
>
> Does anyone know the simplest way to switch between GNOME and Awesome? I am currently in Awesome with my debian5.
> Thanks in advance. 
> --
> Regards,
>
> Jerome

ahem. wiki: https://awesome.naquadah.org/wiki/Quickly_Setting_up_Awesome_with_Gnome

gnome is a Desktop Environment which uses Metacity (still?) as its Window Manager. awesome is a Window Manager too, and you can use it to replace Metacity.
 
Add the awesome maillist.
Thanks for your replay! But I have worked under Awesome for a while. For some reason, I need to change back to GNOME. The wiki link seems only give out the way for how change GNOME to Awesome..

--
Regards,

Jerome
Vitor Eiji Justus Sakaguti | 1 Apr 2011 17:20
Picon

Re: Switch between GNOME and Awesome

On Fri, Apr 1, 2011 at 10:45 AM, jerome zh <jeromezhr <at> gmail.com> wrote:
>
>
> 2011/4/1 <floyd.will <at> gmail.com>
>>
>> On , jerome zh <jeromezhr <at> gmail.com> wrote:
>> > Hi all,
>> >
>> > Does anyone know the simplest way to switch between GNOME and Awesome? I
>> > am currently in Awesome with my debian5.
>> > Thanks in advance.
>> > --
>> > Regards,
>> >
>> > Jerome
>>
>> ahem. wiki:
>> https://awesome.naquadah.org/wiki/Quickly_Setting_up_Awesome_with_Gnome
>>
>> gnome is a Desktop Environment which uses Metacity (still?) as its Window
>> Manager. awesome is a Window Manager too, and you can use it to replace
>> Metacity.
>
>
> Add the awesome maillist.
> Thanks for your replay! But I have worked under Awesome for a while. For
> some reason, I need to change back to GNOME. The wiki link seems only give
> out the way for how change GNOME to Awesome..

This is your april fool's joke, right?

chris M. sprite | 1 Apr 2011 19:15
Picon
Gravatar

save session when exit awesome

usually I will let my notebook running when i go to sleep because I has some work on it . 
I notice that maybe awesome can save every Apps's session like position ect when exit awesome .
If this is possible, tell me how .

beside . How to let awesome go to save power ( battery ) mode ?

--

-- 
I try to detoxify my memory.    ---- http://about.me/Evanescence
Forget can not be treated as betray.
It's not certainly a love even though you  remember to the end of your life.

Thorsten Sperber | 1 Apr 2011 20:31
Picon
Favicon

Re: save session when exit awesome

Am 01.04.2011 19:15, schrieb chris M. sprite:
> usually I will let my notebook running when i go to sleep because I has some work on it .
> I notice that maybe awesome can save every Apps's session like position ect when exit awesome .
> If this is possible, tell me how .
>
> beside . How to let awesome go to save power ( battery ) mode ?
>

It doesn't depend on awesome. If you want your notebook to suspend, add 
an entry to your menu or something like this. I bound the sleep funktion 
to mod-ctrl-q.

Code:

awful.key({modkey, "Control" }, "q", function () 
awful.util.spawn('dbus-send --system --print-reply 
--dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer 
org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0') end)

have a look here 
http://debianforum.de/forum/viewtopic.php?f=27&t=127602&hilit=hal#p818468 (german 
forum) for other examples.

Another way is to spawn pm-suspend or s2ram.

Peter Schwede | 1 Apr 2011 21:41
Picon

Re: save session when exit awesome

On 01.04.2011 19:15, chris M. sprite wrote:
> usually I will let my notebook running when i go to sleep because I has some work on it .
> I notice that maybe awesome can save every Apps's session like position ect when exit awesome .
> If this is possible, tell me how .
>
> beside . How to let awesome go to save power ( battery ) mode ?
>

On Ubuntu, I know the command

     sudo pm-hibernate

It stores the current RAM to your disk during the shutdown and reloads 
it into RAM when booting again, which I'd guess would basically be what 
you want.

I bet, there's a command for switching to battery mode for linux, too.

There's a way to add this to your awesome-menu or define a Shortcut for 
this. See the documentary or read 
https://awesome.naquadah.org/wiki/My_first_awesome for more details!

Thorsten Sperber | 1 Apr 2011 20:48
Picon
Favicon

Re: save session when exit awesome

Am 01.04.2011 21:41, schrieb Peter Schwede:
> On 01.04.2011 19:15, chris M. sprite wrote:
>> usually I will let my notebook running when i go to sleep because I 
>> has some work on it .
>> I notice that maybe awesome can save every Apps's session like 
>> position ect when exit awesome .
>> If this is possible, tell me how .
>>
>> beside . How to let awesome go to save power ( battery ) mode ?
>>
>
> On Ubuntu, I know the command
>
>     sudo pm-hibernate
>
> It stores the current RAM to your disk during the shutdown and reloads 
> it into RAM when booting again, which I'd guess would basically be 
> what you want.
>
> I bet, there's a command for switching to battery mode for linux, too.
>
> There's a way to add this to your awesome-menu or define a Shortcut 
> for this. See the documentary or read 
> https://awesome.naquadah.org/wiki/My_first_awesome for more details!
>

I knew there was a reason to use dbus: it runs as an unprivileged user ;)

Patrick Bethke | 1 Apr 2011 22:11
Picon

Re: idea about making awesome-client more flexible

i tried making a short script with just that tr pipe in it, but i find that " in the source file break awesome-client. thats not a big deal as long as i need only one level of quotes, but i tried to pass something like
'<span font="DejaVu Sans Mono Book" weight="bold">'
which then fails to parse properly. is there some way to provide that functionality? maybe implementing awesome-client in lua with direct dbus?


2011/3/24 Patrick Bethke <ptrck.bthk <at> gmail.com>
what if my function or whatever i want to send to awesome-client. does awesome-client now support something like #/usr/bin/awesome-client?


2010/12/17 Vivian Brégier <Vivian.Bregier <at> are-ata.org>
For your information, using "tr" instead of "xargs echo" should remove
the string size limit, since the string isn't passed as argument :

echo '
if something == anything then
 do_something
end
' | tr '\n' ' ' | awesome-client

2010/12/16 Manner Robert <rmanni <at> gmail.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I had an idea about moving part of my rc.lua functionality into scripts
> running through awesome-client. However, as I see awesome-client is
> sending the commands line by line, so what I send through it has to have
> a meaning for each line. This makes it somehow limited and unsuitable
> for this purpose.
>
> Here is an example, I would do:
>
> echo "
> if something == anything then
>    do_something
> end
> " | awesome-client
>
> It says for the first line that "error end is missing", executes the
> second line, and says another error for the 3rd. This can be overcome by
> sending it in one line since lua is quite flexible about newlines :)
>
> echo "
> if something == anything then
>    do_something
> end
> " | xargs echo | awesome-client
>
> I guess I do not have to explain why I do not like this, it has
> limitation on the size of the program as argument count is limited, it
> modifies the program (removes quotation marks, apostrophes) etc.
>
> I am wandering how cool it was if I could write awesome scripts like any
> other scripts:
>
> #! /usr/bin/awesome-client
> - -- lua code comes here
>
> Or, it would be much better if we could communicate with awesome through
> a local socket or a pipe and send to it programs to execute. Is this
> already possible / do you plan such?
>
> Thanks for all your work,
>
> Manner Robert
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNCezMAAoJEFxyEaJhvswtn2YH/0votAXlrr8YiywGVOdtexUB
> uUKvh6W026HFKKXQs6VsMlMYira6eQV4UdNypGRptRSlvDG6Slvf+YgHxwFPDnZ8
> Nzr0a01fj+cgIbac8OM9wSSPxArPshZIg711EWgzKEOq+3TjlS0Fh6OubXtZRKK3
> TrVeuAIdQaPEoRFmTHwmY6rYs4mGm/Iro8jHftNVl4YTcyM4WvEW/rDEX8fO1ga+
> iLt7gF9AHbHztbIjaae0zFXBdU9Y4W16b2EBwoVd8htgWzf77Hur+TeClMz8+hLU
> M6Fj3sryXdgwEUniWP9M3EhDON657UU0s1PmWvnGPV/t7ciG7BNKcx8sGzsINFk=
> =F0Z+
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, send mail to awesome-unsubscribe <at> naquadah.org.
>



--
Vivian Brégier
http://www.are-ata.org/Vivian.vcf

--
To unsubscribe, send mail to awesome-unsubscribe <at> naquadah.org.


Ellie Frost | 1 Apr 2011 22:32
Gravatar

Re: save session when exit awesome

On 1 April 2011 14:48, Thorsten Sperber <lists <at> aero2k.de> wrote:
>
> Am 01.04.2011 21:41, schrieb Peter Schwede:
>>
>> On 01.04.2011 19:15, chris M. sprite wrote:
>>>
>>> usually I will let my notebook running when i go to sleep because I has some work on it .
>>> I notice that maybe awesome can save every Apps's session like position ect when exit awesome .
>>> If this is possible, tell me how .
>>>
>>> beside . How to let awesome go to save power ( battery ) mode ?
>>>
>>
>> On Ubuntu, I know the command
>>
>>    sudo pm-hibernate
>>
>> It stores the current RAM to your disk during the shutdown and reloads it into RAM when booting again,
which I'd guess would basically be what you want.
>>
>> I bet, there's a command for switching to battery mode for linux, too.
>>
>> There's a way to add this to your awesome-menu or define a Shortcut for this. See the documentary or read
https://awesome.naquadah.org/wiki/My_first_awesome for more details!
>>
>
> I knew there was a reason to use dbus: it runs as an unprivileged user ;)

I added the following to /etc/sudoers:

sib ALL =(ALL) NOPASSWD: /usr/sbin/pm-suspend

where sib is my username. It's not perfectly elegant, but it certainly
works. I use acpi to send sudo pm-suspend when the lid is closed.

Ellie

> --
> To unsubscribe, send mail to awesome-unsubscribe <at> naquadah.org.


Gmane