Created
October 18, 2022 18:07
-
-
Save hoelzro/34b013d96ef8f0d1cb51797975957281 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local rules = named_rule_builder() -- *waves hands* | |
rules.manager_logger = { | |
rule = {}, | |
callback = manage_log.record, | |
} | |
rules.generic_properties = { | |
rule = {}, | |
properties = { | |
border_width = beautiful.border_width, | |
border_color = beautiful.border_normal, | |
focus = true, | |
keys = clientkeys, | |
buttons = clientbuttons, | |
floating = false, | |
}, | |
} | |
rules.chromium = { | |
rule = { | |
class = 'Chromium', | |
}, | |
properties = { | |
keys = chromiumkeys, | |
}, | |
} | |
rules.slack = { | |
rule = { | |
class = 'Slack', | |
}, | |
properties = { | |
buttons = slackbuttons, | |
keys = slackkeys, | |
}, | |
} | |
rules.keepass = { | |
rules = { | |
instance = 'keepassxc', | |
}, | |
properties = { | |
keys = keepasskeys, | |
}, | |
} | |
rules.steam = { | |
rule = { | |
class = 'Steam', | |
}, | |
properties = { | |
floating = true, | |
}, | |
} | |
rules.splash = { | |
rule = { | |
type = 'splash', | |
}, | |
properties = { | |
floating = true, | |
}, | |
} | |
rules.dialog = { | |
rule = { | |
type = 'dialog', | |
}, | |
properties = { | |
floating = true, | |
}, | |
} | |
rules.qtqmlviewer = { | |
rule = { | |
class = 'QtQmlViewer', | |
}, | |
properties = { | |
floating = true, | |
}, | |
} | |
rules.sshaskpass = { | |
rule = { | |
class = 'SshAskpass', | |
}, | |
properties = { | |
floating = true, | |
}, | |
} | |
rules.transient_for = { | |
rule = {}, | |
properties = { | |
size_hints_honor = false, | |
}, | |
} | |
function rules.transient_for.callback(client) | |
if client.transient_for then | |
awful.client.floating.set(client, true) | |
client:move_to_screen(client.transient_for.screen) | |
client:move_to_tag(client.transient_for.first_tag) | |
end | |
end | |
awful.rules.rules = rules:build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment