about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--awesome/.config/awesome/rc.lua21
-rw-r--r--brutalmaze/.config/brutalmaze/settings.ini39
2 files changed, 18 insertions, 42 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index bc67455..d06d343 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -213,14 +213,29 @@ myvolume:buttons(awful.util.table.join(
 ))
 
 -- Create a widget for music player
-local myplayer = wibox.widget.textbox()
+local myplayer_text = wibox.widget.textbox()
 awful.spawn.with_line_callback(
   "playerctl --follow metadata --format ' {{artist}} <{{status}}> {{title}}'",
   {stdout = function (line)
-     myplayer:set_text(line:gsub('<Playing>', '>'):gsub('<.+>', '|'))
+     myplayer_text:set_text(line:gsub('<Playing>', '>'):gsub('<.+>', '|'))
    end}
 )
 
+local function audacious_seeker(time)
+  return function ()
+    awful.spawn(("audtool playback-seek-relative %f"):format(time))
+  end
+end
+
+local myplayer = wibox.container.background(myplayer_text, "#b16286")
+myplayer:buttons(awful.util.table.join(
+  awful.button({}, 1, spawner(audacious_rewind)),
+  awful.button({}, 2, spawner(audacious_play_pause)),
+  awful.button({}, 3, spawner(audacious_forward)),
+  awful.button({}, 4, audacious_seeker(1)),
+  awful.button({}, 5, audacious_seeker(-1))
+))
+
 -- Create a weather widget
 local myweather = wibox.widget.textbox()
 vicious.register(myweather, vicious.widgets.weather,
@@ -323,7 +338,7 @@ awful.screen.connect_for_each_screen(function (s)
       wibox.widget.imagebox(beautiful.arrow4),
       wibox.container.background(myweather, "#458588"),
       wibox.widget.imagebox(beautiful.arrow5),
-      wibox.container.background(myplayer, "#b16286"),
+      myplayer,
       wibox.widget.imagebox(beautiful.arrow6),
       s.mypromptbox
     },
diff --git a/brutalmaze/.config/brutalmaze/settings.ini b/brutalmaze/.config/brutalmaze/settings.ini
deleted file mode 100644
index 6bc4072..0000000
--- a/brutalmaze/.config/brutalmaze/settings.ini
+++ /dev/null
@@ -1,39 +0,0 @@
-[Graphics]
-Screen width: 640
-Screen height: 480
-# FPS should not be greater than refresh rate.
-Maximum FPS: 60
-
-[Sound]
-Muted: no
-# Volume must be between 0.0 and 1.0
-Music volume: 1.0
-# Use space music background, which sounds cold and creepy
-Space theme: yes
-
-[Control]
-Touch: no
-# Input values should be either from Mouse1 to Mouse3 or a keyboard key
-# and they are case-insensitively read.
-# Aliases for special keys are listed here (without the K_ part):
-# http://www.pygame.org/docs/ref/key.html
-# Key combinations are not supported.
-New game: F2
-Toggle pause: p
-Toggle mute: m
-Move left: a
-Move right: d
-Move up: w
-Move down: s
-Long-range attack: Mouse1
-Close-range attack: Mouse3
-
-[Server]
-# Enabling remote control will disable control via keyboard and mouse.
-Enable: no
-Host: localhost
-Port: 8089
-# Timeout on blocking socket operations, in seconds.
-Timeout: 1.0
-# Disable graphics and sound (only if socket server is enabled).
-Headless: no