From 5fbc956a421d8f70dcff34cf4fbae85de6bdea2f Mon Sep 17 00:00:00 2001 From: self Date: Thu, 20 Jan 2022 09:57:10 +0000 Subject: Updated xinitrc --- .xinitrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.xinitrc') diff --git a/.xinitrc b/.xinitrc index 44cb796..a60ccfa 100644 --- a/.xinitrc +++ b/.xinitrc @@ -4,7 +4,6 @@ setxkbmap gb # Set keyboard to gb layout export SHELL=/bin/zsh # Set shell to zsh wmname LG3D & # For getting Java applications, e.g. Pycharm, Rider to work. -/usr/bin/prime-offload # For optimus-manager, nvidia # Daemons etc. mpd @@ -17,6 +16,7 @@ mpd session=${1:-dwm} run_dwm() { + /usr/bin/prime-offload # For optimus-manager, nvidia # Run all applications that go hand in hand w/ dwm dwmblocks & @@ -31,20 +31,22 @@ run_dwm() { do dwm # Begin dwm wrapper done + + + sudo /usr/bin/prime-switch } run_kde() { export DESKTOP_SESSION=plasma - exec startplasma-x11 + startplasma-x11 } case $session in i3|i3wm ) exec i3;; - kde ) run_kde ;; + kde ) export DESKTOP_SESSION=plasma ; exec startplasma-x11;; dwm ) run_dwm ;; # No known session, try to run it as command esac -sudo /usr/bin/prime-switch -- cgit v1.2.1