forked from external/yambar
Add river-tags example
This commit is contained in:
parent
1d9297593e
commit
7945a561d0
1 changed files with 60 additions and 0 deletions
60
examples/configurations/river-tags.conf
Normal file
60
examples/configurations/river-tags.conf
Normal file
|
@ -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}}}}
|
Loading…
Add table
Reference in a new issue