mirror of
				https://github.com/mitchell/dotfiles.git
				synced 2025-11-03 21:25:26 +00:00 
			
		
		
		
	Reconfigure m-laptop setup for multiple monitors
This commit is contained in:
		
							parent
							
								
									482a79654d
								
							
						
					
					
						commit
						01ba9c2dbf
					
				| 
						 | 
				
			
			@ -14,16 +14,18 @@ xfce4-screensaver &
 | 
			
		|||
~/.fehbg &
 | 
			
		||||
 | 
			
		||||
killall -q polybar barrier barrierc cbatticon pasystray
 | 
			
		||||
polybar m-bar &
 | 
			
		||||
MONITOR=eDP polybar m-bar-laptop &
 | 
			
		||||
MONITOR=DisplayPort-2 polybar m-bar &
 | 
			
		||||
cbatticon &
 | 
			
		||||
pasystray &
 | 
			
		||||
keepassxc &
 | 
			
		||||
 | 
			
		||||
bspc monitor -d I II III IV V VI VII
 | 
			
		||||
bspc monitor eDP -d I II III IV V
 | 
			
		||||
bspc monitor DisplayPort-2 -d I II III IV
 | 
			
		||||
 | 
			
		||||
bspc config border_width   2
 | 
			
		||||
bspc config window_gap     18
 | 
			
		||||
bspc config top_padding    -18
 | 
			
		||||
bspc config window_gap     14
 | 
			
		||||
bspc config top_padding    -14
 | 
			
		||||
 | 
			
		||||
bspc config split_ratio         0.52
 | 
			
		||||
bspc config borderless_monocle  false
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,7 +28,59 @@ secondary = #458588
 | 
			
		|||
alert = #cc241d
 | 
			
		||||
 | 
			
		||||
[bar/m-bar]
 | 
			
		||||
;monitor = ${env:MONITOR:HDMI-1}
 | 
			
		||||
monitor = ${env:MONITOR:DisplayPort-2}
 | 
			
		||||
width = 100%
 | 
			
		||||
height = 26
 | 
			
		||||
;offset-x = 1%
 | 
			
		||||
;offset-y = 1%
 | 
			
		||||
radius = 0.0
 | 
			
		||||
fixed-center = true
 | 
			
		||||
 | 
			
		||||
background = ${colors.background}
 | 
			
		||||
foreground = ${colors.foreground}
 | 
			
		||||
 | 
			
		||||
line-size = 3
 | 
			
		||||
line-color = #f00
 | 
			
		||||
 | 
			
		||||
border-size = 14
 | 
			
		||||
border-color = #00000000
 | 
			
		||||
 | 
			
		||||
padding-left = 0
 | 
			
		||||
padding-right = 0
 | 
			
		||||
 | 
			
		||||
module-margin-left = 0
 | 
			
		||||
module-margin-right = 2
 | 
			
		||||
 | 
			
		||||
font-0 = IBM Plex Sans:size=10;3
 | 
			
		||||
font-1 = JetBrains Mono:size=10;3
 | 
			
		||||
#font-2 = JetBrains Mono:pixelsize=10;1
 | 
			
		||||
#font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
 | 
			
		||||
#font-2 = siji:pixelsize=10;1
 | 
			
		||||
 | 
			
		||||
modules-left = bspwm
 | 
			
		||||
modules-center = xwindow
 | 
			
		||||
modules-right = pulseaudio cpu memory filesystem eth date xkeyboard powermenu
 | 
			
		||||
 | 
			
		||||
tray-position = right
 | 
			
		||||
tray-padding = 2
 | 
			
		||||
tray-background = ${colors.background}
 | 
			
		||||
 | 
			
		||||
wm-restack = bspwm
 | 
			
		||||
;wm-restack = i3
 | 
			
		||||
 | 
			
		||||
;override-redirect = true
 | 
			
		||||
 | 
			
		||||
scroll-up = bspwm-desknext
 | 
			
		||||
scroll-down = bspwm-deskprev
 | 
			
		||||
 | 
			
		||||
;scroll-up = i3wm-wsnext
 | 
			
		||||
;scroll-down = i3wm-wsprev
 | 
			
		||||
 | 
			
		||||
cursor-click = pointer
 | 
			
		||||
cursor-scroll = ns-resize
 | 
			
		||||
 | 
			
		||||
[bar/m-bar-laptop]
 | 
			
		||||
monitor = ${env:MONITOR:eDP}
 | 
			
		||||
width = 100%
 | 
			
		||||
height = 38
 | 
			
		||||
;offset-x = 1%
 | 
			
		||||
| 
						 | 
				
			
			@ -42,7 +94,7 @@ foreground = ${colors.foreground}
 | 
			
		|||
line-size = 3
 | 
			
		||||
line-color = #f00
 | 
			
		||||
 | 
			
		||||
border-size = 18
 | 
			
		||||
border-size = 14
 | 
			
		||||
border-color = #00000000
 | 
			
		||||
 | 
			
		||||
padding-left = 0
 | 
			
		||||
| 
						 | 
				
			
			@ -208,7 +260,7 @@ ramp-signal-foreground = ${colors.foreground-alt}
 | 
			
		|||
 | 
			
		||||
[module/eth]
 | 
			
		||||
type = internal/network
 | 
			
		||||
interface = enp125s0u1u4
 | 
			
		||||
interface = enp0s20f0u7c4i2
 | 
			
		||||
interval = 3.0
 | 
			
		||||
 | 
			
		||||
format-connected-underline = ${colors.secondary}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@ super + shift + Return
 | 
			
		|||
super + @space
 | 
			
		||||
	rofi -width 30 \
 | 
			
		||||
       -lines 10 \
 | 
			
		||||
       -font 'JetBrains Mono 15' \
 | 
			
		||||
       -font 'JetBrains Mono 13' \
 | 
			
		||||
       -location 2 \
 | 
			
		||||
       -yoffset 100 \
 | 
			
		||||
       -terminal kitty \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue