summaryrefslogtreecommitdiff
path: root/yambar
diff options
context:
space:
mode:
authorAndrew Pirie <andrew@apirie.uk>2024-08-28 23:52:29 +0100
committerAndrew Pirie <andrew@apirie.uk>2024-08-28 23:52:29 +0100
commitf585e70f8cd049ea0605a85e04bce29bcdd050c4 (patch)
treedd005618f75a5fd94630d2d838643be147ec941f /yambar
downloaddotfiles-f585e70f8cd049ea0605a85e04bce29bcdd050c4.tar.gz
dotfiles-f585e70f8cd049ea0605a85e04bce29bcdd050c4.zip
initial commit
Diffstat (limited to 'yambar')
-rw-r--r--yambar/.config/yambar/redwood.yml139
-rw-r--r--yambar/.config/yambar/warbler.yml154
2 files changed, 293 insertions, 0 deletions
diff --git a/yambar/.config/yambar/redwood.yml b/yambar/.config/yambar/redwood.yml
new file mode 100644
index 0000000..1380b9e
--- /dev/null
+++ b/yambar/.config/yambar/redwood.yml
@@ -0,0 +1,139 @@
+std_underline: &std_underline {underline: {size: 12, color: FF0000FF}}
+awesome: &awesome Font Awesome 6 Free:style=solid:size=26
+
+bar:
+ height: 40
+ location: top
+ foreground: FCE8C3FF
+ background: 1C1B19FF
+ font: Iosevka Term:size=28
+
+ left:
+ - i3:
+ sort: ascending
+ anchors:
+ - string: &common {margin: 12, on-click: "swaymsg --quiet workspace {name}"}
+ - string: &default {<<: *common, text: "{name}"}
+ - focused: &focused
+ foreground: FCE8C3FF
+ deco: {stack: [background: {color: 3A3A3AFF}]}
+ - invisible: &invisible {foreground: FFFFFF55}
+ - urgent: &urgent
+ foreground: 1C1B19FF
+ deco: {stack: [background: {color: EF2F27FF}, <<: *std_underline]}
+ content:
+ "":
+ map:
+ conditions:
+ state == focused: {string: {<<: [*default, *focused]}}
+ state == unfocused: {string: {<<: *default}}
+ state == invisible: {string: {<<: [*default, *invisible]}}
+ state == urgent: {string: {<<: [*default, *urgent]}}
+ current:
+ map:
+ left-margin: 7
+ conditions:
+ application == "": {string: {text: "{title}"}}
+ default:
+ list:
+ spacing: 0
+ items:
+ - string: {text: "{title}", max: 50}
+
+ center:
+ - mpd:
+ host: 127.0.0.1
+ port: 6600
+ anchors:
+ list: &artist_album_title
+ spacing: 0
+ items:
+ - map:
+ conditions:
+ state == playing: {string: {text: "{artist}"}}
+ state == paused: {string: {text: "{artist}", foreground: ffffff66}}
+ - string: {text: " | ", foreground: ffffff66}
+ - map:
+ conditions:
+ state == playing: {string: {text: "{album}"}}
+ state == paused: {string: {text: "{album}", foreground: ffffff66}}
+ - string: {text: " | ", foreground: ffffff66}
+ - map:
+ conditions:
+ state == playing: {string: {text: "{title}", foreground: ffa0a0ff}}
+ state == paused: {string: {text: "{title}", foreground: ffffff66}}
+
+ content:
+ map:
+ margin: 10
+ conditions:
+ state == offline: {string: {text: offline, foreground: EF2F27FF}}
+ state == stopped: {string: {text: stopped}}
+ state == paused: {list: *artist_album_title}
+ state == playing: {list: *artist_album_title}
+
+ right:
+ - network:
+ content:
+ map:
+ default: {empty: {}}
+ conditions:
+ name == eth0:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ state == down: {string: {text: " ", foreground: EF2F27FF, right-margin: 10, font: *awesome}}
+ state == up:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ ipv4 == "": {string: {text: " ", font: *awesome}}
+ - network:
+ content:
+ map:
+ default: {empty: {}}
+ conditions:
+ name == wlan0:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ state == down: {string: {text: " ", foreground: EF2F27FF, right-margin: 10, font: *awesome}}
+ state == up:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ ipv4 == "": {string: {text: " ", font: *awesome}}
+ - battery:
+ name: BAT1
+ poll-interval: 30000
+ content:
+ map:
+ conditions:
+ state == discharging:
+ - ramp:
+ tag: capacity
+ items:
+ - string: {text: "", foreground: EF2F27F0, font: *awesome}
+ - string: {text: "", foreground: EF2F27FF, font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", foreground: 519F50FF, font: *awesome}
+ - string: {text: " {capacity}%, {estimate}", right-margin: 10}
+ state == charging:
+ - string: {text: "", foreground: 519F50FF, font: *awesome}
+ - string: {text: "{capacity}%, {estimate}", right-margin: 10}
+ state == full:
+ - string: {text: "", foreground: 519F50FF, font: *awesome}
+ - string: {text: "{capacity}%", right-margin: 10}
+ - clock:
+ date-format: "%A, %d %B %Y"
+ content:
+ - string: {text: "  ", font: *awesome}
+ - string: {text: "{date}", right-margin: 10}
+ - string: {text: "  ", font: *awesome}
+ - string: {text: "{time}", right-margin: 10}
diff --git a/yambar/.config/yambar/warbler.yml b/yambar/.config/yambar/warbler.yml
new file mode 100644
index 0000000..215fbb1
--- /dev/null
+++ b/yambar/.config/yambar/warbler.yml
@@ -0,0 +1,154 @@
+std_underline: &std_underline {underline: {size: 2, color: FF0000FF}}
+awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=12
+
+bar:
+ height: 20
+ location: top
+ foreground: FCE8C3FF
+ background: 1C1B19FF
+ font: Iosevka Term:pixelsize=13.5
+
+ left:
+ - i3:
+ sort: ascending
+ anchors:
+ - string: &common {margin: 8, on-click: "swaymsg --quiet workspace {name}"}
+ - string: &default {<<: *common, text: "{name}"}
+ - focused: &focused
+ foreground: FCE8C3FF
+ deco: {stack: [background: {color: 3A3A3AFF}]}
+ - invisible: &invisible {foreground: FFFFFF55}
+ - urgent: &urgent
+ foreground: 1C1B19FF
+ deco: {stack: [background: {color: EF2F27FF}, <<: *std_underline]}
+ content:
+ "":
+ map:
+ conditions:
+ state == focused: {string: {<<: [*default, *focused]}}
+ state == unfocused: {string: {<<: *default}}
+ state == invisible: {string: {<<: [*default, *invisible]}}
+ state == urgent: {string: {<<: [*default, *urgent]}}
+ current:
+ map:
+ left-margin: 7
+ conditions:
+ application == "": {string: {text: "{title}"}}
+ default:
+ list:
+ spacing: 0
+ items:
+ - string: {text: "{title}", max: 50}
+
+ center:
+ - mpd:
+ host: 127.0.0.1
+ port: 6600
+ anchors:
+ list: &artist_album_title
+ spacing: 0
+ items:
+ - map:
+ conditions:
+ state == playing: {string: {text: "{artist}"}}
+ state == paused: {string: {text: "{artist}", foreground: ffffff66}}
+ - string: {text: " | ", foreground: ffffff66}
+ - map:
+ conditions:
+ state == playing: {string: {text: "{album}"}}
+ state == paused: {string: {text: "{album}", foreground: ffffff66}}
+ - string: {text: " | ", foreground: ffffff66}
+ - map:
+ conditions:
+ state == playing: {string: {text: "{title}", foreground: ffa0a0ff}}
+ state == paused: {string: {text: "{title}", foreground: ffffff66}}
+
+ content:
+ map:
+ margin: 10
+ conditions:
+ state == offline: {string: {text: offline, foreground: EF2F27FF}}
+ state == stopped: {string: {text: stopped}}
+ state == paused: {list: *artist_album_title}
+ state == playing: {list: *artist_album_title}
+
+ right:
+ - network:
+ content:
+ map:
+ default: {empty: {}}
+ conditions:
+ name == wg0:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ state == down: {string: {text: " ", foreground: EF2F27FF, right-margin: 10, font: *awesome}}
+ state == up:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ ipv4 == "": {string: {text: " ", font: *awesome}}
+ - network:
+ content:
+ map:
+ default: {empty: {}}
+ conditions:
+ name == eth0:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ state == down: {string: {text: " ", foreground: EF2F27FF, right-margin: 10, font: *awesome}}
+ state == up:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ ipv4 == "": {string: {text: " ", font: *awesome}}
+ - network:
+ content:
+ map:
+ default: {empty: {}}
+ conditions:
+ name == wlan0:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ state == down: {string: {text: " ", foreground: EF2F27FF, right-margin: 10, font: *awesome}}
+ state == up:
+ map:
+ default: {string: {text: " ", right-margin: 10, font: *awesome}}
+ conditions:
+ ipv4 == "": {string: {text: " ", font: *awesome}}
+ - battery:
+ name: cw2015-battery
+ poll-interval: 30000
+ content:
+ map:
+ conditions:
+ state == discharging:
+ - ramp:
+ tag: capacity
+ items:
+ - string: {text: "", foreground: EF2F27F0, font: *awesome}
+ - string: {text: "", foreground: EF2F27FF, font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", font: *awesome}
+ - string: {text: "", foreground: 519F50FF, font: *awesome}
+ - string: {text: " {capacity}%, {estimate}", right-margin: 10}
+ state == charging:
+ - string: {text: "", foreground: 519F50FF, font: *awesome}
+ - string: {text: "{capacity}%, {estimate}", right-margin: 10}
+ state == full:
+ - string: {text: "", foreground: 519F50FF, font: *awesome}
+ - string: {text: "{capacity}%", right-margin: 10}
+ - clock:
+ date-format: "%A, %d %B %Y"
+ content:
+ - string: {text: "", font: *awesome}
+ - string: {text: "{date}", right-margin: 10}
+ - string: {text: "", font: *awesome}
+ - string: {text: "{time}", right-margin: 2}