From 30490fbedba53fb6362424f35fcc1a33ca8dd68b Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sat, 2 Feb 2013 01:23:05 +0100 Subject: [PATCH] Shell: X resolution reset. Ranger: games shortcuts (iso mount, etc.) --- .config/ranger/rc.conf | 7 ++++++- .shell.d/alias_rc | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index ada3bb59..e5ce66d5 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -44,7 +44,8 @@ map DD shell trash-put -- %s ## Extraction. Ranger uses '1l', but does not work when extension is not ## right. Using atools instead. -map ex shell aunpack -e %s +map exe shell aunpack -e %s +map exg shell aunpack -e %s -X "$HOME/games/" ## Git map ega shell -w git add %s @@ -62,6 +63,10 @@ map es shell -w submarine %f ## Audio map ea shell cmus-remote -P %s +## Mount iSO +map em shell fuseiso -p %f ~/iso +map eu shell fusermount -qu ~/iso + # Quick moves map K move up=5 map J move down=5 diff --git a/.shell.d/alias_rc b/.shell.d/alias_rc index 7f177e43..6823fc7c 100644 --- a/.shell.d/alias_rc +++ b/.shell.d/alias_rc @@ -92,6 +92,8 @@ alias xmorphsw='xrandr --output $(xrandr | grep "\" | cut -f1 -d" ") alias xmorphzo='xrandr --output $(xrandr | grep "\" | cut -f1 -d" ") --scale 1.2x1.2' alias xmorphzi='xrandr --output $(xrandr | grep "\" | cut -f1 -d" ") --scale 0.8x0.8' +alias xres='xrandr -s $(xrandr | awk '"'"'/^ / {print $1;exit}'"'"')' + ##============================================================================== ## Emacs ##==============================================================================