aboutsummaryrefslogtreecommitdiff
path: root/modules/awesome
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-26 21:13:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-26 21:13:02 -0300
commit053599ca75a94c85d0c1f592dc76d53c271d174d (patch)
tree0f8445ab0bc42ef1bb176fb2ba25167000f55035 /modules/awesome
parent1e5d084d0580a109c7387e878362b2b0de62fd74 (diff)
downloaddotfiles-053599ca75a94c85d0c1f592dc76d53c271d174d.tar.gz
dotfiles-053599ca75a94c85d0c1f592dc76d53c271d174d.tar.bz2
Awesompd fixes
Diffstat (limited to 'modules/awesome')
-rw-r--r--modules/awesome/config.dot/awesome.link/awesompd.lua108
-rw-r--r--modules/awesome/config.dot/awesome.link/rc.lua2
2 files changed, 55 insertions, 55 deletions
diff --git a/modules/awesome/config.dot/awesome.link/awesompd.lua b/modules/awesome/config.dot/awesome.link/awesompd.lua
index 2027f88..4af25a3 100644
--- a/modules/awesome/config.dot/awesome.link/awesompd.lua
+++ b/modules/awesome/config.dot/awesome.link/awesompd.lua
@@ -1,57 +1,57 @@
- require("awesompd/awesompd")
+require("awesompd/awesompd")
- musicwidget = awesompd:create() -- Create awesompd widget
- --musicwidget.font = "Liberation Mono" -- Set widget font
- musicwidget.scrolling = true -- If true, the text in the widget will be scrolled
- musicwidget.output_size = 30 -- Set the size of widget in symbols
- musicwidget.update_interval = 10 -- Set the update interval in seconds
- -- Set the folder where icons are located (change username to your login name)
- musicwidget.path_to_icons = configdir .. "/awesompd/icons"
- -- Set the default music format for Jamendo streams. You can change
- -- this option on the fly in awesompd itself.
- -- possible formats: awesompd.FORMAT_MP3, awesompd.FORMAT_OGG
- musicwidget.jamendo_format = awesompd.FORMAT_MP3
- -- If true, song notifications for Jamendo tracks and local tracks will also contain
- -- album cover image.
- musicwidget.show_album_cover = false
- -- Specify how big in pixels should an album cover be. Maximum value
- -- is 100.
- musicwidget.album_cover_size = 50
- -- This option is necessary if you want the album covers to be shown
- -- for your local tracks.
- --musicwidget.mpd_config = homedir .. "/.mpdconf"
- -- Specify the browser you use so awesompd can open links from
- -- Jamendo in it.
- musicwidget.browser = "firefox"
- -- Specify decorators on the left and the right side of the
- -- widget. Or just leave empty strings if you decorate the widget
- -- from outside.
- musicwidget.ldecorator = " "
- musicwidget.rdecorator = " "
- -- Set all the servers to work with (here can be any servers you use)
- -- Set the buttons of the widget
- musicwidget:register_buttons({
- --{ "", awesompd.MOUSE_LEFT, musicwidget:command_toggle() },
- --{ "Control", awesompd.MOUSE_SCROLL_UP, musicwidget:command_prev_track() },
- --{ "Control", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_next_track() },
- { "", "XF86AudioPrev", musicwidget:command_prev_track() },
- { "", "XF86AudioNext", musicwidget:command_next_track() },
- { modkey, "XF86AudioPrev", musicwidget:command_previous_server() },
- { modkey, "XF86AudioNext", musicwidget:command_next_server() },
- --{ "", awesompd.MOUSE_SCROLL_UP, musicwidget:command_volume_up() },
- --{ "", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_volume_down() },
- { "", awesompd.MOUSE_RIGHT, musicwidget:command_show_menu() },
- --{ "", "XF86AudioLowerVolume", musicwidget:command_volume_down() },
- --{ "", "XF86AudioRaiseVolume", musicwidget:command_volume_up() },
- --{ modkey, "Pause", musicwidget:command_playpause() } })
- { "", "XF86AudioPlay", musicwidget:command_playpause() } })
+musicwidget = awesompd:create() -- Create awesompd widget
+--musicwidget.font = "Liberation Mono" -- Set widget font
+musicwidget.scrolling = true -- If true, the text in the widget will be scrolled
+musicwidget.output_size = 30 -- Set the size of widget in symbols
+musicwidget.update_interval = 10 -- Set the update interval in seconds
+-- Set the folder where icons are located (change username to your login name)
+musicwidget.path_to_icons = configdir .. "/awesompd/icons"
+-- Set the default music format for Jamendo streams. You can change
+-- this option on the fly in awesompd itself.
+-- possible formats: awesompd.FORMAT_MP3, awesompd.FORMAT_OGG
+musicwidget.jamendo_format = awesompd.FORMAT_MP3
+-- If true, song notifications for Jamendo tracks and local tracks will also contain
+-- album cover image.
+musicwidget.show_album_cover = false
+-- Specify how big in pixels should an album cover be. Maximum value
+-- is 100.
+musicwidget.album_cover_size = 50
+-- This option is necessary if you want the album covers to be shown
+-- for your local tracks.
+--musicwidget.mpd_config = homedir .. "/.mpdconf"
+-- Specify the browser you use so awesompd can open links from
+-- Jamendo in it.
+musicwidget.browser = "firefox"
+-- Specify decorators on the left and the right side of the
+-- widget. Or just leave empty strings if you decorate the widget
+-- from outside.
+musicwidget.ldecorator = " "
+musicwidget.rdecorator = " "
+-- Set all the servers to work with (here can be any servers you use)
+-- Set the buttons of the widget
+musicwidget:register_buttons({
+ --{ "", awesompd.MOUSE_LEFT, musicwidget:command_toggle() },
+ --{ "Control", awesompd.MOUSE_SCROLL_UP, musicwidget:command_prev_track() },
+ --{ "Control", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_next_track() },
+ { "", "XF86AudioPrev", musicwidget:command_prev_track() },
+ { "", "XF86AudioNext", musicwidget:command_next_track() },
+ { modkey, "XF86AudioPrev", musicwidget:command_previous_server() },
+ { modkey, "XF86AudioNext", musicwidget:command_next_server() },
+ --{ "", awesompd.MOUSE_SCROLL_UP, musicwidget:command_volume_up() },
+ --{ "", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_volume_down() },
+ { "", awesompd.MOUSE_RIGHT, musicwidget:command_show_menu() },
+ --{ "", "XF86AudioLowerVolume", musicwidget:command_volume_down() },
+ --{ "", "XF86AudioRaiseVolume", musicwidget:command_volume_up() },
+ --{ modkey, "Pause", musicwidget:command_playpause() } })
+ { "", "XF86AudioPlay", musicwidget:command_playpause() } })
- -- Put your server definitions in this file, like this:
- --musicwidget.servers = {
- -- { server = "localhost",
- -- port = 6600 },
- -- { server = "192.168.0.72",
- -- port = 6600 } }
- dofile(homedir .. "/.custom/awesome/awesompd.lua")
+-- Put your server definitions in this file, like this:
+--musicwidget.servers = {
+-- { server = "localhost",
+-- port = 6600 },
+-- { server = "192.168.0.72",
+-- port = 6600 } }
+dofile(homedir .. "/.custom/awesome/awesompd.lua")
- musicwidget:run() -- After all configuration is done, run the widget
+musicwidget:run() -- After all configuration is done, run the widget
diff --git a/modules/awesome/config.dot/awesome.link/rc.lua b/modules/awesome/config.dot/awesome.link/rc.lua
index 554c42e..e5fe3bb 100644
--- a/modules/awesome/config.dot/awesome.link/rc.lua
+++ b/modules/awesome/config.dot/awesome.link/rc.lua
@@ -174,7 +174,7 @@ for s = 1, screen.count() do
s == 1 and mysystray or nil,
volume_widget,
myledbox,
- awesompd == true and musicwidget.widget or nil,
+ awesompd and musicwidget.widget or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
}