dots/src/.config/hypr/hyprland.conf
2024-07-29 02:03:15 +03:00

150 lines
No EOL
3.7 KiB
Text

source=~/.config/hypr/theme.conf
# This is for my workstation.
# monitor=,highres,auto,auto is for my laptop.
monitor=HDMI-A-1, 1920x1080@144, 1920x0, 1
monitor=DP-3, 1920x1080@60, 0x0, 1
workspace=HDMI-A-1,5
workspace=DP-3,1
monitor=,highres,auto,auto
exec-once=/usr/lib/polkit-kde-authentication-agent-1
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=~/.config/hypr/portal.sh
exec-once=swww init && swww img ~/wallpaper.jpg
exec-once=nm-applet
exec-once=ags
exec-once=~/.config/hypr/setgtktheme.sh
exec=~/.config/hypr/import-gsettings.sh
env = XCURSOR_SIZE,24
input {
kb_layout = lv
kb_variant =
kb_model =
kb_options = compose:menu
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0
}
general {
gaps_in = 5
gaps_out = 5
border_size = 2
layout = dwindle
col.active_border = $pink
col.inactive_border = $surface0
}
decoration {
rounding = 0
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow=$surface0
col.shadow_inactive=$surface0
}
animations {
enabled = false
bezier = overshot, 0.05, 0.9, 0.1, 1.1
animation = windows, 1, 7, overshot
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
new_status = master
}
gestures {
workspace_swipe = off
}
misc {
disable_hyprland_logo = yes
disable_splash_rendering = yes
}
$mainMod = ALT
bind = $mainMod, Q, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, Z, exec, foot -a floating
bind = $mainMod, E, exec, thunar
bind = $mainMod, O, exec, swaylock -i ~/wallpaper.png
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, rofi -show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = SHIFT_ALT,S, exec, grim -g "$(slurp)" - | wl-copy
#bind = $mainMod, left, movefocus, l
#bind = $mainMod, right, movefocus, r
#bind = $mainMod, up, movefocus, u
#bind = $mainMod, down, movefocus, d
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
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
# bind = $mainMod, mouse_down, workspace, e+1
# bind = $mainMod, mouse_up, workspace, e-1
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
windowrulev2 = float, class:floating
windowrulev2 = size 800 800, class:winecfg.exe
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
windowrulev2 = noblur,class:^(xwaylandvideobridge)$
windowrulev2 = suppressevent maximize, class:.*