From 597b1b3d017ace855bc15ec3c254742cdc5e5df6 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 8 Nov 2014 12:34:11 -0500 Subject: [PATCH] Fixed smon and +grave and added slp alias --- i3/config | 2 +- shells/zshrc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index 068e7d2..a676766 100644 --- a/i3/config +++ b/i3/config @@ -136,7 +136,7 @@ bindsym $mod+equal exec --no-startup-id banshee --play # To initialize wallpapers, run: # export DISPLAY=:0.0;mkdir -p ~/.i3/wall;cp ~/ownCloud/wallpaper/std/* ~/.i3/wall;cd ~/.i3/wall;rename -v 's/(.* )+//' *;mogrify -resize `xrandr -q|perl -F'\s|,' -lane "/^Sc/&&print join '',@F[8..10]"`^ -verbose -gravity center -format png *;rm *.jpg;rm *.jpeg -bindsym $mod+grave exec "i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`; sleep 60; pgrep i3lock && xset dpms force off" +bindsym $mod+grave exec "i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`" bindsym $mod+Shift+grave exec "sudo pm-suspend | i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`" # Tees the filename to /tmp/wall for debugging # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) diff --git a/shells/zshrc b/shells/zshrc index 61e834e..1e69f5c 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -90,6 +90,7 @@ alias fvim="vim -u NONE +\"so ~/.vim/bundle/flappyvird-vim/plugin/flappyvird.vim alias fk='k `fzf --no-mouse -m -1 -x`' alias fh='eval $(([ -n "$ZSH_NAME" ] && fc --no-mouse -m -1 -x -l 1 || history) | fzf +s | sed "s/ *[0-9]* *//")' alias fkill='ps -ef | sed 1d | fzf --no-mouse -m -1 -x | awk "{print $2}" | xargs kill -${1:-9}' +alias slp='smon ./x&i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`' alias -s html="firefox" alias -s log="less -MN" alias -s odt="libreoffice" @@ -102,7 +103,7 @@ alias -g G='|& egrep -i' alias -g AW='austenwares.com' export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x' function smon(){ - dsh -M -w -g monitor -- "$@" + timeout 1s pdsh -R ssh -w 10.0.1.196,10.0.1.207 "$@" } function dnstest(){ echo "Testing ping:"