oups
This commit is contained in:
1 parent
9eb6226619
commit
06f5b28291
26 files changed
No files matched your search
Executable
+3
@@ -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
|
||||
Executable
+22
@@ -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/backlight/apple-panel-bl/subsystem/apple-panel-bl/max_brightness)
|
||||
if [ -n "$1" ]
|
||||
then
|
||||
augment=$1
|
||||
else
|
||||
augment=10
|
||||
fi
|
||||
next=$(expr $(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness) + $max '*' "$augment" '/' 100)
|
||||
if [ -z "$next" ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
if [ $next -gt $max ]
|
||||
then
|
||||
next=$max
|
||||
fi
|
||||
echo $next > /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness
|
||||
echo $(expr $next "*" 100 "/" $max)
|
||||
Executable
+22
@@ -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)
|
||||
Executable
+22
@@ -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/backlight/apple-panel-bl/max_brightness)
|
||||
if [ -n "$1" ]
|
||||
then
|
||||
dim=$1
|
||||
else
|
||||
dim=10
|
||||
fi
|
||||
next=$(expr $(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness) - $max '*' "$dim" '/' 100)
|
||||
if [ -z "$next" ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
if [ $next -lt 0 ]
|
||||
then
|
||||
next=0
|
||||
fi
|
||||
echo $next > /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness
|
||||
echo $(expr $next "*" 100 "/" $max)
|
||||
Executable
+22
@@ -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)
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo cpupower frequency-set --governor powersave
|
||||
sudo cpupower frequency-set --max 1.5GHz
|
||||
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu4/online
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu5/online
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu6/online
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu7/online
|
||||
|
||||
sudo rc-service custom-asus-numpad stop
|
||||
sudo rc-service bluetoothd stop
|
||||
sudo rc-service custom-rclone stop
|
||||
sudo rc-service connmand stop
|
||||
sudo rc-service iwd stop
|
||||
sudo rc-service dhcpcd stop
|
||||
|
||||
sudo killall pipewire pipewire-pulse wireplumber ssh-agent connman-vpnd waybar gammastep keepassxc
|
||||
|
||||
rfkill block all
|
||||
|
||||
# Launch a new bar
|
||||
exec waybar -c ~/.config/waybar/config_eco&
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo cpupower frequency-set --governor powersave
|
||||
sudo cpupower frequency-set --max 1.5GHz
|
||||
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu4/online
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu5/online
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu6/online
|
||||
echo 0 | sudo tee /sys/devices/system/cpu/cpu7/online
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Stop keepassXC
|
||||
keepassxc --lock
|
||||
killall keepassxc
|
||||
Stop gammastep
|
||||
killall gammastep
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Retourne le cwd de la fenetre qui a le focus
|
||||
|
||||
pid=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
|
||||
ppid=$(pgrep --newest --parent ${pid})
|
||||
readlink /proc/${ppid}/cwd || echo $HOME
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Wait until waybar is fully available (for tray)
|
||||
wait_waybar () {
|
||||
# Ask dbus to check if waybar is available
|
||||
while [[ -z $(dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep "fr.arouillard.waybar" ) ]]
|
||||
do
|
||||
sleep 0.5
|
||||
done
|
||||
}
|
||||
|
||||
# Per computer processus
|
||||
gammastep& # Blue light reducer
|
||||
bluetoothctl power off # power off bluetooth at startup
|
||||
|
||||
# Start other processus
|
||||
wait_waybar
|
||||
keepassxc&
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
|
||||
# Start sway
|
||||
dbus-run-session sway -Vd
|
||||
# dbus-launch
|
||||
#sway -Vd
|
||||
Executable
+21
@@ -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
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
path=$(pwd $1)
|
||||
path=$(echo $path"/"$1)
|
||||
|
||||
echo "alias $2=\"muvm -- '$path'\"" >> ~/.zshrc
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
protonhax init "/home/jvj/Games/SidMeiersCivilizationVI/Base/Binaries/Win64EOS/CivilizationVI.exe" $@
|
||||
:
|
||||
Executable
+81
@@ -0,0 +1,81 @@
|
||||
rm -r "/home/jvj/wallpaper/"
|
||||
mkdir -p "/home/jvj/wallpaper"
|
||||
|
||||
######################
|
||||
# #
|
||||
# Parametre #
|
||||
# #
|
||||
######################
|
||||
|
||||
listLeg=("OuterWilds/fabicdeleted.jpg")
|
||||
listrare=("minecraft/terralith-1.png")
|
||||
listcomm=("OuterWilds/NewSpaceTime.png" "OuterWilds/O_SolarSyi.jpg")
|
||||
|
||||
Total=100
|
||||
nb_leg=${#listLeg[@]}
|
||||
legendary=1
|
||||
nb_Rare=${#listrare[@]}
|
||||
rare=10
|
||||
nb_com=${#listcomm[@]}
|
||||
commun=$(( ( $Total - $legendary * $nb_leg - $rare * $nb_Rare) / $nb_com ))
|
||||
|
||||
######################
|
||||
# #
|
||||
# création symlink #
|
||||
# #
|
||||
######################
|
||||
|
||||
#Legendaire
|
||||
for j in "${listLeg[@]}"
|
||||
do
|
||||
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
|
||||
|
||||
#Rare
|
||||
for j in "${listrare[@]}"
|
||||
do
|
||||
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
|
||||
|
||||
#Commun
|
||||
for j in "${listcomm[@]}"
|
||||
do
|
||||
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
|
||||
echo "—————————————————————————
|
||||
nombre de legendaire : $nb_leg
|
||||
Rareté legendaire : $legendary
|
||||
nombre de commun : $nb_Rare
|
||||
Rareté commun : $rare
|
||||
nombre de commun : $nb_com
|
||||
Rareté commun : $commun
|
||||
Total : $Total
|
||||
|
||||
liste legendaire : ${listLeg[@]}
|
||||
liste Rare : ${listrare[@]}
|
||||
liste Commun : ${listcomm[@]}
|
||||
—————————————————————————"
|
||||
fi
|
||||
Reference in new issue
Block a user