@ -9,17 +9,642 @@
package = pkgs . niri ;
enable = true ;
#xwayland.enable = true;
# config = ''
# binds {
# Super+Return { spawn "kitty"; }
# Super+Space { spawn "fuzzel"; }
# Super+Q { close-window; }
# Super+Left { focus-column-left; }
# Super+Right { focus-column-right; }
# Super+Up { focus-workspace-up; }
# Super+Down { focus-workspace-down; }
# Super+L { spawn "hyprlock"; }
# Super+Shift+E { "quit"; }
# }
# '';
config = ''
/ / T h i s c o n f i g i s i n t h e K D L f o r m a t : h t t p s : / / k d l . d e v
/ / " / - " c o m m e n t s o u t t h e f o l l o w i n g n o d e .
/ / C h e c k t h e w i k i f o r a f u l l d e s c r i p t i o n o f t h e c o n f i g u r a t i o n :
/ / h t t p s : / / y a l t e r . g i t h u b . i o / n i r i / C o n f i g u r a t i o n : - I n t r o d u c t i o n
/ / I n p u t d e v i c e c o n f i g u r a t i o n .
/ / F i n d t h e f u l l l i s t o f o p t i o n s o n t h e w i k i :
/ / h t t p s : / / y a l t e r . g i t h u b . i o / n i r i / C o n f i g u r a t i o n : - I n p u t
i n p u t {
k e y b o a r d {
x k b {
/ / Y o u c a n s e t r u l e s , m o d e l , l a y o u t , v a r i a n t a n d o p t i o n s .
/ / F o r m o r e i n f o r m a t i o n , s e e x k e y b o a r d - c o n f i g ( 7 ) .
/ / F o r e x a m p l e :
/ / l a y o u t " u s , r u "
/ / o p t i o n s " g r p : w i n _ s p a c e _ t o g g l e , c o m p o s e : r a l t , c t r l : n o c a p s "
/ / I f t h i s s e c t i o n i s e m p t y , n i r i w i l l f e t c h x k b s e t t i n g s
/ / f r o m o r g . f r e e d e s k t o p . l o c a l e 1 . Y o u c a n c o n t r o l t h e s e u s i n g
/ / l o c a l e c t l s e t - x 1 1 - k e y m a p .
}
/ / E n a b l e n u m l o c k o n s t a r t u p , o m i t t i n g t h i s s e t t i n g d i s a b l e s i t .
n u m l o c k
}
/ / N e x t s e c t i o n s i n c l u d e l i b i n p u t s e t t i n g s .
/ / O m i t t i n g s e t t i n g s d i s a b l e s t h e m , o r l e a v e s t h e m a t t h e i r d e f a u l t v a l u e s .
/ / A l l c o m m e n t e d - o u t s e t t i n g s h e r e a r e e x a m p l e s , n o t d e f a u l t s .
t o u c h p a d {
/ / o f f
t a p
/ / d w t
/ / d w t p
/ / d r a g f a l s e
/ / d r a g - l o c k
n a t u r a l - s c r o l l
/ / a c c e l - s p e e d 0 . 2
/ / a c c e l - p r o f i l e " f l a t "
/ / s c r o l l - m e t h o d " t w o - f i n g e r "
/ / d i s a b l e d - o n - e x t e r n a l - m o u s e
}
m o u s e {
/ / o f f
/ / n a t u r a l - s c r o l l
/ / a c c e l - s p e e d 0 . 2
/ / a c c e l - p r o f i l e " f l a t "
/ / s c r o l l - m e t h o d " n o - s c r o l l "
}
t r a c k p o i n t {
/ / o f f
/ / n a t u r a l - s c r o l l
/ / a c c e l - s p e e d 0 . 2
/ / a c c e l - p r o f i l e " f l a t "
/ / s c r o l l - m e t h o d " o n - b u t t o n - d o w n "
/ / s c r o l l - b u t t o n 2 7 3
/ / s c r o l l - b u t t o n - l o c k
/ / m i d d l e - e m u l a t i o n
}
/ / U n c o m m e n t t h i s t o m a k e t h e m o u s e w a r p t o t h e c e n t e r o f n e w l y f o c u s e d w i n d o w s .
/ / w a r p - m o u s e - t o - f o c u s
/ / F o c u s w i n d o w s a n d o u t p u t s a u t o m a t i c a l l y w h e n m o v i n g t h e m o u s e i n t o t h e m .
/ / S e t t i n g m a x - s c r o l l - a m o u n t = " 0 % " m a k e s i t w o r k o n l y o n w i n d o w s a l r e a d y f u l l y o n s c r e e n .
/ / f o c u s - f o l l o w s - m o u s e m a x - s c r o l l - a m o u n t = " 0 % "
}
/ / Y o u c a n c o n f i g u r e o u t p u t s b y t h e i r n a m e , w h i c h y o u c a n f i n d
/ / b y r u n n i n g ` n i r i m s g o u t p u t s ` w h i l e i n s i d e a n i r i i n s t a n c e .
/ / T h e b u i l t - i n l a p t o p m o n i t o r i s u s u a l l y c a l l e d " e D P - 1 " .
/ / F i n d m o r e i n f o r m a t i o n o n t h e w i k i :
/ / h t t p s : / / y a l t e r . g i t h u b . i o / n i r i / C o n f i g u r a t i o n : - O u t p u t s
/ / R e m e m b e r t o u n c o m m e n t t h e n o d e b y r e m o v i n g " / - " !
/ - o u t p u t " e D P - 1 " {
/ / U n c o m m e n t t h i s l i n e t o d i s a b l e t h i s o u t p u t .
/ / o f f
/ / R e s o l u t i o n a n d , o p t i o n a l l y , r e f r e s h r a t e o f t h e o u t p u t .
/ / T h e f o r m a t i s " < w i d t h > x < h e i g h t > " o r " < w i d t h > x < h e i g h t > @ < r e f r e s h r a t e > " .
/ / I f t h e r e f r e s h r a t e i s o m i t t e d , n i r i w i l l p i c k t h e h i g h e s t r e f r e s h r a t e
/ / f o r t h e r e s o l u t i o n .
/ / I f t h e m o d e i s o m i t t e d a l t o g e t h e r o r i s i n v a l i d , n i r i w i l l p i c k o n e a u t o m a t i c a l l y .
/ / R u n ` n i r i m s g o u t p u t s ` w h i l e i n s i d e a n i r i i n s t a n c e t o l i s t a l l o u t p u t s a n d t h e i r m o d e s .
m o d e " 1 9 2 0 x 1 0 8 0 @ 1 2 0 . 0 3 0 "
/ / Y o u c a n u s e i n t e g e r o r f r a c t i o n a l s c a l e , f o r e x a m p l e u s e 1 . 5 f o r 1 5 0 % s c a l e .
s c a l e 2
/ / T r a n s f o r m a l l o w s t o r o t a t e t h e o u t p u t c o u n t e r - c l o c k w i s e , v a l i d v a l u e s a r e :
/ / n o r m a l , 9 0 , 1 8 0 , 2 7 0 , f l i p p e d , f l i p p e d - 9 0 , f l i p p e d - 1 8 0 a n d f l i p p e d - 2 7 0 .
t r a n s f o r m " n o r m a l "
/ / P o s i t i o n o f t h e o u t p u t i n t h e g l o b a l c o o r d i n a t e s p a c e .
/ / T h i s a f f e c t s d i r e c t i o n a l m o n i t o r a c t i o n s l i k e " f o c u s - m o n i t o r - l e f t " , a n d c u r s o r m o v e m e n t .
/ / T h e c u r s o r c a n o n l y m o v e b e t w e e n d i r e c t l y a d j a c e n t o u t p u t s .
/ / O u t p u t s c a l e a n d r o t a t i o n h a s t o b e t a k e n i n t o a c c o u n t f o r p o s i t i o n i n g :
/ / o u t p u t s a r e s i z e d i n l o g i c a l , o r s c a l e d , p i x e l s .
/ / F o r e x a m p l e , a 3 8 4 0 × 2 1 6 0 o u t p u t w i t h s c a l e 2 . 0 w i l l h a v e a l o g i c a l s i z e o f 1 9 2 0 × 1 0 8 0 ,
/ / s o t o p u t a n o t h e r o u t p u t d i r e c t l y a d j a c e n t t o i t o n t h e r i g h t , s e t i t s x t o 1 9 2 0 .
/ / I f t h e p o s i t i o n i s u n s e t o r r e s u l t s i n a n o v e r l a p , t h e o u t p u t i s i n s t e a d p l a c e d
/ / a u t o m a t i c a l l y .
p o s i t i o n x = 1 2 8 0 y = 0
}
/ / S e t t i n g s t h a t i n f l u e n c e h o w w i n d o w s a r e p o s i t i o n e d a n d s i z e d .
/ / F i n d m o r e i n f o r m a t i o n o n t h e w i k i :
/ / h t t p s : / / y a l t e r . g i t h u b . i o / n i r i / C o n f i g u r a t i o n : - L a y o u t
l a y o u t {
/ / S e t g a p s a r o u n d w i n d o w s i n l o g i c a l p i x e l s .
g a p s 1 6
/ / W h e n t o c e n t e r a c o l u m n w h e n c h a n g i n g f o c u s , o p t i o n s a r e :
/ / - " n e v e r " , d e f a u l t b e h a v i o r , f o c u s i n g a n o f f - s c r e e n c o l u m n w i l l k e e p a t t h e l e f t
/ / o r r i g h t e d g e o f t h e s c r e e n .
/ / - " a l w a y s " , t h e f o c u s e d c o l u m n w i l l a l w a y s b e c e n t e r e d .
/ / - " o n - o v e r f l o w " , f o c u s i n g a c o l u m n w i l l c e n t e r i t i f i t d o e s n ' t f i t
/ / t o g e t h e r w i t h t h e p r e v i o u s l y f o c u s e d c o l u m n .
c e n t e r - f o c u s e d - c o l u m n " n e v e r "
/ / Y o u c a n c u s t o m i z e t h e w i d t h s t h a t " s w i t c h - p r e s e t - c o l u m n - w i d t h " ( M o d + R ) t o g g l e s b e t w e e n .
p r e s e t - c o l u m n - w i d t h s {
/ / P r o p o r t i o n s e t s t h e w i d t h a s a f r a c t i o n o f t h e o u t p u t w i d t h , t a k i n g g a p s i n t o a c c o u n t .
/ / F o r e x a m p l e , y o u c a n p e r f e c t l y f i t f o u r w i n d o w s s i z e d " p r o p o r t i o n 0 . 2 5 " o n a n o u t p u t .
/ / T h e d e f a u l t p r e s e t w i d t h s a r e 1 / 3 , 1 / 2 a n d 2 / 3 o f t h e o u t p u t .
p r o p o r t i o n 0 . 3 3 3 3 3
p r o p o r t i o n 0 . 5
p r o p o r t i o n 0 . 6 6 6 6 7
/ / F i x e d s e t s t h e w i d t h i n l o g i c a l p i x e l s e x a c t l y .
/ / f i x e d 1 9 2 0
}
/ / Y o u c a n a l s o c u s t o m i z e t h e h e i g h t s t h a t " s w i t c h - p r e s e t - w i n d o w - h e i g h t " ( M o d + S h i f t + R ) t o g g l e s b e t w e e n .
/ / p r e s e t - w i n d o w - h e i g h t s { }
/ / Y o u c a n c h a n g e t h e d e f a u l t w i d t h o f t h e n e w w i n d o w s .
d e f a u l t - c o l u m n - w i d t h { p r o p o r t i o n 0 . 5 ; }
/ / I f y o u l e a v e t h e b r a c k e t s e m p t y , t h e w i n d o w s t h e m s e l v e s w i l l d e c i d e t h e i r i n i t i a l w i d t h .
/ / d e f a u l t - c o l u m n - w i d t h { }
/ / B y d e f a u l t f o c u s r i n g a n d b o r d e r a r e r e n d e r e d a s a s o l i d b a c k g r o u n d r e c t a n g l e
/ / b e h i n d w i n d o w s . T h a t i s , t h e y w i l l s h o w u p t h r o u g h s e m i t r a n s p a r e n t w i n d o w s .
/ / T h i s i s b e c a u s e w i n d o w s u s i n g c l i e n t - s i d e d e c o r a t i o n s c a n h a v e a n a r b i t r a r y s h a p e .
/ /
/ / I f y o u d o n ' t l i k e t h a t , y o u s h o u l d u n c o m m e n t ` p r e f e r - n o - c s d ` b e l o w .
/ / N i r i w i l l d r a w f o c u s r i n g a n d b o r d e r * a r o u n d * w i n d o w s t h a t a g r e e t o o m i t t h e i r
/ / c l i e n t - s i d e d e c o r a t i o n s .
/ /
/ / A l t e r n a t i v e l y , y o u c a n o v e r r i d e i t w i t h a w i n d o w r u l e c a l l e d
/ / ` d r a w - b o r d e r - w i t h - b a c k g r o u n d ` .
/ / Y o u c a n c h a n g e h o w t h e f o c u s r i n g l o o k s .
f o c u s - r i n g {
/ / U n c o m m e n t t h i s l i n e t o d i s a b l e t h e f o c u s r i n g .
/ / o f f
/ / H o w m a n y l o g i c a l p i x e l s t h e r i n g e x t e n d s o u t f r o m t h e w i n d o w s .
w i d t h 4
/ / C o l o r s c a n b e s e t i n a v a r i e t y o f w a y s :
/ / - C S S n a m e d c o l o r s : " r e d "
/ / - R G B h e x : " # r g b " , " # r g b a " , " # r r g g b b " , " # r r g g b b a a "
/ / - C S S - l i k e n o t a t i o n : " r g b ( 2 5 5 , 1 2 7 , 0 ) " , r g b a ( ) , h s l ( ) a n d a f e w o t h e r s .
/ / C o l o r o f t h e r i n g o n t h e a c t i v e m o n i t o r .
a c t i v e - c o l o r " # 7 f c 8 f f "
/ / C o l o r o f t h e r i n g o n i n a c t i v e m o n i t o r s .
/ /
/ / T h e f o c u s r i n g o n l y d r a w s a r o u n d t h e a c t i v e w i n d o w , s o t h e o n l y p l a c e
/ / w h e r e y o u c a n s e e i t s i n a c t i v e - c o l o r i s o n o t h e r m o n i t o r s .
i n a c t i v e - c o l o r " # 5 0 5 0 5 0 "
/ / Y o u c a n a l s o u s e g r a d i e n t s . T h e y t a k e p r e c e d e n c e o v e r s o l i d c o l o r s .
/ / G r a d i e n t s a r e r e n d e r e d t h e s a m e a s C S S l i n e a r - g r a d i e n t ( a n g l e , f r o m , t o ) .
/ / T h e a n g l e i s t h e s a m e a s i n l i n e a r - g r a d i e n t , a n d i s o p t i o n a l ,
/ / d e f a u l t i n g t o 1 8 0 ( t o p - t o - b o t t o m g r a d i e n t ) .
/ / Y o u c a n u s e a n y C S S l i n e a r - g r a d i e n t t o o l o n t h e w e b t o s e t t h e s e u p .
/ / C h a n g i n g t h e c o l o r s p a c e i s a l s o s u p p o r t e d , c h e c k t h e w i k i f o r m o r e i n f o .
/ /
/ / a c t i v e - g r a d i e n t f r o m = " # 8 0 c 8 f f " t o = " # c 7 f f 7 f " a n g l e = 4 5
/ / Y o u c a n a l s o c o l o r t h e g r a d i e n t r e l a t i v e t o t h e e n t i r e v i e w
/ / o f t h e w o r k s p a c e , r a t h e r t h a n r e l a t i v e t o j u s t t h e w i n d o w i t s e l f .
/ / T o d o t h a t , s e t r e l a t i v e - t o = " w o r k s p a c e - v i e w " .
/ /
/ / i n a c t i v e - g r a d i e n t f r o m = " # 5 0 5 0 5 0 " t o = " # 8 0 8 0 8 0 " a n g l e = 4 5 r e l a t i v e - t o = " w o r k s p a c e - v i e w "
}
/ / Y o u c a n a l s o a d d a b o r d e r . I t ' s s i m i l a r t o t h e f o c u s r i n g , b u t a l w a y s v i s i b l e .
b o r d e r {
/ / T h e s e t t i n g s a r e t h e s a m e a s f o r t h e f o c u s r i n g .
/ / I f y o u e n a b l e t h e b o r d e r , y o u p r o b a b l y w a n t t o d i s a b l e t h e f o c u s r i n g .
o f f
w i d t h 4
a c t i v e - c o l o r " # f f c 8 7 f "
i n a c t i v e - c o l o r " # 5 0 5 0 5 0 "
/ / C o l o r o f t h e b o r d e r a r o u n d w i n d o w s t h a t r e q u e s t y o u r a t t e n t i o n .
u r g e n t - c o l o r " # 9 b 0 0 0 0 "
/ / G r a d i e n t s c a n u s e a f e w d i f f e r e n t i n t e r p o l a t i o n c o l o r s p a c e s .
/ / F o r e x a m p l e , t h i s i s a p a s t e l r a i n b o w g r a d i e n t v i a i n = " o k l c h l o n g e r h u e " .
/ /
/ / a c t i v e - g r a d i e n t f r o m = " # e 5 9 8 9 b " t o = " # f f b 4 a 2 " a n g l e = 4 5 r e l a t i v e - t o = " w o r k s p a c e - v i e w " i n = " o k l c h l o n g e r h u e "
/ / i n a c t i v e - g r a d i e n t f r o m = " # 5 0 5 0 5 0 " t o = " # 8 0 8 0 8 0 " a n g l e = 4 5 r e l a t i v e - t o = " w o r k s p a c e - v i e w "
}
/ / Y o u c a n e n a b l e d r o p s h a d o w s f o r w i n d o w s .
s h a d o w {
/ / U n c o m m e n t t h e n e x t l i n e t o e n a b l e s h a d o w s .
/ / o n
/ / B y d e f a u l t , t h e s h a d o w d r a w s o n l y a r o u n d i t s w i n d o w , a n d n o t b e h i n d i t .
/ / U n c o m m e n t t h i s s e t t i n g t o m a k e t h e s h a d o w d r a w b e h i n d i t s w i n d o w .
/ /
/ / N o t e t h a t n i r i h a s n o w a y o f k n o w i n g a b o u t t h e C S D w i n d o w c o r n e r
/ / r a d i u s . I t h a s t o a s s u m e t h a t w i n d o w s h a v e s q u a r e c o r n e r s , l e a d i n g t o
/ / s h a d o w a r t i f a c t s i n s i d e t h e C S D r o u n d e d c o r n e r s . T h i s s e t t i n g f i x e s
/ / t h o s e a r t i f a c t s .
/ /
/ / H o w e v e r , i n s t e a d y o u m a y w a n t t o s e t p r e f e r - n o - c s d a n d / o r
/ / g e o m e t r y - c o r n e r - r a d i u s . T h e n , n i r i w i l l k n o w t h e c o r n e r r a d i u s a n d
/ / d r a w t h e s h a d o w c o r r e c t l y , w i t h o u t h a v i n g t o d r a w i t b e h i n d t h e
/ / w i n d o w . T h e s e w i l l a l s o r e m o v e c l i e n t - s i d e s h a d o w s i f t h e w i n d o w
/ / d r a w s a n y .
/ /
/ / d r a w - b e h i n d - w i n d o w t r u e
/ / Y o u c a n c h a n g e h o w s h a d o w s l o o k . T h e v a l u e s b e l o w a r e i n l o g i c a l
/ / p i x e l s a n d m a t c h t h e C S S b o x - s h a d o w p r o p e r t i e s .
/ / S o f t n e s s c o n t r o l s t h e s h a d o w b l u r r a d i u s .
s o f t n e s s 3 0
/ / S p r e a d e x p a n d s t h e s h a d o w .
s p r e a d 5
/ / O f f s e t m o v e s t h e s h a d o w r e l a t i v e t o t h e w i n d o w .
o f f s e t x = 0 y = 5
/ / Y o u c a n a l s o c h a n g e t h e s h a d o w c o l o r a n d o p a c i t y .
c o l o r " # 0 0 0 7 "
}
/ / S t r u t s s h r i n k t h e a r e a o c c u p i e d b y w i n d o w s , s i m i l a r l y t o l a y e r - s h e l l p a n e l s .
/ / Y o u c a n t h i n k o f t h e m a s a k i n d o f o u t e r g a p s . T h e y a r e s e t i n l o g i c a l p i x e l s .
/ / L e f t a n d r i g h t s t r u t s w i l l c a u s e t h e n e x t w i n d o w t o t h e s i d e t o a l w a y s b e v i s i b l e .
/ / T o p a n d b o t t o m s t r u t s w i l l s i m p l y a d d o u t e r g a p s i n a d d i t i o n t o t h e a r e a o c c u p i e d b y
/ / l a y e r - s h e l l p a n e l s a n d r e g u l a r g a p s .
s t r u t s {
/ / l e f t 6 4
/ / r i g h t 6 4
/ / t o p 6 4
/ / b o t t o m 6 4
}
}
/ / A d d l i n e s l i k e t h i s t o s p a w n p r o c e s s e s a t s t a r t u p .
/ / N o t e t h a t r u n n i n g n i r i a s a s e s s i o n s u p p o r t s x d g - d e s k t o p - a u t o s t a r t ,
/ / w h i c h m a y b e m o r e c o n v e n i e n t t o u s e .
/ / S e e t h e b i n d s s e c t i o n b e l o w f o r m o r e s p a w n e x a m p l e s .
/ / T h i s l i n e s t a r t s w a y b a r , a c o m m o n l y u s e d b a r f o r W a y l a n d c o m p o s i t o r s .
s p a w n - a t - s t a r t u p " w a y b a r "
/ / T o r u n a s h e l l c o m m a n d ( w i t h v a r i a b l e s , p i p e s , e t c . ) , u s e s p a w n - s h - a t - s t a r t u p :
/ / s p a w n - s h - a t - s t a r t u p " q s - c ~ / s o u r c e / q s / M y A w e s o m e S h e l l "
h o t k e y - o v e r l a y {
/ / U n c o m m e n t t h i s l i n e t o d i s a b l e t h e " I m p o r t a n t H o t k e y s " p o p - u p a t s t a r t u p .
/ / s k i p - a t - s t a r t u p
}
/ / U n c o m m e n t t h i s l i n e t o a s k t h e c l i e n t s t o o m i t t h e i r c l i e n t - s i d e d e c o r a t i o n s i f p o s s i b l e .
/ / I f t h e c l i e n t w i l l s p e c i f i c a l l y a s k f o r C S D , t h e r e q u e s t w i l l b e h o n o r e d .
/ / A d d i t i o n a l l y , c l i e n t s w i l l b e i n f o r m e d t h a t t h e y a r e t i l e d , r e m o v i n g s o m e c l i e n t - s i d e r o u n d e d c o r n e r s .
/ / T h i s o p t i o n w i l l a l s o f i x b o r d e r / f o c u s r i n g d r a w i n g b e h i n d s o m e s e m i t r a n s p a r e n t w i n d o w s .
/ / A f t e r e n a b l i n g o r d i s a b l i n g t h i s , y o u n e e d t o r e s t a r t t h e a p p s f o r t h i s t o t a k e e f f e c t .
/ / p r e f e r - n o - c s d
/ / Y o u c a n c h a n g e t h e p a t h w h e r e s c r e e n s h o t s a r e s a v e d .
/ / A ~ a t t h e f r o n t w i l l b e e x p a n d e d t o t h e h o m e d i r e c t o r y .
/ / T h e p a t h i s f o r m a t t e d w i t h s t r f t i m e ( 3 ) t o g i v e y o u t h e s c r e e n s h o t d a t e a n d t i m e .
s c r e e n s h o t - p a t h " ~ / P i c t u r e s / S c r e e n s h o t s / S c r e e n s h o t f r o m % Y - % m - % d % H - % M - % S . p n g "
/ / Y o u c a n a l s o s e t t h i s t o n u l l t o d i s a b l e s a v i n g s c r e e n s h o t s t o d i s k .
/ / s c r e e n s h o t - p a t h n u l l
/ / A n i m a t i o n s e t t i n g s .
/ / T h e w i k i e x p l a i n s h o w t o c o n f i g u r e i n d i v i d u a l a n i m a t i o n s :
/ / h t t p s : / / y a l t e r . g i t h u b . i o / n i r i / C o n f i g u r a t i o n : - A n i m a t i o n s
a n i m a t i o n s {
/ / U n c o m m e n t t o t u r n o f f a l l a n i m a t i o n s .
/ / o f f
/ / S l o w d o w n a l l a n i m a t i o n s b y t h i s f a c t o r . V a l u e s b e l o w 1 s p e e d t h e m u p i n s t e a d .
/ / s l o w d o w n 3 . 0
}
/ / W i n d o w r u l e s l e t y o u a d j u s t b e h a v i o r f o r i n d i v i d u a l w i n d o w s .
/ / F i n d m o r e i n f o r m a t i o n o n t h e w i k i :
/ / h t t p s : / / y a l t e r . g i t h u b . i o / n i r i / C o n f i g u r a t i o n : - W i n d o w - R u l e s
/ / W o r k a r o u n d W e z T e r m ' s i n i t i a l c o n f i g u r e b u g
/ / b y s e t t i n g a n e m p t y d e f a u l t - c o l u m n - w i d t h .
w i n d o w - r u l e {
/ / T h i s r e g u l a r e x p r e s s i o n i s i n t e n t i o n a l l y m a d e a s s p e c i f i c a s p o s s i b l e ,
/ / s i n c e t h i s i s t h e d e f a u l t c o n f i g , a n d w e w a n t n o f a l s e p o s i t i v e s .
/ / Y o u c a n g e t a w a y w i t h j u s t a p p - i d = " w e z t e r m " i f y o u w a n t .
m a t c h a p p - i d = r # " ^ o r g \ . w e z f u r l o n g \ . w e z t e r m $" #
d e f a u l t - c o l u m n - w i d t h { }
}
/ / O p e n t h e F i r e f o x p i c t u r e - i n - p i c t u r e p l a y e r a s f l o a t i n g b y d e f a u l t .
w i n d o w - r u l e {
/ / T h i s a p p - i d r e g u l a r e x p r e s s i o n w i l l w o r k f o r b o t h :
/ / - h o s t F i r e f o x ( a p p - i d i s " f i r e f o x " )
/ / - F l a t p a k F i r e f o x ( a p p - i d i s " o r g . m o z i l l a . f i r e f o x " )
m a t c h a p p - i d = r # " f i r e f o x $" # t i t l e = " ^ P i c t u r e - i n - P i c t u r e $"
o p e n - f l o a t i n g t r u e
}
/ / E x a m p l e : b l o c k o u t t w o p a s s w o r d m a n a g e r s f r o m s c r e e n c a p t u r e .
/ / ( T h i s e x a m p l e r u l e i s c o m m e n t e d o u t w i t h a " / - " i n f r o n t . )
/ - w i n d o w - r u l e {
m a t c h a p p - i d = r # " ^ o r g \ . k e e p a s s x c \ . K e e P a s s X C $" #
m a t c h a p p - i d = r # " ^ o r g \ . g n o m e \ . W o r l d \ . S e c r e t s $" #
b l o c k - o u t - f r o m " s c r e e n - c a p t u r e "
/ / U s e t h i s i n s t e a d i f y o u w a n t t h e m v i s i b l e o n t h i r d - p a r t y s c r e e n s h o t t o o l s .
/ / b l o c k - o u t - f r o m " s c r e e n c a s t "
}
/ / E x a m p l e : e n a b l e r o u n d e d c o r n e r s f o r a l l w i n d o w s .
/ / ( T h i s e x a m p l e r u l e i s c o m m e n t e d o u t w i t h a " / - " i n f r o n t . )
/ - w i n d o w - r u l e {
g e o m e t r y - c o r n e r - r a d i u s 1 2
c l i p - t o - g e o m e t r y t r u e
}
b i n d s {
S u p e r + R e t u r n { s p a w n " k i t t y " ; }
S u p e r + S p a c e { s p a w n " f u z z e l " ; }
S u p e r + Q { c lo s e - w i n d o w ; }
S u p e r + L e f t { f o c u s - c o l u m n - l e f t ; }
S u p e r + R i g h t { f o c u s - c o l u m n - r i g h t ; }
S u p e r + U p { f o c u s - w o r k s p a c e - u p ; }
S u p e r + D o w n { f o c u s - w o r k s p a c e - d o w n ; }
S u p e r + L { s p a w n " h y p r l o c k " ; }
S u p e r + S h i f t + E { " q u i t " ; }
/ / K e y s c o n s i s t o f m o d i f i e r s s e p a r a te d b y + s i g n s , f o l l o w e d b y a n X K B k e y n a m e
/ / i n t h e e n d . T o f i n d a n X K B n a m e f o r a p a r t i c u l a r k e y , y o u m a y u s e a p r o g r a m
/ / l i k e w e v .
/ /
/ / " M o d " i s a s p e c i a l m o d i f i e r e q u a l t o S u p e r w h e n r u n n i n g o n a T T Y , a n d t o A l t
/ / w h e n r u n n i n g a s a w i n i t w i n d o w .
/ /
/ / M o s t a c t i o n s t h a t y o u c a n b i n d h e r e c a n a l s o b e i n v o k e d p r o g r a m m a t i c a l l y w i t h
/ / ` n i r i m s g a c t i o n d o - s o m e t h i n g ` .
/ / M o d - S h i f t - / , w h i c h i s u s u a l l y t h e s a m e a s M o d - ? ,
/ / s h o w s a l i s t o f i m p o r t a n t h o t k e y s .
M o d + S h i f t + S l a s h { s h o w - h o t k e y - o v e r l a y ; }
/ / S u g g e s t e d b i n d s f o r r u n n i n g p r o g r a m s : t e r m i n a l , a p p l a u n c h e r , s c r e e n l o c k e r .
M o d + T h o t k e y - o v e r l a y - t i t l e = " O p e n a T e r m i n a l : k i t t y " { s p a w n " k i t t y " ; }
M o d + D h o t k e y - o v e r l a y - t i t l e = " R u n a n A p p l i c a t i o n : f u z z e l " { s p a w n " f u z z e l " ; }
S u p e r + A l t + L h o t k e y - o v e r l a y - t i t l e = " L o c k t h e S c r e e n : h y p r l o c k " { s p a w n " h y r p l o c k " ; }
/ / U s e s p a w n - s h t o r u n a s h e l l c o m m a n d . D o t h i s i f y o u n e e d p i p e s , m u l t i p l e c o m m a n d s , e t c .
/ / N o t e : t h e e n t i r e c o m m a n d g o e s a s a s i n g l e a r g u m e n t . I t ' s p a s s e d v e r b a t i m t o ` s h - c ` .
/ / F o r e x a m p l e , t h i s i s a s t a n d a r d b i n d t o t o g g l e t h e s c r e e n r e a d e r ( o r c a ) .
S u p e r + A l t + S a l l o w - w h e n - l o c k e d = t r u e h o t k e y - o v e r l a y - t i t l e = n u l l { s p a w n - s h " p k i l l o r c a | | e x e c o r c a " ; }
/ / E x a m p l e v o l u m e k e y s m a p p i n g s f o r P i p e W i r e & W i r e P l u m b e r .
/ / T h e a l l o w - w h e n - l o c k e d = t r u e p r o p e r t y m a k e s t h e m w o r k e v e n w h e n t h e s e s s i o n i s l o c k e d .
/ / U s i n g s p a w n - s h a l l o w s t o p a s s m u l t i p l e a r g u m e n t s t o g e t h e r w i t h t h e c o m m a n d .
/ / " - l 1 . 0 " l i m i t s t h e v o l u m e t o 1 0 0 % .
X F 8 6 A u d i o R a i s e V o l u m e a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " w p c t l s e t - v o l u m e @ D E F A U L T _ A U D I O _ S I N K @ 0 . 1 + - l 1 . 0 " ; }
X F 8 6 A u d i o L o w e r V o l u m e a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " w p c t l s e t - v o l u m e @ D E F A U L T _ A U D I O _ S I N K @ 0 . 1 - " ; }
X F 8 6 A u d i o M u t e a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " w p c t l s e t - m u t e @ D E F A U L T _ A U D I O _ S I N K @ t o g g l e " ; }
X F 8 6 A u d i o M i c M u t e a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " w p c t l s e t - m u t e @ D E F A U L T _ A U D I O _ S O U R C E @ t o g g l e " ; }
/ / E x a m p l e m e d i a k e y s m a p p i n g u s i n g p l a y e r c t l .
/ / T h i s w i l l w o r k w i t h a n y M P R I S - e n a b l e d m e d i a p l a y e r .
X F 8 6 A u d i o P l a y a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " p l a y e r c t l p l a y - p a u s e " ; }
X F 8 6 A u d i o S t o p a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " p l a y e r c t l s t o p " ; }
X F 8 6 A u d i o P r e v a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " p l a y e r c t l p r e v i o u s " ; }
X F 8 6 A u d i o N e x t a l l o w - w h e n - l o c k e d = t r u e { s p a w n - s h " p l a y e r c t l n e x t " ; }
/ / E x a m p l e b r i g h t n e s s k e y m a p p i n g s f o r b r i g h t n e s s c t l .
/ / Y o u c a n u s e r e g u l a r s p a w n w i t h m u l t i p l e a r g u m e n t s t o o ( t o a v o i d g o i n g t h r o u g h " s h " ) ,
/ / b u t y o u n e e d t o m a n u a l l y p u t e a c h a r g u m e n t i n s e p a r a t e " " q u o t e s .
X F 8 6 M o n B r i g h t n e s s U p a l l o w - w h e n - l o c k e d = t r u e { s p a w n " b r i g h t n e s s c t l " " - - c l a s s = b a c k l i g h t " " s e t " " + 1 0 % " ; }
X F 8 6 M o n B r i g h t n e s s D o w n a l l o w - w h e n - l o c k e d = t r u e { s p a w n " b r i g h t n e s s c t l " " - - c l a s s = b a c k l i g h t " " s e t " " 1 0 % - " ; }
/ / O p e n / c l o s e t h e O v e r v i e w : a z o o m e d - o u t v i e w o f w o r k s p a c e s a n d w i n d o w s .
/ / Y o u c a n a l s o m o v e t h e m o u s e i n t o t h e t o p - l e f t h o t c o r n e r ,
/ / o r d o a f o u r - f i n g e r s w i p e u p o n a t o u c h p a d .
M o d + O r e p e a t = f a l s e { t o g g l e - o v e r v i e w ; }
M o d + Q r e p e a t = f a l s e { c l o s e - w i n d o w ; }
M o d + L e f t { f o c u s - c o l u m n - l e f t ; }
M o d + D o w n { f o c u s - w i n d o w - d o w n ; }
M o d + U p { f o c u s - w i n d o w - u p ; }
M o d + R i g h t { f o c u s - c o l u m n - r i g h t ; }
M o d + H { f o c u s - c o l u m n - l e f t ; }
M o d + J { f o c u s - w i n d o w - d o w n ; }
M o d + K { f o c u s - w i n d o w - u p ; }
M o d + L { f o c u s - c o l u m n - r i g h t ; }
M o d + C t r l + L e f t { m o v e - c o l u m n - l e f t ; }
M o d + C t r l + D o w n { m o v e - w i n d o w - d o w n ; }
M o d + C t r l + U p { m o v e - w i n d o w - u p ; }
M o d + C t r l + R i g h t { m o v e - c o l u m n - r i g h t ; }
M o d + C t r l + H { m o v e - c o l u m n - l e f t ; }
M o d + C t r l + J { m o v e - w i n d o w - d o w n ; }
M o d + C t r l + K { m o v e - w i n d o w - u p ; }
M o d + C t r l + L { m o v e - c o l u m n - r i g h t ; }
/ / A l t e r n a t i v e c o m m a n d s t h a t m o v e a c r o s s w o r k s p a c e s w h e n r e a c h i n g
/ / t h e f i r s t o r l a s t w i n d o w i n a c o l u m n .
/ / M o d + J { f o c u s - w i n d o w - o r - w o r k s p a c e - d o w n ; }
/ / M o d + K { f o c u s - w i n d o w - o r - w o r k s p a c e - u p ; }
/ / M o d + C t r l + J { m o v e - w i n d o w - d o w n - o r - t o - w o r k s p a c e - d o w n ; }
/ / M o d + C t r l + K { m o v e - w i n d o w - u p - o r - t o - w o r k s p a c e - u p ; }
M o d + H o m e { f o c u s - c o l u m n - f i r s t ; }
M o d + E n d { f o c u s - c o l u m n - l a s t ; }
M o d + C t r l + H o m e { m o v e - c o l u m n - t o - f i r s t ; }
M o d + C t r l + E n d { m o v e - c o l u m n - t o - l a s t ; }
M o d + S h i f t + L e f t { f o c u s - m o n i t o r - l e f t ; }
M o d + S h i f t + D o w n { f o c u s - m o n i t o r - d o w n ; }
M o d + S h i f t + U p { f o c u s - m o n i t o r - u p ; }
M o d + S h i f t + R i g h t { f o c u s - m o n i t o r - r i g h t ; }
M o d + S h i f t + H { f o c u s - m o n i t o r - l e f t ; }
M o d + S h i f t + J { f o c u s - m o n i t o r - d o w n ; }
M o d + S h i f t + K { f o c u s - m o n i t o r - u p ; }
M o d + S h i f t + L { f o c u s - m o n i t o r - r i g h t ; }
M o d + S h i f t + C t r l + L e f t { m o v e - c o l u m n - t o - m o n i t o r - l e f t ; }
M o d + S h i f t + C t r l + D o w n { m o v e - c o l u m n - t o - m o n i t o r - d o w n ; }
M o d + S h i f t + C t r l + U p { m o v e - c o l u m n - t o - m o n i t o r - u p ; }
M o d + S h i f t + C t r l + R i g h t { m o v e - c o l u m n - t o - m o n i t o r - r i g h t ; }
M o d + S h i f t + C t r l + H { m o v e - c o l u m n - t o - m o n i t o r - l e f t ; }
M o d + S h i f t + C t r l + J { m o v e - c o l u m n - t o - m o n i t o r - d o w n ; }
M o d + S h i f t + C t r l + K { m o v e - c o l u m n - t o - m o n i t o r - u p ; }
M o d + S h i f t + C t r l + L { m o v e - c o l u m n - t o - m o n i t o r - r i g h t ; }
/ / A l t e r n a t i v e l y , t h e r e a r e c o m m a n d s t o m o v e j u s t a s i n g l e w i n d o w :
/ / M o d + S h i f t + C t r l + L e f t { m o v e - w i n d o w - t o - m o n i t o r - l e f t ; }
/ / . . .
/ / A n d y o u c a n a l s o m o v e a w h o l e w o r k s p a c e t o a n o t h e r m o n i t o r :
/ / M o d + S h i f t + C t r l + L e f t { m o v e - w o r k s p a c e - t o - m o n i t o r - l e f t ; }
/ / . . .
M o d + P a g e _ D o w n { f o c u s - w o r k s p a c e - d o w n ; }
M o d + P a g e _ U p { f o c u s - w o r k s p a c e - u p ; }
M o d + U { f o c u s - w o r k s p a c e - d o w n ; }
M o d + I { f o c u s - w o r k s p a c e - u p ; }
M o d + C t r l + P a g e _ D o w n { m o v e - c o l u m n - t o - w o r k s p a c e - d o w n ; }
M o d + C t r l + P a g e _ U p { m o v e - c o l u m n - t o - w o r k s p a c e - u p ; }
M o d + C t r l + U { m o v e - c o l u m n - t o - w o r k s p a c e - d o w n ; }
M o d + C t r l + I { m o v e - c o l u m n - t o - w o r k s p a c e - u p ; }
/ / A l t e r n a t i v e l y , t h e r e a r e c o m m a n d s t o m o v e j u s t a s i n g l e w i n d o w :
/ / M o d + C t r l + P a g e _ D o w n { m o v e - w i n d o w - t o - w o r k s p a c e - d o w n ; }
/ / . . .
M o d + S h i f t + P a g e _ D o w n { m o v e - w o r k s p a c e - d o w n ; }
M o d + S h i f t + P a g e _ U p { m o v e - w o r k s p a c e - u p ; }
M o d + S h i f t + U { m o v e - w o r k s p a c e - d o w n ; }
M o d + S h i f t + I { m o v e - w o r k s p a c e - u p ; }
/ / Y o u c a n b i n d m o u s e w h e e l s c r o l l t i c k s u s i n g t h e f o l l o w i n g s y n t a x .
/ / T h e s e b i n d s w i l l c h a n g e d i r e c t i o n b a s e d o n t h e n a t u r a l - s c r o l l s e t t i n g .
/ /
/ / T o a v o i d s c r o l l i n g t h r o u g h w o r k s p a c e s r e a l l y f a s t , y o u c a n u s e
/ / t h e c o o l d o w n - m s p r o p e r t y . T h e b i n d w i l l b e r a t e - l i m i t e d t o t h i s v a l u e .
/ / Y o u c a n s e t a c o o l d o w n o n a n y b i n d , b u t i t ' s m o s t u s e f u l f o r t h e w h e e l .
M o d + W h e e l S c r o l l D o w n c o o l d o w n - m s = 1 5 0 { f o c u s - w o r k s p a c e - d o w n ; }
M o d + W h e e l S c r o l l U p c o o l d o w n - m s = 1 5 0 { f o c u s - w o r k s p a c e - u p ; }
M o d + C t r l + W h e e l S c r o l l D o w n c o o l d o w n - m s = 1 5 0 { m o v e - c o l u m n - t o - w o r k s p a c e - d o w n ; }
M o d + C t r l + W h e e l S c r o l l U p c o o l d o w n - m s = 1 5 0 { m o v e - c o l u m n - t o - w o r k s p a c e - u p ; }
M o d + W h e e l S c r o l l R i g h t { f o c u s - c o l u m n - r i g h t ; }
M o d + W h e e l S c r o l l L e f t { f o c u s - c o l u m n - l e f t ; }
M o d + C t r l + W h e e l S c r o l l R i g h t { m o v e - c o l u m n - r i g h t ; }
M o d + C t r l + W h e e l S c r o l l L e f t { m o v e - c o l u m n - l e f t ; }
/ / U s u a l l y s c r o l l i n g u p a n d d o w n w i t h S h i f t i n a p p l i c a t i o n s r e s u l t s i n
/ / h o r i z o n t a l s c r o l l i n g ; t h e s e b i n d s r e p l i c a t e t h a t .
M o d + S h i f t + W h e e l S c r o l l D o w n { f o c u s - c o l u m n - r i g h t ; }
M o d + S h i f t + W h e e l S c r o l l U p { f o c u s - c o l u m n - l e f t ; }
M o d + C t r l + S h i f t + W h e e l S c r o l l D o w n { m o v e - c o l u m n - r i g h t ; }
M o d + C t r l + S h i f t + W h e e l S c r o l l U p { m o v e - c o l u m n - l e f t ; }
/ / S i m i l a r l y , y o u c a n b i n d t o u c h p a d s c r o l l " t i c k s " .
/ / T o u c h p a d s c r o l l i n g i s c o n t i n u o u s , s o f o r t h e s e b i n d s i t i s s p l i t i n t o
/ / d i s c r e t e i n t e r v a l s .
/ / T h e s e b i n d s a r e a l s o a f f e c t e d b y t o u c h p a d ' s n a t u r a l - s c r o l l , s o t h e s e
/ / e x a m p l e b i n d s a r e " i n v e r t e d " , s i n c e w e h a v e n a t u r a l - s c r o l l e n a b l e d f o r
/ / t o u c h p a d s b y d e f a u l t .
/ / M o d + T o u c h p a d S c r o l l D o w n { s p a w n - s h " w p c t l s e t - v o l u m e @ D E F A U L T _ A U D I O _ S I N K @ 0 . 0 2 + " ; }
/ / M o d + T o u c h p a d S c r o l l U p { s p a w n - s h " w p c t l s e t - v o l u m e @ D E F A U L T _ A U D I O _ S I N K @ 0 . 0 2 - " ; }
/ / Y o u c a n r e f e r t o w o r k s p a c e s b y i n d e x . H o w e v e r , k e e p i n m i n d t h a t
/ / n i r i i s a d y n a m i c w o r k s p a c e s y s t e m , s o t h e s e c o m m a n d s a r e k i n d o f
/ / " b e s t e f f o r t " . T r y i n g t o r e f e r t o a w o r k s p a c e i n d e x b i g g e r t h a n
/ / t h e c u r r e n t w o r k s p a c e c o u n t w i l l i n s t e a d r e f e r t o t h e b o t t o m m o s t
/ / ( e m p t y ) w o r k s p a c e .
/ /
/ / F o r e x a m p l e , w i t h 2 w o r k s p a c e s + 1 e m p t y , i n d i c e s 3 , 4 , 5 a n d s o o n
/ / w i l l a l l r e f e r t o t h e 3 r d w o r k s p a c e .
M o d + 1 { f o c u s - w o r k s p a c e 1 ; }
M o d + 2 { f o c u s - w o r k s p a c e 2 ; }
M o d + 3 { f o c u s - w o r k s p a c e 3 ; }
M o d + 4 { f o c u s - w o r k s p a c e 4 ; }
M o d + 5 { f o c u s - w o r k s p a c e 5 ; }
M o d + 6 { f o c u s - w o r k s p a c e 6 ; }
M o d + 7 { f o c u s - w o r k s p a c e 7 ; }
M o d + 8 { f o c u s - w o r k s p a c e 8 ; }
M o d + 9 { f o c u s - w o r k s p a c e 9 ; }
M o d + C t r l + 1 { m o v e - c o l u m n - t o - w o r k s p a c e 1 ; }
M o d + C t r l + 2 { m o v e - c o l u m n - t o - w o r k s p a c e 2 ; }
M o d + C t r l + 3 { m o v e - c o l u m n - t o - w o r k s p a c e 3 ; }
M o d + C t r l + 4 { m o v e - c o l u m n - t o - w o r k s p a c e 4 ; }
M o d + C t r l + 5 { m o v e - c o l u m n - t o - w o r k s p a c e 5 ; }
M o d + C t r l + 6 { m o v e - c o l u m n - t o - w o r k s p a c e 6 ; }
M o d + C t r l + 7 { m o v e - c o l u m n - t o - w o r k s p a c e 7 ; }
M o d + C t r l + 8 { m o v e - c o l u m n - t o - w o r k s p a c e 8 ; }
M o d + C t r l + 9 { m o v e - c o l u m n - t o - w o r k s p a c e 9 ; }
/ / A l t e r n a t i v e l y , t h e r e a r e c o m m a n d s t o m o v e j u s t a s i n g l e w i n d o w :
/ / M o d + C t r l + 1 { m o v e - w i n d o w - t o - w o r k s p a c e 1 ; }
/ / S w i t c h e s f o c u s b e t w e e n t h e c u r r e n t a n d t h e p r e v i o u s w o r k s p a c e .
/ / M o d + T a b { f o c u s - w o r k s p a c e - p r e v i o u s ; }
/ / T h e f o l l o w i n g b i n d s m o v e t h e f o c u s e d w i n d o w i n a n d o u t o f a c o l u m n .
/ / I f t h e w i n d o w i s a l o n e , t h e y w i l l c o n s u m e i t i n t o t h e n e a r b y c o l u m n t o t h e s i d e .
/ / I f t h e w i n d o w i s a l r e a d y i n a c o l u m n , t h e y w i l l e x p e l i t o u t .
M o d + B r a c k e t L e f t { c o n s u m e - o r - e x p e l - w i n d o w - l e f t ; }
M o d + B r a c k e t R i g h t { c o n s u m e - o r - e x p e l - w i n d o w - r i g h t ; }
/ / C o n s u m e o n e w i n d o w f r o m t h e r i g h t t o t h e b o t t o m o f t h e f o c u s e d c o l u m n .
M o d + C o m m a { c o n s u m e - w i n d o w - i n t o - c o l u m n ; }
/ / E x p e l t h e b o t t o m w i n d o w f r o m t h e f o c u s e d c o l u m n t o t h e r i g h t .
M o d + P e r i o d { e x p e l - w i n d o w - f r o m - c o l u m n ; }
M o d + R { s w i t c h - p r e s e t - c o l u m n - w i d t h ; }
/ / C y c l i n g t h r o u g h t h e p r e s e t s i n r e v e r s e o r d e r i s a l s o p o s s i b l e .
/ / M o d + R { s w i t c h - p r e s e t - c o l u m n - w i d t h - b a c k ; }
M o d + S h i f t + R { s w i t c h - p r e s e t - w i n d o w - h e i g h t ; }
M o d + C t r l + R { r e s e t - w i n d o w - h e i g h t ; }
M o d + F { m a x i m i z e - c o l u m n ; }
M o d + S h i f t + F { f u l l s c r e e n - w i n d o w ; }
/ / E x p a n d t h e f o c u s e d c o l u m n t o s p a c e n o t t a k e n u p b y o t h e r f u l l y v i s i b l e c o l u m n s .
/ / M a k e s t h e c o l u m n " f i l l t h e r e s t o f t h e s p a c e " .
M o d + C t r l + F { e x p a n d - c o l u m n - t o - a v a i l a b l e - w i d t h ; }
M o d + C { c e n t e r - c o l u m n ; }
/ / C e n t e r a l l f u l l y v i s i b l e c o l u m n s o n s c r e e n .
M o d + C t r l + C { c e n t e r - v i s i b l e - c o l u m n s ; }
/ / F i n e r w i d t h a d j u s t m e n t s .
/ / T h i s c o m m a n d c a n a l s o :
/ / * s e t w i d t h i n p i x e l s : " 1 0 0 0 "
/ / * a d j u s t w i d t h i n p i x e l s : " - 5 " o r " + 5 "
/ / * s e t w i d t h a s a p e r c e n t a g e o f s c r e e n w i d t h : " 2 5 % "
/ / * a d j u s t w i d t h a s a p e r c e n t a g e o f s c r e e n w i d t h : " - 1 0 % " o r " + 1 0 % "
/ / P i x e l s i z e s u s e l o g i c a l , o r s c a l e d , p i x e l s . I . e . o n a n o u t p u t w i t h s c a l e 2 . 0 ,
/ / s e t - c o l u m n - w i d t h " 1 0 0 " w i l l m a k e t h e c o l u m n o c c u p y 2 0 0 p h y s i c a l s c r e e n p i x e l s .
M o d + M i n u s { s e t - c o l u m n - w i d t h " - 1 0 % " ; }
M o d + E q u a l { s e t - c o l u m n - w i d t h " + 1 0 % " ; }
/ / F i n e r h e i g h t a d j u s t m e n t s w h e n i n c o l u m n w i t h o t h e r w i n d o w s .
M o d + S h i f t + M i n u s { s e t - w i n d o w - h e i g h t " - 1 0 % " ; }
M o d + S h i f t + E q u a l { s e t - w i n d o w - h e i g h t " + 1 0 % " ; }
/ / M o v e t h e f o c u s e d w i n d o w b e t w e e n t h e f l o a t i n g a n d t h e t i l i n g l a y o u t .
M o d + V { t o g g l e - w i n d o w - f l o a t i n g ; }
M o d + S h i f t + V { s w i t c h - f o c u s - b e t w e e n - f l o a t i n g - a n d - t i l i n g ; }
/ / T o g g l e t a b b e d c o l u m n d i s p l a y m o d e .
/ / W i n d o w s i n t h i s c o l u m n w i l l a p p e a r a s v e r t i c a l t a b s ,
/ / r a t h e r t h a n s t a c k e d o n t o p o f e a c h o t h e r .
M o d + W { t o g g l e - c o l u m n - t a b b e d - d i s p l a y ; }
/ / A c t i o n s t o s w i t c h l a y o u t s .
/ / N o t e : i f y o u u n c o m m e n t t h e s e , m a k e s u r e y o u d o N O T h a v e
/ / a m a t c h i n g l a y o u t s w i t c h h o t k e y c o n f i g u r e d i n x k b o p t i o n s a b o v e .
/ / H a v i n g b o t h a t o n c e o n t h e s a m e h o t k e y w i l l b r e a k t h e s w i t c h i n g ,
/ / s i n c e i t w i l l s w i t c h t w i c e u p o n p r e s s i n g t h e h o t k e y ( o n c e b y x k b , o n c e b y n i r i ) .
/ / M o d + S p a c e { s w i t c h - l a y o u t " n e x t " ; }
/ / M o d + S h i f t + S p a c e { s w i t c h - l a y o u t " p r e v " ; }
P r i n t { s c r e e n s h o t ; }
C t r l + P r i n t { s c r e e n s h o t - s c r e e n ; }
A l t + P r i n t { s c r e e n s h o t - w i n d o w ; }
/ / A p p l i c a t i o n s s u c h a s r e m o t e - d e s k t o p c l i e n t s a n d s o f t w a r e K V M s w i t c h e s m a y
/ / r e q u e s t t h a t n i r i s t o p s p r o c e s s i n g t h e k e y b o a r d s h o r t c u t s d e f i n e d h e r e
/ / s o t h e y m a y , f o r e x a m p l e , f o r w a r d t h e k e y p r e s s e s a s - i s t o a r e m o t e m a c h i n e .
/ / I t ' s a g o o d i d e a t o b i n d a n e s c a p e h a t c h t o t o g g l e t h e i n h i b i t o r ,
/ / s o a b u g g y a p p l i c a t i o n c a n ' t h o l d y o u r s e s s i o n h o s t a g e .
/ /
/ / T h e a l l o w - i n h i b i t i n g = f a l s e p r o p e r t y c a n b e a p p l i e d t o o t h e r b i n d s a s w e l l ,
/ / w h i c h e n s u r e s n i r i a l w a y s p r o c e s s e s t h e m , e v e n w h e n a n i n h i b i t o r i s a c t i v e .
M o d + E s c a p e a l l o w - i n h i b i t i n g = f a l s e { t o g g l e - k e y b o a r d - s h o r t c u t s - i n h i b i t ; }
/ / T h e q u i t a c t i o n w i l l s h o w a c o n f i r m a t i o n d i a l o g t o a v o i d a c c i d e n t a l e x i t s .
M o d + S h i f t + E { q u i t ; }
C t r l + A l t + D e l e t e { q u i t ; }
/ / P o w e r s o f f t h e m o n i t o r s . T o t u r n t h e m b a c k o n , d o a n y i n p u t l i k e
/ / m o v i n g t h e m o u s e o r p r e s s i n g a n y o t h e r k e y .
M o d + S h i f t + P { p o w e r - o f f - m o n i t o r s ; }
}
'' ;
} ;