mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 03:50:24 +10:00
Updating README.
This commit is contained in:
@@ -18,21 +18,28 @@ Awesome is a highly configurable, next generation framework window manager for X
|
|||||||
|
|
||||||
# My Keybindings
|
# My Keybindings
|
||||||
|
|
||||||
The MODKEY is set to the Super key (aka the Windows key).
|
The MODKEY is set to the Super key (aka the Windows key). I try to keep the
|
||||||
|
keybindings consistent with all of my window managers.
|
||||||
|
|
||||||
| Keybinding | Action |
|
| Keybinding | Action |
|
||||||
| :--- | :--- |
|
| :--- | :--- |
|
||||||
| `ALT + CRTL + Enter` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
| `MODKEY + RETURN` | opens terminal (alacritty is the terminal but can be easily changed) |
|
||||||
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
| `MODKEY + SHIFT + RETURN` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + r` | restarts awesome |
|
| `MODKEY + SHIFT + r` | restarts awesome |
|
||||||
| `MODKEY + SHIFT + q` | quits awesome |
|
| `MODKEY + SHIFT + q` | quits awesome |
|
||||||
|
| `MODKEY + 1-9` | switch focus to workspace (1-9) |
|
||||||
|
| `MODKEY + SHIFT + 1-9` | send focused window to workspace (1-9) |
|
||||||
| `MODKEY + j` | switches focus between windows in the stack, going down |
|
| `MODKEY + j` | switches focus between windows in the stack, going down |
|
||||||
| `MODKEY + k` | switches focus between windows in the stack, going up |
|
| `MODKEY + k` | switches focus between windows in the stack, going up |
|
||||||
|
| `MODKEY + h` | switches focus between windows in the stack, going left |
|
||||||
|
| `MODKEY + l` | switches focus between windows in the stack, going right |
|
||||||
| `MODKEY + SHIFT + j` | rotates the windows in the stack, going down|
|
| `MODKEY + SHIFT + j` | rotates the windows in the stack, going down|
|
||||||
| `MODKEY + SHIFT + k` | rotates the windows in the stack, going up |
|
| `MODKEY + SHIFT + k` | rotates the windows in the stack, going up |
|
||||||
| `MODKEY + 1-9` | switch focus to workspace (1-9) |
|
| `MODKEY + SHIFT + h` | rotates the windows in the stack, going left|
|
||||||
| `MODKEY + SHIFT + 1-9` | sends focused window to workspace (1-9) |
|
| `MODKEY + SHIFT + l` | rotates the windows in the stack, going right |
|
||||||
|
| `MODKEY + period` | switch focus to next monitor |
|
||||||
|
| `MODKEY + comma` | switch focus to prev monitor |
|
||||||
|
|
||||||
## Getting Help With Awesome
|
## Getting Help With Awesome
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
|
|||||||
if awesome.startup_errors then
|
if awesome.startup_errors then
|
||||||
naughty.notify({ preset = naughty.config.presets.critical,
|
naughty.notify({ preset = naughty.config.presets.critical,
|
||||||
title = "Oops, there were errors during startup!",
|
title = "Oops, there were errors during startup!",
|
||||||
text = awesome.startup_errors })((
|
text = awesome.startup_errors })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Handle runtime errors after startup
|
-- Handle runtime errors after startup
|
||||||
@@ -106,11 +106,11 @@ local modkey1 = "Control"
|
|||||||
local browser = "firefox"
|
local browser = "firefox"
|
||||||
local editor = os.getenv("EDITOR") or "vim"
|
local editor = os.getenv("EDITOR") or "vim"
|
||||||
local editorgui = "geany"
|
local editorgui = "geany"
|
||||||
local filemanager = "pcmanfm"
|
local filemanager = "thunar"
|
||||||
local mailclient = "geary"
|
local mailclient = "geary"
|
||||||
local mediaplayer = "vlc"
|
local mediaplayer = "vlc"
|
||||||
local scrlocker = "slimlock"
|
local scrlocker = "slimlock"
|
||||||
local terminal = "st"
|
local terminal = "alacritty"
|
||||||
local virtualmachine = "virtualbox"
|
local virtualmachine = "virtualbox"
|
||||||
|
|
||||||
-- awesome variables
|
-- awesome variables
|
||||||
@@ -118,7 +118,7 @@ awful.util.terminal = terminal
|
|||||||
--awful.util.tagnames = { " ", " ", " ", " ", " ", " ", " ", " ", " ", " " }
|
--awful.util.tagnames = { " ", " ", " ", " ", " ", " ", " ", " ", " ", " " }
|
||||||
--awful.util.tagnames = { "⠐", "⠡", "⠲", "⠵", "⠻", "⠿" }
|
--awful.util.tagnames = { "⠐", "⠡", "⠲", "⠵", "⠻", "⠿" }
|
||||||
--awful.util.tagnames = { "⌘", "♐", "⌥", "ℵ" }
|
--awful.util.tagnames = { "⌘", "♐", "⌥", "ℵ" }
|
||||||
awful.util.tagnames = { " DEV ", " WWW ", " SYS ", " DOC ", " VBOX ", " CHAT ", " MEDIA ", " GFX " }
|
awful.util.tagnames = { " DEV ", " WWW ", " SYS ", " DOC ", " VBOX ", " CHAT ", " MUS ", " VID ", " GFX " }
|
||||||
-- Use this : https://fontawesome.com/cheatsheet
|
-- Use this : https://fontawesome.com/cheatsheet
|
||||||
--awful.util.tagnames = { "", "", "", "", "" }
|
--awful.util.tagnames = { "", "", "", "", "" }
|
||||||
awful.layout.suit.tile.left.mirror = true
|
awful.layout.suit.tile.left.mirror = true
|
||||||
@@ -267,7 +267,7 @@ globalkeys = my_table.join(
|
|||||||
|
|
||||||
-- {{{ Personal keybindings
|
-- {{{ Personal keybindings
|
||||||
-- dmenu
|
-- dmenu
|
||||||
awful.key({ altkey, "Control" }, "Return",
|
awful.key({ modkey, "Shift" }, "Return",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(string.format("dmenu_run -i -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -fn 'Mononoki Nerd Font:bold:pixelsize=14'",
|
awful.spawn(string.format("dmenu_run -i -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -fn 'Mononoki Nerd Font:bold:pixelsize=14'",
|
||||||
beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus))
|
beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus))
|
||||||
@@ -436,9 +436,9 @@ globalkeys = my_table.join(
|
|||||||
{description = "swap with next client by index", group = "client"}),
|
{description = "swap with next client by index", group = "client"}),
|
||||||
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
|
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
|
||||||
{description = "swap with previous client by index", group = "client"}),
|
{description = "swap with previous client by index", group = "client"}),
|
||||||
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
|
awful.key({ modkey }, ".", function () awful.screen.focus_relative( 1) end,
|
||||||
{description = "focus the next screen", group = "screen"}),
|
{description = "focus the next screen", group = "screen"}),
|
||||||
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
|
awful.key({ modkey }, ",", function () awful.screen.focus_relative(-1) end,
|
||||||
{description = "focus the previous screen", group = "screen"}),
|
{description = "focus the previous screen", group = "screen"}),
|
||||||
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
|
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
|
||||||
{description = "jump to urgent client", group = "client"}),
|
{description = "jump to urgent client", group = "client"}),
|
||||||
|
|||||||
@@ -29,12 +29,14 @@ keybindings consistent with all of my window managers.
|
|||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + r` | restarts qtile |
|
| `MODKEY + SHIFT + r` | restarts qtile |
|
||||||
| `MODKEY + SHIFT + q` | quits qtile |
|
| `MODKEY + SHIFT + q` | quits qtile |
|
||||||
|
| `MODKEY + 1-9` | switch focus to workspace (1-9) |
|
||||||
|
| `MODKEY + SHIFT + 1-9` | send focused window to workspace (1-9) |
|
||||||
| `MODKEY + j` | lazy layout up (switches focus between windows in the stack) |
|
| `MODKEY + j` | lazy layout up (switches focus between windows in the stack) |
|
||||||
| `MODKEY + k` | lazy layout down (switches focus between windows in the stack) |
|
| `MODKEY + k` | lazy layout down (switches focus between windows in the stack) |
|
||||||
| `MODKEY + SHIFT + j` | lazy layout shuffle_up (rotates the windows in the stack) |
|
| `MODKEY + SHIFT + j` | lazy layout shuffle_up (rotates the windows in the stack) |
|
||||||
| `MODKEY + SHIFT + k` | lazy layout shuffle_down (rotates the windows in the stack) |
|
| `MODKEY + SHIFT + k` | lazy layout shuffle_down (rotates the windows in the stack) |
|
||||||
| `MODKEY + h` | Shrink size of window (MondadTall layout) |
|
| `MODKEY + h` | expand size of window (MondadTall layout) |
|
||||||
| `MODKEY + l` | Shrink size of window (MondadTall layout) |
|
| `MODKEY + l` | shrink size of window (MondadTall layout) |
|
||||||
| `MODKEY + w` | switch focus to monitor 1 |
|
| `MODKEY + w` | switch focus to monitor 1 |
|
||||||
| `MODKEY + e` | switch focus to monitor 2 |
|
| `MODKEY + e` | switch focus to monitor 2 |
|
||||||
| `MODKEY + r` | switch focus to monitor 3 |
|
| `MODKEY + r` | switch focus to monitor 3 |
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ keybindings consistent with all of my window managers.
|
|||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + r` | restarts xmonad |
|
| `MODKEY + SHIFT + r` | restarts xmonad |
|
||||||
| `MODKEY + SHIFT + q` | quits xmonad |
|
| `MODKEY + SHIFT + q` | quits xmonad |
|
||||||
|
| `MODKEY + 1-9` | switch focus to workspace (1-9) |
|
||||||
|
| `MODKEY + SHIFT + 1-9` | send focused window to workspace (1-9) |
|
||||||
| `MODKEY + j` | windows focus down (switches focus between windows in the stack) |
|
| `MODKEY + j` | windows focus down (switches focus between windows in the stack) |
|
||||||
| `MODKEY + k` | windows focus up (switches focus between windows in the stack) |
|
| `MODKEY + k` | windows focus up (switches focus between windows in the stack) |
|
||||||
| `MODKEY + SHIFT + j` | windows swap down (swap windows in the stack) |
|
| `MODKEY + SHIFT + j` | windows swap down (swap windows in the stack) |
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ keybindings consistent with all of my window managers.
|
|||||||
| `MODKEY + SHIFT + RETURN` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
| `MODKEY + SHIFT + RETURN` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + r` | restarts dwm |
|
| `MODKEY + SHIFT + r` | restarts dwm |
|
||||||
| `MODKEY + SHIFT + q` | quits ddwm |
|
| `MODKEY + SHIFT + q` | quits dwm |
|
||||||
|
| `MODKEY + 1-9` | switch focus to workspace (1-9) |
|
||||||
|
| `MODKEY + SHIFT + 1-9` | send focused window to workspace (1-9) |
|
||||||
| `MODKEY + j` | focus stack +1 (switches focus between windows in the stack) |
|
| `MODKEY + j` | focus stack +1 (switches focus between windows in the stack) |
|
||||||
| `MODKEY + k` | focus stack -1 (switches focus between windows in the stack) |
|
| `MODKEY + k` | focus stack -1 (switches focus between windows in the stack) |
|
||||||
| `MODKEY + SHIFT + j` | rotate stack +1 (rotates the windows in the stack) |
|
| `MODKEY + SHIFT + j` | rotate stack +1 (rotates the windows in the stack) |
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ static const Layout layouts[] = {
|
|||||||
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
|
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
|
||||||
#define CMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#define CMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
|
|
||||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user