minor tweaks for i3, nvim, rofi
This commit is contained in:
@@ -17,7 +17,8 @@ default_floating_border pixel 1
|
|||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
bindsym $mod+F12 restart;reload
|
bindsym $mod+F12 restart;reload
|
||||||
bindsym $mod+Escape exec i3lock -c 000000 & sleep 2 && systemctl suspend
|
bindsym $mod+Escape exec i3lock -c 000000 & sleep 2 && systemctl suspend
|
||||||
bindsym $mod+Shift+Escape exec i3lock -c 000000 & sleep 2 && xset dpms force off
|
bindsym $mod+Shift+Escape exec systemctl poweroff
|
||||||
|
#bindsym $mod+Shift+Escape exec i3lock -c 000000 & sleep 2 && xset dpms force off
|
||||||
|
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
require("plugins")
|
require("plugins")
|
||||||
require("keybinds")
|
require("keybinds")
|
||||||
--- Functional wrapper for mapping custom keybindings
|
|
||||||
--- GENERAL SETTINGS
|
--- GENERAL SETTINGS
|
||||||
function map(mode, lhs, rhs, opts)
|
|
||||||
local options = { noremap = true }
|
|
||||||
if opts then
|
|
||||||
options = vim.tbl_extend("force", options, opts)
|
|
||||||
end
|
|
||||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
|
||||||
end
|
|
||||||
map("i","<C-c>","<Esc>")
|
|
||||||
|
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
vim.cmd('colorscheme monokai') -- set colorscheme
|
vim.cmd('colorscheme monokai') -- set colorscheme
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
-- filetype-specific keybinds can be found in the ftplugin folder, requires 'filetype plugin on'
|
-- filetype-specific keybinds can be found in the ftplugin folder, requires 'filetype plugin on'
|
||||||
|
-- Functional wrapper for mapping custom keybindings
|
||||||
function map(mode, lhs, rhs, opts)
|
function map(mode, lhs, rhs, opts)
|
||||||
local options = { noremap = true }
|
local options = { noremap = true }
|
||||||
if opts then
|
if opts then
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ packer.startup(function()
|
|||||||
local use = use
|
local use = use
|
||||||
use 'neovim/nvim-lspconfig'
|
use 'neovim/nvim-lspconfig'
|
||||||
use 'nvim-treesitter/nvim-treesitter'
|
use 'nvim-treesitter/nvim-treesitter'
|
||||||
|
use 'kylechui/nvim-surround'
|
||||||
|
-- use nvim-leap
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
--[[ PLUGIN CONFIGURATION
|
--[[ PLUGIN CONFIGURATION
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ configuration {
|
|||||||
/* auto-select: false;*/
|
/* auto-select: false;*/
|
||||||
/* parse-hosts: false;*/
|
/* parse-hosts: false;*/
|
||||||
/* parse-known-hosts: true;*/
|
/* parse-known-hosts: true;*/
|
||||||
combi-modes: "window,drun,ssh";
|
combi-modes: "drun,window,ssh";
|
||||||
/* matching: "normal";*/
|
/* matching: "normal";*/
|
||||||
/* tokenize: true;*/
|
/* tokenize: true;*/
|
||||||
/* m: "-5";*/
|
/* m: "-5";*/
|
||||||
|
|||||||
Reference in New Issue
Block a user