mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-25 03:24:55 +01:00
Compare commits
No commits in common. "cbdb39e07d948f55d7e111aa96f88abed23d891a" and "a3db9a9751bf6fe81793fe2db20795eab9d749f5" have entirely different histories.
cbdb39e07d
...
a3db9a9751
@ -1 +0,0 @@
|
||||
flatpak-workarounds.bash
|
13
bash/flatpak-override-themes.bash
Executable file
13
bash/flatpak-override-themes.bash
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Show commands being executed
|
||||
set -x
|
||||
|
||||
# resutls in /var/lib/flatpak/overrides/global
|
||||
flatpak override --filesystem=/usr/share/themes:ro --filesystem=~/.themes:ro
|
||||
flatpak override --filesystem=/usr/share/icons:ro --filesystem=~/.icons:ro
|
||||
flatpak override --filesystem=/usr/share/cursors:ro --filesystem=~/.cursors:ro
|
||||
flatpak override --show
|
||||
|
||||
# Hide commands being executed again
|
||||
set +x
|
@ -1,27 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Show commands being executed
|
||||
set -x
|
||||
|
||||
# Workarounds for common flatpak app issues
|
||||
|
||||
# Allowing system themes in flatpaks
|
||||
flatpak override --filesystem=/usr/local/share/themes:ro --filesystem=/usr/share/themes:ro --filesystem=~/.themes:ro
|
||||
flatpak override --filesystem=/usr/local/share/icons:ro --filesystem=/usr/share/icons:ro --filesystem=~/.icons:ro
|
||||
flatpak override --filesystem=/usr/local/share/cursors:ro --filesystem=/usr/share/cursors:ro --filesystem=~/.cursors:ro
|
||||
|
||||
# Backticks and a lot of common characters in all Flatpaks
|
||||
# https://github.com/flatpak/flatpak/issues/2031
|
||||
flatpak override --talk-name=org.fcitx.Fcitx --talk-name=org.freedesktop.portal.Fcitx
|
||||
|
||||
# https://github.com/flathub/org.briarproject.Briar/issues/5
|
||||
flatpak override org.briarproject.Briar --filesystem=~/.briar:create
|
||||
flatpak override org.briarproject.Briar --filesystem=~/.java/.userPrefs/org/briarproject/briar:create
|
||||
|
||||
# Just for verbosity. The results can be seen in /var/lib/flatpak/overrides/global …
|
||||
flatpak override --show
|
||||
# …and /var/lib/flatpak/overrides/org.briarproject.Briar
|
||||
flatpak override --show org.briarproject.Briar
|
||||
|
||||
# Hide commands being executed again
|
||||
set +x
|
@ -5,8 +5,6 @@
|
||||
set -x
|
||||
# proxy authentication is not supported
|
||||
# https://github.com/vector-im/element-web/issues/3320
|
||||
#/usr/bin/element --proxy-server=socks5://127.0.0.1:9050 $@
|
||||
# Flatpak is preferred for Element not having official Fedora repositories
|
||||
# and at the time of writing being unmaintained in upstream suggested repo.
|
||||
flatpak run im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 $@
|
||||
/usr/bin/element --proxy-server=socks5://127.0.0.1:9050 $@
|
||||
#flatpak run im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 $@
|
||||
set +x
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
import secrets
|
||||
|
||||
try:
|
||||
wantedCount = int(sys.argv[1])
|
||||
except IndexError as noarg:
|
||||
print("Enter a digit as an argument!")
|
||||
|
||||
try:
|
||||
for i in range(int(wantedCount)):
|
||||
print(secrets.randbelow(10),end="")
|
||||
except NameError as noWantedCount:
|
||||
print()
|
||||
print()
|
Loading…
Reference in New Issue
Block a user