Compare commits
7 Commits
bec224e0f4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 941e3031d7 | |||
| efbcfbc4bf | |||
| 4dd21cbf9d | |||
| 42ce12e24a | |||
| a303cfe3ad | |||
| 1fe10c4c4f | |||
| 58ec74b798 |
@@ -18,8 +18,20 @@ profile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
profile {
|
profile {
|
||||||
output DP-6 enable position 3440,0
|
output DP-9 enable position 0,1440
|
||||||
output DP-7 enable position 0,0
|
output DP-8 enable position 0,0
|
||||||
|
output eDP-1 disable
|
||||||
|
}
|
||||||
|
|
||||||
|
profile {
|
||||||
|
output DP-7 enable position 0,1440
|
||||||
|
output DP-6 enable position 0,0
|
||||||
|
output eDP-1 disable
|
||||||
|
}
|
||||||
|
|
||||||
|
profile {
|
||||||
|
output DP-5 enable position 0,1440
|
||||||
|
output DP-6 enable position 0,0
|
||||||
output eDP-1 disable
|
output eDP-1 disable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,5 @@ vim.opt.guicursor = ""
|
|||||||
|
|
||||||
vim.opt.nu = true
|
vim.opt.nu = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.api.nvim_set_keymap("n", "<C-d>", "<C-d>zz", { noremap = true })
|
|
||||||
vim.api.nvim_set_keymap("n", "<C-u>", "<C-u>zz", { noremap = true })
|
|
||||||
vim.api.nvim_set_keymap("n", "n", "nzzzv", { noremap = true })
|
|
||||||
vim.api.nvim_set_keymap("n", "N", "Nzzzv", { noremap = true })
|
|
||||||
vim.api.nvim_set_option("clipboard", "unnamedplus")
|
vim.api.nvim_set_option("clipboard", "unnamedplus")
|
||||||
|
vim.opt_local.conceallevel = 2
|
||||||
|
|||||||
@@ -42,3 +42,7 @@ end, { noremap = true })
|
|||||||
map("n", "<leader>P", function()
|
map("n", "<leader>P", function()
|
||||||
require("powershell").toggle_term()
|
require("powershell").toggle_term()
|
||||||
end, { noremap = true })
|
end, { noremap = true })
|
||||||
|
|
||||||
|
-- Obsidian
|
||||||
|
map("", "<leader>of", "<cmd> ObsidianFollowLink <CR>", { desc = "Follow Link" })
|
||||||
|
map("", "<leader>ol", "<cmd> ObsidianLinks <CR>", { desc = "Show All Links" })
|
||||||
|
|||||||
@@ -120,4 +120,21 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"epwalsh/obsidian.nvim",
|
||||||
|
version = "*",
|
||||||
|
lazy = true,
|
||||||
|
ft = "markdown",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
workspaces = {
|
||||||
|
{
|
||||||
|
name = "vault",
|
||||||
|
path = "~/Documents/obsidian"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
17
.config/nvim/lua/plugins/obsidian.lua
Normal file
17
.config/nvim/lua/plugins/obsidian.lua
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
return {
|
||||||
|
"epwalsh/obsidian.nvim",
|
||||||
|
version = "*",
|
||||||
|
lazy = true,
|
||||||
|
ft = "markdown",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
workspaces = {
|
||||||
|
{
|
||||||
|
name = "vault",
|
||||||
|
path = "~/Documents/obsidian"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -30,6 +30,14 @@ $tokens = @(
|
|||||||
name = "GITLAB_TOKEN"
|
name = "GITLAB_TOKEN"
|
||||||
value = "cli-gitlab"
|
value = "cli-gitlab"
|
||||||
}
|
}
|
||||||
|
@{
|
||||||
|
name = "GITHUB_TOKEN"
|
||||||
|
value = "cli-github"
|
||||||
|
}
|
||||||
|
@{
|
||||||
|
name = "GITEA_TOKEN"
|
||||||
|
value = "cli-gitea"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
function unlockbw
|
function unlockbw
|
||||||
|
|||||||
@@ -39,12 +39,19 @@ input "1267:12573:ELAN0412:00_04F3:311D_Touchpad" {
|
|||||||
middle_emulation enabled
|
middle_emulation enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input "type:pointer" {
|
||||||
|
accel_profile "flat"
|
||||||
|
pointer_accel 0
|
||||||
|
}
|
||||||
# Notification Daemon
|
# Notification Daemon
|
||||||
exec_always swaync
|
exec_always swaync
|
||||||
|
|
||||||
# Toggle control center
|
# Toggle control center
|
||||||
bindsym $mod+Shift+n exec swaync-client -t -sw
|
bindsym $mod+Shift+n exec swaync-client -t -sw
|
||||||
|
|
||||||
|
# Start IDE
|
||||||
|
bindsym $mod+Shift+i exec /opt/goland/bin/goland.sh
|
||||||
|
|
||||||
### Key bindings
|
### Key bindings
|
||||||
|
|
||||||
# Basics:
|
# Basics:
|
||||||
@@ -62,7 +69,7 @@ bindsym $mod+Shift+n exec swaync-client -t -sw
|
|||||||
# Despite the name, also works for non-floating windows.
|
# Despite the name, also works for non-floating windows.
|
||||||
# Change normal to inverse to use left mouse button for resizing and right
|
# Change normal to inverse to use left mouse button for resizing and right
|
||||||
# mouse button for dragging.
|
# mouse button for dragging.
|
||||||
floating_modifier control normal
|
#floating_modifier control normal
|
||||||
|
|
||||||
# Reload the configuration file
|
# Reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
|||||||
113
.ideavimrc
Normal file
113
.ideavimrc
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
set number relativenumber
|
||||||
|
set ideajoin
|
||||||
|
set linenumber
|
||||||
|
set showmode
|
||||||
|
set showcmd
|
||||||
|
set incsearch
|
||||||
|
set hlsearch
|
||||||
|
set scrolloff=10
|
||||||
|
set visualbell
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
set notimeout
|
||||||
|
set clipboard+=unnamed
|
||||||
|
|
||||||
|
" 3rd party
|
||||||
|
set which-key
|
||||||
|
set surround
|
||||||
|
set highlightedyank
|
||||||
|
|
||||||
|
" Which Key
|
||||||
|
let g:WhichKey_FontSize = 16
|
||||||
|
let g:WhichKey_CommandColor = "#41ead4"
|
||||||
|
let g:WhichKey_PrefixColor = "#f335b2"
|
||||||
|
let g:WhichKey_SortOrder = "by_key_prefix_first"
|
||||||
|
|
||||||
|
" NerdTree
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
|
|
||||||
|
let g:NERDTreeWinSize=30
|
||||||
|
let g:NERDTreeMapPreview=0
|
||||||
|
let g:NERDTreeMapActivateNode='l'
|
||||||
|
let g:NERDTreeMapJumpParent='h'
|
||||||
|
|
||||||
|
let mapleader=' '
|
||||||
|
|
||||||
|
noremap <leader>lr :action ExtractMethod<CR>
|
||||||
|
|
||||||
|
" Manage Projects
|
||||||
|
noremap <C-Space>s :action ManageRecentProjects<CR>
|
||||||
|
|
||||||
|
" Tab Navigation
|
||||||
|
noremap <Tab> :action NextTab<CR>
|
||||||
|
noremap <S-Tab> :action PreviousTab<CR>
|
||||||
|
|
||||||
|
" Pane Navigation
|
||||||
|
noremap <C-h> <C-w>h
|
||||||
|
noremap <C-l> <C-w>l
|
||||||
|
noremap <C-k> <C-w>k
|
||||||
|
noremap <C-j> <C-w>j
|
||||||
|
|
||||||
|
" File Navigation
|
||||||
|
map <leader>ff <action>(GoToFile)
|
||||||
|
map <leader><leader> <action>(RecentFiles)
|
||||||
|
map <leader>fl <action>(RecentLocations)
|
||||||
|
map <leader>fs <action>(NewScratchFile)
|
||||||
|
|
||||||
|
" Center Screen with Page up and down
|
||||||
|
nnoremap <C-d> <C-d>zz
|
||||||
|
nnoremap <C-u> <C-u>zz
|
||||||
|
|
||||||
|
" Window Management
|
||||||
|
map <leader>% <action>(SplitVertically)
|
||||||
|
map <leader>" <action>(SplitHorizontally)
|
||||||
|
map <leader>x <action>(CloseContent)
|
||||||
|
map <leader>wm <action>(MoveEditorToOppositeTabGroup)
|
||||||
|
|
||||||
|
" Popup Navigation
|
||||||
|
inoremap <C-j> <Action>(PopupMenu-selectNext)
|
||||||
|
inoremap <C-k> <Action>(PopupMenu-selectPrev)
|
||||||
|
|
||||||
|
" Debug options
|
||||||
|
map <leader>dd <action>(Debug)
|
||||||
|
map <leader>db <action>(ToggleLineBreakpoint)
|
||||||
|
|
||||||
|
" Actions
|
||||||
|
map <leader>am <action>(ShowIntentionActions)
|
||||||
|
map <leader>as <action>(SearchEverywhere)
|
||||||
|
|
||||||
|
" Refactoring
|
||||||
|
map <leader>rn <action>(RenameElement)
|
||||||
|
map <leader>re <action>(ExtractMethod)
|
||||||
|
map <leader>rv <action>(IntroduceVariable)
|
||||||
|
map <leader>rf <action>(IntroduceField)
|
||||||
|
map <leader>rs <action>(ChangeSignature)
|
||||||
|
map <leader>rr <action>(Refactorings.QuickListPopupAction)
|
||||||
|
|
||||||
|
" Go To Code
|
||||||
|
map <leader>gd <action>(GoToDeclaration)
|
||||||
|
map <leader>gy <action>(GotoTypeDeclaraton)
|
||||||
|
map <leader>gi <action>(GotoImplementation)
|
||||||
|
map <leader>gu <action>(ShowUsages)
|
||||||
|
map <leader>gt <action>(GotoTest)
|
||||||
|
map <leader>gf <action>(Back)
|
||||||
|
map <leader>gb <action>(Forward)
|
||||||
|
|
||||||
|
" Go Tag
|
||||||
|
map <leader>gt :action IntentionActionAsAction_com.goide.inspections.tag.GoTagAddKeyIntention<CR>
|
||||||
|
|
||||||
|
" Errors
|
||||||
|
map <leader>en <action>(ReSharperGotoNextErrorInSolution)
|
||||||
|
map <leader>ep <action>(ReSharperGotoPrevErrorInSolution)
|
||||||
|
|
||||||
|
" Menu
|
||||||
|
map <leader>mm <action>(MainMenu)
|
||||||
|
map <leader>ma <action>(AnalyzeMenu)
|
||||||
|
map <leader>mb <action>(BuildMenu)
|
||||||
|
map <leader>mc <action>(CodeMenu)
|
||||||
|
map <leader>mf <action>(FindMenuGroup)
|
||||||
|
map <leader>mg <action>(GoToMenu)
|
||||||
|
map <leader>ms <action>(ScopeViewPopupMenu)
|
||||||
|
map <leader>mt <action>(EditorTabPopupMenu)
|
||||||
|
map <leader>mw <action>(ToolWindowsGroup)
|
||||||
23
.zshrc
23
.zshrc
@@ -13,7 +13,8 @@ export LS_COLORS="$(vivid generate catppuccin-mocha)"
|
|||||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=none,fg=white,bold"
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=none,fg=white,bold"
|
||||||
#eval $(thefuck --alias)
|
#eval $(thefuck --alias)
|
||||||
|
|
||||||
alias tf=terraform
|
alias tf=tofu
|
||||||
|
alias terraform=tofu
|
||||||
alias k=kubectl
|
alias k=kubectl
|
||||||
alias ls='ls --color'
|
alias ls='ls --color'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
@@ -22,18 +23,31 @@ alias pwsh='pwsh -NoLogo'
|
|||||||
alias pbpaste='xclip -selection clipboard -o'
|
alias pbpaste='xclip -selection clipboard -o'
|
||||||
alias ls='eza'
|
alias ls='eza'
|
||||||
alias ll='eza -l'
|
alias ll='eza -l'
|
||||||
|
alias lg='lazygit'
|
||||||
alias tree='eza -T'
|
alias tree='eza -T'
|
||||||
alias cat='bat -P'
|
alias cat='bat -P'
|
||||||
alias network='nmtui'
|
alias network='nmtui'
|
||||||
alias docker='podman'
|
alias docker='podman'
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
|
alias grep='rg'
|
||||||
alias connectvpn='sudo openvpn ~/Documents/openvpn/openvpn.ovpn'
|
alias connectvpn='sudo openvpn ~/Documents/openvpn/openvpn.ovpn'
|
||||||
|
|
||||||
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
|
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
|
||||||
|
|
||||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||||
exec tmux attach
|
cwd=$(pwd)
|
||||||
|
session_name="goland-$(basename "$cwd" | tr -d '.')"
|
||||||
|
|
||||||
|
if tmux has-session -t $session_name; then
|
||||||
|
tmux attach -t $session_name
|
||||||
|
else
|
||||||
|
tmux new -s $session_name
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||||
|
# exec tmux attach
|
||||||
|
#fi
|
||||||
|
|
||||||
if [[ -f "/opt/homebrew/bin/brew" ]] then
|
if [[ -f "/opt/homebrew/bin/brew" ]] then
|
||||||
# If you're using macOS, you'll want this enabled
|
# If you're using macOS, you'll want this enabled
|
||||||
@@ -252,3 +266,6 @@ function open_command() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ -e /home/user/.nix-profile/etc/profile.d/nix.sh ]; then . /home/user/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
if [ -e /home/user/.nix-profile/etc/profile.d/nix.sh ]; then . /home/user/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
||||||
|
# Install Ruby Gems to ~/gems
|
||||||
|
export GEM_HOME="$HOME/gems"
|
||||||
|
export PATH="$HOME/gems/bin:$PATH"
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ required_packages_apt:
|
|||||||
- openresolv
|
- openresolv
|
||||||
- podman
|
- podman
|
||||||
- brightnessctl
|
- brightnessctl
|
||||||
|
- pavucontrol
|
||||||
|
|
||||||
flatpak_remote:
|
flatpak_remote:
|
||||||
- {name: 'flathub', url: "https://dl.flathub.org/repo/flathub.flatpakrepo"}
|
- {name: 'flathub', url: "https://dl.flathub.org/repo/flathub.flatpakrepo"}
|
||||||
|
|||||||
Reference in New Issue
Block a user