This commit is contained in:
2025-10-26 16:50:08 +01:00
parent f10af1ca02
commit 428de73f48
444 changed files with 254 additions and 67 deletions

64
config/clang/.clang-format Executable file
View File

@@ -0,0 +1,64 @@
BasedOnStyle: Google
AccessModifierOffset: -2
AlignConsecutiveAssignments: true
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortLambdasOnASingleLine: All
BreakAfterReturnType: Automatic
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 0
CompactNamespaces: false
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IncludeBlocks: Regroup
SortIncludes: true
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IndentWidth: 4
KeepEmptyLines:
AtEndOfFile: true
AtStartOfBlock: true
AtStartOfFile: false
MaxEmptyLinesToKeep: 1
TabWidth: 4
UseTab: Never
SeparateDefinitionBlocks: Always
QualifierAlignment: Left

View File

Before

Width:  |  Height:  |  Size: 919 KiB

After

Width:  |  Height:  |  Size: 919 KiB

View File

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View File

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

View File

@@ -1,7 +1,11 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
file="$path"/eww.scss

View File

@@ -0,0 +1,18 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
file="$HOME/.config/fish/post.d/fetch.fish"
sed -i -E "s/(set -g fetch_color\s+\"#)([0-9a-fA-F]{6})(\")/\1${colorHex}\3/" "$file" || {
log_error "Failed to edit ${file}"
exit 1
}
log_success "fastfetch"

View File

Before

Width:  |  Height:  |  Size: 736 KiB

After

Width:  |  Height:  |  Size: 736 KiB

View File

Before

Width:  |  Height:  |  Size: 645 KiB

After

Width:  |  Height:  |  Size: 645 KiB

View File

Before

Width:  |  Height:  |  Size: 724 KiB

After

Width:  |  Height:  |  Size: 724 KiB

View File

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 738 KiB

View File

Before

Width:  |  Height:  |  Size: 226 KiB

After

Width:  |  Height:  |  Size: 226 KiB

View File

@@ -1,13 +0,0 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
file="$path"/../fish/post.d/fetch.fish
sed -i -E "s/(set -g fetch_color\s+\"#)([0-9a-fA-F]{6})(\")/\1${colorHex}\3/" "$file" || {
log_error "Failed to edit ${file}"
exit 1
}
log_success "fastfetch"

14
config/fish/.bash_profile Normal file
View File

@@ -0,0 +1,14 @@
[ -d "$HOME/.local/bin" ] && export PATH="$HOME/.local/bin:$PATH"
[ -d "$HOME/.local/scripts" ] && export PATH="$HOME/.local/scripts:$PATH"
[ -d "$HOME/.cargo/bin" ] && export PATH="$HOME/.cargo/bin:$PATH"
[ -d "$HOME/go/bin" ] && export PATH="$HOME/go/bin:$PATH"
[ -x "$HOME/.local/scripts/ssh-init" ] && eval "$(ssh-init)"
command -v nvim >/dev/null 2>&1 && {
export EDITOR=nvim
export VISUAL=nvim
}
[ -f "$HOME/.profile" ] && . "$HOME/.profile"
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"

View File

@@ -1,7 +1,11 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
kvantummanager --set catppuccin-mocha-"$colorName" || {
log_error "Failed to set kvantum theme to catppuccin-mocha-${colorName}"

View File

@@ -1,7 +1,11 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
file="$HOME/.local/share/nwg-look/gsettings"

View File

@@ -1,7 +1,11 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
file="$path"/../posh_theme.omp.json

View File

@@ -1,12 +1,16 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
file="$path"/fuzzel.ini
entries="match selection-match border"
if pgrep -x "fuzzel" -u "$USER" > /dev/null; then
if pgrep -x "fuzzel" -u "$USER" >/dev/null; then
pkill -x fuzzel || log_error "Failed to kill fuzzel process"
# and move on
fi
@@ -19,4 +23,5 @@ for entry in $entries; do
}
done
log_success "fuzzel"
log_success "fuzzel"

View File

@@ -1,7 +1,11 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
. "$path"/../../utils/apply-color-helper
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
}
. "$HOME/.local/snippets/apply-color-helper"
file="$path"/hyprland/colors.conf
@@ -15,11 +19,12 @@ sed -i -E "s/^(\s*col\.inactive_border\s*=\s*rgba\()([0-9A-Fa-f]{6})([0-9A-Fa-f]
exit 1
}
if pgrep -x "hyprland" -u "$USER" > /dev/null; then
if pgrep -x "hyprland" -u "$USER" >/dev/null; then
hyprctl reload || {
log_error "Failed to reload Hyprland"
exit 1
}
fi
log_success "hyprland"
log_success "hyprland"

Some files were not shown because too many files have changed in this diff Show More