diff options
| -rwxr-xr-x | aur | 2 | ||||
| -rwxr-xr-x | ce | 2 | ||||
| -rwxr-xr-x | ci | 2 | ||||
| -rwxr-xr-x | m | 2 | ||||
| -rwxr-xr-x | ranpas | 2 | ||||
| -rwxr-xr-x | ratws | 2 | ||||
| -rwxr-xr-x | sc | 2 | ||||
| -rwxr-xr-x | vcs | 20 | ||||
| -rwxr-xr-x | wls | 4 |
9 files changed, 25 insertions, 13 deletions
@@ -1,4 +1,4 @@ -#!/bin/dash +#!/usr/bin/env sh if [ "$1" = "-s" ]; then shift echo Searching for "$*" ... @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Smart directory changer using the power of grep ;) # source in a function j() { ce $*; cd `head -n 1 ~/.local/share/dir_lst` } # or some such @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env sh # Convenient frontend for quickly evaluating C code LIBR="stdlib stdio math ieee754 limits stdint" @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # MPD control script based on socat and an idea I saw somewhere case "$1" in @@ -1,5 +1,5 @@ # Read random pastes from pastie.org ;) -#!/bin/bash +#!/usr/bin/env bash echo Fetching paste list ... lst=`wget pastie.org/pastes -q -O - | grep "id='paste" | head -n 1 | sed "s/.*id='paste_\([0-9]*\)'.*/\1/"` @@ -1,4 +1,4 @@ -#!/usr/bin/env dash +#!/usr/bin/env sh font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*" screen=$(ratpoison -c sdump | tr ',' '\n' | grep '1$') @@ -1,4 +1,4 @@ -#!/bin/dash +#!/usr/bin/env sh # Quick hack to manage screen hotplugging case "$1" in "d") xrandr --nograb --output CRT1 --off --output LVDS --auto;; @@ -10,9 +10,21 @@ VCS_NEW="" VCS_MOD="" VCS_REC="" -nstr=" %F{red}●%f" -mstr=" %F{11}●%f" -rstr=" %F{28}●%f" +if [[ $1 == "--zsh-colour" ]]; then + nstr=" %F{red}●%f" + mstr=" %F{11}●%f" + rstr=" %F{28}●%f" + cFST="%F{green}" + cSND="%F{blue}" + cEND="%f" +else + nstr="✪" + mstr="±" + rstr="↑" + cFST="" + cSND="" + cEND="" +fi if [[ -d ".git" || -d "../.git" || -d "../../.git" ]]; then outp=$(git status) @@ -44,4 +56,4 @@ else if [[ -d "_darcs" || -d "../_darcs" || -d "../../_darcs" ]]; then [[ $? = 0 ]] || VCS_REC=$rstr fi; fi; -[[ ! "$VCS_STR" = "" ]] && echo "%F{green}$VCS_STR%f{%F{blue}$VCS_INF%f$VCS_REC$VCS_MOD$VCS_NEW}" +[[ ! "$VCS_STR" = "" ]] && echo "$cFST$VCS_STR$cEND{$cSND$VCS_INF$cEND $VCS_NEW$VCS_MOD$VCS_REC}" @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env sh # Terribly written wireless network control script @@ -22,6 +22,6 @@ if [ ! -f "$dird/$ssid" ]; then fi; fi; -sudo wpa_supplicant -B -i wlp2s2 -c "$dird/$ssid" +sudo wpa_supplicant -B -D wext -i wlp2s2 -c "$dird/$ssid" sleep 3s sudo dhcpcd wlp2s2 |
