Compare commits

..

3 Commits

Author SHA1 Message Date
5cbe49bb56 feat(i3): Add kitty and polybar changes about:
* wlan0 (previously wlp3s0) because of change from netctl to iwd
* Kitty is now in Light Solarized
2024-10-17 11:49:21 +02:00
8aa9514159 BUG: Chromium ne se lance plus sous Xorg 2024-10-17 11:49:21 +02:00
e1c288d9eb Polybar: adaptation du module de température et d'ethernet 2024-10-17 11:49:21 +02:00

View File

@ -7,7 +7,6 @@
directory="$HOME/wallpapers" directory="$HOME/wallpapers"
minutes=15 minutes=15
PROGRAM=`which feh` PROGRAM=`which feh`
is_wayland=false
# Some tests # Some tests
if [[ "${XDG_SESSION_TYPE}" == "wayland" ]]; then if [[ "${XDG_SESSION_TYPE}" == "wayland" ]]; then
@ -16,7 +15,7 @@ if [[ "${XDG_SESSION_TYPE}" == "wayland" ]]; then
echo "This script needs the swaymsg program." echo "This script needs the swaymsg program."
exit 1 exit 1
fi fi
is_wayland=true wayland=1
elif [ -z "${PROGRAM}" ]; then elif [ -z "${PROGRAM}" ]; then
echo "This script needs the feh program. Install it." echo "This script needs the feh program. Install it."
exit 1 exit 1
@ -49,7 +48,7 @@ while true; do
# Change background # Change background
file="${array_files["$NUMBER"]}" file="${array_files["$NUMBER"]}"
if "${is_wayland}"; then if [[ -n wayland ]]; then
$PROGRAM output "*" bg "$directory/$file" fill $PROGRAM output "*" bg "$directory/$file" fill
else else
feh --bg-fill "$directory/$file" feh --bg-fill "$directory/$file"