-
Notifications
You must be signed in to change notification settings - Fork 0
/
fastis.sh
executable file
·63 lines (50 loc) · 1.07 KB
/
fastis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /bin/bash
#
#┏━╸┏━┓┏━┓╺┳╸╻┏━┓
#┣╸ ┣━┫┗━┓ ┃ ┃┗━┓
#╹ ╹ ╹┗━┛ ╹ ╹┗━┛
#
#calendar applet for Cinnamom panel
#written by Christos Angelopoulos September 2021
time="$(date +%H:%M)"
date="$(date +%e\ %b)"
tooltip="$(date +%H:%M\,\ %A\ %e\ %B\ %Y)"
xml=`cat <<EOF
<xml>
<appsettings>
<tooltip>$tooltip</tooltip><clickaction>gnome-calendar</clickaction>
</appsettings>
<item>
<type>box</type>
<attr>
<vertical>1</vertical>
</attr>
<item>
<type>box</type>
<attr>
<vertical>0</vertical>
<xalign>0</xalign>
</attr>
<item>
<type>box</type>
<attr>
<vertical>1</vertical>
<xalign>0</xalign>
</attr>
<item>
<type>text</type>
<value>$time</value>
<attr><xalign>0</xalign><style>padding: 0px;font-size: 9pt;font-weight: bold;color:silver</style></attr>
</item>
<item>
<type>text</type>
<value>$date</value>
<attr><xalign>0</xalign><style>padding: 0px;font-size: 9pt;font-weight: bold;color:silver</style></attr>
</item>
</item>
</item>
</item>
</xml>
EOF
`
echo "$xml"