You are not logged in.

#1 2015-01-24 18:28:17

mongoose
Member
Registered: 2015-01-24
Posts: 16

[SOLVED]AwesomeWM awful.widget.prompt

Hello fellow archers.

Im new to awesome, so maybe my question a little bit lame, but i did search over the internet without any success. Im using AwesomeWM 3.5. Only found how to change awful.textbox with 'span'.

1. How I can change mypromptbox(awful.widget.prompt()) foreground color or any other text based widget(but not textbox) like keyboard layout etc?

2. And is it possible to somehow add a border of specific width and color to the wibox (for example to the bottom of the wibox if panel is at top)?

Any advices?

Last edited by mongoose (2015-01-26 13:01:46)

Offline

#2 2015-01-24 18:34:34

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [SOLVED]AwesomeWM awful.widget.prompt

One of the lain widgets might solve the second point. https://github.com/copycat-killer/lain/ … derbox.lua

Last edited by lucke (2015-01-24 18:35:33)

Offline

#3 2015-01-24 18:37:14

mongoose
Member
Registered: 2015-01-24
Posts: 16

Re: [SOLVED]AwesomeWM awful.widget.prompt

Tnank you.

Seems like 2 question is answered.

Any ideas about fist one?

Offline

#4 2015-01-24 18:58:17

mongoose
Member
Registered: 2015-01-24
Posts: 16

Re: [SOLVED]AwesomeWM awful.widget.prompt

Hm, tested this lain widget and yes it adds border for wibox, but not as i need. Because in any tile modes or when a window is maximazid there is no effect at all, coz this border is stay below the windows. Did i do something wrong?

Offline

#5 2015-01-24 19:07:48

mongoose
Member
Registered: 2015-01-24
Posts: 16

Re: [SOLVED]AwesomeWM awful.widget.prompt

Ok, added another blank wibox with just 1 px larger then my main wibox behind my main wibox + this lain widget to my main wibox = solved a problem as i needed.

    -- Create the wibox
    mywibox2[s] = awful.wibox({ position = "top", height = 26, screen = s })
    mywibox[s] = awful.wibox({ position = "top", height = 25, screen = s })


    -- Wibox border
    lain.widgets.borderbox(mywibox[s], s, { position = "bottom", color = "#B188BD" })

But seems like i did it wrong, maybe there is some less complicated solution? Can i change background for specific wibox?

Ok did it as i need.

Here is the code:

    mywibox2[s] = awful.wibox({ position = "top", height = 26, screen = s })
    mywibox2[s]:set_bg("#B188BD")
    mywibox[s] = awful.wibox({ position = "top", height = 25, screen = s })

Still need answer for the first question.

Last edited by mongoose (2015-01-24 19:20:12)

Offline

#6 2015-01-25 10:27:07

mongoose
Member
Registered: 2015-01-24
Posts: 16

Re: [SOLVED]AwesomeWM awful.widget.prompt

Ok, i have found the answer by myself.
You need to put needed widget inside a decorator wibox.widget.background and set_fg.
Close this please.

Last edited by mongoose (2015-01-25 10:27:46)

Offline

#7 2015-01-25 16:30:29

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED]AwesomeWM awful.widget.prompt

Mark the thread as solved by adding it to the beginning of the subject, like so:

[SOLVED]AwesomeWM awful.widget.prompt

Last edited by nullified (2015-01-25 16:31:40)


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

Board footer

Powered by FluxBB