From cc3890ad108f698c71888e7fa2d76faa432b3fe3 Mon Sep 17 00:00:00 2001 From: Dominic Connor Date: Sun, 9 Aug 2020 21:28:10 +0100 Subject: [PATCH] initial commit --- README.md | 7 +++++++ ScrnTearFix.sh | 1 + screenlayout.sh | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 README.md create mode 100755 ScrnTearFix.sh create mode 100755 screenlayout.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..3870554 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# scripts/snippets for linux (maybe MacOS?) + +NOTE: these are either scripts I wrote or found on the internet and are here for convenience, use them at your own risk! +### List of items & explanations: + - **ScrnTearFix** - fixes screen tearing in DEs such as plasma and gnome + - **screenlayout** - sets my screen layout (1920x1080 & 768x1366 to the right) + - **FAH** - start Folding@Home \ No newline at end of file diff --git a/ScrnTearFix.sh b/ScrnTearFix.sh new file mode 100755 index 0000000..5b74173 --- /dev/null +++ b/ScrnTearFix.sh @@ -0,0 +1 @@ +nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }" diff --git a/screenlayout.sh b/screenlayout.sh new file mode 100755 index 0000000..5bf3c0a --- /dev/null +++ b/screenlayout.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DVI-D-0 --off --output HDMI-0 --primary --mode 1920x1080 --pos 0x143 --rotate normal --output DP-0 --mode 1366x768 --pos 1920x0 --rotate right --output DP-1 --off