Some simple powerline theming

This commit is contained in:
Warren Hood 2022-11-26 03:15:40 +02:00
parent 152b1956a9
commit 56221499e2
3 changed files with 30 additions and 11 deletions

View file

@ -14,6 +14,11 @@ local beautiful = require("beautiful")
local naughty = require("naughty") local naughty = require("naughty")
local menubar = require("menubar") local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup") local hotkeys_popup = require("awful.hotkeys_popup")
local lain = require("lain")
local separators = lain.util.separators
local arrow = separators.arrow_left
-- Enable hotkeys help widget for VIM and other apps -- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened: -- when client with a matching name is opened:
require("awful.hotkeys_popup.keys") require("awful.hotkeys_popup.keys")
@ -209,12 +214,18 @@ awful.screen.connect_for_each_screen(function(s)
s.mytaglist, s.mytaglist,
s.mypromptbox, s.mypromptbox,
}, },
s.mytasklist, -- Middle widget s.mytasklist, -- Middle widget
{ -- Right widgets { -- Right widgets
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
mykeyboardlayout, arrow("alpha", "#DD77DD"),
wibox.widget.systray(), wibox.container.background( mykeyboardlayout, "#DD77DD"),
mytextclock, arrow("#DD77DD", "#7777DD"),
wibox.container.background( wibox.widget.systray(), "#7777DD"),
arrow("#7777DD", "#77DD77"),
wibox.container.background( mytextclock, "#77DD77"),
arrow("#77DD77", "alpha"),
s.mylayoutbox, s.mylayoutbox,
}, },
} }

View file

@ -6,6 +6,14 @@ local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources") local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi local dpi = xresources.apply_dpi
local gears = require("gears")
local lain = require("lain")
local awful = require("awful")
local wibox = require("wibox")
local separators = lain.util.separators
local arrow = separators.arrow_left
local gfs = require("gears.filesystem") local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir() local themes_path = gfs.get_themes_dir()
@ -13,20 +21,20 @@ local theme = {}
theme.font = "Mononoki Nerd Font 8" theme.font = "Mononoki Nerd Font 8"
theme.bg_normal = "#222222" theme.bg_normal = "#222222"
theme.bg_focus = "#55bb55" theme.bg_focus = "#222222"
theme.bg_urgent = "#cc0088" theme.bg_urgent = "#cc0088"
theme.bg_minimize = "#444444" theme.bg_minimize = "#444444"
theme.bg_systray = theme.bg_normal theme.bg_systray = "#7777DD"
theme.fg_normal = "#aaaaaa" theme.fg_normal = "#FFFFFF"
theme.fg_focus = "#ffffff" theme.fg_focus = "#FFFFFF"
theme.fg_urgent = "#ffffff" theme.fg_urgent = "#FFFFFF"
theme.fg_minimize = "#ffffff" theme.fg_minimize = "#FFFFFF"
theme.useless_gap = dpi(6) theme.useless_gap = dpi(6)
theme.border_width = dpi(2) theme.border_width = dpi(2)
theme.border_normal = "#333333" theme.border_normal = "#333333"
theme.border_focus = "#55bb55" theme.border_focus = "#77DD77"
theme.border_marked = "#900090" theme.border_marked = "#900090"
-- There are other variable sets -- There are other variable sets

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB