Compare commits
2 Commits
3f38bafaf2
...
00d88f052b
Author | SHA1 | Date | |
---|---|---|---|
|
00d88f052b | ||
|
2d208ec6f9 |
luci
nate-work
nate/dotfiles
shared
@ -15,10 +15,11 @@
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking = {
|
||||
# Need this for ZFS
|
||||
hostId = "09e1d908";
|
||||
hostName = "luci"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
};
|
||||
|
||||
|
@ -25,6 +25,7 @@ font-variation-bold-italic = wght=700
|
||||
font-variation-bold-italic = wdth=100
|
||||
font-variation-bold-italic = slnt=-3
|
||||
|
||||
# Liguratures
|
||||
font-feature = +ss01, +ss02, +ss03, +ss04, +ss05, +ss06, +ss07, +ss08, +ss09, +ss10
|
||||
# Enables texture healing
|
||||
font-feature = +calt
|
||||
@ -43,4 +44,3 @@ keybind = ctrl+shift+plus=increase_font_size:1
|
||||
|
||||
window-padding-x = 4
|
||||
window-padding-y = 4
|
||||
copy-on-select=clipboard
|
||||
|
@ -81,6 +81,7 @@
|
||||
delve
|
||||
gotools
|
||||
go-tools
|
||||
golangci-lint
|
||||
|
||||
### LSP's
|
||||
gopls
|
||||
|
@ -113,6 +113,18 @@ in
|
||||
programs.zsh.enable = true;
|
||||
programs.ssh.startAgent = true;
|
||||
|
||||
services.printing = {
|
||||
enable = true;
|
||||
browsing = true;
|
||||
drivers = [ pkgs.brlaser ];
|
||||
};
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.fprintd.enable = true;
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
|
@ -24,7 +24,7 @@
|
||||
<key>caret</key>
|
||||
<string>#f4dbd6</string>
|
||||
<key>lineHighlight</key>
|
||||
<string>#cad3f512</string>
|
||||
<string>#363a4f</string>
|
||||
<key>misspelling</key>
|
||||
<string>#ed8796</string>
|
||||
<key>accent</key>
|
||||
@ -2016,6 +2016,44 @@
|
||||
<string>#f5bde6</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Man page options</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#8bd5ca</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>scope</key>
|
||||
<string>markup.heading.1.markdown</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#ed8796</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>scope</key>
|
||||
<string>markup.heading.2.markdown</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#f5a97f</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>scope</key>
|
||||
<string>markup.heading.markdown</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#eed49f</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
</plist>
|
46
nate/dotfiles/ghostty/config
Normal file
46
nate/dotfiles/ghostty/config
Normal file
@ -0,0 +1,46 @@
|
||||
theme = "catppuccin-macchiato"
|
||||
|
||||
###
|
||||
# Font config
|
||||
###
|
||||
|
||||
font-size = 14
|
||||
font-family = "Monaspace Xenon Var"
|
||||
font-family-bold = "Monaspace Argon Var"
|
||||
font-family-italic = "Monaspace Radon Var"
|
||||
font-family-bold-italic = "Monaspace Krypton Var"
|
||||
|
||||
font-variation = wght=400
|
||||
font-variation = wdth=100
|
||||
font-variation = slnt=-2
|
||||
|
||||
font-variation-bold = wght=600
|
||||
font-variation-bold = wdth=100
|
||||
|
||||
font-variation-italic = wght=400
|
||||
font-variation-italic = wdth=100
|
||||
font-variation-italic = slnt=-10
|
||||
|
||||
font-variation-bold-italic = wght=700
|
||||
font-variation-bold-italic = wdth=100
|
||||
font-variation-bold-italic = slnt=-3
|
||||
|
||||
# Liguratures
|
||||
font-feature = +ss01, +ss02, +ss03, +ss04, +ss05, +ss06, +ss07, +ss08, +ss09, +ss10
|
||||
# Enables texture healing
|
||||
font-feature = +calt
|
||||
font-feature = +liga
|
||||
|
||||
###
|
||||
# Keybinds
|
||||
###
|
||||
|
||||
keybind = ctrl+shift+plus=increase_font_size:1
|
||||
# keybind = ctrl+minus=decrease_font_size:1
|
||||
|
||||
###
|
||||
# Misc
|
||||
###
|
||||
|
||||
window-padding-x = 4
|
||||
window-padding-y = 4
|
@ -48,6 +48,7 @@ C-n = "select_next_sibling"
|
||||
x = ":wbc!"
|
||||
s = ":w!" # save file
|
||||
o = ":config-open"
|
||||
c = ["vsplit", ":open llm-chat.md"]
|
||||
|
||||
[keys.normal.g]
|
||||
"/" = "goto_next_buffer"
|
||||
|
@ -1,4 +1,112 @@
|
||||
###
|
||||
### Configuration for LSP-AI
|
||||
###
|
||||
### Link here:
|
||||
### https://github.com/SilasMarvin/lsp-ai
|
||||
###
|
||||
|
||||
[language-server.lsp-ai]
|
||||
command = "lsp-ai"
|
||||
|
||||
[language-server.lsp-ai.config.memory]
|
||||
file_store = { }
|
||||
|
||||
[language-server.lsp-ai.config.models.sonnet]
|
||||
type = "anthropic"
|
||||
chat_endpoint = "https://api.anthropic.com/v1/messages"
|
||||
model = "claude-3-5-sonnet-20241022"
|
||||
auth_token_env_var_name = "ANTHROPIC_API_KEY"
|
||||
|
||||
[language-server.lsp-ai.config.models.haiku]
|
||||
type = "anthropic"
|
||||
chat_endpoint = "https://api.anthropic.com/v1/messages"
|
||||
model = "claude-3-5-haiku-20241022"
|
||||
auth_token_env_var_name = "ANTHROPIC_API_KEY"
|
||||
|
||||
[[language-server.lsp-ai.config.chat]]
|
||||
trigger = "!C"
|
||||
action_display_name = "Chat (Sonnet )"
|
||||
model = "sonnet"
|
||||
parameters = { max_context = 4096, max_tokens = 4096, system = "You are a code assistant chatbot. The user will ask you for assistance coding and you will do you best to answer succinctly and accurately" }
|
||||
|
||||
[[language-server.lsp-ai.config.chat]]
|
||||
trigger = "!C"
|
||||
action_display_name = "Chat (Haiku )"
|
||||
model = "haiku"
|
||||
parameters = { max_context = 4096, max_tokens = 4096, system = "You are a code assistant chatbot. The user will ask you for assistance coding and you will do you best to answer succinctly and accurately" }
|
||||
|
||||
[[language-server.lsp-ai.config.actions]]
|
||||
action_display_name = "Complete (Sonnet )"
|
||||
model = "sonnet"
|
||||
parameters = { max_context = 4096, max_tokens = 4096, messages = [{ role = "user", content = "{CODE}" }], system = "You are an AI coding assistant. Your task is to complete code snippets. The user's cursor position is marked by \"<CURSOR>\". Follow these steps:\n\n1. Analyze the code context and the cursor position.\n2. Provide your chain of thought reasoning, wrapped in <reasoning> tags. Include thoughts about the cursor position, what needs to be completed, and any necessary formatting.\n3. Determine the appropriate code to complete the current thought, including finishing partial words or lines.\n4. Replace \"<CURSOR>\" with the necessary code, ensuring proper formatting and line breaks.\n5. Wrap your code solution in <answer> tags.\n\nYour response should always include both the reasoning and the answer. Pay special attention to completing partial words or lines before adding new lines of code.\n\n<examples>\n<example>\nUser input:\n--main.py--\n# A function that reads in user inpu<CURSOR>\n\nResponse:\n<reasoning>\n1. The cursor is positioned after \"inpu\" in a comment describing a function that reads user input.\n2. We need to complete the word \"input\" in the comment first.\n3. After completing the comment, we should add a new line before defining the function.\n4. The function should use Python's built-in `input()` function to read user input.\n5. We'll name the function descriptively and include a return statement.\n</reasoning>\n\n<answer>t\ndef read_user_input():\n user_input = input(\"Enter your input: \")\n return user_input\n</answer>\n</example>\n\n<example>\nUser input:\n--main.py--\ndef fibonacci(n):\n if n <= 1:\n return n\n else:\n re<CURSOR>\n\n\nResponse:\n<reasoning>\n1. The cursor is positioned after \"re\" in the 'else' clause of a recursive Fibonacci function.\n2. We need to complete the return statement for the recursive case.\n3. The \"re\" already present likely stands for \"return\", so we'll continue from there.\n4. The Fibonacci sequence is the sum of the two preceding numbers.\n5. We should return the sum of fibonacci(n-1) and fibonacci(n-2).\n</reasoning>\n\n<answer>turn fibonacci(n-1) + fibonacci(n-2)</answer>\n</example>\n</examples>"}
|
||||
post_process = { extractor = "(?s)<answer>(.*?)</answer>" }
|
||||
|
||||
|
||||
[[language-server.lsp-ai.config.actions]]
|
||||
action_display_name = "Complete (Haiku )"
|
||||
model = "haiku"
|
||||
parameters = { max_context = 4096, max_tokens = 4096, messages = [{ role = "user", content = "{CODE}" }], system = "You are an AI coding assistant. Your task is to complete code snippets. The user's cursor position is marked by \"<CURSOR>\". Follow these steps:\n\n1. Analyze the code context and the cursor position.\n2. Provide your chain of thought reasoning, wrapped in <reasoning> tags. Include thoughts about the cursor position, what needs to be completed, and any necessary formatting.\n3. Determine the appropriate code to complete the current thought, including finishing partial words or lines.\n4. Replace \"<CURSOR>\" with the necessary code, ensuring proper formatting and line breaks.\n5. Wrap your code solution in <answer> tags.\n\nYour response should always include both the reasoning and the answer. Pay special attention to completing partial words or lines before adding new lines of code.\n\n<examples>\n<example>\nUser input:\n--main.py--\n# A function that reads in user inpu<CURSOR>\n\nResponse:\n<reasoning>\n1. The cursor is positioned after \"inpu\" in a comment describing a function that reads user input.\n2. We need to complete the word \"input\" in the comment first.\n3. After completing the comment, we should add a new line before defining the function.\n4. The function should use Python's built-in `input()` function to read user input.\n5. We'll name the function descriptively and include a return statement.\n</reasoning>\n\n<answer>t\ndef read_user_input():\n user_input = input(\"Enter your input: \")\n return user_input\n</answer>\n</example>\n\n<example>\nUser input:\n--main.py--\ndef fibonacci(n):\n if n <= 1:\n return n\n else:\n re<CURSOR>\n\n\nResponse:\n<reasoning>\n1. The cursor is positioned after \"re\" in the 'else' clause of a recursive Fibonacci function.\n2. We need to complete the return statement for the recursive case.\n3. The \"re\" already present likely stands for \"return\", so we'll continue from there.\n4. The Fibonacci sequence is the sum of the two preceding numbers.\n5. We should return the sum of fibonacci(n-1) and fibonacci(n-2).\n</reasoning>\n\n<answer>turn fibonacci(n-1) + fibonacci(n-2)</answer>\n</example>\n</examples>"}
|
||||
post_process = { extractor = "(?s)<answer>(.*?)</answer>" }
|
||||
|
||||
[[language-server.lsp-ai.config.actions]]
|
||||
action_display_name = "Refactor (Sonnet )"
|
||||
model = "sonnet"
|
||||
parameters = { max_context = 4096, max_tokens = 4096, messages = [{ role = "user", content = "{SELECTED_TEXT}" }], system = "You are an AI coding assistant specializing in code refactoring. Your task is to analyze the given code snippet and provide a refactored version. Follow these steps:\n\n1. Analyze the code context and structure.\n2. Identify areas for improvement, such as code efficiency, readability, or adherence to best practices.\n3. Provide your chain of thought reasoning, wrapped in <reasoning> tags. Include your analysis of the current code and explain your refactoring decisions.\n4. Rewrite the entire code snippet with your refactoring applied.\n5. Wrap your refactored code solution in <answer> tags.\n\nYour response should always include both the reasoning and the refactored code.\n\n<examples>\n<example>\nUser input:\ndef calculate_total(items):\n total = 0\n for item in items:\n total = total + item['price'] * item['quantity']\n return total\n\n\nResponse:\n<reasoning>\n1. The function calculates the total cost of items based on price and quantity.\n2. We can improve readability and efficiency by:\n a. Using a more descriptive variable name for the total.\n b. Utilizing the sum() function with a generator expression.\n c. Using augmented assignment (+=) if we keep the for loop.\n3. We'll implement the sum() function approach for conciseness.\n4. We'll add a type hint for better code documentation.\n</reasoning>\n<answer>\nfrom typing import List, Dict\n\ndef calculate_total(items: List[Dict[str, float]]) -> float:\n return sum(item['price'] * item['quantity'] for item in items)\n</answer>\n</example>\n\n<example>\nUser input:\ndef is_prime(n):\n if n < 2:\n return False\n for i in range(2, n):\n if n % i == 0:\n return False\n return True\n\n\nResponse:\n<reasoning>\n1. This function checks if a number is prime, but it's not efficient for large numbers.\n2. We can improve it by:\n a. Adding an early return for 2, the only even prime number.\n b. Checking only odd numbers up to the square root of n.\n c. Using a more efficient range (start at 3, step by 2).\n3. We'll also add a type hint for better documentation.\n4. The refactored version will be more efficient for larger numbers.\n</reasoning>\n<answer>\nimport math\n\ndef is_prime(n: int) -> bool:\n if n < 2:\n return False\n if n == 2:\n return True\n if n % 2 == 0:\n return False\n \n for i in range(3, int(math.sqrt(n)) + 1, 2):\n if n % i == 0:\n return False\n return True\n</answer>\n</example>\n</examples>" }
|
||||
post_process = { extractor = "(?s)<answer>(.*?)</answer>" }
|
||||
|
||||
[[language-server.lsp-ai.config.actions]]
|
||||
action_display_name = "Refactor (Haiku )"
|
||||
model = "haiku"
|
||||
parameters = { max_context = 4096, max_tokens = 4096, messages = [{ role = "user", content = "{SELECTED_TEXT}" }], system = "You are an AI coding assistant specializing in code refactoring. Your task is to analyze the given code snippet and provide a refactored version. Follow these steps:\n\n1. Analyze the code context and structure.\n2. Identify areas for improvement, such as code efficiency, readability, or adherence to best practices.\n3. Provide your chain of thought reasoning, wrapped in <reasoning> tags. Include your analysis of the current code and explain your refactoring decisions.\n4. Rewrite the entire code snippet with your refactoring applied.\n5. Wrap your refactored code solution in <answer> tags.\n\nYour response should always include both the reasoning and the refactored code.\n\n<examples>\n<example>\nUser input:\ndef calculate_total(items):\n total = 0\n for item in items:\n total = total + item['price'] * item['quantity']\n return total\n\n\nResponse:\n<reasoning>\n1. The function calculates the total cost of items based on price and quantity.\n2. We can improve readability and efficiency by:\n a. Using a more descriptive variable name for the total.\n b. Utilizing the sum() function with a generator expression.\n c. Using augmented assignment (+=) if we keep the for loop.\n3. We'll implement the sum() function approach for conciseness.\n4. We'll add a type hint for better code documentation.\n</reasoning>\n<answer>\nfrom typing import List, Dict\n\ndef calculate_total(items: List[Dict[str, float]]) -> float:\n return sum(item['price'] * item['quantity'] for item in items)\n</answer>\n</example>\n\n<example>\nUser input:\ndef is_prime(n):\n if n < 2:\n return False\n for i in range(2, n):\n if n % i == 0:\n return False\n return True\n\n\nResponse:\n<reasoning>\n1. This function checks if a number is prime, but it's not efficient for large numbers.\n2. We can improve it by:\n a. Adding an early return for 2, the only even prime number.\n b. Checking only odd numbers up to the square root of n.\n c. Using a more efficient range (start at 3, step by 2).\n3. We'll also add a type hint for better documentation.\n4. The refactored version will be more efficient for larger numbers.\n</reasoning>\n<answer>\nimport math\n\ndef is_prime(n: int) -> bool:\n if n < 2:\n return False\n if n == 2:\n return True\n if n % 2 == 0:\n return False\n \n for i in range(3, int(math.sqrt(n)) + 1, 2):\n if n % i == 0:\n return False\n return True\n</answer>\n</example>\n</examples>" }
|
||||
post_process = { extractor = "(?s)<answer>(.*?)</answer>" }
|
||||
|
||||
###
|
||||
### Configuration for languages
|
||||
###
|
||||
|
||||
[[language]]
|
||||
name = "go"
|
||||
language-servers = ["gopls", "lsp-ai"]
|
||||
|
||||
[[language]]
|
||||
name = "markdown"
|
||||
language-servers = ["marksman", "lsp-ai"]
|
||||
|
||||
# Change dart format to 120 lines
|
||||
[[language]]
|
||||
name = "dart"
|
||||
formatter = {command = "dart", args = ["format", "-l", "120"]}
|
||||
language-servers = ["dart", "lsp-ai"]
|
||||
|
||||
[[language]]
|
||||
name = "zig"
|
||||
language-servers = ["zls", "lsp-ai"]
|
||||
|
||||
[language.debugger]
|
||||
name = "codelldb-dap"
|
||||
transport = "tcp"
|
||||
command = "codelldb"
|
||||
args = []
|
||||
port-arg = "--port {}"
|
||||
|
||||
[[language.debugger.templates]]
|
||||
name = "launch"
|
||||
request = "launch"
|
||||
completion = [ { name = "binary", completion = "filename" } ]
|
||||
args = { console = "internalConsole", program = "{0}" }
|
||||
|
||||
[[language.debugger.templates]]
|
||||
name = "attach"
|
||||
request = "attach"
|
||||
completion = [ "pid" ]
|
||||
args = { console = "internalConsole", pid = "{0}" }
|
||||
|
||||
[[language.debugger.templates]]
|
||||
name = "gdbserver attach"
|
||||
request = "attach"
|
||||
completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
|
||||
args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
|
||||
|
||||
[[language]]
|
||||
name = "nix"
|
||||
language-servers = ["nil", "lsp-ai"]
|
||||
|
10
nate/dotfiles/hypr/hypridle.conf
Normal file
10
nate/dotfiles/hypr/hypridle.conf
Normal file
@ -0,0 +1,10 @@
|
||||
general {
|
||||
lock_cmd = swaylock # dbus/sysd lock command (loginctl lock-session)
|
||||
before_sleep_cmd = swaylock
|
||||
ignore_dbus_inhibit = false
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 600 # in seconds
|
||||
on-timeout = swaylock -C ~/.config/swaylock/idle-config # command to run when timeout has passed
|
||||
}
|
BIN
nate/dotfiles/hypr/nix.png
Normal file
BIN
nate/dotfiles/hypr/nix.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 376 KiB |
6
nate/dotfiles/hypr/scripts/music_links.txt
Normal file
6
nate/dotfiles/hypr/scripts/music_links.txt
Normal file
@ -0,0 +1,6 @@
|
||||
https://www.youtube.com/watch?v=484RgaL990c
|
||||
https://www.youtube.com/watch?v=6OGp_lZT2tM
|
||||
https://www.youtube.com/watch?v=tIsiYbJLwIg
|
||||
https://www.youtube.com/watch?v=pKw6s8w9rAI
|
||||
https://www.youtube.com/watch?v=lFuErjQKoYg
|
||||
https://www.youtube.com/@Denz1000
|
21
nate/dotfiles/hypr/scripts/music_setup.sh
Executable file
21
nate/dotfiles/hypr/scripts/music_setup.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
hyprctl dispatch togglespecialworkspace music
|
||||
|
||||
YT_LINK=$(sort -R < ~/.config/hypr/scripts/music_links.txt | head -n 1)
|
||||
|
||||
firefox --new-window "$YT_LINK" &
|
||||
sleep 1
|
||||
hyprctl dispatch togglefloating
|
||||
hyprctl dispatch movewindow u
|
||||
hyprctl dispatch movewindow l
|
||||
hyprctl dispatch resizeactive exact 45% 45%
|
||||
hyprctl dispatch moveactive 30% 5%
|
||||
|
||||
ghostty ~/.config/hypr/scripts/music_setup_cmd.sh &
|
||||
sleep 1
|
||||
hyprctl dispatch togglefloating
|
||||
hyprctl dispatch resizeactive exact 95% 30%
|
||||
hyprctl dispatch movewindow d
|
||||
hyprctl dispatch movewindow l
|
||||
hyprctl dispatch moveactive -- 30 -5%
|
4
nate/dotfiles/hypr/scripts/music_setup_cmd.sh
Executable file
4
nate/dotfiles/hypr/scripts/music_setup_cmd.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
sleep 1
|
||||
cava
|
35
nate/dotfiles/hypr/scripts/screenshot.sh
Executable file
35
nate/dotfiles/hypr/scripts/screenshot.sh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
entries="Screen Window Area Area+Edit"
|
||||
|
||||
selected=$(printf '%s\n' "$entries" | tr ' ' '\n' | wofi --style="$HOME"/.config/wofi/macc_style.css --conf="$HOME"/.config/wofi/config.screenshot | awk '{print tolower($1)}')
|
||||
|
||||
if [ "$1" == "clipboard" ]; then
|
||||
case $selected in
|
||||
screen)
|
||||
hyprshot --notif-timeout 2000 -m output --clipboard-only;;
|
||||
window)
|
||||
hyprshot --notif-timeout 2000 -m window --clipboard-only;;
|
||||
area)
|
||||
hyprshot --notif-timeout 2000 -m region --clipboard-only;;
|
||||
area+edit)
|
||||
hyprshot --notif-timeout 2000 -m region --clipboard-only
|
||||
sleep 0.1
|
||||
flatpak run com.github.maoschanz.drawing -c
|
||||
;;
|
||||
esac
|
||||
else
|
||||
case $selected in
|
||||
screen)
|
||||
hyprshot --notif-timeout 2000 -m output -o ~/Pictures/;;
|
||||
window)
|
||||
hyprshot --notif-timeout 2000 -m window -o ~/Pictures/;;
|
||||
area)
|
||||
hyprshot --notif-timeout 2000 -m region -o ~/Pictures/;;
|
||||
area+edit)
|
||||
hyprshot --notif-timeout 2000 -m region --clipboard-only
|
||||
sleep 0.1
|
||||
flatpak run com.github.maoschanz.drawing -c
|
||||
;;
|
||||
esac
|
||||
fi
|
BIN
nate/dotfiles/hypr/va_background.png
Normal file
BIN
nate/dotfiles/hypr/va_background.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 2.7 MiB |
38
nate/dotfiles/swaylock/boot-config
Normal file
38
nate/dotfiles/swaylock/boot-config
Normal file
@ -0,0 +1,38 @@
|
||||
image=~/.config/swaylock/lock.png
|
||||
clock
|
||||
indicator
|
||||
ignore-empty-password
|
||||
show-failed-attempts
|
||||
|
||||
font=Overpass Nerd Font Mono
|
||||
timestr=%I:%M %p
|
||||
datestr=%A %b %e
|
||||
|
||||
bs-hl-color=f4dbd6
|
||||
caps-lock-bs-hl-color=f4dbd6
|
||||
caps-lock-key-hl-color=a6da95
|
||||
inside-color=00000000
|
||||
inside-clear-color=00000000
|
||||
inside-caps-lock-color=00000000
|
||||
inside-ver-color=00000000
|
||||
inside-wrong-color=00000000
|
||||
key-hl-color=67bf4a
|
||||
layout-bg-color=00000000
|
||||
layout-border-color=00000000
|
||||
layout-text-color=cad3f5
|
||||
line-color=00000000
|
||||
line-clear-color=00000000
|
||||
line-caps-lock-color=00000000
|
||||
line-ver-color=00000000
|
||||
line-wrong-color=00000000
|
||||
ring-color=b7bdf8
|
||||
ring-clear-color=f4dbd6
|
||||
ring-caps-lock-color=f5a97f
|
||||
ring-ver-color=8aadf4
|
||||
ring-wrong-color=ee99a0
|
||||
separator-color=00000000
|
||||
text-color=363a4f
|
||||
text-clear-color=f4dbd6
|
||||
text-caps-lock-color=f5a97f
|
||||
text-ver-color=8aadf4
|
||||
text-wrong-color=ee99a0
|
41
nate/dotfiles/swaylock/config
Normal file
41
nate/dotfiles/swaylock/config
Normal file
@ -0,0 +1,41 @@
|
||||
screenshot
|
||||
effect-pixelate=18
|
||||
effect-vignette=0.7:0.5
|
||||
clock
|
||||
indicator-idle-visible
|
||||
ignore-empty-password
|
||||
show-failed-attempts
|
||||
|
||||
font=Overpass Nerd Font Mono
|
||||
timestr=%I:%M %p
|
||||
datestr=%A %b %e
|
||||
fade-in=0.5
|
||||
|
||||
bs-hl-color=f4dbd6
|
||||
caps-lock-bs-hl-color=f4dbd6
|
||||
caps-lock-key-hl-color=a6da95
|
||||
inside-color=666a8f
|
||||
inside-clear-color=00000000
|
||||
inside-caps-lock-color=00000000
|
||||
inside-ver-color=00000000
|
||||
inside-wrong-color=00000000
|
||||
key-hl-color=67bf4a
|
||||
layout-bg-color=00000000
|
||||
layout-border-color=00000000
|
||||
layout-text-color=cad3f5
|
||||
line-color=00000000
|
||||
line-clear-color=00000000
|
||||
line-caps-lock-color=00000000
|
||||
line-ver-color=00000000
|
||||
line-wrong-color=00000000
|
||||
ring-color=b7bdf8
|
||||
ring-clear-color=f4dbd6
|
||||
ring-caps-lock-color=f5a97f
|
||||
ring-ver-color=8aadf4
|
||||
ring-wrong-color=ee99a0
|
||||
separator-color=00000000
|
||||
text-color=363a4f
|
||||
text-clear-color=f4dbd6
|
||||
text-caps-lock-color=f5a97f
|
||||
text-ver-color=8aadf4
|
||||
text-wrong-color=ee99a0
|
43
nate/dotfiles/swaylock/idle-config
Normal file
43
nate/dotfiles/swaylock/idle-config
Normal file
@ -0,0 +1,43 @@
|
||||
|
||||
screenshot
|
||||
effect-pixelate=18
|
||||
effect-vignette=0.7:0.5
|
||||
clock
|
||||
indicator-idle-visible
|
||||
ignore-empty-password
|
||||
show-failed-attempts
|
||||
|
||||
font=Overpass Nerd Font Mono
|
||||
timestr=%I:%M %p
|
||||
datestr=%A %b %e
|
||||
fade-in=1
|
||||
grace=10
|
||||
|
||||
bs-hl-color=f4dbd6
|
||||
caps-lock-bs-hl-color=f4dbd6
|
||||
caps-lock-key-hl-color=a6da95
|
||||
inside-color=666a8f
|
||||
inside-clear-color=00000000
|
||||
inside-caps-lock-color=00000000
|
||||
inside-ver-color=00000000
|
||||
inside-wrong-color=00000000
|
||||
key-hl-color=67bf4a
|
||||
layout-bg-color=00000000
|
||||
layout-border-color=00000000
|
||||
layout-text-color=cad3f5
|
||||
line-color=00000000
|
||||
line-clear-color=00000000
|
||||
line-caps-lock-color=00000000
|
||||
line-ver-color=00000000
|
||||
line-wrong-color=00000000
|
||||
ring-color=b7bdf8
|
||||
ring-clear-color=f4dbd6
|
||||
ring-caps-lock-color=f5a97f
|
||||
ring-ver-color=8aadf4
|
||||
ring-wrong-color=ee99a0
|
||||
separator-color=00000000
|
||||
text-color=363a4f
|
||||
text-clear-color=f4dbd6
|
||||
text-caps-lock-color=f5a97f
|
||||
text-ver-color=8aadf4
|
||||
text-wrong-color=ee99a0
|
BIN
nate/dotfiles/swaylock/lock.png
Normal file
BIN
nate/dotfiles/swaylock/lock.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.7 MiB |
342
nate/dotfiles/swaync/style.css
Normal file
342
nate/dotfiles/swaync/style.css
Normal file
@ -0,0 +1,342 @@
|
||||
* {
|
||||
all: unset;
|
||||
font-size: 14px;
|
||||
font-family: "Ubuntu Nerd Font";
|
||||
transition: 200ms;
|
||||
}
|
||||
|
||||
trough highlight {
|
||||
background: #cad3f5;
|
||||
}
|
||||
|
||||
scale trough {
|
||||
margin: 0rem 1rem;
|
||||
background-color: #363a4f;
|
||||
min-height: 8px;
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
slider {
|
||||
background-color: #8aadf4;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background {
|
||||
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #363a4f;
|
||||
border-radius: 12.6px;
|
||||
margin: 18px;
|
||||
background-color: #24273a;
|
||||
color: #cad3f5;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification {
|
||||
padding: 7px;
|
||||
border-radius: 12.6px;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification.critical {
|
||||
box-shadow: inset 0 0 7px 0 #ed8796;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification .notification-content {
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification .notification-content .summary {
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification .notification-content .time {
|
||||
color: #a5adcb;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification .notification-content .body {
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * {
|
||||
min-height: 3.4em;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action {
|
||||
border-radius: 7px;
|
||||
color: #cad3f5;
|
||||
background-color: #363a4f;
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action:hover {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #363a4f;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action:active {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #7dc4e4;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .close-button {
|
||||
margin: 7px;
|
||||
padding: 2px;
|
||||
border-radius: 6.3px;
|
||||
color: #24273a;
|
||||
background-color: #ed8796;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .close-button:hover {
|
||||
background-color: #ee99a0;
|
||||
color: #24273a;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background .close-button:active {
|
||||
background-color: #ed8796;
|
||||
color: #24273a;
|
||||
}
|
||||
|
||||
.control-center {
|
||||
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #363a4f;
|
||||
border-radius: 12.6px;
|
||||
margin: 18px;
|
||||
background-color: #24273a;
|
||||
color: #cad3f5;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.control-center .widget-title > label {
|
||||
color: #cad3f5;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.control-center .widget-title button {
|
||||
border-radius: 7px;
|
||||
color: #cad3f5;
|
||||
background-color: #363a4f;
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.control-center .widget-title button:hover {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #5b6078;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.control-center .widget-title button:active {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #7dc4e4;
|
||||
color: #24273a;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background {
|
||||
border-radius: 7px;
|
||||
color: #cad3f5;
|
||||
background-color: #363a4f;
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification {
|
||||
padding: 7px;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification.critical {
|
||||
box-shadow: inset 0 0 7px 0 #ed8796;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification .notification-content {
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification .notification-content .summary {
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification .notification-content .time {
|
||||
color: #a5adcb;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification .notification-content .body {
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification > *:last-child > * {
|
||||
min-height: 3.4em;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification > *:last-child > * .notification-action {
|
||||
border-radius: 7px;
|
||||
color: #cad3f5;
|
||||
background-color: #181926;
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification > *:last-child > * .notification-action:hover {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #363a4f;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification > *:last-child > * .notification-action:active {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #7dc4e4;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .close-button {
|
||||
margin: 7px;
|
||||
padding: 2px;
|
||||
border-radius: 6.3px;
|
||||
color: #24273a;
|
||||
background-color: #ee99a0;
|
||||
}
|
||||
|
||||
.close-button {
|
||||
border-radius: 6.3px;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .close-button:hover {
|
||||
background-color: #ed8796;
|
||||
color: #24273a;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .close-button:active {
|
||||
background-color: #ed8796;
|
||||
color: #24273a;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background:hover {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #8087a2;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background:active {
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: #7dc4e4;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
.notification.critical progress {
|
||||
background-color: #ed8796;
|
||||
}
|
||||
|
||||
.notification.low progress,
|
||||
.notification.normal progress {
|
||||
background-color: #8aadf4;
|
||||
}
|
||||
|
||||
.control-center-dnd {
|
||||
margin-top: 5px;
|
||||
border-radius: 8px;
|
||||
background: #363a4f;
|
||||
border: 1px solid #494d64;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.control-center-dnd:checked {
|
||||
background: #363a4f;
|
||||
}
|
||||
|
||||
.control-center-dnd slider {
|
||||
background: #494d64;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.widget-dnd {
|
||||
margin: 0px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.widget-dnd > switch {
|
||||
font-size: initial;
|
||||
border-radius: 8px;
|
||||
background: #363a4f;
|
||||
border: 1px solid #494d64;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.widget-dnd > switch:checked {
|
||||
background: #363a4f;
|
||||
}
|
||||
|
||||
.widget-dnd > switch slider {
|
||||
background: #494d64;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #6e738d;
|
||||
}
|
||||
|
||||
.widget-mpris .widget-mpris-player {
|
||||
background: #363a4f;
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
.widget-mpris .widget-mpris-title {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.widget-mpris .widget-mpris-subtitle {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.widget-menubar > box > .menu-button-bar > button > label {
|
||||
font-size: 3rem;
|
||||
padding: 0.5rem 2rem;
|
||||
}
|
||||
|
||||
.widget-menubar > box > .menu-button-bar > :last-child {
|
||||
color: #ed8796;
|
||||
}
|
||||
|
||||
.power-buttons button:hover,
|
||||
.powermode-buttons button:hover,
|
||||
.screenshot-buttons button:hover {
|
||||
background: #363a4f;
|
||||
}
|
||||
|
||||
.control-center .widget-label > label {
|
||||
color: #cad3f5;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.widget-buttons-grid {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.widget-buttons-grid > flowbox > flowboxchild > button label {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.widget-volume {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.widget-volume label {
|
||||
font-size: 1.5rem;
|
||||
color: #7dc4e4;
|
||||
}
|
||||
|
||||
.widget-volume trough highlight {
|
||||
background: #7dc4e4;
|
||||
}
|
||||
|
||||
.widget-backlight trough highlight {
|
||||
background: #eed49f;
|
||||
}
|
||||
|
||||
.widget-backlight label {
|
||||
font-size: 1.5rem;
|
||||
color: #eed49f;
|
||||
}
|
||||
|
||||
.widget-backlight .KB {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.image {
|
||||
padding-right: 0.5rem;
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
hide_search=true
|
||||
hide_scroll=true
|
||||
insensitive=true
|
||||
width=1
|
||||
width=140
|
||||
height=200
|
||||
show=dmenu
|
||||
lines=5
|
||||
location=centre
|
||||
x=870
|
||||
y=455
|
||||
location=top_right
|
||||
x=-200
|
||||
y=60
|
||||
prompt="Screenshot"
|
||||
|
@ -47,6 +47,10 @@ in
|
||||
default = false;
|
||||
description = "Enable the caldav server service (radicale)";
|
||||
};
|
||||
printerSharingEnable = lib.mkOption {
|
||||
default = false;
|
||||
description = "Setups up avahi and printer services to expose local printer to network";
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
@ -167,6 +171,27 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
services.avahi = lib.mkIf srvConfig.printerSharingEnable {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.printing = lib.mkIf srvConfig.printerSharingEnable {
|
||||
enable = true;
|
||||
drivers = [ pkgs.brlaser ];
|
||||
listenAddresses = [ "*:631" ];
|
||||
allowFrom = [ "all" ];
|
||||
browsing = true;
|
||||
browserAddress = "192.168.1.169:631";
|
||||
defaultShared = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
systemd.timers."pixel-backups" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
|
Loading…
Reference in New Issue
Block a user