From d9e1f50d1e24c3a6d9d10983a76bd41c6d6bc83b Mon Sep 17 00:00:00 2001 From: le-foucheur Date: Sat, 21 Sep 2024 16:29:21 +0200 Subject: [PATCH] update --- .zshrc | 9 +++----- script/init-sway | 6 ++++++ script/wall.sh | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 6 deletions(-) create mode 100755 script/wall.sh diff --git a/.zshrc b/.zshrc index 6d4b107..3bff9d5 100644 --- a/.zshrc +++ b/.zshrc @@ -96,15 +96,12 @@ fi alias deezer="deezer-enhanced --enable-features=UseOzonePlatform --ozone-platform=wayland" alias fastfetch="fastfetch -l arch" +alias circuit="circuitjs1-electron" alias gccsafe='gcc -g -Wall -Wextra -std=c99 -fsanitize=address,undefined' +alias fastfetch="fastfetch -l asahi && fastfetch -l fedora && fastfetch -l bedrock && fastfetch -l arch" source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme -#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' + # BEGIN opam configuration # This is useful if you're using opam as it adds: diff --git a/script/init-sway b/script/init-sway index cafb383..f8d2007 100644 --- a/script/init-sway +++ b/script/init-sway @@ -6,3 +6,9 @@ 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' \ No newline at end of file diff --git a/script/wall.sh b/script/wall.sh new file mode 100755 index 0000000..34465a1 --- /dev/null +++ b/script/wall.sh @@ -0,0 +1,56 @@ +rm -r /home/jvj/wallpaper/ +mkdir /home/jvj/wallpaper + +###################### +# # +# Rarity # +# # +###################### + +nb_leg=1 +legendary=1 +nb_com=2 +commun=$(( ( 100 - $legendary * $nb_leg) / $nb_com )) + +###################### +# # +# Outer Wilds # +# # +###################### + +#you destroy the fabirc of spacetime + +for i in $(seq $legendary) +do + if [[ $1 == "-d" ]];then + echo "print OuterWilds - fabicdeleted : $i" + fi + cp /home/jvj/wallpaperperm/OuterWilds/fabicdeleted.jpg /home/jvj/wallpaper/fabicdeleted_$i.jpg +done + +#New space time +for i in $(seq $commun) +do + if [[ $1 == "-d" ]];then + echo "print OuterWilds - NewSpaceTime : $i" + fi + cp /home/jvj/wallpaperperm/OuterWilds/NewSpaceTime.png /home/jvj/wallpaper/NewSpaceTime_$i.png +done + +#Solar system +for i in $(seq $commun) +do + if [[ $1 == "-d" ]];then + echo "print OuterWilds - Solarsyi : $i" + fi + cp /home/jvj/wallpaperperm/OuterWilds/O_SolarSyi.jpg /home/jvj/wallpaper/O_SolarSyi_$i.jpg +done + +if [[ $1 == "-d" ]];then + echo "————————————————————————— +nombre de legendaire : $nb_leg +Rareté legendaire : $legendary +nombre de commun : $nb_com +Rareté commun : $commun +—————————————————————————" +fi \ No newline at end of file