diff --git a/home/config/polybar/modules/date.ini b/home/config/polybar/modules/date.ini index e4a10a0..c7ca94f 100644 --- a/home/config/polybar/modules/date.ini +++ b/home/config/polybar/modules/date.ini @@ -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} \ No newline at end of file +label = %{A1:alacritty --title Calendar --config-file $HOME/.config/alacritty/calendar.yml --hold -e ".local/bin/scripts/calendar.sh":}%date% %time%%{A} \ No newline at end of file diff --git a/home/local/bin/scripts/calendar.sh b/home/local/bin/scripts/calendar.sh new file mode 100644 index 0000000..9705fdc --- /dev/null +++ b/home/local/bin/scripts/calendar.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# 隐藏光标 +tput civis + +cal \ No newline at end of file