nepali date time i3wm

 https://github.com/srishanbhattarai/nepcal/releases

download latest linux binary

extrace  it in .local/bin/nepcal 

---------------------------------------------------------------------------------------------------

vim  ~/.config/i3blocks/config

[nepcal]
command= echo $(~/
.local/bin/nepcal d)
interval=6000
signal=10


-------------------------------------------------------------------------------------------------------




-------------------------------------------------------------------------------------------------------

via notification on clocking on date in i3blocks clock

-------------------------------------------------------------------------------------------------------

vim  ~/.scripts/clock

 

#!/bin/sh

clock=$(date '+%I')

case "$clock" in
    "00") icon="🕛" ;;
    "01") icon="🕐" ;;
    "02") icon="🕑" ;;
    "03") icon="🕒" ;;
    "04") icon="🕓" ;;
    "05") icon="🕔" ;;
    "06") icon="🕕" ;;
    "07") icon="🕖" ;;
    "08") icon="🕗" ;;
    "09") icon="🕘" ;;
    "10") icon="🕙" ;;
    "11") icon="🕚" ;;
    "12") icon="🕛" ;;
esac

case $BLOCK_BUTTON in
    1)notify-send "$(nepcal d)";;
    2) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;;
    3) setsid -f "$TERMINAL" -e calcurse ;;
    
    6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac

date "+%Y %b %d (%a) $icon%I:%M%p"

 ---------------------------

vim ~/.config/i3blocks.config

[clock]
command=~/.scripts/clock
interval=60
signal=10



Comments

Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

fix idm integration on chrome

Hidden Wiki