mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 08:07:14 +02:00
hyprland: Update config
Changes include: - fcitx5 support - Removed middle click paste - udiskie starts by default - Internal screen is 1x scale by default - Acceleration profile is flat - swww settings added - Gaps are smaller by default - No border by default - Master layout by default - No rounding by default - Special workspace uses fade animation - New windows become master - rofi used over of wofi - Super+O to toggle waybar - Super+U to toggle between master/dwindle layouts - Super+S to toggle special workspace - Super+Ctrl+[0-9] for river/dwm-like tag behavior - Super+Alt for group keybinds - Volume/brightness keybinds
This commit is contained in:
parent
1b55e870c5
commit
2fff973177
@ -1,40 +1,37 @@
|
|||||||
# This is an example Hyprland config file.
|
# Change the scale of the monitor
|
||||||
#
|
monitor=eDP-1,preferred,auto,1
|
||||||
# Refer to the wiki for more information.
|
|
||||||
|
|
||||||
#
|
# Make it easy to plug in other monitors
|
||||||
# Please note not all available settings / options are set here.
|
monitor=,preferred,auto,1
|
||||||
# For a full list, see the wiki
|
#monitor=,highrr,auto,1 # Use the highest refresh rate
|
||||||
#
|
#monitor=,highres,auto,1 # Use the highest resolution
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# 10-bit support
|
||||||
monitor=,preferred,auto,auto
|
#monitor=eDP-1,2880x1800@90,0x0,1,bitdepth,10
|
||||||
|
|
||||||
|
# Rotating a monitor
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
#monitor=,preferred,auto,1,transform,1
|
||||||
|
|
||||||
# Execute your favorite apps at launch
|
# Execute your favorite apps at launch
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
# exec-once = waybar & hyprpaper & firefox
|
||||||
exec-once = fcitx5
|
exec-once = fcitx5 # Japanese input support
|
||||||
|
exec-once = wl-paste -p --watch wl-copy -pc # Disable middle click paste
|
||||||
# Source a file (multi-file configs)
|
exec-once = udiskie & # Auto-mount drives
|
||||||
# source = ~/.config/hypr/myColors.conf
|
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = XCURSOR_SIZE,24
|
env = XCURSOR_SIZE,24
|
||||||
|
env = BROWSER,librewolf
|
||||||
env = GTK_IM_MODULE,fcitx
|
env = GTK_IM_MODULE,fcitx
|
||||||
env = QT_IM_MODULE,fcitx
|
env = QT_IM_MODULE,fcitx
|
||||||
env = XMODIFIERS,@im=fcitx
|
env = XMODIFIERS,@im=fcitx
|
||||||
env = SDL_IM_MODULE,fcitx
|
env = SDL_IM_MODULE,fcitx
|
||||||
env = GLFW_IM_MODULE,ibus
|
env = GLFW_IM_MODULE,ibus
|
||||||
|
env = SWWW_TRANSITION_STEP,10
|
||||||
|
env = SWWW_TRANSITION_FPS,60
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
|
||||||
input {
|
input {
|
||||||
kb_layout = us
|
kb_layout = us
|
||||||
kb_variant =
|
accel_profile = flat
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
|
|
||||||
@ -47,26 +44,27 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
general {
|
general {
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
|
|
||||||
gaps_in = 5
|
gaps_in = 5
|
||||||
gaps_out = 20
|
gaps_out = 10
|
||||||
border_size = 2
|
gaps_in = 0
|
||||||
|
gaps_out = 0
|
||||||
|
#border_size = 2
|
||||||
|
border_size = 0
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
col.inactive_border = rgba(595959aa)
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
layout = dwindle
|
layout = master
|
||||||
}
|
}
|
||||||
|
|
||||||
decoration {
|
decoration {
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
#rounding = 10
|
||||||
|
rounding = 0
|
||||||
rounding = 10
|
|
||||||
blur = yes
|
blur = yes
|
||||||
blur_size = 3
|
blur_size = 3
|
||||||
|
#blur_size = 4
|
||||||
|
#blur_passes = 2
|
||||||
blur_passes = 1
|
blur_passes = 1
|
||||||
blur_new_optimizations = yes
|
blur_new_optimizations = yes
|
||||||
|
|
||||||
drop_shadow = yes
|
drop_shadow = yes
|
||||||
shadow_range = 4
|
shadow_range = 4
|
||||||
shadow_render_power = 3
|
shadow_render_power = 3
|
||||||
@ -75,64 +73,89 @@ decoration {
|
|||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled = yes
|
enabled = yes
|
||||||
|
|
||||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
|
||||||
animation = windows, 1, 7, myBezier
|
animation = windows, 1, 7, myBezier
|
||||||
animation = windowsOut, 1, 7, default, popin 80%
|
animation = windowsOut, 1, 7, default, popin 80%
|
||||||
animation = border, 1, 10, default
|
animation = border, 1, 10, default
|
||||||
animation = borderangle, 1, 8, default
|
animation = borderangle, 1, 8, default
|
||||||
animation = fade, 1, 7, default
|
animation = fade, 1, 7, default
|
||||||
animation = workspaces, 1, 6, default
|
animation = workspaces, 1, 6, default
|
||||||
|
animation = specialWorkspace, 1, 6, default, fade
|
||||||
}
|
}
|
||||||
|
|
||||||
dwindle {
|
dwindle {
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
pseudotile = yes
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
preserve_split = yes
|
||||||
preserve_split = yes # you probably want this
|
#no_gaps_when_only = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
master {
|
master {
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_is_master = yes
|
new_is_master = yes
|
||||||
|
new_on_top = yes
|
||||||
|
mfact = 0.65
|
||||||
|
special_scale_factor = 1
|
||||||
|
no_gaps_when_only = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
workspace_swipe = yes
|
workspace_swipe = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example per-device config
|
device:synps/2-synaptics-touchpad {
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
sensitivity = 0.75
|
||||||
device:epic-mouse-v1 {
|
accel_profile = flat
|
||||||
sensitivity = -0.5
|
natural_scroll = yes
|
||||||
|
disable_while_typing = no
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example windowrule v1
|
device:tpps/2-elan-trackpoint {
|
||||||
# windowrule = float, ^(kitty)$
|
sensitivity = 0.5
|
||||||
# Example windowrule v2
|
accel_profile = flat
|
||||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
}
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
bind = SUPER, Return, exec, kitty --single-instance
|
bind = SUPER, Return, exec, kitty --single-instance
|
||||||
|
bind = SUPER, Tab, workspace, +1
|
||||||
|
bind = SUPER_SHIFT, Tab, workspace, -1
|
||||||
bind = SUPER, Q, killactive,
|
bind = SUPER, Q, killactive,
|
||||||
bind = SUPER, P, exec, grimblast copy area
|
bind = SUPER, P, exec, grimblast copy area
|
||||||
bind = SUPER, escape, exit,
|
bind = SUPER, escape, exit,
|
||||||
bind = SUPER, V, togglefloating,
|
bind = SUPER, V, togglefloating,
|
||||||
bind = SUPER, R, exec, wofi --show drun
|
bind = SUPER, V, centerwindow,
|
||||||
|
bind = SUPER, O, exec, killall -SIGUSR1 waybar
|
||||||
|
bind = SUPER, Z, exec, rofi -show
|
||||||
|
bind = SUPER, X, pin
|
||||||
|
bind = SUPER, F, fullscreen
|
||||||
|
bind = SUPER, Tab, changegroupactive, f
|
||||||
|
bind = SUPER_SHIFT, Tab, changegroupactive, b
|
||||||
bind = SUPER, B, pseudo, # dwindle
|
bind = SUPER, B, pseudo, # dwindle
|
||||||
bind = SUPER, J, togglesplit, # dwindle
|
bind = SUPER, C, togglesplit, # dwindle
|
||||||
|
bind = SUPER, U, exec, ~/.config/hypr/toggle-layout.sh
|
||||||
|
bind = SUPER, S, togglespecialworkspace
|
||||||
|
bind = SUPER_SHIFT, S, movetoworkspace, special
|
||||||
|
bind = SUPER_SHIFT, S, togglespecialworkspace
|
||||||
|
|
||||||
# Move focus with mainMod + hjkl
|
# Move focus with super+hjkl
|
||||||
bind = SUPER, H, movefocus, l
|
bind = SUPER, H, movefocus, l
|
||||||
bind = SUPER, L, movefocus, r
|
bind = SUPER, L, movefocus, r
|
||||||
bind = SUPER, K, movefocus, u
|
bind = SUPER, K, movefocus, u
|
||||||
bind = SUPER, J, movefocus, d
|
bind = SUPER, J, movefocus, d
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
# Swap windows with super+shift+hjkl
|
||||||
|
bind = SUPER_SHIFT, H, movewindow, l
|
||||||
|
bind = SUPER_SHIFT, L, movewindow, r
|
||||||
|
bind = SUPER_SHIFT, K, movewindow, u
|
||||||
|
bind = SUPER_SHIFT, J, movewindow, d
|
||||||
|
|
||||||
|
# Group keybinds with super+alt
|
||||||
|
bind = SUPER_ALT, Return, togglegroup
|
||||||
|
bind = SUPER_ALT, H, moveintogroup, l
|
||||||
|
bind = SUPER_ALT, L, moveintogroup, r
|
||||||
|
bind = SUPER_ALT, K, moveintogroup, u
|
||||||
|
bind = SUPER_ALT, J, moveintogroup, d
|
||||||
|
bind = SUPER_ALT, semicolon, moveoutofgroup
|
||||||
|
bind = SUPER_ALT, apostrophe, lockgroups, toggle
|
||||||
|
|
||||||
|
# Switch workspaces with super + [0-9]
|
||||||
bind = SUPER, 1, workspace, 1
|
bind = SUPER, 1, workspace, 1
|
||||||
bind = SUPER, 2, workspace, 2
|
bind = SUPER, 2, workspace, 2
|
||||||
bind = SUPER, 3, workspace, 3
|
bind = SUPER, 3, workspace, 3
|
||||||
@ -144,7 +167,7 @@ bind = SUPER, 8, workspace, 8
|
|||||||
bind = SUPER, 9, workspace, 9
|
bind = SUPER, 9, workspace, 9
|
||||||
bind = SUPER, 0, workspace, 10
|
bind = SUPER, 0, workspace, 10
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
# Move active window to a workspace with super + shift + [0-9]
|
||||||
bind = SUPER_SHIFT, 1, movetoworkspace, 1
|
bind = SUPER_SHIFT, 1, movetoworkspace, 1
|
||||||
bind = SUPER_SHIFT, 2, movetoworkspace, 2
|
bind = SUPER_SHIFT, 2, movetoworkspace, 2
|
||||||
bind = SUPER_SHIFT, 3, movetoworkspace, 3
|
bind = SUPER_SHIFT, 3, movetoworkspace, 3
|
||||||
@ -156,10 +179,40 @@ bind = SUPER_SHIFT, 8, movetoworkspace, 8
|
|||||||
bind = SUPER_SHIFT, 9, movetoworkspace, 9
|
bind = SUPER_SHIFT, 9, movetoworkspace, 9
|
||||||
bind = SUPER_SHIFT, 0, movetoworkspace, 10
|
bind = SUPER_SHIFT, 0, movetoworkspace, 10
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Toggle workspaces with super + ctrl + [0-9]
|
||||||
|
bind = SUPER_CTRL, 1, exec, ~/.config/hypr/tags.sh 1
|
||||||
|
bind = SUPER_CTRL, 2, exec, ~/.config/hypr/tags.sh 2
|
||||||
|
bind = SUPER_CTRL, 3, exec, ~/.config/hypr/tags.sh 3
|
||||||
|
bind = SUPER_CTRL, 4, exec, ~/.config/hypr/tags.sh 4
|
||||||
|
bind = SUPER_CTRL, 5, exec, ~/.config/hypr/tags.sh 5
|
||||||
|
bind = SUPER_CTRL, 6, exec, ~/.config/hypr/tags.sh 6
|
||||||
|
bind = SUPER_CTRL, 7, exec, ~/.config/hypr/tags.sh 7
|
||||||
|
bind = SUPER_CTRL, 8, exec, ~/.config/hypr/tags.sh 8
|
||||||
|
bind = SUPER_CTRL, 9, exec, ~/.config/hypr/tags.sh 9
|
||||||
|
bind = SUPER_CTRL, 0, exec, ~/.config/hypr/tags.sh 10
|
||||||
|
|
||||||
|
# TODO: Use 0 to show windows in all workspaces
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with super + scroll
|
||||||
bind = SUPER, mouse_down, workspace, e+1
|
bind = SUPER, mouse_down, workspace, e+1
|
||||||
bind = SUPER, mouse_up, workspace, e-1
|
bind = SUPER, mouse_up, workspace, e-1
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
# Move/resize windows with super + LMB/RMB and dragging
|
||||||
bindm = SUPER, mouse:272, movewindow
|
bindm = SUPER, mouse:272, movewindow
|
||||||
bindm = SUPER, mouse:273, resizewindow
|
bindm = SUPER, mouse:273, resizewindow
|
||||||
|
|
||||||
|
# Change volume with keys
|
||||||
|
# TODO: Change notification once at 0/100%
|
||||||
|
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send -t 2000 "Muted" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
||||||
|
bindl=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ && notify-send -t 2000 "Raised volume to" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | tail -c 3)%"
|
||||||
|
bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send -t 2000 "Lowered volume to" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | tail -c 3)%"
|
||||||
|
bindl=, XF86MonBrightnessDown, exec, brightnessctl set 5%- && notify-send -t 2000 "Decreased brightness to" "$(brightnessctl get)"
|
||||||
|
bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5% && notify-send -t 2000 "Increased brightness to" "$(brightnessctl get)"
|
||||||
|
|
||||||
|
bind = WIN, F1, exec, ~/.config/hypr/gamemode.sh
|
||||||
|
|
||||||
|
#misc {
|
||||||
|
#focus_on_activate = yes
|
||||||
|
#}
|
||||||
|
|
||||||
|
# vim:syn=bash
|
||||||
|
@ -9,6 +9,10 @@ Hyprland can be used to:
|
|||||||
- Take advantage of Wayland, without having to resort to the i3-like Sway
|
- Take advantage of Wayland, without having to resort to the i3-like Sway
|
||||||
- Use a Wayland compositor that opens windows in a similar vein to bspwm
|
- Use a Wayland compositor that opens windows in a similar vein to bspwm
|
||||||
- Have dynamic workspaces out of the box, with no configuration necessary.
|
- Have dynamic workspaces out of the box, with no configuration necessary.
|
||||||
|
- Have instantaneous partial scaling support and monitors with different refresh rates
|
||||||
|
- Have live multi-monitor support without having to deal with xrandr/arandr.
|
||||||
|
- Have gestures without having to worry about bugs in `libinput-gestures`
|
||||||
|
- Drag and drop windows across monitors and switch focus between them, unlike bspwm
|
||||||
|
|
||||||
You should not use hyprland if:
|
You should not use hyprland if:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user