system update

This commit is contained in:
foglar 2025-03-23 21:52:43 +01:00
parent 640b9832b7
commit 2080a872f8
8 changed files with 72 additions and 43 deletions

View File

@ -16,12 +16,14 @@
editor = "neovim"; # neovim, vscode editor = "neovim"; # neovim, vscode
# List all themes: $ nix build nixpkgs#base16-schemes && ls result/share/themes # List all themes: $ nix build nixpkgs#base16-schemes && ls result/share/themes
theme = "catppuccin-mocha"; # catppuccin-mocha, tokyo-night-dark, one-dark theme = "tokyo-night-dark"; # catppuccin-mocha, tokyo-night-dark, one-dark
background = background =
if userSettings.theme == "catppuccin-mocha" if userSettings.theme == "catppuccin-mocha"
then "aurora_borealis.png" then "aurora_borealis.png"
else if "evangelion-blood" == userSettings.theme else if "evangelion-blood" == userSettings.theme
then "evangelion.jpg" then "evangelion.jpg"
else if "tokyo-night-dark" == userSettings.theme
then "lain.png"
else "aurora_borealis.png"; else "aurora_borealis.png";
resolution = { resolution = {

View File

@ -35,7 +35,9 @@
bootloader.plymouth.enable = true; bootloader.plymouth.enable = true;
#bootloader.systemd-boot.enable = true; #bootloader.systemd-boot.enable = true;
desktop = { desktop = {
steamdeck.enable = true; hyprland.enable = true;
gnome.enable = true;
steamdeck.enable = false;
}; };
fonts.packages = true; fonts.packages = true;
locales.enable = true; locales.enable = true;
@ -84,7 +86,7 @@
kdeconnect.enable = true; kdeconnect.enable = true;
wireshark.enable = true; wireshark.enable = true;
auto-cpufreq.enable = auto-cpufreq.enable =
if config.sys.desktop.plasma.enable if config.sys.desktop.plasma.enable || config.sys.desktop.gnome.enable
then false then false
else true; else true;
nix-ld.dev.enable = true; nix-ld.dev.enable = true;
@ -96,9 +98,10 @@
inputs.zen-browser.packages.${system}.default inputs.zen-browser.packages.${system}.default
pkgs.gcc pkgs.gcc
pkgs.corefonts
]; ];
#services.twingate.enable = true; #services.twingate.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -6,6 +6,12 @@
# Keyboard image for keyboard switch layout # Keyboard image for keyboard switch layout
home.file = { home.file = {
".local/share/icons/kogami/keyboard.svg".source = ../../../../config/icons/keyboard.svg; ".local/share/icons/kogami/keyboard.svg".source = ../../../../config/icons/keyboard.svg;
".config/swappy/config".text = ''
[Default]
save_dir=$HOME/Pictures/Screenshots
save_filename_format=swappy-%Y%m%d-%H%M%S.png
'';
}; };
#services.mpd = { #services.mpd = {

View File

@ -93,6 +93,11 @@
"force_no_accel" = "1"; "force_no_accel" = "1";
}; };
general = {
gaps_in = "5";
gaps_out = "15";
};
gestures = { gestures = {
"workspace_swipe" = "true"; "workspace_swipe" = "true";
"workspace_swipe_fingers" = "3"; "workspace_swipe_fingers" = "3";

View File

@ -95,16 +95,16 @@
get_cover() { get_cover() {
DOWNLOAD_PATH="$HOME/.cache/cover.png" DOWNLOAD_PATH="$HOME/.cache/cover.png"
FALLBACK_PATH="./images/music.png" # Change this to your static image path FALLBACK_PATH="./images/music.png" # Change this to your static image path
# Get the image URL from playerctl # Get the image URL from playerctl
URL=$(playerctl metadata mpris:artUrl 2>/dev/null) URL=$(playerctl metadata mpris:artUrl 2>/dev/null)
# If the URL is empty or playerctl fails, return the fallback path # If the URL is empty or playerctl fails, return the fallback path
if [[ -z "$URL" ]]; then if [[ -z "$URL" ]]; then
echo "$FALLBACK_PATH" echo "$FALLBACK_PATH"
return return
fi fi
# Try downloading the image # Try downloading the image
if curl -s -o "$DOWNLOAD_PATH" "$URL"; then if curl -s -o "$DOWNLOAD_PATH" "$URL"; then
echo "$DOWNLOAD_PATH" echo "$DOWNLOAD_PATH"
@ -116,7 +116,7 @@
get_watched_length() { get_watched_length() {
total_length=$(playerctl metadata --format "{{ duration(mpris:length) }}" | awk -F: '{ print ($1 * 60) + $2 }') total_length=$(playerctl metadata --format "{{ duration(mpris:length) }}" | awk -F: '{ print ($1 * 60) + $2 }')
current_position=$(playerctl metadata --format "{{ duration(position) }}" | awk -F: '{ print ($1 * 60) + $2 }') current_position=$(playerctl metadata --format "{{ duration(position) }}" | awk -F: '{ print ($1 * 60) + $2 }')
if [[ "$total_length" -gt 0 ]]; then if [[ "$total_length" -gt 0 ]]; then
percentage=$(awk "BEGIN { printf \"%.2f\", ($current_position / $total_length) * 100 }") percentage=$(awk "BEGIN { printf \"%.2f\", ($current_position / $total_length) * 100 }")
echo "$percentage" echo "$percentage"
@ -275,14 +275,13 @@
label = [ label = [
{ {
monitor = ""; monitor = "";
text = "$TIME"; text = "$TIME ";
color = "$text"; color = "$text";
font_size = 40; font_size = 12;
#font_family = "Monaspace Xenon";
position = "0, 80"; position = "-37, 29";
halign = "center"; halign = "right";
valign = "center"; valign = "bottom";
} }
# Battery percentage # Battery percentage
{ {
@ -292,7 +291,7 @@
color = "$accent"; color = "$accent";
font_size = 12; font_size = 12;
position = "-37, 29"; position = "-207, 29";
halign = "right"; halign = "right";
valign = "bottom"; valign = "bottom";
zindex = 5; zindex = 5;
@ -340,19 +339,19 @@
} }
# PLAYER STATUS SYMBOL # PLAYER STATUS SYMBOL
{ #{
monitor = ""; # monitor = "";
text = "cmd[update:1000] echo (playerctl-hyprlock --status-symbol)"; # text = "cmd[update:1000] playerctl-hyprlock --status-symbol";
#
color = "$fg0"; # color = "$fg0";
font_size = 16; # font_size = 16;
font_family = "$font-symbol"; # font_family = "$font-symbol";
#
position = "700, -370"; # position = "700, -370";
halign = "left"; # halign = "left";
valign = "center"; # valign = "bottom";
zindex = 5; # zindex = 5;
} #}
# PLAYER ALBUM # PLAYER ALBUM
#{ #{

View File

@ -20,7 +20,6 @@
./applications/vencord.nix ./applications/vencord.nix
./applications/qutebrowser.nix ./applications/qutebrowser.nix
./tools/oh-my-posh.nix ./tools/oh-my-posh.nix
./tools/shell.nix ./tools/shell.nix
./tools/kitty.nix ./tools/kitty.nix
@ -118,11 +117,8 @@
]; ];
home.file = { home.file = {
".prettierrc".text = '' ".config/godot/text_editor_themes/Catppuccin_Macchiato.tet".source = ../../../config/Catppuccin_Macchiato.tet;
{ ".config/themes/heroic".source = ../../../config/heroic;
"tabWidth": 4, ".gitkraken/themes/catppuccin-mocha.jsonc".source = ../../../config/gitkraken/catppuccin-mocha.jsonc;
"useTabs": true
}
'';
}; };
} }

View File

@ -28,6 +28,15 @@
vscode vscode
]; ];
home.file = {
".prettierrc".text = ''
{
"tabWidth": 4,
"useTabs": true
}
'';
};
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [
# VSCODE # VSCODE

View File

@ -1,6 +1,7 @@
{ {
lib, lib,
config, config,
userSettings,
... ...
}: { }: {
options = { options = {
@ -9,21 +10,29 @@
config = lib.mkIf config.program.fastfetch.enable { config = lib.mkIf config.program.fastfetch.enable {
home.file = { home.file = {
".config/fastfetch/logo.png".source = ../../../../config/asuka.png; ".config/fastfetch/logo.png".source =
if userSettings.theme == "evangelion-blood"
then ../../../../config/asuka.png
else ../../../../config/lain.jpeg;
}; };
programs.fastfetch = { programs.fastfetch = {
enable = true; enable = true;
settings = { settings = {
"$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" =
"source" = "/home/shinya/.config/fastfetch/logo.png"; if userSettings.theme == "evangelion-blood" || userSettings.theme == "tokyo-night-dark"
"width" = 34; then {
"height" = 18; "source" = "/home/shinya/.config/fastfetch/logo.png";
"padding" = { "width" = 42;
"top" = 1; "height" = 19;
"padding" = {
"top" = 1;
};
}
else {
"source" = "default";
}; };
};
"modules" = [ "modules" = [
"break" "break"
{ {