feat(waybar): Remove custom package widgets

This commit is contained in:
histalek 2024-01-27 15:43:49 +01:00
parent 3c29c6a3ff
commit c0e6a28ecc
Signed by: histalek
SSH key fingerprint: SHA256:6a6N2Wzk73nwURUHC/ubbCyqdB6yfie0Jv/NGvRcsIE
2 changed files with 37 additions and 57 deletions

View file

@ -70,22 +70,4 @@
}, },
"tooltip": false, "tooltip": false,
}, },
"custom/packages": {
"format": " {}",
"interval": 3600,
"exec": "checkupdates | wc -l",
"exec-if": "exit 0",
"on-click": "exit 0",
"signal": 8,
"tooltip": false,
},
"custom/flatpak": {
"format": " {}",
"interval": 3600,
"exec": "flatpak remote-ls --updates | wc -l",
"exec-if": "exit 0",
"on-click": "exit 0",
"signal": 8,
"tooltip": false,
},
} }

View file

@ -2,8 +2,8 @@
* General * General
* ----------------------------------------------------- */ * ----------------------------------------------------- */
* { * {
font-size: 14px; font-size: 14px;
font-family: JetBrainsMono Nerd Font; font-family: JetBrainsMono Nerd Font;
} }
@define-color basecolor #f8f8f2; @define-color basecolor #f8f8f2;
@ -19,23 +19,25 @@ window#waybar {
} }
@keyframes blink-warning { @keyframes blink-warning {
70% { 70% {
color: @basecolor; color: @basecolor;
} }
to {
color: @basecolor; to {
background-color: @warning; color: @basecolor;
} background-color: @warning;
}
} }
@keyframes blink-critical { @keyframes blink-critical {
70% { 70% {
color: @basecolor; color: @basecolor;
} }
to {
color: @basecolor; to {
background-color: @critical; color: @basecolor;
} background-color: @critical;
}
} }
/* ----------------------------------------------------- /* -----------------------------------------------------
@ -46,7 +48,7 @@ window#waybar {
} }
#workspaces button.focused { #workspaces button.focused {
background: @focused; background: @focused;
} }
#workspaces button:hover { #workspaces button:hover {
@ -57,13 +59,13 @@ window#waybar {
* Tooltips * Tooltips
* ----------------------------------------------------- */ * ----------------------------------------------------- */
tooltip { tooltip {
background: #282a36; background: #282a36;
border: 1px solid #bd93f9; border: 1px solid #bd93f9;
border-radius: 10px; border-radius: 10px;
} }
tooltip label { tooltip label {
color: @basecolor; color: @basecolor;
} }
/* ----------------------------------------------------- /* -----------------------------------------------------
@ -71,25 +73,25 @@ tooltip label {
* ----------------------------------------------------- */ * ----------------------------------------------------- */
#mode, #mode,
#memory { #memory {
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
#memory.critical, #memory.critical,
#cpu.critical { #cpu.critical {
color: @critical; color: @critical;
} }
#mode, #mode,
#memory.critical { #memory.critical {
animation-name: blink-critical; animation-name: blink-critical;
animation-duration: 2s; animation-duration: 2s;
} }
#memory.warning, #memory.warning,
#cpu.warning { #cpu.warning {
color: @warning; color: @warning;
} }
/* ----------------------------------------------------- /* -----------------------------------------------------
@ -97,24 +99,20 @@ tooltip label {
* ----------------------------------------------------- */ * ----------------------------------------------------- */
#window { #window {
color: @basecolor; color: @basecolor;
padding: 4px 10px; padding: 4px 10px;
} }
#custom-packages, #custom-flatpak { #memory,
color: #ff79c6; #cpu {
padding: 4px 10px; color: #8be9fd;
} padding: 4px 10px;
#memory, #cpu {
color: #8be9fd;
padding: 4px 10px;
} }
#clock { #clock {
color: #50fa7b; color: #50fa7b;
padding: 4px 10px; padding: 4px 10px;
} }
#tray { #tray {
padding: 2px 10px; padding: 2px 10px;
} }