1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-22 10:51:49 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Ryan
883cb1b4e3 Add neovim as submodule 2024-03-04 20:20:38 +08:00
Ryan
4b54e90d38 feat(sway): !use fish 2024-03-04 19:58:33 +08:00
Ryan
6dd98e964e feat(kitty): Clean up redundant configs. 2024-03-04 19:58:07 +08:00
Ryan
96281526f5 feat(waybar): better calendar 2024-03-03 14:10:09 +08:00
9 changed files with 137 additions and 80 deletions

23
.bashrc Normal file
View File

@ -0,0 +1,23 @@
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Put your fun stuff here.
# https://wiki.gentoo.org/wiki/Fish#fish_as_a_default_shell_with_bash_as_the_login_shell
# Use fish in place of bash
# keep this line at the bottom of ~/.bashrc
[ -x /bin/fish ] && SHELL=/bin/fish exec fish

View File

@ -6,12 +6,6 @@ bold_italic_font Iosevka Term SS15 Bold Italic
font_size 14 font_size 14
symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0-U+E0C8,U+E0CC-U+E0CF,U+E0D0-U+E0D2,U+E0D4,U+E700-U+E7C5,U+F000-U+F2E0,U+2665,U+26A1,U+F400-U+F4A8,U+F67C,U+E000-U+E00A,U+F300-U+F313,U+E5FA-U+E62B Symbols Nerd Font Mono
# Performance
sync_to_monitor yes
# shell stuff # shell stuff
shell_integration enabled shell_integration enabled

View File

@ -7,3 +7,14 @@ action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH}
protocol file protocol file
mime inode/directory mime inode/directory
action launch --type=os-window --cwd $FILE_PATH action launch --type=os-window --cwd $FILE_PATH
# Open any file with a fragment in vim, fragments are generated
# by the hyperlink_grep kitten and nothing else so far.
protocol file
fragment_matches [0-9]+
action launch --type=overlay --cwd=current nvim +${FRAGMENT} ${FILE_PATH}
# Open text files without fragments in the editor
protocol file
mime text/*
action launch --type=overlay --cwd=current ${EDITOR} ${FILE_PATH}

1
.config/nvim Submodule

@ -0,0 +1 @@
Subproject commit 2c98923861d2954c646f764bf68a56c408c32d2e

View File

@ -5,7 +5,7 @@ set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
set $term kitty -1 set $term kitty -1 /bin/fish
set $menu fuzzel set $menu fuzzel
# my keybinds # my keybinds

View File

@ -54,6 +54,7 @@ window#waybar {
#clock { #clock {
color: @foreground; color: @foreground;
font-weight: bold;
} }
#battery { #battery {

View File

@ -14,7 +14,7 @@
"format-alt": " {usage}% @ {avg_frequency}GHz" "format-alt": " {usage}% @ {avg_frequency}GHz"
}, },
"memory": { "memory": {
"format": "󰍛 {used:0.1f}G / {total:0.1f}G", "format": "󰍛 {used:0.1f} / {total:0.1f}G",
"format-alt": "󰓡 Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G" "format-alt": "󰓡 Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
}, },
"network": { "network": {
@ -35,11 +35,36 @@
"format-charging": "󰉁 {capacity}%", "format-charging": "󰉁 {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": " {capacity}%",
"format-alt": "{icon} ETA: {time}", "format-alt": "{icon} ETA: {time}",
"format-icons": ["", "", "", "", ""] "format-icons": [
"",
"",
"",
"",
""
]
}, },
"clock": { "clock": {
"format": "{:󰅐 %H:%M  %m-%d}", "format": "{:󰅐 %H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" "format-alt": "{: %m-%d}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#98971a'><b>{}</b></span>",
"days": "<span color='#ebdbb2'><b>{}</b></span>",
"weeks": "<span color='#458588'><b>W{}</b></span>",
"weekdays": "<span color='#d79921'><b>{}</b></span>",
"today": "<span color='#d65d0e'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-scroll-down": "shift_up",
"on-scroll-up": "shift_down"
}
}, },
"custom/notification": { "custom/notification": {
"tooltip": true, "tooltip": true,

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule ".config/nvim"]
path = .config/nvim
url = git@github.com:rywng/config.nvim.git

5
.zshrc
View File

@ -42,9 +42,8 @@ if ! command -v bat &> /dev/null ; then
zinit light sharkdp/bat zinit light sharkdp/bat
fi fi
zinit as"program" make'!' atclone'./direnv hook zsh > zhook.zsh' \ zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
atpull'%atclone' pick"direnv" src"zhook.zsh" for \ zinit light direnv/direnv
direnv/direnv
autoload -Uz _zinit autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit (( ${+_comps} )) && _comps[zinit]=_zinit