[scripts] added csgores, desktopres, mouserotation and made sessions uppercase in tms

This commit is contained in:
Afonso Franco 2024-06-01 19:57:07 +01:00
parent a5f8a7b1ab
commit 98d76b0abb
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
4 changed files with 11 additions and 0 deletions

2
.local/bin/csgores Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
nvidia-settings --assign CurrentMetaMode="DP-0: nvidia-auto-select +0+0 {viewportin=1920x1440, AllowGSYNCCompatible=On}, HDMI-0: nvidia-auto-select +1920+0 {rotation=right}"

2
.local/bin/desktopres Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
nvidia-settings --assign CurrentMetaMode="DP-0: nvidia-auto-select +0+0 {AllowGSYNCCompatible=On}, HDMI-0: nvidia-auto-select +2560+0 {rotation=right}"

6
.local/bin/mouserotation.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
for id in `xinput --list | awk '/Razer Razer DeathAdder V3 Pro .*pointer/ {print $8}' | sed 's/id=\(.*\)/\1/'`; do
notify-send "Applied Mouse Rotation"
xinput set-prop $id "Coordinate Transformation Matrix" 0.9848 0.1736 0 -0.1736 0.9848 0 0 0 1
sleep 1
done

View file

@ -16,6 +16,7 @@ if [[ -z $selected ]]; then
fi
selected_name=$(basename "$selected" | tr . _)
selected_name=${selected_name^^}
tmux_running=$(pgrep tmux)
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then