Skip to content

Commit

Permalink
Merge pull request #27 from vcatafesta/main
Browse files Browse the repository at this point in the history
qui 21 set 2023 23:35:15 -04 Vilmar Catafesta ([email protected])
  • Loading branch information
vcatafesta authored Sep 22, 2023
2 parents cec5072 + fe38241 commit 94ca195
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 21 deletions.
34 changes: 33 additions & 1 deletion pkgbuild/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Maintainer : Vilmar Catafesta <[email protected]>


pkgname=bigcontrolcenter-base
pkgdesc="Base files and libs to bigcontrolcenter interfaces"
depends=('bigbashview' )
# makedepends=('')
# conflicts=('')
pkgver=$(date +%y.%m.%d)
Expand All @@ -9,6 +11,36 @@ arch=('any')
license=('GPL3')
url="https://github.com/biglinux/$pkgname"
provides=("$pkgname")
depends=('bash'
'curl'
'coreutils' # cat, cut, mkdir,rmdir, rm, sort, uniq, ... etc
'util-linux' # rev
'gawk'
'grep'
'jq'
'pamac-gtk'
'paru'
'polkit'
'parallel'
'rxvt-unicode'
'sed'
'xorg-xwininfo'
'xorg-xrandr'
'xorg-xprop' # xprop
'xsetprop' # xsetprop
'xtermset'
'wmctrl' # wmctrl
'yay'
'yad'
'libnotify' # notify-send
'kdialog'
'lsof'
'libnewt' # whiptail
'procps-ng' # pipof, pgrep
'pacman'
'pacman-mirrors'
'mhwd'
)
source=("git+${url}.git")
md5sums=('SKIP')
if [ -e "${pkgname}.install" ];then
Expand Down
2 changes: 1 addition & 1 deletion usr/share/bigbashview/bcc/shell/bcfglib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function sh_reset_chromium {
return
fi

rm -r ~/.config/chromium
rm -r ~/.config/chromium
rm -r ~/.config/chromium-optimize
if [ "$1" = "skel" ]; then
cp -r /etc/skel/.config/chromium ~/.config/chromium
Expand Down
4 changes: 2 additions & 2 deletions usr/share/bigbashview/bcc/shell/bstrlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ function sh_update_cache_flatpak {
# rev | uniq --skip-fields=2 | rev > "$CACHE_FILE"
rev | uniq --skip-fields=2 | rev |
# Utiliza o parallel para escrever o resultado no arquivo
parallel --gnu --jobs 100% "echo {} >> '$CACHE_FILE'"
parallel --gnu --jobs 50% "echo {} >> '$CACHE_FILE'"
wait

# Executa o comando flatpak update para listar atualizações disponíveis
Expand All @@ -763,7 +763,7 @@ function sh_update_cache_flatpak {
# for i in $(LC_ALL=C flatpak update | grep "^ [1-9]" | awk '{print $2}'); do
# sed -i "s/|${i}.*/&update|/" "$CACHE_FILE"
# done
LC_ALL=C flatpak update | grep "^ [1-9]" | awk '{print $2}' | parallel --gnu --jobs 100% \
LC_ALL=C flatpak update | grep "^ [1-9]" | awk '{print $2}' | parallel --gnu --jobs 50% \
"sed -i 's/|{}.*$/&update|/' '$CACHE_FILE'"
wait

Expand Down
28 changes: 14 additions & 14 deletions usr/share/bigbashview/bcc/shell/getbgcolor.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/bin/bash
#!/usr/bin/env bash

# Open Autodetect and read saved background color
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)"
# 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
echo '<body class=light-mode>'
else
echo '<body>'
fi
# Verify if is light or not
if [ "$KDE_BG_COLOR" -gt "127" ]; then
echo '<body class=light-mode>'
else
echo '<body>'
fi

else

if [ "$(cat "$HOME/.config/bigbashview_lightmode")" = "1" ]; then
echo '<body class=light-mode>'
else
echo '<body>'
fi
if [ "$(cat "$HOME/.config/bigbashview_lightmode")" = "1" ]; then
echo '<body class=light-mode>'
else
echo '<body>'
fi
fi
# Close Autodetect and read saved background color
6 changes: 3 additions & 3 deletions usr/share/bigbashview/bcc/shell/setbgcolor.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#!/usr/bin/env bash

if [ "$1" = "true" ]; then
echo '1' > ~/.config/bigbashview_lightmode
echo '1' >~/.config/bigbashview_lightmode
else
echo '0' > ~/.config/bigbashview_lightmode
echo '0' >~/.config/bigbashview_lightmode
fi

0 comments on commit 94ca195

Please sign in to comment.