From 56a28d6eff5039d7c22dbc8cb1160a7fd795f577 Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 25 May 2022 21:35:32 -0300 Subject: [PATCH] river: yambar --- .config/river/load-colors | 18 +---- .config/themer.lua | 2 +- .config/yambar/real-config.yml | 142 --------------------------------- 3 files changed, 2 insertions(+), 160 deletions(-) delete mode 100644 .config/yambar/real-config.yml diff --git a/.config/river/load-colors b/.config/river/load-colors index 7433ef7..b6f45c9 100755 --- a/.config/river/load-colors +++ b/.config/river/load-colors @@ -5,25 +5,9 @@ riverctl background-color 0x$background riverctl border-color-focused 0x$border_focused riverctl border-color-unfocused 0x$border_unfocused riverctl border-width 5 -riverctl spawn 'killall yambar ; yambar' +riverctl spawn "killall yambar ; yambar --config=$HOME/.cache/themer.lua/yambar" riverctl spawn "killall fnott >/dev/null ; fnott" -riverctl spawn "killall river-tag-overlay >/dev/null ; river-tag-overlay \ - --border-width=5 \ - --anchors=1:0:0:0 \ - --timeout=2000 \ - --square-padding=10 \ - --square-inner-padding=5 \ - --square-size=30 \ - --background-colour=0x$background \ - --border-colour=0x$border_focused \ - --square-active-background-colour=0x$border_focused \ - --square-active-border-colour=0x$border_focused \ - --square-active-occupied-colour=0x$border_focused \ - --square-inactive-background-colour=0x$background \ - --square-inactive-border-colour=0x$border_focused \ - --square-inactive-occupied-colour=0x$border_focused \ - " if test -n "$bg"; then riverctl spawn "killall swaybg ; swaybg --image '$bg'" diff --git a/.config/themer.lua b/.config/themer.lua index be2aae1..000759d 160000 --- a/.config/themer.lua +++ b/.config/themer.lua @@ -1 +1 @@ -Subproject commit be2aae17290fbf459e7fb193de4274b5ea162639 +Subproject commit 000759de26d82e4a790634206f818295ca1e7211 diff --git a/.config/yambar/real-config.yml b/.config/yambar/real-config.yml deleted file mode 100644 index 68caeb7..0000000 --- a/.config/yambar/real-config.yml +++ /dev/null @@ -1,142 +0,0 @@ -bar: - height: 16 - location: top - layer: top - spacing: 8 - right-margin: 8 - background: *bg - foreground: *fg - - font: sans-serif:size=12 - - left: - - river: - anchors: - base: &river_base - margin: 8 - tag: id - default: &river_default - default: {string: {text: "{id}"}} - values: &river_values - 1: {string: {text: "I"}} - 2: {string: {text: "II"}} - 3: {string: {text: "III"}} - 4: {string: {text: "IV"}} - 5: {string: {text: "V"}} - 6: {string: {text: "VI"}} - 7: {string: {text: "VII"}} - 8: {string: {text: "VIII"}} - 9: {string: {text: "IX"}} - 10: {empty: {}} - 11: {empty: {}} - 12: {empty: {}} - 13: {empty: {}} - 14: {empty: {}} - 15: {empty: {}} - 16: {empty: {}} - 17: {empty: {}} - 18: {empty: {}} - 19: {empty: {}} - 20: {empty: {}} - 21: {empty: {}} - 22: {empty: {}} - 23: {empty: {}} - 24: {empty: {}} - 25: {empty: {}} - 26: {empty: {}} - 27: {empty: {}} - 28: {empty: {}} - 29: {empty: {}} - 30: {empty: {}} - 31: {empty: {}} - 32: {empty: {}} - content: - map: - tag: state - values: - focused: - map: - <<: *river_base - deco: {background: {color: *accent}} - values: - <<: *river_values - 1: {string: {text: "I", foreground: *bg}} - 2: {string: {text: "II", foreground: *bg}} - 3: {string: {text: "III", foreground: *bg}} - 4: {string: {text: "IV", foreground: *bg}} - 5: {string: {text: "V", foreground: *bg}} - 6: {string: {text: "VI", foreground: *bg}} - 7: {string: {text: "VII", foreground: *bg}} - 8: {string: {text: "VIII", foreground: *bg}} - 9: {string: {text: "IX", foreground: *bg}} - unfocused: - map: - <<: *river_base - values: - <<: *river_values - invisible: - map: - tag: occupied - values: - true: - map: - deco: {background: {color: *bgish}} - <<: *river_base - values: - <<: *river_values - false: - map: - <<: *river_base - values: - <<: *river_values - right: - - network: - name: eth0 - content: - map: - tag: carrier - default: {empty: {}} - values: - true: - map: - tag: state - values: - down: {string: {text: Ethernet down, foreground: *accent}} - up: - map: - tag: ipv4 - default: {string: {text: Ethernet}} - values: - "": {string: {text: Ethernet sin IPv4, foreground: *accent}} - - network: - name: wlan0 - content: - map: - tag: state - values: - down: {string: {text: WiFi down, foreground: *accent}} - up: - map: - tag: ipv4 - default: {string: {text: WiFi}} - values: - "": {string: {text: WiFi sin IPv4, foreground: *accent}} - - - battery: - name: BAT0 - poll-interval: 30 - content: - map: - tag: state - values: - discharging: {string: {text: "{capacity}%"}} - unknown: {string: {text: "{capacity}% limite"}} - not charging: {string: {text: "{capacity}% limite"}} - charging: {string: {text: "{capacity}% cargando"}} - full: {string: {text: "{capacity}% full"}} - - - clock: - date-format: "%A %d of %B" - content: - - string: {text: " {date}", right-margin: 12} - - string: {text: " {time}"}