aboutsummaryrefslogtreecommitdiff
path: root/polybar/scripts/polybar/cal.sh
diff options
context:
space:
mode:
Diffstat (limited to 'polybar/scripts/polybar/cal.sh')
-rwxr-xr-xpolybar/scripts/polybar/cal.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/polybar/scripts/polybar/cal.sh b/polybar/scripts/polybar/cal.sh
deleted file mode 100755
index a69d088..0000000
--- a/polybar/scripts/polybar/cal.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-# Add a fake tty to get the day highlight
-# https://stackoverflow.com/a/32981392
-faketty () {
- script -qfec "$(printf "%q " "$@")"
-}
-
-# Get the max line width
-width=$(ncal -3 | wc -L)
-
-cal=$(faketty ncal -3 \
- | sed 's|_\(.\)|<span background="white" foreground="black">\1</span>|g' \
- | sed 's|\s*$||')
-rofi -font "mono 9" -markup -width -"${width}" -lines 8 -location 3 -e "${cal}"