dotfiles/hyprland/.config/hypr/hyprland.conf

188 lines
5.4 KiB
Plaintext
Raw Normal View History

2024-08-27 18:32:33 -05:00
# vim: set ft=config:
# 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
2024-08-27 19:12:27 -05:00
# Source in autostarts
source = ~/.config/hypr/autostart.conf
2024-08-27 18:32:33 -05:00
# Set programs that you use
2024-08-27 19:12:27 -05:00
$terminal = foot
2024-08-27 18:32:33 -05:00
# Some default env vars.
env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
2024-08-27 19:12:27 -05:00
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,preferred,auto,1.3333
monitor=,preferred,auto,auto
2024-08-27 18:32:33 -05:00
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 to 1.0, 0 means no modification.
}
general {
2024-08-27 19:12:27 -05:00
# https://wiki.hyprland.org/Configuring/Variables/
gaps_in = 8
gaps_out = 8
border_size = 4
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.active_border = rgba(83a598ff)
col.inactive_border = rgba(32302fff)
2024-08-27 18:32:33 -05:00
layout = dwindle
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10
blur {
enabled = true
size = 3
passes = 1
}
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
2024-08-27 19:12:27 -05:00
col.shadow = rgba(282828ee)
2024-08-27 18:32:33 -05:00
}
animations {
2024-08-27 19:12:27 -05:00
# https://wiki.hyprland.org/Configuring/Animations/
2024-08-27 18:32:33 -05:00
enabled = yes
2024-08-27 19:12:27 -05:00
bezier = snappy, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 2, snappy
animation = windowsIn, 1, 1, default
animation = windowsOut, 1, 3, default, popin 80%
animation = border, 1, 3, default
2024-08-27 18:32:33 -05:00
animation = borderangle, 1, 8, default
2024-08-27 19:12:27 -05:00
animation = fade, 1, 3, default
animation = workspaces, 1, 1.5, snappy
2024-08-27 18:32:33 -05:00
}
dwindle {
2024-08-27 19:12:27 -05:00
# https://wiki.hyprland.org/Configuring/Dwindle-Layout/
pseudotile = yes
2024-08-27 18:32:33 -05:00
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off
}
misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
name = epic-mouse-v1
sensitivity = -0.5
}
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
2024-08-27 19:12:27 -05:00
# Keybinds
# https://wiki.hyprland.org/Configuring/Binds/ for more
2024-08-27 18:32:33 -05:00
$mainMod = ALT
# Program opening and closing
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, Q, killactive,
2024-08-27 19:12:27 -05:00
bind = $mainMod, Space, exec, wofi -i --show drun
2024-08-27 18:32:33 -05:00
#bind = $mainMod, M, exit,
bind = $mainMod, T, pseudo, # dwindle
bind = $mainMod, F, togglefloating,
bind = $mainMod Shift, F, fullscreen
bind = $mainMod, R, togglesplit, # dwindle
# Dunst management
bind = $mainMod Shift, Space, exec, dunstctl close
bind = $mainMod Shift, Return, exec, dunstctl close-all
bind = $mainMod Shift, D, exec, dunstctl history-pop
bind = $mainMod Shift, O, exec, dunstctl context
# Pulse controls
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume 0 +5%
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume 0 -5%
# Screenshots
bind = $mainMod, O, exec, grim -g "$(slurp -d)" - | wl-copy
# pavucontrol controls
bind = $mainMod, P, exec, pgrep pavucontrol || pavucontrol
bind = $mainMod Shift, P, exec, pkill pavucontrol
# Change focus
bind = $mainMod, h, movefocus, l
bind = $mainMod, j, movefocus, d
bind = $mainMod, k, movefocus, u
bind = $mainMod, l, movefocus, r
# Move the focused window around
bind = $mainMod Shift, h, movewindow, l
bind = $mainMod Shift, j, movewindow, d
bind = $mainMod Shift, k, movewindow, u
bind = $mainMod Shift, l, movewindow, r
# 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
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
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
2024-08-27 19:12:27 -05:00
bind = $mainMod, Period, workspace, e+1
bind = $mainMod, Comma, workspace, e-1
2024-08-27 18:32:33 -05:00
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow