removed kdeconnect because of unnecesserity and added nix home configurations and added ohmyposh for the zsh
This commit is contained in:
@@ -48,3 +48,4 @@ theme = catppuccin-latte.conf
|
||||
|
||||
background-opacity = 0.9
|
||||
font-size = 23
|
||||
font-family = "CaskaydiaCove Nerd Font Mono"
|
||||
|
||||
@@ -84,7 +84,7 @@ bind = $mainMod, E, exec, nautilus #File explorer
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, wofi #application launcher
|
||||
|
||||
bind = $mainMod SHIFT, R, exec, killall waybar; waybar
|
||||
bind = $mainMod SHIFT, R, exec, ps aux | grep waybar | grep -v grep | awk '{print $2}' | xargs kill; waybar
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, W, exec, pavucontrol
|
||||
bind = $mainMod, O, togglesplit, # dwindle
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBrDCCAVGgAwIBAgIVAOxtBSXgSE7l52IHYAfjPDEE7IvlMAoGCCqGSM49BAME
|
||||
MFUxLzAtBgNVBAMMJl9hMWVjNjA2ZF8xODM4XzQ2NjFfOGYzN18wNmEyODQxOTIy
|
||||
NjNfMQwwCgYDVQQKDANLREUxFDASBgNVBAsMC0tERSBDb25uZWN0MB4XDTIzMTEw
|
||||
ODExNDUzNloXDTM0MDcyOTExNDUzNlowVTEvMC0GA1UEAwwmX2ExZWM2MDZkXzE4
|
||||
MzhfNDY2MV84ZjM3XzA2YTI4NDE5MjI2M18xDDAKBgNVBAoMA0tERTEUMBIGA1UE
|
||||
CwwLS0RFIENvbm5lY3QwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARY0VGBrFiD
|
||||
x0z6E0KOn3pbU4XYApFRoKQbj1FJO+KIbEsie72DbKPavGP5elhrZAPhhXU8EzdV
|
||||
3fhAWvoybC+ZMAoGCCqGSM49BAMEA0kAMEYCIQD/xUqudQv1QWPwLX6XjFpUHi9H
|
||||
yhT74OqemFRvDM2epgIhAIDfMxEvJqj44mWQD/EADcXizd4/r7xfzl1TX2d/QlaZ
|
||||
-----END CERTIFICATE-----
|
||||
@@ -1,3 +0,0 @@
|
||||
[General]
|
||||
keyAlgorithm=EC
|
||||
name=robaa
|
||||
@@ -1,5 +0,0 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIMd4iSkIoSHV5VdxcdBAckaeP+DwEn8XlcwHO+aSoo9UoAoGCCqGSM49
|
||||
AwEHoUQDQgAEWNFRgaxYg8dM+hNCjp96W1OF2AKRUaCkG49RSTviiGxLInu9g2yj
|
||||
2rxj+XpYa2QD4YV1PBM3Vd34QFr6MmwvmQ==
|
||||
-----END EC PRIVATE KEY-----
|
||||
@@ -1,5 +0,0 @@
|
||||
[682ae317_2616_4c3f_9aba_e60d728deb17]
|
||||
certificate="-----BEGIN CERTIFICATE-----\nMIIBkzCCATmgAwIBAgIBATAKBggqhkjOPQQDBDBTMS0wKwYDVQQDDCQ2ODJhZTMx\nN18yNjE2XzRjM2ZfOWFiYV9lNjBkNzI4ZGViMTcxFDASBgNVBAsMC0tERSBDb25u\nZWN0MQwwCgYDVQQKDANLREUwHhcNMjMxMjA0MjMwMDAwWhcNMzQxMjA0MjMwMDAw\nWjBTMS0wKwYDVQQDDCQ2ODJhZTMxN18yNjE2XzRjM2ZfOWFiYV9lNjBkNzI4ZGVi\nMTcxFDASBgNVBAsMC0tERSBDb25uZWN0MQwwCgYDVQQKDANLREUwWTATBgcqhkjO\nPQIBBggqhkjOPQMBBwNCAASjuADVSsWX8CiEXgJkYdJM8uWqNvyHXIAAiQpZFd27\na0NgykjTNt/5BBFvC/B1XqWqCkiPBTA8/JZPapHmTXtxMAoGCCqGSM49BAMEA0gA\nMEUCIQCtijjl7OlMIySAZcLvXcGXDHRuLlHs8retRJZ5OGxfEQIgaQRPWwgfa97E\nKevPWgNyS9PEw05GxNBa2elcUJsVL3A=\n-----END CERTIFICATE-----\n"
|
||||
name=Pixel 8a
|
||||
protocolVersion=8
|
||||
type=phone
|
||||
21
.config/nixpkgs/home.nix
Normal file
21
.config/nixpkgs/home.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletions = true;
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
update = "sudo nixos-rebuild switch";
|
||||
alias vim="nvim";
|
||||
alias cls="clear";
|
||||
alias femboy="echo '$USER is a femboy'";
|
||||
alias shut="shutdown now";
|
||||
alias re="reboot";
|
||||
alias ls="exa";
|
||||
alias switchhack="fusee-nano ~/Downloads/switchhack/hekate_ctcaer_6.3.0.bin";
|
||||
alias ssh_t='(){ ssh $1 -t tmux;}';
|
||||
alias sshserver="ssh -i ~/.ssh/GlaServer00 glala@81.21.121.109";
|
||||
};
|
||||
history.size = 10000;
|
||||
};
|
||||
67
.config/ohmyposh/catppuccin.json
Normal file
67
.config/ohmyposh/catppuccin.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"palette": {
|
||||
"os": "#ACB0BE",
|
||||
"closer": "p:os",
|
||||
"pink": "#ea76cb",
|
||||
"lavender": "#7287FD",
|
||||
"blue": "#1e66f5"
|
||||
},
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "p:os",
|
||||
"style": "plain",
|
||||
"template": "{{.Icon}} ",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"foreground": "p:lavender",
|
||||
"style": "plain",
|
||||
"template": "{{ .UserName }} ",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "p:pink",
|
||||
"properties": {
|
||||
"folder_icon": "..\ue5fe..",
|
||||
"home_icon": "~",
|
||||
"style": "agnoster_short"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "p:lavender",
|
||||
"properties": {
|
||||
"branch_icon": "\ue725 ",
|
||||
"cherry_pick_icon": "\ue29b ",
|
||||
"commit_icon": "\uf417 ",
|
||||
"fetch_status": false,
|
||||
"fetch_upstream_icon": false,
|
||||
"merge_icon": "\ue727 ",
|
||||
"no_commits_icon": "\uf0c3 ",
|
||||
"rebase_icon": "\ue728 ",
|
||||
"revert_icon": "\uf0e2 ",
|
||||
"tag_icon": "\uf412 "
|
||||
},
|
||||
"template": "{{ .HEAD }} ",
|
||||
"style": "plain",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"style": "plain",
|
||||
"foreground": "p:closer",
|
||||
"template": "\uf105",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"final_space": true,
|
||||
"version": 3
|
||||
}
|
||||
71
.config/ohmyposh/zen.toml
Normal file
71
.config/ohmyposh/zen.toml
Normal file
@@ -0,0 +1,71 @@
|
||||
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
|
||||
final_space = true
|
||||
version = 3
|
||||
|
||||
[palette]
|
||||
os = "#4c4f69"
|
||||
closer = "p:os"
|
||||
pink = "#dd7878"
|
||||
lavender = "#7287FD"
|
||||
blue = "#209fb5"
|
||||
green = "#40a02b"
|
||||
|
||||
[[blocks]]
|
||||
alignment = "left"
|
||||
type = "prompt"
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = "p:os"
|
||||
style = "plain"
|
||||
template = "{{.Icon}} "
|
||||
type = "os"
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = "p:lavender"
|
||||
style = "plain"
|
||||
template = "{{ .UserName }} "
|
||||
type = "session"
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = "p:pink"
|
||||
style = "plain"
|
||||
template = "{{ .Path }}"
|
||||
type = "path"
|
||||
[blocks.segments.properties]
|
||||
style = "full"
|
||||
home_icon = "~"
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = "p:lavender"
|
||||
template = "{{ .HEAD }} "
|
||||
style = "plain"
|
||||
type = "git"
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = " "
|
||||
cherry_pick_icon = " "
|
||||
commit_icon = " "
|
||||
fetch_status = false
|
||||
fetch_upstream_icon = false
|
||||
merge_icon = " "
|
||||
no_commits_icon = " "
|
||||
rebase_icon = " "
|
||||
revert_icon = " "
|
||||
tag_icon = " "
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
style = "plain"
|
||||
foreground = "p:green"
|
||||
template = "-"
|
||||
type = "text"
|
||||
|
||||
[transient_prompt]
|
||||
background = "transparent"
|
||||
foreground = "p:pink"
|
||||
template = " - "
|
||||
|
||||
74
.config/ohmyposh/zen.toml.bak
Normal file
74
.config/ohmyposh/zen.toml.bak
Normal file
@@ -0,0 +1,74 @@
|
||||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
|
||||
version = 2
|
||||
final_space = true
|
||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = 'blue'
|
||||
template = '{{ .Path }}'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'full'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
foreground = 'p:grey'
|
||||
background = 'transparent'
|
||||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ''
|
||||
commit_icon = '@'
|
||||
fetch_status = true
|
||||
|
||||
[[blocks]]
|
||||
type = 'rprompt'
|
||||
overflow = 'hidden'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'executiontime'
|
||||
style = 'plain'
|
||||
foreground = 'yellow'
|
||||
background = 'transparent'
|
||||
template = '{{ .FormattedMs }}'
|
||||
|
||||
[blocks.segments.properties]
|
||||
threshold = 5000
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}red{{end}}",
|
||||
"{{if eq .Code 0}}magenta{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯'
|
||||
|
||||
[transient_prompt]
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}red{{end}}",
|
||||
"{{if eq .Code 0}}magenta{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯ '
|
||||
|
||||
[secondary_prompt]
|
||||
foreground = 'magenta'
|
||||
background = 'transparent'
|
||||
template = '❯❯ '
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
.config/tmux/plugins
|
||||
.stfolder
|
||||
|
||||
63
.zshrc
63
.zshrc
@@ -1,36 +1,38 @@
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
|
||||
if [ ! -d "$ZINIT_HOME" ]; then
|
||||
mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
fi
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
|
||||
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
||||
|
||||
# add in zsh plugins
|
||||
|
||||
zinit light zsh-users/zsh-syntax-highlighting
|
||||
zinit light zsh-users/zsh-completions
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
zinit light Aloxaf/fzf-tab
|
||||
|
||||
# Add in snippets
|
||||
zinit snippet OMZL::git.zsh
|
||||
zinit snippet OMZP::git
|
||||
zinit snippet OMZP::sudo
|
||||
zinit snippet OMZP::command-not-found
|
||||
zinit snippet OMZP::ssh
|
||||
zinit snippet OMZP::kitty
|
||||
|
||||
# Load completions
|
||||
autoload -U compinit && compinit
|
||||
autoload -Uz compinit && compinit -C
|
||||
|
||||
zinit cdreplay -q
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
bindkey '^[[A' history-search-backward
|
||||
bindkey '^[[B' history-search-forward
|
||||
bindkey -e
|
||||
bindkey "${key[Up]}" history-search-backward
|
||||
bindkey "${key[Down]}" history-search-forward
|
||||
|
||||
# History
|
||||
HISTSIZE=10000
|
||||
HISTSIZE=5000
|
||||
HISTFILE=~/.zsh_history
|
||||
SAVEHIST=$HISTSIZE
|
||||
HISTDUP=erase
|
||||
@@ -42,19 +44,6 @@ setopt hist_save_no_dups
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_find_no_dups
|
||||
|
||||
# Add in snippets
|
||||
zinit snippet OMZL::git.zsh
|
||||
zinit snippet OMZP::git
|
||||
zinit snippet OMZP::sudo
|
||||
zinit snippet OMZP::archlinux
|
||||
zinit snippet OMZP::kubectl
|
||||
zinit snippet OMZP::kubectx
|
||||
zinit snippet OMZP::command-not-found
|
||||
zinit snippet OMZP::ssh
|
||||
zinit snippet OMZP::kitty
|
||||
zinit snippet OMZP::tldr
|
||||
zinit snippet OMZP::docker-compose
|
||||
|
||||
# Completion styling
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
@@ -62,26 +51,18 @@ zstyle ':completion:*' menu no
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
||||
|
||||
export EDITOR=nvim
|
||||
# Aliase
|
||||
alias vim="nvim"
|
||||
alias cls="clear"
|
||||
alias update="yay -Syu --noconfirm"
|
||||
alias femboy="echo '$USER is a femboy'"
|
||||
alias shut="shutdown now"
|
||||
alias re="reboot"
|
||||
alias dragon-drop="GDK_BACKEND=x11 dragon-drop"
|
||||
alias ls="exa"
|
||||
export EDITOR=nvim
|
||||
alias switchhack="fusee-nano ~/Downloads/switchhack/hekate_ctcaer_6.3.0.bin"
|
||||
alias moonpi='ssh 192.168.178.145 "SDL_AUDIODRIVER=alsa moonlight-qt stream -1080 -fps 60 --audio-on-host 192.168.178.25 "BigPicture""'
|
||||
alias ssh_t='(){ ssh $1 -t tmux;}'
|
||||
alias shutmoonpi='ssh 192.168.178.35 "moonlight-qt quit 192.168.178.25 "BigPicture"; killall moonlight-qt"'
|
||||
alias sshserver="ssh -i ~/.ssh/GlaServer00 glala@81.21.121.109"
|
||||
|
||||
eval "$(fzf --zsh)"
|
||||
eval "$(zoxide init --cmd cd zsh)"
|
||||
|
||||
## [Completion]
|
||||
## Completion scripts setup. Remove the following line to uninstall
|
||||
[[ -f /home/glala/.dart-cli-completion/zsh-config.zsh ]] && . /home/glala/.dart-cli-completion/zsh-config.zsh || true
|
||||
## [/Completion]
|
||||
|
||||
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/zen.toml)"
|
||||
|
||||
Reference in New Issue
Block a user