Compare commits
4 commits
b4ee2a5380
...
cd42f11600
Author | SHA1 | Date | |
---|---|---|---|
cd42f11600 | |||
42f06a9feb | |||
349e6db176 | |||
5f33a5ef5f |
3 changed files with 20 additions and 4 deletions
|
@ -51,11 +51,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
// "icon-size": 21,
|
"icon-size": 24,
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:%a %b %H:%M}",
|
"format": "{:%a %b %d %H:%M}",
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
"format-alt": "{:%Y-%m-%d}"
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
* {
|
* {
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
font-family: Inter, FontAwesome;
|
font-family: Inter, FontAwesome;
|
||||||
|
font-weight: 500;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
. ~/.profile
|
. ~/.profile
|
||||||
|
|
||||||
dconf_color_path=/org/gnome/desktop/interface/color-scheme
|
dconf_color_path=/org/gnome/desktop/interface/color-scheme
|
||||||
|
dconf_message_path=/org/gnome/shell/extensions/simple-message/message
|
||||||
|
|
||||||
switch_helix() {
|
switch_helix() {
|
||||||
sed -i 's/theme = ".*"/theme = "'$1'"/' ~/.config/helix/config.toml
|
sed -i 's/theme = ".*"/theme = "'$1'"/' ~/.config/helix/config.toml
|
||||||
|
@ -28,9 +29,23 @@ switch_from_dconf() {
|
||||||
|
|
||||||
switch_from_dconf "$(dconf read "$dconf_color_path")"
|
switch_from_dconf "$(dconf read "$dconf_color_path")"
|
||||||
|
|
||||||
dconf watch "$dconf_color_path" | while read -r line; do
|
(dconf watch "$dconf_color_path" | while read -r line; do
|
||||||
theme="$(echo "$line" | grep -E "'.*'" | sed "s/'//g")"
|
theme="$(echo "$line" | grep -E "'.*'" | sed "s/'//g")"
|
||||||
test -z "$theme" && continue
|
test -z "$theme" && continue
|
||||||
switch_from_dconf "$theme"
|
switch_from_dconf "$theme"
|
||||||
done
|
done) &
|
||||||
|
|
||||||
|
update_zeit() {
|
||||||
|
dconf write "$dconf_message_path" "'$(zeit tracking --no-colors)'"
|
||||||
|
echo updated zeit
|
||||||
|
}
|
||||||
|
update_zeit
|
||||||
|
|
||||||
|
(busybox inotifyd - "$ZEIT_DB":c | while read -r; do
|
||||||
|
update_zeit
|
||||||
|
done) &
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
sleep 30
|
||||||
|
update_zeit
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue