add additional configuration
This commit is contained in:
parent
d3fc9ff203
commit
3fc2dc19aa
|
@ -58,7 +58,7 @@
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
||||||
anki
|
anki
|
||||||
youtube-tui
|
ytfzf
|
||||||
kdenlive
|
kdenlive
|
||||||
libreoffice
|
libreoffice
|
||||||
i3
|
i3
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, bash
|
||||||
|
, makeWrapper
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "rebuild";
|
||||||
|
version = "1.00";
|
||||||
|
|
||||||
|
src = ./rebuild;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
buildInputs = [ bash ];
|
||||||
|
|
||||||
|
buildPhase = "";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp $src/rebuild $out/bin
|
||||||
|
wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
phases = [ "buildPhase" "installPhase" ];
|
||||||
|
}
|
||||||
|
|
|
@ -15,7 +15,10 @@ if [ "$(exists "DP-1")" -gt 1 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(exists "HDMI-1")" -gt 1 ] && [ "$(hostname)" = "mainsail" ]; then
|
if [ "$(hostname)" = "mainsail" ]; then
|
||||||
printf "mainsail selected\nHDMI-1 detected only, doing that\n"
|
# this is a tower, so there's only one configuration
|
||||||
bspc monitor HDMI-1 -d 1 2 3 4 5 6 7 8 9
|
printf "mainsail detected\n"
|
||||||
|
xrandr --output VGA-1 --left-of HDMI-1
|
||||||
|
bspc monitor VGA-1 -d 1 3 5 7 9
|
||||||
|
bspc monitor HDMI-1 -d 2 4 6 8 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -28,6 +28,8 @@ in {
|
||||||
dig
|
dig
|
||||||
htop
|
htop
|
||||||
gnumake
|
gnumake
|
||||||
|
|
||||||
|
(pkgs.callPackage ../builds/rebuild.nix {})
|
||||||
];
|
];
|
||||||
|
|
||||||
system.copySystemConfiguration = true;
|
system.copySystemConfiguration = true;
|
||||||
|
|
|
@ -157,11 +157,6 @@ local packer = require('packer').startup(function(use)
|
||||||
use 'lervag/vimtex'
|
use 'lervag/vimtex'
|
||||||
use 'https://github.com/protex/better-digraphs.nvim'
|
use 'https://github.com/protex/better-digraphs.nvim'
|
||||||
use 'https://github.com/itchyny/calendar.vim'
|
use 'https://github.com/itchyny/calendar.vim'
|
||||||
use {
|
|
||||||
"empat94/nvim-rss",
|
|
||||||
requires = { "tami5/sqlite.lua" },
|
|
||||||
rocks = "luaexpat",
|
|
||||||
}
|
|
||||||
use {
|
use {
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -178,33 +173,6 @@ local packer = require('packer').startup(function(use)
|
||||||
end);
|
end);
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- lsp configuration {{{
|
|
||||||
local lsp = require('lsp-zero').preset({})
|
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
|
||||||
lsp.default_keymaps({buffer = bufnr})
|
|
||||||
end)
|
|
||||||
|
|
||||||
local lspconfig = require('lspconfig')
|
|
||||||
|
|
||||||
lsp.ensure_installed({
|
|
||||||
'rnix',
|
|
||||||
'jedi_language_server',
|
|
||||||
})
|
|
||||||
|
|
||||||
lspconfig.lua_ls.setup(lsp.nvim_lua_ls())
|
|
||||||
lspconfig.rnix.setup({})
|
|
||||||
lspconfig.jedi_language_server.setup({})
|
|
||||||
|
|
||||||
lsp.setup()
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
require("nvim-rss").setup({
|
|
||||||
feeds_dir = "/home/usr",
|
|
||||||
date_format = "%x %r",
|
|
||||||
verbose = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
nnoremap('<leader>ff', function()
|
nnoremap('<leader>ff', function()
|
||||||
require('telescope.builtin').find_files()
|
require('telescope.builtin').find_files()
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -5,10 +5,10 @@ q
|
||||||
xdotool mousemove_relative -- {-5,-50,-20} 0
|
xdotool mousemove_relative -- {-5,-50,-20} 0
|
||||||
|
|
||||||
{ctrl +,shift +,_} j
|
{ctrl +,shift +,_} j
|
||||||
xdotool mousemove_relative -- 0 {-5,-50,-20}
|
xdotool mousemove_relative -- 0 {5,50,20}
|
||||||
|
|
||||||
{ctrl +,shift +,_} k
|
{ctrl +,shift +,_} k
|
||||||
xdotool mousemove_relative -- 0 {5,50,20}
|
xdotool mousemove_relative -- 0 {-5,-50,-20}
|
||||||
|
|
||||||
{ctrl +,shift +,_} l
|
{ctrl +,shift +,_} l
|
||||||
xdotool mousemove_relative -- {5,50,20} 0
|
xdotool mousemove_relative -- {5,50,20} 0
|
||||||
|
|
|
@ -41,7 +41,7 @@ super + {_,ctrl +,shift + }{h,j,k,l}
|
||||||
bspc node -{f,p,s} {west,south,north,east}
|
bspc node -{f,p,s} {west,south,north,east}
|
||||||
|
|
||||||
super + {_,shift + } {1-9,0}
|
super + {_,shift + } {1-9,0}
|
||||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
bspc {desktop -f,node -d} '{1-9,10}'
|
||||||
|
|
||||||
super + {t,f,s}
|
super + {t,f,s}
|
||||||
bspc node -t {tiled,floating,fullscreen}
|
bspc node -t {tiled,floating,fullscreen}
|
||||||
|
|
Loading…
Reference in New Issue