mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 19:01:50 +08:00
Compare commits
No commits in common. "883cb1b4e35fdc2ca852fe54716a70d23b772da1" and "3415baa46eb0e257d83b025b3c108a754b6720a7" have entirely different histories.
883cb1b4e3
...
3415baa46e
23
.bashrc
23
.bashrc
@ -1,23 +0,0 @@
|
|||||||
# /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
|
|
@ -6,6 +6,12 @@ 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
|
||||||
|
|
||||||
|
@ -7,14 +7,3 @@ 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 +0,0 @@
|
|||||||
Subproject commit 2c98923861d2954c646f764bf68a56c408c32d2e
|
|
@ -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 /bin/fish
|
set $term kitty -1
|
||||||
set $menu fuzzel
|
set $menu fuzzel
|
||||||
|
|
||||||
# my keybinds
|
# my keybinds
|
||||||
|
@ -54,7 +54,6 @@ window#waybar {
|
|||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
color: @foreground;
|
color: @foreground;
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
|
@ -1,97 +1,72 @@
|
|||||||
{
|
{
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"show_special": true,
|
"show_special": true,
|
||||||
"on-click": "activate"
|
"on-click": "activate"
|
||||||
},
|
},
|
||||||
"sway/window": {
|
"sway/window": {
|
||||||
"max-length": 50
|
"max-length": 50
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": " {load}",
|
"format": " {load}",
|
||||||
"format-alt": " {usage}% @ {avg_frequency}GHz"
|
"format-alt": " {usage}% @ {avg_frequency}GHz"
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": " {used:0.1f} / {total:0.1f}G",
|
"format": " {used:0.1f}G / {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": {
|
||||||
"format-wifi": " {essid} ({signalStrength}%)",
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
"format-ethernet": " {ifname}",
|
"format-ethernet": " {ifname}",
|
||||||
"format-linked": " {ifname}",
|
"format-linked": " {ifname}",
|
||||||
"format-disconnected": " Disconnected",
|
"format-disconnected": " Disconnected",
|
||||||
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
||||||
"tooltip-format": "{ifname} via {gwaddr}"
|
"tooltip-format": "{ifname} via {gwaddr}"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
"good": 75,
|
"good": 75,
|
||||||
"warning": 15,
|
"warning": 15,
|
||||||
"critical": 5
|
"critical": 5
|
||||||
},
|
},
|
||||||
"format": "{icon} {capacity}%",
|
"format": "{icon} {capacity}%",
|
||||||
"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": {
|
||||||
"",
|
"format": "{: %H:%M %m-%d}",
|
||||||
"",
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||||
""
|
},
|
||||||
]
|
"custom/notification": {
|
||||||
},
|
"tooltip": true,
|
||||||
"clock": {
|
"format": "{icon}",
|
||||||
"format": "{: %H:%M}",
|
"format-icons": {
|
||||||
"format-alt": "{: %m-%d}",
|
"notification": " <span foreground='red'><sup></sup></span> <span weight=\"bold\">Unread</span>",
|
||||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
"none": " <span style=\"italic\">Empty</span>",
|
||||||
"calendar": {
|
"dnd-notification": " <span style=\"italic\">DND on</span>",
|
||||||
"mode": "year",
|
"dnd-none": " <span style=\"italic\">DND on</span>"
|
||||||
"mode-mon-col": 3,
|
},
|
||||||
"on-scroll": 1,
|
"return-type": "json",
|
||||||
"on-click-right": "mode",
|
"exec-if": "which swaync-client",
|
||||||
"format": {
|
"exec": "swaync-client -swb",
|
||||||
"months": "<span color='#98971a'><b>{}</b></span>",
|
"on-click": "swaync-client -t -sw",
|
||||||
"days": "<span color='#ebdbb2'><b>{}</b></span>",
|
"on-click-right": "swaync-client -d -sw",
|
||||||
"weeks": "<span color='#458588'><b>W{}</b></span>",
|
"escape": true
|
||||||
"weekdays": "<span color='#d79921'><b>{}</b></span>",
|
},
|
||||||
"today": "<span color='#d65d0e'><b><u>{}</u></b></span>"
|
"custom/player": {
|
||||||
}
|
"format": "{icon} <span style=\"italic\">{}</span>",
|
||||||
},
|
"format-icons": {
|
||||||
"actions": {
|
"Playing": " ",
|
||||||
"on-click-right": "mode",
|
"Paused": " "
|
||||||
"on-scroll-down": "shift_up",
|
},
|
||||||
"on-scroll-up": "shift_down"
|
"return-type": "json",
|
||||||
}
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{markup_escape(title)}} - {{markup_escape(album)}}\", \"class\": \"{{status}}\", \"alt\": \"{{status}}\" }' -F",
|
||||||
},
|
"max-length": 40,
|
||||||
"custom/notification": {
|
"on-click": "playerctl play-pause",
|
||||||
"tooltip": true,
|
"on-click-right": "pavucontrol"
|
||||||
"format": "{icon}",
|
}
|
||||||
"format-icons": {
|
|
||||||
"notification": " <span foreground='red'><sup></sup></span> <span weight=\"bold\">Unread</span>",
|
|
||||||
"none": " <span style=\"italic\">Empty</span>",
|
|
||||||
"dnd-notification": " <span style=\"italic\">DND on</span>",
|
|
||||||
"dnd-none": " <span style=\"italic\">DND on</span>"
|
|
||||||
},
|
|
||||||
"return-type": "json",
|
|
||||||
"exec-if": "which swaync-client",
|
|
||||||
"exec": "swaync-client -swb",
|
|
||||||
"on-click": "swaync-client -t -sw",
|
|
||||||
"on-click-right": "swaync-client -d -sw",
|
|
||||||
"escape": true
|
|
||||||
},
|
|
||||||
"custom/player": {
|
|
||||||
"format": "{icon} <span style=\"italic\">{}</span>",
|
|
||||||
"format-icons": {
|
|
||||||
"Playing": " ",
|
|
||||||
"Paused": " "
|
|
||||||
},
|
|
||||||
"return-type": "json",
|
|
||||||
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{markup_escape(title)}} - {{markup_escape(album)}}\", \"class\": \"{{status}}\", \"alt\": \"{{status}}\" }' -F",
|
|
||||||
"max-length": 40,
|
|
||||||
"on-click": "playerctl play-pause",
|
|
||||||
"on-click-right": "pavucontrol"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
|||||||
[submodule ".config/nvim"]
|
|
||||||
path = .config/nvim
|
|
||||||
url = git@github.com:rywng/config.nvim.git
|
|
5
.zshrc
5
.zshrc
@ -42,8 +42,9 @@ if ! command -v bat &> /dev/null ; then
|
|||||||
zinit light sharkdp/bat
|
zinit light sharkdp/bat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
|
zinit as"program" make'!' atclone'./direnv hook zsh > zhook.zsh' \
|
||||||
zinit light direnv/direnv
|
atpull'%atclone' pick"direnv" src"zhook.zsh" for \
|
||||||
|
direnv/direnv
|
||||||
|
|
||||||
autoload -Uz _zinit
|
autoload -Uz _zinit
|
||||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||||
|
Loading…
Reference in New Issue
Block a user