Mises à jour diverses
This commit is contained in:
parent
9f6dda3b7a
commit
32ebb8342e
7 changed files with 52 additions and 11 deletions
|
@ -3,7 +3,7 @@
|
|||
fields=0 17 18 48 49 39 113 109 110 46 47 2 1
|
||||
sort_key=46
|
||||
sort_direction=1
|
||||
tree_sort_key=46
|
||||
tree_sort_key=0
|
||||
tree_sort_direction=1
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=1
|
||||
|
@ -18,7 +18,7 @@ highlight_changes_delay_secs=5
|
|||
find_comm_in_cmdline=1
|
||||
strip_exe_from_cmdline=1
|
||||
show_merged_command=0
|
||||
tree_view=0
|
||||
tree_view=1
|
||||
tree_view_always_by_pid=0
|
||||
header_margin=1
|
||||
detailed_cpu_time=1
|
||||
|
|
|
@ -31,4 +31,4 @@ slang=fr,fre,fra
|
|||
cache=yes
|
||||
demuxer-max-bytes=256MiB
|
||||
demuxer-readahead-secs=20
|
||||
ytdl-format="((bestvideo[container=webm][height=1080]/bestvideo[ext=webm][height=1080]/bestvideo[height=1080]/bestvideo[height>=?720]/bestvideo)+(bestaudio[container=webm]/bestaudio[ext=webm]/bestaudio))/best"
|
||||
ytdl-format="((bestvideo[vcodec^=av01][height=1080]/bestvideo[vcodec=vp9][height=1080]/bestvideo[height=1080]/bestvideo[vcodec^=av01][height>=?720]/bestvideo[vcodec=vp9][height>=?720]/bestvideo[height>=?720]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio))/best"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[redshift]
|
||||
temp-day=4500
|
||||
temp-night=3400
|
||||
temp-day=4000
|
||||
temp-night=2400
|
||||
|
||||
transition=1
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
date '+%x (%V) %X'
|
||||
date '+%d/%m %R'
|
||||
date '+%x %X'
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
currentport=$(pacmd list-sinks | grep -Po "active port: <analog.*")
|
||||
currentport=$(pactl list sinks | grep -Po "Active Port: analog.*")
|
||||
|
||||
if [[ -n "$button" ]]
|
||||
then
|
||||
if [[ "$currentport" == "active port: <analog-output-lineout>" ]]
|
||||
if [[ "$currentport" == "Active Port: analog-output-lineout" ]]
|
||||
then
|
||||
pacmd set-sink-port "alsa_output.pci-0000_0b_00.3.analog-stereo" "analog-output-headphones"
|
||||
pactl set-sink-port "alsa_output.pci-0000:0b:00.3.analog-stereo" "analog-output-headphones"
|
||||
echo "casque"
|
||||
else
|
||||
pacmd set-sink-port "alsa_output.pci-0000_0b_00.3.analog-stereo" "analog-output-lineout"
|
||||
pactl set-sink-port "alsa_output.pci-0000:0b:00.3.analog-stereo" "analog-output-lineout"
|
||||
echo "front "
|
||||
fi
|
||||
pkill -RTMIN+10 i3blocks
|
||||
else
|
||||
if [[ "$currentport" == "active port: <analog-output-lineout>" ]]
|
||||
if [[ "$currentport" == "Active Port: analog-output-lineout" ]]
|
||||
then
|
||||
echo "front "
|
||||
else
|
||||
|
|
29
.local/bin/auto-poweroff.sh
Executable file
29
.local/bin/auto-poweroff.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# 1: Temps en minutes
|
||||
# 2: Type d’extinction
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
mcpid=$(systemctl show minecraft-server.service --property MainPID --value)
|
||||
mcstatus=$(ps -q "${mcpid}" -o state --no-headers 2>/dev/null)
|
||||
|
||||
if [[ "$mcstatus" == "T" ]]
|
||||
then
|
||||
echo . >> /dev/shm/mccount
|
||||
else
|
||||
> /dev/shm/mccount
|
||||
fi
|
||||
|
||||
time=$(wc -l /dev/shm/mccount | cut -d" " -f1)
|
||||
|
||||
if [[ "$time" -ge "${1:-5}" ]]
|
||||
then
|
||||
> /dev/shm/mccount
|
||||
systemctl "${2:-suspend}"
|
||||
fi
|
||||
|
||||
sleep 60
|
||||
|
||||
done
|
12
.local/bin/mccmd
Executable file
12
.local/bin/mccmd
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
cat | while read line
|
||||
do
|
||||
if [[ "$line" =~ ^/ ]]
|
||||
then
|
||||
echo "$line" > /run/minecraft-server.stdin
|
||||
else
|
||||
echo "say $line" > /run/minecraft-server.stdin
|
||||
# echo "dynmap sendtoweb $line" > /run/minecraft-server.stdin
|
||||
fi
|
||||
done
|
Loading…
Reference in a new issue