Large Cleanup
@ -1,32 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 30 -- in seconds
|
||||
|
||||
local battery_text = wibox.widget.textbox()
|
||||
|
||||
local battery = wibox.widget {
|
||||
battery_text,
|
||||
layout = wibox.layout.align.horizontal,
|
||||
}
|
||||
|
||||
local function update_widget(bat)
|
||||
battery_text.markup = bat
|
||||
end
|
||||
|
||||
local bat_script = [[
|
||||
bash -c "
|
||||
upower -i $(upower -e | grep BAT) | grep percentage | awk '{print $2}'
|
||||
"]]
|
||||
|
||||
-- Update percentage
|
||||
awful.widget.watch(bat_script, update_interval, function(widget, stdout)
|
||||
-- local bat = stdout:match(':%s*(.*)..')
|
||||
local bat = string.gsub(stdout, '^%s*(.-)%s*$', '%1')
|
||||
update_widget(bat)
|
||||
end)
|
||||
|
||||
return battery
|
@ -1,47 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
-- Set colors
|
||||
local active_color = beautiful.battery_bar_active_color or "#5AA3CC"
|
||||
local background_color = beautiful.battery_bar_background_color or "#222222"
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 30 -- in seconds
|
||||
|
||||
local battery_bar = wibox.widget{
|
||||
max_value = 100,
|
||||
value = 50,
|
||||
forced_height = dpi(10),
|
||||
margins = {
|
||||
top = dpi(8),
|
||||
bottom = dpi(8),
|
||||
},
|
||||
forced_width = dpi(200),
|
||||
shape = gears.shape.rounded_bar,
|
||||
bar_shape = gears.shape.rounded_bar,
|
||||
color = active_color,
|
||||
background_color = background_color,
|
||||
border_width = 0,
|
||||
border_color = beautiful.border_color,
|
||||
widget = wibox.widget.progressbar,
|
||||
}
|
||||
|
||||
local function update_widget(bat)
|
||||
battery_bar.value = tonumber(bat)
|
||||
end
|
||||
|
||||
local bat_script = [[
|
||||
bash -c "
|
||||
upower -i $(upower -e | grep BAT) | grep percentage | awk '{print $2}'
|
||||
"]]
|
||||
|
||||
awful.widget.watch(bat_script, update_interval, function(widget, stdout)
|
||||
local bat = stdout:gsub("%%", "")
|
||||
update_widget(bat)
|
||||
end)
|
||||
|
||||
return battery_bar
|
@ -1,64 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
-- Set colors
|
||||
local active_color = beautiful.brightness_bar_active_color or "#5AA3CC"
|
||||
local background_color = beautiful.brightness_bar_background_color or "#222222"
|
||||
|
||||
local brightness_bar = wibox.widget{
|
||||
max_value = 100,
|
||||
value = 50,
|
||||
forced_height = dpi(10),
|
||||
margins = {
|
||||
top = dpi(8),
|
||||
bottom = dpi(8),
|
||||
},
|
||||
forced_width = dpi(200),
|
||||
shape = gears.shape.rounded_bar,
|
||||
bar_shape = gears.shape.rounded_bar,
|
||||
color = active_color,
|
||||
background_color = background_color,
|
||||
border_width = 0,
|
||||
border_color = beautiful.border_color,
|
||||
widget = wibox.widget.progressbar,
|
||||
}
|
||||
|
||||
-- Mouse control
|
||||
-- brightness_bar:buttons(gears.table.join(
|
||||
-- --
|
||||
-- awful.button({ }, 1, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 4, function ()
|
||||
-- end),
|
||||
-- awful.button({ }, 5, function ()
|
||||
-- end)
|
||||
-- ))
|
||||
|
||||
local function update_widget()
|
||||
awful.spawn.easy_async_with_shell("xbacklight -get", function(out)
|
||||
-- Remove trailing whitespaces
|
||||
-- out = out:gsub('^%s*(.-)%s*$', '%1')
|
||||
-- host_text.markup = helpers.colorize_text("@"..out, xcolor8)
|
||||
brightness_bar.value = tonumber(out)
|
||||
end)
|
||||
end
|
||||
|
||||
-- Signals
|
||||
awesome.connect_signal("brightness_changed", function ()
|
||||
update_widget()
|
||||
end)
|
||||
|
||||
update_widget()
|
||||
|
||||
return brightness_bar
|
@ -1,77 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
-- Set colors
|
||||
local active_color = beautiful.cpu_bar_active_color or "#5AA3CC"
|
||||
local background_color = beautiful.cpu_bar_background_color or "#222222"
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 5 -- in seconds
|
||||
|
||||
local cpu_bar = wibox.widget{
|
||||
max_value = 100,
|
||||
value = 50,
|
||||
forced_height = dpi(10),
|
||||
margins = {
|
||||
top = dpi(8),
|
||||
bottom = dpi(8),
|
||||
},
|
||||
forced_width = dpi(200),
|
||||
shape = gears.shape.rounded_bar,
|
||||
bar_shape = gears.shape.rounded_bar,
|
||||
color = active_color,
|
||||
background_color = background_color,
|
||||
border_width = 0,
|
||||
border_color = beautiful.border_color,
|
||||
widget = wibox.widget.progressbar,
|
||||
}
|
||||
|
||||
-- Mouse control
|
||||
-- cpu_bar:buttons(gears.table.join(
|
||||
-- --
|
||||
-- awful.button({ }, 1, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 4, function ()
|
||||
-- end),
|
||||
-- awful.button({ }, 5, function ()
|
||||
-- end)
|
||||
-- ))
|
||||
|
||||
local function update_widget(cpu_idle)
|
||||
-- Use this if you want to display usage percentage
|
||||
-- cpu_bar.value = 100 - cpu_idle
|
||||
-- Use this if you want to idle percentage
|
||||
cpu_bar.value = tonumber(cpu_idle)
|
||||
end
|
||||
|
||||
-- Signals
|
||||
-- cpu_bar:connect_signal("mouse::enter", function ()
|
||||
-- update_widget()
|
||||
-- end)
|
||||
|
||||
-- update_widget()
|
||||
|
||||
local cpu_idle_script = [[
|
||||
bash -c "
|
||||
vmstat 1 2 | tail -1 | awk '{printf \"%d\", $15}'
|
||||
"]]
|
||||
|
||||
awful.widget.watch(cpu_idle_script, update_interval, function(widget, stdout)
|
||||
-- local cpu_idle = stdout:match('+(.*)%.%d...(.*)%(')
|
||||
local cpu_idle = stdout
|
||||
cpu_idle = string.gsub(cpu_idle, '^%s*(.-)%s*$', '%1')
|
||||
update_widget(cpu_idle)
|
||||
end)
|
||||
|
||||
return cpu_bar
|
@ -1,58 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 120 -- in seconds
|
||||
|
||||
local disk = wibox.widget{
|
||||
text = "free disk space",
|
||||
align = 'center',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
||||
-- Mouse control
|
||||
-- disk:buttons(gears.table.join(
|
||||
-- --
|
||||
-- awful.button({ }, 1, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 4, function ()
|
||||
-- end),
|
||||
-- awful.button({ }, 5, function ()
|
||||
-- end)
|
||||
-- ))
|
||||
|
||||
local function update_widget(disk_space)
|
||||
disk.markup = disk_space .. "B free"
|
||||
end
|
||||
|
||||
-- Signals
|
||||
-- disk:connect_signal("mouse::enter", function ()
|
||||
-- update_widget()
|
||||
-- end)
|
||||
|
||||
-- update_widget()
|
||||
|
||||
-- Use /dev/sdXY according to your setup
|
||||
local disk_script = [[
|
||||
bash -c "
|
||||
df -k -h /dev/sda2 | tail -1 | awk '{print $4}'
|
||||
"]]
|
||||
|
||||
awful.widget.watch(disk_script, update_interval, function(widget, stdout)
|
||||
local disk_space = stdout
|
||||
-- Remove trailing white space
|
||||
disk_space = string.gsub(disk_space, '^%s*(.-)%s*$', '%1')
|
||||
update_widget(disk_space)
|
||||
end)
|
||||
|
||||
return disk
|
@ -1,312 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
-- local naughty = require("naughty")
|
||||
|
||||
local keygrabber = require("awful.keygrabber")
|
||||
|
||||
-- Appearance
|
||||
local icon_font = "Font Awesome 5 Free 90"
|
||||
local text_font = "sans 25"
|
||||
local poweroff_text_icon = ""
|
||||
local reboot_text_icon = ""
|
||||
local suspend_text_icon = ""
|
||||
local exit_text_icon = ""
|
||||
local lock_text_icon = ""
|
||||
local icon_normal_color = beautiful.xcolor12
|
||||
local icon_hover_color = beautiful.xcolor4
|
||||
|
||||
-- Commands
|
||||
local poweroff_command = function()
|
||||
awful.spawn.with_shell("poweroff")
|
||||
awful.keygrabber.stop(exit_screen_grabber)
|
||||
end
|
||||
local reboot_command = function()
|
||||
awful.spawn.with_shell("reboot")
|
||||
awful.keygrabber.stop(exit_screen_grabber)
|
||||
end
|
||||
local suspend_command = function()
|
||||
awful.spawn.with_shell("systemctl suspend")
|
||||
-- awful.spawn.with_shell("i3lock & systemctl suspend")
|
||||
exit_screen_hide()
|
||||
end
|
||||
local exit_command = function()
|
||||
awesome.quit()
|
||||
end
|
||||
local lock_command = function()
|
||||
exit_screen_hide()
|
||||
awful.spawn.with_shell("i3lock-fancy")
|
||||
end
|
||||
|
||||
local username = os.getenv("USER")
|
||||
-- Capitalize username
|
||||
local goodbye_widget = wibox.widget.textbox("Goodbye " .. username:sub(1,1):upper()..username:sub(2))
|
||||
goodbye_widget.font = "sans 70"
|
||||
|
||||
local poweroff_icon = wibox.widget.textbox()
|
||||
poweroff_icon.font = icon_font
|
||||
poweroff_icon.markup = "<span foreground='" .. icon_normal_color .."'>" .. poweroff_text_icon .. "</span>"
|
||||
|
||||
local poweroff_text = wibox.widget.textbox("Poweroff")
|
||||
poweroff_text.font = text_font
|
||||
|
||||
local poweroff = wibox.widget{
|
||||
{
|
||||
nil,
|
||||
poweroff_icon,
|
||||
forced_height = dpi(150),
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
{
|
||||
nil,
|
||||
poweroff_text,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
-- forced_width = 100,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
poweroff:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
poweroff_command()
|
||||
end)
|
||||
))
|
||||
|
||||
local reboot_icon = wibox.widget.textbox()
|
||||
reboot_icon.font = icon_font
|
||||
reboot_icon.markup = "<span foreground='" .. icon_normal_color .."'>" .. reboot_text_icon .. "</span>"
|
||||
|
||||
local reboot_text = wibox.widget.textbox("Reboot")
|
||||
reboot_text.font = text_font
|
||||
|
||||
local reboot = wibox.widget{
|
||||
{
|
||||
nil,
|
||||
reboot_icon,
|
||||
forced_height = dpi(150),
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
{
|
||||
nil,
|
||||
reboot_text,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
-- forced_width = 100,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
reboot:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
reboot_command()
|
||||
end)
|
||||
))
|
||||
|
||||
local suspend_icon = wibox.widget.textbox()
|
||||
suspend_icon.font = icon_font
|
||||
suspend_icon.markup = "<span foreground='" .. icon_normal_color .."'>" .. suspend_text_icon .. "</span>"
|
||||
|
||||
local suspend_text = wibox.widget.textbox("Suspend")
|
||||
suspend_text.font = text_font
|
||||
|
||||
local suspend = wibox.widget{
|
||||
{
|
||||
nil,
|
||||
suspend_icon,
|
||||
forced_height = dpi(150),
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
{
|
||||
nil,
|
||||
suspend_text,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
-- forced_width = 100,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
suspend:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
suspend_command()
|
||||
end)
|
||||
))
|
||||
|
||||
|
||||
local exit_icon = wibox.widget.textbox()
|
||||
exit_icon.font = icon_font
|
||||
exit_icon.markup = "<span foreground='" .. icon_normal_color .."'>" .. exit_text_icon .. "</span>"
|
||||
|
||||
local exit_text = wibox.widget.textbox("Exit")
|
||||
exit_text.font = text_font
|
||||
|
||||
local exit = wibox.widget{
|
||||
{
|
||||
nil,
|
||||
exit_icon,
|
||||
forced_height = dpi(150),
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
{
|
||||
nil,
|
||||
exit_text,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
-- forced_width = 100,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
exit:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
exit_command()
|
||||
end)
|
||||
))
|
||||
|
||||
local lock_icon = wibox.widget.textbox()
|
||||
lock_icon.font = icon_font
|
||||
lock_icon.markup = "<span foreground='" .. icon_normal_color .."'>" .. lock_text_icon .. "</span>"
|
||||
|
||||
local lock_text = wibox.widget.textbox("Lock")
|
||||
lock_text.font = text_font
|
||||
|
||||
local lock = wibox.widget{
|
||||
{
|
||||
nil,
|
||||
lock_icon,
|
||||
forced_height = dpi(150),
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
{
|
||||
nil,
|
||||
lock_text,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
-- forced_width = 100,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
lock:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
lock_command()
|
||||
end)
|
||||
))
|
||||
|
||||
-- Get screen geometry
|
||||
local screen_width = awful.screen.focused().geometry.width
|
||||
local screen_height = awful.screen.focused().geometry.height
|
||||
|
||||
-- Create the widget
|
||||
exit_screen = wibox({x = 0, y = 0, visible = false, ontop = true, type = "dock", height = screen_height, width = screen_width})
|
||||
|
||||
exit_screen.bg = beautiful.wibar_bg or beautiful.xbackground.."CC" or "#111111"
|
||||
exit_screen.fg = beautiful.wibar_fg or beautiful.xforeground or "#FEFEFE"
|
||||
|
||||
-- Create an container box
|
||||
-- local exit_screen_box = wibox.container.background()
|
||||
-- exit_screen_box.bg = exit_screen.bg
|
||||
-- exit_screen_box.shape = gears.shape.rounded_rect
|
||||
-- exit_screen_box.shape_border_radius = 20
|
||||
|
||||
local exit_screen_grabber
|
||||
function exit_screen_hide()
|
||||
awful.keygrabber.stop(exit_screen_grabber)
|
||||
exit_screen.visible = false
|
||||
end
|
||||
function exit_screen_show()
|
||||
-- naughty.notify({text = "starting the keygrabber"})
|
||||
exit_screen_grabber = awful.keygrabber.run(function(_, key, event)
|
||||
if event == "release" then return end
|
||||
|
||||
if key == 's' then
|
||||
suspend_command()
|
||||
-- 'e' for exit
|
||||
elseif key == 'e' then
|
||||
exit_command()
|
||||
elseif key == 'l' then
|
||||
lock_command()
|
||||
elseif key == 'p' then
|
||||
poweroff_command()
|
||||
elseif key == 'r' then
|
||||
reboot_command()
|
||||
elseif key == 'Escape' or key == 'q' or key == 'x' then
|
||||
-- naughty.notify({text = "Cancel"})
|
||||
exit_screen_hide()
|
||||
-- else awful.keygrabber.stop(exit_screen_grabber)
|
||||
end
|
||||
end)
|
||||
exit_screen.visible = true
|
||||
end
|
||||
|
||||
exit_screen:buttons(gears.table.join(
|
||||
-- Middle click - Hide exit_screen
|
||||
awful.button({ }, 2, function ()
|
||||
exit_screen_hide()
|
||||
end),
|
||||
-- Right click - Hide exit_screen
|
||||
awful.button({ }, 3, function ()
|
||||
exit_screen_hide()
|
||||
end)
|
||||
))
|
||||
|
||||
-- Add clickable effect on hover
|
||||
add_clickable_effect(poweroff)
|
||||
add_clickable_effect(reboot)
|
||||
add_clickable_effect(suspend)
|
||||
add_clickable_effect(exit)
|
||||
add_clickable_effect(lock)
|
||||
-- Change color on hover
|
||||
local function add_hover_color(w)
|
||||
w:connect_signal("mouse::enter", function ()
|
||||
w.markup = "<span foreground='" .. icon_hover_color .."'>" .. w.text .. "</span>"
|
||||
end)
|
||||
|
||||
w:connect_signal("mouse::leave", function ()
|
||||
w.markup = "<span foreground='" .. icon_normal_color .."'>" .. w.text .. "</span>"
|
||||
end)
|
||||
end
|
||||
add_hover_color(poweroff_icon)
|
||||
add_hover_color(reboot_icon)
|
||||
add_hover_color(suspend_icon)
|
||||
add_hover_color(exit_icon)
|
||||
add_hover_color(lock_icon)
|
||||
|
||||
-- Item placement
|
||||
exit_screen:setup {
|
||||
nil,
|
||||
{
|
||||
{
|
||||
nil,
|
||||
goodbye_widget,
|
||||
nil,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
{
|
||||
nil,
|
||||
{
|
||||
poweroff,
|
||||
reboot,
|
||||
suspend,
|
||||
exit,
|
||||
lock,
|
||||
spacing = dpi(70),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
nil,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
-- layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
spacing = dpi(30),
|
||||
layout = wibox.layout.fixed.vertical
|
||||
},
|
||||
nil,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.vertical
|
||||
}
|
@ -1,74 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
-- Set colors
|
||||
local active_color = beautiful.ram_bar_active_color or "#5AA3CC"
|
||||
local background_color = beautiful.ram_bar_background_color or "#222222"
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 20 -- in seconds
|
||||
|
||||
local ram_bar = wibox.widget{
|
||||
max_value = 100,
|
||||
value = 50,
|
||||
forced_height = dpi(10),
|
||||
margins = {
|
||||
top = dpi(8),
|
||||
bottom = dpi(8),
|
||||
},
|
||||
forced_width = dpi(200),
|
||||
shape = gears.shape.rounded_bar,
|
||||
bar_shape = gears.shape.rounded_bar,
|
||||
color = active_color,
|
||||
background_color = background_color,
|
||||
border_width = 0,
|
||||
border_color = beautiful.border_color,
|
||||
widget = wibox.widget.progressbar,
|
||||
}
|
||||
|
||||
-- Mouse control
|
||||
-- ram_bar:buttons(gears.table.join(
|
||||
-- --
|
||||
-- awful.button({ }, 1, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 4, function ()
|
||||
-- end),
|
||||
-- awful.button({ }, 5, function ()
|
||||
-- end)
|
||||
-- ))
|
||||
|
||||
local function update_widget(used_ram_percentage)
|
||||
ram_bar.value = used_ram_percentage
|
||||
end
|
||||
|
||||
-- Signals
|
||||
-- ram_bar:connect_signal("mouse::enter", function ()
|
||||
-- update_widget()
|
||||
-- end)
|
||||
|
||||
-- update_widget()
|
||||
|
||||
local used_ram_script = [[
|
||||
bash -c "
|
||||
free -m | grep 'Mem:' | awk '{printf \"%d@@%d@\", $7, $2}'
|
||||
"]]
|
||||
|
||||
awful.widget.watch(used_ram_script, update_interval, function(widget, stdout)
|
||||
local available = stdout:match('(.*)@@')
|
||||
local total = stdout:match('@@(.*)@')
|
||||
local used_ram_percentage = (total - available) / total * 100
|
||||
update_widget(used_ram_percentage)
|
||||
end)
|
||||
|
||||
return ram_bar
|
@ -1,393 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
local icons = require("icons.icons")
|
||||
|
||||
-- TODO replace this with spacing property
|
||||
local function pad(size)
|
||||
local str = ""
|
||||
for i = 1, size do
|
||||
str = str .. " "
|
||||
end
|
||||
local pad = wibox.widget.textbox(str)
|
||||
return pad
|
||||
end
|
||||
|
||||
-- Some commonly used variables
|
||||
local icon_font = "Font Awesome 5 Free 22"
|
||||
-- TODO clarify why width and height are reversed
|
||||
local progress_bar_width = dpi(300)
|
||||
local progress_bar_height = dpi(40)
|
||||
-- local progress_bar_margins = dpi(9)
|
||||
|
||||
-- Helper function that changes the appearance of progress bars and their icons
|
||||
local function format_progress_bar(bar, icon)
|
||||
icon.font = icon_font
|
||||
icon.align = "center"
|
||||
icon.valign = "center"
|
||||
bar.forced_width = progress_bar_width
|
||||
bar.forced_height = progress_bar_height
|
||||
bar.shape = gears.shape.rounded_bar
|
||||
bar.bar_shape = gears.shape.rounded_bar
|
||||
local w = wibox.widget{
|
||||
{
|
||||
{
|
||||
bar,
|
||||
widget = wibox.container.rotate,
|
||||
direction = "east"
|
||||
},
|
||||
{
|
||||
-- Force height to avoid cutting off some icons
|
||||
forced_height = dpi(45),
|
||||
widget = icon,
|
||||
},
|
||||
spacing = dpi(15),
|
||||
layout = wibox.layout.fixed.vertical
|
||||
},
|
||||
nil,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
return w
|
||||
end
|
||||
|
||||
local archlabs_icon = wibox.widget.imagebox(icons.archlabs)
|
||||
archlabs_icon.resize = true
|
||||
archlabs_icon.forced_width = dpi(200)
|
||||
archlabs_icon.forced_height = dpi(200)
|
||||
local archlabs = wibox.widget {
|
||||
-- Center archlabs_icon horizontally
|
||||
nil,
|
||||
archlabs_icon,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
|
||||
-- Item configuration
|
||||
local exit_icon = wibox.widget.textbox()
|
||||
exit_icon.markup = "<span foreground='" .. beautiful.xcolor4 .."'></span>"
|
||||
exit_icon.font = "Font Awesome 5 Free 22"
|
||||
exit_icon.align = "center"
|
||||
exit_icon.valign = "center"
|
||||
local exit_text = wibox.widget.textbox(" Logout")
|
||||
exit_text.align = "center"
|
||||
exit_text.valign = "center"
|
||||
exit_text.font = "sans 16"
|
||||
|
||||
local exit = wibox.widget{
|
||||
exit_icon,
|
||||
exit_text,
|
||||
-- Force height to avoid cutting off the icon
|
||||
forced_height = dpi(35),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
}
|
||||
exit:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
exit_screen_show()
|
||||
sidebar.visible = false
|
||||
end)
|
||||
))
|
||||
|
||||
add_clickable_effect(exit)
|
||||
|
||||
-- local weather_widget = require("archlabs-extras.weather")
|
||||
-- local weather_widget_icon = weather_widget:get_all_children()[1]
|
||||
-- weather_widget_icon.forced_width = icon_size
|
||||
-- weather_widget_icon.forced_height = icon_size
|
||||
-- local weather_widget_text = weather_widget:get_all_children()[2]
|
||||
-- weather_widget_text.font = "sans 14"
|
||||
|
||||
-- Dummy weather_widget for testing
|
||||
-- (avoid making requests with every awesome restart)
|
||||
-- local weather_widget = wibox.widget.textbox("[i] bla bla bla!")
|
||||
|
||||
-- local weather = wibox.widget{
|
||||
-- nil,
|
||||
-- weather_widget,
|
||||
-- nil,
|
||||
-- layout = wibox.layout.align.horizontal,
|
||||
-- expand = "none"
|
||||
-- }
|
||||
|
||||
local temperature_icon = wibox.widget.textbox("")
|
||||
local temperature_bar = require("archlabs-extras.temperature_bar")
|
||||
local temperature = format_progress_bar(temperature_bar, temperature_icon)
|
||||
|
||||
local battery_icon = wibox.widget.textbox("")
|
||||
awesome.connect_signal(
|
||||
"charger_plugged", function(c)
|
||||
battery_icon.image = beautiful.battery_charging_icon
|
||||
end)
|
||||
awesome.connect_signal(
|
||||
"charger_unplugged", function(c)
|
||||
battery_icon.image = beautiful.battery_icon
|
||||
end)
|
||||
local battery_bar = require("archlabs-extras.battery_bar")
|
||||
local battery = format_progress_bar(battery_bar, battery_icon)
|
||||
battery:buttons(
|
||||
gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, {class = 'Xfce4-power-manager-settings'})
|
||||
end
|
||||
awful.client.run_or_raise("xfce4-power-manager-settings", matcher)
|
||||
end)
|
||||
))
|
||||
add_clickable_effect(battery)
|
||||
|
||||
local cpu_icon = wibox.widget.textbox("")
|
||||
local cpu_bar = require("archlabs-extras.cpu_bar")
|
||||
local cpu = format_progress_bar(cpu_bar, cpu_icon)
|
||||
|
||||
cpu:buttons(
|
||||
gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, {name = 'htop'})
|
||||
end
|
||||
awful.client.run_or_raise(terminal .." -e htop", matcher)
|
||||
end),
|
||||
awful.button({ }, 3, function ()
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, {class = 'Lxtask'})
|
||||
end
|
||||
awful.client.run_or_raise("lxtask", matcher)
|
||||
end)
|
||||
))
|
||||
|
||||
local ram_icon = wibox.widget.textbox("")
|
||||
local ram_bar = require("archlabs-extras.ram_bar")
|
||||
local ram = format_progress_bar(ram_bar, ram_icon)
|
||||
|
||||
ram:buttons(
|
||||
gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, {name = 'htop'})
|
||||
end
|
||||
awful.client.run_or_raise(terminal .." -e htop", matcher)
|
||||
end),
|
||||
awful.button({ }, 3, function ()
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, {class = 'Lxtask'})
|
||||
end
|
||||
awful.client.run_or_raise("lxtask", matcher)
|
||||
end)
|
||||
))
|
||||
|
||||
|
||||
-- Time
|
||||
local hours = wibox.widget.textclock("%H")
|
||||
hours.font = "sans bold 55"
|
||||
hours.align = "center"
|
||||
hours.valign = "center"
|
||||
local minutes = wibox.widget.textclock(" %M")
|
||||
minutes.font = "sans 55"
|
||||
minutes.align = "center"
|
||||
minutes.valign = "center"
|
||||
minutes.markup = "<span foreground='" .. beautiful.xcolor4 .."'>" .. minutes.text .. "</span>"
|
||||
minutes:connect_signal("widget::redraw_needed", function ()
|
||||
minutes.markup = "<span foreground='" .. beautiful.xcolor4 .."'>" .. minutes.text .. "</span>"
|
||||
end)
|
||||
local time = wibox.widget {
|
||||
nil,
|
||||
{
|
||||
hours,
|
||||
minutes,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
|
||||
-- Date
|
||||
local day_of_the_week = wibox.widget.textclock("%A")
|
||||
day_of_the_week.font = "sans italic 20"
|
||||
day_of_the_week.align = "center"
|
||||
day_of_the_week.valign = "center"
|
||||
day_of_the_week.markup = "<span foreground='" .. beautiful.xcolor4 .."'>" .. day_of_the_week.text .. "</span>"
|
||||
day_of_the_week:connect_signal("widget::redraw_needed", function ()
|
||||
day_of_the_week.markup = "<span foreground='" .. beautiful.xcolor4 .."'>" .. day_of_the_week.text .. "</span>"
|
||||
end)
|
||||
local day_of_the_month = wibox.widget.textclock(" %b %d")
|
||||
day_of_the_month.font = "sans 20"
|
||||
day_of_the_month.align = "center"
|
||||
day_of_the_month.valign = "center"
|
||||
|
||||
local date = wibox.widget {
|
||||
nil,
|
||||
{
|
||||
day_of_the_week,
|
||||
day_of_the_month,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
|
||||
local disk_space = require("archlabs-extras.disk")
|
||||
disk_space.font = "sans 14"
|
||||
local disk_icon = wibox.widget.imagebox(icons.archlabs)
|
||||
disk_icon.resize = true
|
||||
disk_icon.forced_width = icon_size
|
||||
disk_icon.forced_height = icon_size
|
||||
local disk = wibox.widget{
|
||||
nil,
|
||||
{
|
||||
disk_icon,
|
||||
disk_space,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
nil,
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
|
||||
disk:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
awful.spawn(file_manager, {floating = true})
|
||||
end)
|
||||
))
|
||||
|
||||
local volume_icon = wibox.widget.textbox("")
|
||||
local volume_bar = require("archlabs-extras.volume_bar")
|
||||
volume = format_progress_bar(volume_bar, volume_icon)
|
||||
|
||||
volume:buttons(gears.table.join(
|
||||
-- Left click - Mute / Unmute
|
||||
awful.button({ }, 1, function ()
|
||||
awful.spawn.with_shell("pamixer -t")
|
||||
end),
|
||||
-- Right click - Run or raise pavucontrol
|
||||
awful.button({ }, 3, function ()
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, {class = 'Pavucontrol'})
|
||||
end
|
||||
awful.client.run_or_raise("pavucontrol", matcher)
|
||||
end),
|
||||
-- Scroll - Increase / Decrease volume
|
||||
awful.button({ }, 4, function ()
|
||||
awful.spawn.with_shell("pamixer -i 2")
|
||||
end),
|
||||
awful.button({ }, 5, function ()
|
||||
awful.spawn.with_shell("pamixer -d 2")
|
||||
end)
|
||||
))
|
||||
add_clickable_effect(volume)
|
||||
-- }}}
|
||||
|
||||
-- Create the sidebar
|
||||
sidebar = wibox({x = 0, y = 0, visible = false, ontop = true, type = "dock"})
|
||||
sidebar.bg = beautiful.sidebar_bg or beautiful.wibar_bg or "#111111"
|
||||
sidebar.fg = beautiful.sidebar_fg or beautiful.wibar_fg or "#FFFFFF"
|
||||
sidebar.opacity = beautiful.sidebar_opacity or 1
|
||||
sidebar.height = beautiful.sidebar_height or awful.screen.focused().geometry.height
|
||||
sidebar.width = beautiful.sidebar_width or dpi(300)
|
||||
sidebar.y = beautiful.sidebar_y or 0
|
||||
if beautiful.sidebar_position == "right" then
|
||||
sidebar.x = awful.screen.focused().geometry.width - sidebar.width
|
||||
else
|
||||
sidebar.x = beautiful.sidebar_x or 0
|
||||
end
|
||||
|
||||
sidebar:buttons(gears.table.join(
|
||||
-- Middle click - Hide sidebar
|
||||
awful.button({ }, 2, function ()
|
||||
sidebar.visible = false
|
||||
end)
|
||||
-- Right click - Hide sidebar
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- sidebar.visible = false
|
||||
-- -- mymainmenu:show()
|
||||
-- end)
|
||||
))
|
||||
|
||||
-- Hide sidebar when mouse leaves
|
||||
if beautiful.sidebar_hide_on_mouse_leave then
|
||||
sidebar:connect_signal("mouse::leave", function ()
|
||||
sidebar.visible = false
|
||||
end)
|
||||
end
|
||||
-- Activate sidebar by moving the mouse at the edge of the screen
|
||||
if beautiful.sidebar_hide_on_mouse_leave then
|
||||
local sidebar_activator = wibox({y = sidebar.y, width = 1, visible = true, ontop = false, opacity = 0, below = true})
|
||||
sidebar_activator.height = sidebar.height
|
||||
-- sidebar_activator.height = sidebar.height - beautiful.wibar_height
|
||||
sidebar_activator:connect_signal("mouse::enter", function ()
|
||||
sidebar.visible = true
|
||||
end)
|
||||
|
||||
if beautiful.sidebar_position == "right" then
|
||||
sidebar_activator.x = awful.screen.focused().geometry.width - sidebar_activator.width
|
||||
else
|
||||
sidebar_activator.x = 0
|
||||
end
|
||||
|
||||
sidebar_activator:buttons(
|
||||
gears.table.join(
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- start_screen_show()
|
||||
-- -- sidebar.visible = not sidebar.visible
|
||||
-- end),
|
||||
awful.button({ }, 4, function ()
|
||||
awful.tag.viewprev()
|
||||
end),
|
||||
awful.button({ }, 5, function ()
|
||||
awful.tag.viewnext()
|
||||
end)
|
||||
))
|
||||
end
|
||||
|
||||
-- Item placement
|
||||
sidebar:setup {
|
||||
{ ----------- TOP GROUP -----------
|
||||
pad(1),
|
||||
pad(1),
|
||||
archlabs,
|
||||
pad(1),
|
||||
time,
|
||||
date,
|
||||
-- pad(1),
|
||||
-- weather,
|
||||
pad(1),
|
||||
pad(1),
|
||||
layout = wibox.layout.fixed.vertical
|
||||
},
|
||||
{ ----------- MIDDLE GROUP -----------
|
||||
pad(1),
|
||||
pad(1),
|
||||
{ -- Center bars horizontally
|
||||
nil,
|
||||
{
|
||||
volume,
|
||||
cpu,
|
||||
temperature,
|
||||
ram,
|
||||
battery,
|
||||
spacing = dpi(10),
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
expand = "none",
|
||||
layout = wibox.layout.align.horizontal,
|
||||
},
|
||||
-- disk,
|
||||
layout = wibox.layout.fixed.vertical
|
||||
},
|
||||
{ ----------- BOTTOM GROUP -----------
|
||||
{ -- Logout button
|
||||
nil,
|
||||
exit,
|
||||
layout = wibox.layout.align.horizontal,
|
||||
expand = "none"
|
||||
},
|
||||
pad(1),
|
||||
pad(1),
|
||||
layout = wibox.layout.fixed.vertical
|
||||
},
|
||||
layout = wibox.layout.align.vertical,
|
||||
-- expand = "none"
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 15 -- in seconds
|
||||
|
||||
local temperature = wibox.widget{
|
||||
text = "?? °C",
|
||||
align = 'center',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
||||
-- Mouse control
|
||||
-- temperature:buttons(gears.table.join(
|
||||
-- --
|
||||
-- awful.button({ }, 1, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 4, function ()
|
||||
-- end),
|
||||
-- awful.button({ }, 5, function ()
|
||||
-- end)
|
||||
-- ))
|
||||
|
||||
local function update_widget(temp)
|
||||
temperature.markup = temp
|
||||
-- temperature.markup = temp .. "°C"
|
||||
end
|
||||
|
||||
-- Signals
|
||||
-- temperature:connect_signal("mouse::enter", function ()
|
||||
-- update_widget()
|
||||
-- end)
|
||||
|
||||
-- update_widget()
|
||||
|
||||
local temp_script = [[
|
||||
bash -c "
|
||||
sensors | grep Package | awk '{print $4}' | cut -c 2-3,6-8
|
||||
"]]
|
||||
|
||||
awful.widget.watch(temp_script, update_interval, function(widget, stdout)
|
||||
-- local temp = stdout:match('+(.*)%.%d...(.*)%(')
|
||||
local temp = stdout
|
||||
temp = string.gsub(temp, '^%s*(.-)%s*$', '%1')
|
||||
update_widget(temp)
|
||||
end)
|
||||
|
||||
return temperature
|
@ -1,72 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
-- Set colors
|
||||
local active_color = beautiful.temperature_bar_active_color or "#5AA3CC"
|
||||
local background_color = beautiful.temperature_bar_background_color or "#222222"
|
||||
|
||||
-- Configuration
|
||||
local update_interval = 15 -- in seconds
|
||||
|
||||
local temperature_bar = wibox.widget{
|
||||
max_value = 100,
|
||||
value = 50,
|
||||
forced_height = dpi(10),
|
||||
margins = {
|
||||
top = dpi(8),
|
||||
bottom = dpi(8),
|
||||
},
|
||||
forced_width = dpi(200),
|
||||
shape = gears.shape.rounded_bar,
|
||||
bar_shape = gears.shape.rounded_bar,
|
||||
color = active_color,
|
||||
background_color = background_color,
|
||||
border_width = 0,
|
||||
border_color = beautiful.border_color,
|
||||
widget = wibox.widget.progressbar,
|
||||
}
|
||||
|
||||
-- Mouse control
|
||||
-- temperature_bar:buttons(gears.table.join(
|
||||
-- --
|
||||
-- awful.button({ }, 1, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 2, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 3, function ()
|
||||
-- end),
|
||||
-- --
|
||||
-- awful.button({ }, 4, function ()
|
||||
-- end),
|
||||
-- awful.button({ }, 5, function ()
|
||||
-- end)
|
||||
-- ))
|
||||
|
||||
local function update_widget(temp)
|
||||
temperature_bar.value = tonumber(temp)
|
||||
end
|
||||
|
||||
-- Signals
|
||||
-- temperature_bar:connect_signal("mouse::enter", function ()
|
||||
-- update_widget()
|
||||
-- end)
|
||||
|
||||
-- update_widget()
|
||||
|
||||
local temp_script = [[
|
||||
bash -c "
|
||||
sensors | grep Package | awk '{print $4}' | cut -c 2-3
|
||||
"]]
|
||||
|
||||
awful.widget.watch(temp_script, update_interval, function(widget, stdout)
|
||||
local temp = stdout
|
||||
update_widget(temp)
|
||||
end)
|
||||
|
||||
return temperature_bar
|
@ -1,72 +0,0 @@
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
-- Set colors
|
||||
local active_color = beautiful.volume_bar_active_color or "#5AA3CC"
|
||||
local muted_color = beautiful.volume_bar_muted_color or "#666666"
|
||||
local active_background_color = beautiful.volume_bar_active_background_color or "#222222"
|
||||
local muted_background_color = beautiful.volume_bar_muted_background_color or "#222222"
|
||||
|
||||
local volume_bar = wibox.widget{
|
||||
max_value = 100,
|
||||
value = 50,
|
||||
forced_height = dpi(10),
|
||||
margins = {
|
||||
top = dpi(8),
|
||||
bottom = dpi(8),
|
||||
},
|
||||
forced_width = dpi(200),
|
||||
shape = gears.shape.rounded_bar,
|
||||
bar_shape = gears.shape.rounded_bar,
|
||||
color = active_color,
|
||||
background_color = active_background_color,
|
||||
border_width = 0,
|
||||
border_color = beautiful.border_color,
|
||||
widget = wibox.widget.progressbar,
|
||||
}
|
||||
|
||||
local function update_widget()
|
||||
awful.spawn.easy_async({"sh", "-c", "pactl list sinks"},
|
||||
function(stdout)
|
||||
local volume = stdout:match('(%d+)%% /')
|
||||
local muted = stdout:match('Mute:(%s+)[yes]')
|
||||
local fill_color
|
||||
local bg_color
|
||||
if muted ~= nil then
|
||||
fill_color = muted_color
|
||||
bg_color = muted_background_color
|
||||
else
|
||||
fill_color = active_color
|
||||
bg_color = active_background_color
|
||||
end
|
||||
volume_bar.value = tonumber(volume)
|
||||
volume_bar.color = fill_color
|
||||
volume_bar.background_color = bg_color
|
||||
end
|
||||
)
|
||||
end
|
||||
|
||||
update_widget()
|
||||
|
||||
-- Sleeps until pactl detects an event (volume up/down/toggle mute)
|
||||
local volume_script = [[
|
||||
bash -c '
|
||||
pactl subscribe 2> /dev/null | grep --line-buffered "sink #0"
|
||||
']]
|
||||
|
||||
|
||||
-- Kill old pactl subscribe process
|
||||
awful.spawn.easy_async_with_shell("ps x | grep \"pactl subscribe\" | grep -v grep | awk '{print $1}' | xargs kill", function ()
|
||||
-- Update volume with each line printed
|
||||
awful.spawn.with_line_callback(volume_script, {
|
||||
stdout = function(line)
|
||||
update_widget()
|
||||
end
|
||||
})
|
||||
end)
|
||||
|
||||
return volume_bar
|
Before Width: | Height: | Size: 28 KiB |
@ -1,67 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="isolation:isolate" width="256" height="256">
|
||||
<g filter="url(#a)">
|
||||
<linearGradient id="b" x1=".233" x2=".933" y1="-.071" y2=".924" gradientTransform="matrix(244.648 0 0 228.338 5.676 11.947)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" stop-color="#e8e8e8"/>
|
||||
<stop offset="100%" stop-color="#f5f5f5"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#b)" d="M165.685 11.947c74.055 0 84.639 10.557 84.639 84.544v59.251c0 73.986-10.584 84.543-84.639 84.543h-75.37c-74.055 0-84.639-10.557-84.639-84.543V96.491c0-73.987 10.584-84.544 84.639-84.544h75.37z"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="a" width="400%" height="400%" x="-200%" y="-200%" color-interpolation-filters="sRGB" filterUnits="objectBoundingBox">
|
||||
<feGaussianBlur xmlns="http://www.w3.org/2000/svg" in="SourceGraphic" stdDeviation="4.294"/>
|
||||
<feOffset xmlns="http://www.w3.org/2000/svg" dy="4" result="pf_100_offsetBlur"/>
|
||||
<feFlood xmlns="http://www.w3.org/2000/svg" flood-opacity=".4"/>
|
||||
<feComposite xmlns="http://www.w3.org/2000/svg" in2="pf_100_offsetBlur" operator="in" result="pf_100_dropShadow"/>
|
||||
<feBlend xmlns="http://www.w3.org/2000/svg" in="SourceGraphic" in2="pf_100_dropShadow"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<path fill="#FFF" opacity=".3" d="M5.676 85.032v70.4c0 73.986 10.584 84.544 84.639 84.544h75.37c74.055 0 84.639-10.558 84.639-84.544v-70.4H5.676z"/>
|
||||
<circle fill="#DF382C" cx="217.704" cy="40.179" r="8.155" vector-effect="non-scaling-stroke"/>
|
||||
<defs>
|
||||
<filter id="c" width="400%" height="400%" x="-200%" y="-200%" color-interpolation-filters="sRGB" filterUnits="objectBoundingBox">
|
||||
<feGaussianBlur xmlns="http://www.w3.org/2000/svg" stdDeviation=".324"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<path fill-opacity=".996" opacity=".1" d="M128 216.53c49.509 0 89.704-40.195 89.704-89.704 0-49.509-40.195-89.704-89.704-89.704-49.509 0-89.704 40.195-89.704 89.704 0 49.509 40.195 89.704 89.704 89.704z" filter="url(#c)"/>
|
||||
<g opacity=".4" filter="url(#d)">
|
||||
<linearGradient id="e" x2="1" y1=".5" y2=".5" gradientTransform="matrix(0 -179.408 -179.408 0 217.704 216.53)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%"/>
|
||||
<stop offset="73.295%"/>
|
||||
<stop offset="100%"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#e)" d="M128 216.53c49.509 0 89.704-40.195 89.704-89.704 0-49.509-40.195-89.704-89.704-89.704-49.509 0-89.704 40.195-89.704 89.704 0 49.509 40.195 89.704 89.704 89.704z"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="d" width="400%" height="400%" x="-200%" y="-200%" color-interpolation-filters="sRGB" filterUnits="objectBoundingBox">
|
||||
<feGaussianBlur xmlns="http://www.w3.org/2000/svg" stdDeviation="14.08"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<path fill="#F2F2F2" d="M128 215.51c49.509 0 89.704-40.195 89.704-89.704 0-49.509-40.195-89.704-89.704-89.704-49.509 0-89.704 40.195-89.704 89.704 0 49.509 40.195 89.704 89.704 89.704z"/>
|
||||
<path fill="#FFF" d="M128 208.375c45.008 0 81.549-36.54 81.549-81.549 0-45.008-36.54-81.549-81.549-81.549-45.008 0-81.549 36.54-81.549 81.549 0 45.008 36.54 81.549 81.549 81.549z"/>
|
||||
<path fill="#46444A" d="M128 207.355c45.008 0 81.549-36.54 81.549-81.549 0-45.008-36.54-81.549-81.549-81.549-45.008 0-81.549 36.54-81.549 81.549 0 45.008 36.54 81.549 81.549 81.549z"/>
|
||||
<g opacity=".1">
|
||||
<radialGradient id="f" cx="-.5" cy=".5" r="96" fx="-.5" fy=".5" gradientTransform="matrix(0 163.1 -163.098 0 46.451 44.256)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%"/>
|
||||
<stop offset="100%"/>
|
||||
<stop offset="100%"/>
|
||||
<stop offset="100%"/>
|
||||
</radialGradient>
|
||||
<path fill="url(#f)" d="M127.999 44.256c-45.038.001-81.549 36.512-81.548 81.55-.001 45.039 36.51 81.55 81.548 81.55a81.544 81.544 0 0 0 81.55-81.55 81.546 81.546 0 0 0-81.55-81.55zm0 29.177c28.925 0 52.373 23.448 52.373 52.373 0 28.925-23.448 52.374-52.373 52.374-28.925 0-52.373-23.449-52.373-52.374s23.448-52.373 52.373-52.373z"/>
|
||||
</g>
|
||||
<path fill="#A7A7F1" d="M128 191.046c36.007 0 65.24-29.233 65.24-65.24 0-36.007-29.233-65.24-65.24-65.24-36.007 0-65.24 29.233-65.24 65.24 0 36.007 29.233 65.24 65.24 65.24z"/>
|
||||
<path fill="#8F76E4" d="M128 186.968c33.756 0 61.162-27.406 61.162-61.162S161.756 64.644 128 64.644 66.838 92.05 66.838 125.806 94.244 186.968 128 186.968z"/>
|
||||
<path fill="#8C59D9" d="M128 166.581c22.504 0 40.775-18.27 40.775-40.775 0-22.504-18.27-40.775-40.775-40.775-22.504 0-40.775 18.27-40.775 40.775 0 22.504 18.27 40.775 40.775 40.775z"/>
|
||||
<path fill="#7839B7" d="M130.94 146.01c11.143-1.565 18.918-11.882 17.352-23.025-1.566-11.142-11.883-18.917-23.025-17.351-11.143 1.565-18.918 11.883-17.352 23.025 1.566 11.143 11.883 18.918 23.025 17.352z"/>
|
||||
<path fill="#FFF" opacity=".3" d="M130.13 118.525a6.119 6.119 0 0 1 5.206-6.908 6.119 6.119 0 0 1 6.908 5.205 6.119 6.119 0 0 1-5.206 6.908 6.119 6.119 0 0 1-6.907-5.205zM118.144 134.663a2.04 2.04 0 0 1 4.038-.57 2.04 2.04 0 0 1-4.038.57z"/>
|
||||
<circle fill="#FFF" opacity=".2" cx="154.504" cy="99.303" r="24.465" vector-effect="non-scaling-stroke"/>
|
||||
<path fill="#FFF" opacity=".4" d="M128 36.102c-49.542 0-89.703 40.162-89.704 89.704.012.282.026.565.041.846C38.99 77.593 78.936 38.159 128 38.141c49.198.02 89.199 39.663 89.663 88.858.016-.398.03-.795.041-1.193-.001-49.542-40.162-89.703-89.704-89.704z"/>
|
||||
<g opacity=".4">
|
||||
<linearGradient id="g" x1=".517" x2=".517" y2="1" gradientTransform="matrix(244.65 0 0 228.34 5.68 11.95)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" stop-color="#fff"/>
|
||||
<stop offset="12.5%" stop-color="#fff" stop-opacity=".098"/>
|
||||
<stop offset="92.5%" stop-opacity=".098"/>
|
||||
<stop offset="100%" stop-opacity=".498"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#g)" fill-rule="evenodd" d="M165.068 11.951c4.328-.01 8.656.04 12.984.138 3.875.078 7.75.226 11.626.452 3.453.196 6.905.481 10.348.854 3.06.335 6.118.786 9.148 1.346a80.47 80.47 0 0 1 8.046 1.916 53.64 53.64 0 0 1 7.023 2.584 40.413 40.413 0 0 1 6.06 3.35 35.176 35.176 0 0 1 5.134 4.215 35.072 35.072 0 0 1 4.22 5.119 41.692 41.692 0 0 1 3.363 6.042 55.982 55.982 0 0 1 2.597 7.005 80.224 80.224 0 0 1 1.918 8.037 124.43 124.43 0 0 1 1.348 9.127c.374 3.439.659 6.878.856 10.326.226 3.861.373 7.732.462 11.593.088 4.323.138 8.646.128 12.96v58.21c.01 4.324-.04 8.637-.128 12.96a325.177 325.177 0 0 1-.462 11.593 200.984 200.984 0 0 1-.856 10.326 124.691 124.691 0 0 1-1.348 9.137 80.687 80.687 0 0 1-1.918 8.027 55.414 55.414 0 0 1-2.597 7.005 41.18 41.18 0 0 1-3.364 6.042 34.559 34.559 0 0 1-4.22 5.119 35.177 35.177 0 0 1-5.134 4.215 40.412 40.412 0 0 1-6.059 3.35 55.138 55.138 0 0 1-7.023 2.594 77.806 77.806 0 0 1-8.046 1.906 120 120 0 0 1-9.148 1.346c-3.443.373-6.895.658-10.348.854-3.875.226-7.75.374-11.626.462-4.328.088-8.656.138-12.984.128H90.942c-4.328.01-8.656-.04-12.984-.128a328.387 328.387 0 0 1-11.626-.462 203.003 203.003 0 0 1-10.348-.854 120 120 0 0 1-9.148-1.346 77.806 77.806 0 0 1-8.046-1.906 55.139 55.139 0 0 1-7.023-2.594 40.413 40.413 0 0 1-6.06-3.35 35.176 35.176 0 0 1-5.134-4.215 34.56 34.56 0 0 1-4.22-5.119 41.183 41.183 0 0 1-3.363-6.042 55.415 55.415 0 0 1-2.597-7.005 80.682 80.682 0 0 1-1.918-8.027 124.688 124.688 0 0 1-1.348-9.137 200.993 200.993 0 0 1-.856-10.326 325.212 325.212 0 0 1-.462-11.593 569.197 569.197 0 0 1-.128-12.96v-58.21c-.01-4.314.04-8.637.128-12.96.089-3.86.236-7.732.462-11.593.197-3.448.482-6.887.856-10.326.335-3.055.787-6.101 1.348-9.127a80.219 80.219 0 0 1 1.918-8.037 55.983 55.983 0 0 1 2.597-7.005 41.695 41.695 0 0 1 3.364-6.042 35.072 35.072 0 0 1 4.22-5.119 35.176 35.176 0 0 1 5.134-4.215 40.413 40.413 0 0 1 6.059-3.35 53.64 53.64 0 0 1 7.023-2.584 80.47 80.47 0 0 1 8.046-1.916 125.11 125.11 0 0 1 9.148-1.346c3.443-.373 6.895-.658 10.348-.854 3.875-.226 7.75-.374 11.626-.452 4.328-.098 8.656-.148 12.984-.138h74.126zm.01 4.009c4.298-.01 8.597.039 12.895.127 3.827.089 7.653.236 11.48.452 3.383.197 6.766.472 10.13.845 2.971.315 5.932.747 8.863 1.297a75.943 75.943 0 0 1 7.653 1.818 50.493 50.493 0 0 1 6.501 2.397 37.038 37.038 0 0 1 5.47 3.026 30.383 30.383 0 0 1 4.524 3.724 31.05 31.05 0 0 1 3.738 4.519 37.271 37.271 0 0 1 3.03 5.443 51.46 51.46 0 0 1 2.4 6.494 75.563 75.563 0 0 1 1.829 7.634c.54 2.928.974 5.875 1.298 8.842.374 3.36.65 6.73.846 10.11.217 3.822.374 7.634.453 11.456.088 4.293.137 8.577.137 12.87v58.212c0 4.293-.049 8.577-.137 12.87a317.503 317.503 0 0 1-.453 11.456c-.196 3.38-.472 6.75-.846 10.12a121.689 121.689 0 0 1-1.298 8.832 75.562 75.562 0 0 1-1.83 7.634 50.902 50.902 0 0 1-2.4 6.494 36.767 36.767 0 0 1-3.03 5.443 30.615 30.615 0 0 1-3.737 4.53 30.938 30.938 0 0 1-4.525 3.713 37.038 37.038 0 0 1-5.469 3.026 49.07 49.07 0 0 1-6.501 2.397 75.942 75.942 0 0 1-7.653 1.818c-2.931.55-5.892.982-8.863 1.306-3.364.364-6.747.649-10.13.836-3.827.216-7.653.373-11.48.452-4.298.098-8.597.137-12.895.137H90.932c-4.298 0-8.597-.04-12.895-.137a320.093 320.093 0 0 1-11.48-.452 193.696 193.696 0 0 1-10.13-.836 116.71 116.71 0 0 1-8.863-1.306 75.942 75.942 0 0 1-7.653-1.818 49.07 49.07 0 0 1-6.501-2.397 37.038 37.038 0 0 1-5.47-3.026 30.938 30.938 0 0 1-4.524-3.714 30.615 30.615 0 0 1-3.738-4.529 36.766 36.766 0 0 1-3.03-5.443 50.903 50.903 0 0 1-2.4-6.494 75.567 75.567 0 0 1-1.829-7.634 121.69 121.69 0 0 1-1.298-8.832c-.374-3.37-.65-6.74-.846-10.12a317.535 317.535 0 0 1-.453-11.456 623.851 623.851 0 0 1-.137-12.87V97.014c0-4.293.049-8.577.137-12.87.079-3.822.236-7.634.453-11.456.197-3.38.472-6.75.846-10.11.324-2.967.757-5.914 1.298-8.842a75.568 75.568 0 0 1 1.83-7.634 51.46 51.46 0 0 1 2.4-6.494 37.27 37.27 0 0 1 3.03-5.443 31.05 31.05 0 0 1 3.737-4.52 30.384 30.384 0 0 1 4.525-3.723 37.039 37.039 0 0 1 5.469-3.026 50.494 50.494 0 0 1 6.501-2.397 75.943 75.943 0 0 1 7.653-1.818c2.931-.55 5.892-.982 8.863-1.297 3.364-.373 6.747-.648 10.13-.845a344.71 344.71 0 0 1 11.48-.452c4.298-.088 8.597-.137 12.895-.127H165.078z"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 9.5 KiB |
@ -1,12 +0,0 @@
|
||||
local gears = require("gears")
|
||||
-- Variables that hold paths to various icons
|
||||
local icons = {}
|
||||
-- Set icon path prefix
|
||||
local i = gears.filesystem.get_configuration_dir() .. "icons/"
|
||||
|
||||
icons.archlabs = i .. "archlabs.png"
|
||||
icons.web_browser = i .. "web_browser.svg"
|
||||
icons.camera = i .. "camera.svg"
|
||||
|
||||
return icons
|
||||
--
|
Before Width: | Height: | Size: 20 KiB |
@ -1,2 +0,0 @@
|
||||
require("gears.debug").deprecate("Use beautiful.theme_assets instead.", {raw=true})
|
||||
return require("beautiful.theme_assets")
|
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 969 B |
Before Width: | Height: | Size: 974 B |
@ -1,275 +0,0 @@
|
||||
--[[
|
||||
▄▄▄· ▄▄▄ ▄▄· ▄ .▄▄▄▌ ▄▄▄· ▄▄▄▄· .▄▄ ·
|
||||
▐█ ▀█ ▀▄ █·▐█ ▌▪██▪▐███• ▐█ ▀█ ▐█ ▀█▪▐█ ▀.
|
||||
▄█▀▀█ ▐▀▀▄ ██ ▄▄██▀▐███▪ ▄█▀▀█ ▐█▀▀█▄▄▀▀▀█▄
|
||||
▐█ ▪▐▌▐█•█▌▐███▌██▌▐▀▐█▌▐▌▐█ ▪▐▌██▄▪▐█▐█▄▪▐█
|
||||
▀ ▀ .▀ ▀·▀▀▀ ▀▀▀ ·.▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀▀
|
||||
--]]
|
||||
|
||||
local theme_assets = require("beautiful.theme_assets")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
local xrdb = xresources.get_current_theme()
|
||||
local gears = require("gears")
|
||||
local gfs = require("gears.filesystem")
|
||||
local themes_path = gfs.get_themes_dir()
|
||||
|
||||
-- Inherit default theme
|
||||
local theme = dofile(themes_path.."default/theme.lua")
|
||||
-- Titlebar icon path
|
||||
local tip = "~/.config/awesome/themes/archlabs/titlebar/"
|
||||
|
||||
theme.wallpaper = gears.filesystem.get_configuration_dir() .. "wallpapers/minimal_space.png"
|
||||
|
||||
-- Load ~/.Xresources colors and set fallback colors
|
||||
theme.xbackground = xrdb.background or "#1c2023"
|
||||
theme.xforeground = xrdb.foreground or "#E1E1E1"
|
||||
theme.xcolor0 = xrdb.color0 or "#1c2023"
|
||||
theme.xcolor1 = xrdb.color1 or "#bf616a"
|
||||
theme.xcolor2 = xrdb.color2 or "#a3be8c"
|
||||
theme.xcolor3 = xrdb.color3 or "#ebcb8b"
|
||||
theme.xcolor4 = xrdb.color4 or "#8fa1b3"
|
||||
theme.xcolor5 = xrdb.color5 or "#b48ead"
|
||||
theme.xcolor6 = xrdb.color6 or "#96b5b4"
|
||||
theme.xcolor7 = xrdb.color7 or "#E1E1E1"
|
||||
theme.xcolor8 = xrdb.color8 or "#919ba0"
|
||||
theme.xcolor9 = xrdb.color9 or "#bf616a"
|
||||
theme.xcolor10 = xrdb.color10 or "#a3be8c"
|
||||
theme.xcolor11 = xrdb.color11 or "#ebcb8b"
|
||||
theme.xcolor12 = xrdb.color12 or "#8fa1b3"
|
||||
theme.xcolor13 = xrdb.color13 or "#b48ead"
|
||||
theme.xcolor14 = xrdb.color14 or "#96b5b4"
|
||||
theme.xcolor15 = xrdb.color15 or "#c0c5ce"
|
||||
|
||||
-- RBGA
|
||||
local transparent = "#00000000"
|
||||
|
||||
theme.font = "sans 10"
|
||||
|
||||
theme.bg_normal = theme.xcolor8
|
||||
theme.bg_focus = theme.xcolor8
|
||||
theme.bg_urgent = theme.xcolor9
|
||||
theme.bg_minimize = theme.xbackground
|
||||
theme.bg_systray = theme.xbackground
|
||||
|
||||
theme.fg_normal = theme.xforeground
|
||||
theme.fg_focus = theme.xcolor4
|
||||
theme.fg_urgent = theme.xbackground
|
||||
theme.fg_minimize = theme.xcolor8
|
||||
|
||||
theme.useless_gap = dpi(4)
|
||||
theme.border_width = dpi(0)
|
||||
theme.border_radius = dpi(6)
|
||||
theme.border_normal = theme.xcolor0
|
||||
theme.border_focus = theme.bg_focus
|
||||
theme.border_marked = theme.xcolor10
|
||||
|
||||
-- Other variable sets
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
|
||||
-- Taglist
|
||||
theme.taglist_font = "sans bold 10"
|
||||
theme.taglist_bg = theme.xcolor0
|
||||
theme.taglist_shape = gears.shape.circle
|
||||
theme.taglist_bg_focus = theme.xcolor4
|
||||
theme.taglist_fg_focus = theme.xforeground
|
||||
theme.taglist_bg_urgent = theme.xcolor1
|
||||
theme.taglist_fg_urgent = theme.xforeground
|
||||
theme.taglist_bg_occupied = transparent
|
||||
theme.taglist_fg_occupied = theme.xcolor4
|
||||
theme.taglist_bg_empty = transparent
|
||||
theme.taglist_fg_empty = theme.xforeground
|
||||
theme.taglist_bg_volatile = transparent
|
||||
theme.taglist_fg_volatile = theme.xcolor11
|
||||
|
||||
-- Tasklist
|
||||
theme.tasklist_font = "sans bold 10"
|
||||
theme.tasklist_bg_focus = theme.xbackground
|
||||
theme.tasklist_fg_focus = theme.xcolor4
|
||||
theme.tasklist_bg_urgent = theme.xbackground
|
||||
theme.tasklist_fg_urgent = theme.xcolor9
|
||||
theme.tasklist_bg_normal = theme.xbackground
|
||||
theme.tasklist_fg_normal = theme.xcolor7
|
||||
|
||||
-- Titlebars
|
||||
theme.titlebar_size = dpi(30)
|
||||
theme.titlebar_bg_focus = theme.xcolor7
|
||||
theme.titlebar_bg_normal = theme.xcolor7
|
||||
theme.titlebar_fg_focus = theme.xcolor7
|
||||
theme.titlebar_fg_normal = theme.xcolor7
|
||||
|
||||
-- Tooltips
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
theme.tooltip_fg = theme.fg_normal
|
||||
theme.tooltip_bg = theme.bg_normal
|
||||
|
||||
-- Notifications
|
||||
-- Position: bottom_left, bottom_right, bottom_middle,
|
||||
-- top_left, top_right, top_middle
|
||||
-- BUG: some notifications (e.g. by notify-send) appear at top_right regardless of this setting
|
||||
theme.notification_position = "top_right"
|
||||
theme.notification_border_width = dpi(0)
|
||||
theme.notification_border_radius = theme.border_radius
|
||||
theme.notification_border_color = theme.xcolor10
|
||||
theme.notification_bg = theme.xbackground
|
||||
theme.notification_fg = theme.xcolor7
|
||||
theme.notification_crit_bg = theme.xcolor9
|
||||
theme.notification_crit_fg = theme.xcolor0
|
||||
theme.notification_icon_size = dpi(60)
|
||||
-- theme.notification_height = dpi(80)
|
||||
-- theme.notification_width = dpi(300)
|
||||
theme.notification_margin = dpi(15)
|
||||
theme.notification_opacity = 1
|
||||
theme.notification_font = theme.font
|
||||
theme.notification_padding = dpi(20)
|
||||
theme.notification_spacing = dpi(10)
|
||||
|
||||
-- Edge snap
|
||||
theme.snap_bg = theme.xcolor4
|
||||
theme.snap_shape = gears.shape.rectangle
|
||||
|
||||
-- Prompts
|
||||
theme.prompt_bg = transparent
|
||||
theme.prompt_fg = theme.xforeground
|
||||
|
||||
-- Tooltips
|
||||
theme.tooltip_bg = theme.xcolor0
|
||||
theme.tooltip_fg = theme.xforeground
|
||||
theme.tooltip_font = theme.font
|
||||
theme.tooltip_border_width = dpi(0)
|
||||
theme.tooltip_border_color = theme.xcolor0
|
||||
theme.tooltip_opacity = 1
|
||||
theme.tooltip_align = "left"
|
||||
|
||||
-- Sidebar
|
||||
-- (Sidebar items can be customized in sidebar.lua)
|
||||
theme.sidebar_bg = theme.xbackground
|
||||
theme.sidebar_bg_alt = theme.xcolor0
|
||||
theme.sidebar_fg = theme.xcolor7
|
||||
theme.sidebar_opacity = 1
|
||||
theme.sidebar_position = "right" -- left or right
|
||||
theme.sidebar_width = dpi(330)
|
||||
-- theme.sidebar_height =
|
||||
theme.sidebar_y = dpi(0)
|
||||
theme.sidebar_hide_on_mouse_leave = true
|
||||
theme.sidebar_show_on_mouse_edge = true
|
||||
|
||||
-- Mpd song
|
||||
theme.mpd_song_title_color = theme.xcolor7
|
||||
theme.mpd_song_artist_color = theme.xcolor7
|
||||
theme.mpd_song_paused_color = theme.xcolor8
|
||||
|
||||
-- Volume bar
|
||||
theme.volume_bar_active_color = theme.xcolor4
|
||||
theme.volume_bar_active_background_color = theme.xcolor0
|
||||
theme.volume_bar_muted_color = theme.xcolor8
|
||||
theme.volume_bar_muted_background_color = theme.xcolor0
|
||||
|
||||
-- Temperature bar
|
||||
theme.temperature_bar_active_color = theme.xcolor4
|
||||
theme.temperature_bar_background_color = theme.xcolor0
|
||||
|
||||
-- Battery bar
|
||||
theme.battery_bar_active_color = theme.xcolor4
|
||||
theme.battery_bar_background_color = theme.xcolor0
|
||||
|
||||
-- CPU bar
|
||||
theme.cpu_bar_active_color = theme.xcolor4
|
||||
theme.cpu_bar_background_color = theme.xcolor0
|
||||
|
||||
-- RAM bar
|
||||
theme.ram_bar_active_color = theme.xcolor4
|
||||
theme.ram_bar_background_color = theme.xcolor0
|
||||
|
||||
|
||||
-- Menu
|
||||
theme.menu_bg_focus = theme.xcolor4
|
||||
theme.menu_fg_focus = theme.xcolor7
|
||||
theme.menu_bg_normal = theme.xbackground
|
||||
theme.menu_fg_normal = theme.xcolor7
|
||||
theme.menu_submenu_icon = "~/.config/awesome/themes/archlabs/submenu.png"
|
||||
theme.menu_height = dpi(30)
|
||||
theme.menu_width = dpi(180)
|
||||
theme.menu_border_color = theme.xbackground
|
||||
theme.menu_border_width = dpi(8)
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
-- Recolor Layout icons:
|
||||
theme = theme_assets.recolor_layout(theme, theme.xforeground)
|
||||
|
||||
-- Titlebar buttons: Define the images to load
|
||||
theme.titlebar_close_button_normal = tip .. "close_normal.svg"
|
||||
theme.titlebar_close_button_focus = tip .. "close_focus.svg"
|
||||
theme.titlebar_minimize_button_normal = tip .. "minimize_normal.svg"
|
||||
theme.titlebar_minimize_button_focus = tip .. "minimize_focus.svg"
|
||||
theme.titlebar_ontop_button_normal_inactive = tip .. "ontop_normal_inactive.svg"
|
||||
theme.titlebar_ontop_button_focus_inactive = tip .. "ontop_focus_inactive.svg"
|
||||
theme.titlebar_ontop_button_normal_active = tip .. "ontop_normal_active.svg"
|
||||
theme.titlebar_ontop_button_focus_active = tip .. "ontop_focus_active.svg"
|
||||
theme.titlebar_sticky_button_normal_inactive = tip .. "sticky_normal_inactive.svg"
|
||||
theme.titlebar_sticky_button_focus_inactive = tip .. "sticky_focus_inactive.svg"
|
||||
theme.titlebar_sticky_button_normal_active = tip .. "sticky_normal_active.svg"
|
||||
theme.titlebar_sticky_button_focus_active = tip .. "sticky_focus_active.svg"
|
||||
theme.titlebar_floating_button_normal_inactive = tip .. "floating_normal_inactive.svg"
|
||||
theme.titlebar_floating_button_focus_inactive = tip .. "floating_focus_inactive.svg"
|
||||
theme.titlebar_floating_button_normal_active = tip .. "floating_normal_active.svg"
|
||||
theme.titlebar_floating_button_focus_active = tip .. "floating_focus_active.svg"
|
||||
theme.titlebar_maximized_button_normal_inactive = tip .. "maximized_normal_inactive.svg"
|
||||
theme.titlebar_maximized_button_focus_inactive = tip .. "maximized_focus_inactive.svg"
|
||||
theme.titlebar_maximized_button_normal_active = tip .. "maximized_normal_active.svg"
|
||||
theme.titlebar_maximized_button_focus_active = tip .. "maximized_focus_active.svg"
|
||||
-- (hover)
|
||||
theme.titlebar_close_button_normal_hover = tip .. "close_normal_hover.svg"
|
||||
theme.titlebar_close_button_focus_hover = tip .. "close_focus_hover.svg"
|
||||
theme.titlebar_minimize_button_normal_hover = tip .. "minimize_normal_hover.svg"
|
||||
theme.titlebar_minimize_button_focus_hover = tip .. "minimize_focus_hover.svg"
|
||||
theme.titlebar_ontop_button_normal_inactive_hover = tip .. "ontop_normal_inactive_hover.svg"
|
||||
theme.titlebar_ontop_button_focus_inactive_hover = tip .. "ontop_focus_inactive_hover.svg"
|
||||
theme.titlebar_ontop_button_normal_active_hover = tip .. "ontop_normal_active_hover.svg"
|
||||
theme.titlebar_ontop_button_focus_active_hover = tip .. "ontop_focus_active_hover.svg"
|
||||
theme.titlebar_sticky_button_normal_inactive_hover = tip .. "sticky_normal_inactive_hover.svg"
|
||||
theme.titlebar_sticky_button_focus_inactive_hover = tip .. "sticky_focus_inactive_hover.svg"
|
||||
theme.titlebar_sticky_button_normal_active_hover = tip .. "sticky_normal_active_hover.svg"
|
||||
theme.titlebar_sticky_button_focus_active_hover = tip .. "sticky_focus_active_hover.svg"
|
||||
theme.titlebar_floating_button_normal_inactive_hover = tip .. "floating_normal_inactive_hover.svg"
|
||||
theme.titlebar_floating_button_focus_inactive_hover = tip .. "floating_focus_inactive_hover.svg"
|
||||
theme.titlebar_floating_button_normal_active_hover = tip .. "floating_normal_active_hover.svg"
|
||||
theme.titlebar_floating_button_focus_active_hover = tip .. "floating_focus_active_hover.svg"
|
||||
theme.titlebar_maximized_button_normal_inactive_hover = tip .. "maximized_normal_inactive_hover.svg"
|
||||
theme.titlebar_maximized_button_focus_inactive_hover = tip .. "maximized_focus_inactive_hover.svg"
|
||||
theme.titlebar_maximized_button_normal_active_hover = tip .. "maximized_normal_active_hover.svg"
|
||||
theme.titlebar_maximized_button_focus_active_hover = tip .. "maximized_focus_active_hover.svg"
|
||||
|
||||
-- Define the icon theme for application icons. If not set then the icons
|
||||
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
||||
theme.icon_theme = nil
|
||||
|
||||
-- Generate Awesome icon:
|
||||
theme.awesome_icon = theme_assets.awesome_icon(
|
||||
theme.menu_height, theme.bg_focus, theme.fg_focus
|
||||
)
|
||||
|
||||
-- Generate taglist squares:
|
||||
-- Set size 0 to disable
|
||||
local taglist_square_size = dpi(0)
|
||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
||||
taglist_square_size, theme.xcolor4
|
||||
)
|
||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
||||
taglist_square_size, theme.xcolor7
|
||||
)
|
||||
|
||||
-- Try to determine if we are running light or dark colorscheme:
|
||||
local bg_numberic_value = 0;
|
||||
for s in theme.bg_normal:gmatch("[a-fA-F0-9][a-fA-F0-9]") do
|
||||
bg_numberic_value = bg_numberic_value + tonumber("0x"..s);
|
||||
end
|
||||
local is_dark_bg = (bg_numberic_value < 383)
|
||||
|
||||
return theme
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#1da0e2; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#DEE6E7; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,11 +0,0 @@
|
||||
<svg viewBox="0 0 100 100">
|
||||
<rect
|
||||
style="fill:#57c7ff; fill-opacity:1; stroke:#1E2541; stroke-width:0; stroke-opacity:1"
|
||||
width="50"
|
||||
height="50"
|
||||
x="25"
|
||||
y="25"
|
||||
ry="25"
|
||||
rx="25"
|
||||
/>
|
||||
</svg>
|
Before Width: | Height: | Size: 248 B |
@ -1,3 +0,0 @@
|
||||
Background images:
|
||||
Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||
Licensed under CC-BY-SA-3.0
|
Before Width: | Height: | Size: 218 KiB |
Before Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 865 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 969 B |
Before Width: | Height: | Size: 974 B |
@ -1,131 +0,0 @@
|
||||
---------------------------
|
||||
-- Default awesome theme --
|
||||
---------------------------
|
||||
|
||||
local theme_assets = require("beautiful.theme_assets")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
local gfs = require("gears.filesystem")
|
||||
local themes_path = gfs.get_themes_dir()
|
||||
|
||||
local theme = {}
|
||||
|
||||
theme.font = "sans 8"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#535d6c"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
theme.bg_systray = theme.bg_normal
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
|
||||
theme.useless_gap = dpi(0)
|
||||
theme.border_width = dpi(1)
|
||||
theme.border_normal = "#000000"
|
||||
theme.border_focus = "#535d6c"
|
||||
theme.border_marked = "#91231c"
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
|
||||
-- tasklist_[bg|fg]_[focus|urgent]
|
||||
-- titlebar_[bg|fg]_[normal|focus]
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
|
||||
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
-- Generate taglist squares:
|
||||
local taglist_square_size = dpi(4)
|
||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
|
||||
-- Variables set for theming notifications:
|
||||
-- notification_font
|
||||
-- notification_[bg|fg]
|
||||
-- notification_[width|height|margin]
|
||||
-- notification_[border_color|border_width|shape|opacity]
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_submenu_icon = themes_path.."default/submenu.png"
|
||||
theme.menu_height = dpi(15)
|
||||
theme.menu_width = dpi(100)
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
-- Define the image to load
|
||||
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
|
||||
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
|
||||
|
||||
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
|
||||
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
|
||||
|
||||
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
|
||||
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
|
||||
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
|
||||
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
|
||||
|
||||
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
|
||||
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
|
||||
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
|
||||
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
|
||||
|
||||
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
|
||||
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
|
||||
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
|
||||
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
|
||||
|
||||
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
|
||||
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
|
||||
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
|
||||
|
||||
theme.wallpaper = themes_path.."default/background.png"
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
|
||||
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
|
||||
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
|
||||
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
|
||||
theme.layout_max = themes_path.."default/layouts/maxw.png"
|
||||
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
|
||||
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
|
||||
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
|
||||
theme.layout_tile = themes_path.."default/layouts/tilew.png"
|
||||
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
|
||||
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
|
||||
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
|
||||
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
|
||||
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
|
||||
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
|
||||
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
|
||||
|
||||
-- Generate Awesome icon:
|
||||
theme.awesome_icon = theme_assets.awesome_icon(
|
||||
theme.menu_height, theme.bg_focus, theme.fg_focus
|
||||
)
|
||||
|
||||
-- Define the icon theme for application icons. If not set then the icons
|
||||
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
||||
theme.icon_theme = nil
|
||||
|
||||
return theme
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|