This commit is contained in:
Jaroslaw Konik 2023-07-17 13:03:51 +02:00
parent ae864d114a
commit 48d2295fc3
2 changed files with 18 additions and 12 deletions

View file

@ -46,13 +46,13 @@ floating_modifier $mod
# move tiling windows via drag & drop by left-clicking into the title bar, # move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier. # or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar # tiling_drag modifier titlebar
# start a terminal # start a terminal
bindsym $mod+Return exec kitty bindsym $mod+Return exec kitty
# kill focused window # kill focused window
bindsym $mod+Shift+q [con_id="__focused__" class="^(?!thunderbird|Caprine|discord|Spotify).*$"] kill bindsym $mod+Shift+q [con_id="__focused__" title="^(?!Messenger).*$" class="^(?!thunderbird|Caprine|discord|Spotify).*$"] kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
# A more modern dmenu replacement is rofi: # A more modern dmenu replacement is rofi:
@ -231,6 +231,7 @@ for_window [class="Bitwarden"] floating enable
for_window [class="steam"] floating enable for_window [class="steam"] floating enable
for_window [class="dolphin"] floating enable for_window [class="dolphin"] floating enable
for_window [class="Caprine"] floating enable move scratchpad for_window [class="Caprine"] floating enable move scratchpad
for_window [title="Messenger"] floating enable move scratchpad
for_window [class="discord"] floating enable move scratchpad for_window [class="discord"] floating enable move scratchpad
for_window [class="thunderbird"] floating enable move scratchpad for_window [class="thunderbird"] floating enable move scratchpad
for_window [class="Slack"] floating enable move scratchpad for_window [class="Slack"] floating enable move scratchpad

View file

@ -95,6 +95,11 @@ require("lazy").setup({
"edluffy/hologram.nvim", "edluffy/hologram.nvim",
"xiyaowong/transparent.nvim", "xiyaowong/transparent.nvim",
"ellisonleao/gruvbox.nvim", "ellisonleao/gruvbox.nvim",
{
"akinsho/toggleterm.nvim",
version = "*",
opts = { winbar = { enabled = true }, shade_terminals = false, start_in_insert = true },
},
}) })
require("transparent").setup() require("transparent").setup()
@ -263,16 +268,16 @@ vim.api.nvim_create_autocmd("BufEnter", {
end, end,
}) })
vim.api.nvim_create_autocmd("TermOpen", { -- vim.api.nvim_create_autocmd("TermOpen", {
group = vim.api.nvim_create_augroup("HideTerminal", { clear = true }), -- group = vim.api.nvim_create_augroup("HideTerminal", { clear = true }),
pattern = "term://*", -- pattern = "term://*",
callback = function() -- callback = function()
vim.cmd("set bufhidden=delete") -- vim.cmd("set bufhidden=delete")
vim.cmd("set nobl") -- vim.cmd("set nobl")
vim.cmd("PinBuffer") -- vim.cmd("PinBuffer")
end, -- end,
}) -- })
--
vim.api.nvim_create_autocmd("TermClose", { vim.api.nvim_create_autocmd("TermClose", {
group = vim.api.nvim_create_augroup("UnpinTerminal", { clear = true }), group = vim.api.nvim_create_augroup("UnpinTerminal", { clear = true }),
pattern = "term://*", pattern = "term://*",