diff options
Diffstat (limited to 'config/waybar')
| -rw-r--r-- | config/waybar/config | 118 | ||||
| -rw-r--r-- | config/waybar/config.jonbox | 128 | ||||
| -rw-r--r-- | config/waybar/config.jontop | 128 | ||||
| -rw-r--r-- | config/waybar/style.css | 317 |
4 files changed, 114 insertions, 577 deletions
diff --git a/config/waybar/config b/config/waybar/config index c747733..2b2ffa8 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -1,118 +1,84 @@ { "layer": "top", // Waybar at top layer - "width": 1300, // Waybar width - "spacing": 4, // Gaps between modules (4px) + "height": 16, + "spacing": 0, // Gaps between modules (4px) // Choose the order of the modules - "modules-left": ["hyprland/workspaces"], - "modules-center": ["hyprland/window"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "clock", "tray"], + "modules-left": [ + "niri/workspaces" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "wireplumber", + "network", + "cpu", + "memory", + "temperature", + "battery", + "tray" + ], - "sway/workspaces": { - "disable-scroll": true, - "all-outputs": true, - "warp-on-scroll": false, - "format": "{name}: {icon}", + "niri/workspaces": { + "on-click": "activate", + "format": "{icon}", "format-icons": { "urgent": "", "active": "", "default": "" } }, - "mpd": { - "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", - "format-disconnected": "Disconnected ", - "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", - "unknown-tag": "N/A", - "interval": 2, - "consume-icons": { - "on": " " - }, - "random-icons": { - "off": "<span color=\"#f53c3c\"></span> ", - "on": " " - }, - "repeat-icons": { - "on": " " - }, - "single-icons": { - "on": "1 " - }, - "state-icons": { - "paused": "", - "playing": "" - }, - "tooltip-format": "MPD (connected)", - "tooltip-format-disconnected": "MPD (disconnected)" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - } - }, "tray": { - // "icon-size": 21, "spacing": 10 }, "clock": { // "timezone": "America/New_York", - "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "tooltip-format": "{calendar}", + "format": "{:%I:%M %p}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { - "format": "{usage}% ", - "tooltip": false + "format": " {usage}%", + "interval": 5 }, "memory": { - "format": "{}% " + "format": " {}%", + "interval": 5, + "max-length": 10 }, "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": " {temperatureC}°C", "format-icons": ["", "", ""] }, - "backlight": { - // "device": "acpi_video1", - "format": "{percent}% {icon}", - "format-icons": ["", "", "", "", "", "", "", "", ""] - }, "battery": { "states": { - // "good": 95, "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", + "format-full": "Charged ", "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": { - "bat": "BAT2" + "format-icons": ["", "", "", "", ""], + "interval": 5, + "tooltip": false }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ⚠", + "format-wifi": " {essid} ({signalStrength}%)", + "format-ethernet": " {ipaddr}/{cidr}", + "tooltip-format": " {ifname} via {gwaddr}", + "format-linked": " {ifname} (No IP)", + "format-disconnected": "⚠ Disconnected", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, - "pulseaudio": { - // "scroll-step": 1, // %, can be a float - "format": "{volume}% {icon} {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - "format-source": "{volume}% ", + "wireplumber": { + "scroll-step": 1, // %, can be a float + "format": "{icon}", + "format-bluetooth": "", + "format-muted": "", "format-source-muted": "", "format-icons": { "headphone": "", diff --git a/config/waybar/config.jonbox b/config/waybar/config.jonbox deleted file mode 100644 index c9ad192..0000000 --- a/config/waybar/config.jonbox +++ /dev/null @@ -1,128 +0,0 @@ -{ - "layer": "top", // Waybar at top layer - "width": 1900, // Waybar width - "spacing": 4, // Gaps between modules (4px) - // Choose the order of the modules - "modules-left": ["hyprland/workspaces"], - "modules-center": ["hyprland/window"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "clock", "tray"], - - "sway/workspaces": { - "disable-scroll": true, - "all-outputs": true, - "warp-on-scroll": false, - "format": "{name}: {icon}", - "format-icons": { - "urgent": "", - "active": "", - "default": "" - } - }, - "mpd": { - "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", - "format-disconnected": "Disconnected ", - "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", - "unknown-tag": "N/A", - "interval": 2, - "consume-icons": { - "on": " " - }, - "random-icons": { - "off": "<span color=\"#f53c3c\"></span> ", - "on": " " - }, - "repeat-icons": { - "on": " " - }, - "single-icons": { - "on": "1 " - }, - "state-icons": { - "paused": "", - "playing": "" - }, - "tooltip-format": "MPD (connected)", - "tooltip-format-disconnected": "MPD (disconnected)" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - } - }, - "tray": { - // "icon-size": 21, - "spacing": 10 - }, - "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": { - "bat": "BAT2" - }, - "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ⚠", - "format-alt": "{ifname}: {ipaddr}/{cidr}" - }, - "pulseaudio": { - // "scroll-step": 1, // %, can be a float - "format": "{volume}% {icon} {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - "format-source": "{volume}% ", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - }, - "on-click": "pavucontrol" - } -} diff --git a/config/waybar/config.jontop b/config/waybar/config.jontop deleted file mode 100644 index b9b9968..0000000 --- a/config/waybar/config.jontop +++ /dev/null @@ -1,128 +0,0 @@ -{ - "layer": "top", // Waybar at top layer - "width": 1300, // Waybar width - "spacing": 4, // Gaps between modules (4px) - // Choose the order of the modules - "modules-left": ["hyprland/workspaces"], - "modules-center": ["hyprland/window"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "battery", "clock", "tray"], - - "sway/workspaces": { - "disable-scroll": true, - "all-outputs": true, - "warp-on-scroll": false, - "format": "{name}: {icon}", - "format-icons": { - "urgent": "", - "active": "", - "default": "" - } - }, - "mpd": { - "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", - "format-disconnected": "Disconnected ", - "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", - "unknown-tag": "N/A", - "interval": 2, - "consume-icons": { - "on": " " - }, - "random-icons": { - "off": "<span color=\"#f53c3c\"></span> ", - "on": " " - }, - "repeat-icons": { - "on": " " - }, - "single-icons": { - "on": "1 " - }, - "state-icons": { - "paused": "", - "playing": "" - }, - "tooltip-format": "MPD (connected)", - "tooltip-format-disconnected": "MPD (disconnected)" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - } - }, - "tray": { - // "icon-size": 21, - "spacing": 10 - }, - "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": { - "bat": "BAT2" - }, - "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ⚠", - "format-alt": "{ifname}: {ipaddr}/{cidr}" - }, - "pulseaudio": { - // "scroll-step": 1, // %, can be a float - "format": "{volume}% {icon} {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - "format-source": "{volume}% ", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - }, - "on-click": "pavucontrol" - } -} diff --git a/config/waybar/style.css b/config/waybar/style.css index 7b493d6..6e9da95 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -1,297 +1,124 @@ * { - /* `otf-font-awesome` is required to be installed for icons */ - font-family: FiraCode Nerd Font, FontAwesome, Roboto, Helvetica, Arial, sans-serif; - font-size: 12px; + border: none; + border-radius: 0; + min-height: 0; + font-family: FiraCode Nerd Font; + font-size: 13px; } window#waybar { - background-color: #2B2B30; - color: #CDCDDD; - transition-property: background-color; - transition-duration: .25s; + background-color: #181825; + transition-property: background-color; + transition-duration: 0.5s; } window#waybar.hidden { - opacity: 0.2; + opacity: 0.5; } -/* -window#waybar.empty { - background-color: transparent; -} -window#waybar.solo { - background-color: #FFFFFF; -} -*/ - -window#waybar.termite { - background-color: #3F3F3F; -} - -window#waybar.chromium { - background-color: #000000; - border: none; -} - -button { - /* Use box-shadow instead of border so the text isn't offset */ - box-shadow: inset 0 -3px transparent; - /* Avoid rounded borders under each button name */ - border: none; - border-radius: 0; -} - -/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ -button:hover { - background: inherit; - box-shadow: inset 0 -3px #ffffff; +#workspaces { + background-color: transparent; } #workspaces button { - padding: 0 5px; - background-color: transparent; - color: #ffffff; -} - -#workspaces button:hover { - background: rgba(0, 0, 0, 0.2); + all: initial; + /* Remove GTK theme values (waybar #1351) */ + min-width: 0; + /* Fix weird spacing in materia (waybar #450) */ + box-shadow: inset 0 -3px transparent; + /* Use box-shadow instead of border so the text isn't offset */ + padding: 3px 18px; + margin: 3px 3px; + border-radius: 4px; + background-color: #1e1e2e; + color: #cdd6f4; } #workspaces button.active { - background-color: #7B7B90; - box-shadow: inset 0 -3px #ffffff; + color: #1e1e2e; + background-color: #cdd6f4; } -#workspaces button.urgent { - background-color: #eb4d4b; +#workspaces button:hover { + box-shadow: inherit; + text-shadow: inherit; + color: #1e1e2e; + background-color: #cdd6f4; } -#mode { - background-color: #64727D; - border-bottom: 3px solid #ffffff; +#workspaces button.urgent { + background-color: #f38ba8; } -#clock, -#battery, -#cpu, #memory, -#disk, +#cpu, #temperature, +#custom-power, +#battery, #backlight, -#network, -#pulseaudio, #wireplumber, -#custom-media, -#tray, -#mode, -#idle_inhibitor, -#scratchpad, -#mpd { - padding: 0 10px; - color: #ffffff; -} - -#window, -#workspaces { - margin: 0 4px; - background-color: #2B2B2B; -} - -/* If workspaces is the leftmost module, omit left margin */ -.modules-left > widget:first-child > #workspaces { - margin-left: 0; +#network, +#clock, +#tray { + border-radius: 4px; + margin: 3px 3px; + padding: 3px 12px; + background-color: #1e1e2e; + color: #181825; } -/* If workspaces is the rightmost module, omit right margin */ -.modules-right > widget:last-child > #workspaces { - margin-right: 0; +#custom-power { + margin-right: 6px; } -#clock { - background-color: #4b4b5b; +#memory, +#cpu, +#temperature { + background-color: #fab387; } #battery { - background-color: #ffffff; - color: #000000; -} - -#battery.charging, #battery.plugged { - color: #ffffff; - background-color: #26A65B; -} - -@keyframes blink { - to { - background-color: #ffffff; - color: #000000; - } + background-color: #f38ba8; } -#battery.critical:not(.charging) { - background-color: #f53c3c; - color: #ffffff; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; +#battery.warning, +#battery.critical, +#battery.urgent { + background-color: #ff0000; + color: #FFFF00; } -label:focus { - background-color: #000000; -} - -#cpu { - background-color: #4b4b5b; -} - -#memory { - background-color: #4b4b5b; -} - -#disk { - background-color: #4b4b5b; +#battery.charging { + background-color: #a6e3a1; + color: #181825; } #backlight { - background-color: #90b1b1; -} - -#network { - background-color: #4b4b5b; -} - -#network.disconnected { - background-color: #f53c3c; -} - -#pulseaudio { - background-color: #4b4b5b; -} - -#pulseaudio.muted { - background-color: #4b4b5b; + background-color: #fab387; } #wireplumber { - background-color: #4b4b5b; -} - -#wireplumber.muted { - background-color: #4b4b5b; -} - -#custom-media { - background-color: #66cc99; - color: #2a5c45; - min-width: 100px; -} - -#custom-media.custom-spotify { - background-color: #66cc99; -} - -#custom-media.custom-vlc { - background-color: #ffa000; -} - -#temperature { - background-color: #4b4b5b; -} - -#temperature.critical { - background-color: #4b4b5b; -} - -#tray { - background-color: #4b4b5b; -} - -#tray > .passive { - -gtk-icon-effect: dim; -} - -#tray > .needs-attention { - -gtk-icon-effect: highlight; - background-color: #4b4b5b; -} - -#idle_inhibitor { - background-color: #2d3436; + background-color: #f9e2af; } -#idle_inhibitor.activated { - background-color: #ecf0f1; - color: #2d3436; -} - -#mpd { - background-color: #66cc99; - color: #2a5c45; -} - -#mpd.disconnected { - background-color: #f53c3c; -} - -#mpd.stopped { - background-color: #90b1b1; -} - -#mpd.paused { - background-color: #51a37a; -} - -#language { - background: #00b093; - color: #740864; - padding: 0 5px; - margin: 0 5px; - min-width: 16px; -} - -#keyboard-state { - background: #97e1ad; - color: #000000; - padding: 0 0px; - margin: 0 5px; - min-width: 16px; -} - -#keyboard-state > label { - padding: 0 5px; -} - -#keyboard-state > label.locked { - background: rgba(0, 0, 0, 0.2); -} - -#scratchpad { - background: rgba(0, 0, 0, 0.2); -} - -#scratchpad.empty { - background-color: transparent; -} - -#privacy { - padding: 0; +#network { + background-color: #94e2d5; + padding-right: 17px; } -#privacy-item { - padding: 0 5px; - color: white; +#clock { + font-family: FiraCode Nerd Font; + background-color: #8087a2; } -#privacy-item.screenshare { - background-color: #cf5700; +tooltip { + border-radius: 8px; + padding: 15px; + background-color: #131822; } -#privacy-item.audio-in { - background-color: #1ca000; +tooltip label { + padding: 5px; + background-color: #131822; } -#privacy-item.audio-out { - background-color: #0069d4; -} |
