From ddbb2ffef9f0fff4960dd2488ba169506242ebfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 25 Aug 2023 11:13:46 +0200 Subject: [PATCH] cycle through tabs --- awesome/keys.lua | 25 +++++++++++++++++++++++++ kitty/current-theme.conf | 5 +++-- kitty/kitty.conf | 14 ++++++++------ nvim/lazy-lock.json | 8 ++++---- 4 files changed, 40 insertions(+), 12 deletions(-) diff --git a/awesome/keys.lua b/awesome/keys.lua index c3f5181..26698f5 100644 --- a/awesome/keys.lua +++ b/awesome/keys.lua @@ -404,6 +404,31 @@ keys.globalkeys = gears.table.join( end, {description = "Switch to next tag", group = "client"} ), + awful.key({"Mod1"}, "Tab", -- Alt-Tab Cycle through clients + function() + local clients = {} + local found = false + local function focus_client(c) + awful.screen.focus(c.screen.index) + c.first_tag:view_only() + client.focus = c + c:raise() + end + for _, t in ipairs(root.tags()) do + for i, c in ipairs(t:clients()) do + if found then + focus_client(c) + return + elseif c == client.focus then + found = true + end + table.insert(clients, c) + end + end + focus_client(clients[1]) + end, + {description = "Switch to next tag", group = "client"} + ), awful.key({modkey}, "t", function() local first_empty = get_first_nonempty_tag() diff --git a/kitty/current-theme.conf b/kitty/current-theme.conf index 96ac1e9..04b4821 100644 --- a/kitty/current-theme.conf +++ b/kitty/current-theme.conf @@ -1,4 +1,4 @@ -background #001359 +background #000010 foreground #F8F8F2 cursor #bbbbbb selection_background #b4d5ff @@ -18,4 +18,5 @@ color6 #42a7cf color14 #50cdfe color7 #bbbbbb color15 #ffffff -selection_foreground #121212 +selection_foreground #121212 +background_opacity 0.3 diff --git a/kitty/kitty.conf b/kitty/kitty.conf index e523bcd..65764b4 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -3,9 +3,11 @@ include current-theme.conf # END_KITTY_THEME -font_family Source Code Pro -bold_font auto -italic_font auto -bold_italic_font auto -font_size 14.5 -cursor_shape block +font_family Source Code Pro +bold_font auto +italic_font auto +bold_italic_font auto +font_size 13 +cursor_shape block +cursor_beam_thickness 10 +scrollback_lines 100000 diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index ea87690..ad89741 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -14,13 +14,13 @@ "lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" }, "lush.nvim": { "branch": "main", "commit": "a8f0f7b9f837887f13a61d67b40ae26188fe4d62" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "e86a4c84ff35240639643ffed56ee1c4d55f538e" }, - "mason.nvim": { "branch": "main", "commit": "74eac861b013786bf231b204b4ba9a7d380f4bd9" }, - "neogit": { "branch": "master", "commit": "dd3618d4b64cfc1777c1f7c2249cf917b3502b36" }, + "mason.nvim": { "branch": "main", "commit": "b5bb138312dbd3f7729197ca659cbe5221d36a03" }, + "neogit": { "branch": "master", "commit": "b3c15c5dba0e76a3524029785d02fc897149259d" }, "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" }, "nvim-cmp": { "branch": "main", "commit": "51f1e11a89ec701221877532ee1a23557d291dd5" }, "nvim-lspconfig": { "branch": "master", "commit": "0d29cad8de3b2c654315203fc1fe12fde722a18a" }, "nvim-tree.lua": { "branch": "master", "commit": "59e65d88db177ad1e6a8cffaafd4738420ad20b6" }, - "nvim-treesitter": { "branch": "master", "commit": "f7bb866405530e863135596900781e73cbf6f4ed" }, + "nvim-treesitter": { "branch": "master", "commit": "add1864bbf2d3b8e789ec6b4715bb5a4073e3b60" }, "nvim-web-devicons": { "branch": "master", "commit": "cfc8824cc1db316a276b36517f093baccb8e799a" }, "plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" }, "supertab": { "branch": "master", "commit": "f0093ae12a9115498f887199809a6114659fc858" }, @@ -34,6 +34,6 @@ "vim-rooter": { "branch": "master", "commit": "4f52ca556a0b9e257bf920658714470ea0320b7a" }, "vim-vsnip": { "branch": "master", "commit": "7753ba9c10429c29d25abfd11b4c60b76718c438" }, "vim-vsnip-integ": { "branch": "master", "commit": "1914e72cf3de70df7f5dde476cd299aba2440aef" }, - "vimtex": { "branch": "master", "commit": "c58590009be0eff0c234527bb48fa1653afe41bd" }, + "vimtex": { "branch": "master", "commit": "e3d0bea39dbcb6e064db751b646c958342a3460f" }, "vimwiki": { "branch": "dev", "commit": "f0fe154ede6b11e3db9b058b930005a056a3d1c6" } } \ No newline at end of file