aboutsummaryrefslogtreecommitdiff
path: root/awesome
diff options
context:
space:
mode:
Diffstat (limited to 'awesome')
-rw-r--r--awesome/.config/awesome/themes/powerarrow-black/theme.lua133
1 files changed, 70 insertions, 63 deletions
diff --git a/awesome/.config/awesome/themes/powerarrow-black/theme.lua b/awesome/.config/awesome/themes/powerarrow-black/theme.lua
index d20cb43..579e767 100644
--- a/awesome/.config/awesome/themes/powerarrow-black/theme.lua
+++ b/awesome/.config/awesome/themes/powerarrow-black/theme.lua
@@ -5,29 +5,29 @@
--]]
-local gears = require("gears")
-local lain = require("lain")
-local awful = require("awful")
-local wibox = require("wibox")
+local gears = require("gears")
+local lain = require("lain")
+local awful = require("awful")
+local wibox = require("wibox")
-local math, string, os = math, string, os
-local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
+local math, string, os = math, string, os
+local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
local theme = {}
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow-dark"
theme.font = "Source code pro bold 12"
theme.taglist_font = "Source code pro bold 12"
-theme.fg_normal = "#ffffff"
-theme.fg_blue = "#ffffff"
-theme.fg_magenta = "#cc998d"
+theme.fg_normal = "#ffffff" -- Not focused windows text color
+theme.fg_blue = "#000000" -- Mlo4 lazma
+theme.fg_magenta = "#FBE9E7" -- taglist color and mem and cpu
theme.fg_focus = "#6200C4"
theme.fg_urgent = "#b74822"
-theme.bg_normal = "#111111" -- Bar color
-theme.bg_focus = "#ecebe4"
+theme.bg_normal = "#000000" -- Bar color
+theme.bg_focus = "#717171" -- taglist focused bg color
theme.bg_urgent = "#3F3F3F"
-theme.taglist_fg_focus = "#153b50"
-theme.tasklist_bg_focus = "#3B3B3B"
-theme.tasklist_fg_focus = "#FAFFD8"
+theme.taglist_fg_focus = "#ffffff"
+theme.tasklist_bg_focus = "#3f3f3f"
+theme.tasklist_fg_focus = "#eeeeee"
theme.border_width = 2
theme.border_normal = "#000000"
theme.border_focus = "#f90057"
@@ -95,20 +95,20 @@ theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/
theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png"
-theme.bg_systray = "#111111"
-theme.clock_fontfg = "#ffffff"
+theme.bg_systray = "#000000"
+theme.clock_fontfg = theme.fg_magenta
theme.clock_font = "DejaVu Sans Mono Bold 12"
-theme.arch_fontfg = "#ffffff"
+theme.arch_fontfg = theme.fg_magenta
theme.arch_font = "DejaVu Sans Mono Bold 12"
-local markup = lain.util.markup
-local separators = lain.util.separators
+local markup = lain.util.markup
+local separators = lain.util.separators
-- Textclock
local clockicon = wibox.widget.imagebox(theme.widget_clock)
local clock = awful.widget.watch(
- "date +'%A %d %B %I:%M%p'" , 60,
+ "date +'%A %d %B %I:%M%p'", 60,
function(widget, stdout)
widget:set_markup(" " .. markup.fontfg(theme.clock_font, theme.clock_fontfg, stdout))
end
@@ -127,20 +127,20 @@ theme.cal = lain.widget.cal({
-- ALSA volume
theme.volume = lain.widget.alsabar({
--togglechannel = "IEC958,3",
- notification_preset = { font = theme.font, fg = theme.fg_blue },
+ notification_preset = { font = theme.font, fg = theme.fg_normal },
})
-- MPD
local musicplr = "urxvt -title Music -g 130x34-320+16 -e ncmpcpp"
local mpdicon = wibox.widget.imagebox(theme.widget_music)
mpdicon:buttons(my_table.join(
- awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end),
- awful.button({ }, 2, function ()
+ awful.button({ modkey }, 1, function() awful.spawn.with_shell(musicplr) end),
+ awful.button({}, 2, function()
awful.spawn.with_shell("mpc toggle")
theme.mpd.update()
end),
- awful.button({ modkey }, 3, function () awful.spawn.with_shell("pkill ncmpcpp") end),
- awful.button({ }, 3, function ()
+ awful.button({ modkey }, 3, function() awful.spawn.with_shell("pkill ncmpcpp") end),
+ awful.button({}, 3, function()
awful.spawn.with_shell("mpc stop")
theme.mpd.update()
end)))
@@ -148,7 +148,7 @@ theme.mpd = lain.widget.mpd({
settings = function()
if mpd_now.state == "play" then
artist = " " .. mpd_now.artist .. " "
- title = mpd_now.title .. " "
+ title = mpd_now.title .. " "
mpdicon:set_image(theme.widget_music_on)
widget:set_markup(markup.font(theme.font, markup("#FFFFFF", artist) .. " " .. title))
elseif mpd_now.state == "pause" then
@@ -200,20 +200,20 @@ theme.volume = lain.widget.alsa({
local arrow = separators.arrow_left
function theme.powerline_rl(cr, width, height)
- local arrow_depth, offset = height/2, 0
+ local arrow_depth, offset = height / 2, 0
-- Avoid going out of the (potential) clip area
if arrow_depth < 0 then
- width = width + 2*arrow_depth
+ width = width + 2 * arrow_depth
offset = -arrow_depth
end
- cr:move_to(offset + arrow_depth , 0 )
- cr:line_to(offset + width , 0 )
- cr:line_to(offset + width - arrow_depth , height/2 )
- cr:line_to(offset + width , height )
- cr:line_to(offset + arrow_depth , height )
- cr:line_to(offset , height/2 )
+ cr:move_to(offset + arrow_depth, 0)
+ cr:line_to(offset + width, 0)
+ cr:line_to(offset + width - arrow_depth, height / 2)
+ cr:line_to(offset + width, height)
+ cr:line_to(offset + arrow_depth, height)
+ cr:line_to(offset, height / 2)
cr:close_path()
end
@@ -224,8 +224,8 @@ end
function theme.at_screen_connect(s)
-- Quake application
- -- s.quake = lain.util.quake({ app = awful.util.terminal })
- s.quake = lain.util.quake({ app = "termite", height = 0.50, argname = "--name %s" })
+ -- s.quake = lain.util.quake({ app = awful.util.terminal })
+ s.quake = lain.util.quake({ app = "termite", height = 0.50, argname = "--name %s" })
-- If wallpaper is a function, call it with the screen
local wallpaper = theme.wallpaper
@@ -243,35 +243,42 @@ function theme.at_screen_connect(s)
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(my_table.join(
- awful.button({ }, 1, function () awful.layout.inc( 1) end),
- awful.button({ }, 3, function () awful.layout.inc(-1) end),
- awful.button({ }, 4, function () awful.layout.inc( 1) end),
- awful.button({ }, 5, function () awful.layout.inc(-1) end)))
+ awful.button({}, 1, function() awful.layout.inc(1) end),
+ awful.button({}, 3, function() awful.layout.inc(-1) end),
+ awful.button({}, 4, function() awful.layout.inc(1) end),
+ awful.button({}, 5, function() awful.layout.inc(-1) end)))
-- Create a taglist widget
s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)
-- Create the wibox
local function custom_shape(cr, width, height)
-
gears.shape.rounded_rect(cr, width, height, 0)
-
end
- s.mywibox = awful.wibar({ position = "top", screen = s, shape = custom_shape, height = 23, width = 1920, border_width = 0, bg = theme.bg_normal, fg = theme.fg_magenta })
+ s.mywibox = awful.wibar({
+ position = "top",
+ screen = s,
+ shape = custom_shape,
+ height = 23,
+ width = 1920,
+ border_width = 0,
+ bg = theme.bg_normal,
+ fg = theme.fg_magenta
+ })
-- s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons, { bg_normal = theme.bg_systray, bg_focus = theme.bg_focus})
s.mytasklist = awful.widget.tasklist {
- screen = s,
- filter = awful.widget.tasklist.filter.currenttags,
- buttons = tasklist_buttons,
- style = {
+ screen = s,
+ filter = awful.widget.tasklist.filter.currenttags,
+ buttons = tasklist_buttons,
+ style = {
shape_border_width = 0,
shape_border_color = "#777777",
shape = gears.shape.rectangle,
},
- layout = {
- spacing = 0,
+ layout = {
+ spacing = 0,
spacing_widget = {
{
forced_width = 0,
@@ -282,7 +289,7 @@ function theme.at_screen_connect(s)
halign = 'center',
widget = wibox.container.place,
},
- layout = wibox.layout.flex.horizontal
+ layout = wibox.layout.flex.horizontal
},
-- Notice that there is *NO* wibox.wibox prefix, it is a template,
-- not a widget instance.
@@ -303,8 +310,8 @@ function theme.at_screen_connect(s)
},
layout = wibox.layout.fixed.horizontal,
},
- left = 10,
- right = 10,
+ left = 10,
+ right = 10,
widget = wibox.container.margin
},
id = 'background_role',
@@ -314,26 +321,26 @@ function theme.at_screen_connect(s)
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(my_table.join(
- awful.button({ }, 1, function () awful.layout.inc( 1) end),
- awful.button({ }, 3, function () awful.layout.inc(-1) end),
- awful.button({ }, 4, function () awful.layout.inc( 1) end),
- awful.button({ }, 5, function () awful.layout.inc(-1) end)))
+ awful.button({}, 1, function() awful.layout.inc(1) end),
+ awful.button({}, 3, function() awful.layout.inc(-1) end),
+ awful.button({}, 4, function() awful.layout.inc(1) end),
+ awful.button({}, 5, function() awful.layout.inc(-1) end)))
- tbox_separator = wibox.widget.textbox(" ")
+ tbox_separator = wibox.widget.textbox(" ")
local vert_sep = wibox.widget {
widget = wibox.widget.separator,
orientation = "horizontal",
forced_width = 6,
- color = "#c7fffc",
+ color = theme.fg_normal,
}
local allah = wibox.widget {
- markup = "<span foreground='#FBFFFE'>ﷲ</span>",
- widget = wibox.widget.textbox,
- color = "#ffffff",
- font = "DejaVu Sans Mono Bold 10",
+ markup = "<span foreground='#FBFFFE'>ﷲ</span>",
+ widget = wibox.widget.textbox,
+ color = "#ffffff",
+ font = "DejaVu Sans Mono Bold 10",
}
-- Add widgets to the wibox
@@ -348,7 +355,7 @@ function theme.at_screen_connect(s)
tbox_separator,
},
s.mytasklist, -- Middle widget
- { -- Right widgets
+ { -- Right widgets
layout = wibox.layout.fixed.horizontal,
tbox_separator,
wibox.widget { theme.volume.widget, layout = wibox.layout.align.horizontal },