From 9d90848291e37f8c97c2c175059fa0806421d1c6 Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Sat, 13 Jan 2024 00:24:58 -0500 Subject: [PATCH] style: remove trailing spaces --- examples/configurations/river-tags.conf | 18 +++++++++--------- examples/scripts/dwl-tags.sh | 1 - examples/scripts/pacman.sh | 11 +++++------ 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/examples/configurations/river-tags.conf b/examples/configurations/river-tags.conf index 54289e6..28bc0b9 100644 --- a/examples/configurations/river-tags.conf +++ b/examples/configurations/river-tags.conf @@ -15,20 +15,20 @@ bar: anchors: - base: &river_base left-margin: 10 - right-margin: 13 + right-margin: 13 default: {string: {text: , font: *hack}} conditions: - id == 1: {string: {text: ﳐ, font: *hack}} - id == 2: {string: {text: , font: *hack}} - id == 3: {string: {text: , font: *hack}} - id == 4: {string: {text: , font: *hack}} - id == 5: {string: {text: , font: *hack}} - id == 10: {string: {text: "scratchpad", font: *hack}} - id == 11: {string: {text: "work", font: *hack}} + id == 1: {string: {text: ﳐ, font: *hack}} + id == 2: {string: {text: , font: *hack}} + id == 3: {string: {text: , font: *hack}} + id == 4: {string: {text: , font: *hack}} + id == 5: {string: {text: , font: *hack}} + id == 10: {string: {text: "scratchpad", font: *hack}} + id == 11: {string: {text: "work", font: *hack}} content: map: - on-click: + 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)))" diff --git a/examples/scripts/dwl-tags.sh b/examples/scripts/dwl-tags.sh index 7b70fff..b1dbe4c 100755 --- a/examples/scripts/dwl-tags.sh +++ b/examples/scripts/dwl-tags.sh @@ -136,4 +136,3 @@ done unset -v output title layout activetags selectedtags unset -v tags name - diff --git a/examples/scripts/pacman.sh b/examples/scripts/pacman.sh index a04b7a9..83e2a3f 100755 --- a/examples/scripts/pacman.sh +++ b/examples/scripts/pacman.sh @@ -15,13 +15,13 @@ # Exemples configuration: # - script: # path: /absolute/path/to/pacman.sh -# args: [] +# args: [] # content: { string: { text: "{pacman} + {aur} = {pkg}" } } # # To display a message when there is no update: # - script: # path: /absolute/path/to/pacman.sh -# args: [] +# args: [] # content: # map: # default: { string: { text: "{pacman} + {aur} = {pkg}" } } @@ -47,9 +47,9 @@ while true; do # Change interval # NUMBER[SUFFIXE] # Possible suffix: - # "s" seconds / "m" minutes / "h" hours / "d" days + # "s" seconds / "m" minutes / "h" hours / "d" days interval="1h" - + # Change your aur manager aur_helper="paru" @@ -62,7 +62,7 @@ while true; do else aur_num=$("${aur_helper}" -Qmu | wc -l) fi - + pkg_num=$(( pacman_num + aur_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 -f _err -