You are not logged in.
I just installed awesome3-git and amazing-git, but when I run amazing it gives me
/usr/lib/ruby/site_ruby/1.8/amazing/config/dsl.rb:22:in `import': (eval):2:in `require': no such file to load -- statgrab (LoadError)
from (eval):2:in `import'
from /usr/lib/ruby/site_ruby/1.8/amazing/config/dsl.rb:14:in `initialize'
from /usr/lib/ruby/site_ruby/1.8/amazing/config.rb:20:in `new'
from /usr/lib/ruby/site_ruby/1.8/amazing/config.rb:20:in `from_dsl'
from /usr/lib/ruby/site_ruby/1.8/amazing/config.rb:11:in `initialize'
from /usr/lib/ruby/site_ruby/1.8/amazing/cli/helpers.rb:68:in `new'
from /usr/lib/ruby/site_ruby/1.8/amazing/cli/helpers.rb:68:in `parse_config'
from /usr/lib/ruby/site_ruby/1.8/amazing/cli.rb:55:in `run'
from /usr/bin/amazing:19
Any help would be great. Used the config branch.
Last edited by Reasons (2008-05-14 00:07:29)
Offline
Check if you used 'config' branch of amazing in PKGBUILD, in other case there are mistakes in syntax.
No cause is lost if there is but one fool left to fight for it.
Offline
I didn't. When should you use the master branch?
Offline
I just rebuild amazing but with the config branch and this is my config
require 'statgrab'
require 'find'
module Helpers::PangoMarkup
def urgent(text)
foreground("#ff5656", text)
end
def normal(text)
foreground("#888888", text)
end
def white(text)
foreground("#ffffff", text)
end
end
awesome {
set :statusbar => "top"
widget("battery") {
set :interval => 10
property("text") {
dir = ""
if @state == :charging
dir = "^"
elsif @state == :discharging
dir = "v"
else
dir = "="
end
if @percentage <= 20
urgent(" #{dir}#{@percentage.to_i}#{dir} ")
else
normal(" #{dir}#{@percentage.to_i}#{dir} ")
end
}
}
widget("mpd") {
set :interval => 1
property("text") {
case @state
when :playing : txt = ">>:"; show_info = true
when :paused : txt = "||:"; show_info = true
else show_info = false
end
if show_info
" #{txt} #@artist - #@title (#@position/#@length) "
else # Player is stopped or connection not initialized
" []: not playing "
end
}
}
widget("gmail") {
set :interval => 5.minutes
set :username => "purposeofreason"
set :password => "CENSORED"
property("text") {
if @count > 0
urgent(" #@count")
else
normal(" 0")
end
}
}
widget("pacman") {
set :interval => 1.hours
property("text") {
if @count > 0
urgent(" #@count ")
else
normal(" 0 ")
end
}
}
widget("clock") {
set :interval => 1
set :format => " %T %d.%m.%Y "
}
widget("cpu_usage") {
set :interval => 2
set :module => :noop
property("text") {
percents = Statgrab.new.cpu_percents
if percents[:user] >= 50
urgent(" %.1f%% " % percents[:user])
else
white(" %.1f%% " % percents[:user])
end
}
}
widget("cpu_freq") {
set :module => :cpu_info
set :interval => 3
property ("text") {
ghz = @speed[0] / 1000
if @speed[0] >= 1000
urgent("@ %3.2fGHz " % ghz)
else
normal("@ #{@speed[0].to_i}MHz ")
end
}
}
}
My .awesomerc might help
screen 0
{
general
{
border = 3
snap = 8
mwfact_lower_limit = 0.1
mwfact_upper_limit = 0.9
resize_hints = false
new_get_focus = true
new_become_master = false
floating_placement = smart
opacity_unfocused = 0.9
}
styles
{
normal
{
font = "Myriad Pro 8"
fg = "#B7A67A"
bg = "#3D352A"
border = "#3D352A"
}
focus
{
fg = "#3D352A"
bg = "#B7A67A"
border = "#B7A67A"
}
urgent
{
fg = "#111111"
bg = "#ff4500"
}
}
tags
{
tag main { layout = "tile" mwfact = 0.7 }
tag work { }
tag float { layout = "floating" }
}
layouts
{
layout tile { image = "/usr/share/awesome/icons/layouts/tilew.png" }
layout tileleft { image = "/usr/share/awesome/icons/layouts/tileleftw.png" }
layout tilebottom { image = "/usr/share/awesome/icons/layouts/tilebottomw.png" }
layout tiletop { image = "/usr/share/awesome/icons/layouts/tiletopw.png" }
layout max { image = "/usr/share/awesome/icons/layouts/maxw.png" }
layout spiral { image = "/usr/share/awesome/icons/layouts/spiralw.png" }
layout dwindle { image = "/usr/share/awesome/icons/layouts/dwindlew.png" }
layout floating { image = "/usr/share/awesome/icons/layouts/floatingw.png" }
}
statusbar mystatusbar
{
position = "top"
height = "16"
taglist mytaglist
{
mouse { button = "1" command = "tag_view" }
mouse { button = "1" modkey = {"Mod4"} command = "client_tag" }
mouse { button = "3" command = "tag_toggleview" }
mouse { button = "3" modkey = {"Mod4"} command = "client_toggletag" }
mouse { button = "4" command = "tag_viewnext" }
mouse { button = "5" command = "tag_viewprev" }
}
layoutinfo mylayoutinfo
{
mouse { button = "1" command = "tag_setlayout" args = {"+1"} }
mouse { button = "4" command = "tag_setlayout" args = {"+1"} }
mouse { button = "3" command = "tag_setlayout" args = {"-1"} }
mouse { button = "5" command = "tag_setlayout" args = {"-1"} }
}
textbox battery
{
align = "right"
}
textbox gmail
{
mouse { button = "1" command = "spawn" args = {"amazing -u gmail/top/0"} }
align = "right"
}
textbox pacman
{
align = "right"
mouse { button = "1" command = "spawn" args = {"amazing -u pacman/top/0"} }
}
textbox mpd
{
align = "right"
mouse { button = "1" command = "spawn" args = {"mpc toggle"} }
}
textbox clock
{
align = "right"
}
}
}
rules
{
rule { name = "Gimp" tags = "float" float = "true" }
rule { name = "Pidgin" tags = "float" float = "true" }
rule { name = "MPlayer" tags = "float" float = "true" }
rule { name = "Acroread" float = true }
rule { name = "pinentry" float = true }
rule { name = "epiphany" tags = "main" master = "true"}
}
mouse
{
root { button = "3" command = "spawn" args = {"exec urxvt"} }
root { button = "4" command = "tag_viewnext" }
root { button = "5" command = "tag_viewprev" }
client { modkey = {"Mod4"} button = "1" command = "client_movemouse" }
client { modkey = {"Mod4"} button = "2" command = "client_swap" args = {"0"} }
client { modkey = {"Mod4"} button = "3" command = "client_resizemouse" }
titlebar { button = "1" command = "client_movemouse" }
titlebar { button = "3" command = "client_resizemouse" }
}
keys
{
key { modkey = {"Mod4"} key = "F1" command = "spawn" args = {"for i in /usr/share/man/man?;do ls $i; done | cut -d. -f1 | awesome-menu -e 'urxvt -e man ' 'See manual page for:'"} }
key { modkey = {"Mod4"} key = "F2" command = "spawn" args = {"find /usr/bin -type f -executable ! -empty | awesome-menu -e 'exec ' Execute:"} }
key { modkey = {"Mod4"} key = "F3" command = "spawn" args = {"cut -d' ' -f1 ~/.ssh/known_hosts | cut -d, -f1 | awesome-menu -e 'urxvt -e ssh ' 'ssh to:'"} }
key { modkey = {"Mod4"} key = "Return" command = "spawn" args = {"exec urxvt"} }
key { modkey = {"Mod4"} key = "space" command = "tag_setlayout" args = {"+1"} }
key { modkey = {"Mod4", "Shift"} key = "space" command = "tag_setlayout" args = {"-1"} }
key { modkey = {"Mod4"} key = "b" command = "statusbar_toggle" }
key { modkey = {"Mod4"} key = "j" command = "client_focus" args = {"+1"} }
key { modkey = {"Mod4"} key = "k" command = "client_focus" args = {"-1"} }
key { modkey = {"Mod4"} key = "Tab" command = "focus_history" args = {"-1"} }
key { modkey = {"Mod4", "Shift"} key = "j" command = "client_swap" args = {"+1"} }
key { modkey = {"Mod4", "Shift"} key = "k" command = "client_swap" args = {"-1"} }
key { modkey = {"Mod4", "Control"} key = "j" command = "screen_focus" args = {"+1"} }
key { modkey = {"Mod4", "Control"} key = "k" command = "screen_focus" args = {"-1"} }
key { modkey = {"Mod4"} key = "h" command = "tag_setmwfact" args = {"-0.05"} }
key { modkey = {"Mod4"} key = "l" command = "tag_setmwfact" args = {"+0.05"} }
key { modkey = {"Mod4", "Shift"} key = "h" command = "tag_setnmaster" args = {"+1"} }
key { modkey = {"Mod4", "Shift"} key = "l" command = "tag_setnmaster" args = {"-1"} }
key { modkey = {"Mod4", "Control"} key = "h" command = "tag_setncol" args = {"+1"} }
key { modkey = {"Mod4", "Control"} key = "l" command = "tag_setncol" args = {"-1"} }
key { modkey = {"Mod4"} key = "Escape" command = "tag_prev_selected" }
key { modkey = {"Mod4"} key = "Left" command = "tag_viewprev" }
key { modkey = {"Mod4"} key = "Right" command = "tag_viewnext" }
key { modkey = {"Mod4"} key = "m" command = "client_togglemax" }
key { modkey = {"Mod4", "Control"} key = "Return" command = "client_swap" args = {"0"} }
key { modkey = {"Mod4", "Control"} key = "space" command = "client_setfloating" }
key { modkey = {"Mod4"} key = "s" command = "client_togglescratch" }
key { modkey = {"Mod4", "Control"} key = "s" command = "client_setscratch" }
key { modkey = {"Mod4"} key = "r" command = "client_redraw" }
key { modkey = {"Mod4"} key = "F4" command = "client_kill" }
key { modkey = {"Mod4", "Shift"} key = "q" command = "quit" }
key { modkey = {"Mod4", "Control"} key = "r" command = "restart" }
key { modkey = {"Mod4"} key = "0" command = "tag_toggleview" }
key { modkey = {"Mod4", "Control"} key = "0" command = "tag_toggleview" }
key { modkey = {"Mod4", "Control"} key = "1" command = "tag_toggleview" args = {"1"} }
key { modkey = {"Mod4", "Control"} key = "2" command = "tag_toggleview" args = {"2"} }
key { modkey = {"Mod4", "Control"} key = "3" command = "tag_toggleview" args = {"3"} }
key { modkey = {"Mod4", "Control"} key = "4" command = "tag_toggleview" args = {"4"} }
key { modkey = {"Mod4", "Control"} key = "5" command = "tag_toggleview" args = {"5"} }
key { modkey = {"Mod4", "Control"} key = "6" command = "tag_toggleview" args = {"6"} }
key { modkey = {"Mod4", "Control"} key = "7" command = "tag_toggleview" args = {"7"} }
key { modkey = {"Mod4", "Control"} key = "8" command = "tag_toggleview" args = {"8"} }
key { modkey = {"Mod4", "Control"} key = "9" command = "tag_toggleview" args = {"9"} }
key { modkey = {"Mod4", "Shift"} key = "0" command = "client_tag" }
key { modkey = {"Mod4", "Shift"} key = "1" command = "client_tag" args = {"1"} }
key { modkey = {"Mod4", "Shift"} key = "2" command = "client_tag" args = {"2"} }
key { modkey = {"Mod4", "Shift"} key = "3" command = "client_tag" args = {"3"} }
key { modkey = {"Mod4", "Shift"} key = "4" command = "client_tag" args = {"4"} }
key { modkey = {"Mod4", "Shift"} key = "5" command = "client_tag" args = {"5"} }
key { modkey = {"Mod4", "Shift"} key = "6" command = "client_tag" args = {"6"} }
key { modkey = {"Mod4", "Shift"} key = "7" command = "client_tag" args = {"7"} }
key { modkey = {"Mod4", "Shift"} key = "8" command = "client_tag" args = {"8"} }
key { modkey = {"Mod4", "Shift"} key = "9" command = "client_tag" args = {"9"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "0" command = "client_toggletag" }
key { modkey = {"Mod4", "Shift", "Control"} key = "1" command = "client_toggletag" args = {"1"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "2" command = "client_toggletag" args = {"2"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "3" command = "client_toggletag" args = {"3"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "4" command = "client_toggletag" args = {"4"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "5" command = "client_toggletag" args = {"5"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "6" command = "client_toggletag" args = {"6"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "7" command = "client_toggletag" args = {"7"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "8" command = "client_toggletag" args = {"8"} }
key { modkey = {"Mod4", "Shift", "Control"} key = "9" command = "client_toggletag" args = {"9"} }
## MINE ##
key { modkey = {"Mod4"} key = "grave" command = "spawn" args = {"urxvt"} }
key { modkey = {"Mod4"} key = "1" command = "spawn" args = {"epiphany"} }
key { modkey = {"Mod4"} key = "2" command = "spawn" args = {"abiword"} }
key { modkey = {"Mod4"} key = "3" command = "spawn" args = {"thunar"} }
key { modkey = {"Mod4"} key = "4" command = "spawn" args = {"gimp"} }
key { modkey = {"Mod4"} key = "5" command = "spawn" args = {"pidgin"} }
}
# vim: filetype=conf
Last edited by Reasons (2008-05-14 00:01:10)
Offline
Remove the 'require statgrab' at the top, or install libstatgrab from the official repo's, and clone this from git/follow install instructions:
git clone git://github.com/dag/ruby-statgrab.git
Offline
Thanks. I already had libstatgrab installed and ruby-statgrab appeared to install fine but nothing changed. Running a amazing -t [widget] showed that cpu_freq and gmail are giving errors.
EDIT - I took out statusbar => top and it's working except for the gmail.
EDIT EDIT - password was wrong. Now to actually customize it and not just be a rip off of yours.
Last edited by Reasons (2008-05-14 15:19:51)
Offline
I need also help with AwesomeWM and amazing,I am posting here because the problem is similar when I start i get error:
/usr/lib/ruby/site_ruby/1.8/amazing/config/dsl.rb:22:in `import': (eval):32:in `import': compile error (SyntaxError)
(eval):32: syntax error, unexpected $end, expecting '}'
from /usr/lib/ruby/site_ruby/1.8/amazing/config/dsl.rb:14:in `initialize'
from /usr/lib/ruby/site_ruby/1.8/amazing/config.rb:15:in `new'
from /usr/lib/ruby/site_ruby/1.8/amazing/config.rb:15:in `load_dsl'
from /usr/lib/ruby/site_ruby/1.8/amazing/config.rb:9:in `initialize'
from /usr/lib/ruby/site_ruby/1.8/amazing/cli/helpers.rb:68:in `new'
from /usr/lib/ruby/site_ruby/1.8/amazing/cli/helpers.rb:68:in `parse_config'
from /usr/lib/ruby/site_ruby/1.8/amazing/cli.rb:54:in `run'
from /usr/bin/amazing:19
I followed this tutorial
http://awesome.naquadah.org/wiki/index. … th_Amazing
Only change is that I didn't installed awesome-git,I installed awesome 2.3.When I run awesome -k file is OK.
Offline