#!/bin/bash case "$LANG" in pl*) DISABLED="Kompozytor Picom zastał WYŁĄCZONY" ENABLED="Kompozytor Picom został URUCHOMIONY" ;; *) DISABLED="Picom compositor DISABLED" ENABLED="Picom compositor ENABLED" ;; esac if [ $(pgrep -u $USER -f picom) ]; then killall -u $USER picom notify-send.sh -i compton -t 5000 "Compositor" "$DISABLED" else CONFIGFILE="$HOME/.config/picom.conf" if [ -f "$CONFIGFILE" ];then picom --config "$CONFIGFILE" & notify-send.sh -i compton -t 5000 "Compositor" "$ENABLED" else picom --config /dev/null & notify-send.sh -i compton -t 5000 "Compositor" "$ENABLED" fi fi exit