summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-01-16 04:37:37 +0200
committerDrNuget <drnuget@outlook.com>2025-01-16 04:37:37 +0200
commit3fcf1a3a0affa5027c399c2ad05b8c573ebedb0e (patch)
tree9c03e6450cedd0afa006c12bff0c0b13542fb8e8
initial commit
-rw-r--r--.bashrc26
-rw-r--r--.config/foot/foot.ini26
-rw-r--r--.config/nvim/init.lua92
-rw-r--r--.profile13
-rw-r--r--.tmux.conf19
5 files changed, 176 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..4d3ce8e
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,26 @@
+#
+# ~/.bashrc
+#
+
+# If not running interactively, don"t do anything
+[[ $- != *i* ]] && return
+
+set -o vi
+
+alias tmux="tmux -u"
+alias cal="cal -mw"
+alias fetch="fastfetch"
+alias scim="sc-im"
+
+alias ls="ls --color=auto"
+alias grep="grep --color=auto"
+
+alias vrc="vim $HOME/.config/nvim/init.lua"
+
+#Arch default PS1:
+PS1="[\u@\h \W]\$ "
+
+#Multicolor PS1:
+#PS1="\[\033[31m\][\[\033[33m\]\u\[\033[32m\]@\[\033[34m\]\h \[\033[36m\]\W\[\033[31m\]]\[\033[0m\]$ "
+
+export MANPAGER="nvim +Man!"
diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini
new file mode 100644
index 0000000..a9d99c4
--- /dev/null
+++ b/.config/foot/foot.ini
@@ -0,0 +1,26 @@
+font=monospace:size=8
+
+
+[colors]
+alpha=0.8
+#Materia Dark
+background=121212
+foreground=dfdfdf
+
+regular0=474747 #black
+regular1=f44336 #red
+regular2=4caf50 #green
+regular3=ff9800 #yellow
+regular4=1a73e8 #blue
+regular5=9c27b0 #purple
+regular6=0097a7 #cyan
+regular7=ffffff #white
+
+bright0=474747 #black
+bright1=f44336 #red
+bright2=4caf50 #green
+bright3=ff9800 #yellow
+bright4=1a73e8 #blue
+bright5=9c27b0 #purple
+bright6=0097a7 #cyan
+bright7=ffffff #white
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
new file mode 100644
index 0000000..139e733
--- /dev/null
+++ b/.config/nvim/init.lua
@@ -0,0 +1,92 @@
+vim.cmd([[
+ set nu
+ set smarttab
+ set tabstop=4
+ set shiftwidth=4
+ set noexpandtab
+ set autoindent
+ filetype plugin indent on
+
+ colorscheme vim
+ set notermguicolors
+
+ set splitbelow splitright
+
+ " Insert mode hjkl
+ inoremap <C-h> <Left>
+ inoremap <C-j> <Down>
+ inoremap <C-k> <Up>
+ inoremap <C-l> <Right>
+
+ nnoremap <Space> :
+
+ nnoremap <Leader>o o<Esc>
+ nnoremap <Leader>O O<Esc>
+
+ " Some C Macros
+ autocmd Filetype c inoremap im<tab> int<Space>main()<Space>{<Enter><Enter>return<Space>0;<Enter>}<Up><Up><Tab>
+ autocmd Filetype c inoremap I<tab> #include<Space><><Left>
+ autocmd Filetype c inoremap w<tab> while()<Space>{<Enter>}<Esc><Up>e2li
+ autocmd Filetype c inoremap f<tab> for(;;)<Space>{<Enter>}<Esc><Up>e2li
+
+ " LaTex Macros
+ autocmd Filetype tex inoremap equ<tab> \begin{equation}<Enter><Enter>\end{equation}<Up><Tab>
+]])
+
+vim.g.loaded_netrw = 1
+vim.g.loaded_netrwPlugin = 1
+
+local function bootstrap_pckr()
+ local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
+
+ if not (vim.uv or vim.loop).fs_stat(pckr_path) then
+ vim.fn.system({
+ "git",
+ "clone",
+ "--filter=blob:none",
+ "https://github.com/lewis6991/pckr.nvim",
+ pckr_path
+ })
+ end
+
+ vim.opt.rtp:prepend(pckr_path)
+end
+
+bootstrap_pckr()
+
+require("pckr").add{
+ {
+ "christoomey/vim-tmux-navigator",
+ cmd = {
+ "TmuxNavigateLeft",
+ "TmuxNavigateDown",
+ "TmuxNavigateUp",
+ "TmuxNavigateRight",
+ "TmuxNavigatePrevious",
+ },
+ keys = {
+ { "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
+ { "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
+ { "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
+ { "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
+ { "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" },
+ },
+ },
+ {
+ "windwp/nvim-autopairs",
+ event = "InsertEnter",
+ config = function()
+ require("nvim-autopairs").setup {}
+ end
+ },
+ {
+ "nvim-tree/nvim-tree.lua",
+ config = function()
+ require("nvim-tree").setup()
+ end
+ },
+ {
+ "vimwiki/vimwiki"
+ }
+}
+
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..d1fd1d9
--- /dev/null
+++ b/.profile
@@ -0,0 +1,13 @@
+export WLR_DRM_NO_ATOMIC=1
+
+export PATH="$PATH:$HOME/.scripts"
+export WALLPAPER=""
+export LANG="en_US.UTF-8"
+export TERMIMAL="foot"
+export EDITOR="vim"
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc
+
+if [ $(tty) == "/dev/tty1" ]; then
+ ~/.scripts/wm
+fi
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..ea783a3
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,19 @@
+# Smart pane switching with awareness of Vim splits.
+# See: https://github.com/christoomey/vim-tmux-navigator
+is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
+ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'"
+bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
+bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
+bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
+bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
+tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
+if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
+ "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
+if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
+ "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
+
+bind-key -T copy-mode-vi 'C-h' select-pane -L
+bind-key -T copy-mode-vi 'C-j' select-pane -D
+bind-key -T copy-mode-vi 'C-k' select-pane -U
+bind-key -T copy-mode-vi 'C-l' select-pane -R
+bind-key -T copy-mode-vi 'C-\' select-pane -l