adapt to dvorak
This commit is contained in:
parent
89ac282d5d
commit
e0bf147ccd
|
@ -74,21 +74,30 @@ bind index \Cf noop
|
||||||
# }}}
|
# }}}
|
||||||
# General rebindings{{{
|
# 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 <return> view-mailcap
|
||||||
bind attach l view-mailcap
|
bind attach l view-mailcap
|
||||||
bind editor <space> noop
|
bind editor <space> noop
|
||||||
bind index G last-entry
|
|
||||||
bind index gg first-entry
|
|
||||||
bind pager,attach h exit
|
bind pager,attach h exit
|
||||||
bind pager j next-line
|
bind pager t next-line
|
||||||
bind pager k previous-line
|
bind pager n previous-line
|
||||||
bind pager l view-attachments
|
bind pager s 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 browser h goto-parent
|
bind browser h goto-parent
|
||||||
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
||||||
bind index,pager H view-raw-message
|
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 pager \005 next-line # Mouse wheel
|
||||||
bind editor <Tab> complete-query
|
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,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 \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 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 \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)"
|
#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 sidebar_next_new_wrap = yes
|
||||||
# set mail_check_stats
|
# set mail_check_stats
|
||||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||||
bind index,pager \Ck sidebar-prev
|
bind index,pager \Ct sidebar-next
|
||||||
bind index,pager \Cj sidebar-next
|
bind index,pager \Cn sidebar-prev
|
||||||
bind index,pager \Co sidebar-open
|
bind index,pager \Cs sidebar-open
|
||||||
# bind index,pager \Cp sidebar-prev-new
|
# bind index,pager \Cp sidebar-prev-new
|
||||||
# bind index,pager \Cn sidebar-next-new
|
# bind index,pager \Cn sidebar-next-new
|
||||||
bind index,pager B sidebar-toggle-visible
|
bind index,pager B sidebar-toggle-visible
|
||||||
|
|
|
@ -157,6 +157,32 @@ call plug#end()
|
||||||
"}}}
|
"}}}
|
||||||
" Keys{{{
|
" 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
|
" Easy comment toggle
|
||||||
nmap <silent> gc :Commentary<CR>
|
nmap <silent> gc :Commentary<CR>
|
||||||
|
|
|
@ -142,6 +142,10 @@ c.completion.shrink = True
|
||||||
# Type: String
|
# Type: String
|
||||||
c.hints.border = '2px solid #cc5757'
|
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
|
# Enable smooth scrolling for web pages. Note smooth scrolling does not
|
||||||
# work with the `:scroll-px` command.
|
# work with the `:scroll-px` command.
|
||||||
# Type: Bool
|
# Type: Bool
|
||||||
|
@ -375,11 +379,19 @@ c.fonts.tabs = '14px Inter'
|
||||||
config.bind(',m', 'spawn --userscript view_in_mpv')
|
config.bind(',m', 'spawn --userscript view_in_mpv')
|
||||||
config.bind(',r', 'spawn --userscript readability')
|
config.bind(',r', 'spawn --userscript readability')
|
||||||
config.bind(';m', 'hint links spawn mpv --fs {hint-url}')
|
config.bind(';m', 'hint links spawn mpv --fs {hint-url}')
|
||||||
config.bind('J', 'tab-prev')
|
|
||||||
config.bind('K', 'tab-next')
|
config.bind('H', 'back')
|
||||||
config.bind('j', 'scroll down')
|
config.bind('N', 'tab-next')
|
||||||
config.bind('k', 'scroll up')
|
config.bind('S', 'forward')
|
||||||
config.bind('spawn', '--userscript view_in_mpv')
|
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
|
# Bindings for insert mode
|
||||||
config.bind('<Ctrl+i>', 'spawn --userscript qute-keepass -p ~/Documentos/senhas/Senhas.kdbx', mode='insert')
|
config.bind('<Ctrl+i>', 'spawn --userscript qute-keepass -p ~/Documentos/senhas/Senhas.kdbx', mode='insert')
|
||||||
|
|
|
@ -11,22 +11,26 @@
|
||||||
# Logo key.
|
# Logo key.
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
# Home row direction keys, like vim
|
# Home row direction keys, like vim
|
||||||
set $left h
|
set $left h
|
||||||
set $down j
|
set $down t
|
||||||
set $up k
|
set $up n
|
||||||
set $right l
|
set $right s
|
||||||
|
set $menu e
|
||||||
|
set $suspend o
|
||||||
|
set $kill k
|
||||||
|
set $mus r
|
||||||
|
|
||||||
set $term terminal
|
set $term terminal
|
||||||
# set $menu wofi --show drun --allow-images --insensitive --term $term -p'Iniciar: '
|
# set $menu wofi --show drun --allow-images --insensitive --term $term -p'Iniciar: '
|
||||||
# set $menu bmenu run $term
|
# set $menu bmenu run $term
|
||||||
set $menu launcher
|
|
||||||
font Fira Code 14px
|
font Fira Code 14px
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
# Output configuration {{{
|
# Output configuration {{{
|
||||||
#
|
#
|
||||||
output * bg '#252525' solid_color
|
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
|
# Output HDMI-A-1 resolution 1280x720
|
||||||
|
|
||||||
# Disable laptop screen if closed, --reload is important
|
# Disable laptop screen if closed, --reload is important
|
||||||
|
@ -58,7 +62,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input * {
|
input * {
|
||||||
xkb_layout br
|
xkb_layout br(dvorak)
|
||||||
xkb_numlock enabled
|
xkb_numlock enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,16 +74,16 @@
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec $term
|
||||||
|
|
||||||
#start web browser
|
#start web browser
|
||||||
bindsym $mod+q exec qutebrowser
|
bindsym $mod+b exec qutebrowser
|
||||||
|
|
||||||
#start file manager
|
#start file manager
|
||||||
bindsym $mod+m exec nemo
|
bindsym $mod+m exec nemo
|
||||||
|
|
||||||
# Kill focused window
|
# Kill focused window
|
||||||
bindsym $mod+x kill
|
bindsym $mod+$kill kill
|
||||||
|
|
||||||
# Start your launcher
|
# Start your launcher
|
||||||
bindsym $mod+d exec $menu
|
bindsym $mod+$menu exec launcher
|
||||||
|
|
||||||
# Fill passwords
|
# Fill passwords
|
||||||
bindsym Control+$mod+p exec wpass
|
bindsym Control+$mod+p exec wpass
|
||||||
|
@ -88,10 +92,10 @@
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
|
|
||||||
# Reload the configuration file
|
# Reload the configuration file
|
||||||
bindsym $mod+Shift+c reload; exec kanshi
|
bindsym $mod+Shift+c reload; exec pkill kanshi && kanshi
|
||||||
|
|
||||||
# Lock Sway
|
# 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)
|
# 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'
|
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: {{{
|
# Moving around: {{{
|
||||||
|
|
||||||
# Move your focus around
|
# Move your focus around
|
||||||
bindsym $mod+$left focus left
|
bindsym $mod+$left focus left
|
||||||
bindsym $mod+$down focus down
|
bindsym $mod+$down focus down
|
||||||
bindsym $mod+$up focus up
|
bindsym $mod+$up focus up
|
||||||
bindsym $mod+$right focus right
|
bindsym $mod+$right focus right
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
bindsym $mod+Down focus down
|
bindsym $mod+Down focus down
|
||||||
bindsym $mod+Up focus up
|
bindsym $mod+Up focus up
|
||||||
bindsym $mod+Right focus right
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
# Move the focused window with the same, but add Shift
|
# Move the focused window with the same, but add Shift
|
||||||
bindsym $mod+Shift+$left move left
|
bindsym $mod+Shift+$left move left
|
||||||
bindsym $mod+Shift+$down move down
|
bindsym $mod+Shift+$down move down
|
||||||
bindsym $mod+Shift+$up move up
|
bindsym $mod+Shift+$up move up
|
||||||
bindsym $mod+Shift+$right move right
|
bindsym $mod+Shift+$right move right
|
||||||
|
|
||||||
# Resizing containers:
|
# Resizing containers:
|
||||||
bindsym $mod+Control+$left resize shrink width 10px
|
bindsym $mod+Control+$left resize shrink width 10px
|
||||||
|
@ -126,8 +130,8 @@
|
||||||
#}}}
|
#}}}
|
||||||
# Workspaces: {{{
|
# Workspaces: {{{
|
||||||
|
|
||||||
bindsym $mod+period workspace next
|
bindsym $mod+j workspace next
|
||||||
bindsym $mod+comma workspace prev
|
bindsym $mod+q workspace prev
|
||||||
# Switch to workspace
|
# Switch to workspace
|
||||||
bindsym $mod+1 workspace 1
|
bindsym $mod+1 workspace 1
|
||||||
bindsym $mod+2 workspace 2
|
bindsym $mod+2 workspace 2
|
||||||
|
@ -167,13 +171,12 @@
|
||||||
# Layout stuff: {{{
|
# Layout stuff: {{{
|
||||||
#
|
#
|
||||||
# Splits
|
# Splits
|
||||||
bindsym $mod+b splith
|
# bindsym $mod+b splith
|
||||||
bindsym $mod+v splitv
|
bindsym $mod+v splitv
|
||||||
|
|
||||||
# Layout styles
|
# Layout styles
|
||||||
bindsym $mod+s layout stacking
|
|
||||||
bindsym $mod+w layout tabbed
|
bindsym $mod+w layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
bindsym $mod+o layout toggle split
|
||||||
|
|
||||||
# Make the current focus fullscreen
|
# Make the current focus fullscreen
|
||||||
bindsym $mod+f fullscreen
|
bindsym $mod+f fullscreen
|
||||||
|
@ -225,8 +228,8 @@
|
||||||
bindsym --locked XF86AudioPlay exec playerctl -p mpd play-pause
|
bindsym --locked XF86AudioPlay exec playerctl -p mpd play-pause
|
||||||
bindsym --locked XF86AudioNext exec playerctl -p mpd next
|
bindsym --locked XF86AudioNext exec playerctl -p mpd next
|
||||||
bindsym --locked XF86AudioPrev exec playerctl -p mpd previous
|
bindsym --locked XF86AudioPrev exec playerctl -p mpd previous
|
||||||
bindsym $mod+Shift+x exec musmenu delete
|
bindsym $mod+Shift+$mus exec musmenu delete
|
||||||
bindsym $mod+Shift+s exec musmenu search
|
bindsym $mod+Control+$mus exec musmenu search
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
# Special Keys{{{
|
# Special Keys{{{
|
||||||
|
@ -239,7 +242,7 @@
|
||||||
mode ignore {
|
mode ignore {
|
||||||
bindsym $mod+escape mode default
|
bindsym $mod+escape mode default
|
||||||
}
|
}
|
||||||
bindsym $mod+i mode ignore
|
bindsym $mod+escape mode ignore
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Reference in a new issue