feat: add date widget
This commit is contained in:
parent
ed88184a04
commit
99464bed6e
6 changed files with 21 additions and 12 deletions
|
@ -1,8 +1,7 @@
|
|||
.actions {
|
||||
background-color: $bg;
|
||||
color: $fg;
|
||||
//font-family: Product Sans;
|
||||
font-family: Ubuntu Mono;
|
||||
font-family: Product Sans;
|
||||
border-radius: 30px;
|
||||
border: 5px solid $contrastbg;
|
||||
padding: 10px 18px;
|
||||
|
@ -10,7 +9,7 @@
|
|||
|
||||
.controlsbox {
|
||||
background-color: $contrastbg;
|
||||
border-radius: 7px;
|
||||
border-radius: 15px;
|
||||
padding: 7px 12px;
|
||||
|
||||
.vol-slider {
|
||||
|
@ -81,8 +80,7 @@
|
|||
font-size: 14px;
|
||||
}
|
||||
.username {
|
||||
//font-family: Product Sans;
|
||||
font-family: Ubuntu Mono;
|
||||
font-family: Product Sans;
|
||||
}
|
||||
.useractions {
|
||||
.logout {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
.date {
|
||||
background-color: $bg;
|
||||
color: $fg;
|
||||
border-radius: 4px;
|
||||
border-radius: 30px;
|
||||
border: 5px solid $contrastbg;
|
||||
}
|
||||
|
||||
.timebox {
|
||||
|
|
|
@ -48,10 +48,10 @@
|
|||
|
||||
(defwindow date
|
||||
:monitor 0
|
||||
:geometry (geometry :x "6px"
|
||||
:y "-44px"
|
||||
:geometry (geometry :x "70px"
|
||||
:y "4px"
|
||||
:width "0px" ; automatically generated
|
||||
:height "0px" ; automatically generated
|
||||
:anchor "left bottom")
|
||||
:anchor "top right")
|
||||
:wm-ignore true
|
||||
(date))
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
"spacing": 5
|
||||
},
|
||||
"clock": {
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
"on-click": "$HOME/.config/waybar/scripts/date-toggle.sh",
|
||||
//"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
//"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
|
|
8
waybar/scripts/date-toggle.sh
Executable file
8
waybar/scripts/date-toggle.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $(eww state | grep calendar_month) ]]; then
|
||||
eww close date && eww close closer
|
||||
else
|
||||
eww close-all
|
||||
eww open date && eww open closer
|
||||
fi
|
|
@ -3,5 +3,6 @@
|
|||
if [[ $(eww state | grep br_icon) ]]; then
|
||||
eww close actions && eww close closer
|
||||
else
|
||||
eww close-all
|
||||
eww open actions && eww open closer
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue