updated
|
@ -1,6 +1,6 @@
|
|||
local wibox = require("wibox")
|
||||
local awful = require("awful")
|
||||
local theme = require("theme.gruvbox.theme")
|
||||
local theme = require("theme.theme")
|
||||
|
||||
-- Keyboard layout widget
|
||||
mykeyboardlayout = awful.widget.keyboardlayout()
|
||||
|
|
13
user/.config/awesome/core/signals.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
-- No borders when rearranging only 1 non-floating or maximized client
|
||||
screen.connect_signal("arrange", function (s)
|
||||
local max = s.selected_tag.layout.name == "max"
|
||||
local only_one = #s.tiled_clients == 1 -- use tiled_clients so that other floating windows don't affect the count
|
||||
-- but iterate over clients instead of tiled_clients as tiled_clients doesn't include maximized windows
|
||||
for _, c in pairs(s.clients) do
|
||||
if (max or only_one) and not c.floating or c.maximized then
|
||||
c.border_width = 0
|
||||
else
|
||||
c.border_width = beautiful.border_width
|
||||
end
|
||||
end
|
||||
end)
|
|
@ -1,9 +1,12 @@
|
|||
-- Imports
|
||||
local beautiful = require("beautiful")
|
||||
beautiful.init(string.format("%s/.config/awesome/theme/theme.lua", os.getenv("HOME"))) -- Selected theme
|
||||
require("core.error_handling")
|
||||
require("core.apps")
|
||||
require("theme.init")
|
||||
require("core.layouts")
|
||||
require("core.bar.bar")
|
||||
require("core.bindings")
|
||||
require("core.rules")
|
||||
require("core.notif")
|
||||
require("core.signals")
|
||||
require("core.autostart")
|
||||
|
|
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 739 KiB |
Before Width: | Height: | Size: 440 B |
|
@ -1,110 +0,0 @@
|
|||
-- {{{ Imports
|
||||
local gears = require("gears")
|
||||
local dpi = require("beautiful.xresources").apply_dpi
|
||||
local beautiful = require("beautiful")
|
||||
-- }}}
|
||||
|
||||
local themes_path = string.format("%s/.config/awesome/theme/", os.getenv("HOME"))
|
||||
|
||||
-- {{{ Main
|
||||
local theme = {}
|
||||
-- }}}
|
||||
|
||||
-- {{{ theme font
|
||||
theme.font = "mononoki Nerd Font 12"
|
||||
--- }}}
|
||||
|
||||
-- {{{ bar colors
|
||||
theme.bar_bg_one = "#427b58"
|
||||
theme.bar_bg_two = "#076678"
|
||||
theme.bar_bg_tre = "#b57614"
|
||||
theme.bar_bg_for = "#9d0006"
|
||||
theme.bar_bg_fiv = "#8f3f71"
|
||||
theme.bar_clock = "#3c3836"
|
||||
--- }}}
|
||||
|
||||
|
||||
-- {{{ Colors
|
||||
theme.fg_normal = "#ebdbb2"
|
||||
theme.fg_focus = "#dfc4a1"
|
||||
theme.fg_urgent = "#fbf1c7"
|
||||
theme.bg_normal = "#1d2021"
|
||||
theme.bg_focus = "#3c3836"
|
||||
theme.bg_urgent = "#a89984"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Borders
|
||||
-- No borders when rearranging only 1 non-floating or maximized client
|
||||
screen.connect_signal("arrange", function (s)
|
||||
local max = s.selected_tag.layout.name == "max"
|
||||
local only_one = #s.tiled_clients == 1 -- use tiled_clients so that other floating windows don't affect the count
|
||||
-- but iterate over clients instead of tiled_clients as tiled_clients doesn't include maximized windows
|
||||
for _, c in pairs(s.clients) do
|
||||
if (max or only_one) and not c.floating or c.maximized then
|
||||
c.border_width = 0
|
||||
else
|
||||
c.border_width = beautiful.border_width
|
||||
end
|
||||
end
|
||||
end)
|
||||
beautiful.gap_single_client = false
|
||||
theme.useless_gap = dpi(1)
|
||||
theme.border_width = dpi(1)
|
||||
theme.border_normal = "#504945"
|
||||
theme.border_focus = "#9d0006"
|
||||
theme.border_marked = "#9d0006"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Taglist
|
||||
theme.taglist_font = "mononoki Nerd Font Mono 24"
|
||||
theme.taglist_fg_focus = "#fb4934"
|
||||
theme.taglist_fg_occupied = "#8ec07c"
|
||||
theme.taglist_fg_urgent = "#504945"
|
||||
theme.taglist_fg_empty = "#a89984"
|
||||
theme.taglist_spacing = 5
|
||||
-- }}}
|
||||
|
||||
-- {{{ Notifications
|
||||
theme.notification_font = "mononoki Nerd Font 12"
|
||||
theme.notification_bg = "#282828"
|
||||
theme.notification_fg = "#fbf1c7"
|
||||
theme.notification_shape = gears.shape.rounded_rect
|
||||
-- }}}
|
||||
|
||||
-- {{{ Hotkeys Popup
|
||||
theme.hotkeys_bg = "#282828"
|
||||
theme.hotkeys_fg = "#ebdbb2"
|
||||
theme.hotkeys_modifiers_fg = "#458588"
|
||||
theme.hotkeys_label_bg = "#fabd2f"
|
||||
theme.hotkeys_label_fg = "#1d2021"
|
||||
theme.hotkeys_group_margin = dpi(20)
|
||||
theme.hotkeys_description_font = "mononoki Nerd Font 12"
|
||||
theme.hotkeys_font = "mononoki Nerd Font 12"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse finder
|
||||
theme.mouse_finder_color = "#cc241d"
|
||||
theme.mouse_finder_radius = dpi(5)
|
||||
theme.mouse_finder_timeout = 10
|
||||
-- }}}
|
||||
|
||||
-- {{{ Layout
|
||||
theme.layout_tile = themes_path .. "gruvbox/layouts/tile.png"
|
||||
theme.layout_tileleft = themes_path .. "gruvbox/layouts/tileleft.png"
|
||||
theme.layout_tilebottom = themes_path .. "gruvbox/layouts/tilebottom.png"
|
||||
theme.layout_tiletop = themes_path .. "gruvbox/layouts/tiletop.png"
|
||||
theme.layout_fairv = themes_path .. "gruvbox/layouts/fairv.png"
|
||||
theme.layout_fairh = themes_path .. "gruvbox/layouts/fairh.png"
|
||||
theme.layout_spiral = themes_path .. "gruvbox/layouts/spiral.png"
|
||||
theme.layout_dwindle = themes_path .. "gruvbox/layouts/dwindle.png"
|
||||
theme.layout_max = themes_path .. "gruvbox/layouts/max.png"
|
||||
theme.layout_fullscreen = themes_path .. "gruvbox/layouts/fullscreen.png"
|
||||
theme.layout_magnifier = themes_path .. "gruvbox/layouts/magnifier.png"
|
||||
theme.layout_floating = themes_path .. "gruvbox/layouts/floating.png"
|
||||
theme.layout_cornernw = themes_path .. "gruvbox/layouts/cornernw.png"
|
||||
theme.layout_cornerne = themes_path .. "gruvbox/layouts/cornerne.png"
|
||||
theme.layout_cornersw = themes_path .. "gruvbox/layouts/cornersw.png"
|
||||
theme.layout_cornerse = themes_path .. "gruvbox/layouts/cornerse.png"
|
||||
-- }}}
|
||||
|
||||
return theme
|
|
@ -1,4 +0,0 @@
|
|||
local beautiful = require("beautiful")
|
||||
local gears = require("gears")
|
||||
-- Selected theme
|
||||
beautiful.init(string.format("%s/.config/awesome/theme/gruvbox/theme.lua", os.getenv("HOME")))
|
Before Width: | Height: | Size: 965 B After Width: | Height: | Size: 965 B |
Before Width: | Height: | Size: 963 B After Width: | Height: | Size: 963 B |
Before Width: | Height: | Size: 960 B After Width: | Height: | Size: 960 B |
Before Width: | Height: | Size: 965 B After Width: | Height: | Size: 965 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 843 B |
Before Width: | Height: | Size: 902 B After Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 709 B After Width: | Height: | Size: 709 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 885 B After Width: | Height: | Size: 885 B |
Before Width: | Height: | Size: 793 B After Width: | Height: | Size: 793 B |
Before Width: | Height: | Size: 780 B After Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
Before Width: | Height: | Size: 778 B After Width: | Height: | Size: 778 B |
96
user/.config/awesome/theme/theme.lua
Normal file
|
@ -0,0 +1,96 @@
|
|||
-- {{{ Imports
|
||||
local gears = require("gears")
|
||||
local dpi = require("beautiful.xresources").apply_dpi
|
||||
local beautiful = require("beautiful")
|
||||
-- }}}
|
||||
|
||||
local themes_path = string.format("%s/.config/awesome/theme/", os.getenv("HOME"))
|
||||
|
||||
-- {{{ Main
|
||||
local theme = {}
|
||||
-- }}}
|
||||
|
||||
-- {{{ theme font
|
||||
theme.font = "mononoki Nerd Font 12"
|
||||
--- }}}
|
||||
|
||||
-- {{{ bar colors
|
||||
theme.bar_bg_one = "#427b58"
|
||||
theme.bar_bg_two = "#076678"
|
||||
theme.bar_bg_tre = "#b57614"
|
||||
theme.bar_bg_for = "#9d0006"
|
||||
theme.bar_bg_fiv = "#8f3f71"
|
||||
theme.bar_clock = "#3c3836"
|
||||
--- }}}
|
||||
|
||||
-- {{{ Colors
|
||||
theme.fg_normal = "#ebdbb2"
|
||||
theme.fg_focus = "#dfc4a1"
|
||||
theme.fg_urgent = "#fbf1c7"
|
||||
theme.bg_normal = "#1d2021"
|
||||
theme.bg_focus = "#3c3836"
|
||||
theme.bg_urgent = "#a89984"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Borders
|
||||
beautiful.gap_single_client = false
|
||||
theme.useless_gap = dpi(0)
|
||||
theme.border_width = dpi(0.5)
|
||||
theme.border_normal = "#504945"
|
||||
theme.border_focus = "#9d0006"
|
||||
theme.border_marked = "#9d0006"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Taglist
|
||||
theme.taglist_font = "mononoki Nerd Font Mono 24"
|
||||
theme.taglist_fg_focus = "#fb4934"
|
||||
theme.taglist_fg_occupied = "#8ec07c"
|
||||
theme.taglist_fg_urgent = "#504945"
|
||||
theme.taglist_fg_empty = "#a89984"
|
||||
theme.taglist_spacing = 5
|
||||
-- }}}
|
||||
|
||||
-- {{{ Notifications
|
||||
theme.notification_font = "mononoki Nerd Font Mono 12"
|
||||
theme.notification_bg = "#282828"
|
||||
theme.notification_fg = "#fbf1c7"
|
||||
theme.notification_shape = gears.shape.rounded_rect
|
||||
-- }}}
|
||||
|
||||
-- {{{ Hotkeys Popup
|
||||
theme.hotkeys_bg = "#282828"
|
||||
theme.hotkeys_fg = "#ebdbb2"
|
||||
theme.hotkeys_modifiers_fg = "#458588"
|
||||
theme.hotkeys_label_bg = "#fabd2f"
|
||||
theme.hotkeys_label_fg = "#1d2021"
|
||||
theme.hotkeys_group_margin = dpi(20)
|
||||
theme.hotkeys_description_font = "mononoki Nerd Font Mono 12"
|
||||
theme.hotkeys_font = "mononoki Nerd Font Mono 12"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse finder
|
||||
theme.mouse_finder_color = "#cc241d"
|
||||
theme.mouse_finder_radius = dpi(5)
|
||||
theme.mouse_finder_timeout = 10
|
||||
-- }}}
|
||||
|
||||
-- {{{ Layout
|
||||
theme.layout_tile = themes_path .. "layouts/tile.png"
|
||||
theme.layout_tileleft = themes_path .. "layouts/tileleft.png"
|
||||
theme.layout_tilebottom = themes_path .. "layouts/tilebottom.png"
|
||||
theme.layout_tiletop = themes_path .. "layouts/tiletop.png"
|
||||
theme.layout_fairv = themes_path .. "layouts/fairv.png"
|
||||
theme.layout_fairh = themes_path .. "layouts/fairh.png"
|
||||
theme.layout_spiral = themes_path .. "layouts/spiral.png"
|
||||
theme.layout_dwindle = themes_path .. "layouts/dwindle.png"
|
||||
theme.layout_max = themes_path .. "layouts/max.png"
|
||||
theme.layout_fullscreen = themes_path .. "layouts/fullscreen.png"
|
||||
theme.layout_magnifier = themes_path .. "layouts/magnifier.png"
|
||||
theme.layout_floating = themes_path .. "layouts/floating.png"
|
||||
theme.layout_cornernw = themes_path .. "layouts/cornernw.png"
|
||||
theme.layout_cornerne = themes_path .. "layouts/cornerne.png"
|
||||
theme.layout_cornersw = themes_path .. "layouts/cornersw.png"
|
||||
theme.layout_cornerse = themes_path .. "layouts/cornerse.png"
|
||||
-- }}}
|
||||
|
||||
return theme
|