Pushing before pulling.

This commit is contained in:
Derek Taylor
2022-07-09 10:58:42 -05:00
parent 63c984de13
commit ab8f2b18da
5 changed files with 46 additions and 79 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,7 +312,7 @@ 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 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 + 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 |
@@ -322,14 +320,10 @@ root.buttons(my_table.join(
| 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 {

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 {

View File

@@ -1,7 +0,0 @@
#!/bin/bash
if pgrep -x "compton" > /dev/null
then
killall compton
else
compton -b --config ~/.config/awesome/compton.conf
fi

View File

@@ -1,14 +1,14 @@
[xin_1] [xin_1]
file=/home/dt/wallpapers/0299.jpg file=/home/dt/wallpapers/0004.jpg
mode=0 mode=0
bgcolor=#000000 bgcolor=#000000
[xin_0] [xin_0]
file=/home/dt/wallpapers/0299.jpg file=/home/dt/wallpapers/0004.jpg
mode=0 mode=0
bgcolor=#000000 bgcolor=#000000
[xin_2] [xin_2]
file=/home/dt/wallpapers/0254.jpg file=/home/dt/wallpapers/0004.jpg
mode=0 mode=0
bgcolor=#000000 bgcolor=#000000

View File

@@ -1,8 +1,8 @@
[geometry] [geometry]
posx=4808 posx=1920
posy=40 posy=20
sizex=932 sizex=1920
sizey=1020 sizey=1060
[nitrogen] [nitrogen]
view=icon view=icon