Merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
		
							
								
								
									
										11
									
								
								get_randr.pl
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								get_randr.pl
									
									
									
									
									
								
							| @@ -88,6 +88,7 @@ sub get_display_info { | |||||||
| # ----------- | # ----------- | ||||||
| sub get_wlr_line { | sub get_wlr_line { | ||||||
|     my ($app) = @_; |     my ($app) = @_; | ||||||
|  |     my $matching_disps; | ||||||
|  |  | ||||||
|     my $wlr_line = "UNKNOWN"; |     my $wlr_line = "UNKNOWN"; | ||||||
|  |  | ||||||
| @@ -100,7 +101,7 @@ sub get_wlr_line { | |||||||
|         # Determine setup (Custom) |         # Determine setup (Custom) | ||||||
|         # |         # | ||||||
|         #   - Den room (DELL 27" monitor on the left of laptop display) |         #   - Den room (DELL 27" monitor on the left of laptop display) | ||||||
|         my $matching_disps = has_display_with_name($app, "DELL U27"); |         $matching_disps = has_display_with_name($app, "DELL U27"); | ||||||
|         if (scalar (@{$matching_disps}) == 1) { |         if (scalar (@{$matching_disps}) == 1) { | ||||||
|             my ($h, $v) = get_display_current_dimensions($app, $matching_disps->[0]); |             my ($h, $v) = get_display_current_dimensions($app, $matching_disps->[0]); | ||||||
|             my $disp_name = $matching_disps->[0]->{'name'}; |             my $disp_name = $matching_disps->[0]->{'name'}; | ||||||
| @@ -125,6 +126,14 @@ sub get_wlr_line { | |||||||
|         show_debug("No displays?!"); |         show_debug("No displays?!"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     # Adjust scale on Apple pane. Assumes that above lines always put eDP-1 as the last display | ||||||
|  |     $matching_disps = has_display_with_name($app, "Apple Computer"); | ||||||
|  |     if (scalar (@{$matching_disps}) == 1) { | ||||||
|  |         show_debug("Scaling Apple MacBook Pro display"); | ||||||
|  |  | ||||||
|  |         $wlr_line .= " --scale 1.5"; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     return $wlr_line; |     return $wlr_line; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -57,7 +57,7 @@ function pgrep () { | |||||||
| } | } | ||||||
|  |  | ||||||
| function start_tmux () { | function start_tmux () { | ||||||
|   TERM=screen-256color tmux new -A -s DevEnv |   TERM=screen-256color tmux -u new -A -s DevEnv | ||||||
| } | } | ||||||
|  |  | ||||||
| function start_gitui() { | function start_gitui() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user