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
4 changed files with 10 additions and 8 deletions

View File

@ -1,3 +1,3 @@
# Permet à Chromium de se lancer dans Wayland # Permet à Chromium de se lancer dans Wayland
--enable-features=UseOzonePlatform #--enable-features=UseOzonePlatform
--ozone-platform=wayland #--ozone-platform=wayland

View File

@ -426,5 +426,5 @@ macos_option_as_alt yes
x11_bell_volume 80 x11_bell_volume 80
# Ajout du thème Solarized Light sur https://github.com/dexpota/kitty-themes # Ajout du thème Solarized Light sur https://github.com/dexpota/kitty-themes
include ./dark.conf include ./light.conf

View File

@ -217,7 +217,7 @@ label = %percentage_used%%
[module/wlan] [module/wlan]
type = internal/network type = internal/network
interface = wlp3s0 interface = wlan0
interval = 3.0 interval = 3.0
;format-connected = <ramp-signal> <label-connected> ;format-connected = <ramp-signal> <label-connected>
@ -240,7 +240,7 @@ ramp-signal-foreground = ${colors.foreground-alt}
[module/eth] [module/eth]
type = internal/network type = internal/network
interface = eno1 interface = enp3s0
interval = 3.0 interval = 3.0
format-connected-underline = #55aa55 format-connected-underline = #55aa55
@ -346,7 +346,8 @@ warn-temperature = 65
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
; to find path to desired file ; to find path to desired file
; Default reverts to thermal zone setting ; Default reverts to thermal zone setting
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input hwmon-path = /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.0/hwmon/hwmon2/temp1_input
#hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
;format = <ramp> <label> ;format = <ramp> <label>
format = <label> format = <label>

View File

@ -7,6 +7,7 @@
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
@ -15,7 +16,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
wayland=1 is_wayland=true
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
@ -48,7 +49,7 @@ while true; do
# Change background # Change background
file="${array_files["$NUMBER"]}" file="${array_files["$NUMBER"]}"
if [[ -n wayland ]]; then if "${is_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"