diff options
author | shmibs <shmibs@gmail.com> | 2014-06-24 09:47:56 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-06-24 09:47:56 -0700 |
commit | c6c2695b03dcc98c5a9fb2e8b2622e4e5685a63b (patch) | |
tree | c43d6fe31b7fe18b091a896f37777523af22bef0 /.config/herbstluftwm | |
parent | 66cd3a6d36d5fe66984259fa726e54c512e7bf3c (diff) | |
download | dotfiles-c6c2695b03dcc98c5a9fb2e8b2622e4e5685a63b.tar.gz |
updated vim tab / buffer management
things are super easy now =D
Diffstat (limited to '.config/herbstluftwm')
-rwxr-xr-x | .config/herbstluftwm/autostart | 2 | ||||
-rwxr-xr-x | .config/herbstluftwm/calc.sh | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index b414be2..7d06bab 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -177,7 +177,7 @@ hc rule focus=on hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off # set apppropriate things to pseudotile hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on focus=on -hc rule class~'(milkytracker|goattrk2|FTL|Tegaki-recognize|Gcalctool|Pcsx2|Tilem2)' pseudotile=on focus=on +hc rule class~'(freeciv-sdl|milkytracker|FTL|Tegaki-recognize|Pcsx2|Tilem2)' pseudotile=on focus=on # unlock, just to be sure hc unlock diff --git a/.config/herbstluftwm/calc.sh b/.config/herbstluftwm/calc.sh index 358f43d..142065e 100755 --- a/.config/herbstluftwm/calc.sh +++ b/.config/herbstluftwm/calc.sh @@ -5,8 +5,30 @@ in="first" prompt="calc:" pi="3.1415926535897932384626433832795028841971694" e="2.7182818284590452353602874713526624977572471" + +# check first word for special commands +command_check() { + case "$(echo $1 | cut -d ' ' -f 1)" in + "y") + echo "$2" | tr -d '~' | xclip -selection clipboard + return 1 + ;; + "yank") + echo "$2" | tr -d '~' | xclip -selection clipboard + return 1 + ;; + + *) + return 0 + ;; + esac +} + while [ "$in" != "" ]; do in=$(echo "" | dmenu -q -h 18 -nb $1 -nf $2 -sb $3 -sf $4 -p "$prompt") + if [[ $(command_check "$in" "$acc") -eq 1 ]]; then + break + fi # replace "ans" with the previous value in=$(echo $in | sed -e "s/ans/$acc/g") |