You are not logged in.

#1 2012-04-17 22:48:04

Tacna
Member
Registered: 2012-04-14
Posts: 25

[SOLVED] Increase height of awesomeWM panel

I want to increase the height (or thickness) of awesome's panel.

How can I do this?

Last edited by Tacna (2012-04-17 23:33:53)

Offline

#2 2012-04-17 23:01:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] Increase height of awesomeWM panel

Have you looked at rc.lua?

I don't even use Awesome, but it took me all of 10 seconds to find the revelant line when I looked up an rc.lua.

Edit: before I get accused of being rude, or abrupt, which is probably inevitable, let me say that if you have tried the sensible approach and it failed you could certainly get help here.  But such a post should start with what you have tried, what result/error messages you have recieved, and which guides you have attempted to follow.  In the absence of any of these this just screams "help vampire".

Last edited by Trilby (2012-04-17 23:04:02)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-04-17 23:18:49

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: [SOLVED] Increase height of awesomeWM panel

Trilby wrote:

Have you looked at rc.lua?

I don't even use Awesome, but it took me all of 10 seconds to find the revelant line when I looked up an rc.lua.

Edit: before I get accused of being rude, or abrupt, which is probably inevitable, let me say that if you have tried the sensible approach and it failed you could certainly get help here.  But such a post should start with what you have tried, what result/error messages you have recieved, and which guides you have attempted to follow.  In the absence of any of these this just screams "help vampire".

Yea, I've looked at the rc.lua code (and played around with it) and I don't believe it is something in there. I think it has to do with the theme.lua files. The default theme file displays everything nicely (i.e. the 16px icons don't look like they are being squished and not displaying well) but when I changed it to another theme (custom code I found online) it looked a pixel or two smaller in terms of height which was why I see the icons not displaying correctly. So I compared the two theme files looking for something that would indicate the thickness of the panel but did not find anything that seemed like it would. I played around with some numbers (to the extreme) but I saw no change in the thickness.

I figure it is something simple to change the thickness (like modifying a number somewhere) but I just don't know where it is.

The theme.lua file

---------------------------
-- Sandbox awesome theme --
---------------------------

theme = {}

theme.font          = "Terminus 7"

theme.bg_normal     = "#060606"
theme.bg_focus      = "#021327"
theme.bg_urgent     = "#2E88BF"
theme.bg_minimize   = "#010101"

theme.fg_normal     = "#3C7EA6"
theme.fg_focus      = "#3C7EA6"
theme.fg_urgent     = "#888888"
theme.fg_minimize   = "#gg000000"

theme.border_width  = "1"
theme.border_normal = "#021327"
theme.border_focus  = "#3C7EA6"
theme.border_marked = "#666666"

-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- [taglist|tasklist]_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- Example:
--theme.taglist_bg_focus = "#ff0000"

-- Display the taglist squares
theme.taglist_squares_sel   = "~/.config/awesome/themes/sandbox/taglist/squarefw.png"
theme.taglist_squares_unsel = "~/.config/awesome/themes/sandbox/taglist/squarew.png"

theme.tasklist_floating_icon = "~/.config/awesome/themes/sandbox/tasklist/floatingw.png"

-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_submenu_icon = "~/.config/awesome/themes/sandbox/submenu.png"
theme.menu_height = "16"
theme.menu_width  = "170"

-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"

-- Define the image to load
theme.titlebar_close_button_normal = "~/.config/awesome/themes/sandbox/titlebar/close_normal.png"
theme.titlebar_close_button_focus  = "~/.config/awesome/themes/sandbox/titlebar/close_focus.png"

theme.titlebar_ontop_button_normal_inactive = "~/.config/awesome/themes/sandbox/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive  = "~/.config/awesome/themes/sandbox/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = "~/.config/awesome/themes/sandbox/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active  = "~/.config/awesome/themes/sandbox/titlebar/ontop_focus_active.png"

theme.titlebar_sticky_button_normal_inactive = "~/.config/awesome/themes/sandbox/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive  = "~/.config/awesome/themes/sandbox/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = "~/.config/awesome/themes/sandbox/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active  = "~/.config/awesome/themes/sandbox/titlebar/sticky_focus_active.png"

theme.titlebar_floating_button_normal_inactive = "~/.config/awesome/themes/sandbox/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive  = "~/.config/awesome/themes/sandbox/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = "~/.config/awesome/themes/sandbox/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active  = "~/.config/awesome/themes/sandbox/titlebar/floating_focus_active.png"

theme.titlebar_maximized_button_normal_inactive = "~/.config/awesome/themes/sandbox/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive  = "~/.config/awesome/themes/sandbox/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = "~/.config/awesome/themes/sandbox/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active  = "~/.config/awesome/themes/sandbox/titlebar/maximized_focus_active.png"

-- You can use your own command to set your wallpaper
theme.wallpaper_cmd = { "awsetbg /home/alonso/.config/awesome/themes/sandbox/bg1.png" }

-- You can use your own layout icons like this:
theme.layout_fairh = "~/.config/awesome/themes/sandbox/layouts/fairhw.png"
theme.layout_fairv = "~/.config/awesome/themes/sandbox/layouts/fairvw.png"
theme.layout_floating  = "~/.config/awesome/themes/sandbox/layouts/floatingw.png"
theme.layout_magnifier = "~/.config/awesome/themes/sandbox/layouts/magnifierw.png"
theme.layout_max = "~/.config/awesome/themes/sandbox/layouts/maxw.png"
theme.layout_fullscreen = "~/.config/awesome/themes/sandbox/layouts/fullscreenw.png"
theme.layout_tilebottom = "~/.config/awesome/themes/sandbox/layouts/tilebottomw.png"
theme.layout_tileleft   = "~/.config/awesome/themes/sandbox/layouts/tileleftw.png"
theme.layout_tile = "~/.config/awesome/themes/sandbox/layouts/tilew.png"
theme.layout_tiletop = "~/.config/awesome/themes/sandbox/layouts/tiletopw.png"
theme.layout_spiral  = "~/.config/awesome/themes/sandbox/layouts/spiralw.png"
theme.layout_dwindle = "~/.config/awesome/themes/sandbox/layouts/dwindlew.png"

theme.awesome_icon = "~/.config/awesome/icons/awesome16.png"

return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

BTW, the theme.menu_height does not control the panel height.

Offline

#4 2012-04-17 23:23:17

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] Increase height of awesomeWM panel

A panel in awesome is called a "wibox" (short for "widget box," I assume; I don't really know).  Details can be found on the Awesome hompage/wiki.

Offline

#5 2012-04-17 23:27:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] Increase height of awesomeWM panel

Line 269 of this example would be my first shot.  This was the first example linked from the wiki page.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2012-04-17 23:33:40

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: [SOLVED] Increase height of awesomeWM panel

Trilby wrote:

Line 269 of this example would be my first shot.  This was the first example linked from the wiki page.

That height string wasn't in my rc.lua file. Added it in. Pleased with the results.

Thanks.

Offline

Board footer

Powered by FluxBB