From 12c53e9fa0292d6c64deec85ee37fd0bd8a32a4f Mon Sep 17 00:00:00 2001 From: Elias Renman Date: Fri, 2 Feb 2024 15:23:34 +0100 Subject: [PATCH] chore: i3 wip --- configuration.nix | 40 ++++++++++++++++++++++++++++++---------- packages.nix | 2 ++ 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/configuration.nix b/configuration.nix index 2e579b2..181ca95 100644 --- a/configuration.nix +++ b/configuration.nix @@ -117,18 +117,11 @@ services.redshift.enable = true; services.picom = { enable = true; - vSync = true; - inactiveOpacity = 0.65; - activeOpacity = 0.98; - settings = { - corner-radius = 3; - }; - opacityRules = [ - "100:class_g = 'rofi' && !focused" - "100:class_g = 'rofi' && focused" - ]; }; + systemd.user.services.picom.serviceConfig.ExecStart = lib.mkForce '' + ${pkgs.picom}/bin/picom --config /home/elias/.config/picom/picom.conf + ''; programs.i3lock.enable = true; programs.i3lock.package = pkgs.i3lock-color; @@ -157,4 +150,31 @@ #Spotify ports for google chromecasts and mobile phones networking.firewall.allowedTCPPorts = [ 57621 ]; networking.firewall.allowedUDPPorts = [ 5353 ]; + + # automatically connect to monitors + services.autorandr = { + enable = true; + # profiles = { + # "laptop" = { + # fingerprint = { + # eDP1 = ""; + # # DP1 = ""; + # }; + # config = { + # eDP1 = { + # enable = true; + # }; + # # DP1 = { + # # enable = true; + # # crtc = 0; + # # primary = true; + # # position = "0x0"; + # # mode = "3840x2160"; + # # gamma = "1.0:0.909:0.833"; + # # rate = "60.00"; + # # rotate = "left"; + # # }; + # } + # }; + }; } diff --git a/packages.nix b/packages.nix index 8194a7e..8bdcfcf 100644 --- a/packages.nix +++ b/packages.nix @@ -60,6 +60,8 @@ killall glances pamixer + autorandr + # Media ffmpeg-full playerctl