mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-10 04:12:31 +01:00
Compare commits
11 Commits
a3db9a9751
...
cbdb39e07d
Author | SHA1 | Date | |
---|---|---|---|
cbdb39e07d | |||
5d41a732e1 | |||
c3a72447c7 | |||
7e00a22469 | |||
182d1dcae8 | |||
7799b8dd50 | |||
e05596ce52 | |||
2232c9108f | |||
d71bcfa12b | |||
bebbce9d65 | |||
c8bdace60d |
@ -1,13 +0,0 @@
|
|||||||
#!/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
bash/flatpak-override-themes.bash
Symbolic link
1
bash/flatpak-override-themes.bash
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
flatpak-workarounds.bash
|
27
bash/flatpak-workarounds.bash
Executable file
27
bash/flatpak-workarounds.bash
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/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,6 +5,8 @@
|
|||||||
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
|
||||||
/usr/bin/element --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 $@
|
# 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 $@
|
||||||
set +x
|
set +x
|
||||||
|
15
python/pin.py
Executable file
15
python/pin.py
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/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