Working on Awesome WM.

This commit is contained in:
Derek Taylor 2022-07-04 19:03:53 -05:00
parent 04bbd30b76
commit fe8d0b3157
2 changed files with 41 additions and 67 deletions

View File

@ -133,8 +133,6 @@ means you only have to change the value here to make changes globally.
local modkey = "Mod4" local modkey = "Mod4"
local altkey = "Mod1" local altkey = "Mod1"
local ctrlkey = "Control" local ctrlkey = "Control"
-- personal variables
local terminal = "alacritty" local terminal = "alacritty"
local browser = "qutebrowser" local browser = "qutebrowser"
local editor = os.getenv("EDITOR") or "vim" local editor = os.getenv("EDITOR") or "vim"
@ -314,22 +312,18 @@ root.buttons(my_table.join(
* Keybindings * Keybindings
| Keybinding | Action | | Keybinding | Action |
|---------------------------+--------------------------------------------------------------------------| |-------------------------+-------------------------------------------------------|
| MODKEY + RETURN | opens terminal (alacritty is the terminal but can be easily changed) | | MODKEY + RETURN | opens terminal (alacritty, but can be easily changed) |
| MODKEY + SHIFT + RETURN | opens run launcher (dmenu is the run launcher but can be easily changed) | | MODKEY + SHIFT + RETURN | opens run launcher (dmenu, 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 + 1-9 | switch focus to workspace (1-9) |
| MODKEY + SHIFT + 1-9 | send focused window 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,k | switches focus between windows in the stack, |
| MODKEY + k | switches focus between windows in the stack, going up | | MODKEY + SHIFT + j,k | rotates the windows in the stack |
| MODKEY + h | switches focus between windows in the stack, going left | | MODKEY + SHIFT + h,l | Decrease/increase master width factor |
| MODKEY + l | switches focus between windows in the stack, going right | | ALT + h,j,k,l | switches focus between windows across all monitors |
| MODKEY + SHIFT + j | rotates the windows in the stack, going down |
| MODKEY + SHIFT + k | rotates the windows in the stack, going up |
| MODKEY + SHIFT + h | rotates the windows in the stack, going left |
| MODKEY + SHIFT + l | rotates the windows in the stack, going right |
| MODKEY + period | switch focus to next monitor | | MODKEY + period | switch focus to next monitor |
| MODKEY + comma | switch focus to prev monitor | | MODKEY + comma | switch focus to prev monitor |
@ -394,7 +388,7 @@ globalkeys = my_table.join(
awful.key({ modkey, altkey }, "r", function () awful.util.spawn( "dm-radio" ) end, awful.key({ modkey, altkey }, "r", function () awful.util.spawn( "dm-radio" ) end,
{description = "Listen to online radio" , group = "dmenu scripts" }), {description = "Listen to online radio" , group = "dmenu scripts" }),
awful.key({ modkey, altkey }, "s", function () awful.util.spawn( "dm-websearch" ) end, awful.key({ modkey, altkey }, "s", function () awful.util.spawn( "dm-websearch" ) end,
{description = "Seaarch various engines" , group = "dmenu scripts" }), {description = "Search various engines" , group = "dmenu scripts" }),
awful.key({ modkey, altkey }, "t", function () awful.util.spawn( "dm-translate" ) end, awful.key({ modkey, altkey }, "t", function () awful.util.spawn( "dm-translate" ) end,
{description = "Translate text" , group = "dmenu scripts" }), {description = "Translate text" , group = "dmenu scripts" }),
@ -490,7 +484,7 @@ globalkeys = my_table.join(
-- On the fly useless gaps change -- On the fly useless gaps change
awful.key({ altkey, ctrlkey }, "j", function () lain.util.useless_gaps_resize(1) end, awful.key({ altkey, ctrlkey }, "j", function () lain.util.useless_gaps_resize(1) end,
{description = "increment useless gaps", group = "tag"}), {description = "increment useless gaps", group = "tag"}),
awful.key({ altkey, ctrlkey }, "l", function () lain.util.useless_gaps_resize(-1) end, awful.key({ altkey, ctrlkey }, "k", function () lain.util.useless_gaps_resize(-1) end,
{description = "decrement useless gaps", group = "tag"}), {description = "decrement useless gaps", group = "tag"}),
-- Dynamic tagging -- Dynamic tagging
@ -586,15 +580,6 @@ globalkeys = my_table.join(
-- Copy clipboard to primary (gtk to terminals) -- Copy clipboard to primary (gtk to terminals)
awful.key({ modkey }, "v", function () awful.spawn.with_shell("xsel -b | xsel") end, awful.key({ modkey }, "v", function () awful.spawn.with_shell("xsel -b | xsel") end,
{description = "copy gtk to terminal", group = "hotkeys"}), {description = "copy gtk to terminal", group = "hotkeys"}),
-- Default
--[[ Menubar
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "super"})
--]]
awful.key({ altkey, "Shift" }, "x", awful.key({ altkey, "Shift" }, "x",
function () function ()
awful.prompt.run { awful.prompt.run {
@ -920,7 +905,7 @@ awful.spawn.with_shell("lxsession")
awful.spawn.with_shell("picom") awful.spawn.with_shell("picom")
awful.spawn.with_shell("nm-applet") awful.spawn.with_shell("nm-applet")
awful.spawn.with_shell("volumeicon") awful.spawn.with_shell("volumeicon")
awful.spawn.with_shell("sleep 2 && conky -c $HOME/.config/conky/xmonad/" .. "doom-one" .. "-01.conkyrc") awful.spawn.with_shell("sleep 2 && conky -c $HOME/.config/conky/awesome/" .. "doom-one" .. "-01.conkyrc")
awful.spawn.with_shell("/usr/bin/emacs --daemon") awful.spawn.with_shell("/usr/bin/emacs --daemon")
#+END_SRC #+END_SRC

View File

@ -67,8 +67,6 @@ beautiful.init(theme_path)
local modkey = "Mod4" local modkey = "Mod4"
local altkey = "Mod1" local altkey = "Mod1"
local ctrlkey = "Control" local ctrlkey = "Control"
-- personal variables
local terminal = "alacritty" local terminal = "alacritty"
local browser = "qutebrowser" local browser = "qutebrowser"
local editor = os.getenv("EDITOR") or "vim" local editor = os.getenv("EDITOR") or "vim"
@ -271,7 +269,7 @@ globalkeys = my_table.join(
awful.key({ modkey, altkey }, "r", function () awful.util.spawn( "dm-radio" ) end, awful.key({ modkey, altkey }, "r", function () awful.util.spawn( "dm-radio" ) end,
{description = "Listen to online radio" , group = "dmenu scripts" }), {description = "Listen to online radio" , group = "dmenu scripts" }),
awful.key({ modkey, altkey }, "s", function () awful.util.spawn( "dm-websearch" ) end, awful.key({ modkey, altkey }, "s", function () awful.util.spawn( "dm-websearch" ) end,
{description = "Seaarch various engines" , group = "dmenu scripts" }), {description = "Search various engines" , group = "dmenu scripts" }),
awful.key({ modkey, altkey }, "t", function () awful.util.spawn( "dm-translate" ) end, awful.key({ modkey, altkey }, "t", function () awful.util.spawn( "dm-translate" ) end,
{description = "Translate text" , group = "dmenu scripts" }), {description = "Translate text" , group = "dmenu scripts" }),
@ -367,7 +365,7 @@ globalkeys = my_table.join(
-- On the fly useless gaps change -- On the fly useless gaps change
awful.key({ altkey, ctrlkey }, "j", function () lain.util.useless_gaps_resize(1) end, awful.key({ altkey, ctrlkey }, "j", function () lain.util.useless_gaps_resize(1) end,
{description = "increment useless gaps", group = "tag"}), {description = "increment useless gaps", group = "tag"}),
awful.key({ altkey, ctrlkey }, "l", function () lain.util.useless_gaps_resize(-1) end, awful.key({ altkey, ctrlkey }, "k", function () lain.util.useless_gaps_resize(-1) end,
{description = "decrement useless gaps", group = "tag"}), {description = "decrement useless gaps", group = "tag"}),
-- Dynamic tagging -- Dynamic tagging
@ -463,15 +461,6 @@ globalkeys = my_table.join(
-- Copy clipboard to primary (gtk to terminals) -- Copy clipboard to primary (gtk to terminals)
awful.key({ modkey }, "v", function () awful.spawn.with_shell("xsel -b | xsel") end, awful.key({ modkey }, "v", function () awful.spawn.with_shell("xsel -b | xsel") end,
{description = "copy gtk to terminal", group = "hotkeys"}), {description = "copy gtk to terminal", group = "hotkeys"}),
-- Default
--[[ Menubar
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "super"})
--]]
awful.key({ altkey, "Shift" }, "x", awful.key({ altkey, "Shift" }, "x",
function () function ()
awful.prompt.run { awful.prompt.run {
@ -783,7 +772,7 @@ awful.spawn.with_shell("lxsession")
awful.spawn.with_shell("picom") awful.spawn.with_shell("picom")
awful.spawn.with_shell("nm-applet") awful.spawn.with_shell("nm-applet")
awful.spawn.with_shell("volumeicon") awful.spawn.with_shell("volumeicon")
awful.spawn.with_shell("sleep 2 && conky -c $HOME/.config/conky/xmonad/" .. "doom-one" .. "-01.conkyrc") awful.spawn.with_shell("sleep 2 && conky -c $HOME/.config/conky/awesome/" .. "doom-one" .. "-01.conkyrc")
awful.spawn.with_shell("/usr/bin/emacs --daemon") awful.spawn.with_shell("/usr/bin/emacs --daemon")
awful.spawn.with_shell("xargs xwallpaper --stretch < ~/.cache/wall") awful.spawn.with_shell("xargs xwallpaper --stretch < ~/.cache/wall")