1
0
Fork 0
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:
luke bonham 2013-08-03 17:00:17 +02:00
parent 36618e8722
commit aaa8feb51e
6 changed files with 57 additions and 24 deletions

View file

@ -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_.
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!
Author

View file

@ -6,7 +6,7 @@
--[[ ]]--
-- Required Libraries
-- {{{ Required Libraries
local gears = require("gears")
local awful = require("awful")
@ -20,7 +20,9 @@ local scratch = require("scratch")
local yawn = require("yawn")
local layouts = require("layouts")
-- Run once function
-- }}}
-- {{{ Autostart applications
function run_once(cmd)
findme = cmd
@ -31,18 +33,19 @@ function run_once(cmd)
awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")")
end
-- autostart applications
run_once("urxvtd")
run_once("unclutter -idle 10")
run_once("compton")
-- }}}
-- Localization
-- {{{ Localization
os.setlocale(os.getenv("LANG"))
-- }}}
-- Error Handling
-- {{{ Error Handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
@ -67,8 +70,9 @@ do
end)
end
-- }}}
-- Global variables
-- {{{ Global variables
home = os.getenv("HOME")
confdir = home .. "/.config/awesome"
@ -101,8 +105,9 @@ layouts =
layouts.tilegaps, -- 6
}
-- }}}
-- Wallpaper
-- {{{ Wallpaper
if beautiful.wallpaper then
for s = 1, screen.count() do
@ -110,7 +115,9 @@ if beautiful.wallpaper then
end
end
-- Tags
-- }}}
-- {{{ Tags
tags = {
names = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" },
@ -120,7 +127,9 @@ for s = 1, screen.count() do
tags[s] = awful.tag(tags.names, s, tags.layout)
end
-- Menu
-- }}}
-- {{{ Menu
myaccessories = {
{ "archives", "7zFM" },
{ "charmap", "gucharmap" },
@ -150,8 +159,9 @@ mymainmenu = awful.menu({ items = {
})
mylauncher = awful.widget.launcher({ menu = mymainmenu })
-- }}}
-- Wibox
-- {{{ Wibox
-- Colours
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>"
end
elseif args["{state}"] == "Pause" then
if mailcount == 0 then return gray .. "mpd " .. coldef .. white .. "in pausa<span font='Tamsyn 6'> </span> " .. coldef
else return gray .. "mpd " .. coldef .. white .. "in pausa " .. coldef
if mailcount == 0 then return gray .. "mpd " .. coldef .. white .. "paused<span font='Tamsyn 6'> </span> " .. coldef
else return gray .. "mpd " .. coldef .. white .. "paused " .. coldef
end
else
curr_track = nil
@ -540,8 +550,9 @@ arrl_pre:set_image(beautiful.arrl_lr_pre)
arrl_post = wibox.widget.imagebox()
arrl_post:set_image(beautiful.arrl_lr_post)
-- }}}
-- Layout
-- {{{ Layout
-- Create a wibox for each screen and add it
mywibox = {}
@ -646,9 +657,14 @@ for s = 1, screen.count() do
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
-- Mouse Bindings
-- }}}
-- {{{ Mouse Bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
@ -656,8 +672,9 @@ root.buttons(awful.util.table.join(
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
-- Key bindings
-- {{{ Key bindings
globalkeys = awful.util.table.join(
-- Capture a screenshot
@ -852,8 +869,9 @@ clientbuttons = awful.util.table.join(
-- Set keys
root.keys(globalkeys)
-- }}}
-- Rules
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
@ -890,8 +908,9 @@ awful.rules.rules = {
properties = { tag = tags[1][5] } },
}
-- }}}
-- Signals
-- {{{ Signals
-- Signal function to execute when a new client appears.
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("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}

View file

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

View file

@ -9,17 +9,15 @@
theme = {}
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.topbar_path = "png:" .. themes_dir .. "/icons/topbar/"
theme.font = "Tamsyn 10"
theme.taglist_font = "Icons 10"
theme.fg_normal = "#D7D7D7"
theme.fg_focus = "#F6784F"
theme.bg_normal = themes_bg_normal
theme.bg_focus = "#060606"
theme.bg_normal = "#060606"
theme.bg_focus = "#060606"
theme.fg_urgent = "#CC9393"
theme.bg_urgent = "#2A1F1E"
theme.border_width = "1"
@ -27,9 +25,9 @@ theme.border_normal = "#0E0E0E"
theme.border_focus = "#404040"
theme.taglist_fg_focus = "#F6784F"
theme.taglist_bg_focus = themes_bg_normal
theme.taglist_bg_focus = "#060606"
theme.tasklist_fg_focus = "#F6784F"
theme.tasklist_bg_focus = themes_bg_normal
theme.tasklist_bg_focus = "#060606"
theme.textbox_widget_margin_top = 1
theme.awful_widget_height = 14
theme.awful_widget_margin_top = 2