Removed unnecessary hotkeys, added hotkey to toggle client titlebar

This commit is contained in:
Mutzi 2023-01-14 19:35:31 +01:00
parent bc96e74916
commit eaf02a52d2

View File

@ -409,12 +409,13 @@ globalkeys = mytable.join(
{description = "dropdown application", group = "launcher"}), {description = "dropdown application", group = "launcher"}),
-- Widgets popups -- Widgets popups
awful.key({ altkey, }, "c", function () if beautiful.cal then beautiful.cal.show(7) end end, --[[ awful.key({ altkey, }, "c", function () if beautiful.cal then beautiful.cal.show(7) end end,
{description = "show calendar", group = "widgets"}), {description = "show calendar", group = "widgets"}),
awful.key({ altkey, }, "h", function () if beautiful.fs then beautiful.fs.show(7) end end, awful.key({ altkey, }, "h", function () if beautiful.fs then beautiful.fs.show(7) end end,
{description = "show filesystem", group = "widgets"}), {description = "show filesystem", group = "widgets"}),
awful.key({ altkey, }, "w", function () if beautiful.weather then beautiful.weather.show(7) end end, awful.key({ altkey, }, "w", function () if beautiful.weather then beautiful.weather.show(7) end end,
{description = "show weather", group = "widgets"}), {description = "show weather", group = "widgets"}),
]]--
-- Screen brightness -- Screen brightness
--awful.key({ }, "XF86MonBrightnessUp", function () os.execute("xbacklight -inc 10") end, --awful.key({ }, "XF86MonBrightnessUp", function () os.execute("xbacklight -inc 10") end,
@ -498,11 +499,11 @@ globalkeys = mytable.join(
]]-- ]]--
-- Copy primary to clipboard (terminals to gtk) -- Copy primary to clipboard (terminals to gtk)
awful.key({ modkey }, "c", function () awful.spawn.with_shell("xsel | xsel -i -b") end, --awful.key({ modkey }, "c", function () awful.spawn.with_shell("xsel | xsel -i -b") end,
{description = "copy terminal to gtk", group = "hotkeys"}), -- {description = "copy terminal to gtk", group = "hotkeys"}),
-- Copy clipboard to primary (gtk to terminals) -- Copy clipboard to primary (gtk to terminals)
awful.key({ modkey }, "v", function () awful.spawn.with_shell("xsel -b | xsel") end, --awful.key({ modkey }, "v", function () awful.spawn.with_shell("xsel -b | xsel") end,
{description = "copy gtk to terminal", group = "hotkeys"}), -- {description = "copy gtk to terminal", group = "hotkeys"}),
-- User programs -- User programs
--awful.key({ modkey }, "q", function () awful.spawn(browser) end, --awful.key({ modkey }, "q", function () awful.spawn(browser) end,
@ -590,7 +591,13 @@ clientkeys = mytable.join(
c.maximized_horizontal = not c.maximized_horizontal c.maximized_horizontal = not c.maximized_horizontal
c:raise() c:raise()
end , end ,
{description = "(un)maximize horizontally", group = "client"}) {description = "(un)maximize horizontally", group = "client"}),
-- Show/hide titlebar
awful.key({ modkey, "Control" }, "s", function (c)
awful.titlebar.toggle(c)
c:raise()
end,
{description = "toggle titlebar", group = "client"})
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.