diff --git a/awesome.1.txt b/awesome.1.txt index 50ef73f6..9fe80fc7 100644 --- a/awesome.1.txt +++ b/awesome.1.txt @@ -75,8 +75,14 @@ DEFAULTS MOUSE BINDINGS DEFAULTS KEY BINDINGS --------------------- +*Mod4 + F1*:: + Spawn awesome-menu to read manual pages. +*Mod4 + F2*:: + Spawn awesome-menu to execute a program. +*Mod4 + F3*:: + Spawn awesome-menu to ssh to an host. *Mod4 + Return*:: - Spawn xterm. + Spawn terminal emulator. *Mod4 + space*:: Switch to next layout. *Mod4 \+ Shift \+ space*:: diff --git a/awesomerc.in b/awesomerc.in index fa490b41..3fdb499b 100644 --- a/awesomerc.in +++ b/awesomerc.in @@ -165,6 +165,27 @@ mouse keys { + key + { + modkey = {"Mod4"} + key = "F1" + command = "spawn" + arg = "for i in /usr/share/man/man?;do ls $i; done | cut -d. -f1 | awesome-menu -e 'xterm -e man ' 'See manual page for:'" + } + key + { + modkey = {"Mod4"} + key = "F2" + command = "spawn" + arg = "ls /usr/bin | awesome-menu -e 'exec ' Execute:" + } + key + { + modkey = {"Mod4"} + key = "F3" + command = "spawn" + arg = "cut -d' ' -f1 ~/.ssh/known_hosts | cut -d, -f1 | awesome-menu -e 'xterm -e ssh ' 'ssh to:'" + } key { modkey = {"Mod4"}