You are not logged in.
Just want to say, awesome is.... well..... awesome! I installed it last night, spent a couple hours configuring, and I have to say that tiling wm's are really fun. Also, this will give me an excuse to learn ruby to use amazing.
Here's the question:
I have 2 status bars for awesome. The top one has the task list, clock, etc, and the bottom one just has MPD information. I set up awesome so when you left-click the name, it toggles, right click stop, wheel mouse up/down does next and prev songs. I'm running into sort of a strange problem that I don't know how to fix. No matter which tag I'm in, left clicking the song name always toggles the song. If I don't have a window near the bottom status bar, right click, and mousewheel doesnt do anything. If there is a window touching the bar, they all work. I have a feeling it's a mouse config that I missed in my awesomerc. I'll post my files.
.awesomerc
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 = "sans 10"
fg = "#dddddd"
bg = "#444444"
border = "#555555"
}
focus
{
fg = "#000000"
bg = "#535d6c"
border = "#535d6c"
}
urgent
{
fg = "#111111"
bg = "#ff4500"
}
}
tags
{
tag term { layout = "floating" }
tag www { layout = "max" }
tag float { layout = "floating" }
tag code { layout = "tile" mwfact=0.7 }
tag wow { layout = "max" }
}
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"
}
}
#textbox pacman
#{
# align = "right"
# mouse { button = "1" command = "spawn" arg = "amazing -u pacman/top/0" }
#}
# textbox mpd
# {
# align = "right"
# mouse { button = "1" command = "spawn" arg = "mpc toggle" }
# mouse { button = "3" command = "spawn" arg = "mpc stop" }
# mouse { button = "4" command = "spawn" arg = "mpc prev" }
# mouse { button = "5" command = "spawn" arg = "mpc next" }
# }
textbox clock
{
align = "right"
}
layoutinfo mylayoutinfo
{
mouse
{
button = "1"
command = "tag_setlayout"
arg = "+1"
}
mouse
{
button = "4"
command = "tag_setlayout"
arg = "+1"
}
mouse
{
button = "3"
command = "tag_setlayout"
arg = "-1"
}
mouse
{
button = "5"
command = "tag_setlayout"
arg = "-1"
}
}
tasklist mytasklist
{
mouse
{
button = "4"
command = "client_focusnext"
}
mouse
{
button = "5"
command = "client_focusprev"
}
mouse
{
modkey = {"Mod4"}
button = "4"
command = "client_swapnext"
}
mouse
{
modkey = {"Mod4"}
button = "5"
command = "client_swapprev"
}
}
#iconbox logo
#{
#image = "/usr/share/awesome/icons/awesome16.png"
#mouse
#{
#button = "1"
#command = "spawn"
#arg = "exec xterm -e man awesome"
#}
#}
}
statusbar botstatusbar
{
position = "bottom"
height = "16"
textbox mpd
{
align = "right"
mouse { button = "1" command = "spawn" arg = "mpc toggle" }
mouse { button = "3" command = "spawn" arg = "mpc stop" }
mouse { button = "4" command = "spawn" arg = "mpc prev" }
mouse { button = "5" command = "spawn" arg = "mpc next" }
}
}
}
rules
{
rule { name = "Gimp" float = true }
rule { name = "MPlayer" float = true }
rule { name = "Thunar" tags = "float" float = "true" }
rule { name = "Sonata" tags = "float" float = "true" }
rule { name = "Pidgin" tags = "float" float = "true" }
rule { name = "Opera" tags = "www" master = "true" }
rule { name = "Wow" tags = "wow" master = "true" }
}
mouse
{
root
{
button = "3"
command = "spawn"
arg = "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_zoom"
}
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"
arg = "for i in /usr/share/man/man?;do ls $i; done | cut -d. -f1 | awesome-menu -e 'xterm -e man ' 'See manual page for:'"
}
key
{
modkey = {"Mod4"}
key = "F2"
command = "spawn"
arg = "find /usr/bin -type f -executable ! -empty | awesome-menu -e 'exec ' Execute:"
}
key
{
modkey = {"Mod4"}
key = "F3"
command = "spawn"
arg = "cut -d' ' -f1 ~/.ssh/known_hosts | cut -d, -f1 | awesome-menu -e 'xterm -e ssh ' 'ssh to:'"
}
key
{
modkey = {"Mod4"}
key = "Return"
command = "spawn"
arg = "exec urxvt"
}
key
{
modkey = {"Mod4"}
key = "space"
command = "tag_setlayout"
arg = "+1"
}
key
{
modkey = {"Mod4", "Shift"}
key = "space"
command = "tag_setlayout"
arg = "-1"
}
key
{
modkey = {"Mod4"}
key = "b"
command = "statusbar_toggle"
}
key
{
modkey = {"Mod4"}
key = "j"
command = "client_focusnext"
}
key
{
modkey = {"Mod4"}
key = "k"
command = "client_focusprev"
}
key
{
modkey = {"Mod4"}
key = "Tab"
command = "focus_history"
arg = "-1"
}
key
{
modkey = {"Mod4", "Shift"}
key = "j"
command = "client_swapnext"
}
key
{
modkey = {"Mod4", "Shift"}
key = "k"
command = "client_swapprev"
}
key
{
modkey = {"Mod4", "Control"}
key = "j"
command = "screen_focus"
arg = "+1"
}
key
{
modkey = {"Mod4", "Control"}
key = "k"
command = "screen_focus"
arg = "-1"
}
key
{
modkey = {"Mod4"}
key = "h"
command = "tag_setmwfact"
arg = "-0.05"
}
key
{
modkey = {"Mod4"}
key = "l"
command = "tag_setmwfact"
arg = "+0.05"
}
key
{
modkey = {"Mod4", "Shift"}
key = "h"
command = "tag_setnmaster"
arg = "+1"
}
key
{
modkey = {"Mod4", "Shift"}
key = "l"
command = "tag_setnmaster"
arg = "-1"
}
key
{
modkey = {"Mod4", "Control"}
key = "h"
command = "tag_setncol"
arg = "+1"
}
key
{
modkey = {"Mod4", "Control"}
key = "l"
command = "tag_setncol"
arg = "-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_zoom"
}
key
{
modkey = {"Mod4", "Control"}
key = "space"
command = "client_togglefloating"
}
key
{
modkey = {"Mod4"}
key = "s"
command = "client_togglescratch"
}
key
{
modkey = {"Mod4", "Control"}
key = "s"
command = "client_setscratch"
}
key
{
modkey = {"Mod4", "Shift"}
key = "c"
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_view"
}
keylist
{
modkey = {"Mod4"}
command = "tag_view"
keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
}
key
{
modkey = {"Mod4", "Control"}
key = "0"
command = "tag_toggleview"
}
keylist
{
modkey = {"Mod4", "Control"}
command = "tag_toggleview"
keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
}
key
{
modkey = {"Mod4", "Shift"}
key = "0"
command = "client_tag"
}
#ME
key
{
modkey = {"Mod4"}
key = "w"
command = "spawn"
arg = "exec opera"
}
keylist
{
modkey = {"Mod4", "Shift"}
command = "client_tag"
keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
}
key
{
modkey = {"Mod4", "Shift", "Control"}
key = "0"
command = "client_toggletag"
}
keylist
{
modkey = {"Mod4", "Shift", "Control"}
command = "client_toggletag"
keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
}
}
# vim: filetype=conf
.amazing/config.rb
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 => "mystatusbar"
widget("clock") {
set :interval => 1
set :format => " %A %d %b %Y %r "
}
}
awesome {
set :statusbar => "botstatusbar"
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("pacman") {
#set :interval => 1.hours
#property("text") {
# if @count > 0
# urgent(" #@count ")
# else
# normal(" 0 ")
# end
#}
#}
}
Offline
My awesomerc seems to have stopped working after I upgraded from 2.3rc to 2.3, any ideas?
The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github
Offline
You are definately asking the wrong person
what's your awesome -k output?
Last edited by heleos (2008-05-24 01:03:43)
Offline
fixed it. Now all I have to do is figure out how to get it working with Amazing
The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github
Offline