custom-hypr - zip histfile

This commit is contained in:
huyjaky
2024-10-22 08:44:30 +07:00
parent 3655aef8e9
commit 88d7f4f286
15 changed files with 0 additions and 2945 deletions

File diff suppressed because it is too large Load Diff

BIN
.config/.histfile.zip Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,91 +0,0 @@
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# set -g default-terminal "screen-256color"
set-option -g focus-events on
set -g prefix C-b
# unbind C-b
bind-key C-b send-prefix
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
unbind r
bind r source-file ~/.tmux.conf
bind j resize-pane -D 5
bind k resize-pane -U 5
bind l resize-pane -R 5
bind h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse
# remove delay for exiting insert mode with ESC in Neovim
set -sg escape-time 10
# tpm plugin
set -g @plugin 'catppuccin/tmux'
# set -g @plugin 'xamut/tmux-weather'
set -g @plugin 'tmux-plugins/tpm'
# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
# set -g @plugin 'fabioluciano/tmux-tokyo-night'
# run ~/.tmux/plugins/catppuccin/catppuccin.tmux
# NOTE: ...alongside
set -g @catppuccin_flavour "mocha"
set -g @catppuccin_window_left_separator " "
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator "|"
# set -g @catppuccin_window_middle_separator ""
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "all"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"
set -g @catppuccin_status_modules_right "user host"
set -g @catppuccin_status_modules_left "session "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_left_separator " "
# set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_middle_separator "|"
set -g @catppuccin_status_fill "all"
set -g @catppuccin_status_connect_separator "yes"
set -g @catppuccin_window_status_icon_enable "yes"
set -g @catppuccin_window_status_enable "yes"
set -g @catppuccin_status_default "on"
# icons
set -g @catppuccin_icon_window_last " 󰃀 "
set -g @catppuccin_icon_window_current "  "
set -g status-position top
# set -g @catppuccin_directory_text "#{pane_current_path}"
# end it
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

View File

@@ -1,149 +0,0 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# zmodload zsh/zprof
# export TERM=screen-256color
export PYOPENGL_PLATFORM=osmesa
# export GTK_IM_MODULE=fcitx
# export QT_IM_MODULE=fcitx
# export XMODIFIERS=@im=fcitx
SESSION_NAME="duckq"
# Check if already inside a tmux session
if [ -n "$TMUX" ]; then
echo ""
else
# Check if the tmux session already exists
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
# Attach to the existing tmux session
tmux attach-session -t $SESSION_NAME
else
# Start a new tmux session
tmux new-session -d -s $SESSION_NAME
tmux attach-session -t $SESSION_NAME
fi
fi
# HACK: Config auto-suggestion as well as oh-my-posh
eval "$(oh-my-posh init zsh --config ~/montys.omp.json)"
# HACK: Export ENV
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# HACK: Config Zinit
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
# HACK: NVM config init
# Initialize fast node manager (fnm)
export NVM_LAZY=1
export NVM_AUTO_USE=false
[[ $(command -v "fnm") ]] && eval "$(fnm env --use-on-cd --log-level=quiet)"
# load my nvm to fnm shim
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# HACK: Shell intergrations
eval eval "$(fzf --zsh)"
# NOTE: 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
# HACK: Load completions
autoload -U compinit && compinit
# HACK: Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=$HISTSIZE
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
# End of lines configured by zsh-newuser-install
# HACK: Completion styling
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
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'
# HACK: Alias config area
alias nv='nvim'
alias lz='lazygit'
# alias la='eza --color=always --long --git --no-filesize --icons=always --no-time --no-permissions -a'
alias la='eza -a --icons=always --color=always --git'
alias hh='cd ~'
alias tmat='tmux at -t'
alias tmdt='tmux detach'
alias showport='sudo lsof -i -P -n | grep LISTEN'
alias shutdown='sudo shutdown -h +60'
alias docs='cd ~/Documents/'
appearance(){
pokemon-colorscripts -n charizard -f mega-x
cat ~/.conda/environments.txt
}
cls(){
clear
appearance
}
rs(){
zsh
appearance
}
reloadbar(){
exec
killall ags ydotool
ags &
}
alias listpkg='pacman -Qm'
# HACK: init tmux
# tmat duckq
# HACK: Init command
#
# Display Pokemon-colorscripts
# Project page: https://gitlab.com/phoneybadger/pokemon-colorscripts#on-other-distros-and-macos
pokemon-colorscripts -n charizard -f mega-x
cat ~/.conda/environments.txt
# HACK: Keybindings
bindkey '^g' autosuggest-accept
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
bindkey '^[w' kill-region
# zprof
# conda env list
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/duckq1/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/duckq1u/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/duckq1u/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/duckq1u/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
conda activate pytorch

View File

@@ -1,59 +0,0 @@
# install from nerdfont
font_family JetBrainsMonoNL NF SemiBold
# bold_font JetBrainsMonoNF
italic_font VictorMono NF SemiBold Italic
# bold_italic_font FiraCode Italic
font_size 14
background_image ~/Pictures/ImgsDownloadsFromBr/BgKittyGif/convert.png
background_image_layout cscaled
background_tint 0.988
input_delay 0
repaint_delay 0
sync_to_monitor yes
wayland_enable_ime no
enable_audio_bell no
# Disable tab bar
tab_bar_edge none
# Unmap the default tab shortcuts
map ctrl+shift+t none
map ctrl+shift+w none
map ctrl+shift+left none
map ctrl+shift+right none
map ctrl+shift+up none
map ctrl+shift+down none
map ctrl+shift+n none
map cmd+c copy_to_clipboard
map cmd+v paste_from_clipboard
map ctrl+shift+s paste_from_selection
background #000000
foreground #ffffff
cursor #bbbbbb
selection_background #b5d5ff
color0 #000000
color8 #545454
color1 #ff5555
color9 #ff5555
color2 #55ff55
color10 #55ff55
color3 #ffff55
color11 #ffff55
color4 #55ffff
color12 #55ffff
color6 #5555ff
color14 #5555ff
color5 #ff55ff
color13 #ff55ff
color7 #bbbbbb
color15 #ffffff
selection_foreground #000000

View File

@@ -1,21 +0,0 @@
${c1}
⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉⠹
⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇⠀
⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇⠀
⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇⠀
⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇⠀
⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀⣰
⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷
⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇
⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕⢽
⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕
⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕
⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀⢕
⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄
⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕
⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿
⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟
⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠
⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙
⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣

View File

@@ -1,92 +0,0 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#003543",
"foreground": "#00c983",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": " <>\uebd8 \ueb27 \ue62c \ue62f</> {{ .Icon }} {{ .UserName }} ",
"type": "os"
},
{
"background": "#DA627D",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "\uf115",
"folder_separator_icon": "\\",
"home_icon": "",
"style": "full"
},
"style": "powerline",
"template": "{{ .Path }}",
"type": "path"
},
{
"background": "#FCA17D",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": " <#ffffff>\udb80\udea2 </>",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": "{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#76b367",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": " {{ if gt .Code 0 }}\uf421{{ else }}\ue761 \ue77a{{ end }} ",
"trailing_diamond": "\ue0b4 \ue748 ",
"type": "status"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#cd5e42",
"style": "plain",
"template": "\ue3bf ",
"type": "root"
},
{
"foreground": "#CD4277",
"style": "plain",
"template": " <#45F1C2> \uf20f \ued33 \ue648 \uf373 \uf35c |<#26C6DA>\uf0a4</>",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}

View File

@@ -1,4 +0,0 @@
# You can put extra environment variables here
# https://wiki.hyprland.org/Configuring/Environment-variables/
#

View File

@@ -1,4 +0,0 @@
# You can make apps auto-start here
# Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing
#
exec-once = corectrl

View File

@@ -1,77 +0,0 @@
# Put general config stuff here
# Here's a list of every variable: https://wiki.hyprland.org/Configuring/Variables/
monitor = DP-1, highres, 0x0, 1
monitor = HDMI-A-1, highres, 1920x0, 1
decoration {
blur {
enabled = false
}
drop_shadow = false
}
input {
kb_layout = us
kb_variant = ,qwerty
# kb_options = grp:alt_shift_toggle
kb_options = grp:win_space_toggle
repeat_delay = 155
repeat_rate = 55
}
general {
# Gaps and border
gaps_in = 4
gaps_out = 4
border_size = 6
# Fallback colors
col.active_border = rgba(0DB7D4FF) rgba(7AA2F7FF) rgba(9778D0FF) rgb(24C6DC) rgb(93EDC7) 45deg
col.inactive_border = rgba(12131CFF)
# Functionality
# resize_on_border = true
layout = master
}
dwindle {
preserve_split = true # you probably want this
#no_gaps_when_only = true
smart_resizing = false
}
misc {
background_color = rgba(12131CFF)
vfr = true
}
plugin {
hyprbars {
# Honestly idk if it works like css, but well, why not
bar_text_font = VictorMono NF SemiBold Italic
bar_text_size = 18
bar_height = 30
bar_padding = 10
bar_button_padding = 15
bar_precedence_over_border = false
bar_part_of_window = false
bar_color = rgba(12131CFF)
col.text = rgba(E2E1EFFF)
# example buttons (R -> L)
# hyprbars-button = color, size, on-click
hyprbars-button = rgba(12131CFF), 25, 󰖭, hyprctl dispatch killactive
hyprbars-button = rgba(12131CFF), 25,  , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
}
}

View File

@@ -1,66 +0,0 @@
# You can put your preferred keybinds here
# https://wiki.hyprland.org/Configuring/Binds/
unbind = Super, W
unbind = Super, T
unbind = Alt, E
# disbale side
unbind = Super, B
unbind = Super, M
unbind = Super, N
unbind = Super, E
# monve workspace
unbind = Super, H
unbind = Super, J
unbind = Super, K
unbind = Super, L
# move windown
bind = Alt, H, fullscreenstate, 0 # [hidden]
bind = Alt, H, movefocus, l # [hidden]
bind = Alt, L, fullscreenstate, 0 # [hidden]
bind = Alt, L, movefocus, r # [hidden]
bind = Alt, K, fullscreenstate, 0 # [hidden]
bind = Alt, K, movefocus, u # [hidden]
bind = Alt, J, fullscreenstate, 0 # [hidden]
bind = Alt, J, movefocus, d # [hidden]
##! Window arrangement
#/# bind = Super+Shift, ←/↑/→/↓,, # Window: move in direction
bind = Ctrl+Alt, H, fullscreenstate, 0 # [hidden]
bind = Ctrl+Alt, H, movewindow, l # [hidden]
bind = Ctrl+Alt, L, fullscreenstate, 0 # [hidden]
bind = Ctrl+Alt, L, movewindow, r # [hidden]
bind = Ctrl+Alt, K, movewindow, u # [hidden]
bind = Ctrl+Alt, J, movewindow, d # [hidden]
bind = Ctrl+Alt, M, exec, pavucontrol # Launch pavucontrol (volume mixer)
bind = Alt, Q, killactive,
bind = Alt, F, fullscreen, 1
bind = Alt, R, exec, killall ags ydotool; ags & # Restart widgets
bind = Alt, E, exec, nautilus --new-window # Launch Nautilus (file manager)
bind = Alt, M, exec, ags run-js 'openMusicControls.value = (!mpris.getPlayer() ? false : !openMusicControls.value);' # Toggle music controls
bind = Alt, N, exec, ags -t 'sideright' # Toggle right sidebar
bind = Alt, T, exec, kitty
bind = Alt, B, exec, brave
bind = Alt, O, exec, obsidian --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
bind = Alt, V, exec, vesktop --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
# bind = Ctrl+Super+Shift, Right, movetoworkspace, +1 # [hidden]
bind = Shift+Alt, L, focusmonitor, 1
bind = Shift+Alt, H, focusmonitor, 0
bindl= Super, H, exec, playerctl previous # Previous track
bindl= Super, L, exec, playerctl play-pause # Play/pause media
bindl= Super, K, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` # Next track

View File

@@ -1,9 +0,0 @@
# You can put custom rules here
# Window/layer rules: https://wiki.hyprland.org/Configuring/Window-Rules/
# Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/
#
windowrulev2 = bordercolor rgb(c21500) rgb(d53369) rgb(F2994A) rgb(F2C94C) 45deg,fullscreen:1
# windowrulev2 = nofocus, ^(Ibus-ui-gtk3)$
# windowrulev2 = nofocus, ^(Ibus-ui-gtk5)$
# windowrulev2 = nofocus, ^(Ibus-ui-gtk4)$
# windowrulev2=nofocus,ibus-ui

View File

@@ -1,25 +0,0 @@
# Get the window identifiers from hyprctl clients
window_ids=$(hyprctl clients | grep 'pid:' | awk '{print $2}')
prev_monitor=$(hyprctl clients | grep 'monitor:' | awk '{print $2}')
hyprctl dispatch movewindow l
current_monitor=$(hyprctl clients | grep 'monitor:' | awk '{print $2}')
echo $prev_monitor
echo $current_monitor
if [[ $prev_monitor != $current_monitor ]]
then
# Loop through each window ID and set it to fullscreen
# for win_id in $window_ids
# do
#
# hyprctl dispatch movefocus $win_id
# hyprctl dispatch fullscreenstate 0
# done
#
hyprctl dispatch bringactivetotop
else
hyprctl dispatch fullscreenstate 0
fi

View File

@@ -1,20 +0,0 @@
# Get the window identifiers from hyprctl clients
window_ids=$(hyprctl clients | grep 'pid:' | awk '{print $2}')
prev_monitor=$(hyprctl clients | grep 'monitor:' | awk '{print $2}')
hyprctl dispatch movewindow r
current_monitor=$(hyprctl clients | grep 'monitor:' | awk '{print $2}')
if [[ $prev_monitor != $current_monitor ]]
then
# Loop through each window ID and set it to fullscreen
for win_id in $window_ids
do
hyprctl dispatch fullscreenstate 0 $win_id
echo done
done
else
hyprctl dispatch fullscreenstate 0
fi