]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: don't use absolute paths to home dir
authorSamir Benmendil <me@rmz.io>
Wed, 2 Mar 2016 13:54:33 +0000 (13:54 +0000)
committerSamir Benmendil <me@rmz.io>
Wed, 2 Mar 2016 13:54:33 +0000 (13:54 +0000)
awesome/widgets/awesompd.lua

index d697be1a9823d689bdec9e9c0641a350418efde4..38a9c02f731b3a50a213530476ff8a12296f9fcb 100644 (file)
@@ -7,7 +7,7 @@ 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 = 1 -- Set the update interval in seconds
 -- Set the folder where icons are located
-musicwidget.path_to_icons = "/home/ramsi/.config/awesome/widgets/awesompd/icons"
+musicwidget.path_to_icons = awful.util.getdir("config").."/widgets/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
@@ -20,7 +20,7 @@ musicwidget.show_album_cover = true
 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 = "/home/ramsi/.config/mpd/mpd.conf"
+musicwidget.mpd_config = os.getenv("XDG_CONFIG_HOME").."/mpd/mpd.conf"
 -- Specify the browser you use so awesompd can open links from
 -- Jamendo in it.
 musicwidget.browser = "mimeo"