Switched Screens

This commit is contained in:
Luca 2022-11-23 03:44:40 +01:00
parent a004c8c24d
commit a9bebf4efd
11 changed files with 97 additions and 18 deletions

View file

@ -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 :

View file

@ -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

View file

@ -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")

View file

@ -0,0 +1 @@
require'colorizer'.setup()

View file

@ -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",
}

View file

@ -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,

View file

@ -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"