Compare commits
No commits in common. "79411cf97dd2730728078586a6434ef2a08f09bd" and "067b02c69e000a6b0cf847017ddf4b828e404c9b" have entirely different histories.
79411cf97d
...
067b02c69e
|
@ -27,6 +27,16 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4"}, "x",
|
||||||
|
function ()
|
||||||
|
awful.screen.focused().mypromptbox:run()
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "Run prompt",
|
||||||
|
group = "Launcher"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "Return",
|
awful.key( {"Mod4"}, "Return",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(config.core.terminal)
|
awful.spawn(config.core.terminal)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
local layoutmanager = require("core.layouts.layoutmanager")
|
local layoutmanager = require("core.layouts.layoutmanager")
|
||||||
|
|
||||||
return gears.table.join(
|
return gears.table.join(
|
||||||
awful.key( {"Mod4"}, "+",
|
awful.key( {"Mod4"}, "j",
|
||||||
function ()
|
function ()
|
||||||
awful.tag.incmwfact( 0.05)
|
awful.tag.incmwfact( 0.05)
|
||||||
end,
|
end,
|
||||||
|
@ -11,7 +11,7 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key({"Mod4"}, "-",
|
awful.key({"Mod4"}, "h",
|
||||||
function ()
|
function ()
|
||||||
awful.tag.incmwfact(-0.05)
|
awful.tag.incmwfact(-0.05)
|
||||||
end,
|
end,
|
||||||
|
@ -21,7 +21,47 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4"}, ",",
|
awful.key( {"Mod4", "Shift"}, "h",
|
||||||
|
function ()
|
||||||
|
awful.tag.incnmaster(1, nil, true)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "increase the number of master clients",
|
||||||
|
group = "Layout"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4", "Shift"}, "l",
|
||||||
|
function ()
|
||||||
|
awful.tag.incnmaster(-1, nil, true)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "decrease the number of master clients",
|
||||||
|
group = "Layout"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4", "Control"}, "h",
|
||||||
|
function ()
|
||||||
|
awful.tag.incncol(1, nil, true)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "increase the number of columns",
|
||||||
|
group = "Layout"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4", "Control"}, "l",
|
||||||
|
function ()
|
||||||
|
awful.tag.incncol(-1, nil, true)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "decrease the number of columns",
|
||||||
|
group = "Layout"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4"}, "l",
|
||||||
function ()
|
function ()
|
||||||
layoutmanager:next()
|
layoutmanager:next()
|
||||||
end,
|
end,
|
||||||
|
@ -31,7 +71,7 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4"}, ".",
|
awful.key( {"Mod4"}, "k",
|
||||||
function ()
|
function ()
|
||||||
layoutmanager:next_alt()
|
layoutmanager:next_alt()
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -20,5 +20,19 @@ return gears.table.join(
|
||||||
description = "Shutdown",
|
description = "Shutdown",
|
||||||
group = "System"
|
group = "System"
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
awful.key( {"Mod4", "Control"}, "x",
|
||||||
|
function ()
|
||||||
|
-- requires sudoers rule
|
||||||
|
awful.spawn("sudo systemctl restart lightdm")
|
||||||
|
end,
|
||||||
|
|
||||||
|
{
|
||||||
|
description = "Restart lightdm",
|
||||||
|
group = "System"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
--[[
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
awful.key({"Mod4", "Control"}, "j",
|
||||||
|
function ()
|
||||||
|
awful.screen.focus_relative( 1)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "focus the next screen",
|
||||||
|
group = "screen"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
awful.key({"Mod4", "Control"}, "k",
|
||||||
|
function ()
|
||||||
|
awful.screen.focus_relative(-1)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "focus the previous screen",
|
||||||
|
group = "screen"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- Bind all key numbers to tags.
|
||||||
|
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||||
|
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||||
|
for i = 1, 9 do
|
||||||
|
globalkeys = gears.table.join(globalkeys,
|
||||||
|
-- View tag only.
|
||||||
|
awful.key({ "Mod4" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
local screen = awful.screen.focused()
|
||||||
|
local tag = screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
tag:view_only()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "view tag #"..i, group = "tag"}),
|
||||||
|
-- Toggle tag display.
|
||||||
|
awful.key({ "Mod4", "Control" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
local screen = awful.screen.focused()
|
||||||
|
local tag = screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
awful.tag.viewtoggle(tag)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "toggle tag #" .. i, group = "tag"}),
|
||||||
|
-- Move client to tag.
|
||||||
|
awful.key({ "Mod4", "Shift" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
if client.focus then
|
||||||
|
local tag = client.focus.screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
client.focus:move_to_tag(tag)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "move focused client to tag #"..i, group = "tag"}),
|
||||||
|
-- Toggle tag on focused client.
|
||||||
|
awful.key({ "Mod4", "Control", "Shift" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
if client.focus then
|
||||||
|
local tag = client.focus.screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
client.focus:toggle_tag(tag)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "toggle focused client on tag #" .. i, group = "tag"})
|
||||||
|
)
|
||||||
|
end
|
||||||
|
--]]
|
|
@ -36,6 +36,17 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4"}, "f",
|
||||||
|
function (c)
|
||||||
|
c.fullscreen = not c.fullscreen
|
||||||
|
c:raise()
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "toggle fullscreen",
|
||||||
|
group = "client"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4", "Shift"}, "c",
|
awful.key( {"Mod4", "Shift"}, "c",
|
||||||
function (c)
|
function (c)
|
||||||
c:kill()
|
c:kill()
|
||||||
|
@ -46,17 +57,7 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "Return",
|
awful.key( {"Mod4", "Control"}, "space",
|
||||||
function (c)
|
|
||||||
c:swap(awful.client.getmaster())
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "move to master",
|
|
||||||
group = "client"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "f",
|
|
||||||
awful.client.floating.toggle,
|
awful.client.floating.toggle,
|
||||||
{
|
{
|
||||||
description = "toggle floating",
|
description = "toggle floating",
|
||||||
|
@ -64,13 +65,12 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "g",
|
awful.key( {"Mod4", "Control"}, "Return",
|
||||||
function (c)
|
function (c)
|
||||||
c.fullscreen = not c.fullscreen
|
c:swap(awful.client.getmaster())
|
||||||
c:raise()
|
|
||||||
end,
|
end,
|
||||||
{
|
{
|
||||||
description = "toggle fullscreen",
|
description = "move to master",
|
||||||
group = "client"
|
group = "client"
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
@ -103,5 +103,27 @@ return gears.table.join(
|
||||||
{
|
{
|
||||||
description = "(un)maximize", group = "client"
|
description = "(un)maximize", group = "client"
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4", "Control"}, "m",
|
||||||
|
function (c)
|
||||||
|
c.maximized_vertical = not c.maximized_vertical
|
||||||
|
c:raise()
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "(un)maximize vertically",
|
||||||
|
group = "client"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4", "Shift"}, "m",
|
||||||
|
function (c)
|
||||||
|
c.maximized_horizontal = not c.maximized_horizontal
|
||||||
|
c:raise()
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "(un)maximize horizontally",
|
||||||
|
group = "client"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,5 +19,40 @@ return gears.table.join(
|
||||||
description = "Lower brightness",
|
description = "Lower brightness",
|
||||||
group = "System"
|
group = "System"
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( { "Mod4" }, "o",
|
||||||
|
function ()
|
||||||
|
backlight.redshift(5600)
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "Default redshift",
|
||||||
|
group = "System"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( { "Mod4", "Shift" }, "o",
|
||||||
|
function ()
|
||||||
|
backlight.reset_redshift()
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "Reset redshift",
|
||||||
|
group = "System"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( { "Mod4", "Shift", "Control" }, "o",
|
||||||
|
function ()
|
||||||
|
backlight.reset_redshift()
|
||||||
|
awful.prompt.run {
|
||||||
|
prompt = "<b>Color temperature: </b>",
|
||||||
|
textbox = awful.screen.focused().mypromptbox.widget,
|
||||||
|
exe_callback = backlight.redshift
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "Set redshift",
|
||||||
|
group = "System"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -50,7 +50,6 @@ backlight.backlight_down = function()
|
||||||
backlight.exec_hooks()
|
backlight.exec_hooks()
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
|
||||||
backlight.redshift = function(temp)
|
backlight.redshift = function(temp)
|
||||||
awful.spawn("redshift -O " .. tostring(temp), false)
|
awful.spawn("redshift -O " .. tostring(temp), false)
|
||||||
end
|
end
|
||||||
|
@ -58,7 +57,6 @@ end
|
||||||
backlight.reset_redshift = function()
|
backlight.reset_redshift = function()
|
||||||
awful.spawn("redshift -x", false)
|
awful.spawn("redshift -x", false)
|
||||||
end
|
end
|
||||||
--]]
|
|
||||||
|
|
||||||
|
|
||||||
return backlight
|
return backlight
|
||||||
|
|
|
@ -3,7 +3,7 @@ script = script .. " "
|
||||||
|
|
||||||
return {
|
return {
|
||||||
keybinds = gears.table.join(
|
keybinds = gears.table.join(
|
||||||
awful.key( {"Mod4"}, "l",
|
awful.key( {"Mod4"}, "a",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(script .. beautiful.icons.lockicon, false)
|
awful.spawn(script .. beautiful.icons.lockicon, false)
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -2,11 +2,9 @@
|
||||||
local script = conf_dir .. "modules/screenshot/screenshot.fish"
|
local script = conf_dir .. "modules/screenshot/screenshot.fish"
|
||||||
script = script .. " "
|
script = script .. " "
|
||||||
|
|
||||||
--[[
|
|
||||||
local function capture(source, target)
|
local function capture(source, target)
|
||||||
awful.spawn(script .. "capture " .. source .. " " .. target, false)
|
awful.spawn(script .. "capture " .. source .. " " .. target, false)
|
||||||
end
|
end
|
||||||
]]--
|
|
||||||
|
|
||||||
local function flameshot()
|
local function flameshot()
|
||||||
awful.spawn("flameshot gui", false)
|
awful.spawn("flameshot gui", false)
|
||||||
|
@ -15,6 +13,17 @@ end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
keybinds = gears.table.join(
|
keybinds = gears.table.join(
|
||||||
|
awful.key( {"Control"}, "Print",
|
||||||
|
function ()
|
||||||
|
capture("region", "ocr")
|
||||||
|
end,
|
||||||
|
|
||||||
|
{
|
||||||
|
description = "OCR a region to the clipboard",
|
||||||
|
group = "Desktop"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
awful.key( {}, "Print",
|
awful.key( {}, "Print",
|
||||||
function ()
|
function ()
|
||||||
flameshot()
|
flameshot()
|
||||||
|
|
Loading…
Reference in New Issue