minor tweaks for i3, nvim, rofi

This commit is contained in:
eneller
2023-07-18 12:04:12 +02:00
parent 34da911ccf
commit f806d1f817
5 changed files with 8 additions and 12 deletions

View File

@@ -17,7 +17,8 @@ default_floating_border pixel 1
set $mod Mod4
bindsym $mod+F12 restart;reload
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

View File

@@ -1,15 +1,7 @@
require("plugins")
require("keybinds")
--- Functional wrapper for mapping custom keybindings
--- 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.cmd('colorscheme monokai') -- set colorscheme

View File

@@ -1,4 +1,5 @@
-- 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)
local options = { noremap = true }
if opts then

View File

@@ -18,6 +18,8 @@ packer.startup(function()
local use = use
use 'neovim/nvim-lspconfig'
use 'nvim-treesitter/nvim-treesitter'
use 'kylechui/nvim-surround'
-- use nvim-leap
end
)
--[[ PLUGIN CONFIGURATION

View File

@@ -34,7 +34,7 @@ configuration {
/* auto-select: false;*/
/* parse-hosts: false;*/
/* parse-known-hosts: true;*/
combi-modes: "window,drun,ssh";
combi-modes: "drun,window,ssh";
/* matching: "normal";*/
/* tokenize: true;*/
/* m: "-5";*/