]>
git.madduck.net Git - etc/awesome.git/blobdiff - .awesomerc.lua
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
-- awesome 3 configuration file
-- awesome 3 configuration file
-AWESOME_DATADIR = "/home/madduck/code"
-package.path = AWESOME_DATADIR .. "/awesome/ lib/?.lua;" .. package.path
+AWESOME_DATADIR = "/home/madduck/code/awesome "
+package.path = AWESOME_DATADIR .. "/lib/?.lua;" .. package.path
-- Include awesome library, with lots of useful function!
require("awful")
-- Include awesome library, with lots of useful function!
require("awful")
["pinentry"] = true,
["GIMP"] = true,
["twinkle"] = true,
["pinentry"] = true,
["GIMP"] = true,
["twinkle"] = true,
+ ["Add-ons"] = true,
+ ["Play stream"] = true
}
-- Color & Appearance definitions, we use these later to display things
}
-- Color & Appearance definitions, we use these later to display things
mytextbox.text = "<b><small> awesome " .. AWESOME_VERSION .. " </small></b>"
mypromptbox = widget.new({ type = "textbox", name = "mypromptbox", align = "left" })
mytextbox.text = "<b><small> awesome " .. AWESOME_VERSION .. " </small></b>"
mypromptbox = widget.new({ type = "textbox", name = "mypromptbox", align = "left" })
--- Create an iconbox widget
-myiconbox = widget.new({ type = "textbox", name = "myiconbox", align = "left" })
-myiconbox.text = "<bg image=\"" .. AWESOME_DATADIR .. "/icons/awesome16.png\" resize=\"true\"/>"
-
-- Create a systray
mysystray = widget.new({ type = "systray", name = "mysystray", align = "right" })
-- Create a systray
mysystray = widget.new({ type = "systray", name = "mysystray", align = "right" })
fg = fg_normal, bg = bg_normal })
-- Add widgets to the statusbar - order matters
mystatusbar[s]:widget_add(mytaglist)
fg = fg_normal, bg = bg_normal })
-- Add widgets to the statusbar - order matters
mystatusbar[s]:widget_add(mytaglist)
- mystatusbar[s]:widget_add(myiconbox)
mystatusbar[s]:widget_add(mytasklist)
mystatusbar[s]:widget_add(mypromptbox)
mystatusbar[s]:widget_add(mytextbox)
mystatusbar[s]:widget_add(mytasklist)
mystatusbar[s]:widget_add(mypromptbox)
mystatusbar[s]:widget_add(mytextbox)
keybinding.new({ cmdmodkey }, "Left", function () awful.spawn("xmms2 prev") end):add()
keybinding.new({ cmdmodkey }, "Right", function () awful.spawn("xmms2 next") end):add()
keybinding.new({ cmdmodkey }, "space", function () awful.spawn("xmms2 toggle") end):add()
keybinding.new({ cmdmodkey }, "Left", function () awful.spawn("xmms2 prev") end):add()
keybinding.new({ cmdmodkey }, "Right", function () awful.spawn("xmms2 next") end):add()
keybinding.new({ cmdmodkey }, "space", function () awful.spawn("xmms2 toggle") end):add()
--- keybinding.new({ cmdmodkey }, "backslash", function () awful.spawn("mpc | head -1 | xmessage -nearmouse -timeout 5 -file -") end):add()
--- keybinding.new({ cmdmodkey, "Shift" }, "backslash", function () awful.spawn("mpc play list | xmessage -nearmouse -timeout 5 -file -") end):add()
+keybinding.new({ cmdmodkey }, "backslash", function () awful.spawn("xmms2 current | head -1 | xmessage -nearmouse -timeout 5 -file -") end):add()
+keybinding.new({ cmdmodkey, "Shift" }, "backslash", function () awful.spawn("xmms2 list | xmessage -nearmouse -timeout 5 -file -") end):add()
-- misc apps
keybinding.new({ cmdmodkey }, "n", function () awful.spawn("sensible-browser") end):add()
-- misc apps
keybinding.new({ cmdmodkey }, "n", function () awful.spawn("sensible-browser") end):add()