-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from vcatafesta/main
qui 21 set 2023 23:35:15 -04 Vilmar Catafesta ([email protected])
- Loading branch information
Showing
5 changed files
with
53 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |