feat: use nixfmt

This commit is contained in:
2024-03-26 17:44:14 +01:00
parent 59e6ed992a
commit 3ad3491970
29 changed files with 444 additions and 558 deletions

View File

@@ -0,0 +1,39 @@
* {
font-family: "NotoSans NF";
}
window#window {
background: transparent;
}
box#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
border-radius: 24px;
}
entry#entry {
border: none;
box-shadow: none;
padding: 8px 24px;
}
entry#entry,
list#main {
border-radius: 24px;
background: transparent;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
list#plugin {
background: transparent;
}

View File

@@ -1,4 +1,4 @@
{pkgs}: {
{ pkgs }: {
enable = true;
config = {
plugins = with pkgs.anyrunPlugins; [
@@ -11,49 +11,5 @@
y.fraction = 0.2;
closeOnClick = true;
};
extraCss =
/*
css
*/
''
* {
font-family: "NotoSans NF";
}
window#window {
background: transparent;
}
box#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
border-radius: 24px;
}
entry#entry {
border: none;
box-shadow: none;
padding: 8px 24px;
}
entry#entry,
list#main {
border-radius: 24px;
background: transparent;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
list#plugin {
background: transparent;
}
'';
extraCss = builtins.readFile ./anyrun.css;
}

View File

@@ -1,8 +1,4 @@
{
pkgs,
config,
...
}: {
{ pkgs, config, ... }: {
services.darkman = let
wallpaperPath = "${config.home.homeDirectory}/.local/state/wallpaper.jpg";
in {
@@ -20,7 +16,7 @@
vendorHash = "sha256-xEPmNnaDwFU4l2G4cMvtNeQ9KneF5g9ViQSFrDkrafY=";
nativeBuildInputs = [pkgs.scdoc];
nativeBuildInputs = [ pkgs.scdoc ];
postPatch = ''
substituteInPlace darkman.service \
@@ -44,10 +40,11 @@
'';
meta = with pkgs.lib; {
description = "Framework for dark-mode and light-mode transitions on Linux desktop";
description =
"Framework for dark-mode and light-mode transitions on Linux desktop";
homepage = "https://gitlab.com/WhyNotHugo/darkman";
license = licenses.isc;
maintainers = [maintainers.ajgrf];
maintainers = [ maintainers.ajgrf ];
platforms = platforms.linux;
mainProgram = "darkman";
};
@@ -58,18 +55,14 @@
};
darkModeScripts = {
kitty-theme =
/*
bash
*/
# bash
''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Frappe
'';
};
lightModeScripts = {
kitty-theme =
/*
bash
*/
# bash
''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Latte
'';

View File

@@ -1,18 +1,11 @@
{
config,
pkgs,
lib,
...
}: {
imports = [
./darkman.nix
];
{ config, pkgs, lib, ... }: {
imports = [ ./darkman.nix ];
wayland.windowManager.hyprland = {
enable = true;
systemd = {
enable = true;
variables = ["--all"];
variables = [ "--all" ];
};
settings = {
env = [
@@ -48,13 +41,8 @@
};
bind = import ./keybinds.nix;
bindm = import ./mousebinds.nix;
bindr = [
"SUPER,SUPER_L,exec,pkill anyrun || anyrun"
];
monitor = [
"DP-1,highrr,0x0,1,bitdepth,8"
"DP-1,addreserved,250,0,0,0"
];
bindr = [ "SUPER,SUPER_L,exec,pkill anyrun || anyrun" ];
monitor = [ "DP-1,highrr,0x0,1,bitdepth,8" "DP-1,addreserved,250,0,0,0" ];
workspace = [
"special:calc,border:false,gapsout:200,on-created-empty:[noanim;silent] kitty -e qalc"
];
@@ -96,10 +84,7 @@
disable_splash_rendering = true;
force_default_wallpaper = 0;
};
layerrule = [
"blur, anyrun"
"ignorealpha 0.3, anyrun"
];
layerrule = [ "blur, anyrun" "ignorealpha 0.3, anyrun" ];
decoration = {
drop_shadow = "yes";
shadow_range = 16;
@@ -111,7 +96,7 @@
enabled = true;
size = 8;
passes = 3;
noise = 0.01;
noise = 1.0e-2;
contrast = 0.9;
brightness = 0.8;
};
@@ -137,8 +122,9 @@
services.flameshot = {
enable = true;
package = pkgs.flameshot.overrideAttrs (final: prev: {
cmakeFlags = ["-DUSE_WAYLAND_CLIPBOARD=1" "-DUSE_WAYLAND_GRIM=true"];
nativeBuildInputs = prev.nativeBuildInputs ++ [pkgs.libsForQt5.kguiaddons];
cmakeFlags = [ "-DUSE_WAYLAND_CLIPBOARD=1" "-DUSE_WAYLAND_GRIM=true" ];
nativeBuildInputs = prev.nativeBuildInputs
++ [ pkgs.libsForQt5.kguiaddons ];
});
settings = {
General = {
@@ -158,30 +144,30 @@
systemd.user.services.ags = {
Unit = {
Description = "ags";
PartOf = ["graphical-session.target" "tray.target"];
PartOf = [ "graphical-session.target" "tray.target" ];
};
Service = {
ExecStart = "${pkgs.ags}/bin/ags";
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
Restart = "always";
KillMode = "mixed";
Environment = "PATH=/run/current-system/sw/bin/:${with pkgs;
lib.makeBinPath [
swww
sassc
glib
brightnessctl
ydotool
kitty
hyprpicker
]}";
};
Install = {
WantedBy = ["graphical-session.target"];
Environment = "PATH=/run/current-system/sw/bin/:${
with pkgs;
lib.makeBinPath [
swww
sassc
glib
brightnessctl
ydotool
kitty
hyprpicker
]
}";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
programs.kitty = import ./kitty.nix {inherit pkgs;};
programs.anyrun = import ./anyrun.nix {inherit pkgs;};
programs.kitty = import ./kitty.nix { inherit pkgs; };
programs.anyrun = import ./anyrun.nix { inherit pkgs; };
services.udiskie.enable = true;
services.udiskie.tray = "never";
@@ -242,9 +228,7 @@
};
programs.fish.loginShellInit =
/*
fish
*/
# fish
''
Hyprland && echo "goodbye" && exit 0 \
|| echo "$status couldn't launch Hyprland" && tty | grep tty1 \

View File

@@ -1,4 +1,4 @@
{pkgs}: {
{ pkgs }: {
enable = true;
shellIntegration.enableFishIntegration = true;
extraConfig = ''

View File

@@ -1,4 +1 @@
[
"SUPER,mouse:272,movewindow"
"SUPER,mouse:273,resizewindow"
]
[ "SUPER,mouse:272,movewindow" "SUPER,mouse:273,resizewindow" ]