Peter's zsh configuration files
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

wmctrl.zsh 473B

1234567891011121314
  1. ################################################################################
  2. wmctrl_activate_emacs () {
  3. win_id=$(wmctrl -l |awk '$4 ~ /emacs/ && $2 == 0 {print $1}'|head -1)
  4. if [[ -n $win_id ]]; then
  5. wmctrl -ia $win_id
  6. fi
  7. }
  8. ################################################################################
  9. # Activates the biggest Conkeror window.
  10. wmctrl_activate_conkeror () {
  11. wmctrl -ia $(wmctrl -lG|grep Conkeror|sort -nk 5|tail -1|awk '{print $1}')
  12. }