You are not logged in.
Hello Arch users,
I started using Awesome earlier this morning, and I don't have any prior experience with Lua. I have been reading the man pages and Wiki for Awesome and slowly learning how to use Lua for the config file. The problem I am currently having is with themes and widgets. I installed vicious from git and followed the README and Wiki on how to configure widgets. I am trying to use the gmail and pkg widgets from vicious, but they don't seem to be working. I installed some theme packages from the AUR, and followed the Wiki on how to configure them, but they too do not appear to be working.
Here are relevant excerpts from my rc.lua file. I included only the parts that I have edited myself. If something you need to see has been omitted, let me know and I'll post it. I am using the default rc.lua that was installed with Awesome on Arch.
EDIT: I forgot to mention that I have restarted Awesome several times after editing and saving the rc.lua file. I also rebooted, but still the same problem.
Widget declaration:
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- Widget libraries
require("obvious")
require("vicious")
-- Obvious Alsa widget
require("obvious.volume_alsa")Theme:
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
beautiful.init("/usr/share/awesome/themes/bio/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "lxterminal"
editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editorWibox/Widget init and register:
-- {{{ Wibox
-- Create a textclock widget
mytextclock = awful.widget.textclock({ align = "right" })
-- Create a systray
mysystray = widget({ type = "systray" })
-- Create an Alsa volume manager
obvious.volume_alsa():set_term("lxterminal")
-- Create gmail widget
gmailwidget = widget({ type = "textbox" })
-- Register widget
vicious.register(gmailwidget, vicious.widgets.gmail, "GMail: ${count}", 60)
-- Create pkg widget
pkgwidget = widget({ type = "textbox" })
-- Register pkg widget
vicious.register(pkgwidget, vicious.widgets.pkg, "Updates: $1", 1800, "Arch")Width settings for naughty windows:
-- Width for naughty windows
naughty_width = 600 -- in pixels
naughty.config.presets.low.width = naughty_width
naughty.config.presets.normal.width = naughty_width
naughty.config.presets.critical.width = naughty_widthLast edited by hyperreal_logic (2012-05-31 11:44:49)
Offline
Never mind - I have figured it out. I wasn't adding 'gmailwidget' and 'pkgwidget' to the correct spot under wibox.
Offline
hi, I don't use "pkg" or "gmail" widget but you need add yours custom widgets someting like that:
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Add widgets to the wibox - order matters
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mylayoutbox[s],
-- widgets added by you
gmailwidget,
pkgwidget,
-- etc etc and continue... you need to customize where in the wibox you want (left, right, bla bla bla)
I don't use "obvious" but I remember than sometime ago was a problem in my config. You can test comment it. And for syntax in your rc.lua you can run the command:
awesome -kis really usefull to find errors.
I'm not programmer or pro in lua but with in the archlinux's forum (Share your Awesome(WM) desktop!) the're a lot of awesome's configs to test and learn.. good job ![]()
KF5 & Plasma5 (git versions) - Awesome WM
ASUS Sabertooth 990FX - AMD FX8350 - ATI Radeon HD 7970
[testing] repo
Offline
@hyperreal_logic
you might want to add [SOLVED] to this thread (edit your first post).
Offline
@hyperreal_logic
you might want to add [SOLVED] to this thread (edit your first post).
Thanks, I will do that. I am a newbie to forums in general, and I thought only mods were allowed to do that.
Offline
Hello hyperreal_logic, are you getting correct counts from your gmail widget? I keep seeing more complaints from users getting 0, yet the RSS is the same as it ever was.
You need to install an RTFM interface.
Offline