about summary refs log tree commit diff
path: root/profile/.profile.d/wine.sh
blob: 8f078cefef37b141d34eb1b9ccf596de8a346023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#shellcheck disable=SC2139

if command -v wine >/dev/null 2>&1; then
	export WINEARCH="win64"
	export WINEDEBUG="+all"
	export WINEDLLOVERRIDES="winemenubuilder.exe=d"
	export WINEPREFIX="${HOME}/.wine"

	if command -v xrandr >/dev/null 2>&1; then
		alias wine-run="wine explorer.exe /desktop=default,$(xrandr | grep '\*' | cut -d' ' -f4)"
	fi
fi

Consider giving Nix/NixOS a try! <3