Compare commits

..

No commits in common. "4be10493e8f995bc9f68f5afb44570b675d366c1" and "e492be76c40e4138446d4272f250c9beb2bbdca7" have entirely different histories.

27 changed files with 33 additions and 92 deletions

1
.npmrc
View File

@ -1 +0,0 @@
manage-package-manager-versions=true

View File

@ -54,7 +54,7 @@ repos:
args: [--update-only]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.11.1"
rev: "v1.11.0"
hooks:
- id: mypy
additional_dependencies: [types-tabulate]
@ -66,7 +66,7 @@ repos:
name: isort (python)
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.4.2
hooks:
- id: black

View File

@ -60,16 +60,6 @@ if hash dnf 2> /dev/null; then
dnf -v "$@" autoremove
fi
# Arch Linux package management
if hash pacman 2> /dev/null; then
pacman -Syu
# weekly cache cleanup service
if hash paccache 2> /dev/null; then
systemctl enable paccache.timer
fi
fi
# https://github.com/Homebrew/brew
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
@ -139,12 +129,6 @@ if hash needrestart 2> /dev/null; then
sleep 5
fi
# archlinux-contrib
if hash checkservices 2> /dev/null; then
checkservices
sleep 5
fi
# Sedric workaround, located in this repo. I trust /root/
if [ -f /root/fixgrub.bash ]; then
. /root/fixgrub.bash

View File

@ -69,10 +69,6 @@ flatpak override --filesystem=~/.ssh/config:ro --filesystem=~/.ssh/config.d:ro -
# https://github.com/flathub/im.riot.Riot/issues/303#issuecomment-1816055123
flatpak override im.riot.Riot --talk-name=org.freedesktop.secrets $@
# Regardless of whether I use the IRC client through Flatpak or Snap,
# it having access to the same config is preferable.
flatpak override org.squidowl.halloy --filesystem=~/snap/halloy:create $@
# Display the overrides
if [ -d /var/lib/flatpak/overrides/ ]; then
tail -n +1 /var/lib/flatpak/overrides/*

View File

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# This script partially reverts
# https://gitea.blesmrt.net/mikaela/scripts/commit/e76a4a6a0d0472428d519205543171b1b1cdc258
# This script partially reverts https://gitea.blesmrt.net/mikaela/scripts/commit/e76a4a6a0d0472428d519205543171b1b1cdc258
export FLATPAKEXPORTS=/var/lib/flatpak/exports/bin
#export TARGETDIR=~/.local/bin
@ -28,12 +27,4 @@ ln -sfv $FLATPAKEXPORTS/im.dino.Dino $TARGETDIR/dino
#ln -sfv $FLATPAKEXPORTS/chat.schildi.desktop $TARGETDIR/schildichat
#ln -sfv $FLATPAKEXPORTS/org.signal.Signal $TARGETDIR/signal-desktop
# If symlinks is installed, run it against the target directory so dangling
# symlinks get removed and the path isn't polluted by non-existent items.
if hash symlinks 2> /dev/null; then
symlinks -d $TARGETDIR
else
echo "WARNING! Executable named symlinks not found in PATH."
fi
set +x

View File

@ -17,6 +17,6 @@ If they are in $PATH, note `sudo snap alias ORIGINAL NEW`
## File Access Control List
```
sudo setfacl --recursive --modify=u:root:rwX,o:rX /usr/local/bin/
sudo setfacl --recursive --modify=u:root:rwx,o:rx /usr/local/bin/
getfacl /usr/local/bin
```

View File

@ -1,14 +0,0 @@
#!/usr/bin/env bash
set -x
# This assumes the usage of GearLever with the default directory.
if [ -f ~/AppImages/beeper.appimage ]; then
~/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
else
print "~/AppImages/beeper.appimage not found. Please install it through gearlever (default locaiton) or symlink it there."
notify-send "~/AppImages/beeper.appimage not found. Please install it through gearlever (default locaiton) or symlink it there."
if hash gearlever 2> /dev/null; then
gearlever
fi
fi
set +x

View File

@ -4,6 +4,6 @@ set -x
if [ -f /snap/bin/bitwarden ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run bitwarden --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
snap run bitwarden --ozone-platform=x11 --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
fi
set +x

View File

@ -1,6 +1,4 @@
#!/usr/bin/env bash
set -x
# Fedora-only, Debian uses a different CPU limit implementation!
#cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
systemd-run --scope -p CPUQuota="30%" --user flatpak run org.briarproject.Briar//stable "$@"
cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
set +x

View File

@ -5,20 +5,20 @@
set -x
if [ -f /usr/bin/code ]; then
/usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
/usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=wayland "$@"
elif [ -f /snap/bin/code ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
#unset DBUS_SESSION_BUS_ADDRESS
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=x11 "$@"
snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=x11 "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
else
echo "code not found :("

View File

@ -2,20 +2,20 @@
set -x
if [ -f /usr/bin/code-insiders ]; then
/usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
/usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@"
elif [ -f /snap/bin/code-insiders ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
#unset DBUS_SESSION_BUS_ADDRESS
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
else
echo "code not found :("

View File

@ -5,20 +5,20 @@
set -x
if [ -f /usr/bin/codium ]; then
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=wayland "$@"
elif [ -f /snap/bin/codium ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
#unset DBUS_SESSION_BUS_ADDRESS
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=x11 "$@"
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=x11 "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
flatpak run --user com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
flatpak run --user com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
flatpak run com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
flatpak run com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
else
echo "codium not found :("

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -x
flatpak run chat.delta.desktop --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
set +x

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -x
flatpak run im.riot.Riot --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
set +x

View File

@ -3,5 +3,5 @@
set -x
# proxy authentication is not supported
# https://github.com/vector-im/element-web/issues/3320
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
set +x

View File

@ -1,13 +0,0 @@
#!/usr/bin/env bash
set -x
if [ -f /usr/bin/gearlever ]; then
/usr/bin/gearlever "$@"
elif [ -f /var/lib/flatpak/exports/bin/it.mijorus.gearlever ]; then
flatpak run it.mijorus.gearlever "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/it.mijorus.gearlever ]; then
flatpak run --user it.mijorus.gearlever "$@"
else
print "Gearlever not found :("
notify-send "Gearlever not found :("
fi
set +x

View File

@ -2,7 +2,7 @@
# I was unable to get the Flatpak to start and the Snap needed the usual, so
# here we are. Then I learned that it just needs --ozone-platform=wayland
# instead of the old --ozone-platform=wayland, but whatever works or is
# instead of the old --ozone-platform-hint=auto, but whatever works or is
# installed is fine...
set -x

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -x
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
set +x

View File

@ -6,7 +6,7 @@ sleep 5
sudo systemctl start nordvpnd.service
sleep 5
systemctl status nordvpnd.service --no-pager
nordvpn connect p2p || exit 1
nordvpn connect p2p
nordvpn set killswitch on
nordvpn set autoconnect on
nordvpn status

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -x
flatpak run chat.schildi.desktop --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@"
set +x

View File

@ -3,5 +3,5 @@
set -x
# proxy authentication is not supported
# https://github.com/vector-im/element-web/issues/3320
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@"
set +x

View File

@ -4,5 +4,5 @@
set -x
# --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon
flatpak run org.signal.Signal --use-tray-icon --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
flatpak run org.signal.Signal --use-tray-icon --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
set +x

View File

@ -3,8 +3,8 @@ set -x
if [ -f /snap/bin/superproductivity ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
else
/usr/bin/superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
fi
set +x

View File

@ -10,7 +10,7 @@ elif [ -f ~/.local/share/flatpak/exports/bin/io.github.tdesktop_x64.TDesktop ];
elif [ -f /usr/bin/telegram-desktop ]; then
/usr/bin/telegram-desktop "$@"
elif [ -f /var/lib/flatpak/exports/bin/org.telegram.desktop ]; then
flatpak run org.telegram.desktop "$@"
flatpak run io.github.tdesktop_x64.TDesktop "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/org.telegram.desktop ]; then
flatpak run --user org.telegram.desktop "$@"
else

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -x
/usr/bin/vivaldi --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
/usr/bin/vivaldi --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
set +x

View File

@ -2,6 +2,6 @@
"devDependencies": {
"@aminda/global-prettier-config": "2024.28.4"
},
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf",
"packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e",
"prettier": "@aminda/global-prettier-config"
}

@ -1 +1 @@
Subproject commit c82943b61b98a2596795e087f947470684aff4a7
Subproject commit ee8720a71b5968e16f0d621514baf35ca5cde451