[NixOS] Try a bunch of things to make autorandr work
This commit is contained in:
parent
daa887ae23
commit
8865577c38
3
dotfiles/config/autorandr/postswitch
Normal file → Executable file
3
dotfiles/config/autorandr/postswitch
Normal file → Executable file
@ -1 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
notify-send -i display "Display profile" "$AUTORANDR_CURRENT_PROFILE"
|
||||||
systemctl --user restart random-background
|
systemctl --user restart random-background
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
sessionCommands = ''
|
sessionCommands = ''
|
||||||
systemctl --user import-environment GDK_PIXBUF_MODULE_FILE DBUS_SESSION_BUS_ADDRESS PATH
|
systemctl --user import-environment GDK_PIXBUF_MODULE_FILE DBUS_SESSION_BUS_ADDRESS PATH
|
||||||
'';
|
'';
|
||||||
|
setupCommands = ''
|
||||||
|
autorandr -c
|
||||||
|
systemctl restart autorandr.service
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -26,16 +30,15 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.autorandr-startup = {
|
systemd.services.autorandr-startup-after-dm = {
|
||||||
partOf = [ "graphical-session.target" ];
|
wantedBy = [ "display-manager.service" ];
|
||||||
description = "autorandr";
|
after = [ "display-manager.service" ];
|
||||||
|
description = "autorandr after display manager";
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.autorandr}/bin/autorandr --change";
|
ExecStart = "${pkgs.autorandr}/bin/autorandr --change";
|
||||||
};
|
};
|
||||||
|
|
||||||
wantedBy = [ "graphical-session.target" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# This is for the benefit of VSCODE running natively in wayland
|
# This is for the benefit of VSCODE running natively in wayland
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:IvanMalison/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ inputs: { pkgs, config, ... }: {
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.blueman-applet = {
|
services.blueman-applet = {
|
||||||
enable = false;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.taffybar = {
|
services.taffybar = {
|
||||||
|
Loading…
Reference in New Issue
Block a user