mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-06-15 20:25:13 +02:00
feat(waybar-modules): add modules that shows how many packages need an update
refactor(waybar-styles): update css to simplify changes
This commit is contained in:
@@ -11,10 +11,18 @@
|
||||
"modules-left": ["tray"],
|
||||
//"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
|
||||
//"modules-center": [""],
|
||||
"modules-center": ["pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery"],
|
||||
"modules-center": ["pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "custom/pacman"],
|
||||
"modules-right": ["idle_inhibitor", "custom/do-not-disturb", "clock"],
|
||||
//"modules-right": ["tray", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "clock", "custom/power"],
|
||||
// Modules configuration
|
||||
"custom/pacman": {
|
||||
"format": "{text} ",
|
||||
"interval": 3600, // every hour
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "ping -c 1 -W 1 -q archlinux.org >/dev/null 2>&1 && [ $(checkupdates | wc -l) -gt 100 ]",
|
||||
"on-click": "wezterm -e yay",
|
||||
"tooltip-format": "{text} updates available",
|
||||
},
|
||||
"custom/do-not-disturb": {
|
||||
"exec": "~/.config/waybar/get_dnd_status.sh",
|
||||
"interval": "once",
|
||||
@@ -90,11 +98,11 @@
|
||||
"network": {
|
||||
"format-wifi": "{essid} <span size='large'></span> ",
|
||||
//"format-wifi": "{essid} ({signalStrength}%) <span size='large'></span> ",
|
||||
"format-ethernet": "Wired <span size='large'></span>",
|
||||
"format-ethernet": "Wired <span size='large'></span> ",
|
||||
"tooltip-format": "{ifname} via {gwaddr}",
|
||||
"format-linked": "{ifname} (No IP) <span size='large'></span>",
|
||||
"format-disconnected": "Disconnected <span size='large'> </span>",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr} <span size='large'></span> ",
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
|
||||
@@ -90,12 +90,13 @@ button:hover {
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#custom-do-not-disturb,
|
||||
#custom-pacman,
|
||||
#mpd {
|
||||
border: 0px solid transparent;
|
||||
border-radius: 1em;
|
||||
color: #ffffff;
|
||||
padding: 0 0.875em;
|
||||
background-color: rgba(80, 80, 80, 0.5);
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#window,
|
||||
@@ -113,20 +114,11 @@ button:hover {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#window {
|
||||
background-color: rgba(80, 80, 80, 0.8);
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
@@ -161,14 +153,6 @@ label:focus {
|
||||
background-color: alpha(#000000, 0.2);
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#memory.warning {
|
||||
background-color: alpha(#ffa000, 0.2);
|
||||
}
|
||||
@@ -177,29 +161,6 @@ label:focus {
|
||||
background-color: alpha(#f53c3c, 0.2);
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
@@ -224,7 +185,6 @@ label:focus {
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
@@ -234,7 +194,6 @@ label:focus {
|
||||
}
|
||||
|
||||
#custom-do-not-disturb {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
transition-property: background-color;
|
||||
transition-duration: 1s;
|
||||
padding: 0 0.5rem 0 0.8rem;
|
||||
@@ -245,10 +204,6 @@ label:focus {
|
||||
color: rgb(10, 10, 10);
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
@@ -259,7 +214,6 @@ label:focus {
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: rgba(10, 10, 10, 0.2);
|
||||
transition-property: background-color;
|
||||
transition-duration: 1s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user