.config -- adds hyprland files

This commit is contained in:
2025-12-21 13:02:04 -03:00
commit 8598c6b614
12 changed files with 844 additions and 0 deletions

233
.config/hypr/hyprland.conf Normal file
View File

@@ -0,0 +1,233 @@
# Setup monitors
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=DP-3, 2560x1440@165, auto, 1, bitdepth, 10
exec-once = ~/.config/hypr/xdg-portal-hyprland
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = waybar
exec-once = blueman-applet
exec-once = nm-applet --indicator
# exec-once = steam
# exec-once = equibop
# exec-once = ayugram
exec = swaybg -m fill -i ~/.config/hypr/moon-over-mondstat.jpg
exec = swaync
exec = wl-gammarelay
input {
kb_layout = br
kb_variant = abnt2
kb_options = caps:swapescape
repeat_rate = 50
repeat_delay = 300
follow_mouse = false
sensitivity = 0
accel_profile = flat
touchpad {
natural_scroll = true
}
}
general {
gaps_in = 5
# gaps_out = 20
gaps_out = 10
border_size = 2
# border_size = 1
# col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
# col.active_border= rgb(cdd6f4)
# col.inactive_border = rgba(595959aa)
resize_on_border = true
allow_tearing = true
layout = dwindle
}
misc {
disable_hyprland_logo = yes
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10
blur {
enabled = true
size = 3
passes = 1
}
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
}
animations {
enabled = yes
# 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 = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_status = true
}
# gestures {
# # See https://wiki.hyprland.org/Configuring/Variables/ for more
# workspace_swipe = true
# workspace_swipe_min_fingers = true
# }
gesture = 3, horizontal, workspace
binds {
allow_workspace_cycles = true
}
# Example windowrule v1
# windowrulev2 = float, class:^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# rules below would make the specific app transparent
# previous windowrule (i have no idea why it caused issues to keep them as v1)
# windowrulev2 = float, class:^(pavucontrol)$
# windowrulev2 = float, class:^(nm-connection-editor)$
# windowrulev2 = float, class:^(chromium)$
# windowrulev2 = float, class:^(thunar)$
# windowrulev2 = float, title:^(btop)$
# windowrulev2 = opacity 0.95 0.6, class:^(kitty)$
# windowrulev2 = animation popin, class:^(kitty)$, title:^(Aggiornamenti)$
# windowrulev2 = animation popin, class:^(thunar)$
# windowrulev2 = opacity 0.95 0.8, class:^(thunar)$
# windowrulev2 = opacity 0.95 0.8, class:^(VSCodium)$
# windowrulev2 = opacity 0.95 0.6, animation popin, class:^(Chromium)$
windowrulev2 = move cursor -3% -105%, class:^(rofi)$
windowrulev2 = noanim, class:^(rofi)$
windowrulev2 = opacity 0.95 0.8, class:^(rofi)$
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, alacritty # Open the terminal
bind = $mainMod, W, killactive, # Close the active window
bind = $mainMod ALT, L, exec, swaylock # Lock the screen
bind = $mainMod ALT, K, exec, wlogout -b 6 -T 400 -B 400 --protocol layer-shell # Show the logout window
bind = $mainMod SHIFT, M, exit, # Exit Hyprland all together no (force quit Hyprland)
bind = $mainMod, V, togglefloating, # Allow a window to float
bind = $mainMod, R, exec, rofi -show drun # Show the graphicall app launcher
bind = $mainMod, P, pseudo, # Toggle pseudo-split
bind = $mainMod, J, togglesplit, # Toggle split
# bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f -# Take a screenshot
bind = $mainMod, S, exec, grimblast --freeze copysave area /media/hd/clouds/nextcloud-pudim/home/pictures/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png - # Take a screenshot
# bind = $mainMod SHIFT, B, exec, ~/.config/waybar/scripts/launch.sh # Reload waybar
bind = $mainMod SHIFT, B, exec, ~/.config/waybar/scripts/reload-waybar.sh # Reload waybar
bind = $mainMod SHIFT, N, exec, hyprctl reload # Reload waybar
bind = $mainMod, F, fullscreen
# Changing Screen Temperature with wl-gammarelay
bind= $mainMod CTRL, 0, exec,busctl --user -- set-property rs.wl-gammarelay / rs.wl.gammarelay Temperature q 6500
bind= $mainMod CTRL, Down, exec,busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -500
bind= $mainMod CTRL, Up, exec,busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n +500
# 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 focus with mainMod + VIM motions
unbind = $mainMod, J
unbind = $mainMod, K
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, j, movefocus, d
bind = $mainMod, k, movefocus, u
# 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 on the left or on the right of the current workspace
bind = $mainMod SHIFT, right, movetoworkspace, +1
bind = $mainMod SHIFT, left, movetoworkspace, -1
unbind = $mainMod SHIFT, J
unbind = $mainMod SHIFT, K
bind = $mainMod SHIFT, h, movetoworkspace, -1
bind = $mainMod SHIFT, l, movetoworkspace, +1
# Switch current workspace to the workspace on the left or on the right of the current workspace
bind = CTRL ALT, right, workspace, +1
bind = CTRL ALT, left, workspace, -1
# 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
# 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, +1
bind = $mainMod, mouse_up, workspace, -1
# Customs
bind = WIN, F1, exec, ~/.config/hypr/gamemode.sh
bind = $mainMod SHIFT, B, exec, ~/.config/waybar/scripts/launch.sh
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
windowrule = suppressevent maximize, class:.*