style: remove trailing spaces

This commit is contained in:
Yiyu Zhou 2024-01-13 00:24:58 -05:00
parent bbbf2b601e
commit 9d90848291
3 changed files with 14 additions and 16 deletions

View file

@ -15,20 +15,20 @@ bar:
anchors: anchors:
- base: &river_base - base: &river_base
left-margin: 10 left-margin: 10
right-margin: 13 right-margin: 13
default: {string: {text: , font: *hack}} default: {string: {text: , font: *hack}}
conditions: conditions:
id == 1: {string: {text: ﳐ, font: *hack}} id == 1: {string: {text: ﳐ, font: *hack}}
id == 2: {string: {text: , font: *hack}} id == 2: {string: {text: , font: *hack}}
id == 3: {string: {text: , font: *hack}} id == 3: {string: {text: , font: *hack}}
id == 4: {string: {text: , font: *hack}} id == 4: {string: {text: , font: *hack}}
id == 5: {string: {text: , font: *hack}} id == 5: {string: {text: , font: *hack}}
id == 10: {string: {text: "scratchpad", font: *hack}} id == 10: {string: {text: "scratchpad", font: *hack}}
id == 11: {string: {text: "work", font: *hack}} id == 11: {string: {text: "work", font: *hack}}
content: content:
map: map:
on-click: on-click:
left: sh -c "riverctl set-focused-tags $((1 << ({id} - 1)))" left: sh -c "riverctl set-focused-tags $((1 << ({id} - 1)))"
right: sh -c "riverctl toggle-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)))" middle: sh -c "riverctl toggle-view-tags $((1 << ({id} -1)))"

View file

@ -136,4 +136,3 @@ done
unset -v output title layout activetags selectedtags unset -v output title layout activetags selectedtags
unset -v tags name unset -v tags name

View file

@ -15,13 +15,13 @@
# Exemples configuration: # Exemples configuration:
# - script: # - script:
# path: /absolute/path/to/pacman.sh # path: /absolute/path/to/pacman.sh
# args: [] # args: []
# content: { string: { text: "{pacman} + {aur} = {pkg}" } } # content: { string: { text: "{pacman} + {aur} = {pkg}" } }
# #
# To display a message when there is no update: # To display a message when there is no update:
# - script: # - script:
# path: /absolute/path/to/pacman.sh # path: /absolute/path/to/pacman.sh
# args: [] # args: []
# content: # content:
# map: # map:
# default: { string: { text: "{pacman} + {aur} = {pkg}" } } # default: { string: { text: "{pacman} + {aur} = {pkg}" } }
@ -47,9 +47,9 @@ while true; do
# Change interval # Change interval
# NUMBER[SUFFIXE] # NUMBER[SUFFIXE]
# Possible suffix: # Possible suffix:
# "s" seconds / "m" minutes / "h" hours / "d" days # "s" seconds / "m" minutes / "h" hours / "d" days
interval="1h" interval="1h"
# Change your aur manager # Change your aur manager
aur_helper="paru" aur_helper="paru"
@ -62,7 +62,7 @@ while true; do
else else
aur_num=$("${aur_helper}" -Qmu | wc -l) aur_num=$("${aur_helper}" -Qmu | wc -l)
fi fi
pkg_num=$(( pacman_num + aur_num )) pkg_num=$(( pacman_num + aur_num ))
printf -- '%s\n' "pacman|int|${pacman_num}" printf -- '%s\n' "pacman|int|${pacman_num}"
@ -76,4 +76,3 @@ done
unset -v interval aur_helper pacman_num aur_num pkg_num unset -v interval aur_helper pacman_num aur_num pkg_num
unset -f _err unset -f _err