Fix variable usage in templates

This commit is contained in:
Oliver Traber 2023-11-26 22:24:59 +01:00
parent 3df6af6d45
commit 92164a24dc
Signed by: Bluemedia
GPG key ID: C0674B105057136C
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ fi
export GPG_TTY=$(tty)
# Autostart sway at login
{% if isVm == true %}
{% if isVm | bool %}
export WLR_NO_HARDWARE_CURSORS=1
{% endif %}
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec sway; fi

View file

@ -213,7 +213,7 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
exec waybar
# Autostart applications
{% if nextcloud == true %}
{% if nextcloud is defined and nextcloud | bool %}
exec --no-startup-id nextcloud --background
{% endif %}
@ -226,7 +226,7 @@ client.placeholder #c6c6c6 #1f1f1f #c6c6c6 #8abeb7 #8abeb7
client.background #1f1f1f
{% if isNotebook == true %}
{% if isNotebook | bool %}
# backlight control
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl -d intel_backlight set +5%
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl -d intel_backlight set 5%-

View file

@ -30,7 +30,7 @@
"reverse-scrolling": true,
"on-click": "swaymsg exec amixer -q set Master toggle"
},
{% if isNotebook == true %}
{% if isNotebook | bool %}
"battery": {
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",