mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-28 22:29:28 +01:00
Compare commits
14 Commits
e492be76c4
...
4be10493e8
Author | SHA1 | Date | |
---|---|---|---|
4be10493e8 | |||
ddf13278bd | |||
7e20f183cd | |||
120ef10cb8 | |||
9dad4088c9 | |||
908ed26235 | |||
0db5338732 | |||
e8f418a36d | |||
6a22f8002f | |||
159f3e73da | |||
eefb5968de | |||
cbd0a6ef02 | |||
58cdc9dceb | |||
51ec4b71c5 |
4
.pre-commit-config.yaml
vendored
4
.pre-commit-config.yaml
vendored
@ -54,7 +54,7 @@ repos:
|
|||||||
args: [--update-only]
|
args: [--update-only]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: "v1.11.0"
|
rev: "v1.11.1"
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-tabulate]
|
additional_dependencies: [types-tabulate]
|
||||||
@ -66,7 +66,7 @@ repos:
|
|||||||
name: isort (python)
|
name: isort (python)
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.4.2
|
rev: 24.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
|
@ -60,6 +60,16 @@ if hash dnf 2> /dev/null; then
|
|||||||
dnf -v "$@" autoremove
|
dnf -v "$@" autoremove
|
||||||
fi
|
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
|
# https://github.com/Homebrew/brew
|
||||||
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
||||||
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
@ -129,6 +139,12 @@ if hash needrestart 2> /dev/null; then
|
|||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# archlinux-contrib
|
||||||
|
if hash checkservices 2> /dev/null; then
|
||||||
|
checkservices
|
||||||
|
sleep 5
|
||||||
|
fi
|
||||||
|
|
||||||
# Sedric workaround, located in this repo. I trust /root/
|
# Sedric workaround, located in this repo. I trust /root/
|
||||||
if [ -f /root/fixgrub.bash ]; then
|
if [ -f /root/fixgrub.bash ]; then
|
||||||
. /root/fixgrub.bash
|
. /root/fixgrub.bash
|
||||||
|
@ -69,6 +69,10 @@ flatpak override --filesystem=~/.ssh/config:ro --filesystem=~/.ssh/config.d:ro -
|
|||||||
# https://github.com/flathub/im.riot.Riot/issues/303#issuecomment-1816055123
|
# https://github.com/flathub/im.riot.Riot/issues/303#issuecomment-1816055123
|
||||||
flatpak override im.riot.Riot --talk-name=org.freedesktop.secrets $@
|
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
|
# Display the overrides
|
||||||
if [ -d /var/lib/flatpak/overrides/ ]; then
|
if [ -d /var/lib/flatpak/overrides/ ]; then
|
||||||
tail -n +1 /var/lib/flatpak/overrides/*
|
tail -n +1 /var/lib/flatpak/overrides/*
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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 FLATPAKEXPORTS=/var/lib/flatpak/exports/bin
|
||||||
#export TARGETDIR=~/.local/bin
|
#export TARGETDIR=~/.local/bin
|
||||||
@ -27,4 +28,12 @@ ln -sfv $FLATPAKEXPORTS/im.dino.Dino $TARGETDIR/dino
|
|||||||
#ln -sfv $FLATPAKEXPORTS/chat.schildi.desktop $TARGETDIR/schildichat
|
#ln -sfv $FLATPAKEXPORTS/chat.schildi.desktop $TARGETDIR/schildichat
|
||||||
#ln -sfv $FLATPAKEXPORTS/org.signal.Signal $TARGETDIR/signal-desktop
|
#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
|
set +x
|
||||||
|
@ -17,6 +17,6 @@ If they are in $PATH, note `sudo snap alias ORIGINAL NEW`
|
|||||||
## File Access Control List
|
## 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
|
getfacl /usr/local/bin
|
||||||
```
|
```
|
||||||
|
14
bash/usr-local-bin/beeper
Executable file
14
bash/usr-local-bin/beeper
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/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
|
@ -4,6 +4,6 @@ set -x
|
|||||||
if [ -f /snap/bin/bitwarden ]; then
|
if [ -f /snap/bin/bitwarden ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run bitwarden --ozone-platform=x11 --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
|
snap run bitwarden --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
fi
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
|
# 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 "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -5,20 +5,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/code ]; then
|
if [ -f /usr/bin/code ]; then
|
||||||
/usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=wayland "$@"
|
/usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f /snap/bin/code ]; then
|
elif [ -f /snap/bin/code ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=x11 "$@"
|
snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=x11 "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
||||||
flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then
|
||||||
flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "code not found :("
|
echo "code not found :("
|
||||||
|
@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/code-insiders ]; then
|
if [ -f /usr/bin/code-insiders ]; then
|
||||||
/usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@"
|
/usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f /snap/bin/code-insiders ]; then
|
elif [ -f /snap/bin/code-insiders ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@"
|
snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
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-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then
|
||||||
flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "code not found :("
|
echo "code not found :("
|
||||||
|
@ -5,20 +5,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/codium ]; then
|
if [ -f /usr/bin/codium ]; then
|
||||||
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=wayland "$@"
|
/usr/bin/codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=wayland "$@"
|
||||||
|
|
||||||
elif [ -f /snap/bin/codium ]; then
|
elif [ -f /snap/bin/codium ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform=x11 "$@"
|
snap run codium --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform=x11 "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
|
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,WebContentsForceDark "$@"
|
flatpak run --user com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/run/com.vscodium.codium ]; then
|
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,WebContentsForceDark "$@"
|
flatpak run com.vscodium.codium --verbose --no-sandbox --ozone-platform=x11 --enable-features=WaylandWindowDecorations "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "codium not found :("
|
echo "codium not found :("
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run chat.delta.desktop --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run im.riot.Riot --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
set -x
|
set -x
|
||||||
# proxy authentication is not supported
|
# proxy authentication is not supported
|
||||||
# https://github.com/vector-im/element-web/issues/3320
|
# 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-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
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 "$@"
|
||||||
set +x
|
set +x
|
||||||
|
13
bash/usr-local-bin/gearlever
Executable file
13
bash/usr-local-bin/gearlever
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/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
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# I was unable to get the Flatpak to start and the Snap needed the usual, so
|
# 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
|
# here we are. Then I learned that it just needs --ozone-platform=wayland
|
||||||
# instead of the old --ozone-platform-hint=auto, but whatever works or is
|
# instead of the old --ozone-platform=wayland, but whatever works or is
|
||||||
# installed is fine...
|
# installed is fine...
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -6,7 +6,7 @@ sleep 5
|
|||||||
sudo systemctl start nordvpnd.service
|
sudo systemctl start nordvpnd.service
|
||||||
sleep 5
|
sleep 5
|
||||||
systemctl status nordvpnd.service --no-pager
|
systemctl status nordvpnd.service --no-pager
|
||||||
nordvpn connect p2p
|
nordvpn connect p2p || exit 1
|
||||||
nordvpn set killswitch on
|
nordvpn set killswitch on
|
||||||
nordvpn set autoconnect on
|
nordvpn set autoconnect on
|
||||||
nordvpn status
|
nordvpn status
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@"
|
flatpak run chat.schildi.desktop --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
set -x
|
set -x
|
||||||
# proxy authentication is not supported
|
# proxy authentication is not supported
|
||||||
# https://github.com/vector-im/element-web/issues/3320
|
# 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-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --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=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
# --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon
|
# --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-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
flatpak run org.signal.Signal --use-tray-icon --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -3,8 +3,8 @@ set -x
|
|||||||
if [ -f /snap/bin/superproductivity ]; then
|
if [ -f /snap/bin/superproductivity ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
snap run superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
else
|
else
|
||||||
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
/usr/bin/superproductivity --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
fi
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
@ -10,7 +10,7 @@ elif [ -f ~/.local/share/flatpak/exports/bin/io.github.tdesktop_x64.TDesktop ];
|
|||||||
elif [ -f /usr/bin/telegram-desktop ]; then
|
elif [ -f /usr/bin/telegram-desktop ]; then
|
||||||
/usr/bin/telegram-desktop "$@"
|
/usr/bin/telegram-desktop "$@"
|
||||||
elif [ -f /var/lib/flatpak/exports/bin/org.telegram.desktop ]; then
|
elif [ -f /var/lib/flatpak/exports/bin/org.telegram.desktop ]; then
|
||||||
flatpak run io.github.tdesktop_x64.TDesktop "$@"
|
flatpak run org.telegram.desktop "$@"
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/org.telegram.desktop ]; then
|
elif [ -f ~/.local/share/flatpak/exports/bin/org.telegram.desktop ]; then
|
||||||
flatpak run --user org.telegram.desktop "$@"
|
flatpak run --user org.telegram.desktop "$@"
|
||||||
else
|
else
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
/usr/bin/vivaldi --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
|
/usr/bin/vivaldi --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
|
||||||
set +x
|
set +x
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aminda/global-prettier-config": "2024.28.4"
|
"@aminda/global-prettier-config": "2024.28.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e",
|
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf",
|
||||||
"prettier": "@aminda/global-prettier-config"
|
"prettier": "@aminda/global-prettier-config"
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit ee8720a71b5968e16f0d621514baf35ca5cde451
|
Subproject commit c82943b61b98a2596795e087f947470684aff4a7
|
Loading…
Reference in New Issue
Block a user