[scripts] added csgores, desktopres, mouserotation and made sessions uppercase in tms
This commit is contained in:
parent
a5f8a7b1ab
commit
98d76b0abb
4 changed files with 11 additions and 0 deletions
2
.local/bin/csgores
Executable file
2
.local/bin/csgores
Executable 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
2
.local/bin/desktopres
Executable 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
6
.local/bin/mouserotation.sh
Executable 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
|
|
@ -16,6 +16,7 @@ if [[ -z $selected ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
selected_name=$(basename "$selected" | tr . _)
|
selected_name=$(basename "$selected" | tr . _)
|
||||||
|
selected_name=${selected_name^^}
|
||||||
tmux_running=$(pgrep tmux)
|
tmux_running=$(pgrep tmux)
|
||||||
|
|
||||||
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
|
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
|
||||||
|
|
Loading…
Reference in a new issue