Compare commits

...

9 Commits

9 changed files with 136 additions and 51 deletions

View File

@ -10,6 +10,9 @@ 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,10 +1,57 @@
! 1.25 dpi
Xft.dpi: 120
! 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.*font: xft:CaskaydiaCove Nerd Font:size=11,xft:Noto Sans:size=11,xft:Noto Color Emoji:size=11,xft:IPAGothic:size=11
URxvt.*font: xft:Comic Code Ligatures:size=14,xft:Symbols Nerd Font:size=14
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

View File

@ -15,21 +15,21 @@ window:
font:
normal:
family: JetBrainsMono Nerd Font
family: CaskaydiaCove Nerd Font
style: Regular
bold:
family: JetBrainsMono Nerd Font
family: CaskaydiaCove Nerd Font
style: Bold
italic:
family: JetBrainsMono Nerd Font
family: CaskaydiaCove Nerd Font
style: Italic
bold_italic:
family: JetBrainsMono Nerd Font
family: CaskaydiaCove 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 = "always"
c.colors.webpage.darkmode.grayscale.images = 0.35
c.colors.webpage.darkmode.policy.images = "never"
# c.colors.webpage.darkmode.grayscale.images = 0.35
# change startpage and default page
c.url.start_pages = ["https://startpage.cronyakatsuki.xyz"]
@ -105,22 +105,24 @@ c.aliases["buku"] = "spawn --userscript buku"
##-- Bindings --##
# launch with mpv
config.bind("<Space>m", "spawn mpv {url}")
config.bind("<Space>fm", "hint links spawn mpv {hint-url}")
config.bind(",m", "spawn mpv {url}")
config.bind(",fm", "hint links spawn mpv {hint-url}")
# buku bundings
config.bind("b", "buku open")
config.bind("<Space>ba", "buku add")
config.bind("<Space>be", "buku edit")
config.bind("<Space>bd", "buku delete")
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")
# yt-dlp
config.bind("<Space>y", "spawn --userscript yt-dlp")
config.bind("<Space>fy", "hint links userscript yt-dlp")
config.bind(",y", "spawn --userscript yt-dlp")
config.bind(",fy", "hint links userscript yt-dlp")
# search current selection
config.bind("<Space>f", "open {primary}")
config.bind("<Space>F", "open --tab {primary}")
config.bind(",fo", "open {primary}")
config.bind(",fO", "open --tab {primary}")
# yank found url
config.bind("yf", "hint links yank")
@ -131,13 +133,16 @@ config.bind(
)
# fix scrolling
config.bind("j", "jseval --quiet scrollHelper.scrollBy(200)")
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-200)")
config.bind("j", "jseval --quiet scrollHelper.scrollBy(50)")
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-50)")
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",
@ -154,9 +159,32 @@ config.bind(
)
##-- Font Settings --##
c.fonts.default_family = '"Source Code Pro"'
c.fonts.default_size = "11pt"
c.fonts.default_family = '"Dejavu Sans Mono"'
c.fonts.default_size = "10pt"
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,10 +29,8 @@ super + Return
$TERMINAL
# Browser run
# super + {_, shift + }b
super + b
$BROWSER
# {$BROWSER, librewolf -P unsecure}
super + {_, shift + }b
{$BROWSER, librewolf}
# Gui Programs
super g; l

View File

@ -33,11 +33,10 @@ 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 g run-shell 'tmux-popup t'
bind-key t run-shell 'tmux-popup t'
# Vim keybindings for pane movement
setw -g mode-keys vi
@ -54,22 +53,23 @@ set -g detach-on-destroy off
# Catppuccin settings
set -g @catppuccin_flavour 'frappe'
set -g @catppuccin_window_left_separator "█"
set -g @catppuccin_window_right_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 "number"
set -g @catppuccin_window_default_fill "none"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#{pane_current_path}"
set -g @catppuccin_window_current_fill "all"
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"
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 '─'
# Bar to top
set-option -g status-position top
@ -80,6 +80,7 @@ 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,9 +4,10 @@ pfetch
eval "$(starship init zsh)"
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
# Startup zoxide
eval "$(zoxide init zsh)"
zstyle ':completion:*' rehash true
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
# Plugins
plug "kutsan/zsh-system-clipboard"
@ -17,12 +18,14 @@ 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"
# Startup zoxide
eval "$(zoxide init zsh)"
# VI Mode escape timeout fix
export KEYTIMEOUT=1
# Substring search settings
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
@ -30,7 +33,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
# Plugin settings
# Zsh System keyboard settings
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
ZSH_SYSTEM_CLIPBOARD_METHOD="xsc"
else
@ -42,12 +45,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
@ -64,3 +67,7 @@ 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,7 +31,9 @@ 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 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 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 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,7 +25,6 @@ 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"