mirror of
				https://gitea.blesmrt.net/mikaela/scripts.git
				synced 2025-11-04 03:17:32 +01:00 
			
		
		
		
	switching to computer english
This commit is contained in:
		
							parent
							
								
									790cbd02c9
								
							
						
					
					
						commit
						81ff17ddc8
					
				@ -6,9 +6,7 @@
 | 
			
		||||
set -x
 | 
			
		||||
 | 
			
		||||
# This is said to be a poor practice that should only be used for debugging
 | 
			
		||||
#export LC_ALL=C.utf8
 | 
			
		||||
# More universally supported even on older systems
 | 
			
		||||
export LC_ALL="en_DK.UTF-8"
 | 
			
		||||
export LC_ALL=C.utf8
 | 
			
		||||
 | 
			
		||||
# if hash checks that the command exists
 | 
			
		||||
if hash apt-get 2> /dev/null; then
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
export LC_ALL=C.utf8
 | 
			
		||||
# A simple script to list networks iwd detects and give instruction for
 | 
			
		||||
# connecting to it. Heavily inspired by `man iwctl`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@ elif [ -f "$HOME/Persistent/AppImages/beeper.appimage" ]; then
 | 
			
		||||
	mkdir -vp "$HOME/Persistent/AppImages/beeper.appimage.home"
 | 
			
		||||
	# We are using Tor, so we are American English, UTC is enforced anyway,
 | 
			
		||||
	# but probably won't hurt.
 | 
			
		||||
	export LC_ALL=en_US.utf8
 | 
			
		||||
	export LC_ALL=C.utf8
 | 
			
		||||
	export TZ=UTC
 | 
			
		||||
	$HOME/Persistent/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations --proxy-server=socks5://127.0.0.1:9050 "$@"
 | 
			
		||||
else
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@ elif [ -f "$HOME/Persistent/AppImages/element.appimage" ]; then
 | 
			
		||||
	mkdir -vp "$HOME/Persistent/AppImages/element.appimage.home"
 | 
			
		||||
	# We are using Tor, so we are American English, UTC is enforced anyway,
 | 
			
		||||
	# but probably won't hurt.
 | 
			
		||||
	export LC_ALL=en_US.utf8
 | 
			
		||||
	export LC_ALL=C.utf8
 | 
			
		||||
	export TZ=UTC
 | 
			
		||||
	$HOME/Persistent/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations --proxy-server=socks5://127.0.0.1:9050 "$@"
 | 
			
		||||
elif [ -f /var/lib/flatpak/exports/bin/im.riot.Riot ]; then
 | 
			
		||||
 | 
			
		||||
@ -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=C.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
 | 
			
		||||
set +x
 | 
			
		||||
 | 
			
		||||
@ -5,6 +5,7 @@
 | 
			
		||||
 | 
			
		||||
set -x
 | 
			
		||||
 | 
			
		||||
export LC_ALL=C.utf8
 | 
			
		||||
# TODO: this should be automatic
 | 
			
		||||
export GOVERSION=1.21
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -4,8 +4,8 @@
 | 
			
		||||
# desired
 | 
			
		||||
set -x
 | 
			
		||||
if [[ "$1" == -* ]]; then
 | 
			
		||||
	flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master "$@"
 | 
			
		||||
	flatpak run --env=LC_ALL=C.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master "$@"
 | 
			
		||||
else
 | 
			
		||||
	flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --compact --profile "$@"
 | 
			
		||||
	flatpak run --env=LC_ALL=C.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --compact --profile "$@"
 | 
			
		||||
fi
 | 
			
		||||
set +x
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
set -x
 | 
			
		||||
 | 
			
		||||
export LC_ALL=en_DK.UTF-8
 | 
			
		||||
export LC_ALL=C.utf8
 | 
			
		||||
 | 
			
		||||
# if yay is installed and we aren't root, run it instead
 | 
			
		||||
if [[ -f /usr/bin/yay && $(id -u) != 0 ]]; then
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,7 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
set -x
 | 
			
		||||
export LC_ALL=C.utf8
 | 
			
		||||
sudo systemctl start nordvpnd.socket
 | 
			
		||||
sleep 5
 | 
			
		||||
sudo systemctl start nordvpnd.service
 | 
			
		||||
 | 
			
		||||
@ -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=C.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
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,7 @@
 | 
			
		||||
# Quick syncplay wrapper
 | 
			
		||||
 | 
			
		||||
set -x
 | 
			
		||||
export LC_ALL=C.utf8
 | 
			
		||||
 | 
			
		||||
if [ -f "/tmp/syncplay.$(id -u).$(date -I)" ]; then
 | 
			
		||||
	echo "Syncplay has been touched today"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user