diff --git a/examples/configurations/river-tags.conf b/examples/configurations/river-tags.conf new file mode 100644 index 0000000..94e5874 --- /dev/null +++ b/examples/configurations/river-tags.conf @@ -0,0 +1,60 @@ +hack: &hack Hack Nerd Font:pixelsize=13 +bg_default: &bg_default {stack: [{background: {color: 81A1C1ff}}, {underline: {size: 4, color: D8DEE9ff}}]} +bar: + height: 40 + location: top + font: JuliaMono:pixelsize=10 + spacing: 2 + margin: 0 + layer: bottom + foreground: eeeeeeff + background: 2E3440dd + + left: + - river: + anchors: + - base: &river_base + left-margin: 10 + right-margin: 13 + tag: id + default: {string: {text: , font: *hack}} + values: + 1: {string: {text: ﳐ, font: *hack}} + 2: {string: {text: , font: *hack}} + 3: {string: {text: , font: *hack}} + 4: {string: {text: , font: *hack}} + 5: {string: {text: , font: *hack}} + 10: {string: {text: "scratchpad", font: *hack}} + 11: {string: {text: "work", font: *hack}} + + content: + map: + on-click: + left: sh -c "riverctl set-focused-tags $((1 << ({id} - 1)))" + right: sh -c "riverctl toggle-focused-tags $((1 << ({id} -1)))" + middle: sh -c "riverctl toggle-view-tags $((1 << ({id} -1)))" + tag: state + values: + urgent: + map: + <<: *river_base + deco: {background: {color: D08770ff}} + focused: + map: + <<: *river_base + deco: *bg_default + visible: + map: + tag: occupied + values: + false: {map: {<<: *river_base}} + true: {map: {<<: *river_base, deco: *bg_default}} + unfocused: + map: + <<: *river_base + invisible: + map: + tag: occupied + values: + false: {empty: {}} + true: {map: {<<: *river_base, deco: {underline: {size: 3, color: ea6962ff}}}}