aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart4
-rwxr-xr-xherbstluftwm/code/sys/calendar4
-rw-r--r--interrobang/.interrobangrc47
3 files changed, 51 insertions, 4 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart
index 9f38750..44aecd8 100755
--- a/herbstluftwm/.config/herbstluftwm/autostart
+++ b/herbstluftwm/.config/herbstluftwm/autostart
@@ -33,8 +33,8 @@ Mod=Mod4
Alt=Mod1
# run menu
-hc keybind $Mod-w spawn dmenu_run -nb '#272822' -nf '#bcbcbc' -sb '#6A8C8C' -sf '#101010' -i -fn '-Gohu-GohuFont-Medium-R-Normal'
-hc keybind $Mod-r spawn dmenu_run -nb '#272822' -nf '#bcbcbc' -sb '#6A8C8C' -sf '#101010' -i -fn '-Gohu-GohuFont-Medium-R-Normal'
+hc keybind $Mod-w spawn interrobang
+hc keybind $Mod-r spawn interrobang
# toggle touchpad
hc keybind $Mod-m spawn bash /home/xero/code/sys/toggle-touchpad
# dynamic window gap
diff --git a/herbstluftwm/code/sys/calendar b/herbstluftwm/code/sys/calendar
index f339a8c..28199ae 100755
--- a/herbstluftwm/code/sys/calendar
+++ b/herbstluftwm/code/sys/calendar
@@ -8,8 +8,8 @@ LINES=$(cal -m | wc -l)
LINES=$((LINES + 2))
(
-date +'^bg(#666666) '
+date +'^bg(#111111) '
date +''
# current month, highlight header and today
-cal -m | sed -r -e "1,2 s/.*/^fg(#737373)&^fg()/" -e "s/(^| )($TODAY)($| )/\1^bg(#6A8C8C)^fg(#000000)\2^fg()^bg()\3/") | dzen2 -x 1290 -y 4 -w 146 -h 12 -l $LINES -sa c -p -e 'onstart=uncollapse,hide;button1=exit;' -fg "#909090" -tw 6 -fn "$font"
+cal -m | sed -r -e "1,2 s/.*/^fg(#d3d3d3)&^fg()/" -e "s/(^| )($TODAY)($| )/\1^bg(#6A8C8C)^fg(#111111)\2^fg()^bg()\3/") | dzen2 -x 0 -y 16 -w 146 -h 12 -l $LINES -sa c -p -e 'onstart=uncollapse,hide;button1=exit;' -fg "#d3d3d3" -tw 6 -fn "$font"
)
diff --git a/interrobang/.interrobangrc b/interrobang/.interrobangrc
new file mode 100644
index 0000000..92d95da
--- /dev/null
+++ b/interrobang/.interrobangrc
@@ -0,0 +1,47 @@
+## ██ ██ ██
+## ░░ ░██ ░██
+## ██ ███████ ██████ █████ ██████ ██████ ██████ ░██ ██████ ██████ █████
+## ░██░░██░░░██░░░██░ ██░░░██░░██░░█░░██░░█ ██░░░░██░██████ ░░░░░░██ ░░██░░░██ ██░░░██
+## ░██ ░██ ░██ ░██ ░███████ ░██ ░ ░██ ░ ░██ ░██░██░░░██ ███████ ░██ ░██░██ ░██
+## ░██ ░██ ░██ ░██ ░██░░░░ ░██ ░██ ░██ ░██░██ ░██ ██░░░░██ ░██ ░██░░██████
+## ░██ ███ ░██ ░░██ ░░██████░███ ░███ ░░██████ ░██████ ░░████████ ███ ░██ ░░░░░██
+## ░░ ░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░░░░░ ░░░░░ ░░░░░░░░ ░░░ ░░ █████
+## ░░░░░
+## ▓▓▓▓▓▓▓▓▓▓
+## ░▓ author ▓ xero <x@xero.nu>
+## ░▓ code ▓ http://code.xero.nu/dotfiles
+## ░▓ mirror ▓ http://git.io/.files
+## ░▓▓▓▓▓▓▓▓▓▓
+## ░░░░░░░░░░
+
+## █▓▒░ options
+set font = fixed
+set font = -Gohu-GohuFont-Medium-R-Normal
+set geometry = top
+set geometry = 1366x17+0+0 #16
+set colors = #528b8b #111111 #d3d3d3 #111111 #cc8800 #000000
+set border = 1px #111111
+set bangchar = !
+set run_hook = %s
+set run_hook = %s || (notify-send "error: command not found";interrobang)
+set autocomp = 1
+set list = true
+set last = true
+set margin = -80
+set shell = /bin/zsh
+
+## █▓▒░ bangs
+bang ! = urxvtc -e %s
+bang www = chromium %s
+bang pdf = evince %s
+bang img = viewnior %s
+bang man = urxvtc -e man %s
+bang ddg = chromium https://duckduckgo.com/?q=%s
+bang math = notify-send "$(echo '%s' | bc -l)"
+bang ? = echo "interrobang ignored \"%s\""
+bang quit = case "%s" in shutdown) sudo systemctl poweroff ;; sleep) sudo systemctl suspend ;; reboot) sudo systemctl reboot ;; logout) killall xinit ;; cancel) exit ;; esac
+
+tab default = percontation "%s" %s | sort -u
+tab math = str="%s%s"; echo "!calc $(echo ${str#\!calc} | bc -l)"
+tab ? = ignore="%s%s"; awk '/^bang/ {print "!"$2" ";}' ~/.interrobangrc
+tab quit = echo -e "cancel\nshutdown\nsleep\nreboot\nlogout" | grep "^%s%s"