1
0
Fork 0

update scripts

This commit is contained in:
Massaki Archambault 2020-09-02 15:58:19 -04:00
parent e27561febc
commit 4222ec125c
8 changed files with 41 additions and 8 deletions

View File

@ -0,0 +1 @@
/home/marchambault/.config/systemd/user/spotifyd.service

View File

@ -0,0 +1,15 @@
[Unit]
Description=A spotify playing daemon
Documentation=https://github.com/Spotifyd/spotifyd
Wants=sound.target
After=sound.target
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/spotifyd --no-daemon
Restart=always
RestartSec=12
[Install]
WantedBy=default.target

View File

@ -7,6 +7,7 @@ alias top="htop"
alias http-server="python -m http.server"
alias rename="perl-rename"
alias userctl="systemctl --user"
alias lock="swaylock"
# ls
alias ls='lsd --group-dirs=first'

View File

@ -45,9 +45,9 @@ __nmap_iface() {
# start game mode
gamemode() {
if ! [ -S /tmp/win10.sock ]; then
echo "Cannot find spice socket! Is the vm started?"
else
#if ! [ -S /tmp/win10.sock ]; then
#echo "Cannot find spice socket! Is the vm started?"
#else
echo "Setup cpuset cgroup for host"
sudo cset set -c 0,4 -s system
sudo cset proc -m -f root -t system
@ -63,7 +63,8 @@ gamemode() {
sudo sh -c "echo 0,4 > /proc/irq/$i/smp_affinity_list"
done
LD_PRELOAD="/usr/\$LIB/libgamemodeauto.so" looking-glass-wrapper
#LD_PRELOAD="/usr/\$LIB/libgamemodeauto.so" auto-restart looking-glass-client -p 0 -c /tmp/win10.sock app:renderer=opengl egl:vsync=yes win:fullScreen=yes -k $@
gamemoderun auto-restart looking-glass-client
echo "Restore system"
# irq
@ -76,6 +77,6 @@ gamemode() {
done;
# cpuset
sudo cset set -d system &>/dev/null
fi
#fi
}

View File

@ -1,2 +1 @@
export ZSH_TMUX_AUTOSTART=true
export ZSH_TMUX_FIXTERM_WITH_256COLOR=true

@ -1 +1 @@
Subproject commit 476f6ca69922c9e67c408ae92dff0eb0ccb8ee51
Subproject commit 42bb2bf48bef881be504278cf5156371b542cf81

View File

@ -2,7 +2,7 @@
exec 1<&-
system_services="cronie"
user_services="compton redshift mpv"
user_services="redshift swayidle"
if [[ "$1" == "start" ]]; then
for service in $system_services; do

16
files/bin/auto-restart Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
function stop() {
echo "Stopping"
exit 0
}
while true; do
echo "Starting $1"
trap - SIGINT
$@
trap stop SIGINT
echo -e "\nPress enter to restart $1..."
read
done