Files
Dotfiles/hypr/hyprland.conf
T
2026-05-03 09:50:59 +02:00

501 lines
12 KiB
Plaintext

# #######################################################################################
# AUTOGENERATED HYPRLAND CONFIG.
# EDIT THIS CONFIG ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################
# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hypr.land/Configuring/
# Please note not all available settings / options are set here.
# For a full list, see the wiki
# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf
source = ./dms/colors.conf
################
### MONITORS ###
################
# See https://wiki.hypr.land/Configuring/Monitors/
monitor= eDP-1, 3072x1920@60, auto, auto
###################
### MY PROGRAMS ###
###################
# See https://wiki.hypr.land/Configuring/Keywords/
# Set programs that you use
$terminal = kitty
$fileManager = nautilus
# $menu = hyprlauncher
# $menu = rofi -show drun
$menu = qs -c noctalia-shell ipc call launcher toggle
#################
### AUTOSTART ###
#################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
exec-once = $terminal
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper
# exec-once = nm-applet
# exec-once = awww-daemon
# exec-once = blueman-applet
# exec-once = swaync
# exec-once = hyprpanel
# exec-once = hyprpaper
# exec-once = ashell & hyprpaper
exec-once = systemctl --user start hyprpolkitagent
#exec-once = nextcloud
exec-once =/usr/bin/nextcloud --background
# exec-once = hypridle
exec-once = /home/sinsa/.local/bin/eduroamcondizionale
# exec-once = sleep 0.5 ; waybar -c /home/sinsa/.config/waybar/configs/default -s /home/sinsa/.config/waybar/style/islands.css >> $HOME/.local/log/waybar.log
exec-once = QT_QPA_PLATFORMTHEME=gtk3 qs -c noctalia-shell
# exec-once = wl-paste --type text --watch cliphist store
# exec-once = wl-paste --type image --watch cliphist store
exec-once = vorta -d
exec-once = syncthing --no-browser
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hypr.land/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
###################
### PERMISSIONS ###
###################
# See https://wiki.hypr.land/Configuring/Permissions/
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
# for security reasons
# ecosystem {
# enforce_permissions = 1
# }
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
#####################
### LOOK AND FEEL ###
#####################
source= ~/.config/hypr/configs/looknfeel.conf
# ANIMATION
source= ~/.config/hypr/configs/UserAnimations.conf
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
# "Smart gaps" / "No gaps when only"
# uncomment all if you wish to use that.
# workspace = w[tv1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrule {
# name = no-gaps-wtv1
# match:float = false
# match:workspace = w[tv1]
#
# border_size = 0
# rounding = 0
# }
#
# windowrule {
# name = no-gaps-f1
# match:float = false
# match:workspace = f[1]
#
# border_size = 0
# rounding = 0
# }
# See https://wiki.hypr.land/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.hypr.land/Configuring/Master-Layout/ for more
master {
new_status = master
}
# https://wiki.hypr.land/Configuring/Variables/#misc
misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
}
device {
name = royuan-rt100-wired-system-control
kb_layout = us
}
#############
### INPUT ###
#############
# https://wiki.hypr.land/Configuring/Variables/#input
input {
kb_layout = it
# kb_variant = intl
# kb_model =
# kb_options =
# kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
clickfinger_behavior = 0
natural_scroll = true
}
}
device {
name = royuan-rt100-wired-system-control
kb_layout = us
kb_variant = intl,
}
device {
name = royuan-rt100-wired-keyboard
kb_layout = us
kb_variant = intl
}
device {
name = royuan-rt100-wired-consumer-control
kb_layout = us
kb_variant = intl
}
device {
name = royuan-rt100-wired
kb_layout = us
kb_variant = intl
}
device {
name = at-translated-set-2-keyboard
kb_layout = it
}
#
#input {
# kb_layout = us
# kb_variant = intl
# device = royuan-rt100-wired-keyboard
#}
#
# NOCTALIA CONFIG
general {
gaps_in = 5
gaps_out = 10
}
decoration {
rounding = 20
rounding_power = 2
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
blur {
enabled = true
size = 3
passes = 2
vibrancy = 0.1696
}
}
layerrule {
name = noctalia
match:namespace = noctalia-background-.*$
ignore_alpha = 0.5
blur = true
blur_popups = true
}
# -------- GESTURES ---------
# See https://wiki.hypr.land/Configuring/Gestures
# gesture = 3, horizontal, workspace
# gesture = 3, swipe, move
gesture = 4, vertical, fullscreen, maximize
gesture = 3, horizontal, workspace
gesture = 3, pinchout, float
gesture = 3, pinchin, float
# Example per-device config
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
device {
name = epic-mouse-v1
sensitivity = -0.5
}
###################
### KEYBINDINGS ###
###################
# See https://wiki.hypr.land/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, RETURN, exec, export PATH="$HOME/.local/bin:$PATH" && $menu
bind = $mainMod, P, pseudo, # dwindle
# bind = $mainMod, J, layoutmsg # dwindle
bind = $mainMod, J, layoutmsg, togglesplit
bind = $mainMod, N, exec, $HOME/.local/bin/hyprltm-net
bind = $mainMod, W, exec, /home/sinsa/.config/hypr/scripts/rw.sh
bind = $mainMod, O, exec, pkill waybar
bind = $mainMod SHIFT, O, exec, waybar -c $HOME/.config/waybar/configs/default -s $HOME/.config/waybar/style/islands.css
#OPEN COPY PASTE HYSTORY
bind = $mainMod SHIFT, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
# CONNECT AUTOMATICALLY TO EDUROAM
bind = $mainMod, L, exec, $HOME/.local/bin/eduroam
# SWITCH KEYBOARD LAYOUT
# WIP!!!
# bind = $mainMod, space,
bind = $mainMod, Z, exec, $HOME/.local/bin/zen-twilight
binde = SUPER SHIFT, 201, exec, notify-send hello
# Fullscreen window
bind = $mainMod SHIFT, F, fullscreen, 0
bind = $mainMod , F, fullscreen, 1
# 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
# 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
bind = $mainMod CTRL, left, workspace, r-1
bind = $mainMod CTRL, right, workspace, r+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
bind = $mainMod CTRL SHIFT, left, movetoworkspace, r-1
bind = $mainMod CTRL SHIFT, right, movetoworkspace, r+1
# Move window
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow,r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d
# Resize window
binde = $mainMod ALT, right, resizeactive, 10 0
binde = $mainMod ALT, left, resizeactive, -10 0
binde = $mainMod ALT, up, resizeactive, 0 -10
binde = $mainMod ALT, down, resizeactive, 0 10
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
bindm = $mainMod SHIFT, mouse:272, resizewindow
bind = , Print, exec, hyprshot -m region -o /home/sinsa/Pictures/Screenshots/
bind = $mainMod ,Print, exec, hyprshot -zm region --clipboard-only -o /home/sinsa/Pictures/Screenshots/
# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, $HOME/.config/hypr/scripts/volume.sh --inc
bindel = ,XF86AudioLowerVolume, exec, $HOME/.config/hypr/scripts/volume.sh --dec
bindel = ,XF86AudioMute, exec, $HOME/.config/hypr/scripts/volume.sh --toggle
bindel = ,XF86AudioMicMute, exec, $HOME/.config/hypr/scripts/volume.sh --toggle-mic
bindel = ,XF86MonBrightnessUp, exec, $HOME/.config/hypr/scripts/brightness.sh --inc
bindel = ,XF86MonBrightnessDown, exec, $HOME/.config/hypr/scripts/brightness.sh --dec
#bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @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 -e4 -n2 set 5%+
#bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
# Lock
# bindl=,switch:Lid Switch, exec, hyprlock
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
### TAGS ###
source= ~/.config/hypr/configs/tags.conf
# Example windowrules that are useful
### WINDOWRULES AND LAYERRULES ###
source = ~/.config/hypr/configs/windowrules.conf
#windowrule {
# # Ignore maximize requests from all apps. You'll probably like this.
# name = suppress-maximize-events
# match:class = .*
#
# suppress_event = maximize
#}
#
#windowrule {
# # Fix some dragging issues with XWayland
# name = fix-xwayland-drags
# match:class = ^$
# match:title = ^$
# match:xwayland = true
# match:float = true
# match:fullscreen = false
# match:pin = false
#
# no_focus = true
#}
#
## Hyprland-run windowrule
#windowrule {
# name = move-hyprland-run
#
# match:class = hyprland-run
#
# move = 20 monitor_h-120
# float = yes
#}
source = ./dms/cursor.conf
source = /home/sinsa/.config/hypr/noctalia/noctalia-colors.conf