#!/bin/bash ################################## # Author1: Bruno Goncalves (www.biglinux.com.br) # Author2: Barnabé di Kartola # Author3: Rafael Ruscher (rruscher@gmail.com) # Date: 2022/02/28 # Modified:2022/07/10 # # Description: Themes, Desktop and Ajust usage of BigLinux # # Licensed by GPL V2 or greater ################################## #Translation export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAIN=biglinux-session-and-themes # Don't group windows xprop -id "$(xprop -root '\t$0' _NET_ACTIVE_WINDOW | cut -f 2)" -f WM_CLASS 8s -set WM_CLASS "$$" # 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 theme_actual="$(cat "$HOME/.big_desktop_theme")" TAB1=$"Temas" TAB2=$"Desktop" TAB3=$"Ajustes" Desempenho_translate=$"Desempenho do desktop" PERFORMANCE=$"Desempenho" Browser_translate=$"Aceleração do navegador" Tema_translate=$"Tema dos aplicativos" More_themes_translate=$"Temas" OPEN=$"Abrir" CLOSE=$"Fechar" orchis=$"Bordas arredondadas." fluent=$"Esse tema possui transparências com efeitos que
podem tornar o sistema lento em computadores
antigos ou ambientes virtualizados." DESKTOP_FASTER=$"Classic, New e Modern têm melhor desempenho." Reduce_Visual_Effects=$"Renderizar o desktop via software" Reduce_Visual_Effects2=$"(Pode ser útil em computadores antigos, porém alguns programas param de funcionar)" Configure_Preload=$"Escolher programas a serem carregados na memória durante boot" Preload_loads_program_files=$"O Preload carrega arquivos dos programas na memória, para que iniciem rapidamente. O uso excessivo causa lentidão. Escolha a opção desejada:" Browser_acceleration=$"Aceleração do navegador" led_keyboard=$"Ligar RGB do teclado" Automatic=$"Automático" Activate=$"Ativar" Disable=$"Desativar" Brave_Settings=$"Configurações do Brave" Choose_the_desired_option=$"Escolha a opção desejada:" Remove_advertisements=$"Remover propagandas" Support_cryptocurrencies=$"Suportar criptomoedas" Usability=$"Usabilidade" Window_buttons_on_the_left_side=$"Botões da janela no lado esquerdo" Inverted_mouse_scroll=$"Rolagem do mouse invertida" Inverted_touchpad_scroll=$"Rolagem do touchpad invertida" Search_files=$"Pesquisar arquivos" Lock_the_workspace=$"Bloquear a edição da área de trabalho " HideGrub_text=$"Ocultar Gerenciador de Boot (GRUB)" NumLock_text=$"Ativar o NumLock ao ligar o sistema" Theme_change=$"Tema aplicado" Need_restart=$"É preciso reiniciar a sessão para concluir a configuração." Config_desktop=$"Configuração do Desktop" Desktop_detect=$"Você já utilizou esse desktop antes, deseja restaurar sua personalização ou utilizar a configuração original?" YES=$"Sim" NO=$"Não" Original=$"Original" Restore=$"Restaurar" Desktop_apply=$"Desktop aplicado" performance=$"Modo performance" fsync=$"BTRFS sem fsync" if [ "$(glxinfo | grep llvmpipe)" != "" ]; then NO_OGL=$"Utilizando renderização por software, a qualidade das transparências está reduzida." fi browser="$(cat "$HOME/.config/browser-optimize")" #if [ "$browser" = "" ]; then # checked_browser_auto="checked" #fi #if [ "$browser" = "performance" ]; then # checked_browser_yes="checked" #fi #if [ "$browser" = "optimize" ]; then # checked_browser_no="checked" #fi # if [ "$theme_actual" = "" ]; then # biglinux-themes.sh --apply orchis # checked_arc="checked" # fi if [ "$theme_actual" = "breeze" ]; then checked_breeze="checked" fi if [ "$theme_actual" = "breeze-dark" ]; then checked_breeze_dark="checked" fi if [ "$theme_actual" = "fluent" ]; then checked_fluent="checked" fi if [ "$theme_actual" = "fluent-dark" ]; then checked_fluent_dark="checked" fi if [ "$theme_actual" = "fluent-solid" ]; then checked_fluent="checked" fi if [ "$theme_actual" = "fluent-dark-solid" ]; then checked_fluent_dark="checked" fi if [ "$theme_actual" = "orchis" ]; then checked_orchis="checked" fi if [ "$theme_actual" = "orchis-dark" ]; then checked_orchis_dark="checked" fi # if [ "$theme_actual" = "materia" ]; then # checked_materia="checked" # fi # # if [ "$theme_actual" = "materia-dark" ]; then # checked_materia_dark="checked" # fi performance_actual="$(cat "$HOME/.big_performance")" if [ "$performance_actual" = "" ] || [ "$performance_actual" = "0" ]; then checked_normal="checked" fi if [ "$performance_actual" = "1" ]; then checked_optimized="checked" fi if [ -e "$HOME/.config/lockplasma" ]; then checked_lock_desktop="checked" fi if [ -n "$(grep timeout_style=hidden /etc/grub.d/30_os-prober)" ]; then checked_hidegrub="checked" fi INPUT=$(grep Numlock=on /etc/sddm.conf) if [ -n "$(grep Numlock=on /etc/sddm.conf)" ]; then checked_confnumlock="checked" fi if [ "$(LANG=C balooctl status 2>&1| grep 'is running')" != "" ]; then checked_search="checked" fi if [ "$(kreadconfig5 --group "Mouse" --key "XLbInptNaturalScroll" --file "$HOME/.config/kcminputrc")" = "true" ]; then checked_scrool_natural="checked" fi if [ "$(kreadconfig5 --group "Compositing" --key "Enabled" --file "$HOME/.config/kwinrc")" = "false" ]; then checked_performance="checked" fi if [ "$(grep 'disable-fsync.so' /etc/ld.so.preload)" != "" ]; then checked_disablefsync="checked" fi if [ "$(grep 'FSM' ~/.config/kwinrc)" != "" ]; then checked_left_button="checked" fi if [ -e "$HOME/.config/browser-optimize" ]; then checked_browser_yes="checked" else checked_browser_no="checked" fi if [ -e "$HOME/.config/ledkeyboard" ]; then checked_ledkeyboard_yes="checked" # else # checked_ledkeyboard_no="checked" fi if [ -e "$HOME/.config/browser-brave-disable-ad" ]; then checked_braveblock_no="checked" else checked_braveblock_yes="checked" fi if [ -e "$HOME/.config/browser-brave-disable-crypto" ]; then checked_bravecrypto_no="checked" else checked_bravecrypto_yes="checked" fi if [ "$tab" = "tree" ]; then tab1="" tab2="" tab3="active" elif [ "$tab" = "two" ]; then tab1="" tab2="active" tab3="" else tab1="active" tab2="" tab3="" fi desktop_theme_actual="$(cat ~/.big_desktop_theme)" if [ "$desktop_theme_actual" = "biglinux" ]; then checked_theme_biglinux="task_alt" else checked_theme_biglinux="circle" fi if [ "$desktop_theme_actual" = "biglinux-dark" ]; then checked_theme_biglinuxdark="task_alt" else checked_theme_biglinuxdark="circle" fi if [ "$desktop_theme_actual" = "breeze" ]; then checked_theme_breeze="task_alt" else checked_theme_breeze="circle" fi if [ "$desktop_theme_actual" = "breeze-dark" ]; then checked_theme_breezedark="task_alt" else checked_theme_breezedark="circle" fi if [ "$desktop_theme_actual" = "fluent" ]; then checked_theme_fluent="task_alt" else checked_theme_fluent="circle" fi if [ "$desktop_theme_actual" = "fluent-dark" ]; then checked_theme_fluentdark="task_alt" else checked_theme_fluentdark="circle" fi if [ "$desktop_theme_actual" = "fluent-solid" ]; then checked_theme_fluentsolid="task_alt" else checked_theme_fluentsolid="circle" fi if [ "$desktop_theme_actual" = "fluent-dark-solid" ]; then checked_theme_fluentdarksolid="task_alt" else checked_theme_fluentdarksolid="circle" fi desktop_actual="$(cat ~/.kdebiglinux/lastused)" if [ "$desktop_actual" = "classic" ]; then checked_desktop_classic="task_alt" else checked_desktop_classic="circle" fi if [ "$desktop_actual" = "new" ]; then checked_desktop_new="task_alt" else checked_desktop_new="circle" fi if [ "$desktop_actual" = "modern" ]; then checked_desktop_modern="task_alt" else checked_desktop_modern="circle" fi if [ "$desktop_actual" = "kunity" ]; then checked_desktop_kunity="task_alt" else checked_desktop_kunity="circle" fi if [ "$desktop_actual" = "nextg" ]; then checked_desktop_nextg="task_alt" else checked_desktop_nextg="circle" fi if [ "$desktop_actual" = "desk-x" ]; then checked_desktop_deskx="task_alt" else checked_desktop_deskx="circle" fi if [ "$desktop_actual" = "vanilla" ]; then checked_desktop_vanilla="task_alt" else checked_desktop_vanilla="circle" fi if [ "$desktop_actual" = "body" ]; then checked_desktop_body="task_alt" else checked_desktop_body="circle" fi read -d $"" ShowText << EOF
palette Temas tv Desktop
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/classic" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/new" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/modern" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/kunity" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/nextg" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/desk-x" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/vanilla" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
EOF echo "$ShowText" if [ -e "$HOME/.kdebiglinux/body" ]; then echo '
' else echo '
' fi read -d $"" ShowText << EOF

##### $Config_desktop

$Desktop_detect
dark_mode
EOF echo "$ShowText"