diff --git a/waybar/colors-waybar.css b/waybar/colors-waybar.css deleted file mode 100644 index 0910b14..0000000 --- a/waybar/colors-waybar.css +++ /dev/null @@ -1,20 +0,0 @@ -@define-color foreground #e6e4cb; -@define-color background #130914; -@define-color cursor #e6e4cb; - -@define-color color0 #130914; -@define-color color1 #2A588E; -@define-color color2 #5D6D8D; -@define-color color3 #69959B; -@define-color color4 #5FAAA3; -@define-color color5 #9BA39E; -@define-color color6 #A8D0B0; -@define-color color7 #e6e4cb; -@define-color color8 #a19f8e; -@define-color color9 #2A588E; -@define-color color10 #5D6D8D; -@define-color color11 #69959B; -@define-color color12 #5FAAA3; -@define-color color13 #9BA39E; -@define-color color14 #A8D0B0; -@define-color color15 #e6e4cb; diff --git a/waybar/modules.json b/waybar/modules.json index 3dc8774..16a7e44 100644 --- a/waybar/modules.json +++ b/waybar/modules.json @@ -121,7 +121,7 @@ "tooltip": false }, - // Rofi Power Menu + // Power Menu "custom/exit": { "format": "", "on-click": "wlogout", @@ -154,7 +154,7 @@ // CPU "cpu": { - "format": "/ C {usage}% ", + "format": "/ C {usage}% " }, // Memory @@ -168,6 +168,19 @@ "format": " {percentage_used}% ", "path": "/" }, + + // Network + "network": { + "format": "{ifname}", + "format-wifi": " {essid} ({signalStrength}%)", + "format-ethernet": " {ipaddr}/{cidr}", + "format-disconnected": "", //An empty format will hide the module. + "tooltip-format": " {ifname} via {gwaddri}", + "tooltip-format-wifi": " {essid} ({signalStrength}%)", + "tooltip-format-ethernet": " {ifname}", + "tooltip-format-disconnected": "Disconnected", + "max-length": 50 + }, // Battery "battery": { diff --git a/waybar/myconfig b/waybar/myconfig index fa9e2fc..9f24b4e 100644 --- a/waybar/myconfig +++ b/waybar/myconfig @@ -32,6 +32,7 @@ "custom/updates", "pulseaudio", "bluetooth", + "network", "battery", "group/hardware", "custom/exit", diff --git a/waybar/style.css b/waybar/style.css index 9bbe513..4074b32 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -230,6 +230,28 @@ window#waybar.empty #window { color: #FFFFFF; } +/* ----------------------------------------------------- + * Network + * ----------------------------------------------------- */ + +#network { + background-color: #FFFFFF; + font-size: 16px; + color: @background; + border-radius: 12px; + padding: 2px 10px 0px 10px; + margin: 5px 15px 5px 0px; + opacity:0.8; +} + +#network.ethernet { + background-color: @color11; +} + +#network.wifi { + background-color: @color11; +} + /* ----------------------------------------------------- * Bluetooth * ----------------------------------------------------- */