Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created October 18, 2022 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoelzro/34b013d96ef8f0d1cb51797975957281 to your computer and use it in GitHub Desktop.
Save hoelzro/34b013d96ef8f0d1cb51797975957281 to your computer and use it in GitHub Desktop.
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