fix(tazjin/frog): Explicitly use amdgpu driver

This ends up using the same driver, but generates saner display names
somehow. Who knows what's going on there.

FWIW, it didn't help with the font weight issue.

Change-Id: Ib6161088b23109f4f0e24b8a87c478ad274df4d6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/566
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Vincent Ambo 2020-06-24 02:23:59 +01:00 committed by tazjin
parent e7dd5e30e9
commit 14317eea79
2 changed files with 8 additions and 7 deletions

View file

@ -216,18 +216,18 @@
(defun randr-frog-layout-right-only () (defun randr-frog-layout-right-only ()
"Use only the right screen on frog." "Use only the right screen on frog."
(interactive) (interactive)
(set-randr-config `(("DP-1" ,(number-sequence 0 9)))) (set-randr-config `(("DisplayPort-0" ,(number-sequence 0 9))))
(shell-command "xrandr --output DP-2 --off") (shell-command "xrandr --output DisplayPort-1 --off")
(shell-command "xrandr --output DP-1 --auto --primary")) (shell-command "xrandr --output DisplayPort-0 --auto --primary"))
(defun randr-frog-layout-both () (defun randr-frog-layout-both ()
"Use the left and right screen on frog." "Use the left and right screen on frog."
(interactive) (interactive)
(set-randr-config `(("DP-2" 1 2 3 4 5) (set-randr-config `(("DisplayPort-1" 1 2 3 4 5)
("DP-1" 6 7 8 9 0))) ("DisplayPort-0" 6 7 8 9 0)))
(shell-command "xrandr --output DP-2 --auto --primary --left-of DP-1") (shell-command "xrandr --output DisplayPort-1 --auto --primary --left-of DisplayPort-0")
(shell-command "xrandr --output DP-1 --auto --right-of DP-2")) (shell-command "xrandr --output DisplayPort-0 --auto --right-of DisplayPort-1"))
(pcase (s-trim (shell-command-to-string "hostname")) (pcase (s-trim (shell-command-to-string "hostname"))
("vauxhall" ("vauxhall"

View file

@ -151,6 +151,7 @@ in depot.lib.fix(self: {
layout = "us"; layout = "us";
xkbOptions = "caps:super"; xkbOptions = "caps:super";
exportConfiguration = true; exportConfiguration = true;
videoDrivers = [ "amdgpu" ];
displayManager = { displayManager = {
# Give EXWM permission to control the session. # Give EXWM permission to control the session.
sessionCommands = "${nixpkgs.xorg.xhost}/bin/xhost +SI:localuser:$USER"; sessionCommands = "${nixpkgs.xorg.xhost}/bin/xhost +SI:localuser:$USER";