1
0
Fork 0

gaming mode

This commit is contained in:
Massaki Archambault 2018-04-29 13:31:31 -04:00
parent 2df1315980
commit 37f98c057c
2 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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
}