refactor(nixos): Only load exwm-randr on adho
Last attempt to at least work around https://github.com/ch11ng/exwm/issues/425 on one of my machines before reverting to an old EXWM version. If the randr module is responsible for this issue it will probably still occur on the laptop and I'll eventually downgrade, but it may be a clue for debugging it at some point in the future.
This commit is contained in:
		
							parent
							
								
									2e637433c1
								
							
						
					
					
						commit
						ac527952ce
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		|  | @ -43,7 +43,6 @@ | ||||||
|       (message "Running on NixOS, configuring ExWM.") |       (message "Running on NixOS, configuring ExWM.") | ||||||
|       (require 'exwm) |       (require 'exwm) | ||||||
|       (require 'exwm-config) |       (require 'exwm-config) | ||||||
|       (require 'exwm-randr) |  | ||||||
| 
 | 
 | ||||||
|       (fringe-mode 3) |       (fringe-mode 3) | ||||||
| 
 | 
 | ||||||
|  | @ -92,9 +91,11 @@ | ||||||
|       ;; Show time in the mode line |       ;; Show time in the mode line | ||||||
|       (display-time-mode) |       (display-time-mode) | ||||||
| 
 | 
 | ||||||
|       ;; Another attempt at xrandr configuration |       ;; Configure xrandr when running on laptop | ||||||
|  |       (when (equal (shell-command-to-string "hostname") "adho\n") | ||||||
|  |         (require 'exwm-randr) | ||||||
|         (setq exwm-randr-workspace-output-plist (generate-randr-config)) |         (setq exwm-randr-workspace-output-plist (generate-randr-config)) | ||||||
|       (exwm-randr-enable) |         (exwm-randr-enable)) | ||||||
| 
 | 
 | ||||||
|       ;; Let buffers move seamlessly between workspaces |       ;; Let buffers move seamlessly between workspaces | ||||||
|       (setq exwm-workspace-show-all-buffers t) |       (setq exwm-workspace-show-all-buffers t) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue