mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
blackburn & holo: topbar for all common resolutions added
This commit is contained in:
parent
36618e8722
commit
aaa8feb51e
14
README.rst
14
README.rst
|
@ -69,6 +69,20 @@ Blackburn and Dremora use Icons_: **if you're running Debian/Ubuntu**, be sure t
|
||||||
|
|
||||||
Except Multicolor and Powerarrow Darker, every theme has a colorscheme_ and uses Yawn_.
|
Except Multicolor and Powerarrow Darker, every theme has a colorscheme_ and uses Yawn_.
|
||||||
|
|
||||||
|
Blackburn and Holo use png topbars, supported screen width sizes are:
|
||||||
|
|
||||||
|
1024
|
||||||
|
1152
|
||||||
|
1280
|
||||||
|
1366
|
||||||
|
1440
|
||||||
|
1600
|
||||||
|
1680
|
||||||
|
1920
|
||||||
|
2560
|
||||||
|
|
||||||
|
if your screen don't match one of these widths, then you have to create a proper topbar, and put it into ``themes/*chosentheme*/icons/topbar``.
|
||||||
|
|
||||||
**Have any suggestions?** Did you see some great stuff and you want me to put my paws on it? Feel free to email me, it might just be the next copycat!
|
**Have any suggestions?** Did you see some great stuff and you want me to put my paws on it? Feel free to email me, it might just be the next copycat!
|
||||||
|
|
||||||
Author
|
Author
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
--[[ ]]--
|
--[[ ]]--
|
||||||
|
|
||||||
|
|
||||||
-- Required Libraries
|
-- {{{ Required Libraries
|
||||||
|
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
|
@ -20,7 +20,9 @@ local scratch = require("scratch")
|
||||||
local yawn = require("yawn")
|
local yawn = require("yawn")
|
||||||
local layouts = require("layouts")
|
local layouts = require("layouts")
|
||||||
|
|
||||||
-- Run once function
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Autostart applications
|
||||||
|
|
||||||
function run_once(cmd)
|
function run_once(cmd)
|
||||||
findme = cmd
|
findme = cmd
|
||||||
|
@ -31,18 +33,19 @@ function run_once(cmd)
|
||||||
awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")")
|
awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- autostart applications
|
|
||||||
run_once("urxvtd")
|
run_once("urxvtd")
|
||||||
run_once("unclutter -idle 10")
|
run_once("unclutter -idle 10")
|
||||||
run_once("compton")
|
run_once("compton")
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Localization
|
-- {{{ Localization
|
||||||
|
|
||||||
os.setlocale(os.getenv("LANG"))
|
os.setlocale(os.getenv("LANG"))
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Error Handling
|
-- {{{ Error Handling
|
||||||
|
|
||||||
-- Check if awesome encountered an error during startup and fell back to
|
-- Check if awesome encountered an error during startup and fell back to
|
||||||
-- another config (This code will only ever execute for the fallback config)
|
-- another config (This code will only ever execute for the fallback config)
|
||||||
|
@ -67,8 +70,9 @@ do
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Global variables
|
-- {{{ Global variables
|
||||||
|
|
||||||
home = os.getenv("HOME")
|
home = os.getenv("HOME")
|
||||||
confdir = home .. "/.config/awesome"
|
confdir = home .. "/.config/awesome"
|
||||||
|
@ -101,8 +105,9 @@ layouts =
|
||||||
layouts.tilegaps, -- 6
|
layouts.tilegaps, -- 6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Wallpaper
|
-- {{{ Wallpaper
|
||||||
|
|
||||||
if beautiful.wallpaper then
|
if beautiful.wallpaper then
|
||||||
for s = 1, screen.count() do
|
for s = 1, screen.count() do
|
||||||
|
@ -110,7 +115,9 @@ if beautiful.wallpaper then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Tags
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Tags
|
||||||
|
|
||||||
tags = {
|
tags = {
|
||||||
names = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" },
|
names = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" },
|
||||||
|
@ -120,7 +127,9 @@ for s = 1, screen.count() do
|
||||||
tags[s] = awful.tag(tags.names, s, tags.layout)
|
tags[s] = awful.tag(tags.names, s, tags.layout)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Menu
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Menu
|
||||||
myaccessories = {
|
myaccessories = {
|
||||||
{ "archives", "7zFM" },
|
{ "archives", "7zFM" },
|
||||||
{ "charmap", "gucharmap" },
|
{ "charmap", "gucharmap" },
|
||||||
|
@ -150,8 +159,9 @@ mymainmenu = awful.menu({ items = {
|
||||||
})
|
})
|
||||||
mylauncher = awful.widget.launcher({ menu = mymainmenu })
|
mylauncher = awful.widget.launcher({ menu = mymainmenu })
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Wibox
|
-- {{{ Wibox
|
||||||
|
|
||||||
-- Colours
|
-- Colours
|
||||||
coldef = "</span>"
|
coldef = "</span>"
|
||||||
|
@ -371,8 +381,8 @@ function(widget, args)
|
||||||
else return gray .. args["{Artist}"] .. coldef .. white .. " " .. args["{Title}"] .. coldef .. "<span font='Tamsyn 8'> <span font='Tamsyn 2'> </span></span>"
|
else return gray .. args["{Artist}"] .. coldef .. white .. " " .. args["{Title}"] .. coldef .. "<span font='Tamsyn 8'> <span font='Tamsyn 2'> </span></span>"
|
||||||
end
|
end
|
||||||
elseif args["{state}"] == "Pause" then
|
elseif args["{state}"] == "Pause" then
|
||||||
if mailcount == 0 then return gray .. "mpd " .. coldef .. white .. "in pausa<span font='Tamsyn 6'> </span> " .. coldef
|
if mailcount == 0 then return gray .. "mpd " .. coldef .. white .. "paused<span font='Tamsyn 6'> </span> " .. coldef
|
||||||
else return gray .. "mpd " .. coldef .. white .. "in pausa " .. coldef
|
else return gray .. "mpd " .. coldef .. white .. "paused " .. coldef
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
curr_track = nil
|
curr_track = nil
|
||||||
|
@ -540,8 +550,9 @@ arrl_pre:set_image(beautiful.arrl_lr_pre)
|
||||||
arrl_post = wibox.widget.imagebox()
|
arrl_post = wibox.widget.imagebox()
|
||||||
arrl_post:set_image(beautiful.arrl_lr_post)
|
arrl_post:set_image(beautiful.arrl_lr_post)
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Layout
|
-- {{{ Layout
|
||||||
|
|
||||||
-- Create a wibox for each screen and add it
|
-- Create a wibox for each screen and add it
|
||||||
mywibox = {}
|
mywibox = {}
|
||||||
|
@ -646,9 +657,14 @@ for s = 1, screen.count() do
|
||||||
|
|
||||||
mywibox[s]:set_widget(layout)
|
mywibox[s]:set_widget(layout)
|
||||||
|
|
||||||
|
-- Set proper backgrounds, instead of beautiful.bg_normal
|
||||||
|
beautiful.screen_width = screen[1].workarea.width .. ".png"
|
||||||
|
mywibox[s]:set_bg(beautiful.topbar_path .. beautiful.screen_width)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Mouse Bindings
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Mouse Bindings
|
||||||
|
|
||||||
root.buttons(awful.util.table.join(
|
root.buttons(awful.util.table.join(
|
||||||
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
||||||
|
@ -656,8 +672,9 @@ root.buttons(awful.util.table.join(
|
||||||
awful.button({ }, 5, awful.tag.viewprev)
|
awful.button({ }, 5, awful.tag.viewprev)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = awful.util.table.join(
|
globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
-- Capture a screenshot
|
-- Capture a screenshot
|
||||||
|
@ -852,8 +869,9 @@ clientbuttons = awful.util.table.join(
|
||||||
-- Set keys
|
-- Set keys
|
||||||
root.keys(globalkeys)
|
root.keys(globalkeys)
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Rules
|
-- {{{ Rules
|
||||||
|
|
||||||
awful.rules.rules = {
|
awful.rules.rules = {
|
||||||
-- All clients will match this rule.
|
-- All clients will match this rule.
|
||||||
|
@ -890,8 +908,9 @@ awful.rules.rules = {
|
||||||
properties = { tag = tags[1][5] } },
|
properties = { tag = tags[1][5] } },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Signals
|
-- {{{ Signals
|
||||||
|
|
||||||
-- Signal function to execute when a new client appears.
|
-- Signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
|
@ -963,3 +982,5 @@ end)
|
||||||
|
|
||||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB |
|
@ -9,17 +9,15 @@
|
||||||
theme = {}
|
theme = {}
|
||||||
|
|
||||||
themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/blackburn"
|
themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/blackburn"
|
||||||
themes_bg_normal = "png:" .. themes_dir .. "/taskbar/bg_normal2.png"
|
|
||||||
themes_bg_focus = "png:" .. themes_dir .. "/taskbar/bg_focus.png"
|
|
||||||
|
|
||||||
theme.wallpaper = themes_dir .. "/wall.png"
|
theme.wallpaper = themes_dir .. "/wall.png"
|
||||||
|
theme.topbar_path = "png:" .. themes_dir .. "/icons/topbar/"
|
||||||
|
|
||||||
theme.font = "Tamsyn 10"
|
theme.font = "Tamsyn 10"
|
||||||
theme.taglist_font = "Icons 10"
|
theme.taglist_font = "Icons 10"
|
||||||
theme.fg_normal = "#D7D7D7"
|
theme.fg_normal = "#D7D7D7"
|
||||||
theme.fg_focus = "#F6784F"
|
theme.fg_focus = "#F6784F"
|
||||||
theme.bg_normal = themes_bg_normal
|
theme.bg_normal = "#060606"
|
||||||
theme.bg_focus = "#060606"
|
theme.bg_focus = "#060606"
|
||||||
theme.fg_urgent = "#CC9393"
|
theme.fg_urgent = "#CC9393"
|
||||||
theme.bg_urgent = "#2A1F1E"
|
theme.bg_urgent = "#2A1F1E"
|
||||||
theme.border_width = "1"
|
theme.border_width = "1"
|
||||||
|
@ -27,9 +25,9 @@ theme.border_normal = "#0E0E0E"
|
||||||
theme.border_focus = "#404040"
|
theme.border_focus = "#404040"
|
||||||
|
|
||||||
theme.taglist_fg_focus = "#F6784F"
|
theme.taglist_fg_focus = "#F6784F"
|
||||||
theme.taglist_bg_focus = themes_bg_normal
|
theme.taglist_bg_focus = "#060606"
|
||||||
theme.tasklist_fg_focus = "#F6784F"
|
theme.tasklist_fg_focus = "#F6784F"
|
||||||
theme.tasklist_bg_focus = themes_bg_normal
|
theme.tasklist_bg_focus = "#060606"
|
||||||
theme.textbox_widget_margin_top = 1
|
theme.textbox_widget_margin_top = 1
|
||||||
theme.awful_widget_height = 14
|
theme.awful_widget_height = 14
|
||||||
theme.awful_widget_margin_top = 2
|
theme.awful_widget_margin_top = 2
|
||||||
|
|
Loading…
Reference in a new issue