gaming mode
This commit is contained in:
parent
2df1315980
commit
37f98c057c
|
@ -61,7 +61,7 @@ smart_gaps on
|
|||
for_window [class="^Pavucontrol$"] floating enable
|
||||
for_window [class="Remmina" title="Remmina Remote Desktop Client"] floating enable
|
||||
for_window [class="feh" title="pinned screenshot"] floating enable sticky enable
|
||||
for_window [class="TeamViewer" title="Computers & Contacts"] floating enable
|
||||
for_window [class="TeamViewer"] floating enable
|
||||
|
||||
# https://github.com/ValveSoftware/steam-for-linux/issues/1040
|
||||
for_window [class="^Steam$" title="^Friends$"] floating enable
|
||||
|
|
|
@ -42,3 +42,25 @@ __nmap_iface() {
|
|||
\=() {
|
||||
bc -l <<<"$*"
|
||||
}
|
||||
|
||||
# start looking-glass
|
||||
game() {
|
||||
echo "Stopping services"
|
||||
sudo systemctl stop cronie
|
||||
systemctl --user stop redshift
|
||||
pkill compton
|
||||
|
||||
echo "Setup cpuset cgroup for host"
|
||||
sudo cset set -c 0,4 -s system
|
||||
sudo cset proc -m -f root -t system
|
||||
sudo cset proc -k -f root -t system --force
|
||||
|
||||
echo "Starting looking-glass"
|
||||
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so looking-glass-client -o opengl:preventBuffer=0 -MF
|
||||
|
||||
echo "Restore system"
|
||||
sudo cset set -d system &>/dev/null
|
||||
compton &>/dev/null & disown
|
||||
systemctl --user start redshift
|
||||
sudo systemctl start cronie
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue