diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brightness.sh | 22 | ||||
| -rwxr-xr-x | bin/kj-setup.sh (renamed from bin/setup.sh) | 7 | ||||
| -rwxr-xr-x | bin/kj-sync-keys.sh (renamed from bin/kj_sync_authorized_keys.sh) | 0 |
3 files changed, 28 insertions, 1 deletions
diff --git a/bin/brightness.sh b/bin/brightness.sh new file mode 100755 index 0000000..7a2107d --- /dev/null +++ b/bin/brightness.sh @@ -0,0 +1,22 @@ +#!/bin/bash +readonly XBACKLIGHT=xbacklight + +current_level=$($XBACKLIGHT) +current_level=$((${current_level%.*})) + +if (( "$current_level" < 8 )); then + diff=1 +elif (( "$current_level" < 24 )); then + diff=6 +else + diff=10 +fi + +if [[ $1 == "+" ]]; then + $XBACKLIGHT -inc $diff +elif [[ $1 == "-" ]]; then + $XBACKLIGHT -dec $diff +else + echo "Usage: $0 +|-" + exit 1 +fi diff --git a/bin/setup.sh b/bin/kj-setup.sh index c054646..5058bb5 100755 --- a/bin/setup.sh +++ b/bin/kj-setup.sh @@ -7,7 +7,7 @@ none='\e[0m' cd # Check that things are in their right places. -if [[ ! -f dotfiles/bin/setup.sh ]]; then +if [[ ! -f dotfiles/bin/kj-setup.sh ]]; then printf "${red}[FAIL]${none} expected to find myself\n" exit 1 fi @@ -68,6 +68,7 @@ if which i3 >/dev/null; then mkdir -p .i3 create_symlink ../dotfiles/i3/config .i3/config create_symlink dotfiles/i3status.conf .i3status.conf + create_symlink dotfiles/i3blocks.conf .i3blocks.conf else printf "${orange}[SKIPPED]${none} i3 not installed.\n" fi @@ -87,3 +88,7 @@ if [[ "$success" == "1" ]]; then else printf "${red}[WARNING]${none} failed to install vim plugins\n" fi + +if which emacs >/dev/null && [[ ! -d .emacs.d ]]; then + git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d +fi diff --git a/bin/kj_sync_authorized_keys.sh b/bin/kj-sync-keys.sh index b8be72d..b8be72d 100755 --- a/bin/kj_sync_authorized_keys.sh +++ b/bin/kj-sync-keys.sh |
