Compare commits

..

1 Commits

Author SHA1 Message Date
73f5fe2e45 fixed commandExists 2025-11-20 21:28:53 +01:00
5 changed files with 12 additions and 17 deletions

View File

@@ -68,7 +68,7 @@ doUpdateSystem() {
updateFlatpak() { updateFlatpak() {
if [[ ! $(commandExists flatpak) ]]; then if ! $(commandExists flatpak); then
return 1; return 1;
fi fi
noconfirm= noconfirm=
@@ -127,7 +127,7 @@ finds () {
# sends a desktop-notification with an icon signalling an error # sends a desktop-notification with an icon signalling an error
notifyError () { notifyError () {
if [[ ! $(commandExists notify-send) ]]; then if ! $(commandExists notify-send); then
echo "ERROR: $1"; echo "ERROR: $1";
else else
notify-send "$1" --icon=data-warning; notify-send "$1" --icon=data-warning;
@@ -137,7 +137,7 @@ notifyError () {
# sends a desktop-notification with an icon signalling a simple information # sends a desktop-notification with an icon signalling a simple information
notifyInfo () { notifyInfo () {
if [[ ! $(commandExists notify-send) ]]; then if ! $(commandExists notify-send); then
echo "INFO: $1"; echo "INFO: $1";
else else
notify-send "$1" --icon=preferences-desktop-notification; notify-send "$1" --icon=preferences-desktop-notification;

View File

@@ -4,18 +4,13 @@
updatePackages() { updatePackages() {
noconfirm= noconfirm=
if [[ $1 == "-y" ]]; then if [[ $1 == "-y" ]]; then
noconfirm="--assume-yes" noconfirm="--no-confirm";
fi fi
full= executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
if [[ $2 == "--full" ]]; then
full="full-"
fi
executeAndNotify "doUpdatePackages $noconfirm $full" "system updated" "system update failed";
} }
doUpdatePackages() { doUpdatePackages() {
sudo apt update; pamac update $1;
sudo apt ${2}upgrade $1; pamac remove --orphans --cascade $1;
sudo apt autoremove $1;
} }

View File

@@ -89,7 +89,7 @@ set linenumbers
set matchbrackets "(<[{)>]}" set matchbrackets "(<[{)>]}"
## Suppress title bar and show file name and editor state at the bottom. ## Suppress title bar and show file name and editor state at the bottom.
# set minibar set minibar
## Enable mouse support, if available for your system. When enabled, ## Enable mouse support, if available for your system. When enabled,
## mouse clicks can be used to place the cursor, set the mark (with a ## mouse clicks can be used to place the cursor, set the mark (with a

View File

@@ -139,13 +139,13 @@ configuration {
/* me-select-entry: "MousePrimary";*/ /* me-select-entry: "MousePrimary";*/
/* me-accept-entry: "MouseDPrimary";*/ /* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/ /* me-accept-custom: "Control+MouseDPrimary";*/
/* timeout { timeout {
action: "kb-cancel"; action: "kb-cancel";
delay: 0; delay: 0;
} }
filebrowser { filebrowser {
directories-first: true; directories-first: true;
sorting-method: "name"; sorting-method: "name";
}*/ }
} }
@theme "/usr/share/rofi/themes/Arc-Dark.rasi" @theme "/usr/share/rofi/themes/Arc-Dark.rasi"

View File

@@ -16,7 +16,7 @@ upDownContainers() {
continue; continue;
fi fi
cd $subdir; cd $subdir;
docker compose $@; docker-compose $@;
done done
} }