[profiles/desktop] change zprofile and fix neovim copy-paste under wayland

This commit is contained in:
2026-03-11 20:00:30 +01:00
parent 51b9f0b312
commit c70e469e2f
2 changed files with 8 additions and 4 deletions

View File

@@ -25,8 +25,12 @@ vim.keymap.set(all_modes, '<Down>', '<Nop>', { noremap = true, silent = true })
vim.keymap.set(all_modes, '<Left>', '<Nop>', { noremap = true, silent = true })
vim.keymap.set(all_modes, '<Right>', '<Nop>', { noremap = true, silent = true })
-- clipboard
vim.keymap.set('v', 'y', '"+y', { noremap = true, silent = true })
vim.keymap.set('n', 'y', '"+y', { noremap = true, silent = true })
vim.o.number = true -- display line numbers
vim.opt.clipboard:append({ 'unnamedplus', 'unnamed' }) -- always use clipboard in x11
-- vim.opt.clipboard:append({ 'unnamedplus', 'unnamed' }) -- always use clipboard in x11
vim.o.encoding = 'UTF-8' -- sets the character encoding used inside vim
vim.o.title = true -- when on, the title of the window will be set to the value of 'titlestring'
vim.o.signcolumn = 'yes'
@@ -114,4 +118,4 @@ vim.g.html_indent_script1 = 'auto'
vim.g.html_indent_style1 = 'auto'
-- set cursor
vim.opt.guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50"
vim.opt.guicursor = 'n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50'

View File

@@ -6,8 +6,8 @@ export GRIM_DEFAULT_DIR="${HOME}/Pictures/Screenshots"
export ROFI_PASS_BACKEND="wtype"
export ROFI_PASS_CLIPBOARD_BACKEND="wl-clipboard"
if [[ -n "${START_X11}" ]]; then
unset START_X11
if [[ -n "${START_WM}" ]]; then
unset START_WM
exec sway
logout
fi