From c70e469e2fd2b42fa1bb4e38cb56c1e839620422 Mon Sep 17 00:00:00 2001 From: whiteman808 Date: Wed, 11 Mar 2026 20:00:30 +0100 Subject: [PATCH] [profiles/desktop] change zprofile and fix neovim copy-paste under wayland --- profiles/desktop/.config/nvim/lua/config/settings.lua | 8 ++++++-- profiles/desktop/.zprofile | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/profiles/desktop/.config/nvim/lua/config/settings.lua b/profiles/desktop/.config/nvim/lua/config/settings.lua index 70a5645..9c6ba1c 100644 --- a/profiles/desktop/.config/nvim/lua/config/settings.lua +++ b/profiles/desktop/.config/nvim/lua/config/settings.lua @@ -25,8 +25,12 @@ vim.keymap.set(all_modes, '', '', { noremap = true, silent = true }) vim.keymap.set(all_modes, '', '', { noremap = true, silent = true }) vim.keymap.set(all_modes, '', '', { 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' diff --git a/profiles/desktop/.zprofile b/profiles/desktop/.zprofile index 0ec615a..f2416d1 100644 --- a/profiles/desktop/.zprofile +++ b/profiles/desktop/.zprofile @@ -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