Framework fixed

This commit is contained in:
Aleksandr Lebedev 2025-07-29 22:00:07 +02:00
parent 873a9c562b
commit 37d834adc4
4 changed files with 42 additions and 29 deletions

View file

@ -54,10 +54,6 @@
mountpoint = "/"; mountpoint = "/";
mountOptions = ["subvol=root" "compress=zstd" "noatime"]; mountOptions = ["subvol=root" "compress=zstd" "noatime"];
}; };
"/home" = {
mountpoint = "/home";
mountOptions = ["subvol=home" "compress=zstd" "noatime"];
};
"/nix" = { "/nix" = {
mountpoint = "/nix"; mountpoint = "/nix";
mountOptions = ["subvol=nix" "compress=zstd" "noatime"]; mountOptions = ["subvol=nix" "compress=zstd" "noatime"];

View file

@ -15,34 +15,38 @@ unsigned int distancethreshold_pressed = 60;
unsigned int degreesleniency = 15; unsigned int degreesleniency = 15;
unsigned int timeoutms = 800; unsigned int timeoutms = 800;
unsigned int orientation = 0; unsigned int orientation = 0;
unsigned int verbose = 0; unsigned int verbose = 1;
double edgesizeleft = 50.0; double edgesizeleft = 50.0;
double edgesizetop = 50.0; double edgesizetop = 50.0;
double edgesizeright = 50.0; double edgesizeright = 50.0;
double edgesizebottom = 50.0; double edgesizebottom = 50.0;
double edgessizecaling = 1.0; double edgessizecaling = 1.0;
char *device = "/dev/input/touchscreen"; char *device = "/dev/input/event7";
//Gestures can also be specified interactively from the command line using -g // Gestures can also be specified interactively from the command line using -g
Gesture gestures[] = { Gesture gestures[] = {
/* nfingers gesturetype command */ {1, SwipeRL, EdgeRight, DistanceAny, ActModeReleased,
//{1, SwipeLR, EdgeAny, DistanceAny, ActModeReleased, "niri msg action "}, "niri msg action focus-column-right"},
//{1, SwipeRL, EdgeAny, DistanceAny, ActModeReleased, {1, SwipeLR, EdgeLeft, DistanceAny, ActModeReleased,
// "xdotool key --clearmodifiers Alt+Shift+r"}, "niri msg action focus-column-left"},
//{1, SwipeDLUR, EdgeAny, DistanceAny, ActModeReleased, "sxmo_vol.sh up"}, {1, SwipeDU, CornerBottomRight, DistanceMedium, ActModeReleased,
//{1, SwipeURDL, EdgeAny, DistanceAny, ActModeReleased, "sxmo_vol.sh down"}, "niri msg action focus-workspace-down"},
//{1, SwipeDRUL, EdgeAny, DistanceAny, ActModeReleased, {1, SwipeUD, CornerTopRight, DistanceMedium, ActModeReleased,
// "sxmo_brightness.sh up"}, "niri msg action focus-workspace-up"},
//{1, SwipeULDR, EdgeAny, DistanceAny, ActModeReleased, //{1, SwipeUD, EdgeTop, DistanceAny, ActModeReleased, "nwggrid -o 0.98"},
//"sxmo_brightness.sh down"}, //"pkill -SIGRTMIN -f wvkbd"},
//{2, SwipeLR, EdgeAny, DistanceAny, ActModeReleased, //{2, SwipeUD, EdgeAny, DistanceAny, ActModeReleased,
// "xdotool key --clearmodifiers Alt+e"}, //"sway-interactive-screenshot -s focused-output"},
//{2, SwipeRL, EdgeAny, DistanceAny, ActModeReleased, //{3, SwipeLR, EdgeAny, DistanceAny, ActModeReleased,
// "xdotool key --clearmodifiers Alt+r"}, //"swaymsg layout tabbed"},
{2, SwipeDU, EdgeAny, DistanceAny, ActModeReleased, //{3, SwipeRL, EdgeAny, DistanceAny, ActModeReleased,
"pidof wvkbd-mobintl || wvkbd-mobintl -l simple,special,emoji &"}, //"swaymsg layout toggle split"},
{2, SwipeUD, EdgeAny, DistanceAny, ActModeReleased, {2, SwipeUD, EdgeLeft, DistanceShort, ActModePressed, "niri msg action fullscreen-window"},
"pkill -9 -f wvkbd-mobintl"}, {2, SwipeUD, EdgeRight, DistanceMedium, ActModeReleased, "niri msg action close-window"},
{1, SwipeDU, EdgeBottom, DistanceAny, ActModeReleased,
"kill -34 $(ps -C wvkbd-mobintl)"},
//{2, SwipeUD, EdgeBottom, DistanceAny, ActModeReleased,
//"pkill -9 -f wvkbd-mobintl"},
{3, SwipeDU, EdgeAny, DistanceAny, ActModeReleased, {3, SwipeDU, EdgeAny, DistanceAny, ActModeReleased,
"niri msg action toggle-overview"}, "niri msg action toggle-overview"},
}; };

View file

@ -9,7 +9,11 @@
hwconfig, hwconfig,
username, username,
... ...
}: { }:
let
lisgd-patched = pkgs.callPackage ./lisgd.nix {};
in
{
programs.fuzzel = { programs.fuzzel = {
enable = true; enable = true;
settings.main.terminal = "kitty"; settings.main.terminal = "kitty";
@ -36,6 +40,7 @@
] ]
++ lib.optionals (hwconfig.hasTouchscreen) (with pkgs; [ ++ lib.optionals (hwconfig.hasTouchscreen) (with pkgs; [
wvkbd # https://github.com/jjsullivan5196/wvkbd wvkbd # https://github.com/jjsullivan5196/wvkbd
lisgd-patched
]); ]);
programs.niri = { programs.niri = {
settings = { settings = {
@ -61,12 +66,19 @@
}; };
touchscreen-gestures = lib.mkIf (hwconfig.hasTouchscreen) { touchscreen-gestures = lib.mkIf (hwconfig.hasTouchscreen) {
command = [ command = [
"${lib.getExe (import ./lisgd.nix {inherit pkgs;})}" #https://git.sr.ht/~mil/lisgd "while true; do ${lisgd-patched}/bin/lisgd; done" #https://git.sr.ht/~mil/lisgd
]; ];
}; };
touchscreen-keyboard = lib.mkIf(hwconfig.hasTouchscreen){
command = [
"wvkbd-mobintl"
"--hidden"
];
};
in [ in [
set-low-brightness set-low-brightness
touchscreen-gestures touchscreen-gestures
touchscreen-keyboard
{ {
command = [ command = [
"${lib.getExe pkgs.networkmanagerapplet}" "${lib.getExe pkgs.networkmanagerapplet}"
@ -179,6 +191,7 @@
"Mod+Tab".action = toggle-overview; "Mod+Tab".action = toggle-overview;
}; };
input = { input = {
power-key-handling.enable = hwconfig.hostname != "kylekrein-framework12";
focus-follows-mouse = { focus-follows-mouse = {
#enable = true; #enable = true;
}; };

View file

@ -14,7 +14,7 @@ in {
users.users.${username} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
description = "Aleksandr Lebedev"; description = "Aleksandr Lebedev";
extraGroups = ["networkmanager" "wheel"]; extraGroups = ["networkmanager" "wheel" "input"];
#initialPassword = "1234"; #initialPassword = "1234";
hashedPasswordFile = config.sops.secrets."users/${username}".path; hashedPasswordFile = config.sops.secrets."users/${username}".path;
packages = with pkgs; []; packages = with pkgs; [];