dotfiles/hypr/hyprland.conf
2024-01-16 22:40:26 -06:00

138 lines
3.2 KiB
Plaintext
Executable File

# Monitor
monitor=,highrr,auto,1.00
# Startup
exec-once = hyprpaper
exec-once = waybar -c ~/.config/waybar/config.json
exec-once = pulseaudio
exec-once = linux-discord-rich-presence --config ~/.config/linux-discord-rich-presencerc
exec-once = syncthing --no-browser
# Settings
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 2
touchpad {
natural_scroll = no
}
sensitivity = 0
}
general {
gaps_in = 5
gaps_out = 10
border_size = 0
layout = dwindle
}
decoration {
rounding = 10
blur {
enabled = false
size = 3
passes = 1
}
drop_shadow = false
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
active_opacity = 0.75
inactive_opacity = 0.75
}
animations {
enabled = yes
animation = windows, 1, 8, default
animation = windowsOut, 1, 8, default
animation = border, 1, 8, default
animation = borderangle, 1, 8, default
animation = fade, 1, 8, default
animation = workspaces, 1, 8, default, slidefade 80%
}
dwindle {
pseudotile = yes
preserve_split = yes
}
master {
new_is_master = true
}
gestures {
workspace_swipe = off
}
misc {
vfr = true
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
}
device:epic-mouse-v1 {
sensitivity = -0.5
}
# Window rules
windowrule = float, ^(SnakePlusPlus)$
windowrule = center, ^(SnakePlusPlus)$
# General binds
$mainMod = SUPER
bind = $mainMod, RETURN, exec, alacritty
bind = $mainMod SHIFT, P, pseudo
bind = $mainMod SHIFT, Q, killactive
bind = $mainMod SHIFT, L, exec, swaylock -e -c 000000
bind = $mainMod, M, exit,
bind = $mainMod, F, fullscreen
bind = $mainMod, SPACE, togglefloating
bind = $mainMod, S, exec, wofi --show drun
bind = $mainMod SHIFT, S, exec, hyprshot -m region --clipboard-only
# Laptop binds
binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
binde = , XF86MonBrightnessUp, exec, brightnessctl set 5%+
binde = , XF86AudioMute, exec, pulseaudio-ctl mute
binde = , XF86AudioLowerVolume, exec, pulseaudio-ctl down
binde = , XF86AudioRaiseVolume, exec, pulseaudio-ctl up
# Move focus
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# Switch workspaces with mainMod + [0-9]
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
# 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
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# sets repeatable binds for resizing the active window
binde = $mainMod, right, resizeactive, 10 0
binde = $mainMod, left, resizeactive, -10 0
binde = $mainMod, up, resizeactive, 0 -10
binde = $mainMod, down, resizeactive, 0 10