Did a lot of stuff
This commit is contained in:
@@ -8,7 +8,7 @@ local modkey = RC.vars.modkey
|
||||
function _M.get(globalkeys)
|
||||
for i = 1, 9 do
|
||||
globalkeys = gears.table.join(globalkeys,
|
||||
|
||||
|
||||
-- View tag only
|
||||
awful.key(
|
||||
{modkey},
|
||||
@@ -19,6 +19,7 @@ function _M.get(globalkeys)
|
||||
if tag then
|
||||
tag:view_only()
|
||||
end
|
||||
client.emit_signal("tag::switched")
|
||||
end,
|
||||
{description = "View Tag " .. i, group = "Tag"}
|
||||
),
|
||||
@@ -43,7 +44,7 @@ function _M.get(globalkeys)
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
awful.tag.viewtoggle(tag)
|
||||
client.focus:move_to_tag(tag)
|
||||
end
|
||||
end,
|
||||
{description = "Move focused client on tag " .. i, group = "Tag"}
|
||||
|
||||
@@ -10,7 +10,7 @@ function _M.get()
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"f",
|
||||
function (c)
|
||||
function(c)
|
||||
c.fullscreen = not c.fullscreen
|
||||
c:raise()
|
||||
end,
|
||||
@@ -19,24 +19,34 @@ function _M.get()
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"q",
|
||||
function (c)
|
||||
function(c)
|
||||
c:kill()
|
||||
end,
|
||||
{ description = "Close window", group = "Client" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey, "Shift" },
|
||||
{ modkey, "Control" },
|
||||
"Space",
|
||||
awful.client.floating.toggle,
|
||||
{ description = "Toggle floating window", group = "Client" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey, "Control" },
|
||||
"r",
|
||||
{ modkey},
|
||||
"m",
|
||||
function (c)
|
||||
awesome.restart()
|
||||
c.maximized = not c.maximized
|
||||
c:raise()
|
||||
end ,
|
||||
{description = "(un)maximize", group = "client"}
|
||||
),
|
||||
awful.key(
|
||||
{ modkey, "Control" },
|
||||
"m",
|
||||
function (c)
|
||||
c.maximized_vertical = not c.maximized_vertical
|
||||
c:raise()
|
||||
end,
|
||||
{ description = "Restart awesome", group = "Client" }
|
||||
{ description = "Unmaximize", group = "client"}
|
||||
)
|
||||
)
|
||||
return clientkeys
|
||||
|
||||
@@ -112,7 +112,7 @@ function _M.get()
|
||||
{ modkey },
|
||||
"Return",
|
||||
function ()
|
||||
awful.spawn(terminal)
|
||||
awful.spawn("alacritty -o font.size=8.0")
|
||||
end,
|
||||
{description = "Open terminal", group = "Launcher"}
|
||||
),
|
||||
@@ -280,6 +280,14 @@ function _M.get()
|
||||
end,
|
||||
{ descripton = "Start a Application", group = "Application" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey, "Shift" },
|
||||
"e",
|
||||
function ()
|
||||
awful.spawn("rofi -show power-menu -modi 'power-menu:~/.config/rofi/rofi-power-menu --choices=shutdown/reboot/logout/lockscreen' -theme ~/.config/rofi/powermenu/powermenu.rasi")
|
||||
end,
|
||||
{ descripton = "Open the exit window", group = "System" }
|
||||
),
|
||||
awful.key(
|
||||
{ },
|
||||
"Print",
|
||||
|
||||
Reference in New Issue
Block a user