some fixes
This commit is contained in:
@@ -3,119 +3,114 @@
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
|
||||
profiles = {
|
||||
default = {
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
# QOL
|
||||
mhutchie.git-graph
|
||||
redhat.vscode-yaml
|
||||
github.copilot
|
||||
# profiles = {
|
||||
# default = {
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
# QOL
|
||||
mhutchie.git-graph
|
||||
redhat.vscode-yaml
|
||||
github.copilot
|
||||
|
||||
# python
|
||||
ms-python.python
|
||||
ms-python.isort
|
||||
ms-python.debugpy
|
||||
ms-python.vscode-pylance
|
||||
# python
|
||||
ms-python.python
|
||||
ms-python.isort
|
||||
ms-python.debugpy
|
||||
ms-python.vscode-pylance
|
||||
|
||||
# Nix language
|
||||
jnoortheen.nix-ide
|
||||
];
|
||||
# Nix language
|
||||
jnoortheen.nix-ide
|
||||
];
|
||||
# };
|
||||
|
||||
keybindings = [
|
||||
{
|
||||
key = "ctrl+#";
|
||||
command = "editor.action.commentLine";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
"telemetry.enableCrashReporter" = false;
|
||||
"telemetry.enableTelemetry" = false;
|
||||
"git.ignoreMissingGitWarning" = true;
|
||||
"editor.suggestSelection" = "first";
|
||||
"workbench.editorAssociations" = {
|
||||
"*.ipynb" = "jupyter-notebook";
|
||||
};
|
||||
|
||||
keybindings = {
|
||||
"ctrl+shift+." = "workbench.action.terminal.focus";
|
||||
"ctlr+#" = "editor.action.commentLine";
|
||||
"workbench.startupEditor" = "newUntitledFile";
|
||||
"editor.renderWhitespace" = "none";
|
||||
"editor.acceptSuggestionOnEnter" = "off";
|
||||
"explorer.confirmDelete" = false;
|
||||
"git.confirmSync" = false;
|
||||
"workbench.iconTheme" = "vs-seti";
|
||||
"editor.fontLigatures" = true;
|
||||
"explorer.confirmDragAndDrop" = false;
|
||||
"editor.wordWrap" = "on";
|
||||
"settingsSync.ignoredSettings" = [
|
||||
"editor.fontFamily"
|
||||
"terminal.integrated.fontFamily"
|
||||
"-python.venvFolders"
|
||||
];
|
||||
"jupyter.askForKernelRestart" = false;
|
||||
"security.workspace.trust.untrustedFiles" = "open";
|
||||
"notebook.cellToolbarLocation" = {
|
||||
"default" = "right";
|
||||
"jupyter-notebook" = "left";
|
||||
};
|
||||
|
||||
userSettings = ''
|
||||
{
|
||||
"telemetry.enableCrashReporter": false,
|
||||
"telemetry.enableTelemetry": false,
|
||||
"git.ignoreMissingGitWarning": true,
|
||||
"editor.suggestSelection": "first",
|
||||
"workbench.editorAssociations": {
|
||||
"*.ipynb": "jupyter-notebook"
|
||||
},
|
||||
"workbench.startupEditor": "newUntitledFile",
|
||||
"editor.renderWhitespace": "none",
|
||||
"editor.acceptSuggestionOnEnter": "off",
|
||||
"explorer.confirmDelete": false,
|
||||
"git.confirmSync": false,
|
||||
"workbench.iconTheme": "vs-seti",
|
||||
"editor.fontLigatures": true,
|
||||
"explorer.confirmDragAndDrop": false,
|
||||
"editor.wordWrap": "on",
|
||||
"files.associations": {
|
||||
},
|
||||
"settingsSync.ignoredSettings": [
|
||||
"editor.fontFamily",
|
||||
"terminal.integrated.fontFamily",
|
||||
"-python.venvFolders"
|
||||
],
|
||||
"jupyter.askForKernelRestart": false,
|
||||
"security.workspace.trust.untrustedFiles": "open",
|
||||
"notebook.cellToolbarLocation": {
|
||||
"default": "right",
|
||||
"jupyter-notebook": "left"
|
||||
},
|
||||
"git.enableSmartCommit": true,
|
||||
"terminal.integrated.fontFamily": "Fira Code",
|
||||
"settingsSync.ignoredExtensions": [
|
||||
"ms-vscode-remote.remote-wsl",
|
||||
"ms-vscode-remote.remote-ssh-edit",
|
||||
"ms-vscode-remote.remote-ssh"
|
||||
],
|
||||
"editor.bracketPairColorization.enabled": true,
|
||||
"jupyter.widgetScriptSources": [
|
||||
"jsdelivr.com",
|
||||
"unpkg.com"
|
||||
],
|
||||
"%DOC%.tex"
|
||||
],
|
||||
"diffEditor.renderSideBySide": false,
|
||||
"editor.inlineSuggest.enabled": true,
|
||||
"suppressLineUncommittedWarning": true
|
||||
},
|
||||
"github.copilot.enable": {
|
||||
"*": true,
|
||||
"plaintext": true,
|
||||
"markdown": true,
|
||||
"scminput": false,
|
||||
"yaml": true
|
||||
},
|
||||
"redhat.telemetry.enabled": false,
|
||||
"git.autofetch": true,
|
||||
"terminal.integrated.enableMultiLinePasteWarning": false,
|
||||
"editor.unicodeHighlight.nonBasicASCII": false,
|
||||
"jupyter.disableJupyterAutoStart": true,
|
||||
"editor.unicodeHighlight.invisibleCharacters": false,
|
||||
"editor.unicodeHighlight.ambiguousCharacters": false,
|
||||
"diffEditor.ignoreTrimWhitespace": false,
|
||||
"update.showReleaseNotes": false,
|
||||
"terminal.external.linuxExec": "kitty",
|
||||
"window.dialogStyle": "custom",
|
||||
"window.titleBarStyle": "custom",
|
||||
"github.copilot.editor.enableAutoCompletions": true,
|
||||
"window.menuBarVisibility": "compact",
|
||||
"workbench.colorTheme": "Default Light+",
|
||||
"github.copilot.advanced": {},
|
||||
"git.openRepositoryInParentFolders": "never",
|
||||
"terminal.integrated.commandsToSkipShell": [
|
||||
"language-julia.interrupt"
|
||||
],
|
||||
"diffEditor.hideUnchangedRegions.enabled": true,
|
||||
"[typst]": {
|
||||
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?"
|
||||
},
|
||||
"[typst-code]": {
|
||||
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?"
|
||||
},
|
||||
"tinymist.fontPaths": [
|
||||
"./font"
|
||||
],
|
||||
"editor.fontFamily": "'FiraCode Nerd Font Mono', 'monospace', monospace",
|
||||
};
|
||||
'';
|
||||
"git.enableSmartCommit" = true;
|
||||
"terminal.integrated.fontFamily" = "Fira Code";
|
||||
"settingsSync.ignoredExtensions" = [
|
||||
"ms-vscode-remote.remote-wsl"
|
||||
"ms-vscode-remote.remote-ssh-edit"
|
||||
"ms-vscode-remote.remote-ssh"
|
||||
];
|
||||
"editor.bracketPairColorization.enabled" = true;
|
||||
"jupyter.widgetScriptSources" = [
|
||||
"jsdelivr.com"
|
||||
"unpkg.com"
|
||||
];
|
||||
"diffEditor.renderSideBySide" = false;
|
||||
"editor.inlineSuggest.enabled" = true;
|
||||
"github.copilot.enable" = {
|
||||
"*" = true;
|
||||
"plaintext" = true;
|
||||
"markdown" = true;
|
||||
"scminput" = false;
|
||||
"yaml" = true;
|
||||
};
|
||||
"redhat.telemetry.enabled" = false;
|
||||
"git.autofetch" = true;
|
||||
"terminal.integrated.enableMultiLinePasteWarning" = false;
|
||||
"editor.unicodeHighlight.nonBasicASCII" = false;
|
||||
"jupyter.disableJupyterAutoStart" = true;
|
||||
"editor.unicodeHighlight.invisibleCharacters" = false;
|
||||
"editor.unicodeHighlight.ambiguousCharacters" = false;
|
||||
"diffEditor.ignoreTrimWhitespace" = false;
|
||||
"update.showReleaseNotes" = false;
|
||||
"terminal.external.linuxExec" = "kitty";
|
||||
"window.dialogStyle" = "custom";
|
||||
"window.titleBarStyle" = "custom";
|
||||
"github.copilot.editor.enableAutoCompletions" = true;
|
||||
"window.menuBarVisibility" = "compact";
|
||||
"workbench.colorTheme" = "Default Light+";
|
||||
"github.copilot.advanced" = {};
|
||||
"git.openRepositoryInParentFolders" = "never";
|
||||
"terminal.integrated.commandsToSkipShell" = [
|
||||
"language-julia.interrupt"
|
||||
];
|
||||
"diffEditor.hideUnchangedRegions.enabled" = true;
|
||||
"[typst]" = {
|
||||
"editor.wordSeparators" = "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?";
|
||||
};
|
||||
"[typst-code]" = {
|
||||
"editor.wordSeparators" = "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?";
|
||||
};
|
||||
"tinymist.fontPaths" = [
|
||||
"./font"
|
||||
];
|
||||
"editor.fontFamily" = "'FiraCode Nerd Font Mono', 'monospace', monospace";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -59,9 +59,9 @@
|
||||
# "${pkgs.hyprpaper}/bin/hyprpaper"
|
||||
# hyprpaper is handled as its own service
|
||||
"${pkgs.waybar}/bin/waybar"
|
||||
# Fixes cursor themes in gnome apps under hyprland
|
||||
"gsettings set org.gnome.desktop.interface cursor-theme '${config.home.pointerCursor.name}'"
|
||||
"gsettings set org.gnome.desktop.interface cursor-size ${toString home.pointerCursor.size}"
|
||||
# # Fixes cursor themes in gnome apps under hyprland
|
||||
# "gsettings set org.gnome.desktop.interface cursor-theme '${config.home.pointerCursor.name}'"
|
||||
# "gsettings set org.gnome.desktop.interface cursor-size ${toString home.pointerCursor.size}"
|
||||
];
|
||||
|
||||
general = {
|
||||
|
||||
@@ -4,23 +4,23 @@
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
wallpapers = builtins.readDir ../../../wallpapers;
|
||||
# wallpapers = builtins.readDir ../../../wallpapers;
|
||||
|
||||
wallpaperBashArray = "(\"${strings.concatStrings (strings.intersperse "\" \"" (map (wallpaper: ../../../wallpapers + "/" + wallpaper) (attrNames wallpapers)))}\")";
|
||||
wallpaperRandomizer = pkgs.writeShellScriptBin "wallpaperRandomizer" ''
|
||||
wallpapers=${wallpaperBashArray}
|
||||
rand=$[$RANDOM % ''${#wallpapers[@]}]
|
||||
wallpaper=''${wallpapers[$rand]}
|
||||
# wallpaperBashArray = "(\"${strings.concatStrings (strings.intersperse "\" \"" (map (wallpaper: ../../../wallpapers + "/" + wallpaper) (attrNames wallpapers)))}\")";
|
||||
# wallpaperRandomizer = pkgs.writeShellScriptBin "wallpaperRandomizer" ''
|
||||
# wallpapers=${wallpaperBashArray}
|
||||
# rand=$[$RANDOM % ''${#wallpapers[@]}]
|
||||
# wallpaper=''${wallpapers[$rand]}
|
||||
|
||||
monitor=(`hyprctl monitors | grep Monitor | awk '{print $2}'`)
|
||||
hyprctl hyprpaper unload all
|
||||
hyprctl hyprpaper preload $wallpaper
|
||||
for m in ''${monitor[@]}; do
|
||||
hyprctl hyprpaper wallpaper "$m,$wallpaper"
|
||||
done
|
||||
'';
|
||||
# monitor=(`hyprctl monitors | grep Monitor | awk '{print $2}'`)
|
||||
# hyprctl hyprpaper unload all
|
||||
# hyprctl hyprpaper preload $wallpaper
|
||||
# for m in ''${monitor[@]}; do
|
||||
# hyprctl hyprpaper wallpaper "$m,$wallpaper"
|
||||
# done
|
||||
# '';
|
||||
in {
|
||||
home.packages = [wallpaperRandomizer];
|
||||
# home.packages = [wallpaperRandomizer];
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
@@ -32,29 +32,29 @@ in {
|
||||
# };
|
||||
};
|
||||
|
||||
systemd.user = {
|
||||
services.wallpaperRandomizer = {
|
||||
Install = {WantedBy = ["graphical-session.target"];};
|
||||
# systemd.user = {
|
||||
# services.wallpaperRandomizer = {
|
||||
# Install = {WantedBy = ["graphical-session.target"];};
|
||||
|
||||
Unit = {
|
||||
Description = "Set random desktop background using hyprpaper";
|
||||
After = ["graphical-session-pre.target"];
|
||||
PartOf = ["graphical-session.target"];
|
||||
};
|
||||
# Unit = {
|
||||
# Description = "Set random desktop background using hyprpaper";
|
||||
# After = ["graphical-session-pre.target"];
|
||||
# PartOf = ["graphical-session.target"];
|
||||
# };
|
||||
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${wallpaperRandomizer}/bin/wallpaperRandomizer";
|
||||
IOSchedulingClass = "idle";
|
||||
};
|
||||
};
|
||||
# Service = {
|
||||
# Type = "oneshot";
|
||||
# ExecStart = "${wallpaperRandomizer}/bin/wallpaperRandomizer";
|
||||
# IOSchedulingClass = "idle";
|
||||
# };
|
||||
# };
|
||||
|
||||
timers.wallpaperRandomizer = {
|
||||
Unit = {Description = "Set random desktop background using hyprpaper on an interval";};
|
||||
# timers.wallpaperRandomizer = {
|
||||
# Unit = {Description = "Set random desktop background using hyprpaper on an interval";};
|
||||
|
||||
Timer = {OnUnitActiveSec = "6h";};
|
||||
# Timer = {OnUnitActiveSec = "6h";};
|
||||
|
||||
Install = {WantedBy = ["timers.target"];};
|
||||
};
|
||||
};
|
||||
# Install = {WantedBy = ["timers.target"];};
|
||||
# };
|
||||
# };
|
||||
}
|
||||
@@ -5,9 +5,13 @@
|
||||
|
||||
# waybar requires font-awesome
|
||||
home.packages = [
|
||||
# fira code now contains ligatures and font-awesome
|
||||
nerd-fonts.fira-code
|
||||
pkgs.pavucontrol
|
||||
# fira code now contains ligatures and font-awesome
|
||||
# TODO - this only works after nixpkgs 25.05
|
||||
# nerd-fonts.fira-code
|
||||
(pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
pkgs.fira-code
|
||||
|
||||
];
|
||||
|
||||
# enable waybar
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
configPackages [ pkgs.hyprland ];
|
||||
configPackages = [ pkgs.hyprland ];
|
||||
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
@@ -17,7 +17,7 @@
|
||||
createDirectories = true;
|
||||
desktop = "Desktop";
|
||||
documents = "Documents";
|
||||
downloads = "Downloads";
|
||||
# downloads = "Downloads";
|
||||
pictures = "Pictures";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user