From 4e1bd1e207f96ec705152e7284fcaceb135182a8 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 24 Oct 2021 21:55:02 +0200 Subject: Bspwm configuration --- polybar/scripts/polybar/cal.sh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 polybar/scripts/polybar/cal.sh (limited to 'polybar/scripts') 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|_\(.\)|\1|g' \ - | sed 's|\s*$||') -rofi -font "mono 9" -markup -width -"${width}" -lines 8 -location 3 -e "${cal}" -- cgit v1.2.3