Re: Big Ol' Awesome Config Thread!

@ muzieca

Try this

-- Upload
upwidget = widget({ type = "textbox" })
-- Register widget
--vicious.register(upwidget, vicious.widgets.net, 'Ul:'..focus_col..'${ppp0 up_kb}/${ppp0 tx_mb}'..null_col..'', 1)
vicious.register(upwidget, vicious.widgets.net, 
    function (widget, args)
        if args["{ppp0 carrier}"] == 1 
            then return 'Ul:'..focus_col..'${ppp0 up_kb}/${ppp0 tx_mb}'..null_col..''
        end
    end, 1)

-- Download
dnwidget = widget({ type = "textbox" })
-- Register widget
--vicious.register(dnwidget, vicious.widgets.net, 'Dl:'..focus_col..'${ppp0 down_kb}/${ppp0 rx_mb}'..null_col..'', 1)
vicious.register(dnwidget, vicious.widgets.net, 
    function (widget, args)
        if args["{ppp0 carrier}"] == 1 
            then return 'Dl:'..focus_col..'${ppp0 down_kb}/${ppp0 rx_mb}'..null_col..''
        end
    end, 1)

Last edited by SuNjACk (2011-03-24 14:13:47)

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

@SuNjACk
Thank you, yes it works. big_smile
btw is there any idea instead of hiding them but changing the net widget displays?
example: During offline, the widget is not hidden but shows Ul:0.0/0.0   Dl:0.0/0.0 ? tongue
Too much question here, but i'm really curious, i haven't learn lua much enough.
Thank you again.

Motorbike, Openbox, and Coffee addict.

--muzi--

Re: Big Ol' Awesome Config Thread!

muzieca wrote:

@SuNjACk
Thank you, yes it works. big_smile
btw is there any idea instead of hiding them but changing the net widget displays?
example: During offline, the widget is not hidden but shows Ul:0.0/0.0   Dl:0.0/0.0 ? tongue
Too much question here, but i'm really curious, i haven't learn lua much enough.
Thank you again.

I made something similar in my awesomeWM but instead of Ul:0.0/0.0 Dl:0.0/0.0 I show Network Disabled

--/// Net Widget
netwidget = widget({ type = "textbox" })
netwidget.width = "120"
netwidget.align = "center"
vicious.register(netwidget, vicious.widgets.net, 
    function (widget, args)
        if args["{ppp0 carrier}"] == 1 
            then return 'P - U '..focus_col..args["{ppp0 up_kb}"]..null_col..' D '..focus_col..args["{ppp0 down_kb}"]..null_col..''
        elseif args["{wlan0 carrier}"] == 1 
            then return 'W - U '..focus_col..args["{wlan0 up_kb}"]..null_col..' D '..focus_col..args["{wlan0 down_kb}"]..null_col..''
        else return '- Netwok Disabled - '
               -- end
        end
    end, 1)
--///

You can use

--/// Net Widget
netwidget = widget({ type = "textbox" })
netwidget.width = "120"
netwidget.align = "center"
vicious.register(netwidget, vicious.widgets.net, 
    function (widget, args)
        if args["{ppp0 carrier}"] == 1 
            then return 'U '..focus_col..args["{ppp0 up_kb}"]..null_col..' D '..focus_col..args["{ppp0 down_kb}"]..null_col..''
    else return '- Netwok Disabled - '
    end
    end, 1)
--///

Change it a bit if you need to add something

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

@SuNjACk
That's perfect, thank you very much for your help, can't make it without your help.
Looks good now even i'm offline.
Thanks a lot.

Motorbike, Openbox, and Coffee addict.

--muzi--

Re: Big Ol' Awesome Config Thread!

muzieca wrote:

@SuNjACk
That's perfect, thank you very much for your help, can't make it without your help.
Looks good now even i'm offline.
Thanks a lot.

You're welcome wink

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

@SuNjACk,

Do you use a systray bar in your tint2? I disable the systray from my wibox but the systray in tint2 does not appears, do you have any idea ? Thanks smile

Here's the part of my tint2 :

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 0 4 5
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 16
systray_icon_asb = 70 70 70

Re: Big Ol' Awesome Config Thread!

Have you checked the tint2 log?

tint2 shouldn't show a systray if there's another running.

Maybe in the rc.lua you even not create a widget for the systray.

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

Hi,

When I start awesome without any wibox and start tint2 manually, I've got this message :

tint2 : another systray is running

What can be wrong ?

If I start awesome with a wibox with a systray, it is displayed in in the wibox .

So, I have no idea for this problem sad

(And I don't know where is the tint2 log file )

Re: Big Ol' Awesome Config Thread!

Do you create any systray widget in the rc.lua?

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

No, I had one in a wibox but I disabled this wibox .

Re: Big Ol' Awesome Config Thread!

can you post your rc.xml ( the part about widgets should be enough )

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

the rc.lua, you mean smile
here's the rc.lua

-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")

-- Load Debian menu entries
require("debian.menu")

-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
config = os.getenv("HOME") .. "/.config/awesome/"
beautiful.init(os.getenv("HOME") .. "/.config/awesome/theme.lua")

-- This is used later as the default terminal and editor to run.
terminal = "x-terminal-emulator"
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
editor_cmd = "gedit " 

-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"

-- {{{ Layouts
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
    awful.layout.suit.floating,
    awful.layout.suit.tile,
    awful.layout.suit.tile.left,
    awful.layout.suit.tile.bottom,
    awful.layout.suit.tile.top,
    awful.layout.suit.fair,
    awful.layout.suit.fair.horizontal,
    --awful.layout.suit.spiral,
    --awful.layout.suit.spiral.dwindle,
    awful.layout.suit.max,
    awful.layout.suit.max.fullscreen,
    awful.layout.suit.magnifier
}
-- }}}

-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {
    names  = { "1", "2", "3", "4" , "5"},--, "6"},
    layouts = { layouts[2], layouts[2], layouts[2], layouts[2], layouts[1]}--, layouts[2]}

}

for s = 1, screen.count() do
    -- Each screen has its own tag table.
    --tags[s] = awful.tag({ 1, 2, 3, 4, 5 }, s, layouts[1])
    tags[s] = awful.tag(tags.names, s, tags.layouts)
end
-- }}}

-- {{{ Menu
-- Create a laucher widget and a main menu
dofile(config .. "menu.lua")
-- }}}

-- {{{ Wibox
-- Create a textclock widget
-- dofile(config .. "wibox2.lua")
-- }}}

    --en dual screen,  quand un tag est sélectionné sur un écran, le même tag 
    --sur l'autre écran est sélectionné.

for s = 1, screen.count() do
    awful.tag.attached_add_signal(s, "property::selected", 
    function(tag)
        if not tag.selected then return end

        local idx = nil
        for i, v in pairs(screen[s]:tags()) do
            if v == tag then
                idx = i
                break
            end
        end
        if not idx then return end

        local c = client.focus
        for scr = 1, screen.count() do
            if scr ~= s then
                if screen[scr]:tags()[idx] ~= nil then
                    awful.tag.viewonly(screen[scr]:tags()[idx])
                end
            end
        end
        client.focus = c
    end)
end

-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
    awful.button({ }, 3, function () mymainmenu:toggle() end),
    awful.button({ }, 4, awful.tag.viewnext),
    awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}

-- {{{ Key bindings
dofile(config .. "key_bindings.lua")
-- }}}

-- {{{ Rules
awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
      properties = { border_width = beautiful.border_width,
                     border_color = beautiful.border_normal,
                     focus = true,
                     keys = clientkeys,
                     buttons = clientbuttons,
                   -- floating=false,
                      size_hints_honor = true,  
                     } },
                     

    { rule = { class = "Avidemux" },
        properties = { 
        tag = tags[1][5]  ,  
        switchtotag = true,
        floating = true
        }
    },
    
    { rule = { class = "net-sourceforge-dvb-projectx-common-Start" },
        properties = { 
        tag = tags[2][5]  ,  
        switchtotag = true,
        floating = true
        }
    },  

    { rule = { class = "Screenruler" },
      properties = { floating = true, skip_taskbar = true } }, 
      
    { rule = { class = "Gmrun" },
      properties = { floating = true, 
                    skip_taskbar = true,
                    x=1305,
                    y=1000,ontop =true,} },    
                      
    { rule = { class = "Vlc" },
      properties = { floating = true, 
                    opacity = 1.0,
                    ontop =true,
                    } }, 

    { rule = { class = "Gimp" },
      properties = { floating = true, 
                    opacity = 1.0,
                    } },     
                                    
    { rule = { class = "Gcolor2" },
      properties = { floating = true, 
                    opacity = 1.0,
                    ontop =true,
                    } }, 
                    
    { rule = { name = "Encodage..." },
      properties = { floating = true, 
                    opacity = 1.0,
                    ontop =true,
                    } }, 

    { rule = { name = "Supprimer du contenu" },
      properties = { floating = true, 
                    opacity = 1.0,
                    ontop =true,
                    } }, 
                          
    { rule = { class = "Awesome-logout" },
      properties = { floating = true, 
                    skip_taskbar = true, 
                    ontop =true, } },         

    { rule = { name = "Recherche" },
      properties = { floating = true, 
                    skip_taskbar = true, 
                    ontop =true, } }, 
      
    { rule = { class = "X-terminal-emulator" },
          properties = { opacity=0,}
     }, 
          
    { rule = { class = "Conky" },
      properties = { floating = true, 
                    skip_taskbar = true,
                    x=1305,
                    y=1000,} },  

}
-- }}}

-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
--naughty.notify({ text =c.name })
    -- Add a titlebar
    --awful.titlebar.add(c, { modkey = modkey })
    titlebarClass = { ["Vlc"]= true,
                    ["Gimp"]= true,
                    ["Gcolor2"]= true,
                    ["Lxappearance"]=true,
                    ["Avidemux"]= true,
                    ["net-sourceforge-dvb-projectx-common-Start"]=true, --projectx
                    ["Xfce4-mixer"]= true,
                    ["Gedit"]= true,
                    }

    titlebarName = { ["Encodage..."]= true,
                    ["vts - Gestionnaire de fichiers"]=true,
                    }                    

    if titlebarClass[c.class] or titlebarName[c.name] then
        awful.titlebar.add(c)    
    end        

    if c.class == "Vlc"  then
        c.screen = 1
    end

    -- Enable sloppy focus
    c:add_signal("mouse::enter", function(c)
        if awful.layout.get(
        c.screen) ~= awful.layout.suit.magnifier
            and awful.client.focus.filter(c) then
            client.focus = c
        end
    end)

    if not startup then
        -- Set the windows at the slave,
        -- i.e. put it at the end of others instead of setting it master.
        -- awful.client.setslave(c)

        -- Put windows in a smart way, only if they does not set an initial position.
        if not c.size_hints.user_position and not c.size_hints.program_position then
            awful.placement.no_overlap(c)
            awful.placement.no_offscreen(c)
        end
    end
end)



client.add_signal("focus", function(c) 
    --naughty.notify({ text =c.class })
    --mytitlebar = titlebar({ position = "top" })
    --mytitlebartitle = widget({ type = "textbox", name = "mytitlebartitle" })
    --mytitlebar:widgets({ mytitlebartitle })
    --c = client.focus
    --mytitlebartitle.text = c.name
    --    c.titlebar = mytitlebar

        c.border_color = beautiful.border_focus 
        c.opacity = 1
end)

client.add_signal("unfocus", function(c) 
        c.border_color = beautiful.border_normal


    NoOpacityClass = { ["Vlc"]= true,
                    ["Gimp"]= true,
                    ["Gcolor2"]= true,
                    ["Awesome-logout"]= true, 
                    ["Avidemux"]= true,
                    ["net-sourceforge-dvb-projectx-common-Start"]=true,
                    }
                    
    if NoOpacityClass[c.class] then
        c.opacity = 1
    else
        c.opacity = 0.75
    end          
end)
-- }}}


--autostart applications
--http://awesome.naquadah.org/wiki/Autostart#Simple_way
function run_once(prg,arg_string,screen)
    if not prg then
        do return nil end
    end
    if not arg_string then 
        awful.util.spawn_with_shell("pgrep -f -u $USER -x " .. prg .. " || (" .. prg .. ")",screen)
    else
        awful.util.spawn_with_shell("pgrep -f -u $USER -x " .. prg .. " || (" .. prg .. " " .. arg_string .. ")",screen)
    end
end


--run_once("iceweasel",nil,1)
--run_once("gedit",nil,1)
--run_once("gnome-terminal", "-e /home/ll/scripts/podcasts/podcasts.sh",2)
--run_once("killall", "conky",1)
--run_once("conky", "-c /home/ll/conky/awesome/conkyrc",1)
run_once("killall", "xcompmgr",2)
run_once("xcompmgr", "",2)

run_once("killall", "tint2",2)
run_once("tint2", "-c /home/ll/.config/awesome/tint2rc-left",1)
run_once("tint2", "-c /home/ll/.config/awesome/tint2rc-right",2)

run_once("killall", "conky",2)
run_once("~/conky/awesome/run.sh","",1) --informations conky at startup
run_once("conky", "-c ~/conky/awesome/conkyrc-margin", 2)

--margins
awful.screen.padding( screen[1], { bottom = -26} )
awful.screen.padding( screen[2], { right = 95, bottom = 0} )
--awful.screen.padding( screen[2], { bottom = 30} )

As I said, i don't use any widgets : the line -- dofile(config .. "wibox2.lua") is commented.

When I uncomment it, the systray is in my wibox , but I want it in tint2 !!

-- {{{ Wibox

--dofile("/home/ll/.config/awesome/widget_sound.lua")
--dofile("/home/ll/.config/awesome/widget_ram.lua")
--dofile("/home/ll/.config/awesome/widget_cpu.lua")

--require("obvious")


-- {{{ Wibox
-- Create a textclock widget
--mytextclock = awful.widget.textclock({ align = "right"}, " %H:%M ")

-- Create a systray
mysystray = widget({ type = "systray" })

-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
--tag List

mytaglist = {}
mytaglist.buttons = awful.util.table.join(
                    awful.button({ }, 1, awful.tag.viewonly),
                    awful.button({ modkey }, 1, awful.client.movetotag),
                    awful.button({ }, 3, awful.tag.viewtoggle),
                    awful.button({ modkey }, 3, awful.client.toggletag),
                    awful.button({ }, 4, awful.tag.viewnext),
                    awful.button({ }, 5, awful.tag.viewprev)
                    )

--task List
--[[
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
                     awful.button({ }, 1, function (c)
                                              if not c:isvisible() then
                                                  awful.tag.viewonly(c:tags()[1])
                                              end
                                              client.focus = c
                                              c:raise()
                                          end),
                     awful.button({ }, 3, function ()
                                              if instance then
                                                  instance:hide()
                                                  instance = nil
                                              else
                                                  instance = awful.menu.clients({ width=250 })
                                              end
                                          end),
                     awful.button({ }, 4, function ()
                                              awful.client.focus.byidx(1)
                                              if client.focus then client.focus:raise() end
                                          end),
                     awful.button({ }, 5, function ()
                                              awful.client.focus.byidx(-1)
                                              if client.focus then client.focus:raise() end
                                          end))
]]

mylayoutbox[1] = awful.widget.layoutbox(1)
mylayoutbox[2] = awful.widget.layoutbox(2)

mytaglist[1] = awful.widget.taglist(1, awful.widget.taglist.label.all, mytaglist.buttons)
mytaglist[2] = awful.widget.taglist(2, awful.widget.taglist.label.all, mytaglist.buttons)

myspace          = widget({ type = "textbox", name = "myspace", align = "right" })
myspace.text     = "  "

mywibox[1] = awful.wibox({ position = "bottom",x=1242,height=33,width=33,screen = 1})
mywibox[2] = awful.wibox({ position = "bottom",x=10,height=33,width=133,screen = 2})

for s = 1, screen.count() do

    --ecran de gauche BAS
    --s= 2
    --mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)
    
    -- Create a promptbox for each screen
    if s==2 then
        mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
    end

    -- Create an imagebox widget which will contains an icon indicating which layout we're using.
    -- We need one layoutbox per screen.
   mylayoutbox[s]:buttons(awful.util.table.join(
                           awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
                           awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
                           awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
                          awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
    -- Create a taglist widget
    

    -- Create a tasklist widget
   -- mytasklist[s] = awful.widget.tasklist(function(c)
    --                                          return awful.widget.tasklist.label.currenttags(c, s)
     --                                     end, mytasklist.buttons)

    -- Create the wibox

--    mywibox[2] = awful.wibox({ position = "bottom", screen = 1 })
--    mywibox[1] = awful.wibox({ position = "top", screen = 2 })    
    -- Add widgets to the wibox - order matters
    mywibox[s].widgets = {
       -- {
           -- mylauncher,
           -- myspace,
     --       mypromptbox[s],
        --    mytaglist[s],
        --    mytaglist[2],
            mylayoutbox[s],
            myspace,
          --  mylayoutbox[2],            
            layout = awful.widget.layout.horizontal.leftright,
       -- },
     --s == 1 and   mytextclock or nil ,
      s == 2 and mysystray or nil,
        
      --  mytasklist[s],
      --  layout = awful.widget.layout.vertical.topdown
    }
    
    
    --en dual screen,  quand un tag est sélectionné sur un écran, le même tag 
    --sur l'autre écran est sélectionné.
    awful.tag.attached_add_signal(s, "property::selected", 
    function(tag)
        if not tag.selected then return end

        local idx = nil
        for i, v in pairs(screen[s]:tags()) do
            if v == tag then
                idx = i
                break
            end
        end
        if not idx then return end

        local c = client.focus
        for scr = 1, screen.count() do
            if scr ~= s then
                if screen[scr]:tags()[idx] ~= nil then
                    awful.tag.viewonly(screen[scr]:tags()[idx])
                end
            end
        end
        client.focus = c
    end)
    
end

And here's my tint2 :

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#identifier 0 applied full transparency, identifer 1 applied the first background... 
#background 1
rounded = 5
border_width = 0
background_color = #FFFFFF 100
border_color = #d6daa8 100

#background 2 taskbar non actives
rounded = 3
border_width = 1
background_color = #ff6309 0
border_color = #fcffde 100

#background 3 taskbar active
rounded = 3
border_width = 1
background_color = #ffffff 25
border_color = #fcffde 100

#background 4 active task ??
rounded = 3
border_width = 1
background_color = #ff0000 0
border_color = #ffffff 100

#background 4 non active task
rounded = 3
border_width = 0
background_color = #ff0000 0
border_color = #ff0000 0


#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor =  2
panel_position = bottom right
panel_size = 1742 35
 #95% 35
panel_margin = 94 0
panel_padding = 2 2 2
font_shadow = 0
panel_background_id = 0
wm_menu = 1
panel_dock = 0
panel_layer = bottom

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 1 1 1
taskbar_background_id = 2
taskbar_active_background_id = 3

#---------------------------------------------
# TASK
#---------------------------------------------
urgent_nb_of_blink = 7
task_icon = 1
task_text = 0
task_maximum_size = 0 20
task_centered = 1
task_padding = 0 0 
task_font = Japan 9
task_font_color = #000000 50
task_active_font_color = #000000 100
#alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100) 
task_icon_asb = 50 -25 -25
task_active_icon_asb = 100 0 0
task_background_id = 5
task_active_background_id = 4


#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 0 4 5
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 16
systray_icon_asb = 70 70 70

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.1
tooltip_hide_timeout = 0.3
tooltip_background_id = 0
tooltip_font_color = #ffffff 80
tooltip_font = FreeSans italic 12

#---------------------------------------------
# CLOCK
#---------------------------------------------
#time1_format =%d/%m
#time1_font = FreeSans 8.5
##time2_format =%m
##time2_font = FreeSans 8
#clock_font_color = #ffffff 76
#clock_padding = 1 1
#clock_background_id = 2
##clock_lclick_command = xclock
##clock_rclick_command = orage
#clock_tooltip = %A %d %b %Y, %H:%M:%S
##time1_timezone = :US/Hawaii
##time2_timezone = :Europe/Berlin
##clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris



#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 4
strut_policy = minimum

#---------------------------------------------
# CLOCK
#---------------------------------------------
#time1_format =%d/%m
# %d/%m
#time1_font = FreeSans 8
#time2_format = %d          %b
#time2_font = sans 8
#clock_font_color = #ffffff 75
#clock_padding = 1 1
#clock_background_id = 2
#clock_lclick_command = xclock
#clock_rclick_command = orage
#clock_tooltip = %A %d %b %Y, %H:%M:%S
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

Thanks for your time SunJack !

Re: Big Ol' Awesome Config Thread!

try commenting

mysystray = widget({ type = "systray" })

It's possible to run only one systray, have any dockbar or panel except tint2 and awesome's wibox?

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

Problems ahoy!
So I was modding rc.lua nad theme.lua and tried to restart it (from the menu) and poof, nothing appeared. So I restarted my computer( with sudo shutdown -r -t time now) and opened up an awesome session. And all my tags are three dots (like this ... ) and I have no menu. Anyone know what I messed up?

Last edited by hagel (2011-04-02 11:57:54)

Re: Big Ol' Awesome Config Thread!

hagel
maybe i'm wrong, but i'm guessing that you messing around on wibox layout, i have experiencing this kind of problem before, and eventually found out that is caused by wibox layouts. big_smile

Motorbike, Openbox, and Coffee addict.

--muzi--

Re: Big Ol' Awesome Config Thread!

muzieca
Indeed, you're right. But the weird thing is that I changed everything back to normal and I still have the same problem.

Also, how come "restart" doesn't restart awesome, just quit it?

Last edited by hagel (2011-04-02 12:24:59)

Re: Big Ol' Awesome Config Thread!

hagel
hmm, this is wrong, if you have replaced your modified rc.lua with the original rc.lua, this problem should never occurred. And about restart doesn't restart awesome and just quit it, my guess for now is just misplaced syntax between awesome.quit and awesome.restart, even i know this mistakes is just take 1% chances to happen. smile
If possible, maybe you can post your current rc.lua, and i hope if it's not me, the other members would find the solution for your problem.

Motorbike, Openbox, and Coffee addict.

--muzi--

Re: Big Ol' Awesome Config Thread!

Alright, this is just straight up messed up. I replaced everything with the default and changed the background to see if it ran. So I get the background but no awesome. I get nothing at all.

[EDIT]
theme.lua was the problem. What the problem was, I have no idea.
Here's what I think.
In theme.lua I use the path "/home/myusername/.config/awesome/themes/default/{whatever}" it doesn't work.
And if I switch to the "/usr/share/awesome/themes/default/{whatever}" it works.

Should I switch "/home/myusername/" to "~/" ?

Last edited by hagel (2011-04-02 14:02:56)

Re: Big Ol' Awesome Config Thread!

hagel wrote:

Alright, this is just straight up messed up. I replaced everything with the default and changed the background to see if it ran. So I get the background but no awesome. I get nothing at all.

[EDIT]
theme.lua was the problem. What the problem was, I have no idea.
Here's what I think.
In theme.lua I use the path "/home/myusername/.config/awesome/themes/default/{whatever}" it doesn't work.
And if I switch to the "/usr/share/awesome/themes/default/{whatever}" it works.

Should I switch "/home/myusername/" to "~/" ?

are you sure you have themes in .config/awesome?

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"

Re: Big Ol' Awesome Config Thread!

Yes, I am sure of that. It only works if I provide the /usr/share/ path in my theme.lua. Even if the one in the /usr/share/ is exactly the same as the one in my .config folder.

[EDIT]
I guess I could just put my themes in the usr/share/ folder. Though it shouldn't really be like this, right?

Last edited by hagel (2011-04-02 14:33:03)

Re: Big Ol' Awesome Config Thread!

hagel
Okay, if this related to theme.lua , try to do this , hope this help:

cp -r /usr/share/awesome/themes ~/.config/awesome
sudo rm -r /usr/share/awesome/themes
sudo ln -s ~/.config/awesome/themes /usr/share/awesome/themes

it's copying the default theme to your home /.config/awesome,
then removing(delete) the theme on /usr/share/awesome/themes,
and then, create a symbolic link between your home /.config/awesome and the system folder awesome config. it gonna make it a little bit easier now since the theme is in your home directory. big_smile
Good Luck.

Motorbike, Openbox, and Coffee addict.

--muzi--

Re: Big Ol' Awesome Config Thread!

muzieca wrote:

hagel
Okay, if this related to theme.lua , try to do this , hope this help:

cp -r /usr/share/awesome/themes ~/.config/awesome
sudo rm -r /usr/share/awesome/themes
sudo ln -s ~/.config/awesome/themes /usr/share/awesome/themes

it's copying the default theme to your home /.config/awesome,
then removing(delete) the theme on /usr/share/awesome/themes,
and then, create a symbolic link between your home /.config/awesome and the system folder awesome config. it gonna make it a little bit easier now since the theme is in your home directory. big_smile
Good Luck.

Worked like a charm.

Is there a possibility to get a border on the taskbar? I've seen it on plenty of screenshots.

Re: Big Ol' Awesome Config Thread!

hagel
just add this to your rc.lua on wibox section, or under wibox[s].widgets = { etc etc etc} big_smile

mywibox[s].border_width = "1"
mywibox[s].border_color = beautiful.fg_focus
mywibox[s].width = "1024"

adjust the border_width according to your taste, i prefer slim border, so "1" is enough for me.
you can change the color of fg_focus on theme.lua
and for wibox width, just adjust it to your screen resolution and you'll be good. big_smile
Have fun !!!

Last edited by muzieca (2011-04-03 08:37:11)

Motorbike, Openbox, and Coffee addict.

--muzi--

Re: Big Ol' Awesome Config Thread!

Thanks for all the help man. Though I should note that mywibox[s].width  have to be " 1024 - (border_width*2) ".

Re: Big Ol' Awesome Config Thread!

hagel wrote:

Thanks for all the help man. Though I should note that mywibox[s].width  have to be " 1024 - (border_width*2) ".

I think this will work

"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"