aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bashrc1
-rw-r--r--.config/dunst/dunstrc210
-rwxr-xr-x.config/herbstluftwm/autostart133
-rwxr-xr-x.config/herbstluftwm/switcher.sh7
-rw-r--r--.config/ranger/rifle.conf47
-rw-r--r--.mpv/config10
-rw-r--r--.vimrc11
7 files changed, 319 insertions, 100 deletions
diff --git a/.bashrc b/.bashrc
index 64ee003..6569a3e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -20,6 +20,7 @@ alias diff='colordiff'
alias less='less -R'
alias vmount='udevil mount'
alias vumount='udevil umount'
+alias def='sdcv'
PS1='[\u@\h \W]\$ '
PS2='> '
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
new file mode 100644
index 0000000..8c8cab2
--- /dev/null
+++ b/.config/dunst/dunstrc
@@ -0,0 +1,210 @@
+[global]
+ font = Tamsyn 12
+
+ # allow a small subset of html markup:
+ # <b>bold</b>
+ # <i>italic</i>
+ # <s>strikethrough<s/>
+ # <u>underline</u>
+ #
+ # for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
+ # If markup is not allowed, those tags will be stripped out of the message.
+ allow_markup = yes
+
+ # The format of the message. Possible variables are:
+ # %a appname
+ # %s summary
+ # %b body
+ # %i iconname (including its path)
+ # %I iconname (without its path)
+ # %p progress value if set ([ 0%] to [100%]) or nothing
+ # Markup is allowed
+ format = "<b>%s</b>\n%b"
+
+ # Sort messages by urgency
+ sort = yes
+
+ # Show how many messages are currently hidden (because of geometry)
+ indicate_hidden = yes
+
+ # alignment of message text.
+ # Possible values are "left", "center" and "right"
+ alignment = left
+
+ # The frequency with wich text that is longer than the notification
+ # window allows bounces back and forth.
+ # This option conflicts with 'word_wrap'.
+ # Set to 0 to disable
+ bounce_freq = 0
+
+ # show age of message if message is older than show_age_threshold seconds.
+ # set to -1 to disable
+ show_age_threshold = 60
+
+ # split notifications into multiple lines if they don't fit into geometry
+ word_wrap = yes
+
+ # ignore newlines '\n' in notifications
+ ignore_newline = no
+
+
+ # the geometry of the window
+ # geometry [{width}]x{height}][+/-{x}+/-{y}]
+ # The geometry of the message window.
+ # The height is measured in number of notifications everything else in pixels. If the width
+ # is omitted but the height is given ("-geometry x2"), the message window
+ # expands over the whole screen (dmenu-like). If width is 0,
+ # the window expands to the longest message displayed.
+ # A positive x is measured from the left, a negative from the
+ # right side of the screen. Y is measured from the top and down respectevly.
+ # The width can be negative. In this case the actual width is the
+ # screen width minus the width defined in within the geometry option.
+ geometry = "300x5-3+21"
+
+ # The transparency of the window. range: [0; 100]
+ # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
+ transparency = 0
+
+ # Don't remove messages, if the user is idle (no mouse or keyboard input)
+ # for longer than idle_threshold seconds.
+ # Set to 0 to disable.
+ idle_threshold = 120
+
+ # Which monitor should the notifications be displayed on.
+ monitor = 0
+
+ # Display notification on focused monitor. Possible modes are:
+ # mouse: follow mouse pointer
+ # keyboard: follow window with keyboard focus
+ # none: don't follow anything
+ #
+ # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
+ # This should be the case for almost all modern windowmanagers.
+ #
+ # If this option is set to mouse or keyboard, the monitor option will be
+ # ignored.
+ follow = mouse
+
+ # should a notification popped up from history be sticky or
+ # timeout as if it would normally do.
+ sticky_history = yes
+
+ # The height of a single line. If the height is smaller than the font height,
+ # it will get raised to the font height.
+ # This adds empty space above and under the text.
+ line_height = 0
+
+ # Draw a line of 'separatpr_height' pixel height between two notifications.
+ # Set to 0 to disable
+ separator_height = 2
+
+ # padding between text and separator
+ padding = 8
+
+ # horizontal padding
+ horizontal_padding = 8
+
+ # Define a color for the separator.
+ # possible values are:
+ # * auto: dunst tries to find a color fitting to the background
+ # * foreground: use the same color as the foreground
+ # * frame: use the same color as the frame.
+ # * anything else will be interpreted as a X color
+ separator_color = frame
+
+ # print a notification on startup
+ # This is mainly for error detection, since dbus (re-)starts dunst
+ # automatically after a crash.
+ startup_notification = false
+
+ # dmenu path
+ dmenu = /usr/bin/dmenu -p dunst:
+
+ # browser for opening urls in context menu
+ browser = /usr/bin/firefox -new-tab
+
+[frame]
+ width = 1
+ color = "#d64937"
+
+[shortcuts]
+ # shortcuts are specified as [modifier+][modifier+]...key
+ # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
+ # and 'mod4' (windows-key)
+ # xev might be helpful to find names for keys
+
+ # close notification
+ close = mod4+n
+
+ # redisplay last message(s)
+ # On the US keyboard layout 'grave' is normally above TAB and left of '1'.
+ history = mod4+ctrl+n
+
+[urgency_low]
+ # IMPORTANT: colors have to be defined in quotation marks.
+ # Otherwise the '#' and following would be interpreted as a comment.
+ background = "#2d2d2d"
+ foreground = "#dcdcdc"
+ timeout = 10
+
+[urgency_normal]
+ background = "#2d2d2d"
+ foreground = "#fcfcfc"
+ timeout = 10
+
+[urgency_critical]
+ background = "#d64937"
+ foreground = "#fcfcfc"
+ timeout = 0
+
+
+# Every section that isn't one of the above is interpreted as a rules
+# to override settings for certain messages.
+# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
+# and you can override the 'timeout', 'urgency', 'foreground', 'background'
+# and 'format'.
+# Shell-like globbing will get expanded.
+#
+# SCRIPTING
+# you can specify a script that gets run when the rule matches by setting
+# the 'script' option.
+# The script will be called as follows:
+# script appname summary body icon urgency
+# where urgency can be "LOW", "NORMAL" or "CRITICAL".
+#
+# NOTE: if you don't want a notification to be displayed, set the format to ""
+# NOTE: It might be helpful to run dunst -print in a terminal in order to find
+# fitting options for rules.
+
+#[espeak]
+# summary = "*"
+# script = dunst_espeak.sh
+
+#[script-test]
+# summary = "*script*"
+# script = dunst_test.sh
+
+[ignore]
+# This notification will not be displayed
+ summary = "HL: perl"
+
+#[signed_on]
+# appname = Pidgin
+# summary = "*signed on*"
+# urgency = low
+#
+#[signed_off]
+# appname = Pidgin
+# summary = *signed off*
+# urgency = low
+#
+#[says]
+# appname = Pidgin
+# summary = *says*
+# urgency = critical
+#
+#[twitter]
+# appname = Pidgin
+# summary = *twitter.com*
+# urgency = normal
+#
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index a786a58..5149925 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -21,46 +21,43 @@ xsetroot -solid '#5A8E3A'
hc keyunbind --all
# keybindings
-# if you have a super key you will be much happier with Mod set to Mod4
-#Mod=Mod1 # Use alt as the main modifier
-Mod=Mod4 # Use the super key as the main modifier
-hc keybind $Mod-Shift-r reload
-hc keybind $Mod-e close_or_remove
+hc keybind Mod4-Shift-r reload
+hc keybind Mod4-e close_or_remove
# basic movement
# focusing clients
-hc keybind $Mod-h focus left
-hc keybind $Mod-j focus down
-hc keybind $Mod-k focus up
-hc keybind $Mod-l focus right
+hc keybind Mod4-h focus left
+hc keybind Mod4-j focus down
+hc keybind Mod4-k focus up
+hc keybind Mod4-l focus right
# moving clients
-hc keybind $Mod-Shift-h shift left
-hc keybind $Mod-Shift-j shift down
-hc keybind $Mod-Shift-k shift up
-hc keybind $Mod-Shift-l shift right
+hc keybind Mod4-Shift-h shift left
+hc keybind Mod4-Shift-j shift down
+hc keybind Mod4-Shift-k shift up
+hc keybind Mod4-Shift-l shift right
# cycle through clients
-hc keybind $Mod-d cycle 1
-hc keybind $Mod-a cycle -1
+hc keybind Mod4-d cycle 1
+hc keybind Mod4-a cycle -1
# splitting frames
# create an empty frame at the specified direction
-hc keybind $Mod-s chain .-. lock .-. split bottom 0.5 .-. focus -e d .-. unlock
-hc keybind $Mod-v chain .-. lock .-. split right 0.5 .-. focus -e r .-. unlock
+hc keybind Mod4-s chain .-. lock .-. split bottom 0.5 .-. focus -e d .-. unlock
+hc keybind Mod4-v chain .-. lock .-. split right 0.5 .-. focus -e r .-. unlock
# create an empty frame and shift the currently focused client into it
-hc keybind $Mod-Control-s chain .-. lock .-. split bottom 0.5 .-. shift down .-. unlock
-hc keybind $Mod-Control-v chain .-. lock .-. split right 0.5 .-. shift right .-. unlock
+hc keybind Mod4-Control-s chain .-. lock .-. split bottom 0.5 .-. shift down .-. unlock
+hc keybind Mod4-Control-v chain .-. lock .-. split right 0.5 .-. shift right .-. unlock
# let the current frame explode into subframes
-hc keybind $Mod-Shift-space split explode
+hc keybind Mod4-Shift-space split explode
# resizing frames
resizestep=0.04
-hc keybind $Mod-Control-h resize left +$resizestep
-hc keybind $Mod-Control-j resize down +$resizestep
-hc keybind $Mod-Control-k resize up +$resizestep
-hc keybind $Mod-Control-l resize right +$resizestep
+hc keybind Mod4-Control-h resize left +$resizestep
+hc keybind Mod4-Control-j resize down +$resizestep
+hc keybind Mod4-Control-k resize up +$resizestep
+hc keybind Mod4-Control-l resize right +$resizestep
# tags
tag_names=( {1..5} )
@@ -71,8 +68,8 @@ for i in ${!tag_names[@]} ; do
hc add "${tag_names[$i]}"
key="${tag_keys[$i]}"
if ! [ -z "$key" ] ; then
- hc keybind "$Mod-$key" use_index "$i"
- hc keybind "$Mod-Control-$key" move_index "$i"
+ hc keybind "Mod4-$key" use_index "$i"
+ hc keybind "Mod4-Control-$key" move_index "$i"
fi
done
@@ -80,63 +77,71 @@ done
hc set_layout max
# cycle through tags
-hc keybind $Mod-period use_index +1 --skip-visible
-hc keybind $Mod-comma use_index -1 --skip-visible
+hc keybind Mod4-n use_index +1 --skip-visible
+hc keybind Mod4-p use_index -1 --skip-visible
+
+# jump to last used tag
+hc keybind Mod4-Escape use_previous
# layouting
-hc keybind $Mod-f fullscreen toggle
-hc keybind $Mod-p pseudotile toggle
+hc keybind Mod4-t pseudotile toggle
+hc keybind Mod4-f fullscreen toggle
# mouse
hc mouseunbind --all
-hc mousebind $Mod-Button1 move
-hc mousebind $Mod-Button2 zoom
-hc mousebind $Mod-Button3 resize
+hc mousebind Mod4-Button1 move
+hc mousebind Mod4-Button2 zoom
+hc mousebind Mod4-Button3 resize
# focus
-hc keybind $Mod-BackSpace cycle_monitor
-hc keybind $Mod-i jumpto urgent
+hc keybind Mod4-BackSpace cycle_monitor
+hc keybind Mod4-i jumpto urgent
################ launchers ################
# mate
hc keybind XF86PowerOff spawn mate-session-save --shutdown-dialog
+hc keybind Mod1-XF86PowerOff spawn mate-session-save --shutdown-dialog
hc keybind Print spawn mate-screenshot
# ranger
-hc keybind $Mod-Shift-Control-Return spawn urxvt -name "ranger" -e ranger /home/shmibs
-hc keybind $Mod-Shift-Control-b spawn urxvt -name "ranger" -e ranger /home/shmibs/backdrops
-hc keybind $Mod-Shift-Control-c spawn urxvt -name "ranger" -e ranger /home/shmibs/comics
-hc keybind $Mod-Shift-Control-d spawn urxvt -name "ranger" -e ranger /home/shmibs/downloads
-hc keybind $Mod-Shift-Control-s spawn urxvt -name "ranger" -e ranger /home/shmibs/desktop
-hc keybind $Mod-Shift-Control-m spawn urxvt -name "ranger" -e ranger /home/shmibs/music
-hc keybind $Mod-Shift-Control-g spawn urxvt -name "ranger" -e ranger /home/shmibs/games
-hc keybind $Mod-Shift-Control-p spawn urxvt -name "ranger" -e ranger /home/shmibs/projects
-hc keybind $Mod-Shift-Control-i spawn urxvt -name "ranger" -e ranger /home/shmibs/images
-hc keybind $Mod-Shift-Control-t spawn urxvt -name "ranger" -e ranger /home/shmibs/thcool
-hc keybind $Mod-Shift-Control-v spawn urxvt -name "ranger" -e ranger /home/shmibs/videos
+hc keybind Mod4-Shift-Control-Return spawn urxvt -name "ranger" -e ranger /home/shmibs
+hc keybind Mod4-Shift-Control-b spawn urxvt -name "ranger" -e ranger /home/shmibs/backdrops
+hc keybind Mod4-Shift-Control-c spawn urxvt -name "ranger" -e ranger /home/shmibs/comics
+hc keybind Mod4-Shift-Control-d spawn urxvt -name "ranger" -e ranger /home/shmibs/downloads
+hc keybind Mod4-Shift-Control-s spawn urxvt -name "ranger" -e ranger /home/shmibs/desktop
+hc keybind Mod4-Shift-Control-m spawn urxvt -name "ranger" -e ranger /home/shmibs/music
+hc keybind Mod4-Shift-Control-g spawn urxvt -name "ranger" -e ranger /home/shmibs/games
+hc keybind Mod4-Shift-Control-p spawn urxvt -name "ranger" -e ranger /home/shmibs/projects
+hc keybind Mod4-Shift-Control-i spawn urxvt -name "ranger" -e ranger /home/shmibs/images
+hc keybind Mod4-Shift-Control-t spawn urxvt -name "ranger" -e ranger /home/shmibs/thcool
+hc keybind Mod4-Shift-Control-v spawn urxvt -name "ranger" -e ranger /home/shmibs/videos
+
+# grab colour to clipboard
+hc keybind Mod4-c spawn ~/.config/herbstluftwm/colourgrab.sh
# spawn
-hc keybind $Mod-Return spawn urxvt
-hc keybind $Mod-Shift-c spawn mate-calc
-hc keybind $Mod-Shift-d spawn ~/games/desura/desura
-hc keybind $Mod-Shift-f spawn firefox
-hc keybind $Mod-Shift-i spawn gimp
-hc keybind $Mod-Shift-m spawn mathematica
-hc keybind $Mod-Shift-o spawn ~/stuffs/tor/start-tor-browser
-hc keybind $Mod-Shift-t spawn transmission-gtk
-hc keybind $Mod-Shift-v spawn urxvt -name "vim" -e vim
-hc keybind $Mod-Shift-w spawn urxvt -name "weechat" -e weechat
+hc keybind Mod4-Return spawn urxvt
+hc keybind Mod4-Shift-c spawn mate-calc
+hc keybind Mod4-Shift-d spawn ~/games/desura/desura
+hc keybind Mod4-Shift-f spawn firefox
+hc keybind Mod4-Shift-i spawn gimp
+hc keybind Mod4-Shift-m spawn mathematica
+hc keybind Mod4-Shift-o spawn ~/stuffs/tor/start-tor-browser
+hc keybind Mod4-Shift-t spawn transmission-gtk
+hc keybind Mod4-Shift-v spawn urxvt -name "vim" -e vim
+hc keybind Mod4-Shift-w spawn urxvt -name "weechat" -e weechat
# banshee
-hc keybind $Mod-Shift-Up spawn banshee --show
-hc keybind $Mod-Shift-Down spawn banshee --hide
-hc keybind $Mod-Left spawn banshee --restart-or-previous
-hc keybind $Mod-Right spawn banshee --next
-hc keybind $Mod-Down spawn banshee --toggle-playing
+hc keybind Mod4-Shift-Up spawn banshee --show
+hc keybind Mod4-Shift-Down spawn banshee --hide
+hc keybind Mod4-Left spawn banshee --restart-or-previous
+hc keybind Mod4-Right spawn banshee --next
+hc keybind Mod4-Down spawn banshee --toggle-playing
# dmenu
-hc keybind $Mod-0 spawn dmenu_run -h 18 -nb $bg_normal -nf $fg_normal -sb $bg_focus -sf $fg_focus
+hc keybind Mod4-0 spawn dmenu_run -p "Run:" -h 18 -nb $bg_normal -nf $fg_normal -sb $bg_focus -sf $fg_focus
+hc keybind Mod4-9 spawn ~/.config/herbstluftwm/switcher.sh $bg_normal $fg_normal $bg_focus $fg_focus
############## end launchers ##############
@@ -168,8 +173,8 @@ hc rule focus=on
# unmanage docs, dropdowns, etc
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off
# set apppropriate things to pseudotile
-hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
-hc rule class~'(Mate-calc|Pcsx2)' pseudotile=on
+hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on focus=on
+hc rule class~'(Mate-calc|MPlayer|Pcsx2|Tilem2)' pseudotile=on focus=on
# unlock, just to be sure
hc unlock
diff --git a/.config/herbstluftwm/switcher.sh b/.config/herbstluftwm/switcher.sh
new file mode 100755
index 0000000..9bf344c
--- /dev/null
+++ b/.config/herbstluftwm/switcher.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+IFS=$'\r\n' clients=($(wmctrl -l | cut -c -10))
+number=$(wmctrl -l | cut -c 20- | nl -w 2 -s ") " | dmenu -i -h 16 -nb $1 -nf $2 -sb $3 -sf $4 -p "Select:" -l 40 | grep -oE '[0-9]' | head -1)
+if [ $number ]; then
+ herbstclient jumpto ${clients[$(expr $number - 1)]}
+fi
diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf
index c42a011..4f4fa98 100644
--- a/.config/ranger/rifle.conf
+++ b/.config/ranger/rifle.conf
@@ -61,14 +61,8 @@ ext x?html?, has luakit, X, flag f = luakit -- "$@"
ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
-ext x?html?, has midori, X, flag f = midori -- "$@"
-ext x?html?, has chromium, X, flag f = chromium -- "$@"
-ext x?html?, has opera, X, flag f = opera -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@"
-ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
-ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
-ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
-ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
+ext x?html?, has midori, X, flag f = midori -- "$@"
ext x?html?, has elinks, terminal = elinks "$@"
ext x?html?, has links2, terminal = links2 "$@"
ext x?html?, has links, terminal = links "$@"
@@ -84,11 +78,9 @@ mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
!mime ^text, label pager, ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@"
-ext 1 = man "$1"
-ext s[wmf]c, has zsnes, X = zsnes "$1"
-ext nes, has fceux, X = fceux "$1"
-ext exe = wine "$1"
-name ^[mM]akefile$ = make
+ext 1 = man "$1"
+ext exe = wine "$1"
+name ^[mM]akefile$ = make
#--------------------------------------------
# Code
@@ -103,59 +95,38 @@ ext php = php -- "$1"
# Audio without X
#-------------------------------------------
mime ^audio|ogg$, terminal, has mplayer = mplayer -- "$@"
-mime ^audio|ogg$, terminal, has mplayer2 = mplayer2 -- "$@"
ext midi?, terminal, has wildmidi = wildmidi -- "$@"
#--------------------------------------------
# Video/Audio with a GUI
#-------------------------------------------
-mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@"
-mime ^video|audio, has smplayer, X, flag f = smplayer "$@"
-mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@"
-mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
+mime ^video, has mpv, X, flag f = mpv -- "$@"
mime ^video, has mplayer, X, flag f = mplayer -- "$@"
-mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@"
mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
-mime ^video|audio, has totem, X, flag f = totem -- "$@"
-mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@"
#--------------------------------------------
# Video without X:
#-------------------------------------------
-mime ^video, terminal, !X, has mplayer2 = mplayer2 -- "$@"
mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
-mime ^image, has eog, X, flag f = eog -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
-mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has gimp, X, flag f = gimp -- "$@"
ext xcf, X, flag f = gimp -- "$@"
#-------------------------------------------
# Documents
#-------------------------------------------
-ext pdf, has llpp, X, flag f = llpp "$@"
ext pdf, has zathura, X, flag f = zathura -- "$@"
-ext pdf, has mupdf, X, flag f = mupdf -- "$@"
-ext pdf, has apvlv, X, flag f = apvlv -- "$@"
-ext pdf, has xpdf, X, flag f = xpdf -- "$@"
-ext pdf, has evince, X, flag f = evince -- "$@"
-ext pdf, has okular, X, flag f = okular -- "$@"
-ext pdf, has epdfview, X, flag f = epdfview -- "$@"
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric|rtf, has libreoffice, X, flag f = libreoffice "$@"
-ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric|rtf, has soffice, X, flag f = soffice "$@"
-ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric|rtf, has ooffice, X, flag f = ooffice "$@"
-
-ext djvu, has evince, X, flag f = evince -- "$@"
#-------------------------------------------
# Archives
@@ -168,8 +139,6 @@ ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als = a
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als = als -- "$@" | "$PAGER"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack = aunpack -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack -- "$@"
-ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has engrampa, X, flag f = engrampa -- "$@"
-ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has engrampa, X, flag f = engrampa -- "$@"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has mcomix, X, flag f = mcomix -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has mcomix, X, flag f = mcomix -- "$@"
@@ -185,6 +154,12 @@ ext rom, has tilem2, X, flag f = tilem2 --rom="$1"
ext 8xp|8xk|8xv|8xu, has tilp = tilp --no-gui "$@"
#-------------------------------------------
+# Roms
+#-------------------------------------------
+ext s[wmf]c, has snes9x-gtk, X flag f = snes9x-gtk "$1"
+ext nes|gb|gb[ca], has mednafen, X, flag f = mednafen "$1"
+
+#-------------------------------------------
# Misc
#-------------------------------------------
label wallpaper, number 11, mime ^image, X = feh --bg-scale "$1"
diff --git a/.mpv/config b/.mpv/config
new file mode 100644
index 0000000..40c0288
--- /dev/null
+++ b/.mpv/config
@@ -0,0 +1,10 @@
+
+# video
+fs=yes
+ass-hinting=native
+vo=opengl-hq
+slang=en,eng
+
+# audio
+alang=jp,jpn,jap,en,eng
+
diff --git a/.vimrc b/.vimrc
index 2b1863f..0f247da 100644
--- a/.vimrc
+++ b/.vimrc
@@ -11,6 +11,10 @@ map <C-t> <Esc>:tabnew<CR>
nnoremap = O<Esc>j
nnoremap + O<Esc>
+"disable auto session save/load
+let g:session_autosave = 'no'
+let g:session_autoload = 'no'
+
"copy words from above and below the cursor
inoremap <expr> <c-y> pumvisible() ? "\<c-y>" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)')
inoremap <expr> <c-e> pumvisible() ? "\<c-e>" : matchstr(getline(line('.')+1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)')
@@ -38,6 +42,7 @@ end
"with viml), so separate lines it is.
autocmd FileType c call Settings_c()
autocmd FileType cpp call Settings_c()
+autocmd FileType perl call Settings_perl()
function! Settings_c()
"i want autoindent as the default, and doing that along with
@@ -45,3 +50,9 @@ function! Settings_c()
setlocal cindent
endfunction
+function! Settings_perl()
+ "i want autoindent as the default, and doing that along with
+ "filetype indent on yields wonky results
+ setlocal smartindent
+endfunction
+