polybar的日期点击打开日历优化

master
yutent 2023-07-09 15:55:27 +00:00
parent a60e5b9139
commit b1a4c70548
2 changed files with 7 additions and 1 deletions

View File

@ -4,4 +4,4 @@ format-padding = 3
date = "%a, %m/%d"
time = "%k:%M"
; 点击用alacrity打开日历命令
label = %{A1:alacritty --title Calendar --config-file $HOME/.config/alacritty/calendar.yml --hold -e "cal":}%date% %time%%{A}
label = %{A1:alacritty --title Calendar --config-file $HOME/.config/alacritty/calendar.yml --hold -e ".local/bin/scripts/calendar.sh":}%date% %time%%{A}

View File

@ -0,0 +1,6 @@
#!/bin/bash
# 隐藏光标
tput civis
cal