You are not logged in.

#26 2009-02-18 17:19:33

SLKDK
Member
Registered: 2008-08-11
Posts: 61

Re: Tiling WMs

Last problem that needs to be solved with awesome and I am satisfied with it.
I like some systeminfo in the statusbar (Email, cpu, battery etc.)

This is from my rc.lua at the bottom af the file:

-- Hook called every second
awful.hooks.timer.register(60, function ()
mytextbox.text = " Batt: " .. execute_command("acpi | awk '{ print $4 }' | sed s/','//g").. " | Mail: " .. execute_command("perl /home/slk/.conky/.scripts/gmail.pl n") .. " | " .. os.date("%H:%M") .. ""

It works great. Except that it takes 60 seconds to load. How to load instantly and REFRESH every 60 second??


Best regards.

Offline

#27 2009-02-18 17:51:01

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: Tiling WMs

SLKDK wrote:

Last problem that needs to be solved with awesome and I am satisfied with it.
I like some systeminfo in the statusbar (Email, cpu, battery etc.)

This is from my rc.lua at the bottom af the file:

-- Hook called every second
awful.hooks.timer.register(60, function ()
mytextbox.text = " Batt: " .. execute_command("acpi | awk '{ print $4 }' | sed s/','//g").. " | Mail: " .. execute_command("perl /home/slk/.conky/.scripts/gmail.pl n") .. " | " .. os.date("%H:%M") .. ""

It works great. Except that it takes 60 seconds to load. How to load instantly and REFRESH every 60 second??


Best regards.

Repeat the mytextbox.text = "" line somewhere outside that hook.

Offline

#28 2009-02-18 18:29:53

kljohann
Member
Registered: 2008-05-31
Posts: 19

Re: Tiling WMs

you can also try giving a last argument of true to register.

See /usr/share/awesome/awful/hooks.lua

function register (time, f, runnow)

Last edited by kljohann (2009-02-18 18:30:49)

Offline

#29 2009-02-18 18:32:13

tjwoosta
Member
Registered: 2008-12-18
Posts: 453

Re: Tiling WMs

another tip for using awesome...

always make a backup of your configs, because every time awesome gets updated everything gets overwritten with the defaults again

Offline

#30 2009-02-18 18:38:54

kljohann
Member
Registered: 2008-05-31
Posts: 19

Re: Tiling WMs

I haven't experienced any overwriting. (I keep my config in ~/.config/awesome)
What I use to do is keep a backup of the default rc.lua of the previous version and diff it against the current.

diff default.lua /etc/xdg/awesome/rc.lua 
# And then after taking care of all those changes in my own rc.lua:
cp /etc/xdg/awesome/rc.lua default.lua

Offline

#31 2009-02-18 18:48:14

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Tiling WMs

i'm still loving DWM, be sure to get the Gottox branch if you have dualscreen (also has some other handy tweaks built-in).


ᶘ ᵒᴥᵒᶅ

Offline

#32 2009-04-23 22:24:33

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: Tiling WMs

Ghost1227 wrote:

If you're using the version of Awesome in community, feel free to borrow my configs

Does that config work with newest version? I am still on Awesome2 cuz the new configs is too hard for me. But I like your config - it looks slick and understandable. Even I can edit it to suit my needs. Will it work if I upgrade to newest version and use your files?

Offline

#33 2009-04-23 22:46:53

b3n
Member
Registered: 2008-11-12
Posts: 20

Re: Tiling WMs

You don't need to use Haskell to configure Xmonad, see XMonad.Config.PlainConfig.

Last edited by b3n (2009-04-23 22:47:48)

Offline

#34 2009-04-23 23:42:09

Marenz
Member
Registered: 2008-06-22
Posts: 48

Re: Tiling WMs

I am a longtime ion3 user. I tried awesome for a few weeks, also xmonad. I went crazy with them. They always think they know better then me how to tile my layout. it was just terrible for me.

It was so nice when i went back to ion3. Here i can set up my layout myself and have also tabs in each frame.

I can only advise you to try it smile

here the aur link: http://aur.archlinux.org/packages.php?K=ion-3

--Marenz

Last edited by Marenz (2009-04-23 23:46:26)

Offline

#35 2009-04-24 05:17:22

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: Tiling WMs

You DO need to learn a bit of Haskell to modify Xmonad configs to do what you want. Just because you can run it without messing with a lot of config stuff doesn't mean it will do whatever you want. When you do want it to do that, then Haskell is a must. If you REALLY want to understand someone else's config then you REALLY need to learn atleast the basic data structures
Everyone stop lying just to get another user running Xmonad. I'm not kidding either.


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#36 2009-04-24 06:28:29

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: Tiling WMs

tjwoosta wrote:

another tip for using awesome...

always make a backup of your configs, because every time awesome gets updated everything gets overwritten with the defaults again

Also, always be prepared that syntax can change quite much every month or so. This is especially true for awesome-git.


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#37 2009-04-24 12:17:06

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Tiling WMs

Marenz wrote:

I am a longtime ion3 user. I tried awesome for a few weeks, also xmonad. I went crazy with them. They always think they know better then me how to tile my layout. it was just terrible for me.

It was so nice when i went back to ion3. Here i can set up my layout myself and have also tabs in each frame.

I can only advise you to try it smile

i just gave it a try and i have to say it looks promising. i did have immediate problems with frames (sometimes) refusing to resize though, so i'm not sure if it's very stable..

edit: oh, i see the resize above is by design, that's a bit counterintuitive... nice WM nonetheless smile

Last edited by litemotiv (2009-04-24 16:09:20)


ᶘ ᵒᴥᵒᶅ

Offline

#38 2009-04-25 16:43:31

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Tiling WMs

Since someone else revived this, I'll add my $.02.  Alot of folks are trying musca now.  It's a tiling wm that gives you the control over your screen area and being developed by a fellow Archer.  No set tiling schemes here.  It's all up to you as the tiling is all set by the user, manually.  I used to use dwm, wmii but use musca exclusively now.  Simple with total user control.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#39 2009-04-25 17:12:34

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: Tiling WMs

bgc1954 wrote:

Simple with total user control.

So is Ratpoison, but less bugs tongue


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#40 2009-04-25 18:58:30

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Tiling WMs

Wra!th wrote:
bgc1954 wrote:

Simple with total user control.

So is Ratpoison, but less bugs tongue

bugless is boring! Musca ftw xD

Offline

Board footer

Powered by FluxBB