arnaucube
arnaucube/configsPublic Self-hosted repository
nvim: add lean config. sway: add ralt keys (ç,ñ)
arnaucube git@arnaucube.com
Tue, 01 Sep 2026 10:01:40 +0200
commit

14f6bf931eb2d7d19e00704565b0c0567ee7cfb6

parent

b4cb7bea83557551c3bcb687904d01d6144baeef

2 files changed, 26 insertions(+), 8 deletions(-)

jump to
M init.vim → init.vim

@@ -48,6 +48,14 @@ " set hidden

let g:rustfmt_fail_silently = 0 let g:rustfmt_autosave = 1 +" Lean +Plug 'Julian/lean.nvim' +" let g:lean_config = {'mappings' = v:true} +let g:lean_config = { + \ 'mappings': v:true, + \ } + + " javascript Plug 'jelera/vim-javascript-syntax'
M sway/config → sway/config

@@ -32,6 +32,8 @@ # home setup:

output HDMI-A-1 resolution 3840x2160 position 1920 0 # output eDP-1 resolution 1920x1200 position 0 0 transform 90 output DSI-1 resolution 1920x1200 position 0 0 transform 90 +# output DSI-1 position 0 0 +output DP-2 resolution 1920x1200 position 1920 0 # portable external monitor setup: # output DP-1 resolution 3840x2160 position 1920 0

@@ -92,7 +94,7 @@ # Change normal to inverse to use left mouse button for resizing and right

# mouse button for dragging. floating_modifier $mod normal - # Reload the configuration file + # Reload the configuration file / restart sway from config file bindsym $mod+Shift+c reload # Exit sway (logs you out of your Wayland session)

@@ -249,20 +251,28 @@ bindsym $mod+Control+b exec sed -i 's/\"Regular\"#tag_for_shortcut/\"Bold\"#tag_for_shortcut/g' ~/.config/alacritty/alacritty.toml

bindsym $mod+Control+Shift+b exec sed -i 's/\"Bold\"#tag_for_shortcut/\"Regular\"#tag_for_shortcut/g' ~/.config/alacritty/alacritty.toml # move current workspace to another display -bindsym $mod+Control+k move workspace to output HDMI-A-1 -bindsym $mod+Control+j move workspace to output eDP-1 +# bindsym $mod+Control+k move workspace to output HDMI-A-1 +# bindsym $mod+Control+j move workspace to output eDP-1 # bindsym $mod+Control+j move workspace to output DP-1 # bindsym $mod+Control+k move workspace to output eDP-1 # bindsym $mod+Control+k move workspace to output DP-1 +bindsym $mod+Control+j move workspace to output DSI-1 +bindsym $mod+Control+k move workspace to output DP-2 -# remap capslock to control -input * { - xkb_options ctrl:nocaps +input type:keyboard { + xkb_layout us + # xkb_options: + # - ctrl:nocaps = remap capslock to control + # - compose:ralt = special characters, ie. + # RightAlt, ~, n = ñ + # RightAlt, comma, c = ç + xkb_options "ctrl:nocaps,compose:ralt" } # for screen sharing -exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP -exec dbus-update-activation-environment WAYLAND_DISPLAY +#exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP +#exec dbus-update-activation-environment WAYLAND_DISPLAY + # systemctl --user daemon-reexec # systemctl --user restart pipewire # systemctl --user restart xdg-desktop-portal