Compare commits
102 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 07dc9cf4e0 | |||
| bd0c7eb2dd | |||
| 64a7399ea9 | |||
| 2eb9068b67 | |||
| 7e1b96eb2a | |||
| c8e824d8a4 | |||
| 3e9f4e4f1f | |||
| b1385e585e | |||
| 14cdc8e93b | |||
| e7cab307ee | |||
| 6faef90961 | |||
| c223de3de1 | |||
| fdcc4d5fef | |||
| 45e20009fc | |||
| a8b848e3ba | |||
| 3aac72de3b | |||
| 30b94d192b | |||
| 0abb920348 | |||
| ed6d78ebb9 | |||
| f7e85f9cad | |||
| 6303cef74e | |||
| 3940d9a2b0 | |||
| f1e2a40537 | |||
| dc45294051 | |||
| 4c4e029ba1 | |||
| e78c5ce3f5 | |||
| f16942be42 | |||
| 2e06bec8fa | |||
| 9d4de4186a | |||
| a3c7f5814b | |||
| 1c17d73231 | |||
| 4666c1c133 | |||
| 73dbcd426c | |||
| fe545d9d30 | |||
| ef44c3b7ff | |||
| 164e56e0b1 | |||
| 0120c08205 | |||
| e1801c20cb | |||
| 8fb376e095 | |||
| 34cda567b3 | |||
| d1036c31c6 | |||
| b156843244 | |||
| d2d71fef55 | |||
| bc97bf2569 | |||
| 7e2f972430 | |||
| 3ba0df7b7c | |||
| a23d8a5c38 | |||
| 6cd8154bab | |||
| 3bc6335304 | |||
| ac677d9bb9 | |||
| 245ab326fd | |||
| 5326446dd7 | |||
| 827adc2140 | |||
| d890fad373 | |||
| 604242d58d | |||
| a479750bd7 | |||
| 08947e991c | |||
| 3ca359ce96 | |||
| 8a05e91018 | |||
| 43e564e47a | |||
| 6cf2a43c2c | |||
| 2a3b26adb7 | |||
| d01229183c | |||
| 20643e9048 | |||
| e01895d286 | |||
| 985b12cc6e | |||
| 24f4e6e424 | |||
| dd8866242e | |||
| 8fc4cb9d9e | |||
| 73d4480014 | |||
| efb387ef14 | |||
| 3e99847d8b | |||
| c1542e026c | |||
| dd5a4b76ae | |||
| 3a49bd1ad7 | |||
| 075a5df837 | |||
| 6500fe1c1a | |||
| 77b6b90448 | |||
| 149d10a285 | |||
| fd46e16738 | |||
| f68578bc48 | |||
| d46e796571 | |||
| 14a56275eb | |||
| 26654d87e9 | |||
| ee983e39db | |||
| 18bed6fbdf | |||
| 77cd4cf980 | |||
| f095151882 | |||
| bc227bed49 | |||
| 475fbc55cc | |||
| 1c96f24b09 | |||
| 71caefa11a | |||
| 4b9812dc7f | |||
| 20ce47fa20 | |||
| 1763d37ee4 | |||
| b113e1f81d | |||
| 289308a542 | |||
| 8c2be8fed6 | |||
| beb717a961 | |||
| 2e985927af | |||
| 8265c9fdea | |||
| c1873060de |
@@ -109,7 +109,7 @@ alias setkb='setxkbmap de;echo "Keyboard set back to de."'
|
|||||||
alias res1='xrandr --output DisplayPort-0 --mode 2560x1440 --rate 120'
|
alias res1='xrandr --output DisplayPort-0 --mode 2560x1440 --rate 120'
|
||||||
alias res2='xrandr --output DisplayPort-0 --mode 1920x1080 --rate 120'
|
alias res2='xrandr --output DisplayPort-0 --mode 1920x1080 --rate 120'
|
||||||
|
|
||||||
export PATH="/usr/lib/ccache/bin/:$PATH"
|
export PATH="$HOME/.local/bin/:/usr/lib/ccache/bin/:$PATH"
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# DEVELOPMENT
|
# DEVELOPMENT
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "yazi/flavors/tokyo-night.yazi"]
|
||||||
|
path = yazi/flavors/tokyo-night.yazi
|
||||||
|
url = https://github.com/BennyOe/tokyo-night.yazi.git
|
||||||
@@ -13,24 +13,6 @@ if [[ $(_isInstalledPacman "ttf-ms-fonts") == 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for running NetworkManager.service
|
|
||||||
if [[ $(systemctl list-units --all -t service --full --no-legend "NetworkManager.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "NetworkManager.service" ]];then
|
|
||||||
echo ":: NetworkManager.service already running."
|
|
||||||
else
|
|
||||||
sudo systemctl enable NetworkManager.service
|
|
||||||
sudo systemctl start NetworkManager.service
|
|
||||||
echo ":: NetworkManager.service activated successfully."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for running bluetooth.service
|
|
||||||
if [[ $(systemctl list-units --all -t service --full --no-legend "bluetooth.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "bluetooth.service" ]];then
|
|
||||||
echo ":: bluetooth.service already running."
|
|
||||||
else
|
|
||||||
sudo systemctl enable bluetooth.service
|
|
||||||
sudo systemctl start bluetooth.service
|
|
||||||
echo ":: bluetooth.service activated successfully."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d ~/dotfiles/hypr/settings/ ] ;then
|
if [ -d ~/dotfiles/hypr/settings/ ] ;then
|
||||||
rm -rf ~/dotfiles/hypr/settings
|
rm -rf ~/dotfiles/hypr/settings
|
||||||
echo ":: ~/dotfiles/hypr/settings removed."
|
echo ":: ~/dotfiles/hypr/settings removed."
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
if [ -d ~/dotfiles-versions/$version/alacritty ]; then
|
if [ -d ~/dotfiles-versions/$version/alacritty ]; then
|
||||||
_installSymLink alacritty ~/.config/alacritty ~/dotfiles/alacritty/ ~/.config
|
_installSymLink alacritty ~/.config/alacritty ~/dotfiles/alacritty/ ~/.config
|
||||||
fi
|
fi
|
||||||
|
if [ -d ~/dotfiles-versions/$version/kitty ]; then
|
||||||
|
_installSymLink kitty ~/.config/kitty ~/dotfiles/kitty/ ~/.config
|
||||||
|
fi
|
||||||
if [ -d ~/dotfiles-versions/$version/vim ]; then
|
if [ -d ~/dotfiles-versions/$version/vim ]; then
|
||||||
_installSymLink vim ~/.config/vim ~/dotfiles/vim/ ~/.config
|
_installSymLink vim ~/.config/vim ~/dotfiles/vim/ ~/.config
|
||||||
fi
|
fi
|
||||||
@@ -43,5 +46,15 @@ fi
|
|||||||
if [ -d ~/dotfiles-versions/$version/fastfetch ]; then
|
if [ -d ~/dotfiles-versions/$version/fastfetch ]; then
|
||||||
_installSymLink fastfetch ~/.config/fastfetch ~/dotfiles/fastfetch/ ~/.config
|
_installSymLink fastfetch ~/.config/fastfetch ~/dotfiles/fastfetch/ ~/.config
|
||||||
fi
|
fi
|
||||||
|
if [ -f ~/dotfiles-versions/$version/chrome-flags.conf ]; then
|
||||||
|
_installSymLink chrome-flags ~/.config/chrome-flags.conf ~/dotfiles/chrome-flags.conf ~/.config
|
||||||
|
fi
|
||||||
|
if [ -d ~/dotfiles-versions/$version/Vimix-hyprcursors ]; then
|
||||||
|
if [ ! -d ~/.local/share/icons ]; then mkdir -pv ~/.local/share/icons; fi
|
||||||
|
_installSymLink Vimix-hyprcursors ~/.local/share/icons/Vimix-hyprcursors ~/dotfiles/Vimix-hyprcursors ~/.local/share/icons/
|
||||||
|
fi
|
||||||
|
if [ -d ~/dotfiles-versions/$version/ranger ]; then
|
||||||
|
_installSymLink ranger ~/.config/ranger ~/dotfiles/ranger/ ~/.config
|
||||||
|
fi
|
||||||
echo ":: Symbolic links created."
|
echo ":: Symbolic links created."
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -1,65 +1,59 @@
|
|||||||
packagesPacman=(
|
packagesPacman=(
|
||||||
"pacman-contrib"
|
"pacman-contrib"
|
||||||
"vim"
|
"vim"
|
||||||
"bluez"
|
"bat"
|
||||||
"bluez-utils"
|
"fzf"
|
||||||
|
"zsh"
|
||||||
|
"fastfetch"
|
||||||
|
"ranger"
|
||||||
|
"btop"
|
||||||
"neovim"
|
"neovim"
|
||||||
"wget"
|
"wget"
|
||||||
"unzip"
|
"unzip"
|
||||||
"alacritty"
|
"alacritty"
|
||||||
"chromium"
|
|
||||||
"dunst"
|
"dunst"
|
||||||
"starship"
|
"starship"
|
||||||
"mpv"
|
"mpv"
|
||||||
"thunar"
|
"thunar"
|
||||||
"nautilus"
|
"nautilus"
|
||||||
"mousepad"
|
|
||||||
"noto-fonts"
|
"noto-fonts"
|
||||||
"otf-font-awesome"
|
"otf-font-awesome"
|
||||||
"ttf-fira-sans"
|
"ttf-fira-sans"
|
||||||
"ttf-fira-code"
|
"ttf-fira-code"
|
||||||
"ttf-firacode-nerd"
|
"ttf-firacode-nerd"
|
||||||
|
"ttf-firacode-nerd"
|
||||||
"figlet"
|
"figlet"
|
||||||
"vlc"
|
"vlc"
|
||||||
"eza"
|
"eza"
|
||||||
"python-pip"
|
"python-pip"
|
||||||
"python-psutil"
|
"python-psutil"
|
||||||
"python-rich"
|
"python-rich"
|
||||||
"python-click"
|
|
||||||
"python-pywal"
|
"python-pywal"
|
||||||
"python-gobject"
|
|
||||||
"pavucontrol"
|
"pavucontrol"
|
||||||
"tumbler"
|
"tumbler"
|
||||||
"papirus-icon-theme"
|
"papirus-icon-theme"
|
||||||
"breeze-icons"
|
|
||||||
"polkit-gnome"
|
|
||||||
"brightnessctl"
|
|
||||||
"gum"
|
"gum"
|
||||||
"man-pages"
|
"man-pages"
|
||||||
"nm-connection-editor"
|
|
||||||
"gvfs"
|
"gvfs"
|
||||||
"xdg-user-dirs"
|
"xdg-user-dirs"
|
||||||
"xdg-desktop-portal-gtk"
|
# "xdg-desktop-portal-gtk"
|
||||||
"networkmanager"
|
|
||||||
"network-manager-applet"
|
|
||||||
"xarchiver"
|
"xarchiver"
|
||||||
"thunar-archive-plugin"
|
"thunar-archive-plugin"
|
||||||
"zip"
|
"zip"
|
||||||
"fuse2"
|
"fuse2"
|
||||||
"gtk4"
|
|
||||||
"libadwaita"
|
|
||||||
"xdg-desktop-portal"
|
"xdg-desktop-portal"
|
||||||
"qalculate-gtk"
|
"qalculate-gtk"
|
||||||
"imagemagick"
|
"imagemagick"
|
||||||
"guvcview"
|
|
||||||
"jq"
|
"jq"
|
||||||
"rofi-wayland"
|
"rofi-wayland"
|
||||||
"fastfetch"
|
"fastfetch"
|
||||||
"blueman"
|
"pipewire-pulse"
|
||||||
|
"wireplumber"
|
||||||
);
|
);
|
||||||
|
|
||||||
packagesYay=(
|
packagesYay=(
|
||||||
"bibata-cursor-theme"
|
"vimix-cursors"
|
||||||
|
"orchis-theme"
|
||||||
"trizen"
|
"trizen"
|
||||||
"pacseek"
|
"google-chrome"
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,17 +3,19 @@ packagesPacman=(
|
|||||||
"hyprpaper"
|
"hyprpaper"
|
||||||
"hyprlock"
|
"hyprlock"
|
||||||
"hypridle"
|
"hypridle"
|
||||||
"xdg-desktop-portal-hyprland"
|
# "xdg-desktop-portal-hyprland"
|
||||||
"waybar"
|
"waybar"
|
||||||
"grim"
|
"grim"
|
||||||
"slurp"
|
"slurp"
|
||||||
"swappy"
|
"swappy"
|
||||||
"cliphist"
|
"cliphist"
|
||||||
);
|
"kitty"
|
||||||
|
)
|
||||||
|
|
||||||
packagesYay=(
|
packagesYay=(
|
||||||
|
"pyprland"
|
||||||
"wlogout"
|
"wlogout"
|
||||||
"nwg-look"
|
"nwg-look"
|
||||||
"eww"
|
"eww"
|
||||||
"hyprshade"
|
"hyprshade"
|
||||||
);
|
)
|
||||||
|
|||||||
@@ -35,4 +35,7 @@ fi
|
|||||||
if [ -d ~/dotfiles-versions/$version/swappy ]; then
|
if [ -d ~/dotfiles-versions/$version/swappy ]; then
|
||||||
_installSymLink swappy ~/.config/swappy ~/dotfiles/swappy/ ~/.config
|
_installSymLink swappy ~/.config/swappy ~/dotfiles/swappy/ ~/.config
|
||||||
fi
|
fi
|
||||||
|
if [ -d ~/dotfiles-versions/$version/fastfetch ]; then
|
||||||
|
_installSymLink fastfetch ~/.config/fastfetch ~/dotfiles/fastfetch/ ~/.config
|
||||||
|
fi
|
||||||
echo ":: Symbolic links created."
|
echo ":: Symbolic links created."
|
||||||
|
|||||||
@@ -5,16 +5,17 @@ echo -e "${GREEN}"
|
|||||||
figlet "Wallpapers"
|
figlet "Wallpapers"
|
||||||
echo -e "${NONE}"
|
echo -e "${NONE}"
|
||||||
if [ ! -d ~/wallpaper ]; then
|
if [ ! -d ~/wallpaper ]; then
|
||||||
echo "Do you want to download the wallpapers from repository https://gitlab.com/stephan-raabe/wallpaper/ ?"
|
echo "Do you want to download the wallpapers from repository https://gitea.phywyj.dynv6.net/wyj/wallpaper.git ?"
|
||||||
echo "If not, the script will install 3 default wallpapers in ~/wallpaper/"
|
echo "If not, the script will install 3 default wallpapers in ~/wallpaper/"
|
||||||
echo ""
|
echo ""
|
||||||
if gum confirm "Do you want to download the repository?" ;then
|
if gum confirm "Do you want to download the repository?" ;then
|
||||||
wget -P ~/Downloads/ https://gitlab.com/stephan-raabe/wallpaper/-/archive/main/wallpaper-main.zip
|
# wget -P ~/Downloads/ https://gitlab.com/stephan-raabe/wallpaper/-/archive/main/wallpaper-main.zip
|
||||||
unzip -o ~/Downloads/wallpaper-main.zip -d ~/Downloads/
|
# unzip -o ~/Downloads/wallpaper-main.zip -d ~/Downloads/
|
||||||
if [ ! -d ~/wallpaper/ ]; then
|
# if [ ! -d ~/wallpaper/ ]; then
|
||||||
mkdir ~/wallpaper
|
# mkdir ~/wallpaper
|
||||||
fi
|
# fi
|
||||||
cp ~/Downloads/wallpaper-main/* ~/wallpaper/
|
# cp ~/Downloads/wallpaper-main/* ~/wallpaper/
|
||||||
|
git clone https://gitea.phywyj.dynv6.net/wyj/wallpaper.git ~/wallpaper
|
||||||
echo "Wallpapers from the repository installed successfully."
|
echo "Wallpapers from the repository installed successfully."
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
exit 130
|
exit 130
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
chromium
|
google-chrome-stable
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
mousepad
|
~/dotfiles/.settings/terminal.sh -e vim
|
||||||
@@ -1 +0,0 @@
|
|||||||
nm-connection-editor
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
* {
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
@@ -1 +1,3 @@
|
|||||||
* { border-width: 3px; }
|
* {
|
||||||
|
border-width: 2px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
alacritty -e pacseek
|
|
||||||
@@ -1 +1 @@
|
|||||||
alacritty
|
kitty
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
name = Extracted Theme
|
||||||
|
description = Automatically extracted with hyprcursor-util
|
||||||
|
version = 0.1
|
||||||
|
cursors_directory = hyprcursors
|
||||||
@@ -9,5 +9,8 @@ style = "Regular"
|
|||||||
opacity = 0.7
|
opacity = 0.7
|
||||||
|
|
||||||
[window.padding]
|
[window.padding]
|
||||||
x = 15
|
x = 0
|
||||||
y = 15
|
y = 0
|
||||||
|
|
||||||
|
[selection]
|
||||||
|
save_to_clipboard = true
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
--ozone-platform=wayland --enable-wayland-ime
|
||||||
+158
-87
@@ -1,110 +1,181 @@
|
|||||||
// Thanks to Bina
|
// Note that you must replace the image path to an existing image to display it.
|
||||||
{
|
{
|
||||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||||
"logo": {
|
// "logo": {
|
||||||
"padding": {
|
// "type": "iterm",
|
||||||
"top": 2
|
// "source": "/Users/carter/Desktop/apple1.png",
|
||||||
}
|
// "width": 28,
|
||||||
},
|
// "height": 12
|
||||||
|
// },
|
||||||
"display": {
|
"display": {
|
||||||
"separator": " ➜ "
|
// "separator": " "
|
||||||
|
"separator": " "
|
||||||
},
|
},
|
||||||
"modules": [
|
"modules": [
|
||||||
"break",
|
|
||||||
"break",
|
|
||||||
"break",
|
|
||||||
{
|
|
||||||
"type": "os",
|
|
||||||
"key": "OS ",
|
|
||||||
"keyColor": "31", // = color1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "kernel",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "31",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "packages",
|
|
||||||
"format": "{} (pacman)",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "31",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "shell",
|
|
||||||
"key": " └ ",
|
|
||||||
"keyColor": "31",
|
|
||||||
},
|
|
||||||
"break",
|
|
||||||
{
|
|
||||||
"type": "wm",
|
|
||||||
"key": "WM ",
|
|
||||||
"keyColor": "32",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "wmtheme",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "32",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "icons",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "32",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "cursor",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "32",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "terminal",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "32",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "terminalfont",
|
|
||||||
"key": " └ ",
|
|
||||||
"keyColor": "32",
|
|
||||||
},
|
|
||||||
"break",
|
|
||||||
{
|
{
|
||||||
"type": "host",
|
"type": "host",
|
||||||
"format": "{5} {1} Type {2}",
|
"key": "╭─",
|
||||||
"key": "PC ",
|
"keyColor": "green"
|
||||||
"keyColor": "33",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "cpu",
|
"type": "cpu",
|
||||||
"format": "{1} ({3}) @ {7} GHz",
|
"key": "├─",
|
||||||
"key": " ├ ",
|
"keyColor": "green"
|
||||||
"keyColor": "33",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "gpu",
|
"type": "gpu",
|
||||||
"format": "{1} {2} @ {12} GHz",
|
"key": "├─",
|
||||||
"key": " ├ ",
|
"keyColor": "green"
|
||||||
"keyColor": "33",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "memory",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "33",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "swap",
|
|
||||||
"key": " ├ ",
|
|
||||||
"keyColor": "33",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "disk",
|
"type": "disk",
|
||||||
"key": " ├ ",
|
"key": "├─",
|
||||||
"keyColor": "33",
|
"keyColor": "green"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "monitor",
|
"type": "memory",
|
||||||
"key": " └ ",
|
"key": "├─",
|
||||||
"keyColor": "33",
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "swap",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "display",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "battery",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "poweradapter",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "gamepad",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "bluetooth",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "sound",
|
||||||
|
"key": "╰─",
|
||||||
|
"keyColor": "green"
|
||||||
},
|
},
|
||||||
"break",
|
"break",
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"key": "╭─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "terminal",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "editor",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "terminalfont",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "lm",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "de",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wm",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "theme",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "icons",
|
||||||
|
"key": "╰─",
|
||||||
|
"keyColor": "yellow"
|
||||||
|
},
|
||||||
"break",
|
"break",
|
||||||
|
{
|
||||||
|
"type": "title",
|
||||||
|
"key": "╭─",
|
||||||
|
"format": "{1}@{2}",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "os",
|
||||||
|
"key": "├─", // Just get your distro's logo off nerdfonts.com
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "kernel",
|
||||||
|
"key": "├─",
|
||||||
|
"format": "{1} {2}",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "packages",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "uptime",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "media",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "cpuusage",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "loadavg",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "processes",
|
||||||
|
"key": "├─",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "localip",
|
||||||
|
"key": "╰─",
|
||||||
|
"compact": true,
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
"break",
|
||||||
|
{
|
||||||
|
"type": "custom",
|
||||||
|
"format": " \u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m "
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
source = ~/dotfiles/hypr/conf/animations/default.conf
|
source = ~/dotfiles/hypr/conf/animations/animations-high.conf
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ exec-once = ~/dotfiles/hypr/scripts/ml4w-welcome-autostart.sh
|
|||||||
# Start ewww daemon
|
# Start ewww daemon
|
||||||
exec-once = ~/dotfiles/hypr/scripts/eww.sh
|
exec-once = ~/dotfiles/hypr/scripts/eww.sh
|
||||||
|
|
||||||
|
exec-once = pypr
|
||||||
|
|
||||||
|
|
||||||
# Start autostart cleanup
|
# Start autostart cleanup
|
||||||
exec-once = ~/dotfiles/hypr/scripts/cleanup.sh
|
exec-once = ~/dotfiles/hypr/scripts/cleanup.sh
|
||||||
|
|
||||||
# Load configuration from ML4W Hyprland Settings App
|
|
||||||
exec = ~/.config/ml4w-hyprland-settings/hyprctl.sh
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
exec-once = hyprctl setcursor Bibata-Modern-Ice 24
|
exec-once = hyprctl setcursor Vimix-hyprcursors 24
|
||||||
|
env = HYPRCURSOR_THEME,Vimix-hyprcursors
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
source = ~/dotfiles/hypr/conf/decorations/default.conf
|
source = ~/dotfiles/hypr/conf/decorations/custom.conf
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# General window decoration
|
||||||
|
# name: "Default"
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
decoration {
|
||||||
|
rounding = 10
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 10
|
||||||
|
passes = 3
|
||||||
|
new_optimizations = on
|
||||||
|
ignore_opacity = true
|
||||||
|
xray = false
|
||||||
|
blurls = waybar
|
||||||
|
}
|
||||||
|
active_opacity = 1.0
|
||||||
|
inactive_opacity = 0.8
|
||||||
|
fullscreen_opacity = 1.0
|
||||||
|
|
||||||
|
shadow {
|
||||||
|
enabled = true
|
||||||
|
range = 30
|
||||||
|
render_power = 3
|
||||||
|
color = 0x66000000
|
||||||
|
}
|
||||||
|
#drop_shadow = true
|
||||||
|
#shadow_range = 30
|
||||||
|
#shadow_render_power = 3
|
||||||
|
#col.shadow = 0x66000000
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
env = XDG_SESSION_TYPE,wayland
|
env = XDG_SESSION_TYPE,wayland
|
||||||
env = XDG_SESSION_DESKTOP,Hyprland
|
env = XDG_SESSION_DESKTOP,Hyprland
|
||||||
env = QT_QPA_PLATFORM,wayland
|
env = QT_QPA_PLATFORM,wayland
|
||||||
|
env = QT_QPA_PLATFORMTHEME,qt6ct
|
||||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
env = MOZ_ENABLE_WAYLAND,1
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
source = ~/dotfiles/hypr/conf/keybindings/default.conf
|
source = ~/dotfiles/hypr/conf/keybindings/custom.conf
|
||||||
|
|||||||
@@ -0,0 +1,104 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# Key bindings
|
||||||
|
# name: "Default"
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
# SUPER KEY
|
||||||
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
# Applications
|
||||||
|
bind = $mainMod, RETURN, exec, ~/dotfiles/.settings/terminal.sh
|
||||||
|
bind = $mainMod, B, exec, ~/dotfiles/.settings/browser.sh
|
||||||
|
bind = $mainMod SHIFT, E, exec, emote
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
bind = $mainMod, Q, killactive
|
||||||
|
bind = $mainMod, F, fullscreen
|
||||||
|
bind = $mainMod SHIFT, F, fullscreen, 1
|
||||||
|
bind = $mainMod CTRL SHIFT, F, fullscreen, 2
|
||||||
|
bind = $mainMod ALT, F, fakefullscreen
|
||||||
|
bind = $mainMod, E, exec, ~/dotfiles/.settings/filemanager.sh
|
||||||
|
bind = $mainMod, T, togglefloating
|
||||||
|
bind = $mainMod SHIFT, T, exec, ~/dotfiles/hypr/scripts/toggleallfloat.sh
|
||||||
|
bind = $mainMod, J, togglesplit
|
||||||
|
bind = $mainMod, left, movefocus, l
|
||||||
|
bind = $mainMod, right, movefocus, r
|
||||||
|
bind = $mainMod, up, movefocus, u
|
||||||
|
bind = $mainMod, down, movefocus, d
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
bind = $mainMod SHIFT, right, resizeactive, 100 0
|
||||||
|
bind = $mainMod SHIFT, left, resizeactive, -100 0
|
||||||
|
bind = $mainMod SHIFT, up, resizeactive, 0 -100
|
||||||
|
bind = $mainMod SHIFT, down, resizeactive, 0 100
|
||||||
|
bind = $mainMod, G, togglegroup
|
||||||
|
bind = $mainMod CTRL, Tab, changegroupactive, f
|
||||||
|
|
||||||
|
# Actions
|
||||||
|
bind = $mainMod, PRINT, exec, ~/dotfiles/hypr/scripts/screenshot.sh
|
||||||
|
bind = $mainMod CTRL, Q, exec, wlogout
|
||||||
|
bind = $mainMod SHIFT, W, exec, ~/dotfiles/hypr/scripts/wallpaper.sh
|
||||||
|
bind = $mainMod CTRL, W, exec, ~/dotfiles/hypr/scripts/wallpaper.sh select
|
||||||
|
bind = $mainMod, SPACE, exec, rofi -show drun -replace -i
|
||||||
|
bind = $mainMod CTRL, H, exec, ~/dotfiles/hypr/scripts/keybindings.sh
|
||||||
|
bind = $mainMod SHIFT, B, exec, ~/dotfiles/waybar/launch.sh
|
||||||
|
bind = $mainMod CTRL, B, exec, ~/dotfiles/waybar/toggle.sh
|
||||||
|
bind = $mainMod SHIFT, R, exec, ~/dotfiles/hypr/scripts/loadconfig.sh
|
||||||
|
bind = $mainMod CTRL, C, exec, ~/dotfiles/scripts/cliphist.sh
|
||||||
|
bind = $mainMod, V, exec, ~/dotfiles/scripts/cliphist.sh
|
||||||
|
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh
|
||||||
|
bind = $mainMod CTRL, S, exec, ~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage
|
||||||
|
bind = $mainMod CTRL, P, exec, hyprpicker -a
|
||||||
|
bind = $mainMod SHIFT, S, exec, ~/dotfiles/hypr/scripts/hyprshade.sh
|
||||||
|
bind = $mainMod ALT, G, exec, ~/dotfiles/hypr/scripts/gamemode.sh
|
||||||
|
|
||||||
|
# Workspaces
|
||||||
|
bind = $mainMod, 1, workspace, 1
|
||||||
|
bind = $mainMod, 2, workspace, 2
|
||||||
|
bind = $mainMod, 3, workspace, 3
|
||||||
|
bind = $mainMod, 4, workspace, 4
|
||||||
|
bind = $mainMod, 5, workspace, 5
|
||||||
|
bind = $mainMod, 6, workspace, 6
|
||||||
|
bind = $mainMod, 7, workspace, 7
|
||||||
|
bind = $mainMod, 8, workspace, 8
|
||||||
|
bind = $mainMod, 9, workspace, 9
|
||||||
|
bind = $mainMod, 0, workspace, 10
|
||||||
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||||
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||||
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||||
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||||
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||||
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||||
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
bind = $mainMod CTRL, down, workspace, empty
|
||||||
|
bind = $mainMod CTRL, left, workspace, e-1
|
||||||
|
bind = $mainMod CTRL, right, workspace, e+1
|
||||||
|
|
||||||
|
# Fn keys
|
||||||
|
bind = , XF86MonBrightnessUp, exec, brightnessctl -q s +10%
|
||||||
|
bind = , XF86MonBrightnessDown, exec, brightnessctl -q s 10%-
|
||||||
|
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% && notify-send -t 400 "Volume: $(pactl get-sink-volume @DEFAULT_SINK@ | awk '/front-left/ {print $5}')"
|
||||||
|
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% && notify-send -t 400 "Volume: $(pactl get-sink-volume @DEFAULT_SINK@ | awk '/front-left/ {print $5}')"
|
||||||
|
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
bind = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
bind = , XF86AudioPause, exec, playerctl pause
|
||||||
|
bind = , XF86AudioNext, exec, playerctl next
|
||||||
|
bind = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
bind = , XF86Calculator, exec, qalculate-gtk
|
||||||
|
bind = , XF86Lock, exec, hyprlock
|
||||||
|
bind = , XF86Tools, exec, alacritty --class dotfiles-floating -e ~/dotfiles/hypr/settings/settings.sh
|
||||||
|
|
||||||
|
# Passthrough SUPER KEY to Virtual Machine
|
||||||
|
bind = $mainMod, P, submap, passthru
|
||||||
|
submap = passthru
|
||||||
|
bind = SUPER, Escape, submap, reset
|
||||||
|
submap = reset
|
||||||
|
|
||||||
|
# Pyprland
|
||||||
|
bind = $mainMod SHIFT, RETURN, exec, pypr toggle term
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
input {
|
input {
|
||||||
kb_layout = de
|
kb_layout = us
|
||||||
kb_variant =
|
kb_variant =
|
||||||
kb_model =
|
kb_model =
|
||||||
kb_options =
|
kb_options =
|
||||||
@@ -11,7 +11,9 @@ input {
|
|||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
mouse_refocus=false
|
mouse_refocus=false
|
||||||
touchpad {
|
touchpad {
|
||||||
natural_scroll = false
|
natural_scroll = true
|
||||||
|
disable_while_typing=true
|
||||||
|
tap-to-click=true
|
||||||
}
|
}
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ dwindle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
master {
|
master {
|
||||||
new_is_master = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
|
|||||||
@@ -12,5 +12,12 @@ master {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe = true
|
workspace_swipe=true
|
||||||
|
workspace_swipe_fingers=3
|
||||||
|
workspace_swipe_distance=400
|
||||||
|
workspace_swipe_invert=true
|
||||||
|
workspace_swipe_min_speed_to_force=30
|
||||||
|
workspace_swipe_cancel_ratio=0.5
|
||||||
|
workspace_swipe_create_new=true
|
||||||
|
workspace_swipe_forever=true
|
||||||
}
|
}
|
||||||
@@ -5,4 +5,7 @@
|
|||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = true
|
disable_hyprland_logo = true
|
||||||
disable_splash_rendering = true
|
disable_splash_rendering = true
|
||||||
|
enable_swallow = true
|
||||||
|
swallow_regex = ^(Alacritty|kitty|thunar)$
|
||||||
|
font_family = FiraCode Nerd Font
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# Monitor Setup
|
||||||
|
# name: "Default"
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
monitor=DP-1,preferred,0x0,2
|
||||||
|
monitor=HDMI-A-1,3840x2160,1920x-275,2,transform,1
|
||||||
|
|
||||||
|
workspace=1,monitor:DP-1
|
||||||
|
exec-once=hyprctl dispatch workspace 1
|
||||||
@@ -1 +1 @@
|
|||||||
source = ~/dotfiles/hypr/conf/windowrules/default.conf
|
source = ~/dotfiles/hypr/conf/windowrules/custom.conf
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# Window rules
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
windowrule = tile,^(Microsoft-edge)$
|
||||||
|
windowrule = tile,^(Brave-browser)$
|
||||||
|
windowrule = tile,^(Chromium)$
|
||||||
|
windowrule = float,^(pavucontrol)$
|
||||||
|
windowrule = float,^(blueman-manager)$
|
||||||
|
windowrule = float,^(nm-connection-editor)$
|
||||||
|
windowrule = float,^(qalculate-gtk)$
|
||||||
|
windowrule = float,^(showmethekey-gtk)$
|
||||||
|
windowrule = pin,^(showmethekey-gtk)$
|
||||||
|
layerrule = blur, gtk-layer-shell
|
||||||
|
layerrule = blur, logout_dialog
|
||||||
|
|
||||||
|
windowrule = float,title:^(Mathematica)$
|
||||||
|
windowrule = opacity 0.75, ^(Code)$
|
||||||
|
windowrule = opacity 0.75, ^(code-oss)$
|
||||||
|
windowrule = opacity 0.75, ^(code-url-handler)$
|
||||||
|
windowrule = float,^(QQ)$
|
||||||
|
windowrule = float,^(wechat)$
|
||||||
|
windowrule = float,^(fdm)$
|
||||||
|
windowrule = float,^(xdg-desktop-portal-gtk)$
|
||||||
@@ -6,8 +6,17 @@
|
|||||||
general {
|
general {
|
||||||
gaps_in = 10
|
gaps_in = 10
|
||||||
gaps_out = 14
|
gaps_out = 14
|
||||||
border_size = 3
|
border_size = 2
|
||||||
col.active_border = $color11
|
col.active_border = $color11
|
||||||
col.inactive_border = rgba(ffffffff)
|
col.inactive_border = rgba(ffffffff)
|
||||||
layout = dwindle
|
layout = dwindle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group {
|
||||||
|
col.border_active = $color11
|
||||||
|
col.border_inactive = rgba(ffffffff)
|
||||||
|
groupbar {
|
||||||
|
col.active = $color11
|
||||||
|
col.inactive = $color13
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
[pyprland]
|
||||||
|
|
||||||
|
plugins = [
|
||||||
|
"scratchpads",
|
||||||
|
"magnify",
|
||||||
|
]
|
||||||
|
|
||||||
|
[scratchpads.term]
|
||||||
|
animation = "fromTop"
|
||||||
|
command = "alacritty --class alacritty-dropterm"
|
||||||
|
class = "alacritty-dropterm"
|
||||||
|
size = "75% 60%"
|
||||||
+4
-4
@@ -29,7 +29,7 @@ gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
|
|||||||
gsettings set "$gnome_schema" font-name "$font_name"
|
gsettings set "$gnome_schema" font-name "$font_name"
|
||||||
gsettings set "$gnome_schema" color-scheme "prefer-dark"
|
gsettings set "$gnome_schema" color-scheme "prefer-dark"
|
||||||
|
|
||||||
if [ -f ~/dotfiles/hypr/conf/cursor.conf ] ;then
|
# if [ -f ~/dotfiles/hypr/conf/cursor.conf ] ;then
|
||||||
echo "exec-once = hyprctl setcursor $cursor_theme $cursor_size" > ~/dotfiles/hypr/conf/cursor.conf
|
# echo "exec-once = hyprctl setcursor $cursor_theme $cursor_size" > ~/dotfiles/hypr/conf/cursor.conf
|
||||||
hyprctl setcursor $cursor_theme $cursor_size
|
# hyprctl setcursor $cursor_theme $cursor_size
|
||||||
fi
|
# fi
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
font_family Fira Code Nerd Font
|
||||||
|
font_size 16.0
|
||||||
|
bold_font auto
|
||||||
|
italic_font auto
|
||||||
|
bold_italic_font auto
|
||||||
|
|
||||||
|
background_opacity 0.7
|
||||||
|
|
||||||
|
confirm_os_window_close 0
|
||||||
|
|
||||||
|
selection_foreground #000000
|
||||||
|
selection_background #F5FBFF
|
||||||
|
|
||||||
|
detect_urls yes
|
||||||
|
copy_on_select clipboard
|
||||||
|
strip_trailing_spaces smart
|
||||||
|
rectangle_select_modifiers ctrl+alt
|
||||||
|
terminal_select_modifiers shift
|
||||||
|
|
||||||
|
enable_audio_bell no
|
||||||
|
|
||||||
|
remember_window_size no
|
||||||
|
window_padding_width 5
|
||||||
|
|
||||||
|
map ctrl+super+enter launch --cwd=current
|
||||||
+121
@@ -0,0 +1,121 @@
|
|||||||
|
name: Bug Report
|
||||||
|
description: File a bug report
|
||||||
|
labels: [bug]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
_Before reporting:_ Search [existing issues](https://github.com/ayamir/nvimdots/issues) and check the [FAQ](https://github.com/ayamir/nvimdots/wiki/Issues). Thank you for helping us improve!
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> The `0.11` branch is intended for nightly Neovim builds and is **not** stable. It typically harbors subtle issues scattered throughout. Therefore, refrain from submitting issues if you happen to encounter them. They will be closed directly unless a viable solution is proposed or included.
|
||||||
|
- type: checkboxes
|
||||||
|
id: is-latest-commit
|
||||||
|
attributes:
|
||||||
|
label: "Version confirmation"
|
||||||
|
description: "The local configuration is up-to-date in the current branch and this issue _persists_."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: prerequisites-done
|
||||||
|
attributes:
|
||||||
|
label: "Following prerequisites"
|
||||||
|
description: "I've checked everything mentioned in [Wiki: Prerequisites](https://github.com/ayamir/nvimdots/wiki/Prerequisites)."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: not-user-config-issue
|
||||||
|
attributes:
|
||||||
|
label: "Not a user config issue"
|
||||||
|
description: "This issue _persists_ after removing ALL user configs. If this is not the case, you should open a [Custom (User) Config Issue](https://github.com/ayamir/nvimdots/issues/new?assignees=&labels=usage&projects=&template=custom_config.yml) instead."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: nvim-version
|
||||||
|
attributes:
|
||||||
|
label: "Neovim version"
|
||||||
|
description: "Paste the output of `nvim --version` here"
|
||||||
|
placeholder: "NVIM v0.11.0-dev-194+g6c7677e5d"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: system-version
|
||||||
|
attributes:
|
||||||
|
label: "Operating system/version"
|
||||||
|
placeholder: "macOS 12.6.1"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: terminal-version
|
||||||
|
attributes:
|
||||||
|
label: "Terminal name/version"
|
||||||
|
placeholder: "iTerm2 Build 3.4.17"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: term-env
|
||||||
|
attributes:
|
||||||
|
label: "$TERM environment variable"
|
||||||
|
placeholder: "xterm-256color"
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: dropdown
|
||||||
|
id: branch
|
||||||
|
attributes:
|
||||||
|
label: "Branch info"
|
||||||
|
description: "Which branch are you currently on? If you are not sure, check the output of `git rev-parse --abbrev-ref HEAD`"
|
||||||
|
options:
|
||||||
|
- main (Default/Latest)
|
||||||
|
- 0.9 (Legacy)
|
||||||
|
- 0.8 (Deprecated)
|
||||||
|
- 0.11 (Nightly)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: fetch-pref
|
||||||
|
attributes:
|
||||||
|
label: "Fetch Preferences"
|
||||||
|
description: "In what way do you fetch resources? If you are not sure, check the value of `use_ssh` in `lua/user/settings.lua`"
|
||||||
|
options:
|
||||||
|
- SSH (use_ssh = true)
|
||||||
|
- HTTPS (use_ssh = false)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: repro-steps
|
||||||
|
attributes:
|
||||||
|
label: "How to reproduce the issue"
|
||||||
|
description: "Note: Issues without any information will be closed directly"
|
||||||
|
placeholder: |
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: expected-behavior
|
||||||
|
attributes:
|
||||||
|
label: "Expected behavior"
|
||||||
|
description: "Describe the behavior you expect"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: actual-behavior
|
||||||
|
attributes:
|
||||||
|
label: "Actual behavior"
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: extras
|
||||||
|
attributes:
|
||||||
|
label: Additional information
|
||||||
|
description: If applicable, you may include logs, images, or videos to help explain your problem
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
blank_issues_enabled: true
|
||||||
|
contact_links:
|
||||||
|
- name: GitHub Discussions
|
||||||
|
url: https://github.com/ayamir/nvimdots/discussions/new/choose
|
||||||
|
about: Any issue that does not fall into the above categories shall go here
|
||||||
|
- name: GitHub Wiki
|
||||||
|
url: https://github.com/ayamir/nvimdots/wiki
|
||||||
|
about: Make sure you have checked our documentation first. To be explicit, the "Issues" section
|
||||||
+111
@@ -0,0 +1,111 @@
|
|||||||
|
name: Custom (User) Config Issue
|
||||||
|
description: Problems when trying to implement your custom config
|
||||||
|
labels: [usage]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
_Before requesting:_ Make sure you've read through our [Wiki: Usage](https://github.com/ayamir/nvimdots/wiki/Usage) before you start to add things to nvimdots!
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> The `0.11` branch is intended for nightly Neovim builds and is **not** stable. It typically harbors subtle issues scattered throughout. Therefore, refrain from submitting issues if you happen to encounter them. They will be closed directly unless a viable solution is proposed or included.
|
||||||
|
- type: checkboxes
|
||||||
|
id: is-latest-commit
|
||||||
|
attributes:
|
||||||
|
label: "Version confirmation"
|
||||||
|
description: "The local configuration is up-to-date in the current branch and this issue _persists_."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: prerequisites-done
|
||||||
|
attributes:
|
||||||
|
label: "Following prerequisites"
|
||||||
|
description: "I've checked everything mentioned in [Wiki: Prerequisites](https://github.com/ayamir/nvimdots/wiki/Prerequisites)."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: nvim-version
|
||||||
|
attributes:
|
||||||
|
label: "Neovim version"
|
||||||
|
description: "Paste the output of `nvim --version` here"
|
||||||
|
placeholder: "NVIM v0.11.0-dev-194+g6c7677e5d"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: branch-info
|
||||||
|
attributes:
|
||||||
|
label: "Branch info"
|
||||||
|
description: "This issue template mainly targets `main` branch. Check the output of `git rev-parse --abbrev-ref HEAD` if you're not sure."
|
||||||
|
options:
|
||||||
|
- main (Default/Latest)
|
||||||
|
- 0.9 (Legacy)
|
||||||
|
- 0.8 (Deprecated)
|
||||||
|
- 0.11 (Nightly)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: folder-structure-ta
|
||||||
|
attributes:
|
||||||
|
label: "Minimal (user) folder structure required to reproduce the issue"
|
||||||
|
description: "Note: You only need to describe where the *new/modified files* are. This section will be automatically formatted."
|
||||||
|
render: console
|
||||||
|
placeholder: |
|
||||||
|
└── lua/
|
||||||
|
├── core/
|
||||||
|
├── keymap/ default keymaps
|
||||||
|
├── modules/ default plugins and plugin configs
|
||||||
|
└── user custom configs root directory
|
||||||
|
├── configs/ custom plugin config folder
|
||||||
|
│ ├── dap-clients/ custom dap client config folder
|
||||||
|
│ ├── lsp-servers/ custom lsp server config folder
|
||||||
|
│ └── your-config.lua your plugin configs (if applicable)
|
||||||
|
├── keymap/ custom keymap folder
|
||||||
|
│ └── your-config.lua your keymap overrides (if applicable)
|
||||||
|
├── plugins/ custom plugin folder
|
||||||
|
│ └── your-config.lua your plugins (if applicable)
|
||||||
|
├── event.lua custom `core/events.lua` overrides
|
||||||
|
├── options.lua custom `core/options.lua` overrides
|
||||||
|
└── settings.lua custom `core/settings.lua` overrides
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: repro-steps
|
||||||
|
attributes:
|
||||||
|
label: "Minimal config with steps on how to reproduce the issue"
|
||||||
|
description: "Note: Issues without any information will be closed directly"
|
||||||
|
placeholder: |
|
||||||
|
This is my custom config (`specs.lua`):
|
||||||
|
```lua
|
||||||
|
return {
|
||||||
|
popup = {
|
||||||
|
delay_ms = 20,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: expected-behavior
|
||||||
|
attributes:
|
||||||
|
label: "Expected behavior"
|
||||||
|
description: "Describe the behavior you expect"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: extras
|
||||||
|
attributes:
|
||||||
|
label: Additional information
|
||||||
|
description: If applicable, you may include logs, images, or videos to help explain your problem
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
name: Feature Request
|
||||||
|
description: Request an enhancement for this project
|
||||||
|
labels: [enhancement]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
_Before requesting:_ Search [existing issues](https://github.com/ayamir/nvimdots/labels/enhancement) and check the [FAQ](https://github.com/ayamir/nvimdots/wiki/Issues). Thank you for helping us improve!
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: feat-desc
|
||||||
|
attributes:
|
||||||
|
label: "Feature description"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: extras
|
||||||
|
attributes:
|
||||||
|
label: "Additional information"
|
||||||
|
description: "If applicable, you may include images or videos to help explain your request"
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
+148
@@ -0,0 +1,148 @@
|
|||||||
|
name: LSP Issue
|
||||||
|
description: File a bug report related to LSPs
|
||||||
|
labels: [bug, lsp]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
_Before reporting:_ Search [existing issues](https://github.com/ayamir/nvimdots/issues) and check the [FAQ](https://github.com/ayamir/nvimdots/wiki/Issues). Thank you for helping us improve!
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> The `0.11` branch is intended for nightly Neovim builds and is **not** stable. It typically harbors subtle issues scattered throughout. Therefore, refrain from submitting issues if you happen to encounter them. They will be closed directly unless a viable solution is proposed or included.
|
||||||
|
- type: checkboxes
|
||||||
|
id: is-latest-commit
|
||||||
|
attributes:
|
||||||
|
label: "Version confirmation"
|
||||||
|
description: "The local configuration is up-to-date in the current branch and this issue _persists_."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: prerequisites-done
|
||||||
|
attributes:
|
||||||
|
label: "Following prerequisites"
|
||||||
|
description: "I've checked everything mentioned in [Wiki: Prerequisites](https://github.com/ayamir/nvimdots/wiki/Prerequisites)."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: not-user-config-issue
|
||||||
|
attributes:
|
||||||
|
label: "Not a user config issue"
|
||||||
|
description: "This issue _persists_ after removing ALL user configs. If this is not the case, you should open a [Custom (User) Config Issue](https://github.com/ayamir/nvimdots/issues/new?assignees=&labels=usage&projects=&template=custom_config.yml) instead."
|
||||||
|
options:
|
||||||
|
- label: "Confirm"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: nvim-version
|
||||||
|
attributes:
|
||||||
|
label: "Neovim version"
|
||||||
|
description: "Paste the output of `nvim --version` here"
|
||||||
|
placeholder: "NVIM v0.11.0-dev-194+g6c7677e5d"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: system-version
|
||||||
|
attributes:
|
||||||
|
label: "Operating system/version"
|
||||||
|
placeholder: "macOS 12.6.1"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: terminal-version
|
||||||
|
attributes:
|
||||||
|
label: "Terminal name/version"
|
||||||
|
placeholder: "iTerm2 Build 3.4.17"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: term-env
|
||||||
|
attributes:
|
||||||
|
label: "$TERM environment variable"
|
||||||
|
placeholder: "xterm-256color"
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: dropdown
|
||||||
|
id: branch
|
||||||
|
attributes:
|
||||||
|
label: "Branch info"
|
||||||
|
description: "Which branch are you currently on? If you are not sure, check the output of `git rev-parse --abbrev-ref HEAD`"
|
||||||
|
options:
|
||||||
|
- main (Default/Latest)
|
||||||
|
- 0.9 (Legacy)
|
||||||
|
- 0.8 (Deprecated)
|
||||||
|
- 0.11 (Nightly)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: fetch-pref
|
||||||
|
attributes:
|
||||||
|
label: "Fetch Preferences"
|
||||||
|
description: "In what way do you fetch resources? If you are not sure, check the value of `use_ssh` in `lua/user/settings.lua`"
|
||||||
|
options:
|
||||||
|
- SSH (use_ssh = true)
|
||||||
|
- HTTPS (use_ssh = false)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: servers
|
||||||
|
attributes:
|
||||||
|
label: "Affected language servers"
|
||||||
|
description: "If this issue is specific to one or more language servers, list them here. If not, write `any`"
|
||||||
|
placeholder: "lua-language-server, clangd"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: repro-steps
|
||||||
|
attributes:
|
||||||
|
label: "How to reproduce the issue"
|
||||||
|
description: "Note: Issues without any information will be closed directly"
|
||||||
|
placeholder: |
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: actual-behavior
|
||||||
|
attributes:
|
||||||
|
label: "Actual behavior"
|
||||||
|
description: "Briefly describe what you've observed"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: expected-behavior
|
||||||
|
attributes:
|
||||||
|
label: "Expected behavior"
|
||||||
|
description: "Describe the behavior you expect"
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: support-info
|
||||||
|
attributes:
|
||||||
|
label: "Support info"
|
||||||
|
description: "Plase include information (screenshots) from `:LspInfo` and `:Mason`"
|
||||||
|
placeholder: |
|
||||||
|
:LspInfo
|
||||||
|
:Mason
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: lsp-logs
|
||||||
|
attributes:
|
||||||
|
label: "Logs"
|
||||||
|
description: "Please copy and paste any relevant log output (e.g., `${HOME}/.local/state/nvim/lsp.log` and `${HOME}/.cache/nvim/lsp.log`). This section will be automatically formatted"
|
||||||
|
render: console
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: extras
|
||||||
|
attributes:
|
||||||
|
label: "Additional information"
|
||||||
|
description: "If applicable, you may include images or videos to help explain your problem"
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
Vendored
+11
@@ -0,0 +1,11 @@
|
|||||||
|
name: lint code
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
luacheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: lunarmodules/luacheck@v1
|
||||||
|
with:
|
||||||
|
args: . --std luajit --globals vim _debugging _command_panel _flash_esc_or_noh _telescope_collections _toggle_lazygit --max-line-length 150 --no-config
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
name: style check
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stylua:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: JohnnyMorganz/stylua-action@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
version: latest
|
||||||
|
args: --check --config-path=stylua.toml .
|
||||||
+26
@@ -0,0 +1,26 @@
|
|||||||
|
name: update flake.lock
|
||||||
|
on:
|
||||||
|
# Scheduled update (1st of every month)
|
||||||
|
schedule: [{ cron: "30 02 1 * *" }]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-lockfile:
|
||||||
|
if: github.repository_owner == 'ayamir'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: cachix/install-nix-action@v26
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- name: Run flake-update
|
||||||
|
run: |
|
||||||
|
nix flake update
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
with:
|
||||||
|
commit_message: "chore(lockfile): auto update flake.lock"
|
||||||
|
commit_user_name: "github-actions[bot]"
|
||||||
|
commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
||||||
|
file_pattern: "flake.lock"
|
||||||
+41
@@ -0,0 +1,41 @@
|
|||||||
|
name: update lockfile
|
||||||
|
on:
|
||||||
|
# Scheduled update (each day)
|
||||||
|
schedule: [{ cron: "30 01 * * *" }]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-lockfile:
|
||||||
|
if: github.repository_owner == 'ayamir'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Required to count the commits
|
||||||
|
- uses: andstor/file-existence-action@v3
|
||||||
|
id: check_lockfile
|
||||||
|
with:
|
||||||
|
files: "lazy-lock.json"
|
||||||
|
- name: Run count-new-commits
|
||||||
|
run: |
|
||||||
|
echo "NEW_COMMIT_COUNT=$(git log --oneline --since '24 hours ago' --perl-regexp --author='^((?!github-actions).*)$' | wc -l)" >> "$GITHUB_ENV"
|
||||||
|
- uses: rhysd/action-setup-vim@v1
|
||||||
|
if: ${{ steps.check_lockfile.outputs.files_exists == 'true' && env.NEW_COMMIT_COUNT > 0 }}
|
||||||
|
with:
|
||||||
|
neovim: true
|
||||||
|
- name: Run lockfile-autoupdate
|
||||||
|
if: ${{ steps.check_lockfile.outputs.files_exists == 'true' && env.NEW_COMMIT_COUNT > 0 }}
|
||||||
|
timeout-minutes: 5
|
||||||
|
run: |
|
||||||
|
./scripts/install.sh
|
||||||
|
nvim --headless "+Lazy! update" +qa
|
||||||
|
cp -pv "${HOME}/.config/nvim/lazy-lock.json" .
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
if: ${{ steps.check_lockfile.outputs.files_exists == 'true' && env.NEW_COMMIT_COUNT > 0 }}
|
||||||
|
with:
|
||||||
|
commit_message: "chore(lockfile): auto update lazy-lock.json"
|
||||||
|
commit_user_name: "github-actions[bot]"
|
||||||
|
commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
||||||
|
file_pattern: "lazy-lock.json"
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
lua/modules/plugins/custom.lua
|
||||||
|
lua/modules/configs/custom
|
||||||
|
lua/user
|
||||||
|
result
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"formatting": {
|
||||||
|
"command": [
|
||||||
|
"nixpkgs-fmt"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
BSD 3-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2021 ayamir
|
||||||
|
Copyright (c) 2022 Jint-lzxy, CharlesChiuGit
|
||||||
|
Copyright (c) 2023 aarnphm, misumisumi
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
+216
@@ -0,0 +1,216 @@
|
|||||||
|
<h1 align="center">
|
||||||
|
nvimdots
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/neovim/neovim/releases/tag/stable">
|
||||||
|
<img
|
||||||
|
alt="Neovim Version Capability"
|
||||||
|
src="https://img.shields.io/badge/Supports%20Nvim-v0.10-A6D895?style=for-the-badge&colorA=363A4F&logo=neovim&logoColor=D9E0EE">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/ayamir/nvimdots/releases">
|
||||||
|
<img
|
||||||
|
alt="Release"
|
||||||
|
src="https://img.shields.io/github/v/release/ayamir/nvimdots.svg?style=for-the-badge&logo=github&color=F2CDCD&logoColor=D9E0EE&labelColor=363A4F">
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/ayamir/nvimdots/stargazers">
|
||||||
|
<img
|
||||||
|
alt="Stars"
|
||||||
|
src="https://img.shields.io/github/stars/ayamir/nvimdots?colorA=363A4F&colorB=B7BDF8&logo=adafruit&logoColor=D9E0EE&style=for-the-badge">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/ayamir/nvimdots/issues">
|
||||||
|
<img
|
||||||
|
alt="Issues"
|
||||||
|
src="https://img.shields.io/github/issues-raw/ayamir/nvimdots?colorA=363A4f&colorB=F5A97F&logo=github&logoColor=D9E0EE&style=for-the-badge">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/ayamir/nvimdots/contributors">
|
||||||
|
<img
|
||||||
|
alt="Contributors"
|
||||||
|
src="https://img.shields.io/github/contributors/ayamir/nvimdots?colorA=363A4F&colorB=B5E8E0&logo=git&logoColor=D9E0EE&style=for-the-badge">
|
||||||
|
</a>
|
||||||
|
<img
|
||||||
|
alt="Code Size"
|
||||||
|
src="https://img.shields.io/github/languages/code-size/ayamir/nvimdots?colorA=363A4F&colorB=DDB6F2&logo=gitlfs&logoColor=D9E0EE&style=for-the-badge">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## 🪷 Introduction
|
||||||
|
|
||||||
|
This repo hosts our [Neovim](https://neovim.io/) configuration for Linux [(with NixOS support)](#nixos-support), macOS, and Windows. `init.lua` is the config entry point.
|
||||||
|
|
||||||
|
Branch info:
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
|
||||||
|
| Branch | Supported Neovim version |
|
||||||
|
| :----: | :----------------------: |
|
||||||
|
| main | nvim 0.10 stable |
|
||||||
|
| 0.11 | nvim 0.11 nightly |
|
||||||
|
| 0.9 | nvim 0.9 |
|
||||||
|
| 0.8 | nvim 0.8 |
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> The `0.11` branch is intended for nightly Neovim builds and is **not** stable. It typically harbors subtle issues scattered throughout. Therefore, refrain from submitting issues if you happen to encounter them. They will be closed directly unless a viable solution is proposed or included.
|
||||||
|
|
||||||
|
We currently manage plugins using [lazy.nvim](https://github.com/folke/lazy.nvim).
|
||||||
|
|
||||||
|
Chinese introduction is [here](https://zhuanlan.zhihu.com/p/382092667).
|
||||||
|
|
||||||
|
### 🎐 Features
|
||||||
|
|
||||||
|
- **Fast.** Less than **50ms** to start (Depends on SSD and CPU, tested on Zephyrus G14 2022 version).
|
||||||
|
- **Simple.** Runs out of the box.
|
||||||
|
- **Modern.** Pure `lua` config.
|
||||||
|
- **Modular.** Easy to customize.
|
||||||
|
- **Powerful.** Full functionality to code.
|
||||||
|
|
||||||
|
## 🏗 How to Install
|
||||||
|
|
||||||
|
Simply run the following interactive bootstrap command, and you should be all set 👍
|
||||||
|
|
||||||
|
- **Windows** _(Note: This script REQUIRES `pwsh` > `v7.1`)_
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ayamir/nvimdots/HEAD/scripts/install.ps1'))
|
||||||
|
```
|
||||||
|
|
||||||
|
- **\*nix**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
if command -v curl >/dev/null 2>&1; then
|
||||||
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ayamir/nvimdots/HEAD/scripts/install.sh)"
|
||||||
|
else
|
||||||
|
bash -c "$(wget -O- https://raw.githubusercontent.com/ayamir/nvimdots/HEAD/scripts/install.sh)"
|
||||||
|
fi
|
||||||
|
```
|
||||||
|
|
||||||
|
It's strongly recommended to read [Wiki: Prerequisites](https://github.com/ayamir/nvimdots/wiki/Prerequisites) before starting, especially for \*nix users.
|
||||||
|
|
||||||
|
## ⚙️ Configuration & Usage
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
🗺️ Keybindings
|
||||||
|
</h3>
|
||||||
|
<p align="center">See <a href="https://github.com/ayamir/nvimdots/wiki/Keybindings" rel="nofollow">Wiki: Keybindings</a> for details</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
🔌 Plugins & Deps
|
||||||
|
</h3>
|
||||||
|
<p align="center">See <a href="https://github.com/ayamir/nvimdots/wiki/Plugins" rel="nofollow">Wiki: Plugins</a> for details <br><em>(You can also find a deps diagram there!)</em></p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
🔧 Usage & Customization
|
||||||
|
</h3>
|
||||||
|
<p align="center">See <a href="https://github.com/ayamir/nvimdots/wiki/Usage" rel="nofollow">Wiki: Usage</a> for details</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h3 align="center" id="nixos-support" name="nixos-support">
|
||||||
|
❄️ NixOS Support
|
||||||
|
</h3>
|
||||||
|
<p align="center">See <a href="https://github.com/ayamir/nvimdots/wiki/NixOS-Support" rel="nofollow">Wiki: NixOS Support</a> for details</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
🤔 FAQ
|
||||||
|
</h3>
|
||||||
|
<p align="center">See <a href="https://github.com/ayamir/nvimdots/wiki/Issues" rel="nofollow">Wiki: FAQ</a> for details</p>
|
||||||
|
|
||||||
|
## ✨ Features
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
⏱️ Startup Time
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/startuptime.png"
|
||||||
|
width = "80%"
|
||||||
|
alt = "StartupTime"
|
||||||
|
/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/vimstartup.png"
|
||||||
|
width = "60%"
|
||||||
|
alt = "Vim-StartupTime"
|
||||||
|
/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
> Tested with [rhysd/vim-startuptime](https://github.com/rhysd/vim-startuptime)
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
📸 Screenshots
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/dashboard.png" alt="Dashboard">
|
||||||
|
<em>Dashboard</em>
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/telescope.png" alt="Telescope">
|
||||||
|
<em>Telescope</em>
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/coding.png" alt="Coding">
|
||||||
|
<em>Coding</em>
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/code_action.png" alt="Code Action">
|
||||||
|
<em>Code Action</em>
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/dap.png" alt="Debugging">
|
||||||
|
<em>Debugging</em>
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/lazygit.png" alt="Lazygit">
|
||||||
|
<em>Lazygit with built-in Terminal</em>
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/ayamir/blog-imgs/main/command_ref.png" alt="Command quickref">
|
||||||
|
<em>Command quickref</em>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## 👐 Contributing
|
||||||
|
|
||||||
|
- If you find anything that needs improving, do not hesitate to point it out or create a PR.
|
||||||
|
- If you come across an issue, you can first use `:checkhealth` command provided by nvim to trouble-shoot yourself.
|
||||||
|
- If you still have such problems, feel free to open a new issue!
|
||||||
|
|
||||||
|
## ❤️ Thanks to
|
||||||
|
|
||||||
|
- [ayamir](https://github.com/ayamir)
|
||||||
|
- [Jint-lzxy](https://github.com/Jint-lzxy)
|
||||||
|
- [CharlesChiuGit](https://github.com/CharlesChiuGit)
|
||||||
|
- [aarnphm](https://github.com/aarnphm)
|
||||||
|
- [misumisumi](https://github.com/misumisumi)
|
||||||
|
|
||||||
|
## 🎉 Acknowledgement
|
||||||
|
|
||||||
|
- [glepnir/nvim](https://github.com/glepnir/nvim)
|
||||||
|
|
||||||
|
## 📜 License
|
||||||
|
|
||||||
|
This Neovim configuration is released under the BSD 3-Clause license, which grants the following permissions:
|
||||||
|
|
||||||
|
- Commercial use
|
||||||
|
- Distribution
|
||||||
|
- Modification
|
||||||
|
- Private use
|
||||||
|
|
||||||
|
For more convoluted language, see the [LICENSE](https://github.com/ayamir/nvimdots/blob/main/LICENSE).
|
||||||
Generated
+148
@@ -0,0 +1,148 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"devshell": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717408969,
|
||||||
|
"narHash": "sha256-Q0OEFqe35fZbbRPPRdrjTUUChKVhhWXz3T9ZSKmaoVY=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"rev": "1ebbe68d57457c8cae98145410b164b5477761f4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719745305,
|
||||||
|
"narHash": "sha256-xwgjVUpqSviudEkpQnioeez1Uo2wzrsMaJKJClh+Bls=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "c3c5ecc05edc7dafba779c6c1a61cd08ac6583e9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1701680307,
|
||||||
|
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719677234,
|
||||||
|
"narHash": "sha256-qO9WZsj/0E6zcK4Ht1y/iJ8XfwbBzq7xdqhBh44OP/M=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "36317d4d38887f7629876b0e43c8d9593c5cc48d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1704161960,
|
||||||
|
"narHash": "sha256-QGua89Pmq+FBAro8NriTuoO/wNaUtugt29/qqA8zeeM=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "63143ac2c9186be6d9da6035fa22620018c85932",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717284937,
|
||||||
|
"narHash": "sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719468428,
|
||||||
|
"narHash": "sha256-vN5xJAZ4UGREEglh3lfbbkIj+MPEYMuqewMn4atZFaQ=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "1e3deb3d8a86a870d925760db1a5adecc64d329d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"devshell": "devshell",
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
+105
@@ -0,0 +1,105 @@
|
|||||||
|
{
|
||||||
|
# This provides only NixOS module
|
||||||
|
# As of 2023/08/19, you need to depend on nixpkgs-unstable.
|
||||||
|
# because "doq" is not included in the stable version.
|
||||||
|
description = "Provide nixosModules for ayamir/nvimdots";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
devshell.url = "github:numtide/devshell";
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs @ { self, flake-parts, ... }:
|
||||||
|
flake-parts.lib.mkFlake { inherit inputs; }
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.devshell.flakeModule
|
||||||
|
];
|
||||||
|
flake = {
|
||||||
|
homeManagerModules = {
|
||||||
|
nvimdots = ./nixos;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
|
perSystem = { pkgs, system, ... }: {
|
||||||
|
packages = {
|
||||||
|
testEnv = (import ./nixos/testEnv.nix { inherit inputs pkgs; }).activationPackage;
|
||||||
|
check-linker = pkgs.writeShellApplication {
|
||||||
|
name = "check-linker";
|
||||||
|
text =
|
||||||
|
let
|
||||||
|
ldd_cmd = if pkgs.stdenv.isDarwin then "xcrun otool -L" else "${pkgs.glibc.bin}/bin/ldd";
|
||||||
|
in
|
||||||
|
''
|
||||||
|
#shellcheck disable=SC1090
|
||||||
|
source <(sed -ne :1 -e 'N;1,1b1' -e 'P;D' "${self.packages.${system}.testEnv}/home-path/bin/nvim")
|
||||||
|
echo "Checking files under ''${XDG_DATA_HOME}/''${NVIM_APPNAME:-nvim}/mason/bin..."
|
||||||
|
find "''${XDG_DATA_HOME}/''${NVIM_APPNAME:-nvim}/mason/bin" -type l | while read -r link; do
|
||||||
|
"${ldd_cmd}" "$(readlink -f "$link")" > /dev/zero 2>&1 || continue
|
||||||
|
linkers=$("${ldd_cmd}" "$(readlink -f "$link")" | tail -n+2)
|
||||||
|
echo "$linkers" | while read -r line; do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
echo "$line" | grep -q "/nix/store" || printf '%s: %s does not link to /nix/store \n' "$(basename "$link")" "$line"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
echo "*** Done ***"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
devshells.default = {
|
||||||
|
commands = [
|
||||||
|
{
|
||||||
|
help = "neovim linked to testEnv.";
|
||||||
|
name = "nvim";
|
||||||
|
command = ''
|
||||||
|
${self.packages.${system}.testEnv}/home-path/bin/nvim
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
help = "check-linker";
|
||||||
|
package = self.packages.${system}.check-linker;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
devshell = {
|
||||||
|
motd = ''
|
||||||
|
{202}🔨 Welcome to devshell{reset}
|
||||||
|
Symlink configs to "''${XDG_CONFIG_HOME}"/nvimdots!
|
||||||
|
And NVIM_APPNAME=nvimdots is already configured, so neovim will put files under "\$XDG_xxx_HOME"/nvimdots.
|
||||||
|
To uninstall, remove "\$XDG_xxx_HOME"/nvimdots.
|
||||||
|
|
||||||
|
$(type -p menu &>/dev/null && menu)
|
||||||
|
'';
|
||||||
|
startup = {
|
||||||
|
mkNvimDir = {
|
||||||
|
text = ''
|
||||||
|
mkdir -p "''${XDG_CONFIG_HOME}"/nvimdots
|
||||||
|
for path in lazy-lock.json init.lua lua snips tutor; do
|
||||||
|
ln -sf "''${PWD}/''${path}" "''${XDG_CONFIG_HOME}"/nvimdots/
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
env = [
|
||||||
|
{
|
||||||
|
name = "NVIM_APPNAME";
|
||||||
|
value = "nvimdots";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "PATH";
|
||||||
|
prefix = "${self.packages.${system}.testEnv}/home-path/bin";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
packages = with pkgs; [
|
||||||
|
nixd
|
||||||
|
nixpkgs-fmt
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user