Add nvidia-xrun configuration

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-03-18 16:05:54 +01:00
parent 7f8c6c9ccd
commit 79de524ab1
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
8 changed files with 40 additions and 10 deletions

View file

@ -171,7 +171,7 @@ print_section "Create issue file"
{
echo '\e{red}';
< "/etc/hostname" tr '[:lower:]' '[:upper:]' | figlet -f big | sed "s/\\\\/\\\\\\\/g";
echo -e "\\\r";
echo -e "\\\r (\\\l)";
echo '\e{reset}';
} >> "/tmp/issue"
sudo mv "/tmp/issue" "/etc/issue"

View file

@ -13,7 +13,7 @@
"undoUsingBackspace": true,
"windowDefaultSize": [
924,
962
336
],
"hPanePosition": 233,
"columnWidths": [

View file

@ -54,6 +54,14 @@ scroll-down = i3wm-deskprev
inherit = bar/top
monitor = eDP-1
[bar/top-nvidia]
inherit = bar/top
monitor = HDMI-1-1
[bar/top2-nvidia]
inherit = bar/top
monitor = eDP-1-1
#######################################
# Bottom bar
@ -71,6 +79,14 @@ inherit = bar/bottom
monitor = eDP-1
tray-position = left
[bar/bottom-nvidia]
inherit = bar/bottom
monitor = HDMI-1-1
[bar/bottom2-nvidia]
inherit = bar/bottom
monitor = eDP-1-1
#######################################
# i3 workspaces

View file

@ -18,8 +18,14 @@ killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar top &
polybar top2 &
polybar bottom &
polybar bottom2 &
polybar top-nvidia &
polybar top2-nvidia &
polybar bottom-nvidia &
polybar bottom2-nvidia &

View file

@ -29,3 +29,8 @@ crontab "${XDG_CONFIG_HOME}/cron/crontab"
if [ "$(tty)" = "/dev/tty1" ]; then
startx "${XDG_CONFIG_HOME}/X11/xinitrc" && exit
fi
# If we are on tty2 we start the x-server using nvidia-xrun
if [ "$(tty)" = "/dev/tty2" ]; then
nvidia-xrun && exit
fi

View file

@ -32,9 +32,9 @@ case "${SELECTION}" in
gw2
;;
"3")
optirun -b primus java minecraft-launcher
java minecraft-launcher
;;
"4")
optirun -b primus pegasus-fe
pegasus-fe
;;
esac

View file

@ -28,6 +28,6 @@ export LOGFILE=/dev/null
# Enable esync
export WINEESYNC=1
# Run it using optirun
optirun -b primus wine64 "${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/Gw2-64.exe" -dx9single -mapLoadInfo
# Run GW2 using some settings
wine64 "${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/Gw2-64.exe" -dx9single -mapLoadInfo

View file

@ -8,9 +8,12 @@
#
# DESCRIPTION:
# This is the script that is used to setup my monitors. This script
# is used by i3 and lightdm.
# is used by i3.
#
# USAGE:
# ./resolution
#xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output HDMI3 --off --output HDMI2 --off --output HDMI-1 --mode 1280x1024 --pos 80x56 --rotate normal --output eDP-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal --output DP3 --off --output DP2 --off --output DP1 --off
xrandr \
--output HDMI-1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output eDP-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal