try and fix monitors

This commit is contained in:
Mans Ziesel 2023-06-08 15:11:21 +02:00
parent f1b1d5cc0e
commit 84da86bb17
6 changed files with 33 additions and 41 deletions

View File

@ -45,6 +45,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
steam steam
librewolf librewolf
kitty
]; ];
# Enable home-manager and git # Enable home-manager and git

View File

@ -1,45 +1,29 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let {
mod = "Mod1"; xsession.windowManager.i3 = {
in {
xsession = {
enable = true;
windowManager.i3 = {
enable = true; enable = true;
config = { config = {
modifier = mod; bars = [
{
position = "top";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-top.toml";
}
];
};
};
# fonts = ["DejaVu Sans Mono, FontAwesome 6"]; programs.i3status-rust = {
enable = true;
# keybindings = lib.mkOptionDefault { bars = {
# "${mod}+p" = "exec ${pkgs.dmenu}/bin/dmenu_run"; top = {
# "${mod}+x" = "exec sh -c '${pkgs.maim}/bin/maim -s | xclip -selection clipboard -t image/png'"; blocks = [
# "${mod}+Shift+x" = "exec sh -c '${pkgs.i3lock}/bin/i3lock -c 222222 & sleep 5 && xset dpms force of'"; {
block = "time";
# # Focus interval = 60;
# "${mod}+j" = "focus left"; format = "%a %d/%m %k:%M %p";
# "${mod}+k" = "focus down"; }
# "${mod}+l" = "focus up"; ];
# "${mod}+semicolon" = "focus right";
# # Move
# "${mod}+Shift+j" = "move left";
# "${mod}+Shift+k" = "move down";
# "${mod}+Shift+l" = "move up";
# "${mod}+Shift+semicolon" = "move right";
# # My multi monitor setup
# # "${mod}+m" = "move workspace to output DP-2";
# # "${mod}+Shift+m" = "move workspace to output DP-5";
# };
# bars = [
# {
# position = "bottom";
# statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${./i3status-rust.toml}";
# }
# ];
}; };
}; };
}; };

View File

@ -1,2 +0,0 @@
theme = "gruvgox-dark"
icons = "awesome"

View File

@ -12,7 +12,7 @@
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
# ./users.nix # ./users.nix
./network.nix ./network.nix
# ./i3.nix ./i3.nix
# Import home-manager's NixOS module # Import home-manager's NixOS module
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager

View File

@ -4,6 +4,13 @@
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
# Define the i3 window manager configuration # Define the i3 window manager configuration
services.xserver = { services.xserver = {
xrandrHeads = {
[
"HDMI-1 --auto --left-of DP-1"
"DP-1 --auto --primary --right-of HDMI-1"
];
};
enable = true; enable = true;
desktopManager = { desktopManager = {

2
update.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
sudo nixos-rebuild switch --flake .#nixos-mans