1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00
This commit is contained in:
Ryan 2023-12-07 11:31:31 +08:00
parent b7863e2f61
commit 72fe3f2492
6 changed files with 17 additions and 13 deletions

View File

@ -8,7 +8,7 @@ env = WLR_NO_HARDWARE_CURSORS,1
# Execute your favorite apps at launch # Execute your favorite apps at launch
exec=pidof -q hyprpaper || hyprpaper 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=pidof -q waybar || waybar
exec=~/.config/hypr/scripts/clamshell.sh exec=~/.config/hypr/scripts/clamshell.sh
exec-once=fcitx5 -d exec-once=fcitx5 -d

View File

@ -13,6 +13,8 @@ bind = $mainMod CTRL, r, exec, hyprctl reload
bind = $mainMod CTRL, 65, exec, fcitx5-remote -t bind = $mainMod CTRL, 65, exec, fcitx5-remote -t
bind = $mainMod, M, exec, swaync-client -t bind = $mainMod, M, exec, swaync-client -t
bind = $mainMod CTRL, l, exec, ~/.config/hypr/scripts/logout.sh 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 # Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l bind = $mainMod, left, movefocus, l

View File

@ -29,8 +29,8 @@ if test "$choice" = lock ; then
idlepid=$! idlepid=$!
# swaylock -e -c 282828 --inside-color 00000003 # swaylock -e -c 282828 --inside-color 00000003
swaylock -S --effect-blur "12x12" --effect-greyscale --effect-vignette 0.5:0.5 --inside-color 00000000 \ swaylock -S --effect-blur "12x12" --effect-greyscale --effect-vignette 0.5:0.5 --inside-color 28282860 \
-e --ring-color 00000000 --line-uses-inside --indicator --clock --text-color 689d6a -e --ring-color 00000000 --line-color 00000000 --indicator --clock --text-color ebdbb2
kill $idlepid kill $idlepid
@ -39,5 +39,5 @@ if test "$choice" = lock ; then
hyprctl dispatch exec waybar hyprctl dispatch exec waybar
light -S $bright light -S $bright
elif test -n "$choice"; then elif test -n "$choice"; then
loginctl $choice systemctl $choice
fi fi

View File

@ -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

View File

@ -91,7 +91,7 @@
"format": "󰎈 {}", "format": "󰎈 {}",
"return-type": "json", "return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F", "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-middle": "playerctl play-pause",
"on-click-right": "plaerctl next", "on-click-right": "plaerctl next",
"on-click-left": "playerctl previous" "on-click-left": "playerctl previous"

13
.zshrc
View File

@ -22,6 +22,7 @@ zinit light sindresorhus/pure
zinit wait lucid for \ zinit wait lucid for \
zdharma-continuum/fast-syntax-highlighting \ zdharma-continuum/fast-syntax-highlighting \
agkozak/zsh-z \ agkozak/zsh-z \
zpm-zsh/colors \
zpm-zsh/colorize \ zpm-zsh/colorize \
juancldcmt/shortify.zsh \ juancldcmt/shortify.zsh \
juancldcmt/kitty-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-history-substring-search
zinit light zsh-users/zsh-completions 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 autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit (( ${+_comps} )) && _comps[zinit]=_zinit
@ -112,10 +122,7 @@ export HISTORY_SUBSTRING_SEARCH_FUZZY=1
#colored output #colored output
export MANWIDTH=${MANWIDTH:-78} 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' test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
export LESS="--use-color -RSM~"
#local path #local path
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin" export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"