waybar: add sleep reminder

This commit is contained in:
lelgenio 2021-05-24 15:48:36 -03:00
parent b3dd7488ba
commit d50f18814b
2 changed files with 14 additions and 2 deletions

View File

@ -9,6 +9,7 @@
],
"modules-center": [
"clock",
"custom/sleep",
"custom/weather",
],
"modules-right": [
@ -176,6 +177,11 @@
"exec":"_get-sway-layout",
"interval": 1,
"tooltip":false
},
"custom/sleep":{
"exec":"test $(date +%H) -lt 5 && echo 'GO TO SLEEP' | trans -b",
"interval": 60,
"tooltip":false
}
}

View File

@ -44,12 +44,12 @@ window#waybar.solo {
}
/*Window Title*/
#window{
#window {
color: {{@@ color.txt @@}};
margin:0 4px;
}
#mode{
#mode {
color: {{@@ accent_color @@}};
}
@ -119,3 +119,9 @@ window#waybar.solo {
font-size: {{@@ font.size.medium @@}}px;
color: {{@@ color.bg_light @@}};
}
#custom-sleep {
color: {{@@ accent_color @@}};
font-size: {{@@ font.size.big @@}}px;
font-weight: bold;
}