Skip to content

Commit

Permalink
awesome: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek committed Aug 14, 2021
1 parent 5da9dc3 commit ae4cc1f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
11 changes: 9 additions & 2 deletions awesome/compton.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
#no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -5;
Expand All @@ -9,7 +9,14 @@ shadow-opacity = 0.8;
shadow-red = 0.0;
shadow-green = 0.0;
shadow-blue = 0.0;
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", "class_g = 'TelegramDesktop'", "class_g = 'zoom'"];
shadow-exclude = [
"name = 'Notification'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'",
"class_g = 'TelegramDesktop'",
"class_g = 'zoom'"
];
shadow-ignore-shaped = true;
xinerama-shadow-crop = true;
menu-opacity = 0.8;
Expand Down
6 changes: 2 additions & 4 deletions awesome/mywibar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ function mywibar.create_wibar(s)

local volumewidget = pulseaudio_widget(pulseaudio, {
mixer = function ()
awful.spawn.with_shell(
"XDG_CURRENT_DESKTOP=Unity unity-control-center sound"
)
awful.spawn.with_shell("gnome-control-center sound")
end
})
local volumewidget_tooltip = awful.tooltip({
Expand Down Expand Up @@ -104,7 +102,7 @@ function mywibar.create_wibar(s)

-- @DOC_WIBAR@
-- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s })
s.mywibox = awful.wibar({ position = "top", screen = s, opacity = 0.95 })

-- @DOC_SETUP_WIDGETS@
-- Add widgets to the wibox
Expand Down
1 change: 1 addition & 0 deletions awesome/quake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ function QuakeConsole:show(client)

client.floating = true
client.size_hints_honor = false
client.no_border = true

-- Sticky and on top
client.ontop = true
Expand Down
24 changes: 15 additions & 9 deletions awesome/rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ beautiful.tooltip_bg = "#000000"
beautiful.tooltip_fg = "#ffffff"
beautiful.tooltip_border_width = 0
beautiful.tooltip_align = "right"
beautiful.border_focus = "#333333"

-- @DOC_DEFAULT_APPLICATIONS@
-- This is used later as the default terminal and editor to run.
Expand Down Expand Up @@ -384,14 +385,14 @@ globalkeys = awful.util.table.join(
-- Screenshots
awful.key({ modkey }, "\\",
function () end,
function () awful.spawn("gnome-screenshot -acB") end),
function () awful.spawn("gnome-screenshot -acB", false) end),
awful.key({ modkey, "Mod1" }, "\\",
function () awful.spawn("gnome-screenshot -wBc") end),
function () awful.spawn("gnome-screenshot -wBc", false) end),
awful.key({ modkey, "Shift" }, "\\",
function () end,
function () awful.spawn("gnome-screenshot -aB") end),
function () awful.spawn("gnome-screenshot -aB", false) end),
awful.key({ modkey, "Shift", "Mod1" }, "\\",
function () awful.spawn("gnome-screenshot -wB") end),
function () awful.spawn("gnome-screenshot -wB", false) end),

-- quakeconsole
awful.key({ modkey }, "`", function () quakeconsole:toggle() end),
Expand Down Expand Up @@ -655,15 +656,14 @@ client.connect_signal("unfocus", function(c)
end)

-- Arrange signal handler
-- See https://github.com/awesomeWM/awesome/issues/171#issuecomment-87880828
for s = 1, screen.count() do screen[s]:connect_signal("arrange",
function ()

local arrange_screen = function (s)
local clients = awful.client.visible(s)
local layout = awful.layout.getname(awful.layout.get(s))

for _, c in pairs(clients) do
-- No borders with only one humanly visible client
if c.maximized then
if c.maximized or c.no_border then
-- NOTE: also handled in focus, but that does not cover maximizing
-- from a tiled state (when the client had focus).
c.border_width = 0
Expand All @@ -680,7 +680,11 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange",
end
end
end
end)
end

-- See https://github.com/awesomeWM/awesome/issues/171#issuecomment-87880828
for s = 1, screen.count() do
screen[s]:connect_signal("arrange", function () arrange_screen(s) end)
end
-- }}}

Expand Down Expand Up @@ -713,6 +717,8 @@ local screen_state = {
-- Move client back to the screen and tag
-- TODO: restore full state
screen.connect_signal("added", function (s)
s:connect_signal("arrange", function () arrange_screen(s) end)

for _, c in ipairs(client.get()) do
if c.screen_evicted then
local tag = s.tags[c.first_tag.index]
Expand Down

0 comments on commit ae4cc1f

Please sign in to comment.