#!/bin/bash
#INPUTTRUE=$(grep -w "Enabled=true" ~/.config/kwinrc | head -n 1)
#INPUTFALSE=$(grep -w "Enabled=false" ~/.config/kwinrc | head -n 1)
#if [ -n "$INPUTTRUE" ]; then

if [ "$(grep 'disable-fsync.so' /etc/ld.so.preload)" != "" ]; then

    sed -i '/disable-fsync.so/d' /etc/ld.so.preload
else
    echo '/usr/$LIB/disable-fsync.so' > /etc/ld.so.preload
fi

