commit 1156da3

Hubert Hirtz  ·  2021-05-01 11:55:01 +0000 UTC
parent 4b0e951
Update documentation examples and add warning
1 files changed,  +4, -3
+4, -3
 1@@ -39,7 +39,8 @@ Some settings are required, the others are optional.
 2 
 3 *on-highlight*
 4 	A command to be executed via _sh_ when you are highlighted.  The following
 5-	environment variables are set with repect to the highlight:
 6+	environment variables are set with repect to the highlight, THEY MUST APPEAR
 7+	QUOTED IN THE SETTING, OR YOU WILL BE OPEN TO ATTACKS.
 8 
 9 [[ *Environment variable*
10 :< *Description*
11@@ -98,8 +99,8 @@ highlights:
12 	- senpai
13 on-highlight: |
14     FOCUS=$(swaymsg -t get_tree | jq '..|objects|select(.focused==true)|.name' | grep senpai | wc -l)
15-    if [ %h -eq 0 ] || [ $FOCUS -eq 0 ]; then
16-        notify-send "[%b] %n" "%m"
17+    if [ "$HERE" -eq 0 ] || [ $FOCUS -eq 0 ]; then
18+        notify-send "[$BUFFER] $SENDER" "$MESSAGE"
19     fi
20 nick-column-width: 12
21 ```