adapt to dvorak

This commit is contained in:
lelgenio 2020-05-17 19:40:41 -03:00
parent 89ac282d5d
commit e0bf147ccd
4 changed files with 102 additions and 52 deletions

View File

@ -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 <space> tag-entry
bind attach <return> view-mailcap
bind attach l view-mailcap
bind editor <space> 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 <space> 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 '<change-dir><kill-line>..<enter>' "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 <Tab> complete-query
#macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
#macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index O "<shell-escape>mbsync -a<enter>" "run mbsync to sync all mail"
#macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~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' \`\"<enter>" "show only messages matching a notmuch pattern"
#macro index A "<limit>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

View File

@ -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 <C-w><C-w>
no T <C-w><C-r>
no H 8<Down>
no T 8<Up>
no D <C-w><C-r>
" Easy comment toggle
nmap <silent> gc :Commentary<CR>

View File

@ -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('<Ctrl+i>', 'spawn --userscript qute-keepass -p ~/Documentos/senhas/Senhas.kdbx', mode='insert')

View File

@ -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
# }}}
# }}}