You are not logged in.

#676 2012-04-15 19:07:34

TheImmortalPhoenix
Member
From: 127.0.0.1
Registered: 2011-08-13
Posts: 436

Re: Share your Awesome(WM) desktop!

Does anyone know how to set rules in order to activate the "follow client" action?

Offline

#677 2012-04-15 21:46:22

toringe
Member
Registered: 2011-09-05
Posts: 49

Re: Share your Awesome(WM) desktop!

TheImmortalPhoenix wrote:

Does anyone know how to set rules in order to activate the "follow client" action?

Do you mean like if you set firefox to run on tag 1, then it would switch to tag 1 when you run it? (if I understood right, if not I'm sorry)
Then you could do this:

 { rule = { class = "Google-chrome" },
       properties = { tag = tags[1][1],switchtotag = true } },

Offline

#678 2012-04-15 22:11:12

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: Share your Awesome(WM) desktop!

intrntbrn wrote:

just tested to add custom icons to clients in tasklist. works and looks great!

http://i.imgur.com/nZa7i.png

edited /usr/share/awesome/lib/awful/widget/tasklist.lua

example code: (either use the name or the class to add/overwrite icons)

local function widget_tasklist_label_common(c, args)
...
    if (name == "ncmpcpp") then
    icon = capi.image(icons .. "note.png")
    return text, bg, nil, icon
    end
    
    if (c.class == "URxvt") then
    icon = capi.image(icons .. "arch.png")
    return text, bg, nil, icon
    end
...

btw: thanks to TheImmortalPhoenix for all your nice screens and work!

I think you could make it more scalable by using a static dictionary. This would also prevent rereading the icons on every function call. The following was written against awesome-git, some commands may need to be adjusted. E. g. at the beginning of tasklist.lua:

 local capi = { screen = screen,
+               awesome = awesome,
                client = client }
+local pairs = pairs
 local ipairs = ipairs
 local setmetatable = setmetatable
 local table = table
...
+icon_table = {
+  ["foo"] = "bar.png",
+  ["baz"] = "qux.png"
+}
+
+for key,value in pairs(icon_table) do
+  icon_table[key] = capi.awesome.load_image(value)
+end

Then, in the corresponding function, return:

return text, bg, nil, (icon_table[c.name] or icon_table[c.class] or c.icon)

Offline

#679 2012-04-15 22:17:35

SolarBoyMatt
Member
Registered: 2012-01-07
Posts: 263

Re: Share your Awesome(WM) desktop!

Still a bit of a work in progress, but I'm REALLY liking awesome so far! I think I've finally found the right WM for me!

2012-04-15-thumb.png

Last edited by SolarBoyMatt (2012-04-15 22:18:47)

Offline

#680 2012-04-15 23:16:54

TheImmortalPhoenix
Member
From: 127.0.0.1
Registered: 2011-08-13
Posts: 436

Re: Share your Awesome(WM) desktop!

toringe wrote:
TheImmortalPhoenix wrote:

Does anyone know how to set rules in order to activate the "follow client" action?

Do you mean like if you set firefox to run on tag 1, then it would switch to tag 1 when you run it? (if I understood right, if not I'm sorry)
Then you could do this:

 { rule = { class = "Google-chrome" },
       properties = { tag = tags[1][1],switchtotag = true } },

Yeah, that's what i meant! Thanks! Where can i find a complete list of properties?

@ SolarBoyMatt: Are you using widgets or conky? If you are using the first, could you tell how did you set colors?

Last edited by TheImmortalPhoenix (2012-04-15 23:18:39)

Offline

#681 2012-04-16 01:14:50

labp
Member
Registered: 2011-02-19
Posts: 11

Re: Share your Awesome(WM) desktop!

TheImmortalPhoenix wrote:

Could you share your last confs please, you are doing a great job!

Offline

#682 2012-04-16 02:51:30

SolarBoyMatt
Member
Registered: 2012-01-07
Posts: 263

Re: Share your Awesome(WM) desktop!

TheImmortalPhoenix wrote:

@ SolarBoyMatt: Are you using widgets or conky? If you are using the first, could you tell how did you set colors?

They're widgets.

I believe you'd do something like this, at least for Vicious widgets:

--Battery Widget
batwidget = widget({ type = "textbox" })
	vicious.register(batwidget, vicious.widgets.bat,"" .. "<span color='#73afb4'>" .. "bat " .. "</span> ..  "<span color='#eeeeee'>" .. "$1" .. " " .. "$2" .. "% " .. "</span>" .. "", 236, "BAT1" )

Honestly, I use a very slightly modified version of this guy's colours.lua file (and a couple of his widgets) since I really liked the setup.

Here's my rc.lua and the colors.lua, to give you a better idea of how I have mine set up.

Last edited by SolarBoyMatt (2012-04-16 03:02:22)

Offline

#683 2012-04-16 02:57:57

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Share your Awesome(WM) desktop!

intrntbrn wrote:

@TheImmortalPhoenix: can u pls share ur menufix? really like your theme except the yellow tongue

ontopic: new background

http://i.imgur.com/EcetU.png

// btw:
iam searching a way to tag clients with numbers and select them via shortcuts like ctrl + x.
created this thread: https://bbs.archlinux.org/viewtopic.php?id=139462

Beautiful big_smile config?

Offline

#684 2012-04-16 05:42:28

toringe
Member
Registered: 2011-09-05
Posts: 49

Re: Share your Awesome(WM) desktop!

TheImmortalPhoenix wrote:
toringe wrote:
TheImmortalPhoenix wrote:

Does anyone know how to set rules in order to activate the "follow client" action?

Do you mean like if you set firefox to run on tag 1, then it would switch to tag 1 when you run it? (if I understood right, if not I'm sorry)
Then you could do this:

 { rule = { class = "Google-chrome" },
       properties = { tag = tags[1][1],switchtotag = true } },

Yeah, that's what i meant! Thanks! Where can i find a complete list of properties?

http://awesome.naquadah.org/doc/api/mod … rules.html smile

Offline

#685 2012-04-16 08:55:30

TheImmortalPhoenix
Member
From: 127.0.0.1
Registered: 2011-08-13
Posts: 436

Re: Share your Awesome(WM) desktop!

Thanks SolarBoyMatt, i've understood wink

Thanks toringe! I've read that page but i swear you that i didn't see the switchtotag option! XD I'm a blind foolish tongue

Here there is my last configuration

tZGU3MA

tZGU3Zw

tZGU3MQ

I adjusted the rules, changed the wall and the opacity of terminal...i also started to use dolphin, a great file manager...but i'm still using thunar because of some of its custom action of which i can't get rid...

Here there are my configs:

http://dl.dropbox.com/u/19370627/Blue%20Awesome.tar.bz

Last edited by TheImmortalPhoenix (2012-04-16 10:05:09)

Offline

#686 2012-04-16 11:00:41

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Share your Awesome(WM) desktop!

TheImmortalPhoenix wrote:

I want that I am watching you script! big_smile

Last edited by Unia (2012-04-16 11:01:28)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#687 2012-04-16 11:10:09

TheImmortalPhoenix
Member
From: 127.0.0.1
Registered: 2011-08-13
Posts: 436

Re: Share your Awesome(WM) desktop!

cowsay -f eyes I Am Watching You

smile

Offline

#688 2012-04-16 11:29:56

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Share your Awesome(WM) desktop!

Oh, I thought it was a separate one. Too bad!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#689 2012-04-16 13:34:11

toringe
Member
Registered: 2011-09-05
Posts: 49

Re: Share your Awesome(WM) desktop!

1. I'm thinking of porting my conky to using widgets instead. Could anybody point me to some resources I could use to do so?
2. Also I have problems understanding which order to put widgets. They all just float into each other creating a pile of text, any help?
3. Is it possible to center  all the widgets? Since I like my bottom bar with centered text

Last edited by toringe (2012-04-16 14:03:49)

Offline

#690 2012-04-16 15:21:28

intrntbrn
Member
From: Germany
Registered: 2011-12-01
Posts: 66

Re: Share your Awesome(WM) desktop!

@Wey:
thanks for the fix. this is obv. the better solution! and if you didnt read the pm, thanks for the tasklist sort function fix!

@flamelab:
http://www34.zippyshare.com/v/92997658/file.html (awesomefolder, .Xres, theme.lua, icons)
if you need another files, your welcome!
you need to change the pathes at the head of rc.lua and there are also iconpathes in gmail.lua
if awesome crashes, try to remove the calendar widget (this worked on a debianuser)
there is also a bug at starting awesome. iam using a round-function to round nettraffic, which is at start uninitialized. cant get it fixed, lua sucks.

@TheImmortalPhoenix:
give spacefm (AUR) a try
// what gtk-theme and icons do u use?

Last edited by intrntbrn (2012-04-16 15:46:54)

Offline

#691 2012-04-16 15:58:27

TheImmortalPhoenix
Member
From: 127.0.0.1
Registered: 2011-08-13
Posts: 436

Re: Share your Awesome(WM) desktop!

Thanks for suggestion, i'll try it wink I use MCV (Modded colors) + ACYL (Token Style) + kAwOkenDark

Offline

#692 2012-04-16 18:16:15

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Re: Share your Awesome(WM) desktop!

anyone on awesome-git care to share their config files? i accidentally installed awesome-git on a new desktop over the weekend and spend two days trying to figure it out before giving up. back on awesome for now but i'd still like to learn awesome-git. the wiki's pretty threadbare.

Offline

#693 2012-04-16 23:47:55

mtrokic
Member
From: Montreal
Registered: 2009-10-24
Posts: 56
Website

Re: Share your Awesome(WM) desktop!

Here is my configuration. It uses run-or-raise to activate Skype, Synapse, and an ncurses version of Wicd, on mouse click. This way I can avoid the system tray altogether.

Clean
tZGVqMw

Dirty
tZGVqNQ

Last edited by mtrokic (2012-04-16 23:48:51)

Offline

#694 2012-04-17 00:47:54

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Re: Share your Awesome(WM) desktop!

hm. anyone know where my terminal titles went? both xterm and urxvt are blank, but others work fine:
http://i.imgur.com/d1Ifa.png

Last edited by multiphrenic (2012-04-17 01:50:37)

Offline

#695 2012-04-17 01:43:02

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Share your Awesome(WM) desktop!

intrntbrn wrote:

lua sucks.


I lol'd.

Offline

#696 2012-04-17 01:44:43

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Share your Awesome(WM) desktop!

multiphrenic wrote:

hm. anyone know where my terminal titles went? both xterm and urxvt are blank, but others work fine:


Use a smaller image,


As for your question, without the code it would be very difficult to say, also may I interest you in irssi or weechat as a IRC client?

EDIT:
Stupid me double posting... Apologies.

Last edited by doug piston (2012-04-17 01:45:29)

Offline

#697 2012-04-17 01:48:50

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Re: Share your Awesome(WM) desktop!

i'm always ready to be interested.
i have weechat on my laptop but i could never figure out a good way to open urls that span multiple lines.

oh. and i figured out my previous mess (onto new ones!)
i used the same color for urgent and foreground in my themes..herp derp.

Last edited by multiphrenic (2012-04-17 01:49:51)

Offline

#698 2012-04-17 03:11:37

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Share your Awesome(WM) desktop!

Thanks to all of you. I've stolen configs from just about everyone... smile

tZGVrdA

tZGVrdQ

Offline

#699 2012-04-17 08:08:28

suborbital
Member
From: #freenode
Registered: 2012-03-21
Posts: 21

Re: Share your Awesome(WM) desktop!

doug piston wrote:

Thanks to all of you. I've stolen configs from just about everyone... smile

http://ompldr.org/tZGVrdA

http://ompldr.org/tZGVrdQ

nice setup, + you can't steal something that's free

Offline

#700 2012-04-17 13:20:55

toringe
Member
Registered: 2011-09-05
Posts: 49

Re: Share your Awesome(WM) desktop!

Working on my first theme right now.
7ym7Q.png
I like what I've done until now smile

Last edited by toringe (2012-04-17 13:23:59)

Offline

Board footer

Powered by FluxBB