fixed waybar writing new config

This commit is contained in:
specCon18 2023-08-31 03:32:13 -04:00
parent f51eee8733
commit e2ada70992
2 changed files with 79 additions and 154 deletions

View file

@ -1,11 +1,11 @@
* { * {
/* `otf-font-awesome` is required to be installed for icons */ /* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; font-family: FontAwesome, FiraCode, Helvetica, Arial, sans-serif;
font-size: 13px; font-size: 16px;
} }
window#waybar { window#waybar {
background-color: rgba(43, 48, 59, 0.5); background-color: rgba(68, 64, 60, 1);
border-bottom: 3px solid rgba(100, 114, 125, 0.5); border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff; color: #ffffff;
transition-property: background-color; transition-property: background-color;
@ -48,25 +48,6 @@ button:hover {
box-shadow: inset 0 -3px #ffffff; box-shadow: inset 0 -3px #ffffff;
} }
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode { #mode {
background-color: #64727D; background-color: #64727D;
border-bottom: 3px solid #ffffff; border-bottom: 3px solid #ffffff;
@ -89,7 +70,7 @@ button:hover {
#scratchpad, #scratchpad,
#mpd { #mpd {
padding: 0 10px; padding: 0 10px;
color: #ffffff; color: #030712;
} }
#window, #window,
@ -97,18 +78,8 @@ button:hover {
margin: 0 4px; margin: 0 4px;
} }
/* If workspaces is the leftmost module, omit left margin */
.modules-left>widget:first-child>#workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right>widget:last-child>#workspaces {
margin-right: 0;
}
#clock { #clock {
background-color: #64727D; background-color: #ec4899;
} }
#battery { #battery {
@ -144,12 +115,13 @@ label:focus {
} }
#cpu { #cpu {
background-color: #2ecc71; background-color: #10b981;
color: #000000; color: #030712;
} }
#memory { #memory {
background-color: #9b59b6; background-color: #d946ef;
color: #030712;
} }
#disk { #disk {
@ -157,20 +129,21 @@ label:focus {
} }
#backlight { #backlight {
background-color: #90b1b1; background-color: #8b5cf6;
} }
#network { #network {
background-color: #2980b9; background-color: #0ea5e9;
color: #030712;
} }
#network.disconnected { #network.disconnected {
background-color: #f53c3c; background-color: #ef4444;
} }
#pulseaudio { #pulseaudio {
background-color: #f1c40f; background-color: #eab308;
color: #000000; color: #030712;
} }
#pulseaudio.muted { #pulseaudio.muted {
@ -270,12 +243,4 @@ label:focus {
#keyboard-state>label.locked { #keyboard-state>label.locked {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
}
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
background-color: transparent;
} }

View file

@ -11,102 +11,76 @@
main_bar = { main_bar = {
layer = "top"; layer = "top";
position = "top"; position = "top";
height = 30; height = 40;
spacing = 4; spacing = 8;
# // Choose the order of the modules
modules-left = []; modules-left = [];
modules-center = []; modules-center = [
];
modules-right = [ modules-right = [
"battery"
"temperature"
"backlight"
"cpu"
"memory"
"pulseaudio" "pulseaudio"
"network" "network"
"clock"
]; ];
# "keyboard-state": { keyboard-state = {
# "numlock": true, numlock = true;
# "capslock": true, capslock = true;
# "format": "{name} {icon}", format = "{name} {icon}";
# "format-icons": { format-icons = {
# "locked": "", locked = "";
# "unlocked": "" unlocked = "";
# } };
# }, };
# "mpd": { clock = {
# "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", timezone = "America/Detroit";
# "format-disconnected": "Disconnected ", tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
# "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", format-alt = "{:%d-%m-%Y}";
# "unknown-tag": "N/A", };
# "interval": 2, cpu = {
# "consume-icons": { format = "{usage}% ";
# "on": " " tooltip = false;
# }, };
# "random-icons": { memory = {
# "off": "<span color=\"#f53c3c\"></span> ", format = "{}% ";
# "on": " " };
# }, temperature = {
# "repeat-icons": { thermal-zone = 2;
# "on": " " hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
# }, critical-threshold = 80;
# "single-icons": { format-critical = "{temperatureC}°C {icon}";
# "on": "1 " format = "{temperatureC}°C {icon}";
# }, format-icons = ["" "" ""];
# "state-icons": { };
# "paused": "", backlight = {
# "playing": "" format = "{percent}% {icon}";
# }, format-icons = ["" "" "" "" "" "" "" "" ""];
# "tooltip-format": "MPD (connected)", };
# "tooltip-format-disconnected": "MPD (disconnected)" battery = {
# }, states = {
# "idle_inhibitor": { good = 95;
# "format": "{icon}", warning = 30;
# "format-icons": { critical = 15;
# "activated": "", };
# "deactivated": "" format = "{capacity}% {icon}";
# } format-charging = "{capacity}% ";
# }, format-plugged = "{capacity}% ";
# "tray": { format-alt = "{time} {icon}";
# // "icon-size": 21, format-good = "";
# "spacing": 10 format-full = "";
# }, format-icons = [
# "clock": { ""
# // "timezone": "America/New_York", ""
# "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", ""
# "format-alt": "{:%Y-%m-%d}" ""
# }, ""
# "cpu": { ];
# "format": "{usage}% ", };
# "tooltip": false
# },
# "memory": {
# "format": "{}% "
# },
# "temperature": {
# // "thermal-zone": 2,
# // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
# "critical-threshold": 80,
# // "format-critical": "{temperatureC}°C {icon}",
# "format": "{temperatureC}°C {icon}",
# "format-icons": ["", "", ""]
# },
# "backlight": {
# // "device": "acpi_video1",
# "format": "{percent}% {icon}",
# "format-icons": ["", "", "", "", "", "", "", "", ""]
# },
# "battery": {
# "states": {
# // "good": 95,
# "warning": 30,
# "critical": 15
# },
# "format": "{capacity}% {icon}",
# "format-charging": "{capacity}% ",
# "format-plugged": "{capacity}% ",
# "format-alt": "{time} {icon}",
# // "format-good": "", // An empty format will hide the module
# // "format-full": "",
# "format-icons": ["", "", "", "", ""]
# },
# "battery#bat2": { # "battery#bat2": {
# "bat": "BAT2" # "bat": "BAT2"
# }, # },
network = { network = {
format-wifi = "{essid} ({signalStrength}%) "; format-wifi = "{essid} ({signalStrength}%) ";
@ -139,20 +113,6 @@
}; };
on-click = "pavucontrol"; on-click = "pavucontrol";
}; };
# custom/media = {
# format = "{icon} {}";
# return-type = "json";
# max-length = 40;
# format-icons = {
# spotify = "";
# default = "🎜";
# };
# escape = true;
# # Script in resources folder
# exec = "$HOME/.config/waybar/mediaplayer.py 2> /dev/null";
# # Filter player based on name
# exec = "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null";
# };
}; };
}; };
style = builtins.readFile ./style.css; style = builtins.readFile ./style.css;