Various improvments/brightness

This commit is contained in:
Luj 2023-02-04 11:12:13 +01:00
parent ae4607aaa1
commit 7d11aedd93
Signed by: luj
GPG key ID: 6FC74C847011FD83
3 changed files with 153 additions and 68 deletions

View file

@ -41,7 +41,11 @@
};
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
services.xserver.libinput.enable = true;
services.xserver.libinput = {
enable = true;
naturalScrolling = true;
};
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
@ -49,25 +53,18 @@
programs.dconf.enable = true;
programs.sway.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
security.polkit.enable = true;
services.tlp.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.julien = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
firefox
thunderbird
];
};
# List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [
tailscale
brightnessctl
];
system.stateVersion = "23.05"; # Did you read the comment?

View file

@ -29,64 +29,72 @@ in
luj.programs.git.enable = true;
luj.programs.gtk.enable = true;
wayland.windowManager.sway.enable = true;
wayland.windowManager.sway.config.terminal = terminal;
wayland.windowManager.sway.config.modifier = modifier;
wayland.windowManager.sway.config.input = {
"*" = {
xkb_layout = "fr";
xkb_variant = "mac";
wayland.windowManager.sway = {
enable = true;
config = {
terminal = terminal;
modifier = modifier;
input = {
"*" = {
xkb_layout = "fr";
xkb_variant = "mac";
};
};
gaps = {
right = 2;
left = 2;
top = 2;
bottom = 2;
inner = 7;
};
keybindings = lib.mkOptionDefault {
"${modifier}+ampersand" = "workspace 1";
"${modifier}+eacute" = "workspace 2";
"${modifier}+quotedbl" = "workspace 3";
"${modifier}+apostrophe" = "workspace 4";
"${modifier}+parenleft" = "workspace 5";
"${modifier}+egrave" = "workspace 6";
"${modifier}+minus" = "workspace 7";
"${modifier}+underscore" = "workspace 8";
"${modifier}+ccedilla" = "workspace 9";
"${modifier}+agrave" = "workspace 10";
"${modifier}+Shift+ampersand" = "move container to workspace 1";
"${modifier}+Shift+eacute" = "move container to workspace 2";
"${modifier}+Shift+quotedbl" = "move container to workspace 3";
"${modifier}+Shift+apostrophe" = "move container to workspace 4";
"${modifier}+Shift+parenleft" = "move container to workspace 5";
"${modifier}+Shift+egrave" = "move container to workspace 6";
"${modifier}+Shift+minus" = "move container to workspace 7";
"${modifier}+Shift+underscore" = "move container to workspace 8";
"${modifier}+Shift+ccedilla" = "move container to workspace 9";
"${modifier}+Shift+agrave" = "move container to workspace 10";
"${modifier}+h" = "focus left";
"${modifier}+j" = "focus down";
"${modifier}+k" = "focus up";
"${modifier}+l" = "focus right";
"${modifier}+Shift+h" = "move left";
"${modifier}+Shift+j" = "move down";
"${modifier}+Shift+k" = "move up";
"${modifier}+Shift+l" = "move right";
"${modifier}+q" = "kill";
"${modifier}+space" = "exec rofi -show run";
"${modifier}+Return" = "exec ${terminal}";
"${modifier}+f" = "fullscreen toggle";
"XF86MonBrightnessUp" = "exec brightnessctl s +10";
"XF86MonBrightnessDown" = "exec brightnessctl s 10-";
};
};
};
wayland.windowManager.sway.config.gaps = {
right = 2;
left = 2;
top = 2;
bottom = 2;
inner = 7;
};
wayland.windowManager.sway.config.keybindings = lib.mkOptionDefault {
"${modifier}+ampersand" = "workspace 1";
"${modifier}+eacute" = "workspace 2";
"${modifier}+quotedbl" = "workspace 3";
"${modifier}+apostrophe" = "workspace 4";
"${modifier}+parenleft" = "workspace 5";
"${modifier}+egrave" = "workspace 6";
"${modifier}+minus" = "workspace 7";
"${modifier}+underscore" = "workspace 8";
"${modifier}+ccedilla" = "workspace 9";
"${modifier}+agrave" = "workspace 10";
"${modifier}+Shift+ampersand" = "move container to workspace 1";
"${modifier}+Shift+eacute" = "move container to workspace 2";
"${modifier}+Shift+quotedbl" = "move container to workspace 3";
"${modifier}+Shift+apostrophe" = "move container to workspace 4";
"${modifier}+Shift+parenleft" = "move container to workspace 5";
"${modifier}+Shift+egrave" = "move container to workspace 6";
"${modifier}+Shift+minus" = "move container to workspace 7";
"${modifier}+Shift+underscore" = "move container to workspace 8";
"${modifier}+Shift+ccedilla" = "move container to workspace 9";
"${modifier}+Shift+agrave" = "move container to workspace 10";
"${modifier}+h" = "focus left";
"${modifier}+j" = "focus down";
"${modifier}+k" = "focus up";
"${modifier}+l" = "focus right";
"${modifier}+Shift+h" = "move left";
"${modifier}+Shift+j" = "move down";
"${modifier}+Shift+k" = "move up";
"${modifier}+Shift+l" = "move right";
"${modifier}+q" = "kill";
"${modifier}+space" = "exec rofi -show run";
"${modifier}+Return" = "exec ${terminal}";
"${modifier}+f" = "fullscreen toggle";
};
services.swayidle.enable = true;
programs.alacritty =
{