added pacman notifier to waybar
This commit is contained in:
parent
a68c513f34
commit
607c2a02da
2 changed files with 52 additions and 3 deletions
|
@ -1,8 +1,25 @@
|
||||||
{
|
{
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"modules-left": ["sway/workspaces","sway/scratchpad","sway/window"],
|
"modules-left":
|
||||||
"modules-center": ["clock"],
|
[
|
||||||
"modules-right": ["custom/notification", "backlight","pulseaudio","network","idle_inhibitor","battery"],
|
"sway/workspaces",
|
||||||
|
"sway/scratchpad",
|
||||||
|
"sway/window"
|
||||||
|
],
|
||||||
|
"modules-center":
|
||||||
|
[
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"modules-right":
|
||||||
|
[
|
||||||
|
"custom/notification",
|
||||||
|
"custom/pacman",
|
||||||
|
"backlight",
|
||||||
|
"pulseaudio",
|
||||||
|
"network",
|
||||||
|
"idle_inhibitor",
|
||||||
|
"battery"
|
||||||
|
],
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
|
|
||||||
"clock":
|
"clock":
|
||||||
|
@ -149,6 +166,17 @@
|
||||||
"on-click": "swaync-client -t -sw",
|
"on-click": "swaync-client -t -sw",
|
||||||
"on-click-right": "swaync-client -d -sw",
|
"on-click-right": "swaync-client -d -sw",
|
||||||
"escape": true
|
"escape": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/pacman": {
|
||||||
|
"format": "{icon}{}",
|
||||||
|
"return-type": "json",
|
||||||
|
"format-icons": {
|
||||||
|
"pending-updates": " ",
|
||||||
|
"updated": ""
|
||||||
|
},
|
||||||
|
"exec-if": "which waybar-updates",
|
||||||
|
"exec": "waybar-updates"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,3 +129,24 @@ tooltip label
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
border-right: 1px solid @primary_fg_color;
|
border-right: 1px solid @primary_fg_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes blink-update
|
||||||
|
{
|
||||||
|
to
|
||||||
|
{
|
||||||
|
background-color: dodgerblue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-pacman
|
||||||
|
{
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-pacman.pending-updates
|
||||||
|
{
|
||||||
|
animation-name: blink-update;
|
||||||
|
animation-duration: 3s;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue