Rollback sur i3 part 2

This commit is contained in:
Breizh 2022-02-26 22:43:20 +01:00
parent ae1a585935
commit c2c243e707
4 changed files with 18 additions and 13 deletions

View file

@ -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

View file

@ -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" ]]

View file

@ -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"

View file

@ -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