]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: remove awesompd
authorSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 11:50:28 +0000 (12:50 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 11:51:04 +0000 (12:51 +0100)
It's been replaced by my own mpd_widget.

.gitmodules
awesome/widgets/awesompd [deleted submodule]
awesome/widgets/awesompd.lua [deleted file]

index 7a268b060cdbbf894a07510b96e5570931f332b1..e3a84234c1818dd419305c94424431e1c8079e99 100644 (file)
@@ -1,6 +1,3 @@
-[submodule "awesome/widgets/awesompd"]
-       path = awesome/widgets/awesompd
-       url = git@github.com:Ram-Z/awesompd.git
 [submodule "awesome/widgets/net_widgets"]
        path = awesome/widgets/net_widgets
        url = git@github.com:Ram-Z/net_widgets.git
diff --git a/awesome/widgets/awesompd b/awesome/widgets/awesompd
deleted file mode 160000 (submodule)
index d9a2e4b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit d9a2e4b2d274eab33e09bd1544f0ed0b94a488c2
diff --git a/awesome/widgets/awesompd.lua b/awesome/widgets/awesompd.lua
deleted file mode 100644 (file)
index 0cf1c8f..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-local awesompd = require("widgets/awesompd/awesompd")
-local musicwidget
-
-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 = 1 -- Set the update interval in seconds
--- Set the folder where icons are located
-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
-musicwidget.jamendo_format = awesompd.FORMAT_OGG
--- If true, song notifications for Jamendo tracks and local tracks will also contain
--- album cover image.
-musicwidget.show_album_cover = true
--- 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 = os.getenv("XDG_CONFIG_HOME").."/mpd/mpd.conf"
--- Specify the browser you use so awesompd can open links from
--- Jamendo in it.
-musicwidget.browser = "rifle"
--- 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)
-musicwidget.servers = {
-    { server = "localhost",
-        port = 6600 } }
--- Set the buttons of the widget
-musicwidget:register_buttons({
-    { "",        awesompd.MOUSE_LEFT,        musicwidget:command_playpause()   },
-    { "Control", awesompd.MOUSE_SCROLL_UP,   musicwidget:command_prev_track()  },
-    { "Control", awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_next_track()  },
-    { "",        awesompd.MOUSE_SCROLL_UP,   musicwidget:command_volume_up()   },
-    { "",        awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_volume_down() },
-    { "",        awesompd.MOUSE_RIGHT,       musicwidget:command_show_menu()   },
-    { modkey,    "p",                        musicwidget:command_playpause()   },
-    { modkey,    ",",                        musicwidget:command_prev_track()   },
-    { modkey,    ".",                        musicwidget:command_next_track()   },
-    { modkey,    "'",                        function() musicwidget.to_notify = true end   },
-    { { modkey, "Shift" },    ",",           musicwidget:command_previous_server()   },
-    { { modkey, "Shift" },    ".",           musicwidget:command_next_server()   },
-    { "",        "XF86AudioPlay",            musicwidget:command_playpause()   },
-    { "",        "XF86AudioPrev",            musicwidget:command_prev_track()  },
-    { "",        "XF86AudioNext",            musicwidget:command_next_track()  },
-    { "Shift",   "XF86AudioPrev",            musicwidget:command_previous_server()  },
-    { "Shift",   "XF86AudioNext",            musicwidget:command_next_server()  }
-})
-
--- register global_keys
-musicwidget:append_global_keys()
--- After all configuration is done, run the widget
-musicwidget:run()
-
-return musicwidget.widget