Removed old stuff(dont use NixOS on desktop anymore) + update
This commit is contained in:
parent
859ffa55e8
commit
53750afbe3
47 changed files with 22 additions and 18286 deletions
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
# User information gathered by Snowfall Lib is available.
|
||||
let
|
||||
name = config.snowfallorg.user.name;
|
||||
home = config.snowfallorg.user.home.directory;
|
||||
in {
|
||||
imports = lib.snowfall.fs.get-non-default-nix-files ./.;
|
||||
custom = {
|
||||
programs.librewolf.enable = true;
|
||||
};
|
||||
services.flatpak.packages = [
|
||||
"org.vinegarhq.Sober"
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
zapzap
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
};
|
||||
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
inputs.quickshell.packages.${pkgs.system}.quickshell
|
||||
material-symbols
|
||||
inter
|
||||
fira-code
|
||||
cava
|
||||
wl-clipboard
|
||||
cliphist
|
||||
ddcutil
|
||||
matugen
|
||||
dgop
|
||||
glib
|
||||
khal # calendar
|
||||
gammastep # night mode
|
||||
colloid-gtk-theme
|
||||
kitty
|
||||
playerctl
|
||||
brightnessctl
|
||||
libnotify
|
||||
emacs-pgtk
|
||||
hyprshot
|
||||
jq
|
||||
kdePackages.gwenview
|
||||
kdePackages.ark
|
||||
inputs.rose-pine-hyprcursor.packages.${pkgs.system}.default
|
||||
];
|
||||
xdg.configFile."quickshell".source = "${
|
||||
inputs.desktopShell.packages.${pkgs.system}.dankMaterialShell
|
||||
}/etc/xdg/quickshell";
|
||||
}
|
||||
|
|
@ -17,35 +17,16 @@ in
|
|||
enable = true;
|
||||
firstNixOSInstall = 1729112485;
|
||||
};
|
||||
#nheko.enable = osConfig.custom.presets.wayland.enable;
|
||||
#xournalpp.enable = osConfig.custom.presets.wayland.enable;
|
||||
librewolf.enable = osConfig.custom.presets.wayland.enable;
|
||||
prismlauncher.enable = osConfig.custom.presets.gaming.enable;
|
||||
minecraft-bedrock.enable = osConfig.custom.presets.gaming.enable;
|
||||
bottles.enable = osConfig.custom.presets.wayland.enable;
|
||||
nextcloud-client.enable = osConfig.custom.presets.wayland.enable;
|
||||
thunderbird.enable = osConfig.custom.presets.wayland.enable;
|
||||
};
|
||||
};
|
||||
home = {
|
||||
packages = with pkgs;
|
||||
[
|
||||
neovim
|
||||
]
|
||||
++ lib.optionals osConfig.custom.presets.wayland.enable [
|
||||
gdb
|
||||
element-desktop
|
||||
vesktop
|
||||
obs-studio
|
||||
localsend
|
||||
kdePackages.kdenlive
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
EDITOR =
|
||||
if osConfig.custom.presets.wayland.enable
|
||||
then "emacsclient -c"
|
||||
else "nvim";
|
||||
EDITOR ="nvim";
|
||||
NH_OS_FLAKE = "${home}/nixos-config";
|
||||
NH_HOME_FLAKE = "${home}/nixos-config";
|
||||
NH_DARWIN_FLAKE = "${home}/nixos-config";
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
system,
|
||||
inputs,
|
||||
osConfig,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
emacs = pkgs.kylekrein.nixmacs.override {withLsps = true;};
|
||||
in {
|
||||
programs.emacs = {
|
||||
enable = osConfig.custom.presets.wayland.enable;
|
||||
package = emacs;
|
||||
};
|
||||
systemd.user.services.emacs = lib.mkIf config.programs.emacs.enable {
|
||||
Unit = {
|
||||
Description = "Launches (and relaunches) emacs";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.writeShellScript "run-emacs" ''
|
||||
${emacs}/bin/emacs --fg-daemon
|
||||
''}";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; lib.optionals (config.programs.kitty.enable) [kitty-themes];
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
icons = "always";
|
||||
};
|
||||
programs.kitty = {
|
||||
enable = osConfig.custom.presets.workstation.enable;
|
||||
font = {
|
||||
name = "JetBrainsMono Nerd Font";
|
||||
size = 20;
|
||||
};
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
};
|
||||
#shellIntegration.enableFishIntegration = true;
|
||||
themeFile = "Catppuccin-Macchiato";
|
||||
#Also available: Catppuccin-Frappe Catppuccin-Latte Catppuccin-Macchiato Catppuccin-Mocha
|
||||
# See all available kitty themes at: https://github.com/kovidgoyal/kitty-themes/blob/46d9dfe230f315a6a0c62f4687f6b3da20fd05e4/themes.json
|
||||
};
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
impermanence = config.custom.impermanence;
|
||||
in {
|
||||
config = lib.mkIf osConfig.custom.presets.wayland.enable {
|
||||
home.packages = with pkgs; [
|
||||
lrcget
|
||||
picard
|
||||
beets
|
||||
];
|
||||
home.persistence = lib.mkIf impermanence.enable {
|
||||
"${impermanence.persistentStorage}".directories = [
|
||||
".config/MusicBrainz"
|
||||
".config/beets"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib.custom; let
|
||||
username = config.snowfallorg.user.name;
|
||||
home = config.snowfallorg.user.home.directory;
|
||||
impermanence = config.${namespace}.impermanence;
|
||||
in
|
||||
lib.mkIf osConfig.custom.windowManagers.niri.enable {
|
||||
home.packages = with pkgs; [
|
||||
inputs.quickshell.packages.${pkgs.system}.quickshell
|
||||
material-symbols
|
||||
inter
|
||||
fira-code
|
||||
cava
|
||||
wl-clipboard
|
||||
cliphist
|
||||
ddcutil
|
||||
matugen
|
||||
dgop
|
||||
glib
|
||||
khal # calendar
|
||||
gammastep # night mode
|
||||
grim
|
||||
slurp
|
||||
satty
|
||||
];
|
||||
programs.kitty = {
|
||||
themeFile = lib.mkForce null;
|
||||
extraConfig = ''
|
||||
include ${home}/.config/kitty/dank-theme.conf
|
||||
'';
|
||||
};
|
||||
xdg.configFile."quickshell".source = "${
|
||||
inputs.desktopShell.packages.${pkgs.system}.dankMaterialShell
|
||||
}/etc/xdg/quickshell";
|
||||
home.file.".config/DankMaterialShell/settings.json".source = ./settings.json;
|
||||
home.persistence = lib.mkIf impermanence.enable {
|
||||
"${impermanence.persistentStorage}" = {
|
||||
files = [
|
||||
".local/state/DankMaterialShell/session.json"
|
||||
".local/share/color-schemes/DankMatugen.colors"
|
||||
];
|
||||
directories = [
|
||||
".cache/quickshell/dankshell"
|
||||
#".config/qt5ct"
|
||||
#".config/qt6ct"
|
||||
#".config/gtk-3.0"
|
||||
#".config/gtk-4.0"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.desktop-shell = {
|
||||
Unit = {
|
||||
Description = "Launches (and relaunches) Desktop Shell";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = ''${lib.getExe pkgs.bash} -c "qs -c dms"'';
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
|
||||
programs.niri = {
|
||||
settings = {
|
||||
spawn-at-startup = [
|
||||
{command = ["wl-paste" "--watch" "cliphist" "store"];}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
* {
|
||||
border: none;
|
||||
font-family: Font Awesome, Roboto, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
color: #eeeeee;
|
||||
border-radius: 10px;
|
||||
}
|
||||
window {
|
||||
background-color: rgba(50, 63, 99, 0.718);
|
||||
color: #eeeeee;
|
||||
}
|
||||
|
||||
/* search entry */
|
||||
entry {
|
||||
background-color: rgba(0, 0, 0, 0.2)
|
||||
}
|
||||
|
||||
button, image {
|
||||
background: none;
|
||||
border: none
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1)
|
||||
}
|
||||
|
||||
/* in case you wanted to give category buttons a different look */
|
||||
#category-button {
|
||||
margin: 0 10px 0 10px
|
||||
}
|
||||
|
||||
#pinned-box {
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px dotted gray
|
||||
}
|
||||
|
||||
#files-box {
|
||||
padding: 5px;
|
||||
border: 1px dotted gray;
|
||||
border-radius: 15px
|
||||
}
|
||||
|
||||
/* math operation result label */
|
||||
#math-label {
|
||||
font-weight: bold;
|
||||
font-size: 16px
|
||||
}
|
||||
|
|
@ -1,529 +0,0 @@
|
|||
#https://github.com/sodiboo/niri-flake/blob/main/default-config.kdl.nix
|
||||
#https://github.com/sodiboo/niri-flake/blob/main/docs.md
|
||||
#https://github.com/sodiboo/system/blob/main/niri.mod.nix
|
||||
{
|
||||
osConfig,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib.custom; let
|
||||
username = config.snowfallorg.user.name;
|
||||
home = config.snowfallorg.user.home.directory;
|
||||
in
|
||||
lib.mkIf osConfig.custom.windowManagers.niri.enable {
|
||||
custom = {
|
||||
programs.nautilus = enabled;
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
playerctl
|
||||
papers
|
||||
brightnessctl
|
||||
libnotify
|
||||
custom.wvkbd-kylekrein
|
||||
custom.lisgd-kylekrein
|
||||
];
|
||||
programs.niri = {
|
||||
settings = {
|
||||
spawn-at-startup = [
|
||||
{
|
||||
command = [
|
||||
"${lib.getExe pkgs.custom.wvkbd-kylekrein}"
|
||||
"--hidden"
|
||||
];
|
||||
}
|
||||
{
|
||||
command = [
|
||||
"dbus-update-activation-environment"
|
||||
"--systemd"
|
||||
"--all"
|
||||
];
|
||||
}
|
||||
{
|
||||
command = [
|
||||
"${pkgs.solaar}/bin/solaar"
|
||||
"-w"
|
||||
"hide"
|
||||
];
|
||||
}
|
||||
];
|
||||
layout = {
|
||||
preset-column-widths = [
|
||||
{proportion = 1.0 / 2.0;}
|
||||
{proportion = 1.0;}
|
||||
{proportion = 2.0 / 3.0;}
|
||||
{proportion = 1.0 / 3.0;}
|
||||
];
|
||||
default-column-width = {proportion = 1.0;};
|
||||
};
|
||||
binds = with config.lib.niri.actions; let
|
||||
sh = spawn "sh" "-c";
|
||||
emacs = action: sh "emacsclient -c --eval \"${action}\"";
|
||||
screenshot-annotate = sh ''${lib.getExe pkgs.grim} -g "$(${lib.getExe pkgs.slurp} -w 0)" -t ppm - | ${lib.getExe pkgs.satty} --early-exit --copy-command 'wl-copy' --filename='-' -o '~/Pictures/Screenshots/Screenshot-%Y-%m-%d_%H:%M:%S.png' --initial-tool brush'';
|
||||
in {
|
||||
"Mod+E".action = sh "emacsclient -c";
|
||||
"Mod+Shift+C".action = sh "nautilus";
|
||||
"Mod+C".action = emacs ''(dirvish \"${home}\")'';
|
||||
"Mod+T".action = spawn "kitty";
|
||||
"Mod+B".action = spawn "librewolf";
|
||||
"Mod+H".action = show-hotkey-overlay;
|
||||
"Mod+F".action = fullscreen-window;
|
||||
"Mod+R".action = switch-preset-column-width;
|
||||
"Mod+Q".action = close-window;
|
||||
"Mod+P".action = sh ''emacsclient -cF "((visibility . nil))" -e "(emacs-run-password-copy-field)"'';
|
||||
"Mod+Shift+S".action = screenshot-annotate;
|
||||
"Mod+1".action = focus-workspace 1;
|
||||
"Mod+2".action = focus-workspace 2;
|
||||
"Mod+3".action = focus-workspace 3;
|
||||
"Mod+4".action = focus-workspace 4;
|
||||
"Mod+5".action = focus-workspace 5;
|
||||
"Mod+6".action = focus-workspace 6;
|
||||
"Mod+7".action = focus-workspace 7;
|
||||
"Mod+8".action = focus-workspace 8;
|
||||
"Mod+9".action = focus-workspace 9;
|
||||
"Mod+0".action = focus-workspace 10;
|
||||
|
||||
"Mod+Shift+1".action.move-column-to-workspace = 1;
|
||||
"Mod+Shift+2".action.move-column-to-workspace = 2;
|
||||
"Mod+Shift+3".action.move-column-to-workspace = 3;
|
||||
"Mod+Shift+4".action.move-column-to-workspace = 4;
|
||||
"Mod+Shift+5".action.move-column-to-workspace = 5;
|
||||
"Mod+Shift+6".action.move-column-to-workspace = 6;
|
||||
"Mod+Shift+7".action.move-column-to-workspace = 7;
|
||||
"Mod+Shift+8".action.move-column-to-workspace = 8;
|
||||
"Mod+Shift+9".action.move-column-to-workspace = 9;
|
||||
"Mod+Shift+0".action.move-column-to-workspace = 10;
|
||||
|
||||
"Mod+Left".action = focus-column-left;
|
||||
"Mod+Right".action = focus-column-right;
|
||||
"Mod+Up".action = focus-workspace-up;
|
||||
"Mod+Down".action = focus-workspace-down;
|
||||
"Mod+Shift+Left".action = move-column-left;
|
||||
"Mod+Shift+Right".action = move-column-right;
|
||||
"Mod+Shift+Up".action = move-column-to-workspace-up;
|
||||
"Mod+Shift+Down".action = move-column-to-workspace-down;
|
||||
"Mod+Ctrl+Left".action = focus-monitor-left;
|
||||
"Mod+Ctrl+Right".action = focus-monitor-right;
|
||||
"Mod+Shift+Ctrl+Left".action = move-column-to-monitor-left;
|
||||
"Mod+Shift+Ctrl+Right".action = move-column-to-monitor-right;
|
||||
|
||||
"Ctrl+Alt+Delete" = {
|
||||
hotkey-overlay.title = "Restart Desktop Shell";
|
||||
action.spawn = [
|
||||
"systemctl"
|
||||
"--user"
|
||||
"restart"
|
||||
"desktop-shell.service"
|
||||
];
|
||||
};
|
||||
|
||||
"Mod+Space" = {
|
||||
hotkey-overlay.title = "App Launcher";
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"spotlight"
|
||||
"toggle"
|
||||
];
|
||||
};
|
||||
"Mod+V" = {
|
||||
hotkey-overlay.title = "Clipboard Manager";
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"clipboard"
|
||||
"toggle"
|
||||
];
|
||||
};
|
||||
"Mod+M" = {
|
||||
hotkey-overlay.title = "System Monitor";
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"processlist"
|
||||
"toggle"
|
||||
];
|
||||
};
|
||||
"Mod+Comma" = {
|
||||
hotkey-overlay.title = "Open Settings";
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"settings"
|
||||
"toggle"
|
||||
];
|
||||
};
|
||||
"Super+L" = {
|
||||
hotkey-overlay.title = "Lock";
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"lock"
|
||||
"lock"
|
||||
];
|
||||
};
|
||||
"XF86AudioRaiseVolume" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"audio"
|
||||
"increment"
|
||||
"3"
|
||||
];
|
||||
};
|
||||
"XF86AudioLowerVolume" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"audio"
|
||||
"decrement"
|
||||
"3"
|
||||
];
|
||||
};
|
||||
"XF86AudioMute" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"audio"
|
||||
"mute"
|
||||
];
|
||||
};
|
||||
"XF86AudioMicMute" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"audio"
|
||||
"micmute"
|
||||
];
|
||||
};
|
||||
|
||||
"XF86MonBrightnessUp" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"brightness"
|
||||
"increment"
|
||||
"5"
|
||||
""
|
||||
];
|
||||
};
|
||||
"XF86MonBrightnessDown" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action.spawn = [
|
||||
"qs"
|
||||
"-c"
|
||||
"dms"
|
||||
"ipc"
|
||||
"call"
|
||||
"brightness"
|
||||
"decrement"
|
||||
"5"
|
||||
""
|
||||
];
|
||||
};
|
||||
|
||||
"XF86AudioNext" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action = sh "playerctl next";
|
||||
};
|
||||
"XF86AudioPause" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action = sh "playerctl play-pause";
|
||||
};
|
||||
"XF86AudioPlay" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action = sh "playerctl play-pause";
|
||||
};
|
||||
"XF86AudioPrev" = {
|
||||
allow-when-locked = true;
|
||||
hotkey-overlay.hidden = true;
|
||||
action = sh "playerctl previous";
|
||||
};
|
||||
#"Mod+Tab".action = focus-window-down-or-column-right;
|
||||
#"Mod+Shift+Tab".action = focus-window-up-or-column-left;
|
||||
"Mod+Tab".action = toggle-overview;
|
||||
};
|
||||
input = {
|
||||
power-key-handling.enable = false;
|
||||
focus-follows-mouse = {
|
||||
#enable = true;
|
||||
};
|
||||
warp-mouse-to-focus.enable = false;
|
||||
keyboard = {
|
||||
xkb.layout = "eu, ru";
|
||||
xkb.options = "grp:lctrl_toggle, ctrl:nocaps";
|
||||
track-layout = "window";
|
||||
numlock = true;
|
||||
};
|
||||
touchpad = {
|
||||
tap = true;
|
||||
#accel-profile = "adaptive";
|
||||
click-method = "clickfinger";
|
||||
};
|
||||
};
|
||||
cursor = {
|
||||
hide-after-inactive-ms = 10000;
|
||||
};
|
||||
gestures.hot-corners.enable = true;
|
||||
prefer-no-csd = true;
|
||||
environment = {
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
__GL_GSYNC_ALLOWED = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
DISPLAY = ":0";
|
||||
};
|
||||
layer-rules = [
|
||||
{
|
||||
#this is for later to place keyboard on top of hyprlock
|
||||
matches = [{namespace = "wvkbd";}];
|
||||
}
|
||||
];
|
||||
window-rules = [
|
||||
{
|
||||
#active
|
||||
matches = [
|
||||
{
|
||||
is-active = true;
|
||||
}
|
||||
];
|
||||
opacity = 1.0;
|
||||
}
|
||||
{
|
||||
#inactive
|
||||
matches = [
|
||||
{
|
||||
is-active = false;
|
||||
}
|
||||
];
|
||||
opacity = 1.0;
|
||||
}
|
||||
{
|
||||
#opaque
|
||||
matches = [
|
||||
{
|
||||
app-id = "emacs";
|
||||
}
|
||||
{
|
||||
app-id = "blender";
|
||||
}
|
||||
];
|
||||
opacity = 1.0;
|
||||
}
|
||||
{
|
||||
#Popups
|
||||
matches = [
|
||||
{
|
||||
title = "emacs-run-launcher";
|
||||
}
|
||||
{
|
||||
title = "Paradox Crash Reporter";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
open-focused = true;
|
||||
}
|
||||
{
|
||||
#Screenshots
|
||||
matches = [
|
||||
{
|
||||
title = "satty";
|
||||
}
|
||||
{
|
||||
app-id = "com.gabm.satty";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
open-focused = true;
|
||||
min-width = 700;
|
||||
min-height = 350;
|
||||
}
|
||||
{
|
||||
#PiP
|
||||
matches = [
|
||||
{
|
||||
title = "Picture-in-Picture";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
open-focused = false;
|
||||
opacity = 1.0;
|
||||
default-floating-position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
relative-to = "top-right";
|
||||
};
|
||||
}
|
||||
];
|
||||
xwayland-satellite = {
|
||||
enable = true;
|
||||
path = "${lib.getExe pkgs.xwayland-satellite-unstable}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.portal.extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
|
||||
services.hypridle = let
|
||||
niri = lib.getExe config.programs.niri.package;
|
||||
loginctl = "${pkgs.systemd}/bin/loginctl";
|
||||
qs = "${inputs.quickshell.packages.${pkgs.system}.quickshell}/bin/qs";
|
||||
locking-script = "${qs} -c dms ipc call lock lock";
|
||||
systemctl = "${pkgs.systemd}/bin/systemctl";
|
||||
suspendScript = cmd:
|
||||
pkgs.writeShellScript "suspend-script" ''
|
||||
# check if any player has status "Playing"
|
||||
${lib.getExe pkgs.playerctl} -a status | ${lib.getExe pkgs.ripgrep} Playing -q
|
||||
# only suspend if nothing is playing
|
||||
if [ $? == 1 ]; then
|
||||
${cmd}
|
||||
fi
|
||||
'';
|
||||
in {
|
||||
enable = true;
|
||||
settings.general = {
|
||||
before_sleep_cmd = "${loginctl} lock-session";
|
||||
#after_sleep_cmd = "#${niri} msg action power-on-monitors";
|
||||
lock_cmd = "${locking-script}";
|
||||
ignore_dbus_inhibit = false; # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
|
||||
ignore_systemd_inhibit = false; # whether to ignore systemd-inhibit --what=idle inhibitors
|
||||
};
|
||||
settings.listener = let
|
||||
secondary = "${systemctl} suspend";
|
||||
in [
|
||||
#{
|
||||
# timeout = 30;
|
||||
# command = "pidof hyprlock && ${secondary}";
|
||||
#}
|
||||
{
|
||||
timeout = 870;
|
||||
on-timeout = "${suspendScript ''${pkgs.libnotify}/bin/notify-send "You are idle. Going to sleep in 30 seconds"''}";
|
||||
}
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "${suspendScript "${systemctl} suspend"}";
|
||||
}
|
||||
];
|
||||
};
|
||||
systemd.user.services.lisgd-niri = lib.mkIf (config.custom.hardware.tablet.enable) {
|
||||
Unit = {
|
||||
Description = "Makes sure that you have touchscreen gestures.";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.writeShellScript "run-lisgd" ''
|
||||
${pkgs.custom.lisgd-kylekrein}/bin/lisgd
|
||||
''}";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
systemd.user.services.autorotate-niri = lib.mkIf (config.custom.hardware.tablet.enable) {
|
||||
Unit = {
|
||||
Description = "Adds auto rotation to Niri.";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.writeShellScript "autorotate" ''
|
||||
transform="normal"
|
||||
|
||||
monitor-sensor | while read -r line; do
|
||||
case "$line" in
|
||||
*normal*)
|
||||
new_transform="normal"
|
||||
;;
|
||||
*right-up*)
|
||||
new_transform="270"
|
||||
;;
|
||||
*bottom-up*)
|
||||
new_transform="180"
|
||||
;;
|
||||
*left-up*)
|
||||
new_transform="90"
|
||||
;;
|
||||
*)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$new_transform" != "$transform" ]]; then
|
||||
transform="$new_transform"
|
||||
echo "Transform: $transform"
|
||||
niri msg output eDP-1 transform "$transform"
|
||||
systemctl --user restart lisgd-niri.service
|
||||
fi
|
||||
done
|
||||
''}";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
custom.hardware.tablet = {
|
||||
onTabletModeEnable = [
|
||||
{
|
||||
name = "autorotate";
|
||||
command = "systemctl --user start autorotate-niri.service";
|
||||
}
|
||||
];
|
||||
onTabletModeDisable = [
|
||||
{
|
||||
name = "autorotate";
|
||||
command = ''
|
||||
systemctl --user stop autorotate-niri.service
|
||||
niri msg output eDP-1 transform normal
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 164 KiB |
|
|
@ -1,223 +0,0 @@
|
|||
{
|
||||
"currentThemeName": "dynamic",
|
||||
"customThemeFile": "",
|
||||
"matugenScheme": "scheme-tonal-spot",
|
||||
"dankBarTransparency": 0.75,
|
||||
"dankBarWidgetTransparency": 0.85,
|
||||
"popupTransparency": 0.92,
|
||||
"dockTransparency": 1,
|
||||
"use24HourClock": true,
|
||||
"useFahrenheit": false,
|
||||
"nightModeEnabled": false,
|
||||
"weatherLocation": "51.7177044, 8.7526530",
|
||||
"weatherCoordinates": "51.7177044,8.7526530",
|
||||
"useAutoLocation": false,
|
||||
"weatherEnabled": true,
|
||||
"showLauncherButton": true,
|
||||
"showWorkspaceSwitcher": true,
|
||||
"showFocusedWindow": true,
|
||||
"showWeather": true,
|
||||
"showMusic": true,
|
||||
"showClipboard": true,
|
||||
"showCpuUsage": true,
|
||||
"showMemUsage": true,
|
||||
"showCpuTemp": true,
|
||||
"showGpuTemp": true,
|
||||
"selectedGpuIndex": 0,
|
||||
"enabledGpuPciIds": [],
|
||||
"showSystemTray": true,
|
||||
"showClock": true,
|
||||
"showNotificationButton": true,
|
||||
"showBattery": true,
|
||||
"showControlCenterButton": true,
|
||||
"controlCenterShowNetworkIcon": true,
|
||||
"controlCenterShowBluetoothIcon": true,
|
||||
"controlCenterShowAudioIcon": true,
|
||||
"controlCenterWidgets": [
|
||||
{
|
||||
"id": "volumeSlider",
|
||||
"enabled": true,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"id": "brightnessSlider",
|
||||
"enabled": true,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"id": "wifi",
|
||||
"enabled": true,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"id": "bluetooth",
|
||||
"enabled": true,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"id": "audioOutput",
|
||||
"enabled": true,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"id": "audioInput",
|
||||
"enabled": true,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"id": "nightMode",
|
||||
"enabled": true,
|
||||
"width": 25
|
||||
},
|
||||
{
|
||||
"id": "idleInhibitor",
|
||||
"enabled": true,
|
||||
"width": 25
|
||||
},
|
||||
{
|
||||
"id": "doNotDisturb",
|
||||
"enabled": true,
|
||||
"width": 25
|
||||
},
|
||||
{
|
||||
"id": "battery",
|
||||
"enabled": true,
|
||||
"width": 25
|
||||
},
|
||||
{
|
||||
"id": "diskUsage",
|
||||
"enabled": true,
|
||||
"width": 100,
|
||||
"instanceId": "mfz4b7s6aer4zpglo9g",
|
||||
"mountPath": "/"
|
||||
}
|
||||
],
|
||||
"showWorkspaceIndex": false,
|
||||
"showWorkspacePadding": false,
|
||||
"showWorkspaceApps": true,
|
||||
"maxWorkspaceIcons": 30,
|
||||
"workspacesPerMonitor": true,
|
||||
"workspaceNameIcons": {},
|
||||
"waveProgressEnabled": true,
|
||||
"clockCompactMode": false,
|
||||
"focusedWindowCompactMode": false,
|
||||
"runningAppsCompactMode": true,
|
||||
"runningAppsCurrentWorkspace": false,
|
||||
"clockDateFormat": "ddd d",
|
||||
"lockDateFormat": "dddd, MMMM d",
|
||||
"mediaSize": 0,
|
||||
"dankBarLeftWidgets": [
|
||||
"launcherButton",
|
||||
"advancedWorkspaceSwitcher",
|
||||
{
|
||||
"id": "workspaceSwitcher",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"dankBarCenterWidgets": [
|
||||
{
|
||||
"id": "music",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "clock",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "weather",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"dankBarRightWidgets": [
|
||||
{
|
||||
"id": "systemTray",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "clipboard",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "notificationButton",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "privacyIndicator",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "keyboard_layout_name",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "battery",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "controlCenterButton",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"appLauncherViewMode": "grid",
|
||||
"spotlightModalViewMode": "list",
|
||||
"networkPreference": "auto",
|
||||
"iconTheme": "System Default",
|
||||
"launcherLogoMode": "os",
|
||||
"launcherLogoCustomPath": "",
|
||||
"launcherLogoColorOverride": "primary",
|
||||
"launcherLogoColorInvertOnMode": false,
|
||||
"launcherLogoBrightness": 0.5,
|
||||
"launcherLogoContrast": 1,
|
||||
"launcherLogoSizeOffset": 0,
|
||||
"fontFamily": "Inter Variable",
|
||||
"monoFontFamily": "Fira Code",
|
||||
"fontWeight": 400,
|
||||
"fontScale": 1,
|
||||
"dankBarFontScale": 1,
|
||||
"notepadUseMonospace": true,
|
||||
"notepadFontFamily": "",
|
||||
"notepadFontSize": 14,
|
||||
"notepadShowLineNumbers": false,
|
||||
"notepadTransparencyOverride": -1,
|
||||
"notepadLastCustomTransparency": 0.95,
|
||||
"gtkThemingEnabled": true,
|
||||
"qtThemingEnabled": true,
|
||||
"showDock": false,
|
||||
"dockAutoHide": false,
|
||||
"dockGroupByApp": false,
|
||||
"dockOpenOnOverview": false,
|
||||
"dockPosition": 1,
|
||||
"dockSpacing": 4,
|
||||
"dockBottomGap": 0,
|
||||
"cornerRadius": 12,
|
||||
"notificationOverlayEnabled": false,
|
||||
"dankBarAutoHide": false,
|
||||
"dankBarOpenOnOverview": true,
|
||||
"dankBarVisible": true,
|
||||
"dankBarSpacing": 4,
|
||||
"dankBarBottomGap": 0,
|
||||
"dankBarInnerPadding": 8,
|
||||
"dankBarSquareCorners": false,
|
||||
"dankBarNoBackground": false,
|
||||
"dankBarGothCornersEnabled": false,
|
||||
"dankBarBorderEnabled": false,
|
||||
"dankBarPosition": 0,
|
||||
"lockScreenShowPowerActions": true,
|
||||
"hideBrightnessSlider": false,
|
||||
"widgetBackgroundColor": "sth",
|
||||
"surfaceBase": "s",
|
||||
"notificationTimeoutLow": 5000,
|
||||
"notificationTimeoutNormal": 5000,
|
||||
"notificationTimeoutCritical": 0,
|
||||
"notificationPopupPosition": 0,
|
||||
"osdAlwaysShowValue": false,
|
||||
"screenPreferences": {
|
||||
"notifications": [
|
||||
"all"
|
||||
],
|
||||
"toast": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"animationSpeed": 2
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib.custom; let
|
||||
username = config.snowfallorg.user.name;
|
||||
home = config.snowfallorg.user.home.directory;
|
||||
impermanence = config.${namespace}.impermanence;
|
||||
in
|
||||
lib.mkIf osConfig.custom.windowManagers.niri.enable {
|
||||
home.packages = with pkgs; [
|
||||
nordic
|
||||
];
|
||||
|
||||
programs.niri = {
|
||||
settings = {
|
||||
cursor.theme = "Nordic-cursors";
|
||||
};
|
||||
};
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 294 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.1 MiB |
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
# User information gathered by Snowfall Lib is available.
|
||||
let
|
||||
name = config.snowfallorg.user.name;
|
||||
home = config.snowfallorg.user.home.directory;
|
||||
in {
|
||||
imports = lib.snowfall.fs.get-non-default-nix-files ./.;
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
};
|
||||
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue