aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-04-04 20:25:09 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-04-04 20:25:09 +0200
commitd8bf98d001b013f83d5843e2cb68f4ddde74185f (patch)
tree0dbf26f781f22089ef6a2f5860e4444b10db5ca3 /files
parent138f1ba76117681717764801b53b131eeaea85ce (diff)
downloadconfigs-d8bf98d001b013f83d5843e2cb68f4ddde74185f.tar.gz
configs-d8bf98d001b013f83d5843e2cb68f4ddde74185f.zip
Thu Apr 4 20:25:12 CEST 2019
Diffstat (limited to 'files')
-rw-r--r--files/dmenu/config.def.h23
-rw-r--r--files/i3/config17
-rw-r--r--files/i3blocks/config2
-rw-r--r--files/rcs/.Xresources61
-rw-r--r--files/rcs/.bash_aliases15
-rw-r--r--files/rcs/.bashrc23
-rw-r--r--files/rcs/.profile11
-rw-r--r--files/rcs/.tmux.conf24
-rw-r--r--files/rcs/.vimrc39
-rw-r--r--files/sxiv/config.def.h159
10 files changed, 295 insertions, 79 deletions
diff --git a/files/dmenu/config.def.h b/files/dmenu/config.def.h
new file mode 100644
index 0000000..c745e4f
--- /dev/null
+++ b/files/dmenu/config.def.h
@@ -0,0 +1,23 @@
+/* See LICENSE file for copyright and license details. */
+/* Default settings; can be overriden by command line. */
+
+static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
+/* -fn option overrides fonts[0]; default X11 font or font set */
+static const char *fonts[] = {
+ "monospace:size=12"
+};
+static const char *prompt = NULL; /* -p option; prompt to the left of input field */
+static const char *colors[SchemeLast][2] = {
+ /* fg bg */
+ [SchemeNorm] = { "#ffffff", "#093145" },
+ [SchemeSel] = { "#093145", "#e0ea99" },
+ [SchemeOut] = { "#000000", "#00ffff" },
+};
+/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
+static unsigned int lines = 0;
+
+/*
+ * Characters not considered part of a word while deleting words
+ * for example: " /?\"&[]"
+ */
+static const char worddelimiters[] = " ";
diff --git a/files/i3/config b/files/i3/config
index 59a7b7c..6eb1314 100644
--- a/files/i3/config
+++ b/files/i3/config
@@ -69,7 +69,9 @@ set $wst ๐Ÿ™ˆ
floating_modifier $mod
# start a terminal
-bindsym $mod+Return exec i3-sensible-terminal
+#bindsym $mod+Return exec i3-sensible-terminal
+bindsym $mod+Return exec urxvt -e tmux
+bindsym $mod+Shift+Return exec st -e tmux
# kill focused window
bindsym $mod+Shift+q kill
@@ -119,7 +121,7 @@ bindsym $mod+Shift+b bar mode toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+Shift+w layout stacking
bindsym $mod+w layout tabbed
-bindsym $mod+e layout toggle split
+#bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
@@ -215,6 +217,8 @@ bindsym $mod+Control+s exec ~/scripts/systemControl.sh
bindsym $mod+Control+Shift+r exec ~/scripts/prompt.sh "Reboot?" "$reboot"
# lock
bindsym $mod+Control+l exec i3lock.sh
+# touchpad
+bindsym $mod+Control+t exec touchpad.sh
# scratchpad
bindsym $mod+minus move scratchpad
@@ -254,15 +258,15 @@ bindsym XF86AudioPrev exec cmus-remote -r && pkill -SIGRTMIN+12 i3blocks
bindsym $mod+q exec qutebrowser
bindsym $mod+Shift+f exec firefox
bindsym $mod+s exec screenshot.sh
+bindsym Print exec screenshot.sh
bindsym $mod+a exec screenshot.sh -a
bindsym $mod+r exec urxvt -e ranger
bindsym $mod+n exec urxvt -e newsboat
bindsym $mod+Shift+a exec urxvt -e alsamixer
bindsym $mod+c exec ~/scripts/dmenuTerm.sh
bindsym $mod+d exec ~/scripts/dmenuDic.sh
-# bindsym $mod+m exec urxvt -name floating -sh 20 -cr black -geometry 32x1 -e sudo ~/scripts/dmenuMount.sh
bindsym $mod+m exec ~/scripts/dmenuMount.sh
-# bindsym $mod+Shift+m exec urxvt -name floating -sh 20 -cr black -geometry 32x1 -e sudo ~/scripts/dmenuUmount.sh
+bindsym $mod+e exec ~/scripts/emoji.sh
bindsym $mod+Shift+m exec ~/scripts/dmenuUmount.sh
bindsym $mod+Shift+c exec notify-send "$(fortune)"
bindsym $mod+y exec surfraw.sh
@@ -326,10 +330,6 @@ bar {
position bottom
font pango:inconsolata 8
separator_symbol "ยท"
- #font pango:DejaVu Sans Mono 8
- #font pango:proggy 8
- #font -*-clean-*-*-*-*-12-*-*-*-*-70-*-*
- #font pango:Terminus 10px
colors {
background $black
statusline $white2
@@ -351,4 +351,5 @@ exec dunst
exec setxkbmap -layout es -option caps:swapescape
exec xset -b
exec unclutter --idle 1
+exec touchpad.sh
#exec transmission-gtk
diff --git a/files/i3blocks/config b/files/i3blocks/config
index 274fb89..b3c9731 100644
--- a/files/i3blocks/config
+++ b/files/i3blocks/config
@@ -63,4 +63,4 @@ interval=30
#background=#eb87ff
color=#eb87ff
command=~/scripts/i3blocks/i3date.sh
-interval=5
+interval=1
diff --git a/files/rcs/.Xresources b/files/rcs/.Xresources
index 6277441..a94dd63 100644
--- a/files/rcs/.Xresources
+++ b/files/rcs/.Xresources
@@ -1,50 +1,33 @@
-! Inspiration:
-! Luke Smith (URXVT video: https://www.youtube.com/watch?v=eaBf_yFHps8)
-! Origin config file: https://raw.githubusercontent.com/LukeSmithxyz/voidrice/master/.Xdefaults
-
! To load into RESOURCE_MANAGER, run xrdb ~/.Xresources
-!*foreground: #00cc00
-!*foreground_bold: #a8a19f
-!*cursor: #a8a19f
-!*background: #1b1918
-
-! Light
-*color0: #000000
-*color8: #242424
-*color1: #d1375d
-*color9: #ff4e7a
-*color2: #6da48e
-*color10: #bceebc
-*color3: #fff04b
-*color11: #ffff7d
-*color4: #696eff
-*color12: #a5acff
-*color5: #e45eff
-*color13: #eb87ff
-*color6: #008080
-*color14: #00ffff
-*color7: #b2ffe5
-*color15: #cdfffc
+! Dracula
+*.foreground: #f8f8f2
+*.background: #282a36
+*.color0: #000000
+*.color8: #4d4d4d
+*.color1: #ff5555
+*.color9: #ff6e67
+*.color2: #50fa7b
+*.color10: #5af78e
+*.color3: #f1fa8c
+*.color11: #f4f99d
+*.color4: #bd93f9
+*.color12: #caa9fa
+*.color5: #ff79c6
+*.color13: #ff92d0
+*.color6: #008080
+*.color14: #9aedfe
+*.color7: #bfbfbf
+*.color15: #e6e6e6
-URxvt.background: #0f1f1f
-URxvt.foreground: #b2ffe5
URxvt.scrollBar: false
-URxvt.cursorColor: #b2ffe5
-!URxvt.title: urxvt
URxvt.fading: 18
-URxvt.transparent: true
+URxvt.transparent: false
URxvt.shading: 12
-*.alpha: 120
-URxvt.font: xft:inconsolata:size=10
-!URxvt.font: xft:noto-fonts-emoji:size=6
+*.alpha: 120
-! From https://www.askapache.com/linux/rxvt-xresources/#rxvt-unicode_urxvt
-!URxvt*font: -xos4-terminus-medium-*-*-*-14-*-*-*-*-*-iso8859-15,xft:terminus:pixelsize:12
-!URxvt*boldFont: -xos4-terminus-bold-*-*-*-14-*-*-*-*-*-iso8859-15,xft:terminus:bold:pixelsize:12
-!URxvt*italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true:pixelsize=12
-!URxvt*boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true:pixelsize=12
+URxvt.font: xft:inconsolata:size=10,xft:symbola
! Leaving this blank stops perl from being initialized
URxvt.perl-ext:
diff --git a/files/rcs/.bash_aliases b/files/rcs/.bash_aliases
index 038a1fd..9ab9395 100644
--- a/files/rcs/.bash_aliases
+++ b/files/rcs/.bash_aliases
@@ -1,10 +1,8 @@
-alias r="ranger"
-alias v="vim"
-alias rmu="ranger ~/music"
-alias rp="ranger ~/IIS/poland"
+alias r='ranger'
+alias v='vim'
+alias vim='nvim'
+alias ping='ping fsf.org'
alias cdf='cd $(fzfPath.sh)'
-alias v="vim"
-#alias vim='nvim'
# IIS
alias ipds="ssh halite.ii.pwr.wroc.pl -l 250839"
@@ -14,8 +12,7 @@ alias cb="vim ~/.bashrc"
alias cba="vim ~/.bash_aliases"
alias cx="vim ~/.Xresources"
alias ci3="vim ~/.config/i3/config"
-alias ci3b="vim ~/.i3status.conf"
-alias ci3blocks="vim ~/.config/i3blocks/config"
+alias ci3b="vim ~/.config/i3blocks/config"
alias cdunst="vim ~/.config/dunst/dunstrc"
alias cv="vim ~/.vimrc"
alias cqb="vim ~/.config/qutebrowser/config.py"
@@ -32,7 +29,7 @@ alias CryptTool="wine \"~/.wine/drive_c/Program Files (x86)/CrypTool/CrypTool.ex
alias upgrade="sudo pacman -Syu"
alias starwars="telnet towel.blinkenlights.nl"
-alias nintendos="mpv -vo caca https://www.youtube.com/watch?v=hYNcJj2QDhk 2>/dev/null"
alias adormir="mpv -vo caca ~/videos/Adormir.mp4 && clear 2>/dev/null"
alias adormirloop="mpv --loop-file -vo caca ~/videos/Adormir.mp4 2>/dev/null && clear"
+alias nintendos="mpv -vo caca https://www.youtube.com/watch?v=hYNcJj2QDhk 2>/dev/null"
diff --git a/files/rcs/.bashrc b/files/rcs/.bashrc
index d94a016..bfedffa 100644
--- a/files/rcs/.bashrc
+++ b/files/rcs/.bashrc
@@ -10,6 +10,8 @@ case $- in
*) return;;
esac
+[[ -z "$TMUX" ]] && exec tmux
+
# Activate vi mode with <Escape>.
set -o vi
@@ -90,13 +92,14 @@ umode=$pur
PS1="${keys}[${pur}${wd}\w${keys}]${umode}\$${def} "
-EDITOR=nvim
-BROWSER=qutebrowser
-TERM=rxvt-256color
-TERCMD=urxvt
-
-ARDUINO_DIR=/usr/share/arduino
-ARDMK_DIR=/usr/share/arduino
-AVR_TOOLS_DIR=/usr
-
-XDG_CONFIG_HOME=~/.config
+# EDITOR="nvim"
+# TERM="rxvt-256color"
+# TERMINAL="urxvt"
+# BROWSER="qutebrowser"
+# READER="zathura"
+#
+# ARDUINO_DIR="/usr/share/arduino"
+# ARDMK_DIR="/usr/share/arduino"
+# AVR_TOOLS_DIR="/usr"
+#
+# XDG_CONFIG_HOME="$HOME/.config"
diff --git a/files/rcs/.profile b/files/rcs/.profile
index aad5af7..4849a1c 100644
--- a/files/rcs/.profile
+++ b/files/rcs/.profile
@@ -20,21 +20,24 @@ fi
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
PATH=${PATH}:${JAVA_HOME}/bin
-# add vim live latex preview to path
-# PATH=${PATH}:$HOME/vim/bundle/vim-live-latex-preview/bin
-
# add scripts folder to path
PATH="$PATH:$HOME/scripts"
# export final PATH
export PATH
-export EDITOR="vim"
+export EDITOR="nvim"
export TERM="rxvt-256color"
export TERMINAL="urxvt"
export BROWSER="qutebrowser"
export READER="zathura"
+export ARDUINO_DIR="/usr/share/arduino"
+export ARDMK_DIR="/usr/share/arduino"
+export AVR_TOOLS_DIR="/usr"
+
+export XDG_CONFIG_HOME="$HOME/.config"
+
# less/man colors
# export LESS=-R
# export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}"
diff --git a/files/rcs/.tmux.conf b/files/rcs/.tmux.conf
new file mode 100644
index 0000000..cbd2221
--- /dev/null
+++ b/files/rcs/.tmux.conf
@@ -0,0 +1,24 @@
+unbind C-b
+set -g prefix m-a
+bind m-a send-prefix
+set -g default-terminal "screen-256color"
+set-option -g xterm-keys on
+setw -g monitor-activity on
+set -g visual-activity on
+set -g mode-keys vi
+
+# moving between panes with vim movement keys
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+# moving between windows with vim movement keys
+bind -r H select-window -t :-
+bind -r L select-window -t :+
+
+# resize panes with vim movement keys
+bind -r m-h resize-pane -L 1
+bind -r m-j resize-pane -D 1
+bind -r m-k resize-pane -U 1
+bind -r m-l resize-pane -R 1
diff --git a/files/rcs/.vimrc b/files/rcs/.vimrc
index 6be8780..927835d 100644
--- a/files/rcs/.vimrc
+++ b/files/rcs/.vimrc
@@ -13,31 +13,52 @@ Plug 'PotatoesMaster/i3-vim-syntax'
Plug 'junegunn/goyo.vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
-Plug 'vim-scripts/ReplaceWithRegister'
Plug 'vimwiki/vimwiki'
Plug 'suan/vim-instant-markdown'
Plug 'airodactyl/neovim-ranger'
Plug 'vim-airline/vim-airline'
+"Plug 'vim-scripts/ReplaceWithRegister'
call plug#end()
set nocompatible
filetype plugin indent on
set encoding=utf-8
set number relativenumber
-set scrolloff=3
+set scrolloff=2
set wildmode=longest,list,full
set splitbelow
set splitright
set vb " No bell
+" Searching
+set ignorecase
+set wrapscan
+set incsearch
+
+" For cursor shape with tmux
+if empty($TMUX)
+ let &t_SI = "\<Esc>]50;CursorShape=1\x7" " Vertical bar in insert mode
+ let &t_EI = "\<Esc>]50;CursorShape=0\x7" " Block in normal mode
+else
+ let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
+ let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
+endif
+
+if &term =~ '^screen'
+ " tmux will send xterm-style keys when its xterm-keys option is on
+ execute "set <xUp>=\e[1;*A"
+ execute "set <xDown>=\e[1;*B"
+ execute "set <xRight>=\e[1;*C"
+ execute "set <xLeft>=\e[1;*D"
+endif
" For vim-airline
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
-let g:airline_left_sep='โ–ถ'
-let g:airline_right_sep='โ—€'
-let g:airline_symbols.linenr = 'F'
-let g:airline_symbols.maxlinenr = 'LN'
+let g:airline_left_sep=''
+let g:airline_right_sep=''
+let g:airline_symbols.linenr = '๐Ÿ”ƒ'
+let g:airline_symbols.maxlinenr = 'โ†ฉ'
" For vimwiki
@@ -72,6 +93,8 @@ autocmd BufWritePre * %s/\s\+$//e
" Autoupdate ~/.Xresources
autocmd BufWritePost ~/.Xresources !xrdb %
+
+" Generate ~/.mainpage/urls on ~/.config/qutebrowser save
autocmd BufWritePost ~/.config/qutebrowser/config.py !cat .config/qutebrowser/config.py | grep -e \'.*\':\ \'.*{}.*\' | grep -v DEFAULT | sed 's/,//' | sed 's/^\ *//' > ~/.mainpage/urls
""" Remaps """
@@ -151,9 +174,9 @@ nnoremap <leader>hC 05x/--><Enter>3x0
"" LaTeX
nnoremap <leader>lc :w<Enter>:! pdflatex --shell-escape %<Enter>
-inoremap <leader>ldocumentclass \documentclass{}<Esc>o<++><Esc>k$i
+inoremap <leader>ldocclass \documentclass{}<Esc>o<++><Esc>k$i
inoremap <leader>lpckg \usepackage{}<Esc>o<++><Esc>k$i
-inoremap <leader>ldocument \begin{document}<Esc>o<Enter><Enter><Enter>\end{document}<Esc>kkI
+inoremap <leader>lbdoc \begin{document}<Esc>o<Enter><Enter><Enter>\end{document}<Esc>kkI
inoremap <leader>lauthor \author{}<Esc>o<++><Esc>k$i
inoremap <leader>ltitle \title{}<Esc>o<++><Esc>k$i
inoremap <leader>lsection \section{}<Esc>o<++><Esc>k$i
diff --git a/files/sxiv/config.def.h b/files/sxiv/config.def.h
new file mode 100644
index 0000000..35b2bb0
--- /dev/null
+++ b/files/sxiv/config.def.h
@@ -0,0 +1,159 @@
+#ifdef _WINDOW_CONFIG
+
+/* default window dimensions (overwritten via -g option): */
+enum {
+ WIN_WIDTH = 800,
+ WIN_HEIGHT = 600
+};
+
+/* bar font:
+ * (see fonts-conf(5) subsection "FONT NAMES" for valid values)
+ */
+static const char * const BAR_FONT = "monospace:size=8";
+
+/* colors:
+ * overwritten by 'background' and 'foreground' X resource properties.
+ * (see X(7) section "COLOR NAMES" for valid values)
+ */
+static const char * const BG_COLOR = "#afdbf5";
+static const char * const FG_COLOR = "#191970";
+
+#endif
+#ifdef _IMAGE_CONFIG
+
+/* levels (in percent) to use when zooming via '-' and '+':
+ * (first/last value is used as min/max zoom level)
+ */
+static const float zoom_levels[] = {
+ 12.5, 25.0, 50.0, 75.0,
+ 100.0, 150.0, 200.0, 400.0, 800.0
+};
+
+/* default slideshow delay (in sec, overwritten via -S option): */
+enum { SLIDESHOW_DELAY = 2 };
+
+/* gamma correction: the user-visible ranges [-GAMMA_RANGE, 0] and
+ * (0, GAMMA_RANGE] are mapped to the ranges [0, 1], and (1, GAMMA_MAX].
+ * */
+static const double GAMMA_MAX = 10.0;
+static const int GAMMA_RANGE = 32;
+
+/* command i_scroll pans image 1/PAN_FRACTION of screen width/height */
+static const int PAN_FRACTION = 10;
+
+/* if false, pixelate images at zoom level != 100%,
+ * toggled with 'a' key binding
+ */
+static const bool ANTI_ALIAS = true;
+
+/* if true, use a checkerboard background for alpha layer,
+ * toggled with 'A' key binding
+ */
+static const bool ALPHA_LAYER = false;
+
+#endif
+#ifdef _THUMBS_CONFIG
+
+/* thumbnail sizes in pixels (width == height): */
+static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
+
+/* thumbnail size at startup, index into thumb_sizes[]: */
+static const int THUMB_SIZE = 3;
+
+#endif
+#ifdef _MAPPINGS_CONFIG
+
+/* keyboard mappings for image and thumbnail mode: */
+static const keymap_t keys[] = {
+ /* modifiers key function argument */
+ { 0, XK_q, g_quit, None },
+ { 0, XK_Return, g_switch_mode, None },
+ { 0, XK_f, g_toggle_fullscreen, None },
+ { 0, XK_b, g_toggle_bar, None },
+ { 0, XK_comma, g_prefix_external, None },
+ { 0, XK_g, g_first, None },
+ { 0, XK_G, g_n_or_last, None },
+ { 0, XK_r, g_reload_image, None },
+ { 0, XK_D, g_remove_image, None },
+ { ControlMask, XK_h, g_scroll_screen, DIR_LEFT },
+ { ControlMask, XK_Left, g_scroll_screen, DIR_LEFT },
+ { ControlMask, XK_j, g_scroll_screen, DIR_DOWN },
+ { ControlMask, XK_Down, g_scroll_screen, DIR_DOWN },
+ { ControlMask, XK_k, g_scroll_screen, DIR_UP },
+ { ControlMask, XK_Up, g_scroll_screen, DIR_UP },
+ { ControlMask, XK_l, g_scroll_screen, DIR_RIGHT },
+ { ControlMask, XK_Right, g_scroll_screen, DIR_RIGHT },
+ { 0, XK_plus, g_zoom, +1 },
+ { 0, XK_KP_Add, g_zoom, +1 },
+ { 0, XK_minus, g_zoom, -1 },
+ { 0, XK_KP_Subtract, g_zoom, -1 },
+ { 0, XK_m, g_toggle_image_mark, None },
+ { 0, XK_M, g_mark_range, None },
+ { ControlMask, XK_m, g_reverse_marks, None },
+ { ControlMask, XK_u, g_unmark_all, None },
+ { 0, XK_N, g_navigate_marked, +1 },
+ { 0, XK_P, g_navigate_marked, -1 },
+ { 0, XK_braceleft, g_change_gamma, -1 },
+ { 0, XK_braceright, g_change_gamma, +1 },
+ { ControlMask, XK_g, g_change_gamma, 0 },
+
+ { 0, XK_h, t_move_sel, DIR_LEFT },
+ { 0, XK_Left, t_move_sel, DIR_LEFT },
+ { 0, XK_j, t_move_sel, DIR_DOWN },
+ { 0, XK_Down, t_move_sel, DIR_DOWN },
+ { 0, XK_k, t_move_sel, DIR_UP },
+ { 0, XK_Up, t_move_sel, DIR_UP },
+ { 0, XK_l, t_move_sel, DIR_RIGHT },
+ { 0, XK_Right, t_move_sel, DIR_RIGHT },
+ { 0, XK_R, t_reload_all, None },
+
+ { 0, XK_n, i_navigate, +1 },
+ { 0, XK_n, i_scroll_to_edge, DIR_LEFT | DIR_UP },
+ { 0, XK_space, i_navigate, +1 },
+ { 0, XK_p, i_navigate, -1 },
+ { 0, XK_p, i_scroll_to_edge, DIR_LEFT | DIR_UP },
+ { 0, XK_BackSpace, i_navigate, -1 },
+ { 0, XK_bracketright, i_navigate, +10 },
+ { 0, XK_bracketleft, i_navigate, -10 },
+ { ControlMask, XK_6, i_alternate, None },
+ { ControlMask, XK_n, i_navigate_frame, +1 },
+ { ControlMask, XK_p, i_navigate_frame, -1 },
+ { ControlMask, XK_space, i_toggle_animation, None },
+ { 0, XK_h, i_scroll, DIR_LEFT },
+ { 0, XK_Left, i_scroll, DIR_LEFT },
+ { 0, XK_j, i_scroll, DIR_DOWN },
+ { 0, XK_Down, i_scroll, DIR_DOWN },
+ { 0, XK_k, i_scroll, DIR_UP },
+ { 0, XK_Up, i_scroll, DIR_UP },
+ { 0, XK_l, i_scroll, DIR_RIGHT },
+ { 0, XK_Right, i_scroll, DIR_RIGHT },
+ { 0, XK_H, i_scroll_to_edge, DIR_LEFT },
+ { 0, XK_J, i_scroll_to_edge, DIR_DOWN },
+ { 0, XK_K, i_scroll_to_edge, DIR_UP },
+ { 0, XK_L, i_scroll_to_edge, DIR_RIGHT },
+ { 0, XK_equal, i_set_zoom, 100 },
+ { 0, XK_w, i_fit_to_win, SCALE_DOWN },
+ { 0, XK_W, i_fit_to_win, SCALE_FIT },
+ { 0, XK_e, i_fit_to_win, SCALE_WIDTH },
+ { 0, XK_E, i_fit_to_win, SCALE_HEIGHT },
+ { 0, XK_less, i_rotate, DEGREE_270 },
+ { 0, XK_greater, i_rotate, DEGREE_90 },
+ { 0, XK_question, i_rotate, DEGREE_180 },
+ { 0, XK_bar, i_flip, FLIP_HORIZONTAL },
+ { 0, XK_underscore, i_flip, FLIP_VERTICAL },
+ { 0, XK_a, i_toggle_antialias, None },
+ { 0, XK_A, i_toggle_alpha, None },
+ { 0, XK_s, i_slideshow, None },
+};
+
+/* mouse button mappings for image mode: */
+static const button_t buttons[] = {
+ /* modifiers button function argument */
+ { 0, 1, i_cursor_navigate, None },
+ { 0, 2, i_drag, DRAG_ABSOLUTE },
+ { 0, 3, g_switch_mode, None },
+ { 0, 4, g_zoom, +1 },
+ { 0, 5, g_zoom, -1 },
+};
+
+#endif