Created
January 11, 2025 23:37
-
-
Save practicalli-johnny/2fc40b133aa9c5bde2a094cb5916a5fb to your computer and use it in GitHub Desktop.
Hprland config from nwg-shell ISO install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
# | |
# Some default env vars.t | |
env = XCURSOR_SIZE,24 | |
decoration { | |
# See https://wiki.hyprland.org/Configuring/Variables/ for more | |
rounding = 5 | |
blur { | |
enabled = true | |
size = 3 | |
passes = 1 | |
new_optimizations = true | |
} | |
# drop_shadow = true | |
# shadow_range = 4 | |
# shadow_render_power = 3 | |
# col.shadow = 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 = 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 | |
# 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, W, exec, $browser | |
bind = $mainMod, E, exec, $editor | |
bind = $mainMod, X, exec, $exit | |
bind = $mainMod, F, exec, $filemanager | |
bind = ALT, F1, exec, $launcher | |
bind = ALT, C, exec, nwg-clipman | |
bind = $mainMod, T, exec, $term | |
bind = $mainMod, F2, exec, $term | |
# 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 = ALT, Q, killactive, | |
bind = ALT, F4, killactive, | |
bind = $mainMod SHIFT, M, exit, | |
bind = $mainMod, Space, togglefloating, | |
bind = $mainMod, V, 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 | |
bind = ALT, Tab, togglesplit, # (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 = 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This content was generated by nwg-shell-config. Do not modify it manually. | |
# VARIABLES | |
$term = kitty | |
$browser = MOZ_ENABLE_WAYLAND=1 firefox | |
$filemanager = thunar | |
$editor = mousepad | |
$launcher = nwg-drawer | |
$exit = $launcher | |
# AUTOSTART | |
exec-once = wlsunset -t 4500 -T 6500 -l 49.4153 -L 2.819 -g 1.0 | |
exec-once = swaync -c /home/practicalli-johnny/.config/swaync/hyprland.json -s /home/practicalli-johnny/.config/swaync/hyprland-1.css | |
exec-once = nm-applet --indicator | |
exec-once = wl-paste --type text --watch cliphist store | |
exec-once = wl-paste --type image --watch cliphist store | |
exec = nwg-drawer -r -c 6 -is 64 -fscol 2 -s hyprland-1.css -term kitty -ft -pbexit 'nwg-dialog -p exit-hyprland -c "hyprctl dispatch exit"' -pblock 'nwg-lock' -pbpoweroff 'nwg-dialog -p poweroff -c "systemctl -i poweroff"' -pbreboot 'nwg-dialog -p reboot -c "systemctl reboot"' -pbsleep 'nwg-dialog -p sleep -c "systemctl suspend"' -pbsize 48 | |
exec = nwg-panel -c hyprland-1 -s hyprland-1.css | |
exec = nwg-dock-hyprland -d -p bottom -l overlay -a center -i 32 -hd 20 -s hyprland-1.css | |
exec = swayidle timeout 1200 nwg-lock timeout 1800 'systemctl suspend' | |
exec-once = nwg-update-indicator | |
exec = nwg-screenshot-applet | |
# GENERAL SETTINGS | |
general { | |
border_size = 1 | |
no_border_on_floating = false | |
gaps_in = 3 | |
gaps_out = 3 | |
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg | |
col.inactive_border = rgba(595959aa) | |
layout = dwindle | |
extend_border_grab_area = true | |
hover_icon_on_border = true | |
} | |
# DWINDLE LAYOUT | |
dwindle { | |
pseudotile = false | |
force_split = 0 | |
preserve_split = true | |
smart_split = false | |
smart_resizing = true | |
special_scale_factor = 0.8 | |
split_width_multiplier = 1.0 | |
use_active_for_splits = true | |
default_split_ratio = 1.0 | |
} | |
# MASTER LAYOUT | |
master { | |
allow_small_split = false | |
special_scale_factor = 0.8 | |
mfact = 0.55 | |
new_on_top = false | |
orientation = left | |
inherit_fullscreen = true | |
always_center_master = false | |
} | |
# INPUT DEVICES | |
input { | |
kb_layout = us | |
repeat_rate = 25 | |
repeat_delay = 600 | |
follow_mouse = 1 | |
mouse_refocus = true | |
float_switch_override_focus = 1 | |
touchpad { | |
disable_while_typing = true | |
scroll_factor = 1.0 | |
tap-to-click = true | |
} | |
} | |
# MISC SETTINGS | |
misc { | |
disable_hyprland_logo = true | |
disable_splash_rendering = true | |
vrr = 0 | |
mouse_move_enables_dpms = false | |
key_press_enables_dpms = false | |
layers_hog_keyboard_focus = true | |
focus_on_activate = false | |
mouse_move_focuses_monitor = true | |
} | |
# KEY BINDINGS | |
bindr = SUPER, SUPER_L, exec, $launcher | |
# LAYER RULES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monitor=,preferred,auto,1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blank by default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment