Files
dotfiles/hypr/.config/hypr/hyprland.conf
2025-11-18 13:49:38 -05:00

304 lines
9.0 KiB
Plaintext

# debug: disable_logs = false
# https://wiki.hyprland.org/Configuring/Monitors
monitor=eDP-1,1920x1080@60,0x0,1
# --- Second monitor via HDMI-A ---
# Automatic/To the right, 165Hz
# monitor=,1920x1080@165,1920x0,1
# Second monitor on the left
# monitor=,1920x1080@165, -1920x0, 1
# UP
# Work monitor:
monitor= desc:Dell Inc. DELL U2412M YMYH14450KRL, 1920x1200@60, 0x-1200, 1
monitor= desc:Samsung Electric Company S22R35x H4TR502899, 1920x10800@75, 0x-1080, 1
# Home monitor:
monitor= desc:GIGA-BYTE TECHNOLOGY CO. LTD. G27F 2 23030B002769,1920x1080@165, auto-up, 1
# monitor=,1920x1080,auto,1
# Enabling mirror
monitor=HDMI-A-1, 1920x1080@60, 0x0, 1, mirror, eDP-1
# monitor=,highres,0x0,1,mirror, eDP-1
# 60 Hz
# monitor=,1920x1080@60,auto,1
# Home TV
# monitor=HDMI-A-1,1280x720@60,auto,1
# Execute your favorite apps at launch
exec-once = waybar
exec-once = hyprpaper
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = fcitx5 -d
exec-once = sudo modprobe v4l2loopback
exec-once = blueberry-tray
# Set programs that you use
$terminal = alacritty
$fileManager = nautilus
$menu = wofi
# Some default env vars.
env = XCURSOR_SIZE,12
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_variant = altgr-intl
kb_model =
kb_options =
kb_rules =
numlock_by_default = true
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = yes
clickfinger_behavior = true
}
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 4
gaps_out = 4
border_size = 3
col.active_border = rgba(24bcf2aa) rgba(bbff2ecc) rgba(fa1421aa) 20deg
col.inactive_border = rgba(b1b1b155)
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 = 20
blur {
enabled = true
size = 4
passes = 1
}
# drop_shadow = yes
# col.shadow = rgba(1a1a1aee)
}
animations {
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, .72,.39,.25,.92
animation = windows, 1, 4, default
animation = windowsOut, 1, 4, default, popin 100%
animation = windowsOut, 1, 3, default
animation = border, 1, 3, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
# animation = workspaces, 1, 6, default
animation = workspaces, 1, 8, default, fade
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # you probably want this
force_split = 2
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
}
# gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
# workspace_swipe = yes
#}
misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
#device: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 = nomaximizerequest, class:.* # You'll probably like this.
#windowrulev2 = nofullscreenrequest, class:*
# Floating windows by default
windowrulev2 = float, title:(Helvum)
windowrulev2 = float, title:(Yoshimi)
windowrulev2 = float, title:(Bluetooth)
windowrulev2 = float, class:(pavucontrol)
windowrulev2 = float, title:(ViberPC)
# Tiling windows by force
windowrulev2 = tile, class:(Vivaldi), title:(Vivaldi)
windowrulev2 = tile, title:(WPS)
windowrulev2 = tile, title:(Wine)
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, T, exec, $terminal
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod_SHIFT, Q, killactive,
# bind = $mainMod_SHIFT, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, period, exec, wofi-emoji
# bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Fullscreen
bind = $mainMod, F, fullscreen
bind = $mainMod_SHIFT, F, fullscreen, 1
# Resize windows, inspired by i3 config
bind = $mainMod CTRL, right, resizeactive, 50 0
bind = $mainMod CTRL, left, resizeactive, -50 0
bind = $mainMod CTRL, up, resizeactive, 0 -50
bind = $mainMod CTRL, down, resizeactive, 0 50
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, 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
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
# Some workspace customization
# workspace = 1, monitor:HDMI-A-1, default:true
# Move active window to position
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d
# Example special workspace (scratchpad)
bind = $mainMod, G, togglespecialworkspace, magic
bind = $mainMod SHIFT, G, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, m-1
bind = $mainMod, mouse_up , workspace, m+1
# Scroll to create new workspace
bind = $mainMod SHIFT, mouse_down, workspace, r-1
bind = $mainMod SHIFT, mouse_up , workspace, r+1
bind = $mainMod SHIFT, N, movetoworkspace, r+1
bind = $mainMod SHIFT, P, movetoworkspace, r-1
# Cycle through workspaces on the montior, relatively
bind = $mainMod, N, workspace, r+1
bind = $mainMod, P, workspace, r-1
# Swap windows from different monitors
bind = $mainMod, S, swapactiveworkspaces, 0 1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Binding Media Player Controls
bind = , XF86AudioPlay, exec, playerctl play-pause
binde = , XF86AudioNext, exec, playerctl next
binde = , XF86AudioPrev, exec, playerctl previous
# Bluetooth
bind = $mainMod, B, exec, blueberry
bind = $mainMod, Z, exec, playerctl play-pause
bind = $mainMod, X, exec, playerctl next
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 6%+
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 6%-
binde = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
# Binding Brightness Controls
binde = , XF86MonBrightnessUp, exec, brightnessctl set 3%+ -e -q
binde = , XF86MonBrightnessDown, exec, brightnessctl set 2%- -e -q
bind = $mainMod, Print, exec, gnome-screenshot -i
# Lockscreen
bind = $mainMod, L, exec, swaylock
# Screenshot
# Area shot, copy to clipboard
bind = $mainMod SHIFT, S, exec, grim -l 9 -g "$(slurp -d -w 0 -b bbddff99)" - | wl-copy -t image/png
bind = $mainMod CTRL SHIFT, S, exec, grim -l 9 -g "$(slurp -d -w 0 -b bbddff99)" - > $HOME/Screenshots/Screenshot_$(date +%F_%T).png && notify-send "Screenshot taken!"
# Color picker
bind = $mainMod SHIFT, C, exec, grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | tail -n 1 | cut -d ' ' -f 4 | wl-copy
# Wholescreen, save to $HOME/Screenshots/
bind = , Print, exec, grim - > $HOME/Screenshots/Screenshot_$(date +%F_%T).png
# Enviroment variables
env = GTK_THEME, adw-gtk3-dark:dark
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
# env = GTK_IM_MODULE, fcitx
# env = QT_IM_MODULE, fcitx
# env = XMODIFIERS, @im=fcitx
# NVIDIA
#env = LIBVA_DRIVER_NAME,nvidia
#env = XDG_SESSION_TYPE,wayland
#env = GBM_BACKEND,nvidia-drm
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
#env = WLR_NO_HARDWARE_CURSORS,1