276 lines
9.7 KiB
Text
276 lines
9.7 KiB
Text
# 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 = ~/.config/hypr/scripts/.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
|
|
# from original hyprland config
|
|
exec-once = wlsunset -l 39.2 -L 118.6
|
|
exec-once = echo 'Xft.dpi:144' | xrdb -merge # fix xwayland scaling
|
|
exec = hypridle
|
|
|
|
#
|
|
# 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.
|
|
#
|
|
source = ~/.config/hypr/conf/window-rules.conf
|
|
# env vars
|
|
env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt5ct if you only have that
|
|
env = XDG_MENU_PREFIX,plasma- #this fix dolphin open with
|
|
# locales
|
|
env = LANG,en_GB.UTF-8
|
|
env = LC_CTYPE,en_GB.UTF-8"
|
|
env = LC_NUMERIC,en_GB.UTF-8
|
|
env = LC_TIME,en_SE.UTF-8
|
|
env = LC_COLLATE,en_GB.UTF-8
|
|
env = LC_MONETARY,zh_CN.UTF-8
|
|
env = LC_MESSAGES,en_GB.UTF-8
|
|
env = LC_PAPER,en_GB.UTF-8
|
|
env = LC_NAME,zh_CN.UTF-8
|
|
env = LC_ADDRESS,en_GB.UTF-8
|
|
env = LC_TELEPHONE,zh_CN.UTF-8
|
|
env = LC_MEASUREMENT,zh_CN.UTF-8
|
|
env = LC_IDENTIFICATION,en_GB.UTF-8
|
|
|
|
general {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
|
|
gaps_in = 5
|
|
gaps_out = 5
|
|
border_size = 2
|
|
col.active_border = rgba(81a1c1ee) 45deg
|
|
col.inactive_border = rgba(595959aa)
|
|
|
|
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 = 6
|
|
|
|
blur {
|
|
enabled = true
|
|
size = 5
|
|
passes = 1
|
|
new_optimizations = true
|
|
}
|
|
|
|
#dim_inactive = true
|
|
|
|
shadow {
|
|
enabled = true
|
|
range = 4
|
|
render_power = 3
|
|
color =rgba(1a1a1aee)
|
|
}
|
|
}
|
|
|
|
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 = true
|
|
}
|
|
|
|
xwayland {
|
|
force_zero_scaling = true # fix blur on x apps & use XFT for better scaling
|
|
}
|
|
|
|
misc {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
vfr = true
|
|
}
|
|
|
|
# Example per-device config
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
|
# device:epic-mouse-v1 {
|
|
# sensitivity = -0.5
|
|
# }
|
|
|
|
windowrule = float,title:^(galculator|org.gnome.Calculator|azote)$
|
|
windowrule = idleinhibit fullscreen,class:^.*$$
|
|
#windowrule = pseudo,fcitx
|
|
# waylyrics windowrule for desktop lyrics
|
|
windowrulev2 = float,class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = pin,class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = nofocus, class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = noblur, class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = noborder, class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = noshadow,class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = pseudo,class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = move 0 40,class:(io.github.waylyrics.Waylyrics)
|
|
windowrulev2 = size 100% 16%,class:(io.github.waylyrics.Waylyrics)
|
|
# waydroid windowrule
|
|
windowrulev2 = noborder,class:(Waydroid)
|
|
windowrulev2 = noshadow,class:(Waydroid)
|
|
windowrulev2 = nomaxsize,class:(Waydroid)
|
|
|
|
# shimeji
|
|
#windowrule = float, com-group_finity-mascot-Main
|
|
#windowrule = noblur, com-group_finity-mascot-Main
|
|
#windowrule = nofocus, com-group_finity-mascot-Main
|
|
#windowrule = noshadow, com-group_finity-mascot-Main
|
|
#windowrule = noborder, com-group_finity-mascot-Main
|
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
$mainMod = SUPER
|
|
|
|
# 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.
|
|
$menu = rofi -show drun
|
|
bind = $mainMod, X, exec, $exit
|
|
bind = $mainMod, E, exec, $filemanager
|
|
bind = ALT, F1, exec, $launcher
|
|
bind = $mainMod, V, exec, nwg-clipman
|
|
bind = $mainMod, T, exec, $term
|
|
bind = $mainMod, R, exec, $menu
|
|
bind = $mainMod, L, exec, gtklock
|
|
bind = CTRL + ALT, DELETE, exec, nwg-bar
|
|
bind = $mainMod + SHIFT, C, exec, hyprpicker -a
|
|
bind = ALT, SPACE, exec, rofi -show combi -modes combi -combi-modes "drun,run,recursivebrowser"
|
|
# Show/hide the dock, if started
|
|
bind = ALT, D, exec, pkill -10 nwg-dock
|
|
|
|
bind = $mainMod, L, 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, C, killactive,
|
|
bind = $mainMod, C, killactive,
|
|
bind = ALT, F4, killactive,
|
|
bind = $mainMod SHIFT, M, exit,
|
|
#bind = $mainMod, Space, togglefloating,
|
|
bind = $mainMod, F, togglefloating,
|
|
bind = $mainMod SHIFT, C, exec, hyprctl reload # reload Hyprland
|
|
bind = $mainMod SHIFT, Z, movetoworkspace, special # move to the special workspace
|
|
bind = $mainMod, Z, togglespecialworkspace # show/hide special workspace
|
|
|
|
# Key binds for volume & brightness
|
|
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
bind = , XF86MonBrightnessUp, exec, brightnessctl s +5%
|
|
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%-
|
|
|
|
bind = ALT, Tab, exec,rofi -show window # (dwindle)
|
|
bind = $mainMod, P, pseudo, # (dwindle)
|
|
bind = $mainMod, A, layoutmsg, cycleprev # (master)
|
|
bind = $mainMod, S, layoutmsg, swapwithmaster # (master)
|
|
bind = $mainMod, D, layoutmsg, cyclenext # (master)
|
|
|
|
# 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 = $mainMod SHIFT, S, exec, screenshot swappy
|
|
# bind = SHIFT+CONTROL, Print, exec, screenshot region # or selected region w/o swappy
|
|
|
|
# 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 WINDOW with mainMod SHIFT + arrow keys
|
|
bind = $mainMod SHIFT, left, movewindow, l
|
|
bind = $mainMod SHIFT, right, movewindow, r
|
|
bind = $mainMod SHIFT, up, movewindow, u
|
|
bind = $mainMod SHIFT, 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, 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
|
|
|
|
# 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 = , right, resizeactive, 10 0
|
|
binde = , left, resizeactive, -10 0
|
|
binde = , up, resizeactive, 0 -10
|
|
binde = , down, 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
|