diff options
author | self <self@sateoki.xyz> | 2022-01-20 09:57:10 +0000 |
---|---|---|
committer | self <self@sateoki.xyz> | 2022-01-20 09:57:10 +0000 |
commit | 5fbc956a421d8f70dcff34cf4fbae85de6bdea2f (patch) | |
tree | 5fcfcebe59acd5b0da1eb5bb6d9d2465331a5a4b /.xinitrc | |
parent | a281f1af9ca649820f04774118345f04923b610b (diff) |
Updated xinitrc
Diffstat (limited to '.xinitrc')
-rw-r--r-- | .xinitrc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |