X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b3043789e40dea7bd16bf2bbf0cd5da05d7277f5..1f3a80d5d88e84b90356fcde064cd6beeaed0018:/.config/awesome/rc.lua?ds=sidebyside diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index acf457a..eaa6451 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -472,7 +472,7 @@ default_tags = gears.table.join(default_tags, { selected = true, exec_once = { terminal .. " -name irc -e env MOSH_TITLE_NOPREFIX=true mosh -4 -- irc-host tmux new -As irc irssi" }, instance = { "irc" }, - targets = { "catalyst/eDP1", "mtvic/eDP1" }, + targets = { "catalyst/eDP1", "mtvic/eDP1", "lehel/DisplayPort-2" }, }, { name = "[m]", @@ -483,7 +483,7 @@ default_tags = gears.table.join(default_tags, { selected = true, exec_once = { "revolt" }, instance = { "Revolt" }, - targets = { "catalyst/eDP1", "mtvic/eDP1" }, + targets = { "catalyst/eDP1", "mtvic/eDP1", "lehel/DisplayPort-2" }, }, { name = "dflt", @@ -500,7 +500,7 @@ default_tags = gears.table.join(default_tags, { layout = layouts.default, exec_once = { "thunderbird" }, class = { "Thunderbird" }, - targets = { "catalyst/HDMI1", "mtvic/eDP1" }, + targets = { "catalyst/HDMI1", "mtvic/eDP1", "lehel/DisplayPort-1" }, }, { name = "chr", @@ -509,7 +509,7 @@ default_tags = gears.table.join(default_tags, { layout = layouts.default, exec_once = { "chromium" }, class = { "Chromium" }, - targets = { "catalyst/HDMI1", "mtvic/eDP1" }, + targets = { "catalyst/HDMI1", "mtvic/eDP1", "lehel/DisplayPort-1" }, }, { name = "ffx", @@ -518,7 +518,7 @@ default_tags = gears.table.join(default_tags, { layout = layouts.default, exec_once = { "firefox" }, class = { "Firefox" }, - targets = { "catalyst/HDMI1", "mtvic/eDP1" }, + targets = { "catalyst/HDMI1", "mtvic/eDP1", "lehel/DisplayPort-1" }, }, }) @@ -695,6 +695,7 @@ globalkeys = gears.table.join( bg_cursor = '#ff0000', textbox = widget, history_path = awful.util.get_cache_dir() .. "/history", + completion_callback = awful.completion.shell, hooks = { -- Replace the 'normal' Return with a custom one {{ }, 'Return', function(command) @@ -753,11 +754,11 @@ globalkeys = gears.table.join( awful.key({ modkey, }, "d", th.delete_tag, {description = "delete the current tag", group = "tag"}), awful.key({ modkey, "Shift", }, "a", function() - move_to_new_tag(nil,nil,true,true,true) + th.move_to_new_tag(nil,nil,true,true,true) end, {description = "add a volatile tag with the focused client", group = "tag"}), awful.key({ modkey, "Shift", "Control" }, "a", function() - move_to_new_tag(nil,nil,false,true,true) + th.move_to_new_tag(nil,nil,false,true,true) end, {description = "add a permanent tag with the focused client", group = "tag"}), awful.key({ modkey, "Mod1" }, "a", th.copy_tag, @@ -999,22 +1000,22 @@ awful.rules.rules = { end, }, }, - { rule_any = { class = { - "Gscan2pdf", - "Gimp", - }, - instance = { - "libreoffice", - } - }, - properties = { new_tag = { - layout = layouts.maximised, - volatile = true, - }, - switchtotag = true, - focus = true, - }, - }, +-- { rule_any = { class = { +-- "Gscan2pdf", +-- "Gimp", +-- }, +-- instance = { +-- "libreoffice", +-- } +-- }, +-- properties = { new_tag = { +-- layout = layouts.maximised, +-- volatile = true, +-- }, +-- switchtotag = true, +-- focus = true, +-- }, +-- }, --XX-- { rule = { class = "Gscan2pdf" }, --XX-- properties = { --XX-- switchtotag = true @@ -1138,10 +1139,10 @@ client.connect_signal("request::activate", function(c, context, hints) }, context) then gears.timer.delayed_call(function() -- we need a delayed call so that we execute *after layout changes - centre_mouse_on_area(client.focus) + if hints.raise and c == client.focus and client.focus:isvisible() then + move_mouse_to_area(client.focus) + end end) - else - dbg.dump(c, context, hints) end end)