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; [
steam
librewolf
kitty
];
# Enable home-manager and git

View File

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

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:
# ./users.nix
./network.nix
# ./i3.nix
./i3.nix
# Import home-manager's NixOS module
inputs.home-manager.nixosModules.home-manager

View File

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

2
update.sh Executable file
View File

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