summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.vim12
-rw-r--r--.config/waybar/config10
2 files changed, 20 insertions, 2 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index d6745cc..f246e68 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -9,6 +9,9 @@ Plug 'gruvbox-community/gruvbox'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
+Plug 'nvim-lua/plenary.nvim'
+Plug 'nvim-telescope/telescope.nvim'
+
call plug#end()
@@ -16,6 +19,9 @@ call plug#end()
" Config
" "
+nnoremap <SPACE> <Nop>
+let mapleader=" "
+
set shiftwidth=4
set nu rnu
set mouse=a
@@ -30,7 +36,11 @@ let g:NERDTreeShowHidden=1
" Keys
" "
-map <C-b> :NERDTreeToggle<CR>
+map <C-b> <cmd>NERDTreeToggle<CR>
+
+nnoremap <leader>ff <cmd>Telescope find_files<CR>
+nnoremap <leader>fg <cmd>Telescope live_grep<CR>
+nnoremap <leader><leader> <cmd>Telescope buffers<CR>
nnoremap <A-Left> <C-w><Left>
nnoremap <A-Up> <C-w><Up>
diff --git a/.config/waybar/config b/.config/waybar/config
index 56b1359..0231590 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
- "modules-right": ["tray", "pulseaudio", "network", "clock"],
+ "modules-right": ["tray", "custom/alsa", "network", "clock"],
"sway/window": {
"max-length": 100
},
@@ -12,6 +12,14 @@
"pulseaudio": {
"format": "V {volume}%",
},
+ "custom/alsa": {
+ "exec": "amixer get Master | grep '%' | awk -F '[][]' '{print $2}'",
+ //"exec-if": "alsactl monitor",
+ "format": "V {}",
+ "on-scroll-up": "amixer set Master 1%+",
+ "on-scroll-down": "amixer set Master 1%-",
+ "interval": 1
+ },
"network": {
"format": "{ipaddr}",
"format-disconnected": "Offline",