From b1a4c705486e85f3ca6c657a196e882d9e20406b Mon Sep 17 00:00:00 2001 From: yutent Date: Sun, 9 Jul 2023 15:55:27 +0000 Subject: [PATCH] =?UTF-8?q?polybar=E7=9A=84=E6=97=A5=E6=9C=9F=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=89=93=E5=BC=80=E6=97=A5=E5=8E=86=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/polybar/modules/date.ini | 2 +- home/local/bin/scripts/calendar.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 home/local/bin/scripts/calendar.sh 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