macros
This commit is contained in:
parent
f7f01cbf7b
commit
ec8785adbd
3 changed files with 14 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ alias grep="grep --color=auto"
|
||||||
alias dvtm="dvtm -m \"^w\""
|
alias dvtm="dvtm -m \"^w\""
|
||||||
alias tm="tmux -2 attach"
|
alias tm="tmux -2 attach"
|
||||||
alias ppjson="python -mjson.tool"
|
alias ppjson="python -mjson.tool"
|
||||||
|
alias miranda="ssh -D 7777 -Y barak@miranda.barakmich.com"
|
||||||
#alias tmux-pwn='tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t'
|
#alias tmux-pwn='tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t'
|
||||||
|
|
||||||
#Cosmetic/useful
|
#Cosmetic/useful
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ naughty.config.default_preset.font = "Inconsolata 14"
|
||||||
terminal = "run_terminal"
|
terminal = "run_terminal"
|
||||||
editor = os.getenv("EDITOR") or "vim"
|
editor = os.getenv("EDITOR") or "vim"
|
||||||
editor_cmd = terminal .. " -e " .. editor
|
editor_cmd = terminal .. " -e " .. editor
|
||||||
|
browser = "run_browser"
|
||||||
|
|
||||||
-- Default modkey.
|
-- Default modkey.
|
||||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||||
|
|
@ -343,6 +344,7 @@ globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
-- Standard program
|
-- Standard program
|
||||||
awful.key({ modkey, "Shift" }, "Return", function () awful.util.spawn(terminal) end),
|
awful.key({ modkey, "Shift" }, "Return", function () awful.util.spawn(terminal) end),
|
||||||
|
awful.key({ modkey, "Shift" }, ",", function () awful.util.spawn(browser) end),
|
||||||
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
||||||
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
||||||
|
|
||||||
|
|
|
||||||
11
bin/run_browser
Executable file
11
bin/run_browser
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -n "`which firefox`" ]; then
|
||||||
|
firefox
|
||||||
|
elif [ -n "`which iceweasel`" ]; then
|
||||||
|
iceweasel
|
||||||
|
elif [ -n "`which google-chrome`" ]; then
|
||||||
|
google-chrome
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue