#!/bin/bash ################################## # Author1: Bruno Goncalves (www.biglinux.com.br) # Author2: Barnabé di Kartola # Author3: Rafael Ruscher (rruscher@gmail.com) # Date: 2023/11/11 # # Description: BigLinux Snapshot Detect and Restore # # Licensed by GPL V2 or greater ################################## #Translation export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAIN=grub-btrfs-timeshift FilterDesc=$"Este filtro utiliza técnicas de redes neurais para remover ruídos e sons do ambiente que atrapalham gravações e chamadas online." AudioManager=$"GERENCIADOR DE ÁUDIO" AudioFreqs=$"Frequências sonoras:" active_text=$"Filtro de ruído" autostart_text=$"INICIAR AUTOMATICAMENTE" OIFS=$IFS IFS=$'\n' # Don't group windows xprop -id "$(xprop -root '\t$0' _NET_ACTIVE_WINDOW | cut -f 2)" -f WM_CLASS 8s -set WM_CLASS "$$" FOLDER_CONFIG="$HOME/.config/biglinux-noise-reduction" mkdir -p ~/.config/biglinux-noise-reduction ############# # First Run ############# if [ "$active" = "0" ] then systemctl --user start noise-reduction-pipewire fi if [ "$active" = "1" ] then systemctl --user stop noise-reduction-pipewire fi if [ "$autostart" = "0" ] then systemctl --user enable noise-reduction-pipewire fi if [ "$autostart" = "1" ] then systemctl --user disable noise-reduction-pipewire fi if [ "$(systemctl --user is-active noise-reduction-pipewire)" = "active" ] then checked_active="checked" active=1 else active=0 fi if [ "$(systemctl --user is-enabled noise-reduction-pipewire)" = "enabled" ] then checked_autostart="checked" autostart=1 else autostart=0 fi if [ ! -e "$HOME/.config/bigbashview_lightmode" ]; then # Read background color KDE_BG_COLOR="$(kreadconfig5 --group "Colors:Window" --key BackgroundNormal | sed 's|^|(|g;s|,|+|g;s|$|)/3|g' | bc)" # Verify if is light or not if [ "$KDE_BG_COLOR" -gt "127" ]; then changeBody="
" else changeBody="
" fi else if [ "$(cat "$HOME/.config/bigbashview_lightmode")" = "1" ]; then changeBody="
" else changeBody="
" fi fi # Import BigControlCenter base modules / Importa os módulos básicos do BigControlCenter # That's include jquery and materialize / Isso inclui o jquery e o materialize # http://materializecss.com/ . /usr/share/bigbashview/bcc/shell/base.sh read -d $"" ShowText < $changeBody

###### $AudioFreqs

$autostart_text
dark_mode
EOF echo "$ShowText" EOF IFS=$OIFS