mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-24 01:16:05 +01:00
21 lines
707 B
Bash
21 lines
707 B
Bash
#!/bin/sh
|
|
# stdin: default config
|
|
# stdout: modified config
|
|
set -e
|
|
|
|
# save stdin in variable
|
|
stdin="$(cat)"
|
|
|
|
# assert WindowScalingFactor is as expected
|
|
echo "$stdin" | grep --quiet '<property name="WindowScalingFactor" type="int" value="1"/>'
|
|
|
|
# assert CursorThemeSize is as expected
|
|
echo "$stdin" | grep --quiet '<property name="CursorThemeSize" type="int" value="0"/>'
|
|
|
|
# 1. Double WindowScalingFactor
|
|
# 2.Increase cursor size to 32
|
|
echo "$stdin" | sed '
|
|
s|<property name="WindowScalingFactor" type="int" value="1"/>|<property name="WindowScalingFactor" type="int" value="2"/>|;
|
|
s|<property name="CursorThemeSize" type="int" value="0"/>|<property name="CursorThemeSize" type="int" value="32"/>|;
|
|
'
|