From cc1b5b4fa2936e6a22851a2fd64b02d3cefaf1b6 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 2 Mar 2015 11:20:59 -0500 Subject: [PATCH] UXTerm, dmenu improvements --- i3/config | 5 +++-- i3/pass.sh | 2 ++ scripts/sync.sh | 5 +++-- shells/Xresources | 8 ++++++-- shells/zshrc | 1 + 5 files changed, 15 insertions(+), 6 deletions(-) create mode 100755 i3/pass.sh diff --git a/i3/config b/i3/config index 2585add..2e9ce24 100644 --- a/i3/config +++ b/i3/config @@ -87,8 +87,8 @@ bindsym $mod+Return exec uxterm bindsym $mod+shift+Return exec uxterm -e "cd `xcwd`&&/bin/zsh" bindsym $mod+shift+c kill bindsym $mod+c move absolute position center -bindsym XF86MonBrightnessUp exec "xbacklight -inc 10" -bindsym XF86MonBrightnessDown exec "xbacklight -dec 10" +bindsym XF86MonBrightnessUp exec "xbacklight -inc 10 -time 0 -steps 1" +bindsym XF86MonBrightnessDown exec "xbacklight -dec 10 -time 0 -steps 1" bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')" bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+ unmute" bindsym XF86AudioLowerVolume exec "amixer set Master 5%- unmute" @@ -183,6 +183,7 @@ exec --no-startup-id /usr/bin/gtk-redshift -l 36.3:-80.3 -t 6500:4000 exec --no-startup-id /usr/bin/parcellite exec --no-startup-id /usr/bin/numlockx bindsym $mod+p exec dmenu_run -p Run -l 5 -i +bindsym $mod+shift+p exec "~/.i3/pass.sh" #exec --no-startup-id /usr/bin/synapse -s exec --no-startup-id /usr/bin/zeal exec --no-startup-id xset -b diff --git a/i3/pass.sh b/i3/pass.sh new file mode 100755 index 0000000..51a6a8b --- /dev/null +++ b/i3/pass.sh @@ -0,0 +1,2 @@ +#!/bin/zsh +pass -c $(ls ~/.password-store/*/*|cut -b-37 --complement|dmenu -l 5|sed -e 's/\.gpg//') diff --git a/scripts/sync.sh b/scripts/sync.sh index 6983161..b7d35f6 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -82,9 +82,9 @@ while getopts ":hbsdpcw" VALUE "$@"; do ln -s $ABSPATH/shells/liquidpromptrc ~/.config/liquidpromptrc if [ "$(uname)" != "Darwin" ]; then if which trash >/dev/null; then - trash ~/.i3/config ~/.i3/sleep.sh ~/.i3/wall.sh ~/.i3/screensaver.sh ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources + trash ~/.i3/config ~/.i3/sleep.sh ~/.i3/wall.sh ~/.i3/screensaver.sh ~/.i3/pass.sh ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources else - rm ~/.i3/config ~/.i3/sleep.sh ~/.i3/wall.sh ~/.i3/screensaver.sh ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources + rm ~/.i3/config ~/.i3/sleep.sh ~/.i3/wall.sh ~/.i3/screensaver.sh ~/.i3/pass.sh ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources fi # Don't install these on Mac mkdir -p ~/.i3 @@ -93,6 +93,7 @@ while getopts ":hbsdpcw" VALUE "$@"; do ln -s $ABSPATH/i3/wall.sh ~/.i3/wall.sh ln -s $ABSPATH/i3/i3status.conf ~/.i3/i3status.conf 2>/dev/null ln -s $ABSPATH/i3/screensaver.sh ~/.i3/screensaver.sh + ln -s $ABSPATH/i3/pass.sh ~/.i3/pass.sh ln -s $ABSPATH/i3/Xmodmap ~/.Xmodmap ln -s $ABSPATH/i3/xsession ~/.xsession mkdir -p ~/.config/synapse diff --git a/shells/Xresources b/shells/Xresources index 627e273..06e682a 100644 --- a/shells/Xresources +++ b/shells/Xresources @@ -2,10 +2,14 @@ UXTerm*antialias: true UXTerm*hinting: true UXTerm*hintstyle: hintlight UXTerm*rgba: rgb -! XTerm*font: xft:DejaVu Sans Mono-8 +UXTerm*faceName: +! UXTerm*faceName: Terminal:size=8:antialias=false +UXTerm*font: xft:DejaVu Sans Mono-8 +UXTerm*borderWidth: 0 +! UXTerm*faceName: Source Code Pro for Powerline UXerm*letterSpace: -1 -UXTerm*faceSize: 9 +UXTerm*faceSize: 8 UXTerm*utf8: 1 UXTerm*vt100*geometry: 80x60 UXTerm*saveLines: 16384 diff --git a/shells/zshrc b/shells/zshrc index 5a271f8..fc2a249 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -12,6 +12,7 @@ HISTSIZE=12000 SAVEHIST=10000000 setopt HIST_EXPIRE_DUPS_FIRST setopt EXTENDED_HISTORY +setopt APPEND_HISTORY SHARE_HISTORY HISTIGNOREALLDUPS # export PAGER=/usr/bin/w3m plugins=(wd gem pass pip python sudo vagrant) DISABLE_AUTO_UPDATE="true"