Update awesome config

This commit is contained in:
Thomas Avé 2022-07-20 00:24:45 +02:00
parent e79dd17b50
commit 6338e4cac3
6 changed files with 21 additions and 10 deletions

View File

@ -15,7 +15,7 @@ font:
family: Source Code Pro family: Source Code Pro
style: Bold Italic style: Bold Italic
size: 9.5 size: 16
# Colors (Molokai Dark) # Colors (Molokai Dark)
colors: colors:

View File

@ -103,7 +103,7 @@ top_panel.create = function(s)
client.connect_signal("focus", change_panel_visibility) client.connect_signal("focus", change_panel_visibility)
updates_indicator:connect_signal("button::press", function(c, _, _, button) updates_indicator:connect_signal("button::press", function(c, _, _, button)
awful.spawn('kitty --single-instance -e bash -c "yay ; echo \'\nDone, press any key to exit...\' ; read"') awful.spawn('alacritty -e bash -c "yay ; echo \'\nDone, press any key to exit...\' ; read"')
end) end)
updates_indicator:connect_signal("mouse::enter", function(c) c:set_bg(theme.bg_normal .. "99") end) updates_indicator:connect_signal("mouse::enter", function(c) c:set_bg(theme.bg_normal .. "99") end)

View File

@ -150,6 +150,9 @@ keys.globalkeys = gears.table.join(
{description = "application launcher", group = "launcher"} {description = "application launcher", group = "launcher"}
), ),
-- Quake
awful.key({ }, "F9", function () awful.screen.focused().quake:toggle() end),
-- ========================================= -- =========================================
-- FUNCTION KEYS -- FUNCTION KEYS
-- ========================================= -- =========================================

View File

@ -12,6 +12,8 @@
local awful = require("awful") local awful = require("awful")
local gears = require("gears") local gears = require("gears")
local lain = require("lain")
local quake = lain.util.quake({app="kitty", followtag=true, argname = '--class %s', extra="-e tmux", height=0.3})
local pastel = {} local pastel = {}
@ -35,7 +37,6 @@ pastel.initialize = function()
for i = 1, 9, 1 for i = 1, 9, 1
do do
awful.tag.add(i, { awful.tag.add(i, {
icon = gears.filesystem.get_configuration_dir() .. "/icons/tags/pastel/" .. i .. ".png",
icon_only = true, icon_only = true,
layout = awful.layout.suit.tile, layout = awful.layout.suit.tile,
screen = s, screen = s,
@ -43,6 +44,8 @@ pastel.initialize = function()
}) })
end end
s.quake = quake
-- Only add the top panel on the primary screen -- Only add the top panel on the primary screen
if s.index == 1 then if s.index == 1 then
top_panel.create(s) top_panel.create(s)

View File

@ -8,7 +8,6 @@
-- Standard awesome libraries -- Standard awesome libraries
local gears = require("gears") local gears = require("gears")
local naughty = require("naughty")
local awful = require("awful") local awful = require("awful")
@ -78,9 +77,13 @@ awful.rules.rules = create_rules(keys.clientkeys, keys.clientbuttons)
-- Define layouts -- Define layouts
awful.layout.layouts = { awful.layout.layouts = {
awful.layout.suit.tile,
awful.layout.suit.floating, awful.layout.suit.floating,
awful.layout.suit.max, awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
} }
-- remove gaps if layout is set to max -- remove gaps if layout is set to max

View File

@ -89,9 +89,11 @@ theme.titlebars_enabled = false
-- Define layout icons -- Define layout icons
theme.layout_tile = "~/.config/awesome/icons/layouts/tiled.png" -- theme.layout_tile = "~/.config/awesome/icons/layouts/tiled.png"
theme.layout_floating = "~/.config/awesome/icons/layouts/floating.png" -- theme.layout_tiletop = "~/.config/awesome/icons/layouts/tiled.png"
theme.layout_max = "~/.config/awesome/icons/layouts/maximized.png" -- theme.layout_tileleft = "~/.config/awesome/icons/layouts/tiled.png"
-- theme.layout_floating = "~/.config/awesome/icons/layouts/floating.png"
-- theme.layout_max = "~/.config/awesome/icons/layouts/maximized.png"
theme.icon_theme = "Tela-dark" theme.icon_theme = "Tela-dark"