During the day, if you use so much program like Emacs and others:) You have to use alt-tab combination so many times. If you use more workspaces thats really big problem and it process takes a lot time. So that reason I wrote small script that bring Emacs to use so quickly.
Its a quite easy to using that on system
1 |
sudo apt-get install wmctrl |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/bash #if Emacs is running focus Emacs #else run emacs if [ $(wmctrl -l | grep XXX--Emacs--XXX | awk '{ print $4 }') == XXX--Emacs--XXX ]; then #you should put this line to your init.el or .emacs file #(setq frame-title-format "XXX--Emacs--XXX") wmctrl -a XXX--Emacs--XXX else #directory of emacs /usr/bin/emacs fi |
Add this line to you .emacs or init.el file
1 |
(setq frame-title-format "XXX--Emacs--XXX") |
Then just add your own shortcut to system than you can reach Emacs easily
http://xahlee.info/linux/linux_add_keyboard_shortcuts_to_switch_to_app.html