209 lines
7.5 KiB
Plaintext
209 lines
7.5 KiB
Plaintext
# nwg-shell Hyprland config file
|
|
#
|
|
# The nwg-shell-config utility generates a part of settings for you:
|
|
# General, Input devices, Touchpad, Dwindle layout, Master layout.
|
|
# Decoration, animations, gestures and per-device config are left to be configured by yourself.
|
|
# Refer to the Hyprland wiki at https://wiki.hyprland.org for more information.
|
|
|
|
#
|
|
# Monitors & workspaces: nwg-displays generates 2 files, which we include here:
|
|
#
|
|
source = ~/.config/hypr/monitors.conf
|
|
source = ~/.config/hypr/workspaces.conf
|
|
|
|
#
|
|
# Autostart. Feel free to add your own entries.
|
|
# Shell components will be started in the includes.conf file, which we include below.
|
|
#
|
|
exec = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
exec-once = ~/.azotebg-hyprland # Wallpaper
|
|
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
|
|
#
|
|
# Include settings generated by nwg-shell-config
|
|
#
|
|
source = ~/.config/hypr/includes.conf
|
|
|
|
#
|
|
# All the settings below are up to you. We don't touch them in the shell config utility.
|
|
#
|
|
|
|
decoration {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
rounding = 0
|
|
blur {
|
|
enabled = true
|
|
size = 3
|
|
passes = 1
|
|
new_optimizations = true
|
|
}
|
|
}
|
|
|
|
animations {
|
|
enabled = true
|
|
|
|
# Some 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
|
|
}
|
|
|
|
gestures {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
workspace_swipe = false
|
|
}
|
|
|
|
# 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, ^(galculator|azote)$
|
|
windowrule = float,title:^(Postęp działań na plikach)$
|
|
# Example windowrule v2
|
|
windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
|
windowrulev2 = float,title:^(Potwierdzenie zastąpienia plików)$
|
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
$mainMod = SUPER
|
|
|
|
$quicklaunch = walker
|
|
|
|
# KEY BINDINGS, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
# If you happen to change some key bindings, you may also edit ~/.local/share/nwg-shell-config/help-hyprland.pango
|
|
|
|
# We've defined $term, $editor and so on in includes.conf.
|
|
bind = $mainMod, E, exec, uwsm app -- $filemanager
|
|
bind = $mainMod, W, exec, uwsm app -- $browser
|
|
bind = $mainMod Shift, E, exec, uwsm app -- $editor
|
|
bind = $mainMod, X, exec, uwsm app -- $quicklaunch
|
|
bind = $mainMod Shift, X, exec, uwsm app -- $launcher
|
|
bind = $mainMod, C, exec, uwsm app -- nwg-clipman
|
|
bind = $mainMod, Return, exec, uwsm app -T
|
|
bind = $mainMod, F2, exec, uwsm app -- $term
|
|
|
|
# Show/hide the dock, if started
|
|
bind = ALT, D, exec, pkill -10 nwg-dock
|
|
|
|
bind = $mainMod, Escape, exec, nwg-lock # screen locker, according to shell settings
|
|
bind = $mainMod, F1, exec, nwg-shell-help # help window
|
|
|
|
bind = $mainMod SHIFT, F, fullscreen
|
|
bind = $mainMod, I, pin
|
|
bind = $mainMod, Q, killactive,
|
|
bind = $mainMod SHIFT, Escape, exit,
|
|
bind = $mainMod, Space, togglefloating,
|
|
bind = $mainMod SHIFT, C, exec, hyprctl reload # reload Hyprland
|
|
bind = $mainMod SHIFT, S, movetoworkspace, special # move to the special workspace
|
|
bind = $mainMod, S, togglespecialworkspace # show/hide special workspace
|
|
|
|
bind = ALT, Tab, togglesplit, # (dwindle)
|
|
bind = $mainMod, P, pseudo, # (dwindle)
|
|
|
|
# SCREENSHOT (/usr/local/bin/screenshot)
|
|
bind = , Print, exec, screenshot fullscreen # full screen
|
|
bind = CONTROL, Print, exec, screenshot display # focused display
|
|
bind = $mainMod SHIFT+CONTROL, Print, exec, screenshot focused # focused window
|
|
bind = SHIFT+CONTROL, Print, exec, screenshot swappy # selected region -> swappy
|
|
# bind = SHIFT+CONTROL, Print, exec, screenshot region # or selected region w/o swappy
|
|
|
|
# MOVE FOCUS with mainMod + arrow keys
|
|
bind = $mainMod, H, movefocus, l
|
|
bind = $mainMod, L, movefocus, r
|
|
bind = $mainMod, K, movefocus, u
|
|
bind = $mainMod, J, movefocus, d
|
|
|
|
# MOVE WINDOW with mainMod SHIFT + arrow keys
|
|
bind = $mainMod SHIFT, H, movewindow, l
|
|
bind = $mainMod SHIFT, L, movewindow, r
|
|
bind = $mainMod SHIFT, K, movewindow, u
|
|
bind = $mainMod SHIFT, J, movewindow, d
|
|
|
|
# Resize window with mainMod + CTRL + vim keys
|
|
bind = $mainMod CTRL, h, resizeactive,-25 0
|
|
bind = $mainMod CTRL, l, resizeactive,25 0
|
|
bind = $mainMod CTRL, k, resizeactive,0 -25
|
|
bind = $mainMod CTRL, j, resizeactive,0 25
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# 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 = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
|
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
|
|
# Requires playerctl
|
|
bindl = , XF86AudioNext, exec, playerctl -a next
|
|
bindl = , XF86AudioPause, exec, playerctl -a play-pause
|
|
bindl = , XF86AudioPlay, exec, playerctl -a play-pause
|
|
bindl = , XF86AudioPrev, exec, playerctl -a previous
|
|
|
|
# KEY BINDINGS SUBMAP TO RESIZE WINDOWS WITH ARROW KEYS
|
|
# switch to a submap called resize
|
|
bind = $mainMod, R, submap, resize
|
|
|
|
# start a submap called "resize"
|
|
submap = resize
|
|
|
|
# set repeatable binds for resizing the active window
|
|
binde = , H, resizeactive, 10 0
|
|
binde = , L, resizeactive, -10 0
|
|
binde = , K, resizeactive, 0 -10
|
|
binde = , J, resizeactive, 0 10
|
|
|
|
# use reset to go back to the global submap
|
|
bind = , escape, submap, reset
|
|
|
|
# will reset the submap, which will return to the global submap
|
|
submap = reset
|
|
# keybinds further down will be global again...
|
|
|
|
#
|
|
# HUD MESSAGES (must be defined after primary bindings).
|
|
# In case you find them annoying, delete the line below.
|
|
# You can also delete the ~/.config/hypr/hud.conf file afterwards.
|
|
#
|
|
source = ~/.config/hypr/hud.conf
|