Merged: chicken config

This commit is contained in:
Daniel Meiburg 2023-09-18 15:26:01 +02:00
parent fbdda9d41f
commit cb8d0a0a44
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
12 changed files with 226 additions and 174 deletions

24
.config/git/config Normal file
View File

@ -0,0 +1,24 @@
[user]
email = key@dmeiburg.de
name = Daniel Meiburg
signingkey = 782C4A83DD7B9E4A64B12EDEE5827ECFFE0AA4F2
[alias]
br = branch
co = checkout
cm = commit
l = log --oneline --graph
[commit]
gpgSign = true
[init]
defaultBranch = master
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[difftool]
prompt = true
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""

View File

@ -0,0 +1,3 @@
vim.g.copilot_filetypes = {
["text"] = false,
}

View File

@ -1,174 +0,0 @@
-- Automatically generated packer.nvim plugin loader code
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
return
end
vim.api.nvim_command('packadd packer.nvim')
local no_errors, error_msg = pcall(function()
_G._packer = _G._packer or {}
_G._packer.inside_compile = true
local time
local profile_info
local should_profile = false
if should_profile then
local hrtime = vim.loop.hrtime
profile_info = {}
time = function(chunk, start)
if start then
profile_info[chunk] = hrtime()
else
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
end
end
else
time = function(chunk, start) end
end
local function save_profiles(threshold)
local sorted_times = {}
for chunk_name, time_taken in pairs(profile_info) do
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
end
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
local results = {}
for i, elem in ipairs(sorted_times) do
if not threshold or threshold and elem[2] > threshold then
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
end
end
if threshold then
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
end
_G._packer.profile_output = results
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/dm/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/dm/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/dm/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/dm/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/dm/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
package.cpath = package.cpath .. ';' .. install_cpath_pattern
end
time([[Luarocks path setup]], false)
time([[try_loadstring definition]], true)
local function try_loadstring(s, component, name)
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
if not success then
vim.schedule(function()
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
end)
end
return result
end
time([[try_loadstring definition]], false)
time([[Defining packer_plugins]], true)
_G.packer_plugins = {
LuaSnip = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip"
},
NeoSolarized = {
config = { "\27LJ\2\2<\0\0\2\0\3\0\0056\0\0\0009\0\1\0'\1\2\0B\0\2\1K\0\1\0\29colorscheme NeoSolarized\bcmd\bvim\0" },
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/NeoSolarized",
url = "https://github.com/overcache/NeoSolarized"
},
["cmp-nvim-lsp"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
},
cmp_luasnip = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
url = "https://github.com/saadparwaiz1/cmp_luasnip"
},
["copilot.vim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/copilot.vim",
url = "https://github.com/github/copilot.vim"
},
["gitsigns.nvim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
url = "https://github.com/lewis6991/gitsigns.nvim"
},
["indent-blankline.nvim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim",
url = "https://github.com/lukas-reineke/indent-blankline.nvim"
},
["nvim-cmp"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/nvim-cmp",
url = "https://github.com/hrsh7th/nvim-cmp"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
["nvim-treesitter"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
["packer.nvim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
},
["plenary.nvim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim"
},
["telescope-fzf-native.nvim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim",
url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
},
["telescope.nvim"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
["vim-fugitive"] = {
loaded = true,
path = "/home/dm/.local/share/nvim/site/pack/packer/start/vim-fugitive",
url = "https://github.com/tpope/vim-fugitive"
}
}
time([[Defining packer_plugins]], false)
-- Config for: NeoSolarized
time([[Config for NeoSolarized]], true)
try_loadstring("\27LJ\2\2<\0\0\2\0\3\0\0056\0\0\0009\0\1\0'\1\2\0B\0\2\1K\0\1\0\29colorscheme NeoSolarized\bcmd\bvim\0", "config", "NeoSolarized")
time([[Config for NeoSolarized]], false)
_G._packer.inside_compile = false
if _G._packer.needs_bufread == true then
vim.cmd("doautocmd BufRead")
end
_G._packer.needs_bufread = false
if should_profile then save_profiles() end
end)
if not no_errors then
error_msg = error_msg:gsub('"', '\\"')
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
end

9
.config/x/xinitrc Normal file
View File

@ -0,0 +1,9 @@
setxkbmap us
xmodmap .config/x/xmodmap
.screenlayout/chicken.sh &&
xrdb -merge .config/x/xresources &&
#dwmblocks &
#bgs -Rz $HOME/.config/wallpapers/cloud.jpg
#xset r off
xset r rate 190 35
exec i3 --shmlog-size 0

11
.config/x/xmodmap Normal file
View File

@ -0,0 +1,11 @@
! Map umlauts to RIGHT ALT + <key>
keycode 108 = Mode_switch
keysym e = e E EuroSign
keysym c = c C cent
keysym a = a A adiaeresis Adiaeresis
keysym o = o O odiaeresis Odiaeresis
keysym u = u U udiaeresis Udiaeresis
keysym s = s S ssharp
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

105
.config/x/xresources Normal file
View File

@ -0,0 +1,105 @@
! Base16 Eighties
! Scheme: Chris Kempson (http://chriskempson.com)
*foreground: #d3d0c8
Xcursor.theme: Adwaita
Xcursor.size: 32
#ifdef background_opacity
*background: [background_opacity]#2d2d2d
#else
*background: #2d2d2d
#endif
*cursorColor: #d3d0c8
*color0: #2d2d2d
*color1: #f2777a
*color2: #99cc99
*color3: #ffcc66
*color4: #6699cc
*color5: #cc99cc
*color6: #66cccc
*color7: #d3d0c8
*color8: #747369
*color9: #f2777a
*color10: #99cc99
*color11: #ffcc66
*color12: #6699cc
*color13: #cc99cc
*color14: #66cccc
*color15: #f2f0ec
! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt),
! use 'shell' template to set these if necessary
*color16: #f99157
*color17: #d27b53
*color18: #393939
*color19: #515151
*color20: #a09f93
*color21: #e8e6df
! URxvt.font: 9x15,xft:TerminessTTFNerdFontMono
! alternative font settings with 'terminus':
URxvt.font: -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
!URxvt.bold.font: -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
URxvt*scrollBar: false
URxvt*mouseWheelScrollPage: false
URxvt*cursorBlink: true
URxvt*saveLines: 5000
! for 'fake' transparency (without Compton) uncomment the following three lines
! URxvt*inheritPixmap: true
! URxvt*transparent: true
! URxvt*shading: 138
! other possible settings:
URxvt.iso14755: false
!URxvt.perl-ext:
!URxvt.perl-ext-common:
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
!! Cursor word movement
URxvt*altSendsEscape: true
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Shift-Control-Left: \033[1;6D
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Shift-Control-Right: \033[1;6C
URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Shift-Control-Up: \033[1;6A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Shift-Control-Down: \033[1;6B
URxvt.clipboard.autocopy: true
! URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
! URxvt*termName: string
! URxvt*geometry: geometry
! URxvt*chdir: string
! URxvt*reverseVideo: boolean
! URxvt*loginShell: boolean
! URxvt*multiClickTime: number
! URxvt*jumpScroll: boolean
! URxvt*skipScroll: boolean
! URxvt*pastableTabs: boolean
! URxvt*scrollstyle: plain
! URxvt*scrollBar_right: boolean
! URxvt*scrollBar_floating: true
! URxvt*scrollBar_align: mode
! URxvt*thickness: number
! URxvt*scrollTtyOutput: boolean
! URxvt*scrollTtyKeypress: boolean
! URxvt*scrollWithBuffer: boolean
! URxvt*tintColor: !7DA55
! URxvt*blurRadius: HxV
! URxvt*fading: number
! URxvt*fadeColor: color
! URxvt*utmpInhibit: boolean
! URxvt*urgentOnBell: boolean
! URxvt*visualBell: boolean
! URxvt*mapAlert: boolean
! URxvt*meta8: boolean
! URxvt*tripleclickwords: boolean
! URxvt*insecure: boolean
! URxvt*cursorUnderline: boolean
! URxvt*pointerBlank: boolean

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
packer_compiled.lua

3
.gnupg/gpg-agent.conf Normal file
View File

@ -0,0 +1,3 @@
enable-ssh-support
default-cache-ttl 1800
pinentry-program /bin/pinentry-qt

1
.gnupg/gpg.conf Normal file
View File

@ -0,0 +1 @@
use-agent

43
.profile Normal file
View File

@ -0,0 +1,43 @@
##### sh/ksh initialization
PATH=/usr/local/bin:/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/sbin:/usr/bin/vendor_perl:~/bin:/home/dm/.local/bin:/opt/texlive/2021/bin/x86_64-linuxmusl
export PATH HOME TERM
#####clean home directory
CONF=$HOME/.config
CACHE=$HOME/.cache
export ENV=$CONF/kshrc
export XINITRC=$CONF/x/xinitrc
export LYNX_CFG=$CONF/lynx/lynx.cfg
export LYNX_LSS=$CONF/lynx/lynx.lss
##### default programms
export EDITOR=nvim
export TERMINAL="kitty"
export BROWSER="w3m"
export READER="zathura"
export FILE="nnn"
##### programm settings
CONF=$HOME/.config
CACHE=$HOME/.cache
export NNN_BMS='d:~/downloads;h:~/;w:~/workspace;i:~/images;f:~/documents;m:~/.config/nnn/mounts;/:/'
export FZF_DEFAULT_COMMAND="find ."
export SFEED_URL_FILE=~/.sfeed/read.txt
export QT_PLATFORM_THEME=qt5ct
##### autologin on tty1
if [ "$(hostname)" = "chicken" ] && [ "$(tty)" = "/dev/tty1" ]; then
exec startx
else
if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
mkdir -p /tmp/wayland_comp
chmod 0700 /tmp/wayland_comp
export XDG_RUNTIME_DIR=/tmp/wayland_comp
QT_QPA_PLATFORM=wayland
#exec dbus-launch --sh-syntax --exit-with-session sway
dbus-run-session sway
#sway
fi
fi
. "$HOME/.cargo/env"

View File

@ -0,0 +1,11 @@
default partial alphanumeric_keys
xkb_symbols "basic" {
include "us(altgr-intl)"
include "level3(caps_switch)"
name[Group1] = "English (US, international with German umlaut)";
key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
key <AC02> { [ s, S, ssharp ] };
key <AD03> { [ e, E, EuroSign, cent ] };
};

15
.xsession Normal file
View File

@ -0,0 +1,15 @@
export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
#clean home directory
CONF=$HOME/.config
CACHE=$HOME/.cache
export ENV=$CONF/kshrc
export XINITRC=$CONF/x/xinitrc
#export XAUTHORITY=$CACHE/xauthoriy
#setxkbmap us
#dwmblocks &
#xmodmap .config/x/xmodmap
#dispwin -I -d1 $CONF/cal/BENQ.icc
#bgs -z $HOME/.config/wallpapers/cloud.jpg
#exec dwm