aboutsummaryrefslogtreecommitdiff
path: root/gpu
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-04-07 20:21:08 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2021-04-07 20:21:08 +0200
commitb3017b9ee5fdf4d79b8f3c5253cfd6ec62b31844 (patch)
tree8d36338a257cba4bb311fec0ca87658a162cbbac /gpu
parent3d03e86fc19b5cf10e83fda358af894ab80b3868 (diff)
downloadscripts-b3017b9ee5fdf4d79b8f3c5253cfd6ec62b31844.tar.gz
scripts-b3017b9ee5fdf4d79b8f3c5253cfd6ec62b31844.zip
Made gpu scripts not dependant on wm.
Diffstat (limited to 'gpu')
-rwxr-xr-xgpu/gpuHybrid.sh6
-rwxr-xr-xgpu/gpuIntel.sh3
-rwxr-xr-xgpu/gpuNvidia.sh3
3 files changed, 7 insertions, 5 deletions
diff --git a/gpu/gpuHybrid.sh b/gpu/gpuHybrid.sh
index 0826eb0..6c318d1 100755
--- a/gpu/gpuHybrid.sh
+++ b/gpu/gpuHybrid.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Sets on nvidia at startup
-cp "$HOME/.xinitrci3bcknvidia" "$HOME/.xinitrci3"
+# Sets nvidia on at startup
+cat "$HOME/.xinitrcprevnvidia" >"$HOME/.xinitrcprev"
+cat "$HOME/.xinitrcpostnvidia" >"$HOME/.xinitrcpost"
sudo optimus-manager --set-startup hybrid
-
diff --git a/gpu/gpuIntel.sh b/gpu/gpuIntel.sh
index 5b9409c..8c8d8e7 100755
--- a/gpu/gpuIntel.sh
+++ b/gpu/gpuIntel.sh
@@ -1,5 +1,6 @@
#!/bin/sh
#
# Sets off nvidia at startup
-cp "$HOME/.xinitrci3bckintel" "$HOME/.xinitrci3"
+cat "$HOME/.xinitrcprevintel" >"$HOME/.xinitrcprev"
+cat "$HOME/.xinitrcpostintel" >"$HOME/.xinitrcpost"
sudo optimus-manager --set-startup intel
diff --git a/gpu/gpuNvidia.sh b/gpu/gpuNvidia.sh
index c02877c..8ff239e 100755
--- a/gpu/gpuNvidia.sh
+++ b/gpu/gpuNvidia.sh
@@ -1,5 +1,6 @@
#!/bin/sh
#
# Sets only nvidia at startup
-cp "$HOME/.xinitrci3bcknvidia" "$HOME/.xinitrci3"
+cat "$HOME/.xinitrcprevnvidia" >"$HOME/.xinitrcprev"
+cat "$HOME/.xinitrcpostnvidia" >"$HOME/.xinitrcpost"
sudo optimus-manager --set-startup nvidia