From c02929603858af052f703e64b253ea2522737d0c Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 19 Apr 2016 17:26:16 -0400 Subject: [PATCH] Minior fixes Signed-off-by: Austen Adler --- i3/config | 2 -- shells/zshrc | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index 664a71f..82360ee 100644 --- a/i3/config +++ b/i3/config @@ -125,7 +125,6 @@ bindsym $mod+space focus mode_toggle bindsym $mod+o workspace back_and_forth bindsym $mod+bracketleft workspace prev bindsym $mod+bracketright workspace next -bindsym $mod+a focus parent #set $x_switch exec --no-startup-id /usr/local/bin/i3-wk-switch.py set $x_switch workspace bindsym $mod+1 $x_switch 1 @@ -188,7 +187,6 @@ exec --no-startup-id /usr/bin/shutter --min_at_startup exec --no-startup-id /usr/bin/redshift -l 36.3:-80.3 -t 4000:2000 exec --no-startup-id /usr/bin/parcellite exec --no-startup-id /usr/bin/numlockx -exec --no-startup-id /usr/bin/zeal exec --no-startup-id /bin/zsh -c 'pidof syncthing||screen -dmS syncthing /home/stonewareslord/applications/syncthing/syncthing ' #exec --no-startup-id /usr/bin/udiskie -tv #smart_borders on diff --git a/shells/zshrc b/shells/zshrc index e388958..95e6a1c 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -206,6 +206,13 @@ alias -s odt="libreoffice" alias -s doc="libreoffice" alias -s docx="libreoffice" alias -g PASTE='2>&1 |curl --data-urlencode text@- https://austenwares.com/paste/api/create' +paste() { + NAME="" + if [[ ! -z "$1" ]]; then + NAME="-d title=$1" + fi + sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" | curl --data-urlencode text@- $NAME -d name=$USER https://austenwares.com/paste/api/create +} alias -g c='rsync --partial -ha --info=progress2 "$@"' alias -g cfat='rsync --partial -hrlc --info=progress2 "$@"' alias -g F='`fzf --no-mouse -m -1 -x`'