make this config - Nord-themed Yambar configuration Global configuration bar: height: 30…
- User
make this config -
Nord-themed Yambar configuration
Global configuration
bar: height: 30 location: top background: "2E3440FF" # Removed "#" and added alpha channel font: "SauceCodePro Nerd Font:pixelsize=14"
Modules configuration
modules:
-
clock: content: - string: text: " {time}" foreground: "ECEFF4FF" # Removed "#" and added alpha update-interval: 1 time-format: "%I:%M %p" deco: background: color: "5E81ACFF" # Removed "#" and added alpha border: color: "4C566AFF" # Removed "#" and added alpha width: 2 radius: 8
-
sway-workspaces: content: - string: text: "{name}" foreground: "81A1C1FF" # Removed "#" and added alpha deco: background: color: "3B4252FF" # Removed "#" and added alpha border: color: "4C566AFF" # Removed "#" and added alpha width: 2 radius: 8
-
network: name: wlan0 content: - string: text: " {essid}" foreground: "2E3440FF" # Removed "#" and added alpha deco: background: color: "88C0D0FF" # Removed "#" and added alpha border: color: "4C566AFF" # Removed "#" and added alpha width: 2 radius: 8
-
pipewire: content: - string: text: " {volume}%" foreground: "2E3440FF" # Removed "#" and added alpha deco: background: color: "A3BE8CFF" # Removed "#" and added alpha border: color: "4C566AFF" # Removed "#" and added alpha width: 2 radius: 8
Layout configuration
layout:
- left: [clock]
- center: [sway-workspaces]
- right: [network, pipewire]
in this format -
Typical laptop setup, with wifi, brightness, battery etc, for
i3/Sway.
For X11/i3, you'll want to replace calls to swaymsg with i3-msg, and
the sway-xkb module with the xkb module.
fonts we'll be re-using here and there
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=14 awesome_brands: &awesome_brands Font Awesome 6 Brands:pixelsize=16
std_underline: &std_underline {underline: { size: 2, color: ff0000ff}}
This is THE bar configuration
bar: height: 26 location: top spacing: 5 background: "2E3440CC" margin: 7
Default font
font: Adobe Helvetica:pixelsize=12
foreground: ffffffff
background: 111111cc
border: width: 1 color: 999999cc margin: 5 top-margin: 0
left: - i3: anchors: # Not used (directly) by f00bar; used here to avoid duplication - string: &i3_common {margin: 5, on-click: "swaymsg --quiet workspace {name}"} - string: &default {<<: *i3_common, text: "? {name}"} - string: &main {<<: *i3_common, text: , font: *awesome} - string: &surfing {<<: *i3_common, text: , font: *awesome_brands} - string: &misc {<<: *i3_common, text: , font: *awesome} - string: &mail {<<: *i3_common, text: , font: *awesome} - string: &music {<<: *i3_common, text: , font: *awesome} - focused: &focused deco: {stack: [background: {color: ffa0a04c}, <<: *std_underline]} - invisible: &invisible {foreground: ffffff55} - urgent: &urgent foreground: 000000ff deco: {stack: [background: {color: bc2b3fff}, <<: *std_underline]} - map: &i3_mode default: - string: margin: 5 text: "{mode}" deco: {background: {color: cc421dff}} - empty: {right-margin: 7} conditions: mode == default: {empty: {}} content: "": map: conditions: state == focused: {string: {<<: [*default, *focused]}} state == unfocused: {string: {<<: *default}} state == invisible: {string: {<<: [*default, *invisible]}} state == urgent: {string: {<<: [*default, *urgent]}} main: map: conditions: state == focused: {string: {<<: [*main, *focused]}} state == unfocused: {string: {<<: *main}} state == invisible: {string: {<<: [*main, *invisible]}} state == urgent: {string: {<<: [*main, *urgent]}} surfing: map: conditions: state == focused: {string: {<<: [*surfing, *focused]}} state == unfocused: {string: {<<: *surfing}} state == invisible: {string: {<<: [*surfing, *invisible]}} state == urgent: {string: {<<: [*surfing, *urgent]}} misc: map: conditions: state == focused: {string: {<<: [*misc, *focused]}} state == unfocused: {string: {<<: *misc}} state == invisible: {string: {<<: [*misc, *invisible]}} state == urgent: {string: {<<: [*misc, *urgent]}}
-
- Assistant
Here’s your Nord-themed Yambar configuration reformatted into the desired structure, similar to the given example: