Updated neovim, added experimental features to android, made screenshot tool opaque

This commit is contained in:
Aleksandr Lebedev 2025-01-13 13:53:29 +01:00
parent 0746c613f1
commit 01149dfa62
3 changed files with 216 additions and 205 deletions

6
flake.lock generated
View file

@ -707,11 +707,11 @@
"nvf": "nvf" "nvf": "nvf"
}, },
"locked": { "locked": {
"lastModified": 1736335130, "lastModified": 1736772619,
"narHash": "sha256-9EZtqVX0QrR3sjKYSU7Q+zczwTRq6TWei7NedCM6v5A=", "narHash": "sha256-ncUF4M5H+ZFQOGr+JLUgJk5zK01BA/wUkJKviuc8m+8=",
"owner": "kylekrein", "owner": "kylekrein",
"repo": "neovim", "repo": "neovim",
"rev": "05a67cf92bf0fe80a8ff857f5c9e8ccd0750f63a", "rev": "5f5aa73e85b041834813e2f563de4bc06c139948",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -16,6 +16,7 @@
'') '')
]; ];
nix.settings.experimental-features = ["nix-command" "flakes"];
home-manager = { home-manager = {
config = ./home.nix; config = ./home.nix;
useGlobalPkgs = true; useGlobalPkgs = true;

View file

@ -1,9 +1,13 @@
{ pkgs, lib, hwconfig, username, ... }: {
let pkgs,
lib,
hwconfig,
username,
...
}: let
toggle_monitors = ./toggle_monitors.sh; toggle_monitors = ./toggle_monitors.sh;
wallpaper-image = ./wallpaper.jpg; wallpaper-image = ./wallpaper.jpg;
in in {
{
imports = [ imports = [
./waybar.nix ./waybar.nix
./hyprlock.nix ./hyprlock.nix
@ -13,22 +17,28 @@ in
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
settings = { settings = {
monitor = if hwconfig.hostname == "kylekrein-homepc" then [ monitor =
if hwconfig.hostname == "kylekrein-homepc"
then [
"DP-1,2560x1440@75,1600x0,1.6" "DP-1,2560x1440@75,1600x0,1.6"
"DP-3,2560x1440@75,0x0,1.6" "DP-3,2560x1440@75,0x0,1.6"
] else [",highres,auto,1.6"]
++
[
"FALLBACK,1920x1080@60,auto,1" #to fix crash on hyprlock https://github.com/hyprwm/hyprlock/issues/434#issuecomment-2341710088
] ]
; else
[",highres,auto,1.6"]
++ [
"FALLBACK,1920x1080@60,auto,1" #to fix crash on hyprlock https://github.com/hyprwm/hyprlock/issues/434#issuecomment-2341710088
];
xwayland = { xwayland = {
force_zero_scaling = true; force_zero_scaling = true;
}; };
exec-once = [ exec-once = [
"${if hwconfig.isLaptop then "brightnessctl set 25%" else ""}" "${
if hwconfig.isLaptop
then "brightnessctl set 25%"
else ""
}"
"dbus-update-activation-environment --systemd --all" "dbus-update-activation-environment --systemd --all"
"${pkgs.waybar}/bin/waybar &" "${pkgs.waybar}/bin/waybar &"
"${pkgs.networkmanagerapplet}/bin/nm-applet &" "${pkgs.networkmanagerapplet}/bin/nm-applet &"
@ -42,7 +52,6 @@ in
#"${pkgs.kando}/bin/kando" #"${pkgs.kando}/bin/kando"
]; ];
exec = [ exec = [
"${pkgs.swww}/bin/swww img ${wallpaper-image} &" "${pkgs.swww}/bin/swww img ${wallpaper-image} &"
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
@ -158,7 +167,6 @@ in
resize_on_border = false; resize_on_border = false;
allow_tearing = false; allow_tearing = false;
layout = "dwindle"; layout = "dwindle";
}; };
windowrule = [ windowrule = [
@ -173,6 +181,10 @@ in
#blender #blender
"opaque, blender" "opaque, blender"
#screenshot editor
"noblur, com.gabm.satty"
"opaque, com.gabm.satty"
]; ];
windowrulev2 = [ windowrulev2 = [
@ -189,7 +201,6 @@ in
#for clipboard manager #for clipboard manager
"float,class:(clipse)" "float,class:(clipse)"
"size 622 652,class:(clipse)" # set the size of the window as necessary "size 622 652,class:(clipse)" # set the size of the window as necessary
]; ];
decoration = { decoration = {
@ -210,7 +221,6 @@ in
vibrancy = 0.1696; vibrancy = 0.1696;
}; };
}; };
animations = { animations = {