From a9cb2e604cf73622699075842c2b7c10053afc4c Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 12 Sep 2022 22:55:26 +0200 Subject: [PATCH] sway binds, nvim lualine changes --- files/nvim/.config/nvim/lua/mappings.lua | 2 +- .../.config/nvim/lua/plugins/lualine-conf.lua | 20 +++++++++++++++++-- files/sway/.config/sway/config | 10 ++++++++++ files/zsh/.zshrc | 1 + 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/files/nvim/.config/nvim/lua/mappings.lua b/files/nvim/.config/nvim/lua/mappings.lua index af2e1ca..f4b53ed 100644 --- a/files/nvim/.config/nvim/lua/mappings.lua +++ b/files/nvim/.config/nvim/lua/mappings.lua @@ -23,7 +23,7 @@ telescope.setup({ } } }) -map("n", "", " Telescope find_files", default_opts) -- Show files +map("n", "", " Telescope find_files hidden=true", default_opts) -- Show files map("n", "", " Telescope live_grep", default_opts) -- Grep through current directory map("n", "", " Telescope keymaps", default_opts) -- Show all keys diff --git a/files/nvim/.config/nvim/lua/plugins/lualine-conf.lua b/files/nvim/.config/nvim/lua/plugins/lualine-conf.lua index f772e1f..3fe81ee 100644 --- a/files/nvim/.config/nvim/lua/plugins/lualine-conf.lua +++ b/files/nvim/.config/nvim/lua/plugins/lualine-conf.lua @@ -18,6 +18,23 @@ require('lualine').setup({ -- lualine comes with 'everforest' theme theme = 'everforest', }, + tabline = { + lualine_a = { + { + 'tabs', + mode = 2 + }, + }, + lualine_b = {}, + lualine_c = { + require('nvim-navic').get_location + }, + lualine_x = { + 'lsp_progress' + }, + lualine_y = {}, + lualine_z = {} + }, -- all sections from left to right sections = { lualine_a = { @@ -33,10 +50,9 @@ require('lualine').setup({ 'filename', path = 1, }, - require('nvim-navic').get_location + -- require('nvim-navic').get_location }, lualine_x = { - 'lsp_progress', { 'diagnostics', diagnostics_color = { diff --git a/files/sway/.config/sway/config b/files/sway/.config/sway/config index 1e005ec..1386d8e 100644 --- a/files/sway/.config/sway/config +++ b/files/sway/.config/sway/config @@ -238,6 +238,16 @@ bindswitch --reload --locked lid:off output $laptop enable for_window [app_id="evolution"] move container to workspace number $ws8 for_window [app_id="org.keepassxc.KeePassXC"] move container to workspace number $ws9 + # Open application desired for that window + # echo 'tmux a || tmux' > ~/.local/bin/tmux_detect.sh + bindsym $mod+Ctrl+1 exec alacritty --command bash tmux_detect.sh + bindsym $mod+Ctrl+2 exec firefox + bindsym $mod+Ctrl+3 exec discord + bindsym $mod+Ctrl+4 exec spotify + bindsym $mod+Ctrl+8 exec evolution + bindsym $mod+Ctrl+9 exec keepassxc + + # Status Bar bar { swaybar_command waybar diff --git a/files/zsh/.zshrc b/files/zsh/.zshrc index ae901ac..5225ae8 100644 --- a/files/zsh/.zshrc +++ b/files/zsh/.zshrc @@ -33,6 +33,7 @@ esac # ============================== Aliases alias c='clear' +alias t='tmux a || tmux' alias l='ls -lFh' #size,show type,human readable alias la='ls -lAFh' #long list,show almost all,show type,human readable