Compare commits

..

4 Commits

Author SHA1 Message Date
20d61473b6 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 16:35:37 +02:00
1f340cf612 BUG: Chromium ne se lance plus sous Xorg 2024-10-17 16:35:37 +02:00
96c45d9ba7 Polybar: adaptation du module de température et d'ethernet 2024-10-17 16:35:37 +02:00
a25bf962ff BIN: correction de random_wallpaper pour Xorg 2024-10-17 16:35:04 +02:00

View File

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