238 lines
6.5 KiB
Text
238 lines
6.5 KiB
Text
################
|
|
### MONITORS ###
|
|
################
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
monitor=,preferred,auto,auto
|
|
|
|
|
|
###################
|
|
### MY PROGRAMS ###
|
|
###################
|
|
|
|
$terminal = kitty
|
|
$fileManager = nautilus
|
|
$menu = wofi --show drun
|
|
|
|
|
|
#################
|
|
### AUTOSTART ###
|
|
#################
|
|
|
|
exec-once = waybar & hyprpaper & nm-applet --indicator & blueman-applet
|
|
|
|
|
|
#############################
|
|
### ENVIRONMENT VARIABLES ###
|
|
#############################
|
|
|
|
env = XCURSOR_SIZE,24
|
|
env = HYPRCURSOR_SIZE,24
|
|
env = XCURSOR_THEME, BreezeX-RosePine-Linux
|
|
|
|
|
|
#####################
|
|
### LOOK AND FEEL ###
|
|
#####################
|
|
|
|
general {
|
|
gaps_in = 5
|
|
gaps_out = 10
|
|
|
|
border_size = 2
|
|
|
|
col.active_border = rgb(E6C873)
|
|
col.inactive_border = rgba(595959aa)
|
|
|
|
resize_on_border = false
|
|
|
|
allow_tearing = false
|
|
|
|
layout = dwindle
|
|
}
|
|
|
|
decoration {
|
|
rounding = 10
|
|
|
|
active_opacity = 1.0
|
|
inactive_opacity = 1.0
|
|
|
|
drop_shadow = true
|
|
shadow_range = 4
|
|
shadow_render_power = 3
|
|
col.shadow = rgba(1a1a1aee)
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
|
blur {
|
|
enabled = true
|
|
size = 3
|
|
passes = 1
|
|
|
|
vibrancy = 0.1696
|
|
}
|
|
}
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
|
animations {
|
|
enabled = true
|
|
|
|
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
|
|
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
|
|
}
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
dwindle {
|
|
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
preserve_split = true # You probably want this
|
|
}
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
master {
|
|
new_status = master
|
|
}
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
|
misc {
|
|
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
|
}
|
|
|
|
|
|
#############
|
|
### INPUT ###
|
|
#############
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#input
|
|
input {
|
|
kb_layout = fr
|
|
kb_variant =
|
|
kb_model =
|
|
kb_options =
|
|
kb_rules =
|
|
|
|
follow_mouse = 1
|
|
|
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
|
|
touchpad {
|
|
natural_scroll = true
|
|
}
|
|
|
|
numlock_by_default = true
|
|
}
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
|
gestures {
|
|
workspace_swipe = true
|
|
}
|
|
|
|
# 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
|
|
}
|
|
|
|
|
|
###################
|
|
### KEYBINDINGS ###
|
|
###################
|
|
|
|
# main key
|
|
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
|
|
# basic binds
|
|
bind = $mainMod, Q, exec, $terminal
|
|
bind = $mainMod, C, killactive,
|
|
bind = $mainMod, M, exit,
|
|
bind = $mainMod, E, exec, $fileManager
|
|
bind = $mainMod, V, togglefloating,
|
|
bind = $mainMod, R, exec, $menu
|
|
bind = $mainMod, P, pseudo, # dwindle
|
|
bind = $mainMod, J, togglesplit, # dwindle
|
|
bind = $mainMod, S, exec, grim - | wl-copy
|
|
bind = $mainMod SHIFT, S, exec, grim -g "$(slurp -d)" - | wl-copy
|
|
bind = $mainMod, L, exec, hyprlock
|
|
|
|
# move focus
|
|
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, ampersand, workspace, 1
|
|
bind = $mainMod, eacute, workspace, 2
|
|
bind = $mainMod, quotedbl, workspace, 3
|
|
bind = $mainMod, apostrophe, workspace, 4
|
|
bind = $mainMod, parenleft, workspace, 5
|
|
bind = $mainMod, minus, workspace, 6
|
|
bind = $mainMod, egrave, workspace, 7
|
|
bind = $mainMod, underscore, workspace, 8
|
|
bind = $mainMod, ccedilla, workspace, 9
|
|
bind = $mainMod, agrave, workspace, 10
|
|
|
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
bind = $mainMod SHIFT, ampersand, movetoworkspace, 1
|
|
bind = $mainMod SHIFT, eacute, movetoworkspace, 2
|
|
bind = $mainMod SHIFT, quotedbl, movetoworkspace, 3
|
|
bind = $mainMod SHIFT, apostrophe, movetoworkspace, 4
|
|
bind = $mainMod SHIFT, parenleft, movetoworkspace, 5
|
|
bind = $mainMod SHIFT, minus, movetoworkspace, 6
|
|
bind = $mainMod SHIFT, egrave, movetoworkspace, 7
|
|
bind = $mainMod SHIFT, underscore, movetoworkspace, 8
|
|
bind = $mainMod SHIFT, ccedilla, movetoworkspace, 9
|
|
bind = $mainMod SHIFT, agrave, 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
|
|
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
|
|
|
|
bind = $mainMod SHIFT, right, resizeactive, 50 0
|
|
bind = $mainMod SHIFT, left, resizeactive, -50 0
|
|
bind = $mainMod SHIFT, up, resizeactive, 0 -50
|
|
bind = $mainMod SHIFT, down, resizeactive, 0 50
|
|
|
|
# Laptop multimedia keys for volume and LCD brightness
|
|
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
|
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
bindel = ALT ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+
|
|
bindel = ALT ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-
|
|
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s +10%
|
|
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
bindel = ,XF86AudioNext, exec, playerctl next
|
|
bindel = ,XF86AudioPrev, exec, playerctl previous
|
|
bindel = ,XF86AudioPlay, exec, playerctl play-pause
|
|
|
|
##############################
|
|
### WINDOWS AND WORKSPACES ###
|
|
##############################
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
|
|
|
# Example windowrule v1
|
|
# windowrule = float, ^(kitty)$
|
|
|
|
# Example windowrule v2
|
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
|
|
|
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
|