1 # yambar config to put in $HOME/.config/yambar/config.yml
3 # Typical setup, with wifi, ethernet, sound etc for i3/Sway.
4 # Not perfect so feel free to dig in the manpages and in
5 # examples/configurations/laptop.conf from the original package.
7 # For X11/i3, you'll want to replace calls to swaymsg with i3-msg, and
8 # the sway-xkb module with the xkb module.
10 # fonts we'll be re-using here and there
11 awesome: &awesome Font Awesome 5 Free:style=solid:pixelsize=13
12 awesome_brands: &awesome_brands Font Awesome 5 Brands:pixelsize=15
14 std_underline: &std_underline {underline: { size: 2, color: ffffffff}}
16 # This is THE bar configuration
24 font: DejaVu Sans:pixelsize=11
32 anchors: # Not used (directly) by f00bar; used here to avoid duplication
34 - string: &i3_common {margin: 3, on-click: "swaymsg --quiet workspace {name}"}
35 - string: &default {<<: *i3_common, text: " {name} "}
37 deco: {stack: [background: {color: 2980b9ff}, <<: *std_underline]}
38 - invisible: &invisible {foreground: ffffff55}
41 deco: {stack: [background: {color: bc2b3fff}, <<: *std_underline]}
47 focused: {string: {<<: [*default, *focused]}}
48 unfocused: {string: {<<: *default}}
49 invisible: {string: {<<: [*default, *invisible]}}
50 urgent: {string: {<<: [*default, *urgent]}}
56 "": {string: {text: "{title}"}}
61 - string: {text: "{application}", max: 10, foreground: 2980b9ff}
62 - string: {text: ": "}
63 - string: {text: "{title}", max: 35}
67 time-format: "%H:%M %Z"
68 date-format: "%Y-%m-%d"
71 - string: {text: , font: *awesome}
72 - string: {text: "{date}", right-margin: 5}
73 - string: {text: , font: *awesome}
74 - string: {text: "{time}"}
79 drive: &drive { text: , font: *awesome}
80 optical: &optical {text: , font: *awesome}
89 on-click: udisksctl mount -b {device}
91 false: [{string: *drive}, {string: {text: "{label}"}}]
92 true: [{string: *optical}, {string: {text: "{label}"}}]
96 on-click: udisksctl unmount -b {device}
99 - string: {<<: *drive, deco: *std_underline}
100 - string: {text: "{label}"}
102 - string: {<<: *optical, deco: *std_underline}
103 - string: {text: "{label}"}
105 identifiers: [1:1:AT_Translated_Set_2_keyboard]
108 - string: {text: , font: *awesome}
109 - string: {text: "{layout}"}
118 ~carrier: {empty: {}}
121 default: {string: {text: , font: *awesome, foreground: ffffff66}}
123 state == up && ipv4 != "": {string: {text: , font: *awesome}}
132 default: {string: {text: , font: *awesome, foreground: ffffff66}}
134 state == down: {string: {text: , font: *awesome, foreground: ff0000ff}}
138 - string: {text: , font: *awesome}
139 - string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s"}
143 - string: {text: , font: *awesome, foreground: ffffff66}
144 - string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s", foreground: ffffff66}
155 on-click: /bin/sh -c "amixer -q sset Speaker unmute && amixer -q sset Headphone unmute && amixer -q sset Master toggle"
157 deco: {stack: [background: {color: f1c40fff}]}
159 true: {string: {text: , font: *awesome, foreground: 0f3cf1ff}}
164 - string: {text: "{percent} ", font: *awesome}
165 - string: {text: "{percent} ", font: *awesome}
166 - string: {text: "{percent} ", font: *awesome}
167 - string: {text: "{percent} ", font: *awesome}
168 - string: {text: "{percent} ", font: *awesome}
172 on-click: shutdown now