dotfiles-remastered/.config/hypr/hyprland.conf

188 lines
4.8 KiB
Plaintext

monitor=,preferred,auto,auto
# Load colors
source = ~/.config/hypr/nord-colors.conf
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
numlock_by_default = true
follow_mouse = 1
touchpad {
natural_scroll = no
}
}
general {
gaps_in = 5
gaps_out = 3
border_size = 2
col.active_border = $color3
col.inactive_border = $color0
layout = dwindle
}
decoration {
rounding = 5
blur {
enabled = true
special = false
size = 2
}
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
dim_special = 0.6
}
misc {
# disable_hyprland_logo = true
# disable_splash_rendering = true
force_hypr_chan = true
animate_manual_resizes = true
animate_mouse_windowdragging = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
enable_swallow = true
# swallow_regex = class regex
}
animations {
enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
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
preserve_split = yes
}
master {
new_is_master = true
}
gestures {
workspace_swipe = off
}
binds {
workspace_back_and_forth = true
allow_workspace_cycles = true
}
device:zly-zelotes-game-mouse {
sensitivity = -1
}
# Window and layer rules
layerrule = noanim,rofi
windowrulev2 = workspace special:spotify silent, class:^(Spotify)$
windowrulev2 = workspace special:term silent, class:^(scratchpad)$
windowrulev2 = workspace 7 silent, class:^(TeamSpeak 3)$
windowrulev2 = workspace 7 silent, class:^(discord)$
windowrulev2 = workspace 1 silent, class:^(firefox)$
# Env
env = MOZ_ENABLE_WAYLAND,1
env = SDL_VIDEODRIVER,wayland
env = GDK_BACKEND=wayland,x11
env = QT_QPA_PLATFORM=wayland;xcb
env = XCURSOR_SIZE=24
# Autostart
exec-once = waybar
exec-once = swaync
exec-once = hyprpaper
exec-once = swayidle -w
exec-once = alacritty --class scratchpad
# Keybinds
$mainMod = SUPER
$mainModShift = SUPER_SHIFT
bind = $mainMod, Return, exec, alacritty
#bind = $mainModShift, Q, exec, $XDG_CONFIG_HOME/hypr/killscript.sh
bind = $mainMod, Tab, focuscurrentorlast
bind = $mainModShift, Q, killactive
bind = $mainModShift, E, exec, $XDG_CONFIG_HOME/rofi/powermenu.sh
bind = $mainModShift, Space, togglefloating
bind = $mainMod, D, exec, rofi -show drun -theme $XDG_CONFIG_HOME/rofi/launcher.rasi
bind = $mainMod, M, exec, $XDG_CONFIG_HOME/waybar/mute-toggle.sh
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, F, fullscreen
bind =, Print, exec, $XDG_DATA_HOME/scripts/share-screenshot.sh
# Audio buttons
binde =, XF86AudioRaiseVolume, exec, playerctl --player=spotify,%any volume 0.05+
binde =, XF86AudioLowerVolume, exec, playerctl --player=spotify,%any volume 0.05-
bind =, XF86AudioNext, exec, playerctl --player=spotify,%any next
bind =, XF86AudioPrev, exec, playerctl --player=spotify,%any previous
bind =, XF86AudioPlay, exec, playerctl --player=spotify,%any play-pause
# 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
# Move windows with mainMod + Shift + arrow
bind = $mainModShift, left, movewindow, l
bind = $mainModShift, right, movewindow,r
bind = $mainModShift, up, movewindow, u
bind = $mainModShift, down, movewindow, 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, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Scratchpad
bind = $mainMod, F1, togglespecialworkspace, term
bind = $mainMod, F2, togglespecialworkspace, spotify