X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/720ad852befbe0f98289fba926a1b073bbe05a55..ba960eb54c28eed4ff1329df036677c0b48171fb:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 1d382ad..b554e81 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -413,10 +413,11 @@ end local function initialise_to_autorandr_profile() local profile + profile = nil local function process_line(line) if profile then return end - local match = string.match(line, "^([^%s]+) %(detected%)$") + local match = string.match(line, "^([^%s]+) %(detected%)") if match then profile = match end @@ -437,7 +438,7 @@ local function initialise_to_autorandr_profile() end awful.spawn.with_line_callback('autorandr', { - stderr = process_line, + stdout = process_line, output_done = output_done, exit = handle_exit }) @@ -978,7 +979,7 @@ awful.rules.rules = { { rule = { class = "URxvt" }, properties = { size_hints_honor = false, } }, - { rule = { instance = "irc" }, + { rule = { instance = "irc" }, callback = move_to_tag_by_name(nil, "irc"), }, { rule = { class = "Revolt" }, @@ -996,12 +997,23 @@ awful.rules.rules = { { rule_any = { class = { "MuPDF", "Wicd-client.py", + "Gxmessage", + "Pinentry" }}, properties = { floating = true, + maximized = false, focus = true, - placement = function(c) - float_client_in_the_middle_with_margins(c, 50, 25) - end, + placement = awful.placement.centered, + }, + }, + { rule_any = { instance = { + "tridactyl-edit", + "libreoffice" + }}, + properties = { floating = true, + maximized = false, + focus = true, + placement = awful.placement.centered, }, }, -- { rule_any = { class = {