Add nvidia-xrun configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
7f8c6c9ccd
commit
79de524ab1
8 changed files with 40 additions and 10 deletions
|
@ -13,7 +13,7 @@
|
|||
"undoUsingBackspace": true,
|
||||
"windowDefaultSize": [
|
||||
924,
|
||||
962
|
||||
336
|
||||
],
|
||||
"hPanePosition": 233,
|
||||
"columnWidths": [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 &
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue