Added battery, small fixes, idk
This commit is contained in:
@@ -23,7 +23,8 @@ local keys = gears.table.join(
|
||||
local buttons = gears.table.join(
|
||||
awful.button({}, 1, function(c) c:emit_signal('request::activate', 'mouse_click', { raise = true }) end),
|
||||
awful.button({ modkey }, 1, function(c) c:emit_signal('request::activate', 'mouse_click', { raise = true }) awful.mouse.client.move(c) end),
|
||||
awful.button({ modkey }, 3, function(c) c:emit_signal('request::activate', 'mouse_click', { raise = true }) awful.mouse.client.resize(c) end)
|
||||
awful.button({ modkey }, 3, function(c) c:emit_signal('request::activate', 'mouse_click', { raise = true }) awful.mouse.client.resize(c) end),
|
||||
awful.button({ modkey }, 2, function(c) c:kill() end)
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -49,3 +49,9 @@ end)
|
||||
client.connect_signal('mouse::enter', function(c) c:emit_signal('request::activate', 'mouse_enter', { raise = false }) 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)
|
||||
|
||||
client.connect_signal("property::minimized", function(c)
|
||||
if c.no_minimize then
|
||||
c.minimized = false
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -18,8 +18,10 @@ rules.append_rules({
|
||||
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
|
||||
size_hints_honor = false,
|
||||
no_border = false,
|
||||
titlebars_enabled = false
|
||||
}
|
||||
titlebars_enabled = false,
|
||||
no_minimize = false,
|
||||
},
|
||||
--callback = function(c) print('name ', c.name, ' class ', c.class) end
|
||||
}, {
|
||||
rule_any = {
|
||||
class = { 'Tor Browser' },
|
||||
@@ -32,10 +34,10 @@ rules.append_rules({
|
||||
},
|
||||
properties = { floating = true }
|
||||
}, {
|
||||
rule_any = { class = { 'firefox', 'factorio', 'Blender' } },
|
||||
rule_any = { class = { 'firefox', 'factorio', 'Blender', 'Godot' } },
|
||||
properties = { opacity = 1, maximized = false, floating = false },
|
||||
}, {
|
||||
rule = { class = 'mpv' },
|
||||
rule_any = { class = { 'mpv', 'jellyfinmediaplayer' } },
|
||||
properties = { fullscreen = true },
|
||||
}, {
|
||||
rule = { class = 'supcom-fa' },
|
||||
@@ -47,5 +49,7 @@ rules.append_rules({
|
||||
no_border = true,
|
||||
}
|
||||
},
|
||||
{ rule = { class = { 'krusader' } }, properties = { ontop = true } },
|
||||
{ rule_any = { type = { 'normal', 'dialog' } }, properties = { titlebars_enabled = true } },
|
||||
--{ rule_any = { name = { 'Counter-Strike 2' }, class = { 'cs2' } }, properties = { no_minimize = true } },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user