shortcut keys - How to make crtl+alt+T to take you to a specific directory? - Ask Ubuntu


it takes me default /home/username, have of things in desktop directory.. how change it? thinking of making script like:

gnome-terminal --working-directory=~/desktop  

and "associate" keyboard short-cut if possible, above command doesn't work me (it opens terminal in /home/username). i've read this question's first answer don't how should repair bug (i wanted ask elaboration, haven't enough reputation...) . , don't want lose "open in terminal" option when right clicking, adding cd ~/desktop in ~/.bashrc won't work me....

here's possibly want. works me perfectly

first need install (other similar programs available too) xbindkeys

sudo apt-get install xbindkeys

then create default configuration file with

xbindkeys --defaults

(prints default configuration file)

so create configuration files default values run

xbindkeys --default > $home/.xbindkeysrc

using ctrl+alt+t not recommended in case, since in use. find unique key combination use. chose ctrl+shift + aring

you may want use following command see exact names of keys used

xbindkeys -k

after running command, need hit key combination. see output similar this

m:0x5 + c:34   control+shift + aring 

then edit configuration file created editor of choice

vim .xbindkeysrc

you see lines not commented out are

"xbindkeys_show"   control+shift + q 

that's 1 existing key combination

add following lines below above mentioned lines

"gnome-terminal --working-directory=/home/$user/desktop"    control+shift + aring 

(if used different keys, add instead of control+shift + aring)

the file around area should looking this

# examples of commands:  "xbindkeys_show"    control+shift + q  "gnome-terminal --working-directory=/home/$user/desktop"    control+shift + aring  # set directly keycode (here control + f keyboard) #"xterm" #  c:41 + m:0x4 

save file. after saving, need run following command activate key shortcuts session

xbindkeys 

now combination set should able open gnome-terminal desktop directory

note! using xbindkeys explained , in more detail here

how can change keys on keyboard do? (how can create custom keyboard commands/shortcuts?)

see seth's excellent answer on that


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User