mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-20 05:17:20 +02:00
Compare commits
6 Commits
e797638be0
...
054f54a4c3
Author | SHA1 | Date | |
---|---|---|---|
054f54a4c3 | |||
440c92fc57 | |||
e1552e9a8c | |||
6ae31c436d | |||
f323f38061 | |||
4dca8bec02 |
@ -58,7 +58,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.15.0
|
rev: v3.15.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py310-plus]
|
args: [--py310-plus]
|
||||||
|
@ -7,7 +7,7 @@ set -x
|
|||||||
# set of remotes and are missing something existing on another
|
# set of remotes and are missing something existing on another
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo $@
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo $@
|
||||||
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo $@
|
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo $@
|
||||||
flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo $@
|
#flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo $@
|
||||||
flatpak remote-add --if-not-exists nheko-nightly https://nheko.im/nheko-reborn/nheko/-/raw/master/nheko-nightly.flatpakrepo $@
|
flatpak remote-add --if-not-exists nheko-nightly https://nheko.im/nheko-reborn/nheko/-/raw/master/nheko-nightly.flatpakrepo $@
|
||||||
|
|
||||||
# Fedora?
|
# Fedora?
|
||||||
@ -23,11 +23,16 @@ flatpak remote-modify --enable fedora-testing $@
|
|||||||
# In case of similar issues on other distributions
|
# In case of similar issues on other distributions
|
||||||
flatpak remote-modify --enable flathub $@
|
flatpak remote-modify --enable flathub $@
|
||||||
flatpak remote-modify --enable flathub-beta $@
|
flatpak remote-modify --enable flathub-beta $@
|
||||||
flatpak remote-modify --enable kdeapps $@
|
#flatpak remote-modify --enable kdeapps $@
|
||||||
# The other repositories are very unlikely to ship by default with anything
|
# The other repositories are very unlikely to ship by default with anything
|
||||||
|
|
||||||
|
# These remotes no longer exist
|
||||||
|
flatpak remote-delete kdeapps $@
|
||||||
|
|
||||||
# Hints?
|
# Hints?
|
||||||
printf 'Only want verified flatpaks? No problem!\n\tflatpak remote-modify --subset=verified flathub\n'
|
printf 'Only want verified flatpaks? No problem!\n\tflatpak remote-modify --subset=verified flathub\n'
|
||||||
|
printf 'kdeapps? https://userbase.kde.org/Tutorials/Flatpak#Nightly_KDE_apps\n'
|
||||||
|
|
||||||
# Revert? ~/.local/share/flatpak/repo/config or /var/lib/flatpak/repo/config
|
# Revert? ~/.local/share/flatpak/repo/config or /var/lib/flatpak/repo/config
|
||||||
|
|
||||||
# Hide commands being executed again
|
# Hide commands being executed again
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Flutter doesn't support flatpak, so Snap is the least bad Fluffy experience.
|
# Flutter doesn't support flatpak, so Snap is the least bad Fluffy experience.
|
||||||
# I presume repo version is always outdated, so fallback to flathub s less
|
|
||||||
# bad.
|
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /snap/bin/fluffychat ]; then
|
if [ -f /snap/bin/fluffychat ]; then
|
||||||
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
|
unset DBUS_SESSION_BUS_ADDRESS
|
||||||
snap run fluffychat $@
|
snap run fluffychat $@
|
||||||
elif [ -f /var/lib/flatpak/exports/bin/im.fluffychat.Fluffychat ]; then
|
|
||||||
flatpak run im.fluffychat.Fluffychat $@
|
|
||||||
else
|
else
|
||||||
/usr/bin/fluffychat
|
/usr/bin/fluffychat
|
||||||
fi
|
fi
|
||||||
|
10
bash/usr-local-bin/vlc-snap
Executable file
10
bash/usr-local-bin/vlc-snap
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
if [ -f /snap/bin/vlc ]; 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 vlc $@
|
||||||
|
else
|
||||||
|
/usr/bin/vlc
|
||||||
|
fi
|
||||||
|
set +x
|
Loading…
x
Reference in New Issue
Block a user