summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.scripts/bt29
-rwxr-xr-x.scripts/color2567
-rwxr-xr-x.scripts/commits_by_hour64
-rwxr-xr-x.scripts/docker-refresh6
-rwxr-xr-x.scripts/is_docker_running5
-rwxr-xr-x.scripts/select_audio8
-rwxr-xr-x.scripts/vimura5
7 files changed, 0 insertions, 124 deletions
diff --git a/.scripts/bt b/.scripts/bt
deleted file mode 100755
index d4604f1..0000000
--- a/.scripts/bt
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env sh
-
-set -e
-
-# Check if bluetooth is blocked
-(rfkill | grep -E "bluetooth.*\<blocked\>" >/dev/null) && echo "Please check rfkill and unblock bluetooth module." && exit || true
-
-[ "$1" = "stop" ] && systemctl stop bluetooth.service && exit
-systemctl is-active bluetooth.service >/dev/null || systemctl start bluetooth.service
-
-[ "$(bluetoothctl show | awk '/Powered/ {print $2}')" = "no" ] && bluetoothctl power on && bluetoothctl agent on
-
-BTID='^([A-F0-9]{2}:){5}[A-F0-9]{2}$'
-
-if [ $# -gt 0 ]; then
- if [ "$#" -eq 1 ]; then
- PAIRED=$(bluetoothctl paired-devices | grep "$1" | awk '/Device/ {print $2}')
-
- if [ $(echo "$1" | grep -E $BTID) ]; then bluetoothctl connect $1
- elif [ $(echo "$PAIRED" | grep -E $BTID) ]; then bluetoothctl connect $PAIRED
- else bluetoothctl $*
- fi
- else bluetoothctl $*
- fi
-else
- CONNECTED="$(bluetoothctl info | awk '/Name/ {print $2}')" || true
-
- bluetoothctl paired-devices | awk "/Device/ {if(\"$CONNECTED\"==\$3) print \"\033[1;32m\" \$2 \"\t\" \$3 \"\033[0m\"; else print \$2 \"\t\" \$3;}"
-fi
diff --git a/.scripts/color256 b/.scripts/color256
deleted file mode 100755
index 1ade67c..0000000
--- a/.scripts/color256
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/env bash
-for i in {0..255} ; do
- printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
- if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
- printf "\n";
- fi
-done
diff --git a/.scripts/commits_by_hour b/.scripts/commits_by_hour
deleted file mode 100755
index 1bfb293..0000000
--- a/.scripts/commits_by_hour
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/env bash
-
-VERBOSE=0
-NO_HOUR=0
-P='.'
-
-POSITIONAL=()
-while [[ $# -gt 0 ]]; do
- key="$1"
- case $key in
- -v|--verbose)
- VERBOSE=1
- shift
- ;;
- -n|--no-hour)
- NO_HOUR=1
- shift
- ;;
- -h|--help)
- echo "Usage: commits_by_hour [-v] [-n] [path]"
- echo " -v,--verbose Be more verbose, print all hours"
- echo " -n,--no-hour Don\'t print hours"
- echo " -h,--help Show this help message"
- echo " path Path to git repository (Default: .)"
- exit 0
- ;;
- *)
- P=$1
- shift
- ;;
- esac
-done
-
-cd $P
-
-# Writes number of commits categorized by hour of the day
-LOG=$(git log --format="%ad" | \
- sed -Ee 's/.*([0-9]{2})(:[0-9]{2}){2}.*/\1/g' | \
- sort | \
- uniq -c | \
- sed -Ee 's/^ +([0-9]+) ([0-9]+)/\2 \1/g')
-
-HOURS=({00..23})
-
-for h in ${HOURS[*]}; do
- l=$(echo "$LOG" | grep -Eo "^$h [0-9]+")
- RES=$?
-
- if [ $RES -gt 0 ]; then # No commits in this hour
- if [ $VERBOSE -gt 0 ]; then
- if [ $NO_HOUR -gt 0 ]; then
- echo 0
- else
- echo $h 0
- fi
- fi
- else
- if [ $NO_HOUR -gt 0 ]; then
- echo `echo $l | sed -E 's/^[0-9]{2} ([0-9]+)$/\1/g'`
- else
- echo $l
- fi
- fi
-done
diff --git a/.scripts/docker-refresh b/.scripts/docker-refresh
deleted file mode 100755
index 6bb4d71..0000000
--- a/.scripts/docker-refresh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-docker-compose stop $1
-docker-compose rm -f $1
-docker-compose create $1
-docker-compose start $1
diff --git a/.scripts/is_docker_running b/.scripts/is_docker_running
deleted file mode 100755
index 0724a32..0000000
--- a/.scripts/is_docker_running
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env sh
-
-[ ! -z "$BLOCK_BUTTON" ] && notify-send 'Running containers' "$(docker ps --format '{{.Names}}')" && exit
-
-systemctl is-active docker >/dev/null && echo -e "\uf308$(docker ps -q | wc -l)"
diff --git a/.scripts/select_audio b/.scripts/select_audio
deleted file mode 100755
index 41155af..0000000
--- a/.scripts/select_audio
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env bash
-
-pactl set-default-sink $(pactl list sinks | \
- grep -B 1 "$(pactl list sinks | \
- awk '/Description/{$1="";print $0;}' | \
- dmenu -i -fn monospace -p 'sink' -dim 0.4 -nb '#222' -nf '#bbb' -sb '#444' -sf '#eee'
- )" | awk '/Name/{print $2}')
-kill -10 $(pidof dwmblocks)
diff --git a/.scripts/vimura b/.scripts/vimura
deleted file mode 100755
index 21eaac0..0000000
--- a/.scripts/vimura
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-echo ${1%.pdf}
-zathura --fork -x "vim --servername ${1%.pdf} -c \"let g:syncpdf='${1%.pdf}'\" --remote +%{line} %{input}" $*
-#zathura --fork -x "vim --servername vim -c \"let g:syncpdf='${1:0:5}'\" --remote +%{line} %{input}" $1