summaryrefslogtreecommitdiff
path: root/etc/aliases/x
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-19 08:11:28 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-19 08:11:28 +0100
commite4cd3cacff9c78b71a7eeb6374a3254238857924 (patch)
tree87fb3c94eb64f4ea595d7024cfcacbfa7371d03c /etc/aliases/x
parentf2a3d27e39030513b7eb2defa68d2b852c95f6de (diff)
Re-added X11 related aliases
Diffstat (limited to 'etc/aliases/x')
-rw-r--r--etc/aliases/x32
1 files changed, 32 insertions, 0 deletions
diff --git a/etc/aliases/x b/etc/aliases/x
new file mode 100644
index 0000000..7fa5c96
--- /dev/null
+++ b/etc/aliases/x
@@ -0,0 +1,32 @@
+## vim:ft=zsh
+
+# feh etc if X is running, x for startx otherwise
+if pidof X &> /dev/null; then
+ ## feh
+ alias fehf='feh -Tfull' # Fullscreen
+ alias fehfr='feh -Tfull --recursive'
+ alias fehi='feh .fehindex.jpg'
+ alias fehj='feh -Tjust' # Screensaver-like
+ alias fehjr='feh -Tjust --recursive'
+ for i in {5,10,15,20}; {
+ alias fehj$i="feh -Tjust --slideshow-delay $i"
+ alias fehf$i="feh -Tfull --slideshow-delay $i"
+ alias fehjr$i="feh -Tjust --slideshow-delay $i --recursive"
+ alias fehfr$i="feh -Tfull --slideshow-delay $i --recursive"
+ }
+ alias fehjx='feh -Tjust --slideshow-delay'
+ alias fehfx='feh -Tfull --slideshow-delay'
+ alias fehjrx='feh -Tjust --recursive --slideshow-delay'
+ alias fehfrx='feh -Tfull --recursive --slideshow-delay'
+ alias feht='feh -Tthumbnail' # List thumbnails
+ alias fehtr='feh -Tthumbnail --recursive'
+
+ # Automatically upload screenshot plzkthx
+ alias putscreen='put $(screenshot)'
+
+ # Useful when a beamer is connected to my laptop
+ alias rplayer='mplayer -vo x11 -zoom -vf scale=1024:-2'
+else
+ # start x and log out immediately
+ alias x='unsetopt bg_nice; startx &! exit'
+fi