Skip to content

Commit beb7540

Browse files
authored
chore: release automated changes from dev to master (#859)
This is an automated PR to promote changes from `dev` to `master`. Please review and test before merging. See [TESTING.md](./TESTING.md) for complete testing instructions. According to our release policy, this PR is expected to be merged on: **Friday** Testers are encouraged to test the changes before merging. Please note that this schedule may be adjusted based on the needs of the project. --- * chore Optional OMZ (7ce81d0) by kRHYME7 * chore Merge branch 'master' into dev (03aaed2) by Khing * chore bump (2bc86c4) by kRHYME7 * chore Merge branch 'master' of https://github.com/hyde-project/hyde into dev (08c7297) by kRHYME7 * fix: unreadable highlight color in dolphin (#884) (9eceb43) by amit * fix: floating window keybind (#833) (506831f) by amit * fix: #868 (e09d9fc) by kRHYME7 * fix: #868 (71e1a11) by kRHYME7 * fix: user.zsh to be preserve (330d371) by kRHYME7 * chore Fix #868 (4f0ff69) by kRHYME7 * fix: add missing whitespace in shuffle menu entry for spotify waybar module (#877) (926629d) by Ilya Bogdanov * feat: Added scss template! (61417c9) by kRHYME7 * chore Breaking (ZSH): move ZDOTDIR to ~/.config/zsh (#858) (ea855bd) by Khing * chore Fix: #863 (97f9c20) by kRHYME7 * feat: add `reboot to UEFI` to waybar power menu (#845) (b7f7755) by Ilya Bogdanov * chore Refactor: If your waybar crashes try to move `~/.config/waybar` and run `waybar.py` (735dcc2) by kRHYME7 * feat: make satty behave like swappy (#843) (20f9bc7) by Rubin Bhandari * feat: make satty behave like swappy (77d3aae) by Rubin Bhandari * fix: [Bug]: icon not visible waybar #841 (4201fb0) by kRHYME7 * chore Merge branch 'master' into dev (444cff1) by Khing * chore make battery detection dynamic and improve icon support (#830) (c02bc4c) by Valery Teslenko * chore Fix: .hyde.zshrc no longer exists (#825) (7f76e55) by 9c * chore Waybar config improvements (#813) (319a5a2) by Ilya Bogdanov --- Please review the changes carefully before merging.
2 parents 0062cc5 + 7ce81d0 commit beb7540

File tree

32 files changed

+826
-486
lines changed

32 files changed

+826
-486
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ Scripts/pkg_user.lst
66
*__pycache__*
77
Scripts/pkg_black.lst
88
Scripts/pkg_user.lst
9+
.zsh_history*
10+
.zcompdump*

β€ŽConfigs/.config/hypr/keybindings.confβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $d=[$wm]
2929
bindd = $mainMod, Q, $d close focused window, exec, $scrPath/dontkillsteam.sh
3030
bindd = Alt, F4, $d close focused window, exec, $scrPath/dontkillsteam.sh
3131
bindd = $mainMod, Delete, $d kill hyprland session, exit
32-
bindd = $mainMod, W, $d Toggle floating, exec, hyprctl --batch "dispatch togglefloating; dispatch resizeactive exact 95% 95%; dispatch centerwindow"
32+
bindd = $mainMod, W, $d Toggle floating, togglefloating
3333
bindd = $mainMod, G, $d toggle group, togglegroup
3434
bindd = Shift, F11, $d toggle fullscreen, fullscreen
3535
bindd = $mainMod, L, $d lock screen, exec, lockscreen.sh
File renamed without changes.

β€ŽConfigs/.config/zsh/.zshenvβ€Ž

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env zsh
2+
3+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
4+
#! β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
5+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
6+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
7+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–‘β•šβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
8+
#! β•šβ•β•β•β•β•β•β–‘β–‘β•šβ•β•β•β•β•β–‘β€ƒβ€ƒβ•šβ•β•β–‘β–‘β•šβ•β•β•β–‘β•šβ•β•β•β•β•β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β€ƒβ€ƒβ•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β–‘β•šβ•β•β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘
9+
10+
# Load all custom module files // Directories are ignored
11+
# As Directories are ignored, we can store a bunch of boilerplate script in a ``./conf.d/custom-directory``
12+
# then we can make an entry point script: `./conf.d/custom-directory.zsh`managing all the files in that directory
13+
14+
for file in "${ZDOTDIR:-$HOME/.config/zsh}/conf.d/"*.zsh; do
15+
[ -r "$file" ] && source "$file"
16+
done
Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
# ο‘„ Startup ο‘„
2-
# Commands to execute on startup (before the prompt is shown)
3-
# Check if the interactive shell option is set
4-
if [[ $- == *i* ]]; then
5-
# This is a good place to load graphic/ascii art, display system information, etc.
6-
if command -v pokego >/dev/null; then
7-
pokego --no-title -r 1,3,6
8-
elif command -v pokemon-colorscripts >/dev/null; then
9-
pokemon-colorscripts --no-title -r 1,3,6
10-
elif command -v fastfetch >/dev/null; then
11-
if do_render "image"; then
12-
fastfetch --logo-type kitty
13-
fi
14-
fi
15-
fi
16-
# fastfetch.sh
1+
# Add user configurations here
2+
# For HyDE to not touch your beloved configurations,
3+
# we added a config file for you to customize HyDE before loading zshrc
4+
# Edit $ZDOTDIR/.user.zsh to customize HyDE before loading zshrc
5+
6+
# ο‘„ Plugins ο‘„
7+
# oh-my-zsh plugins are loaded in $ZDOTDIR/.user.zsh file, see the file for more information
178

189
# ο‘„ Aliases ο‘„
19-
# Override aliases here or in '~/.zshrc' (already set in .zshenv)
10+
# Override aliases here in '$ZDOTDIR/.zshrc' (already set in .zshenv)
2011

2112
# # Helpful aliases
2213
# alias c='clear' # clear terminal
@@ -44,12 +35,9 @@ fi
4435
# # Always mkdir a path (this doesn't inhibit functionality to make a single dir)
4536
# alias mkdir='mkdir -p'
4637

47-
# ο‘„ Plugins ο‘„
48-
# manually add your oh-my-zsh plugins here
49-
plugins=(
50-
"sudo"
51-
# "git" # (default)
52-
# "zsh-autosuggestions" # (default)
53-
# "zsh-syntax-highlighting" # (default)
54-
# "zsh-completions" # (default)
55-
)
38+
# ο‘„ This is your file ο‘„
39+
# Add your configurations here
40+
# export EDITOR=nvim
41+
export EDITOR=code
42+
43+
# unset -f command_not_found_handler # Uncomment to prevent searching for commands not found in package manager
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ctrl-R fzf completio
2+
if command -v fzf &>/dev/null; then
3+
eval "$(fzf --zsh)"
4+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# hydectl tab completion
2+
if command -v hydectl &>/dev/null; then
3+
compdef _hydectl hydectl
4+
eval "$(hydectl completion zsh)"
5+
fi
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env zsh
2+
3+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
4+
#! β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
5+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
6+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
7+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–‘β•šβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
8+
#! β•šβ•β•β•β•β•β•β–‘β–‘β•šβ•β•β•β•β•β–‘β€ƒβ€ƒβ•šβ•β•β–‘β–‘β•šβ•β•β•β–‘β•šβ•β•β•β•β•β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β€ƒβ€ƒβ•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β–‘β•šβ•β•β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘
9+
10+
11+
# Sources vital global environment variables and configurations // Users are encouraged to use ./user.zsh for customization
12+
# shellcheck disable=SC1091
13+
if ! . "$ZDOTDIR/conf.d/hyde/env.zsh"; then
14+
echo "Error: Could not source $ZDOTDIR/conf.d/hyde/env.zsh"
15+
return 1
16+
fi
17+
18+
if [ -t 1 ] && [ -f "$ZDOTDIR/conf.d/hyde/terminal.zsh" ]; then
19+
. "$ZDOTDIR/conf.d/hyde/terminal.zsh" || echo "Error: Could not source $ZDOTDIR/conf.d/hyde/terminal.zsh"
20+
fi
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env zsh
2+
3+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
4+
#! β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
5+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
6+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
7+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–‘β•šβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
8+
#! β•šβ•β•β•β•β•β•β–‘β–‘β•šβ•β•β•β•β•β–‘β€ƒβ€ƒβ•šβ•β•β–‘β–‘β•šβ•β•β•β–‘β•šβ•β•β•β•β•β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β€ƒβ€ƒβ•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β–‘β•šβ•β•β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘
9+
10+
# Hyde's Shell Environment Initialization Script
11+
# If users used UWSM, uwsm will override any variables set anywhere in you shell configurations
12+
13+
# Basic PATH prepending (user local bin)
14+
PATH="$HOME/.local/bin:$PATH"
15+
16+
# XDG Base Directory Specification variables with defaults
17+
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
18+
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
19+
XDG_DATA_DIRS="${XDG_DATA_DIRS:-$XDG_DATA_HOME:/usr/local/share:/usr/share}"
20+
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
21+
XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
22+
23+
# XDG User Directories (fallback to xdg-user-dir command if available)
24+
if command -v xdg-user-dir >/dev/null 2>&1; then
25+
XDG_DESKTOP_DIR="${XDG_DESKTOP_DIR:-$(xdg-user-dir DESKTOP)}"
26+
XDG_DOWNLOAD_DIR="${XDG_DOWNLOAD_DIR:-$(xdg-user-dir DOWNLOAD)}"
27+
XDG_TEMPLATES_DIR="${XDG_TEMPLATES_DIR:-$(xdg-user-dir TEMPLATES)}"
28+
XDG_PUBLICSHARE_DIR="${XDG_PUBLICSHARE_DIR:-$(xdg-user-dir PUBLICSHARE)}"
29+
XDG_DOCUMENTS_DIR="${XDG_DOCUMENTS_DIR:-$(xdg-user-dir DOCUMENTS)}"
30+
XDG_MUSIC_DIR="${XDG_MUSIC_DIR:-$(xdg-user-dir MUSIC)}"
31+
XDG_PICTURES_DIR="${XDG_PICTURES_DIR:-$(xdg-user-dir PICTURES)}"
32+
XDG_VIDEOS_DIR="${XDG_VIDEOS_DIR:-$(xdg-user-dir VIDEOS)}"
33+
fi
34+
35+
# Less history file location
36+
LESSHISTFILE="${LESSHISTFILE:-/tmp/less-hist}"
37+
38+
# Application config files
39+
PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
40+
SCREENRC="$XDG_CONFIG_HOME/screen/screenrc"
41+
42+
# Export all variables
43+
export PATH \
44+
XDG_CONFIG_HOME XDG_DATA_HOME XDG_DATA_DIRS XDG_STATE_HOME XDG_CACHE_HOME \
45+
XDG_DESKTOP_DIR XDG_DOWNLOAD_DIR XDG_TEMPLATES_DIR XDG_PUBLICSHARE_DIR \
46+
XDG_DOCUMENTS_DIR XDG_MUSIC_DIR XDG_PICTURES_DIR XDG_VIDEOS_DIR \
47+
LESSHISTFILE PARALLEL_HOME SCREENRC
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env zsh
2+
3+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
4+
#! β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
5+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
6+
#! β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
7+
#! β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–‘β•šβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘
8+
#! β•šβ•β•β•β•β•β•β–‘β–‘β•šβ•β•β•β•β•β–‘β€ƒβ€ƒβ•šβ•β•β–‘β–‘β•šβ•β•β•β–‘β•šβ•β•β•β•β•β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β€ƒβ€ƒβ•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β–‘β•šβ•β•β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘
9+
10+
# Let HyDE immediately load prompts
11+
# For now supported prompts are Starship and Powerlevel10k (p10k)
12+
13+
# Exit early if HYDE_ZSH_PROMPT is not set to 1
14+
if [[ "${HYDE_ZSH_PROMPT}" != "1" ]]; then
15+
return
16+
fi
17+
18+
if command -v starship &>/dev/null; then
19+
# ===== START Initialize Starship prompt =====
20+
eval "$(starship init zsh)"
21+
export STARSHIP_CACHE=$XDG_CACHE_HOME/starship
22+
export STARSHIP_CONFIG=$XDG_CONFIG_HOME/starship/starship.toml
23+
# ===== END Initialize Starship prompt =====
24+
elif [ -r $HOME/.p10k.zsh ] || [ -r $ZDOTDIR/.p10k.zsh ]; then
25+
# ===== START Initialize Powerlevel10k theme =====
26+
POWERLEVEL10K_TRANSIENT_PROMPT=same-dir
27+
P10k_THEME=${P10k_THEME:-/usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme}
28+
[[ -r $P10k_THEME ]] && source $P10k_THEME
29+
# To customize prompt, run `p10k configure` or edit $HOME/.p10k.zsh
30+
if [[ -f $HOME/.p10k.zsh ]]; then
31+
source $HOME/.p10k.zsh
32+
elif [[ -f $ZDOTDIR/.p10k.zsh ]]; then
33+
source $ZDOTDIR/.p10k.zsh
34+
fi
35+
# ===== END Initialize Powerlevel10k theme =====
36+
fi

0 commit comments

Comments
Β (0)