Peter's zsh configuration files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }