mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 20:01:49 +08:00
Update
This commit is contained in:
parent
b7863e2f61
commit
72fe3f2492
@ -8,7 +8,7 @@ env = WLR_NO_HARDWARE_CURSORS,1
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
exec=pidof -q hyprpaper || hyprpaper
|
||||
exec=pidof -q wlsunset || wlsunset -S 08:00 -s 19:00
|
||||
exec=pidof -q wlsunset || wlsunset -S 08:00 -s 19:00 -d 1800
|
||||
exec=pidof -q waybar || waybar
|
||||
exec=~/.config/hypr/scripts/clamshell.sh
|
||||
exec-once=fcitx5 -d
|
||||
|
@ -13,6 +13,8 @@ bind = $mainMod CTRL, r, exec, hyprctl reload
|
||||
bind = $mainMod CTRL, 65, exec, fcitx5-remote -t
|
||||
bind = $mainMod, M, exec, swaync-client -t
|
||||
bind = $mainMod CTRL, l, exec, ~/.config/hypr/scripts/logout.sh
|
||||
# TODO: use a script instead
|
||||
bind = $mainMod SHIFT, s, exec, hyprshot --clipboard-only -m region
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
|
@ -29,8 +29,8 @@ if test "$choice" = lock ; then
|
||||
idlepid=$!
|
||||
|
||||
# swaylock -e -c 282828 --inside-color 00000003
|
||||
swaylock -S --effect-blur "12x12" --effect-greyscale --effect-vignette 0.5:0.5 --inside-color 00000000 \
|
||||
-e --ring-color 00000000 --line-uses-inside --indicator --clock --text-color 689d6a
|
||||
swaylock -S --effect-blur "12x12" --effect-greyscale --effect-vignette 0.5:0.5 --inside-color 28282860 \
|
||||
-e --ring-color 00000000 --line-color 00000000 --indicator --clock --text-color ebdbb2
|
||||
|
||||
kill $idlepid
|
||||
|
||||
@ -39,5 +39,5 @@ if test "$choice" = lock ; then
|
||||
hyprctl dispatch exec waybar
|
||||
light -S $bright
|
||||
elif test -n "$choice"; then
|
||||
loginctl $choice
|
||||
systemctl $choice
|
||||
fi
|
||||
|
@ -1,5 +0,0 @@
|
||||
# Get editor completions based on the config schema
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
# Inserts a blank line between shell prompts
|
||||
add_newline = true
|
@ -91,7 +91,7 @@
|
||||
"format": " {}",
|
||||
"return-type": "json",
|
||||
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
||||
"max-length": 35,
|
||||
"max-length": 50,
|
||||
"on-click-middle": "playerctl play-pause",
|
||||
"on-click-right": "plaerctl next",
|
||||
"on-click-left": "playerctl previous"
|
||||
|
13
.zshrc
13
.zshrc
@ -22,6 +22,7 @@ zinit light sindresorhus/pure
|
||||
zinit wait lucid for \
|
||||
zdharma-continuum/fast-syntax-highlighting \
|
||||
agkozak/zsh-z \
|
||||
zpm-zsh/colors \
|
||||
zpm-zsh/colorize \
|
||||
juancldcmt/shortify.zsh \
|
||||
juancldcmt/kitty-zsh
|
||||
@ -31,6 +32,15 @@ zinit light hlissner/zsh-autopair
|
||||
zinit light zsh-users/zsh-history-substring-search
|
||||
zinit light zsh-users/zsh-completions
|
||||
|
||||
# Software
|
||||
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
|
||||
zinit light sharkdp/bat
|
||||
|
||||
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
||||
pick"direnv" src="zhook.zsh" for \
|
||||
direnv/direnv
|
||||
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
@ -112,10 +122,7 @@ export HISTORY_SUBSTRING_SEARCH_FUZZY=1
|
||||
|
||||
#colored output
|
||||
export MANWIDTH=${MANWIDTH:-78}
|
||||
test -e /bin/nvim && export MANPAGER='nvim +Man!' || \
|
||||
export MANLESS="Manual\ \$MAN_PN\ ?ltline\ %lt?L/%L.:byte\ %bB?s/%s..?\:?pB\ %pB\\%.."
|
||||
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
||||
export LESS="--use-color -RSM~"
|
||||
|
||||
#local path
|
||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||
|
Loading…
Reference in New Issue
Block a user