mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
Compare commits
4 Commits
a6caf5ef5e
...
4556f66ab2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4556f66ab2 | ||
![]() |
c4f4b80836 | ||
![]() |
9eb89bb59f | ||
![]() |
82aebc8cff |
158
home/.config/crush/crush.json
Normal file
158
home/.config/crush/crush.json
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://charm.land/crush.json",
|
||||||
|
"lsp": {
|
||||||
|
"typescript": {
|
||||||
|
"command": "typescript-language-server",
|
||||||
|
"args": [
|
||||||
|
"--stdio"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"command": "typescript-language-server",
|
||||||
|
"args": [
|
||||||
|
"--stdio"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rust": {
|
||||||
|
"command": "rust-analyzer"
|
||||||
|
},
|
||||||
|
"nix": {
|
||||||
|
"command": "nil"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mcp": {
|
||||||
|
"context7": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"@upstash/context7-mcp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"playwright": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"@playwright/mcp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"shadcn": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"@heilgar/shadcn-ui-mcp-server"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"searxng": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"mcp-searxng"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"SEARXNG_URL": "http://127.0.0.1:7777"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"git": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"--python",
|
||||||
|
"/run/current-system/sw/bin/python",
|
||||||
|
"mcp-server-git"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docker": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"--python",
|
||||||
|
"/run/current-system/sw/bin/python",
|
||||||
|
"docker-mcp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"--python",
|
||||||
|
"/run/current-system/sw/bin/python",
|
||||||
|
"mcp-server-time"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"sequential-thinking": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"@modelcontextprotocol/server-sequential-thinking"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nixos": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"--python",
|
||||||
|
"/run/current-system/sw/bin/python",
|
||||||
|
"mcp-nixos"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"k8s": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"@strowk/mcp-k8s"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"filesystem": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"@modelcontextprotocol/server-filesystem",
|
||||||
|
"/home/xnm"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"n8n": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"n8n-mcp"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"MCP_MODE": "stdio",
|
||||||
|
"LOG_LEVEL": "error",
|
||||||
|
"DISABLE_CONSOLE_OUTPUT": "true",
|
||||||
|
"N8N_API_URL": "localhost:5678",
|
||||||
|
"N8N_API_KEY": "your-api-key"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"coolify": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"@masonator/coolify-mcp"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"COOLIFY_ACCESS_TOKEN": "0|your-secret-token",
|
||||||
|
"COOLIFY_BASE_URL": "localhost:8000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"appwrite": {
|
||||||
|
"type": "stdio",
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"mcp-server-appwrite",
|
||||||
|
"--all"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"APPWRITE_PROJECT_ID": "your-project-id",
|
||||||
|
"APPWRITE_API_KEY": "your-api-key",
|
||||||
|
"APPWRITE_ENDPOINT": "localhost:8088/v1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -39,6 +39,7 @@ set -gx VOLUME_STEP 5
|
|||||||
set -gx BRIGHTNESS_STEP 5
|
set -gx BRIGHTNESS_STEP 5
|
||||||
|
|
||||||
set -gx PATH $HOME/.cargo/bin $PATH
|
set -gx PATH $HOME/.cargo/bin $PATH
|
||||||
|
set -gx PATH $HOME/.npm-packages/bin $PATH
|
||||||
|
|
||||||
set fish_vi_force_cursor
|
set fish_vi_force_cursor
|
||||||
set fish_cursor_default block
|
set fish_cursor_default block
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
function check_night_mode
|
function check_night_mode
|
||||||
set target_process wlsunset
|
set target_process hyprsunset
|
||||||
|
|
||||||
if pgrep $target_process >/dev/null
|
if pgrep $target_process >/dev/null
|
||||||
echo "{ \"text\":\"\", \"tooltip\": \"night-mode <span color='#a6da95'>on</span>\", \"class\": \"on\" }"
|
echo "{ \"text\":\"\", \"tooltip\": \"night-mode <span color='#a6da95'>on</span>\", \"class\": \"on\" }"
|
||||||
|
27
home/.config/fish/functions/night_mode_temp_down.fish
Normal file
27
home/.config/fish/functions/night_mode_temp_down.fish
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
function night_mode_temp_down
|
||||||
|
set target_process hyprsunset
|
||||||
|
set temp_file ~/.cache/hyprsunset_temp
|
||||||
|
set decrement 100
|
||||||
|
|
||||||
|
if not pgrep $target_process >/dev/null
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if test -f $temp_file
|
||||||
|
set current_temp (cat $temp_file)
|
||||||
|
else
|
||||||
|
set current_temp 4000
|
||||||
|
end
|
||||||
|
|
||||||
|
set new_temp (math $current_temp - $decrement)
|
||||||
|
|
||||||
|
if test $new_temp -lt 2000
|
||||||
|
set new_temp 2000
|
||||||
|
end
|
||||||
|
|
||||||
|
echo $new_temp >$temp_file
|
||||||
|
|
||||||
|
killall -s SIGINT $target_process
|
||||||
|
sleep 0.5
|
||||||
|
$target_process -t $new_temp
|
||||||
|
end
|
27
home/.config/fish/functions/night_mode_temp_up.fish
Normal file
27
home/.config/fish/functions/night_mode_temp_up.fish
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
function night_mode_temp_up
|
||||||
|
set target_process hyprsunset
|
||||||
|
set temp_file ~/.cache/hyprsunset_temp
|
||||||
|
set increment 100
|
||||||
|
|
||||||
|
if not pgrep $target_process >/dev/null
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if test -f $temp_file
|
||||||
|
set current_temp (cat $temp_file)
|
||||||
|
else
|
||||||
|
set current_temp 4000
|
||||||
|
end
|
||||||
|
|
||||||
|
set new_temp (math $current_temp + $increment)
|
||||||
|
|
||||||
|
if test $new_temp -gt 6500
|
||||||
|
set new_temp 6500
|
||||||
|
end
|
||||||
|
|
||||||
|
echo $new_temp >$temp_file
|
||||||
|
|
||||||
|
killall -s SIGINT $target_process
|
||||||
|
sleep 0.5
|
||||||
|
$target_process -t $new_temp
|
||||||
|
end
|
@@ -1,9 +1,16 @@
|
|||||||
function night_mode_toggle
|
function night_mode_toggle
|
||||||
set target_process wlsunset
|
set target_process hyprsunset
|
||||||
|
set temp_file ~/.cache/hyprsunset_temp
|
||||||
|
|
||||||
if pgrep $target_process >/dev/null
|
if pgrep $target_process >/dev/null
|
||||||
killall -s SIGINT wlsunset
|
killall -s SIGINT $target_process
|
||||||
else
|
else
|
||||||
wlsunset
|
if test -f $temp_file
|
||||||
|
set temp (cat $temp_file)
|
||||||
|
else
|
||||||
|
set temp 4000
|
||||||
|
echo $temp >$temp_file
|
||||||
|
end
|
||||||
|
$target_process -t $temp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -223,7 +223,10 @@
|
|||||||
|
|
||||||
"custom/night_mode": {
|
"custom/night_mode": {
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"interval": 1,
|
"restart-interval": 1,
|
||||||
|
"on-scroll-down": "fish -c night_mode_temp_up",
|
||||||
|
"on-scroll-up": "fish -c night_mode_temp_down",
|
||||||
|
"smooth-scrolling-threshold": 2.0,
|
||||||
"exec": "fish -c check_night_mode",
|
"exec": "fish -c check_night_mode",
|
||||||
"on-click": "fish -c night_mode_toggle",
|
"on-click": "fish -c night_mode_toggle",
|
||||||
},
|
},
|
||||||
|
2
home/.npmrc
Normal file
2
home/.npmrc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
strict-ssl=true
|
||||||
|
prefix = ${HOME}/.npm-packages
|
@@ -19,6 +19,7 @@
|
|||||||
hyprlock
|
hyprlock
|
||||||
hypridle
|
hypridle
|
||||||
hyprpaper
|
hyprpaper
|
||||||
|
hyprsunset
|
||||||
hyprpolkitagent
|
hyprpolkitagent
|
||||||
|
|
||||||
inputs.wezterm.packages.${pkgs.system}.default
|
inputs.wezterm.packages.${pkgs.system}.default
|
||||||
|
@@ -4,7 +4,6 @@
|
|||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wlsunset
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user