output_logging_20240912T002337

This commit is contained in:
Le_Foucheur committed 2026-01-01 14:46:55 +01:00
1 parent cb1a0ca69d
commit 9eb6226619
3763 files changed
+307 -64993

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
bg=$(find ~/wallpaper/ -type f,l | shuf -n 1)
swaylock --effect-blur 10x10 --font-size 35 --font Monocraft -f -F -l --clock -i $bg
Regular → Executable
View File
File mode changed.
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/leds/kbd_backlight/max_brightness)
if [ -n "$1" ]
then
augment=$1
else
augment=10
fi
next=$(expr $(cat /sys/class/leds/kbd_backlight/brightness) + $max '*' "$augment" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -gt $max ]
then
next=$max
fi
echo $next > /sys/class/leds/kbd_backlight/brightness
echo $(expr $next "*" 100 "/" $max)
Regular → Executable
+1 -1
View File
@@ -2,7 +2,7 @@
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/max_brightness)
max=$(cat /sys/class/backlight/apple-panel-bl/max_brightness)
if [ -n "$1" ]
then
dim=$1
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/leds/kbd_backlight/max_brightness)
if [ -n "$1" ]
then
dim=$1
else
dim=10
fi
next=$(expr $(cat /sys/class/leds/kbd_backlight/brightness) - $max '*' "$dim" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -lt 0 ]
then
next=0
fi
echo $next > /sys/class/leds/kbd_backlight/brightness
echo $(expr $next "*" 100 "/" $max)
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
Regular → Executable
+2 -2
View File
@@ -3,5 +3,5 @@
# Stop keepassXC
keepassxc --lock
killall keepassxc
# Stop gammastep
#killall gammastep
Stop gammastep
killall gammastep
Regular → Executable
View File
File mode changed.
Regular → Executable
+1 -1
View File
@@ -10,7 +10,7 @@ wait_waybar () {
}
# Per computer processus
#gammastep& # Blue light reducer
gammastep& # Blue light reducer
bluetoothctl power off # power off bluetooth at startup
# Start other processus
Regular → Executable
+1 -8
View File
@@ -4,11 +4,4 @@ export XDG_CURRENT_DESKTOP=sway
# Start sway
dbus-run-session sway -Vd
# dbus-launch
#sway -Vd
#pour la veille
swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
#sway -Vd
+21
View File
@@ -0,0 +1,21 @@
while true;
do
rien=$(echo $(ps -A | grep swayidle))
if [[ $(ps -A | grep deezer-enhanced) != "" ]]; then
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
else
class="stopped"
fi
if [[ $class == "playing" ]]&&[[ $rien != "" ]]; then
killall swayidle
else
if [[ $rien == "" ]]; then
swayidle -w \
timeout 269 '~/script/dim_lum.sh 0 > /run/user/$UID/lum.txt'\
timeout 270 '~/script/dim_lum.sh 100'\
resume '~/script/augment_lum.sh $(( $(cat /run/user/$UID/lum.txt) + 1 ))'\
timeout 300 '~/script/Clock.sh'
fi
fi
done
+4
View File
@@ -0,0 +1,4 @@
path=$(pwd $1)
path=$(echo $path"/"$1)
echo "alias $2=\"muvm -- '$path'\"" >> ~/.zshrc
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
protonhax init "/home/jvj/Games/SidMeiersCivilizationVI/Base/Binaries/Win64EOS/CivilizationVI.exe" $@
:
+46 -26
View File
@@ -1,51 +1,67 @@
rm -r /home/jvj/wallpaper/
mkdir /home/jvj/wallpaper
rm -r "/home/jvj/wallpaper/"
mkdir -p "/home/jvj/wallpaper"
######################
# #
# Rarity #
# Parametre #
# #
######################
listLeg=("OuterWilds/fabicdeleted.jpg")
listrare=("minecraft/terralith-1.png")
listcomm=("OuterWilds/NewSpaceTime.png" "OuterWilds/O_SolarSyi.jpg")
Total=100
nb_leg=1
nb_leg=${#listLeg[@]}
legendary=1
nb_Rare=0
nb_Rare=${#listrare[@]}
rare=10
nb_com=2
nb_com=${#listcomm[@]}
commun=$(( ( $Total - $legendary * $nb_leg - $rare * $nb_Rare) / $nb_com ))
######################
# #
# Outer Wilds #
# création symlink #
# #
######################
#you destroy the fabirc of spacetime
for i in $(seq $legendary)
#Legendaire
for j in "${listLeg[@]}"
do
if [[ $1 == "-d" ]];then
echo "OuterWilds - fabicdeleted : $i"
fi
ln -s /home/jvj/wallpaperperm/OuterWilds/fabicdeleted.jpg /home/jvj/wallpaper/fabicdeleted_$i.jpg
mkdir -p "/home/jvj/wallpaper/$(echo "$j" | rev | cut -d "/" -f 2- | rev)"
for i in $(seq $legendary)
do
if [[ $1 == "-d" ]];then
echo "$j : $i"
fi
ln -sf "/home/jvj/wallpaperperm/$j" "/home/jvj/wallpaper/$(echo $j | cut -d "." -f 1)_$i"
done
done
#New space time
for i in $(seq $commun)
#Rare
for j in "${listrare[@]}"
do
if [[ $1 == "-d" ]];then
echo "OuterWilds - NewSpaceTime : $i"
fi
ln -s /home/jvj/wallpaperperm/OuterWilds/NewSpaceTime.png /home/jvj/wallpaper/NewSpaceTime_$i.png
mkdir -p "/home/jvj/wallpaper/$(echo "$j" | rev | cut -d "/" -f 2- | rev)"
for i in $(seq $rare)
do
if [[ $1 == "-d" ]];then
echo "$j : $i"
fi
ln -sf "/home/jvj/wallpaperperm/$j" "/home/jvj/wallpaper/$(echo $j | cut -d "." -f 1)_$i"
done
done
#Solar system
for i in $(seq $commun)
#Commun
for j in "${listcomm[@]}"
do
if [[ $1 == "-d" ]];then
echo "OuterWilds - Solarsyi : $i"
fi
ln -s /home/jvj/wallpaperperm/OuterWilds/O_SolarSyi.jpg /home/jvj/wallpaper/O_SolarSyi_$i.jpg
mkdir -p "/home/jvj/wallpaper/$(echo "$j" | rev | cut -d "/" -f 2- | rev)"
for i in $(seq $commun)
do
if [[ $1 == "-d" ]];then
echo "$j : $i"
fi
ln -sf "/home/jvj/wallpaperperm/$j" "/home/jvj/wallpaper/$(echo $j | cut -d "." -f 1)_$i"
done
done
if [[ $1 == "-d" ]];then
@@ -57,5 +73,9 @@ Rareté commun : $rare
nombre de commun : $nb_com
Rareté commun : $commun
Total : $Total
liste legendaire : ${listLeg[@]}
liste Rare : ${listrare[@]}
liste Commun : ${listcomm[@]}
—————————————————————————"
fi
fi