Compare commits

..

No commits in common. "c1f43386ae17f9594daf46fb3c872c0caf0a072d" and "070a3b74c790a9260f6a7e1c83a4f23e1d303259" have entirely different histories.

9 changed files with 51 additions and 136 deletions

View File

@ -10,9 +10,6 @@ xset dpms 0 0 0
xset s off
xset s noblank
# set scaling to 1.25
xrandr --dpi 120
# Load xresources
xrdb $HOME/.config/X11/xresources

View File

@ -1,57 +1,10 @@
! 1.25 dpi
Xft.dpi: 120
URxvt.*font: xft:CaskaydiaCove Nerd Font:size=11,xft:Noto Sans:size=11,xft:Noto Color Emoji:size=11,xft:IPAGothic:size=11
! These might also be useful depending on your monitor and personal preference: Xft.autohint: 0 Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
URxvt.letterSpace: -1
! special
URxvt.background: #303446
URxvt.foreground: #C6D0F5
URxvt.cursorColor: #F2D5CF
! black
URxvt.color0: #51576D
URxvt.color8: #626880
! red
URxvt.color1: #E78284
URxvt.color9: #E78284
! green
URxvt.color2: #A6D189
URxvt.color10: #A6D189
! yellow
URxvt.color3: #E5C890
URxvt.color11: #E5C890
! blue
URxvt.color4: #8CAAEE
URxvt.color12: #8CAAEE
! magenta
URxvt.color5: #F4B8E4
URxvt.color13: #F4B8E4
! cyan
URxvt.color6: #81C8BE
URxvt.color14: #81C8BE
! white
URxvt.color7: #B5BFE2
URxvt.color15: #A5ADCE
!! URxvt Appearance
!! URxvt.letterSpace: 0
URxvt.lineSpace: 0
URxvt.geometry: 92x24
URxvt.internalBorder: 24
URxvt.cursorBlink: true
URxvt.cursorUnderline: false
URxvt.saveline: 2048
URxvt.scrollBar: false
URxvt.scrollBar_right: false
URxvt.urgentOnBell: true
URxvt.depth: 24
URxvt.iso14755: false
URxvt.*font: xft:Comic Code Ligatures:size=14,xft:Symbols Nerd Font:size=14

View File

@ -15,21 +15,21 @@ window:
font:
normal:
family: CaskaydiaCove Nerd Font
family: JetBrainsMono Nerd Font
style: Regular
bold:
family: CaskaydiaCove Nerd Font
family: JetBrainsMono Nerd Font
style: Bold
italic:
family: CaskaydiaCove Nerd Font
family: JetBrainsMono Nerd Font
style: Italic
bold_italic:
family: CaskaydiaCove Nerd Font
family: JetBrainsMono Nerd Font
style: Bold Italic

View File

@ -25,8 +25,8 @@ c.colors.webpage.bg = "black"
c.colors.webpage.darkmode.algorithm = "lightness-cielab"
c.colors.webpage.darkmode.threshold.text = 150
c.colors.webpage.darkmode.threshold.background = 100
c.colors.webpage.darkmode.policy.images = "never"
# c.colors.webpage.darkmode.grayscale.images = 0.35
c.colors.webpage.darkmode.policy.images = "always"
c.colors.webpage.darkmode.grayscale.images = 0.35
# change startpage and default page
c.url.start_pages = ["https://startpage.cronyakatsuki.xyz"]
@ -105,24 +105,22 @@ c.aliases["buku"] = "spawn --userscript buku"
##-- Bindings --##
# launch with mpv
config.bind(",m", "spawn mpv {url}")
config.bind(",fm", "hint links spawn mpv {hint-url}")
config.bind("<Space>m", "spawn mpv {url}")
config.bind("<Space>fm", "hint links spawn mpv {hint-url}")
# buku bundings
config.bind("b", "buku open")
config.bind("B", "buku open -t")
config.bind(",ba", "buku add")
config.bind(",be", "buku edit")
config.bind(",bd", "buku delete")
config.bind(",bfa", "hint links spawn --userscript buku add")
config.bind("<Space>ba", "buku add")
config.bind("<Space>be", "buku edit")
config.bind("<Space>bd", "buku delete")
# yt-dlp
config.bind(",y", "spawn --userscript yt-dlp")
config.bind(",fy", "hint links userscript yt-dlp")
config.bind("<Space>y", "spawn --userscript yt-dlp")
config.bind("<Space>fy", "hint links userscript yt-dlp")
# search current selection
config.bind(",fo", "open {primary}")
config.bind(",fO", "open --tab {primary}")
config.bind("<Space>f", "open {primary}")
config.bind("<Space>F", "open --tab {primary}")
# yank found url
config.bind("yf", "hint links yank")
@ -133,16 +131,13 @@ config.bind(
)
# fix scrolling
config.bind("j", "jseval --quiet scrollHelper.scrollBy(50)")
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-50)")
config.bind("j", "jseval --quiet scrollHelper.scrollBy(200)")
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-200)")
config.bind("<Ctrl-D>", "jseval --quiet scrollHelper.scrollPage(0.8)")
config.bind("<Ctrl-U>", "jseval --quiet scrollHelper.scrollPage(-0.8)")
config.bind("gg", "jseval --quiet scrollHelper.scrollTo(0)")
config.bind("G", "jseval --quiet scrollHelper.scrollToPercent(100)")
# KeePassXC binding
config.bind('pw', 'spawn --userscript qute-keepassxc --key crony@cronyakatsuki.xyz')
# remove clickbard and gdpr banners
config.bind(
"ek",
@ -159,32 +154,9 @@ config.bind(
)
##-- Font Settings --##
c.fonts.default_family = '"Dejavu Sans Mono"'
c.fonts.default_size = "10pt"
c.fonts.default_family = '"Source Code Pro"'
c.fonts.default_size = "11pt"
c.fonts.completion.entry = 'default_size "default_family"'
c.fonts.debug_console = 'default_size "default_family"'
c.fonts.prompts = "default_size default_family"
c.fonts.statusbar = 'default_size "default_family"'
##-- FilePicker (nnn on crrack)--##
fileselect_cmd = [
"alacritty",
"--class",
"filepicker,filepicker",
"-e",
"tmux",
"new",
"-s",
"filepicker",
"env",
"LC_COLLATE=C",
"nnn",
"-P",
"p",
"-p",
"{}",
]
c.fileselect.handler = "external"
c.fileselect.folder.command = fileselect_cmd
c.fileselect.single_file.command = fileselect_cmd
c.fileselect.multiple_files.command = fileselect_cmd

View File

@ -29,8 +29,10 @@ super + Return
$TERMINAL
# Browser run
super + {_, shift + }b
{$BROWSER, librewolf}
# super + {_, shift + }b
super + b
$BROWSER
# {$BROWSER, librewolf -P unsecure}
# Gui Programs
super g; l

View File

@ -33,10 +33,11 @@ bind '"' split-window -v -c "#{pane_current_path}"
bind '\' split-window -h -c "#{pane_current_path}"
# Floating popup keybindings
bind-key t run-shell 'tmux-popup zsh'
bind-key g run-shell 'tmux-popup lazygit'
bind-key f run-shell 'tmux-popup nnn'
bind-key h run-shell 'tmux-popup htop'
bind-key t run-shell 'tmux-popup t'
bind-key g run-shell 'tmux-popup t'
# Vim keybindings for pane movement
setw -g mode-keys vi
@ -53,23 +54,22 @@ set -g detach-on-destroy off
# Catppuccin settings
set -g @catppuccin_flavour 'frappe'
set -g @catppuccin_window_right_separator "█ "
set -g @catppuccin_window_left_separator "█"
set -g @catppuccin_window_right_separator "█ "
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_middle_separator " | "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_default_fill "none"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_current_fill "all"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#{pane_current_path}"
set -g @catppuccin_status_modules_right "application session date_time"
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator "█"
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M"
# Status bar border
setw -g pane-border-status top
setw -g pane-border-format '─'
set -g @catppuccin_status_modules "application session date_time"
set -g @catppuccin_status_left_separator ""
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_right_separator_inverse "yes"
set -g @catppuccin_status_fill "all"
set -g @catppuccin_status_connect_separator "no"
# Bar to top
set-option -g status-position top
@ -80,7 +80,6 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'wfxr/tmux-fzf-url'
run '~/.tmux/plugins/tpm/tpm'

View File

@ -4,11 +4,10 @@ pfetch
eval "$(starship init zsh)"
# Startup zoxide
eval "$(zoxide init zsh)"
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
zstyle ':completion:*' rehash true
# Plugins
plug "kutsan/zsh-system-clipboard"
plug "hlissner/zsh-autopair"
@ -18,14 +17,12 @@ plug "zap-zsh/vim"
plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-completions"
plug "chivalryq/git-alias"
plug "zap-zsh/fzf"
plug "zap-zsh/magic-enter"
plug "zdharma-continuum/fast-syntax-highlighting"
plug "zsh-users/zsh-history-substring-search"
plug "MichaelAquilina/zsh-you-should-use"
# VI Mode escape timeout fix
export KEYTIMEOUT=1
# Startup zoxide
eval "$(zoxide init zsh)"
# Substring search settings
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
@ -33,7 +30,7 @@ export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold'
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# Zsh System keyboard settings
# Plugin settings
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
ZSH_SYSTEM_CLIPBOARD_METHOD="xsc"
else
@ -45,12 +42,12 @@ plug "$XDG_CONFIG_HOME/zsh/aliases.zsh"
plug "$XDG_CONFIG_HOME/zsh/functions.zsh"
# History settings
setopt appendhistory
setopt INC_APPEND_HISTORY
export HISTTIMEFORMAT="[%F %T]"
HISTFILE="$XDG_STATE_HOME"/zsh/history
# Add nnn shell level to prompt
[ -n "$NNNLVL" ] && PS1="N$NNNLVL $PS1"
# cd on nnn quiting
@ -67,7 +64,3 @@ trap nnn_cd EXIT
if [ ! -z "$TMUX" ] && [ -d "./env" ]; then
. ./env/bin/activate
fi
# Magic enter settings
MAGIC_ENTER_GIT_COMMAND='gst -u'
MAGIC_ENTER_OTHER_COMMAND='ls'

View File

@ -31,9 +31,7 @@ alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
alias dust='du -hd1 | sort -hr | sed "s/.\///g" | sed "/\.$/d"'
# Who want to remember this long ass commands
alias ytao='yt-dlp -f "bestaudio/best" -ciw -o "%(title)s.%(ext)s" -v --extract-audio --embed-metadata'
alias ytaop='yt-dlp -f "bestaudio/best" -ciw -o "%(playlist_title)s/%(title)s.%(ext)s" -v --extract-audio --embed-metadata'
alias ytam='yt-dlp -f "bestaudio/best" -ciw -o "%(title)s.%(ext)s" -v --extract-audio --audio-quality 0 --audio-format mp3 --embed-metadata'
alias yta='yt-dlp -x -f bestaudio --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --audio-format vorbis -o "%(title)s.%(ext)s"'
alias ytvb='yt-dlp --merge-output-format mp4 -f "bestvideo+bestaudio[ext=m4a]/best" --embed-thumbnail --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --add-metadata -o "%(title)s.%(ext)s"'
alias ytvf='yt-dlp --merge-output-format mp4 --format best --embed-thumbnail --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --add-metadata -o "%(title)s.%(ext)s"'

View File

@ -25,6 +25,7 @@ export NNN_FIFO="/tmp/nnn.fifo"
export NNN_PLUG="s:!zsh -i*;u:nmount;c:chksum;r:gitroot;v:imgview;m:mtpmount;d:xdgdefault;x:togglex;p:preview-tui"
export NNN_SSHFS="sshfs -o follow_symlinks"
export NNN_TERMINAL="alacritty --class preview,preview"
export NNN_OPENER="nuke"
# Catppuccin colors nnn
BLK="03" CHR="03" DIR="04" EXE="02" REG="07" HARDLINK="05" SYMLINK="05" MISSING="08" ORPHAN="01" FIFO="06" SOCK="03" UNKNOWN="01"