dotfiles/yambar/config.yml

182 lines
7.3 KiB
YAML

bar:
height: 26
location: top
#background: 000000CD # EE
background: 040404DD
foreground: cbcbcdFF
#foreground: dbd7d1CC
margin: 2
spacing: 10
#font: Iosevka Nerd Font:pixelsize=16:weight=regular:slant=italic
#font: Monoisome:pixelsize=12:weight=regular:slant=bold
font: FantasqueSansMono:pixelsize=14:weight=regular:slang=italic
border:
width: 2
color: 99999900
#color: 25252570
margin: 0
top-margin: 0
right-margin: 10
left:
- label:
content:
string:
on-click: ~/.config/rofi/launchers/type-7/launcher.sh
text: 󱎰
left-margin: 10
center:
- clock:
time-format: ""
date-format: "%R %B %d"
content:
- string: {text: , font: "Iosevka Nerd Font:style=solid:size=12"}
- string: {text: "{date}", right-margin: 10, left-margin: 10}
- string: {text: "" , font: "Iosevka Nerd Font:style=solid:size=12"}
- string: {text: "{time}", right-margin: 10, left-margin: 10 }
right:
- script:
path: /home/wfalkowski/.cargo/bin/yambar-hyprland-wses
anchors:
ws_focused: &ws_focused dbdbdfff
ws_active: &ws_active 333333ff
ws_empty: &ws_empty 191919ff
ws_other: &ws_other 333333ff
# you can use `{workspace_N}` here to use the workspace name
# assigned by Hyprland instead of hard-coding one here. That
# name is, as far as I can tell, always just the index of the
# workspace though, so not all that valuable.
ws_1: &ws_1 " "
ws_2: &ws_2 " "
ws_3: &ws_3 " "
ws_4: &ws_4 " "
ws_5: &ws_5 " "
ws_6: &ws_6 " "
ws_7: &ws_7 " "
ws_8: &ws_8 " "
ws_9: &ws_9 " "
content:
list:
spacing: 6
items:
- map:
default:
string: { text: *ws_1, foreground: *ws_other }
conditions:
workspace_count < 2:
# if you replace all of these empty: entries with
#
# string: { text: *ws_N, foreground: *ws_empty }
#
# instead, then you'll always see the full
# workspace list. however, you'll be unable to use
# `{workspace_N}` as the workspace names in the
# anchors list above.
empty: {}
workspace_1_focused:
string: { text: *ws_1, foreground: *ws_focused }
workspace_1_active:
string: { text: *ws_1, foreground: *ws_active }
workspace_1_windows == 0:
string: { text: *ws_1, foreground: *ws_empty }
# All of the maps below are identical to the one above,
# except with N++.
- map:
default:
string: { text: *ws_2, foreground: *ws_other }
conditions:
workspace_count < 3:
empty: {}
workspace_2_focused:
string: { text: *ws_2, foreground: *ws_focused }
workspace_2_active:
string: { text: *ws_2, foreground: *ws_active }
workspace_2_windows == 0:
string: { text: *ws_2, foreground: *ws_empty }
- map:
default:
string: { text: *ws_3, foreground: *ws_other }
conditions:
workspace_count < 4:
empty: {}
workspace_3_focused:
string: { text: *ws_3, foreground: *ws_focused }
workspace_3_active:
string: { text: *ws_3, foreground: *ws_active }
workspace_3_windows == 0:
string: { text: *ws_3, foreground: *ws_empty }
- map:
default:
string: { text: *ws_4, foreground: *ws_other }
conditions:
workspace_count < 5:
empty: {}
workspace_4_focused:
string: { text: *ws_4, foreground: *ws_focused }
workspace_4_active:
string: { text: *ws_4, foreground: *ws_active }
workspace_4_windows == 0:
string: { text: *ws_4, foreground: *ws_empty }
- map:
default:
string: { text: *ws_5, foreground: *ws_other }
conditions:
workspace_count < 6:
empty: {}
workspace_5_focused:
string: { text: *ws_5, foreground: *ws_focused }
workspace_5_active:
string: { text: *ws_5, foreground: *ws_active }
workspace_5_windows == 0:
string: { text: *ws_5, foreground: *ws_empty }
- map:
default:
string: { text: *ws_6, foreground: *ws_other }
conditions:
workspace_count < 7:
empty: {}
workspace_6_focused:
string: { text: *ws_6, foreground: *ws_focused }
workspace_6_active:
string: { text: *ws_6, foreground: *ws_active }
workspace_6_windows == 0:
string: { text: *ws_6, foreground: *ws_empty }
- map:
default:
string: { text: *ws_7, foreground: *ws_other }
conditions:
workspace_count < 8:
empty: {}
workspace_7_focused:
string: { text: *ws_7, foreground: *ws_focused }
workspace_7_active:
string: { text: *ws_7, foreground: *ws_active }
workspace_7_windows == 0:
string: { text: *ws_7, foreground: *ws_empty }
- map:
default:
string: { text: *ws_8, foreground: *ws_other }
conditions:
workspace_count < 9:
empty: {}
workspace_8_focused:
string: { text: *ws_8, foreground: *ws_focused }
workspace_8_active:
string: { text: *ws_8, foreground: *ws_active }
workspace_8_windows == 0:
string: { text: *ws_8, foreground: *ws_empty }
- map:
default:
string: { text: *ws_9, foreground: *ws_other }
conditions:
workspace_count < 10:
empty: {}
workspace_9_focused:
string: { text: *ws_9, foreground: *ws_focused }
workspace_9_active:
string: { text: *ws_9, foreground: *ws_active }
workspace_9_windows == 0:
string: { text: *ws_9, foreground: *ws_empty }