From e0bf147ccdce6a4fc53d9222039bb846e2c11e37 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Sun, 17 May 2020 19:40:41 -0300 Subject: [PATCH] adapt to dvorak --- neomutt/.config/neomutt/neomuttrc | 41 ++++++++------ nvim/.config/nvim/init.vim | 26 +++++++++ qutebrowser/.config/qutebrowser/config.py | 22 ++++++-- sway/.config/sway/config | 65 ++++++++++++----------- 4 files changed, 102 insertions(+), 52 deletions(-) diff --git a/neomutt/.config/neomutt/neomuttrc b/neomutt/.config/neomutt/neomuttrc index f25201f..c07811f 100644 --- a/neomutt/.config/neomutt/neomuttrc +++ b/neomutt/.config/neomutt/neomuttrc @@ -74,21 +74,30 @@ bind index \Cf noop # }}} # General rebindings{{{ +# index +# +bind index t next-entry +bind index n previous-entry + +bind index G last-entry +bind index gg first-entry + +bind index D delete-message +bind index U undelete-message + +bind index L limit +bind index h noop +bind index s display-message +bind index tag-entry + + bind attach view-mailcap bind attach l view-mailcap bind editor noop -bind index G last-entry -bind index gg first-entry bind pager,attach h exit -bind pager j next-line -bind pager k previous-line -bind pager l view-attachments -bind index D delete-message -bind index U undelete-message -bind index L limit -bind index h noop -bind index l display-message -bind index tag-entry +bind pager t next-line +bind pager n previous-line +bind pager s view-attachments bind browser h goto-parent macro browser h '..' "Go to parent folder" bind index,pager H view-raw-message @@ -105,8 +114,8 @@ bind pager \031 previous-line # Mouse wheel bind pager \005 next-line # Mouse wheel bind editor complete-query -#macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decodeabook --add-emailset pipe_decode=\$my_pipe_decode; unset my_pipe_decode" "add the sender address to abook" -#macro index \Cr "T~UN." "mark all messages as read" +macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decodeabook --add-emailset pipe_decode=\$my_pipe_decode; unset my_pipe_decode" "add the sender address to abook" +macro index \Cr "T~UN." "mark all messages as read" macro index O "mbsync -a" "run mbsync to sync all mail" #macro index \Cf "unset wait_keyread -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"" "show only messages matching a notmuch pattern" #macro index A "all\n" "show all messages (undo limit)" @@ -120,9 +129,9 @@ set sidebar_short_path = yes set sidebar_next_new_wrap = yes # set mail_check_stats set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?' -bind index,pager \Ck sidebar-prev -bind index,pager \Cj sidebar-next -bind index,pager \Co sidebar-open +bind index,pager \Ct sidebar-next +bind index,pager \Cn sidebar-prev +bind index,pager \Cs sidebar-open # bind index,pager \Cp sidebar-prev-new # bind index,pager \Cn sidebar-next-new bind index,pager B sidebar-toggle-visible diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 9e93a34..7bbf6e6 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -157,6 +157,32 @@ call plug#end() "}}} " Keys{{{ " +" + " dvorak + + " noremap s l + " noremap n k + " noremap t j + " noremap h h "h keeps it's meaning + +" Dvorak it! +no h h +no t j +no n k +no s l +" no s : +" no S : +no j d +no l n +no L N +" Added benefits +no - $ +no _ ^ +no N +no T +no H 8 +no T 8 +no D " Easy comment toggle nmap gc :Commentary diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 03effb2..10110fb 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -142,6 +142,10 @@ c.completion.shrink = True # Type: String c.hints.border = '2px solid #cc5757' +# Characters used for hint strings. +# Type: UniqueCharString +c.hints.chars = 'aoeuidnths' + # Enable smooth scrolling for web pages. Note smooth scrolling does not # work with the `:scroll-px` command. # Type: Bool @@ -375,11 +379,19 @@ c.fonts.tabs = '14px Inter' config.bind(',m', 'spawn --userscript view_in_mpv') config.bind(',r', 'spawn --userscript readability') config.bind(';m', 'hint links spawn mpv --fs {hint-url}') -config.bind('J', 'tab-prev') -config.bind('K', 'tab-next') -config.bind('j', 'scroll down') -config.bind('k', 'scroll up') -config.bind('spawn', '--userscript view_in_mpv') + +config.bind('H', 'back') +config.bind('N', 'tab-next') +config.bind('S', 'forward') +config.bind('T', 'tab-prev') + +config.bind('n', 'scroll up') +config.bind('t', 'scroll down') +config.bind('h', 'scroll left') +config.bind('s', 'scroll right') + +config.bind('e', 'hint all') +config.bind('E', 'hint all tab') # Bindings for insert mode config.bind('', 'spawn --userscript qute-keepass -p ~/Documentos/senhas/Senhas.kdbx', mode='insert') diff --git a/sway/.config/sway/config b/sway/.config/sway/config index ea2ab05..c10c3e9 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -11,22 +11,26 @@ # Logo key. set $mod Mod4 # Home row direction keys, like vim - set $left h - set $down j - set $up k - set $right l + set $left h + set $down t + set $up n + set $right s + set $menu e + set $suspend o + set $kill k + set $mus r set $term terminal # set $menu wofi --show drun --allow-images --insensitive --term $term -p'Iniciar: ' # set $menu bmenu run $term - set $menu launcher font Fira Code 14px # }}} # Output configuration {{{ # output * bg '#252525' solid_color - # output * bg /usr/share/backgrounds/gnome/adwaita-night.jpg fill + # output * bg /usr/share/backgrounds/gnome/adwaita-night.jpg fill + # output * bg ~/.teclado-dvorak-br.png fit # Output HDMI-A-1 resolution 1280x720 # Disable laptop screen if closed, --reload is important @@ -58,7 +62,7 @@ } input * { - xkb_layout br + xkb_layout br(dvorak) xkb_numlock enabled } @@ -70,16 +74,16 @@ bindsym $mod+Return exec $term #start web browser - bindsym $mod+q exec qutebrowser + bindsym $mod+b exec qutebrowser #start file manager bindsym $mod+m exec nemo # Kill focused window - bindsym $mod+x kill + bindsym $mod+$kill kill # Start your launcher - bindsym $mod+d exec $menu + bindsym $mod+$menu exec launcher # Fill passwords bindsym Control+$mod+p exec wpass @@ -88,10 +92,10 @@ floating_modifier $mod normal # Reload the configuration file - bindsym $mod+Shift+c reload; exec kanshi + bindsym $mod+Shift+c reload; exec pkill kanshi && kanshi # Lock Sway - bindsym $mod+Control+s exec sudo systemctl suspend + bindsym $mod+Control+$suspend exec sudo systemctl suspend # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit' @@ -102,20 +106,20 @@ # Moving around: {{{ # Move your focus around - bindsym $mod+$left focus left - bindsym $mod+$down focus down - bindsym $mod+$up focus up + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up bindsym $mod+$right focus right - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right + bindsym $mod+Left focus left + bindsym $mod+Down focus down + bindsym $mod+Up focus up + bindsym $mod+Right focus right # Move the focused window with the same, but add Shift - bindsym $mod+Shift+$left move left - bindsym $mod+Shift+$down move down - bindsym $mod+Shift+$up move up - bindsym $mod+Shift+$right move right + bindsym $mod+Shift+$left move left + bindsym $mod+Shift+$down move down + bindsym $mod+Shift+$up move up + bindsym $mod+Shift+$right move right # Resizing containers: bindsym $mod+Control+$left resize shrink width 10px @@ -126,8 +130,8 @@ #}}} # Workspaces: {{{ - bindsym $mod+period workspace next - bindsym $mod+comma workspace prev + bindsym $mod+j workspace next + bindsym $mod+q workspace prev # Switch to workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 @@ -167,13 +171,12 @@ # Layout stuff: {{{ # # Splits - bindsym $mod+b splith + # bindsym $mod+b splith bindsym $mod+v splitv # Layout styles - bindsym $mod+s layout stacking bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split + bindsym $mod+o layout toggle split # Make the current focus fullscreen bindsym $mod+f fullscreen @@ -225,8 +228,8 @@ bindsym --locked XF86AudioPlay exec playerctl -p mpd play-pause bindsym --locked XF86AudioNext exec playerctl -p mpd next bindsym --locked XF86AudioPrev exec playerctl -p mpd previous - bindsym $mod+Shift+x exec musmenu delete - bindsym $mod+Shift+s exec musmenu search + bindsym $mod+Shift+$mus exec musmenu delete + bindsym $mod+Control+$mus exec musmenu search # }}} # Special Keys{{{ @@ -239,7 +242,7 @@ mode ignore { bindsym $mod+escape mode default } - bindsym $mod+i mode ignore + bindsym $mod+escape mode ignore # }}} # }}}