mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:05:59 +01:00
default & example config overhaul
This commit is contained in:
parent
da4cfb9c32
commit
1145654987
2 changed files with 222 additions and 156 deletions
|
@ -1,117 +1,151 @@
|
||||||
# This is an example Hyprland config file.
|
# This is an example Hyprland config file.
|
||||||
# Syntax is the same as in Hypr, but settings might differ.
|
|
||||||
#
|
#
|
||||||
# Refer to the wiki for more information.
|
# Refer to the wiki for more information.
|
||||||
|
|
||||||
#
|
#
|
||||||
# Please note not all available settings / options are set here.
|
# Please note not all available settings / options are set here.
|
||||||
# For a full list, see the wiki (basic and advanced configuring)
|
# For a full list, see the wiki
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,1
|
monitor=,preferred,auto,1
|
||||||
workspace=DP-1,1
|
|
||||||
|
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
|
||||||
|
# Execute your favorite apps at launch
|
||||||
|
# exec-once = waybar & hyprpaper & firefox
|
||||||
|
|
||||||
|
# Source a file (multi-file configs)
|
||||||
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|
||||||
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input {
|
input {
|
||||||
kb_file=
|
kb_layout = us
|
||||||
kb_layout=
|
kb_variant =
|
||||||
kb_variant=
|
kb_model =
|
||||||
kb_model=
|
kb_options =
|
||||||
kb_options=
|
kb_rules =
|
||||||
kb_rules=
|
|
||||||
|
|
||||||
follow_mouse=1
|
follow_mouse = 1
|
||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
natural_scroll=no
|
natural_scroll = no
|
||||||
}
|
}
|
||||||
|
|
||||||
sensitivity=0 # -1.0 - 1.0, 0 means no modification.
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
}
|
}
|
||||||
|
|
||||||
general {
|
general {
|
||||||
gaps_in=5
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
gaps_out=20
|
|
||||||
border_size=2
|
|
||||||
col.active_border=0x66ee1111
|
|
||||||
col.inactive_border=0x66333333
|
|
||||||
|
|
||||||
apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
|
gaps_in = 5
|
||||||
|
gaps_out = 20
|
||||||
|
border_size = 2
|
||||||
|
col.active_border = rgba(1affffee)
|
||||||
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
|
layout = dwindle
|
||||||
}
|
}
|
||||||
|
|
||||||
decoration {
|
decoration {
|
||||||
rounding=10
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
blur=1
|
|
||||||
blur_size=3 # minimum 1
|
rounding = 10
|
||||||
blur_passes=1 # minimum 1
|
blur = yes
|
||||||
blur_new_optimizations=1
|
blur_size = 3
|
||||||
|
blur_passes = 1
|
||||||
|
blur_new_optimizations = on
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled=1
|
enabled = yes
|
||||||
animation=windows,1,7,default
|
|
||||||
animation=border,1,10,default
|
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
animation=fade,1,10,default
|
|
||||||
animation=workspaces,1,6,default
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
|
||||||
|
animation = windows, 1, 7, myBezier
|
||||||
|
animation = windowsOut, 1, 7, default, popin 80%
|
||||||
|
animation = border, 1, 10, default
|
||||||
|
animation = fade, 1, 7, default
|
||||||
|
animation = workspaces, 1, 6, default
|
||||||
}
|
}
|
||||||
|
|
||||||
dwindle {
|
dwindle {
|
||||||
pseudotile=0 # enable pseudotiling on dwindle
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = false
|
||||||
|
}
|
||||||
|
|
||||||
|
master {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
new_is_master = true
|
||||||
}
|
}
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe=no
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
workspace_swipe = off
|
||||||
}
|
}
|
||||||
|
|
||||||
# example window rules
|
# Example per-device config
|
||||||
# for windows named/classed as abc and xyz
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||||
#windowrule=move 69 420,abc
|
device:epic mouse V1 {
|
||||||
#windowrule=size 420 69,abc
|
sensitivity = -0.5
|
||||||
#windowrule=tile,xyz
|
}
|
||||||
#windowrule=float,abc
|
|
||||||
#windowrule=pseudo,abc
|
|
||||||
#windowrule=monitor 0,xyz
|
|
||||||
|
|
||||||
# some nice mouse binds
|
# Example windowrule v1
|
||||||
bindm=SUPER,mouse:272,movewindow
|
# windowrule = float, ^(kitty)$
|
||||||
bindm=SUPER,mouse:273,resizewindow
|
# Example windowrule v2
|
||||||
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
|
||||||
# example binds
|
|
||||||
bind=SUPER,Q,exec,kitty
|
|
||||||
bind=SUPER,C,killactive,
|
|
||||||
bind=SUPER,M,exit,
|
|
||||||
bind=SUPER,E,exec,dolphin
|
|
||||||
bind=SUPER,V,togglefloating,
|
|
||||||
bind=SUPER,R,exec,wofi --show drun -o DP-3
|
|
||||||
bind=SUPER,P,pseudo,
|
|
||||||
|
|
||||||
bind=SUPER,left,movefocus,l
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
bind=SUPER,right,movefocus,r
|
$mainMod = SUPER
|
||||||
bind=SUPER,up,movefocus,u
|
|
||||||
bind=SUPER,down,movefocus,d
|
|
||||||
|
|
||||||
bind=SUPER,1,workspace,1
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bind=SUPER,2,workspace,2
|
bind = $mainMod, Q, exec, kitty
|
||||||
bind=SUPER,3,workspace,3
|
bind = $mainMod, C, killactive,
|
||||||
bind=SUPER,4,workspace,4
|
bind = $mainMod, M, exit,
|
||||||
bind=SUPER,5,workspace,5
|
bind = $mainMod, E, exec, dolphin
|
||||||
bind=SUPER,6,workspace,6
|
bind = $mainMod, V, togglefloating,
|
||||||
bind=SUPER,7,workspace,7
|
bind = $mainMod, R, exec, wofi --show drun
|
||||||
bind=SUPER,8,workspace,8
|
bind = $mainMod, P, pseudo,
|
||||||
bind=SUPER,9,workspace,9
|
|
||||||
bind=SUPER,0,workspace,10
|
|
||||||
|
|
||||||
bind=ALT,1,movetoworkspace,1
|
# Move focus with mainMod + arrow keys
|
||||||
bind=ALT,2,movetoworkspace,2
|
bind = $mainMod, left, movefocus, l
|
||||||
bind=ALT,3,movetoworkspace,3
|
bind = $mainMod, right, movefocus, r
|
||||||
bind=ALT,4,movetoworkspace,4
|
bind = $mainMod, up, movefocus, u
|
||||||
bind=ALT,5,movetoworkspace,5
|
bind = $mainMod, down, movefocus, d
|
||||||
bind=ALT,6,movetoworkspace,6
|
|
||||||
bind=ALT,7,movetoworkspace,7
|
|
||||||
bind=ALT,8,movetoworkspace,8
|
|
||||||
bind=ALT,9,movetoworkspace,9
|
|
||||||
bind=ALT,0,movetoworkspace,10
|
|
||||||
|
|
||||||
bind=SUPER,mouse_down,workspace,e+1
|
# Switch workspaces with mainMod + [0-9]
|
||||||
bind=SUPER,mouse_up,workspace,e-1
|
bind = $mainMod, 1, workspace, 1
|
||||||
|
bind = $mainMod, 2, workspace, 2
|
||||||
|
bind = $mainMod, 3, workspace, 3
|
||||||
|
bind = $mainMod, 4, workspace, 4
|
||||||
|
bind = $mainMod, 5, workspace, 5
|
||||||
|
bind = $mainMod, 6, workspace, 6
|
||||||
|
bind = $mainMod, 7, workspace, 7
|
||||||
|
bind = $mainMod, 8, workspace, 8
|
||||||
|
bind = $mainMod, 9, workspace, 9
|
||||||
|
bind = $mainMod, 0, workspace, 10
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||||
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||||
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||||
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||||
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||||
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||||
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
|
@ -9,121 +9,153 @@ PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
|
||||||
OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
|
OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
|
||||||
########################################################################################
|
########################################################################################
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Please note not all available settings / options are set here.
|
# Please note not all available settings / options are set here.
|
||||||
# For a full list, see the wiki (basic and advanced configuring)
|
# For a full list, see the wiki
|
||||||
#
|
#
|
||||||
|
|
||||||
autogenerated=1 # remove this line to get rid of the warning on top.
|
autogenerated = 1 # remove this line to remove the warning
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,1
|
monitor=,preferred,auto,1
|
||||||
|
|
||||||
input {
|
|
||||||
kb_file=
|
|
||||||
kb_layout=
|
|
||||||
kb_variant=
|
|
||||||
kb_model=
|
|
||||||
kb_options=
|
|
||||||
kb_rules=
|
|
||||||
|
|
||||||
follow_mouse=1
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
|
||||||
|
# Execute your favorite apps at launch
|
||||||
|
# exec-once = waybar & hyprpaper & firefox
|
||||||
|
|
||||||
|
# Source a file (multi-file configs)
|
||||||
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|
||||||
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
input {
|
||||||
|
kb_layout = us
|
||||||
|
kb_variant =
|
||||||
|
kb_model =
|
||||||
|
kb_options =
|
||||||
|
kb_rules =
|
||||||
|
|
||||||
|
follow_mouse = 1
|
||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
natural_scroll=no
|
natural_scroll = no
|
||||||
}
|
}
|
||||||
|
|
||||||
sensitivity=0 # -1.0 - 1.0, 0 means no modification.
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
}
|
}
|
||||||
|
|
||||||
general {
|
general {
|
||||||
main_mod=SUPER
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
gaps_in=5
|
gaps_in = 5
|
||||||
gaps_out=20
|
gaps_out = 20
|
||||||
border_size=2
|
border_size = 2
|
||||||
col.active_border=0x66ee1111
|
col.active_border = rgba(1affffee)
|
||||||
col.inactive_border=0x66333333
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
|
layout = dwindle
|
||||||
|
|
||||||
damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
|
|
||||||
}
|
}
|
||||||
|
|
||||||
decoration {
|
decoration {
|
||||||
rounding=10
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
blur=1
|
|
||||||
blur_size=3 # minimum 1
|
rounding = 10
|
||||||
blur_passes=1 # minimum 1
|
blur = yes
|
||||||
blur_new_optimizations=1
|
blur_size = 3
|
||||||
|
blur_passes = 1
|
||||||
|
blur_new_optimizations = on
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled=1
|
enabled = yes
|
||||||
animation=windows,1,7,default
|
|
||||||
animation=border,1,10,default
|
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
animation=fade,1,10,default
|
|
||||||
animation=workspaces,1,6,default
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
|
||||||
|
animation = windows, 1, 7, myBezier
|
||||||
|
animation = windowsOut, 1, 7, default, popin 80%
|
||||||
|
animation = border, 1, 10, default
|
||||||
|
animation = fade, 1, 7, default
|
||||||
|
animation = workspaces, 1, 6, default
|
||||||
}
|
}
|
||||||
|
|
||||||
dwindle {
|
dwindle {
|
||||||
pseudotile=0 # enable pseudotiling on dwindle
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = false
|
||||||
|
}
|
||||||
|
|
||||||
|
master {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
new_is_master = true
|
||||||
}
|
}
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe=no
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
workspace_swipe = off
|
||||||
}
|
}
|
||||||
|
|
||||||
# example window rules
|
# Example per-device config
|
||||||
# for windows named/classed as abc and xyz
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||||
#windowrule=move 69 420,abc
|
device:epic mouse V1 {
|
||||||
#windowrule=size 420 69,abc
|
sensitivity = -0.5
|
||||||
#windowrule=tile,xyz
|
}
|
||||||
#windowrule=float,abc
|
|
||||||
#windowrule=pseudo,abc
|
|
||||||
#windowrule=monitor 0,xyz
|
|
||||||
|
|
||||||
# some nice mouse binds
|
# Example windowrule v1
|
||||||
bindm=SUPER,mouse:272,movewindow
|
# windowrule = float, ^(kitty)$
|
||||||
bindm=SUPER,mouse:273,resizewindow
|
# Example windowrule v2
|
||||||
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
|
||||||
# example binds
|
|
||||||
bind=SUPER,Q,exec,kitty
|
|
||||||
bind=SUPER,RETURN,exec,alacritty
|
|
||||||
bind=SUPER,C,killactive,
|
|
||||||
bind=SUPER,M,exit,
|
|
||||||
bind=SUPER,E,exec,dolphin
|
|
||||||
bind=SUPER,V,togglefloating,
|
|
||||||
bind=SUPER,R,exec,wofi --show drun -o DP-3
|
|
||||||
bind=SUPER,P,pseudo,
|
|
||||||
|
|
||||||
bind=SUPER,left,movefocus,l
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
bind=SUPER,right,movefocus,r
|
$mainMod = SUPER
|
||||||
bind=SUPER,up,movefocus,u
|
|
||||||
bind=SUPER,down,movefocus,d
|
|
||||||
|
|
||||||
bind=SUPER,1,workspace,1
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bind=SUPER,2,workspace,2
|
bind = $mainMod, Q, exec, kitty
|
||||||
bind=SUPER,3,workspace,3
|
bind = $mainMod, C, killactive,
|
||||||
bind=SUPER,4,workspace,4
|
bind = $mainMod, M, exit,
|
||||||
bind=SUPER,5,workspace,5
|
bind = $mainMod, E, exec, dolphin
|
||||||
bind=SUPER,6,workspace,6
|
bind = $mainMod, V, togglefloating,
|
||||||
bind=SUPER,7,workspace,7
|
bind = $mainMod, R, exec, wofi --show drun
|
||||||
bind=SUPER,8,workspace,8
|
bind = $mainMod, P, pseudo,
|
||||||
bind=SUPER,9,workspace,9
|
|
||||||
bind=SUPER,0,workspace,10
|
|
||||||
|
|
||||||
bind=ALT,1,movetoworkspace,1
|
# Move focus with mainMod + arrow keys
|
||||||
bind=ALT,2,movetoworkspace,2
|
bind = $mainMod, left, movefocus, l
|
||||||
bind=ALT,3,movetoworkspace,3
|
bind = $mainMod, right, movefocus, r
|
||||||
bind=ALT,4,movetoworkspace,4
|
bind = $mainMod, up, movefocus, u
|
||||||
bind=ALT,5,movetoworkspace,5
|
bind = $mainMod, down, movefocus, d
|
||||||
bind=ALT,6,movetoworkspace,6
|
|
||||||
bind=ALT,7,movetoworkspace,7
|
|
||||||
bind=ALT,8,movetoworkspace,8
|
|
||||||
bind=ALT,9,movetoworkspace,9
|
|
||||||
bind=ALT,0,movetoworkspace,10
|
|
||||||
|
|
||||||
bind=SUPER,mouse_down,workspace,e+1
|
# Switch workspaces with mainMod + [0-9]
|
||||||
bind=SUPER,mouse_up,workspace,e-1
|
bind = $mainMod, 1, workspace, 1
|
||||||
|
bind = $mainMod, 2, workspace, 2
|
||||||
|
bind = $mainMod, 3, workspace, 3
|
||||||
|
bind = $mainMod, 4, workspace, 4
|
||||||
|
bind = $mainMod, 5, workspace, 5
|
||||||
|
bind = $mainMod, 6, workspace, 6
|
||||||
|
bind = $mainMod, 7, workspace, 7
|
||||||
|
bind = $mainMod, 8, workspace, 8
|
||||||
|
bind = $mainMod, 9, workspace, 9
|
||||||
|
bind = $mainMod, 0, workspace, 10
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||||
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||||
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||||
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||||
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||||
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||||
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
)#";
|
)#";
|
||||||
|
|
Loading…
Reference in a new issue