add brightness change

This commit is contained in:
zoe 2022-10-31 08:53:46 +01:00
parent 69954d71ca
commit 21dd942946
6 changed files with 22 additions and 41 deletions

View File

@ -14,25 +14,6 @@
./services.nix
];
console.colors = [
"#002b36"
"#dc322f"
"#859900"
"#b58900"
"#268bd2"
"#d33682"
"#2aa198"
"#eee8d5"
"#002b36"
"#cb4b16"
"#586e75"
"#657b83"
"#839496"
"#6c71c4"
"#93a1a1"
"#fdf6e3"
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -62,32 +43,31 @@
LC_TIME = "de_DE.utf8";
};
# Enable the GNOME Desktop Environment.
# services.xserver.desktopManager.gnome.enable = true;
# xserver options
services.xserver = {
displayManager = {
lightdm.enable = true;
defaultSession = "xfce+i3";
defaultSession = "none+i3";
};
enable = true;
layout = "us";
xkbVariant = "alt-intl";
desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
autotiling
brightnessctl
xorg.xev
dunst
];
};
libinput = {
enable = true;
mouse = {
accelProfile = "flat";
accelSpeed = "1.0";
};
};
};
# Configure console keymap
@ -114,9 +94,6 @@
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;

View File

@ -32,11 +32,15 @@ in
"${mod}+Shift+l" = "move right";
# split
"${mod}+q" = "split toggle";
"${mod}+e" = "split toggle";
# control values
## brightness
"XF86MonBrightnessUp" = "exec brightnessctl set 2%+";
"XF86MonBrightnessDown" = "exec brightnessctl set 2%-";
};
startup = [
{ command = "--no-startup-id autotiling"; always = true; }
{ command = "--no-startup-id feh --bg-scale /etc/nixos/wallpaper.png"; always = true; }
];
}

View File

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
services = {
gnome.gnome-keyring.enable = true;
};
services = { };
}

View File

@ -10,7 +10,7 @@ nixpkgs-fmt *.nix ./*/*.nix
# cp -r /etc/nixos/ ./backup
# copy over all the files to /etc/nixos/
sudo cp -r ./configuration.nix ./rofi ./i3 ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./services.nix ./user.nix /etc/nixos/
sudo cp -r ./configuration.nix ./wallpaper.png ./rofi ./i3 ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./services.nix ./user.nix /etc/nixos/
# build penrose and copy it to nixos folder
# cd ./penrose

View File

@ -12,7 +12,6 @@
ungoogled-chromium
curl
git
wireguard-tools
networkmanagerapplet
thunderbird
@ -38,6 +37,9 @@
mpv
yt-dlp
# images
feh
# games
steam

BIN
wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 MiB