Bloques de código útiles para i3.
~/.config/i3/config
## Alternative exit way (shared by gnuKS)
mode "exit: [l]ogout, [r]eboot, [s]hutdown, loc[k]" {
bindsym l exec i3-msg exit
bindsym r exec systemctl reboot
bindsym s exec systemctl poweroff
bindsym Escape mode "default"
bindsym Return mode "default"
bindsym k exec "i3lock -i /home/c/Imágenes/lockwall.png"; mode "default"
}
bindsym $mod+Shift+e mode "exit: [l]ogout, [r]eboot, [s]hutdown, loc[k]"
# floting programs
## note: to know program's class: open it then execute xprop in terminal,
## click program window and find WM_CLASS(STRING) in output
for_window [class="Blueman-manager"] floating enable
for_window [class="Mousepad"] floating enable
bar {
status_command ~/.config/i3status/bar.sh
# mode dock
position top
}
~/.config/i3status/bar.sh
#!/bin/sh
# shell script to prepend i3status with more stuff
i3status | while :
do
read line
ventana=$(xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) WM_NAME | sed -e 's/.*"\(.*\)".*//';)
e=$(echo -e "\e[31mThis text is red\e[0m")
echo "$ventana \t \t \t \t \t \t \t \t \t $line" || exit 1
done
do