From 79a997bcc0ee22443028e894b1419f6b1dbf1d2b Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 4 Jun 2016 16:08:50 -0400 Subject: [PATCH] Changes --- i3/config | 10 +++++----- shells/zshrc | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/i3/config b/i3/config index 647144e..5f995bd 100644 --- a/i3/config +++ b/i3/config @@ -17,7 +17,7 @@ bindsym $mod+shift+apostrophe bar mode dock bindsym $mod+shift+d exec i3-input -F 'rename workspace to "%s"' -P 'Rename to: ' # Rofi shortcuts bindsym $mod+p exec rofi -font "Monospace 12" -show run -bindsym $mod+shift+p exec "rofi-pass" +bindsym $mod+shift+p exec "rofi-pass --last-used" # Misc shortcuts bindsym --release Num_Lock exec "xdotool key --clearmodifiers Shift+Insert;numlockx on" bindsym Print exec "shutter -s" @@ -42,8 +42,8 @@ bindsym XF86MonBrightnessDown exec "xbacklight -dec 10 -time 0 -steps 1" bindsym $mod+XF86MonBrightnessUp exec "xbacklight -inc 5 -time 0 -steps 1" bindsym $mod+XF86MonBrightnessDown exec "xbacklight -dec 5 -time 0 -steps 1" bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')" -bindsym XF86AudioRaiseVolume exec "amixer set Master 1%+ unmute" -bindsym XF86AudioLowerVolume exec "amixer set Master 1%- unmute" +bindsym XF86AudioRaiseVolume exec "amixer set Master 7%+ unmute" +bindsym XF86AudioLowerVolume exec "amixer set Master 7%- unmute" bindsym XF86AudioMute exec "amixer -D pulse set Master 1+ toggle" # Toggle toucpad bindsym $mod+backslash exec "synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')" @@ -109,7 +109,7 @@ bindsym $mod+shift+w exec "~/.i3/run.sh wall" # Visuals workspace_layout tabbed -smart_borders on +#smart_borders on new_window pixel 1 # Colors @@ -131,7 +131,7 @@ client.urgent $rd $rd $tx # Bar bar { - height 12 + #height 12 status_command i3status --config ~/.i3/i3status.conf font -*-*-*-*-*-*-8-*-*-*-*-*-*-* mode dock diff --git a/shells/zshrc b/shells/zshrc index a4ac6b3..d5763b7 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -303,6 +303,26 @@ create-repo(){ read -s password curl --user "$username:$password" -d name="$1" -d private="$PRIVATE" https://austenwares.com/gogs/api/v1/user/repos } +hsh(){ + FILE="$1" + ARGS="" + while (( $# > 0 )); do + if [[ "md5" = "$1" ]] || [[ "md5sum" = "$1" ]] || [[ "m" = "$1" ]]; then + ARGS="$ARGS "md5sum + elif [[ "sha1" = "$1" ]] || [[ "sha1sum" = "$1" ]] || [[ "s" = "$1" ]]; then + ARGS="$ARGS "sha1sum + elif [[ "sha2" = "$1" ]] || [[ "sha256sum" = "$1" ]]; then + ARGS="$ARGS "sha256sum + elif [[ "sha512" = "$1" ]] || [[ "sha512sum" = "$1" ]]; then + ARGS="$ARGS "sha512sum + fi + shift + done + ARGS=$(echo "$ARGS"|xargs) + echo "Calculating ($ARGS) of \"$FILE\"" + echo pv "$FILE" \| pee $ARGS + pv "$FILE" | pee $(echo $ARGS) +} rc(){ case $1 in z) vim ~/.zshrc;;