update scripts
This commit is contained in:
parent
e27561febc
commit
4222ec125c
|
@ -0,0 +1 @@
|
||||||
|
/home/marchambault/.config/systemd/user/spotifyd.service
|
|
@ -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
|
|
@ -7,6 +7,7 @@ alias top="htop"
|
||||||
alias http-server="python -m http.server"
|
alias http-server="python -m http.server"
|
||||||
alias rename="perl-rename"
|
alias rename="perl-rename"
|
||||||
alias userctl="systemctl --user"
|
alias userctl="systemctl --user"
|
||||||
|
alias lock="swaylock"
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
alias ls='lsd --group-dirs=first'
|
alias ls='lsd --group-dirs=first'
|
||||||
|
|
|
@ -45,9 +45,9 @@ __nmap_iface() {
|
||||||
|
|
||||||
# start game mode
|
# start game mode
|
||||||
gamemode() {
|
gamemode() {
|
||||||
if ! [ -S /tmp/win10.sock ]; then
|
#if ! [ -S /tmp/win10.sock ]; then
|
||||||
echo "Cannot find spice socket! Is the vm started?"
|
#echo "Cannot find spice socket! Is the vm started?"
|
||||||
else
|
#else
|
||||||
echo "Setup cpuset cgroup for host"
|
echo "Setup cpuset cgroup for host"
|
||||||
sudo cset set -c 0,4 -s system
|
sudo cset set -c 0,4 -s system
|
||||||
sudo cset proc -m -f root -t 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"
|
sudo sh -c "echo 0,4 > /proc/irq/$i/smp_affinity_list"
|
||||||
done
|
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"
|
echo "Restore system"
|
||||||
# irq
|
# irq
|
||||||
|
@ -76,6 +77,6 @@ gamemode() {
|
||||||
done;
|
done;
|
||||||
# cpuset
|
# cpuset
|
||||||
sudo cset set -d system &>/dev/null
|
sudo cset set -d system &>/dev/null
|
||||||
fi
|
#fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
export ZSH_TMUX_AUTOSTART=true
|
|
||||||
export ZSH_TMUX_FIXTERM_WITH_256COLOR=true
|
export ZSH_TMUX_FIXTERM_WITH_256COLOR=true
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 476f6ca69922c9e67c408ae92dff0eb0ccb8ee51
|
Subproject commit 42bb2bf48bef881be504278cf5156371b542cf81
|
|
@ -2,7 +2,7 @@
|
||||||
exec 1<&-
|
exec 1<&-
|
||||||
|
|
||||||
system_services="cronie"
|
system_services="cronie"
|
||||||
user_services="compton redshift mpv"
|
user_services="redshift swayidle"
|
||||||
|
|
||||||
if [[ "$1" == "start" ]]; then
|
if [[ "$1" == "start" ]]; then
|
||||||
for service in $system_services; do
|
for service in $system_services; do
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue