diff --git a/.config/i3/config b/.config/i3/config index 265bcc0..e73a0c7 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -354,8 +354,8 @@ bindsym $mod+9 exec --no-startup-id xscreensaver-command -activate ## adjustment of i3bar battery reading (only run at the very first login): #exec --no-startup-id /usr/bin/adjust_i3statusconf #exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc1" -exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc2" +#exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc1" +#exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc2" exec_always --no-startup-id setcursor exec claws-mail --online exec --no-startup-id urxvtc -name newsboat -e newsboat diff --git a/.i3blocks/bandwidth b/.i3blocks/bandwidth index 4500961..fc454d2 100755 --- a/.i3blocks/bandwidth +++ b/.i3blocks/bandwidth @@ -3,10 +3,10 @@ runtime="${XDG_RUNTIME_DIR}/i3blocks" [[ ! -d "$runtime" ]] && mkdir -p "$runtime" -if [[ "$button" -gt 0 ]] -then - swaymsg -q -- exec nm-connection-editor -fi +#if [[ "$button" -gt 0 ]] +#then +# swaymsg -q -- exec nm-connection-editor +#fi # Interface à utiliser (sinon, celle ayant la route par défaut) if [[ -n "$instance" ]] diff --git a/.i3blocks/bepo b/.i3blocks/bepo index d049150..a1415b2 100755 --- a/.i3blocks/bepo +++ b/.i3blocks/bepo @@ -5,10 +5,15 @@ runtime="${XDG_RUNTIME_DIR}/i3blocks" [[ ! -f "$runtime/keyboard" ]] && [[ -z "$button" ]] && button=1 +#case $button in +# 1) swaymsg input "type:keyboard" xkb_variant bepo_afnor; echo "bépo" > "$runtime/keyboard";; +# 2) swaymsg input "type:keyboard" xkb_variant oss; echo "oss " > "$runtime/keyboard";; +# 3) swaymsg input "type:keyboard" xkb_variant us; echo "qwer" > "$runtime/keyboard";; +#esac case $button in - 1) swaymsg input "type:keyboard" xkb_variant bepo_afnor; echo "bépo" > "$runtime/keyboard";; - 2) swaymsg input "type:keyboard" xkb_variant oss; echo "oss " > "$runtime/keyboard";; - 3) swaymsg input "type:keyboard" xkb_variant us; echo "qwer" > "$runtime/keyboard";; + 1) setxkbmap fr bepo_afnor; echo "bépo" > "$runtime/keyboard";; + 2) setxkbmap fr oss; echo "oss " > "$runtime/keyboard";; + 3) setxkbmap fr us; echo "qwer" > "$runtime/keyboard";; esac } &>/dev/null cat "$runtime/keyboard" diff --git a/.i3blocks/internet b/.i3blocks/internet index 4d92306..6d5ec40 100755 --- a/.i3blocks/internet +++ b/.i3blocks/internet @@ -4,7 +4,7 @@ color="" if [[ "$button" -gt 0 ]] then - swaymsg -q -- exec nm-connection-editor + i3-msg -q -- exec nm-connection-editor fi if ! nmcli dev | grep " connecté" &>/dev/null @@ -12,7 +12,7 @@ then color="#747369" if [ ! -f /dev/shm/claws_offline ] then - #swaymsg -q -- exec claws-mail --offline + #i3-msg -q -- exec claws-mail --offline touch /dev/shm/claws_offline fi elif ping -c 1 1.1.1.1 -W 1 &>/dev/null || ping -c 1 8.8.8.8 -W 1 &>/dev/null @@ -20,14 +20,14 @@ then color="#99CC99" if [ -f /dev/shm/claws_offline ] then - swaymsg -q -- exec claws-mail --online + i3-msg -q -- exec claws-mail --online rm /dev/shm/claws_offline fi else color="#F2777A" if [ ! -f /dev/shm/claws_offline ] then - #swaymsg -q -- exec claws-mail --offline + #i3-msg -q -- exec claws-mail --offline touch /dev/shm/claws_offline color="#FFCC66" fi