Switched Screens
This commit is contained in:
parent
a004c8c24d
commit
a9bebf4efd
11 changed files with 97 additions and 18 deletions
|
@ -58,7 +58,9 @@ awful.keyboard.append_global_keybindings({
|
|||
|
||||
awful.key({ modkey, shift }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}),
|
||||
|
||||
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}),
|
||||
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}),
|
||||
|
||||
awful.key({ modkey, shift }, "Return", function () awful.spawn("xterm") end, {description = "open a terminal", group = "launcher"}),
|
||||
-- awful.key({ modkey }, "p", function() menubar.show() end,
|
||||
-- {description = "show the menubar", group = "launcher"}),
|
||||
})
|
||||
|
@ -243,7 +245,8 @@ awful.keyboard.append_global_keybindings({
|
|||
-- awful.key({ modkey }, "=", function () awful.screen.focused().systray.visible = not awful.screen.focused().systray.visible end, {description = "Toggle systray visibility", group = "custom"})
|
||||
--})
|
||||
awful.keyboard.append_global_keybindings({
|
||||
awful.key({alt}, "Tab", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
|
||||
awful.key({ alt }, "Tab", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
|
||||
awful.key({ alt }, "t", function() awful.titlebar.toggle(client.focus) end),
|
||||
})
|
||||
|
||||
-- Client :
|
||||
|
|
|
@ -122,9 +122,9 @@ local slide = rubato.timed {
|
|||
|
||||
-- Timer of sidebar's death
|
||||
sidebar.timer = gears.timer {
|
||||
timeout = 0.5,
|
||||
single_shot = true,
|
||||
callback = function()
|
||||
timeout = 0.5,
|
||||
single_shot = true,
|
||||
callback = function()
|
||||
sidebar.visible = not sidebar.visible
|
||||
end
|
||||
}
|
||||
|
@ -132,10 +132,12 @@ sidebar.timer = gears.timer {
|
|||
-- Toggle function
|
||||
sidebar.toggle = function(s)
|
||||
if sidebar.visible then
|
||||
slide.target = awful.screen.focused().geometry.x - sidebar.width
|
||||
--slide.target = awful.screen.focused().geometry.x - sidebar.width
|
||||
slide.target = awful.screen.focused().geometry.x + sidebar.width
|
||||
sidebar.timer:start()
|
||||
else
|
||||
slide.target = awful.screen.focused().geometry.x + dpi(10)
|
||||
--slide.target = awful.screen.focused().geometry.x + dpi(10)
|
||||
slide.target = awful.screen.focused().geometry.x - dpi(195)
|
||||
sidebar.visible = not sidebar.visible
|
||||
end
|
||||
end
|
||||
|
|
|
@ -39,6 +39,9 @@ require("lsp-config.lspsaga")
|
|||
require("lsp-config.completion")
|
||||
require("lsp-config.null-ls")
|
||||
|
||||
-- # Colorizer :
|
||||
require("colorizer-config")
|
||||
|
||||
-- # Colorschames
|
||||
--require("colorschames.onedark")
|
||||
require("colorschames.catppuccin")
|
||||
|
|
1
home/.config/nvim/lua/colorizer-config/init.lua
Normal file
1
home/.config/nvim/lua/colorizer-config/init.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require'colorizer'.setup()
|
|
@ -26,12 +26,12 @@ local on_attach = function(client, bufnr)
|
|||
end
|
||||
|
||||
local servers = {
|
||||
"bashls",
|
||||
"cssls",
|
||||
"eslint",
|
||||
--"bashls",
|
||||
--"cssls",
|
||||
--"eslint",
|
||||
--"ltex",
|
||||
"sumneko_lua",
|
||||
"tsserver",
|
||||
--"tsserver",
|
||||
--"pyright",
|
||||
"jedi_language_server",
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ null_ls.setup({
|
|||
sources = sources,
|
||||
|
||||
on_attach = function(client)
|
||||
if client.resolved_capabilities.document_formatting then
|
||||
if client.server_capabilities.document_formatting then
|
||||
vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting()")
|
||||
end
|
||||
end,
|
||||
|
|
|
@ -47,7 +47,9 @@ return require("packer").startup(function()
|
|||
|
||||
-- # Startup :
|
||||
use("startup-nvim/startup.nvim")
|
||||
|
||||
|
||||
-- # Colorizer :
|
||||
use("norcalli/nvim-colorizer.lua")
|
||||
|
||||
-- # Colorscemes :
|
||||
--use "EdenEast/nightfox.nvim"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue