mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
20 lines
695 B
Bash
20 lines
695 B
Bash
#!/bin/sh
|
|
# stdin: default config
|
|
# stdout: modified config
|
|
|
|
# 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
|
|
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"/>|;
|
|
' <<< "$stdin"
|