diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 4d543b3..ac9643d 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -452,7 +452,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.copland b/rc.lua.copland index ba98930..ce783a8 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -118,6 +118,8 @@ require("freedesktop/freedesktop") -- {{{ Wibox markup = lain.util.markup blue = beautiful.fg_focus +red = "#EB8F8F" +green = "#8FEB8F" -- Textclock mytextclock = awful.widget.textclock(" %H:%M ") @@ -186,18 +188,18 @@ batupd = lain.widgets.bat({ baticon:set_image(beautiful.ac) else bat_perc = tonumber(bat_now.perc) - if bat_perc > 50 then + if bat_perc >= 98 then + batbar:set_color(green) + elseif bat_perc > 50 then batbar:set_color(beautiful.fg_normal) baticon:set_image(beautiful.bat) elseif bat_perc > 15 then batbar:set_color(beautiful.fg_normal) baticon:set_image(beautiful.bat_low) else - batbar:set_color("#EB8F8F") + batbar:set_color(red) baticon:set_image(beautiful.bat_no) - end - end batbar:set_value(bat_perc / 100) end @@ -244,10 +246,10 @@ settings = function() volicon:set_image(beautiful.vol) end end, -colors = +colors = { background = beautiful.bg_normal, - mute = "#EB8F8F", + mute = red, unmute = beautiful.fg_normal }}) volmargin = wibox.layout.margin(volume.bar, 2, 7) @@ -505,7 +507,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.dremora b/rc.lua.dremora index 0a17ef4..4094998 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -452,7 +452,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.holo b/rc.lua.holo index 9c3a28f..851da88 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -218,7 +218,7 @@ function () end))) play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1, function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end))) @@ -587,7 +587,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 3649248..005802b 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -515,7 +515,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 1aedd4a..4ce641f 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -504,7 +504,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 2e8a8c3..f1a2b4c 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -450,7 +450,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down", diff --git a/rc.lua.steamburn b/rc.lua.steamburn index f6d521d..758b331 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -459,7 +459,7 @@ globalkeys = awful.util.table.join( -- MPD control awful.key({ altkey, "Control" }, "Up", function () - awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + awful.util.spawn_with_shell("mpc toggle || ncmpc toggle || pms toggle") mpdwidget.update() end), awful.key({ altkey, "Control" }, "Down",