You are not logged in.
Does anyone know how to set rules in order to activate the "follow client" action?
Offline
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
just tested to add custom icons to clients in tasklist. works and looks great!
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
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
Blue version:
Could you share your last confs please, you are doing a great job!
Offline
@ 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
@TheImmortalPhoenix: can u pls share ur menufix? really like your theme except the yellow
ontopic: new background
// 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 config?
Offline
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?
Offline
Thanks SolarBoyMatt, i've understood
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
Here there is my last configuration
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
I want that I am watching you script!
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
cowsay -f eyes I Am Watching You
Offline
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
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
@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
Thanks for suggestion, i'll try it I use MCV (Modded colors) + ACYL (Token Style) + kAwOkenDark
Offline
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
Offline
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
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
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
Thanks to all of you. I've stolen configs from just about everyone...
nice setup, + you can't steal something that's free
Offline