diff --git a/files/.config/i3/config b/files/.config/i3/config index 0e24420..55365be 100644 --- a/files/.config/i3/config +++ b/files/.config/i3/config @@ -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 diff --git a/files/.config/zsh/custom/101-function.zsh b/files/.config/zsh/custom/101-function.zsh index 9a12a10..11b7304 100644 --- a/files/.config/zsh/custom/101-function.zsh +++ b/files/.config/zsh/custom/101-function.zsh @@ -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 +}