moved awesome and hyprland

This commit is contained in:
Charlie Root 2024-05-21 00:04:49 +02:00
commit cfa27ccec4
8 changed files with 111 additions and 126 deletions

View file

@ -4,8 +4,5 @@ _: {
./programs.nix
./hardware-configuration.nix
./profile.nix
./awesome/awesome.nix
./hyprland/hyprland.nix
];
}

View file

@ -1,9 +1,4 @@
{
pkgs,
theme,
config,
...
}:
{ pkgs, theme, config, ... }:
with theme.colors; {
programs.niri.settings = {
outputs."eDP-1".position = {
@ -36,7 +31,7 @@ with theme.colors; {
};
focus-follows-mouse = true;
warp-mouse-to-focus = true;
trackpoint.accel-speed = 0.001;
trackpoint.accel-speed = 1.0e-3;
};
layout = {
@ -61,14 +56,14 @@ with theme.colors; {
butter = {
spring = {
damping-ratio = 0.75;
epsilon = 0.00010;
epsilon = 1.0e-4;
stiffness = 400;
};
};
smooth = {
spring = {
damping-ratio = 0.58;
epsilon = 0.00010;
epsilon = 1.0e-4;
stiffness = 735;
};
};
@ -81,27 +76,27 @@ with theme.colors; {
window-close = smooth;
};
window-rules = [
{
geometry-corner-radius = let radius =8.0; in{
window-rules = [{
geometry-corner-radius = let radius = 8.0;
in {
bottom-left = radius;
bottom-right = radius;
top-left = radius;
top-right = radius;
};
clip-to-geometry = true;
}
];
}];
binds = with config.lib.niri.actions; let
sh = spawn "sh" "-c";
binds = with config.lib.niri.actions;
let sh = spawn "sh" "-c";
in {
"Mod+Return" = {
action = spawn "${pkgs.foot}/bin/foot";
cooldown-ms = 500;
};
"Mod+Space".action = spawn "${pkgs.fuzzel}/bin/fuzzel";
"Mod+V".action = sh "${pkgs.cliphist}/bin/cliphist list | fuzzel --dmenu | cliphist decode | wl-copy";
"Mod+V".action = sh
"${pkgs.cliphist}/bin/cliphist list | fuzzel --dmenu | cliphist decode | wl-copy";
"Mod+Shift+Period".action = spawn "emoji";
"XF86AudioRaiseVolume".action = spawn "pamixer" "-i" "5";

View file

@ -1,9 +1,5 @@
{
pkgs,
lib,
theme,
...
}: let
{ pkgs, lib, theme, ... }:
let
mkService = lib.recursiveUpdate {
Unit.PartOf = [ "graphical-session.target" ];
Unit.After = [ "graphical-session.target" ];

View file

View file

@ -17,14 +17,11 @@
# this fixes emoji stuff
fontconfig = {
defaultFonts = {
monospace = [
"JetBrainsMono Nerd Font"
"Noto Color Emoji"
];
monospace = [ "JetBrainsMono Nerd Font" "Noto Color Emoji" ];
sansSerif = [ "Lexend" "Noto Color Emoji" ];
serif = [ "Noto Serif" "Noto Color Emoji" ];
emoji = [ "Noto Color Emoji" ];
};
};
}
};
}