hyprland config

This commit is contained in:
Hannes
2025-10-16 20:49:26 +02:00
parent 694f81ee2c
commit 3add98f7bb
7 changed files with 391 additions and 79 deletions

View File

@@ -3,97 +3,26 @@
# | |_ _| __| -| |__| | | | | | | # | |_ _| __| -| |__| | | | | | |
# |__|__| |_| |__| |__|__|_____|__|__|_|___|____/ # |__|__| |_| |__| |__|__|_____|__|__|_|___|____/
# #
# by Bina & Honney # by Bina & edited by Honney
source = ~/.config/hypr/hyprland/env.conf
source = ~/.config/hypr/hyprland/theme.conf
# -- execute at launch -- # -- execute at launch --
source = ~/.config/hypr/hyprland/autostart.conf source = ~/.config/hypr/hyprland/autostart.conf
# -- monitor --
source = ~/.config/hypr/hyprland/monitor.conf
monitor=,preferred,auto,auto
# -- pywal colors -- # -- pywal colors --
source = ~/.config/wal/templates/colors-hyprland source = ~/.config/wal/templates/colors-hyprland
# -- monitor --
monitor=,preferred,auto,auto
monitor=DP-4,3840x2160@60,-3840x0,1
monitor=DP-5,3840x2160@60,-3840x0,1
monitor=DP-1,3840x2160@60,-3840x0,1
monitor=DP-7,3840x2160@60,-3840x0,1
monitor=DP-3,3840x2160@144,0x0,1
monitor=HDMI-A-1,1920x1080@60,-1920x-1080,1,transform,2
monitor=DP-2,1920x1080@144,0x-1080,1,transform,2
# -- programs -- # -- programs --
$terminal = kitty $terminal = kitty
$fileManager = nemo # put your preffered fileManager here, choose keybind $fileManager = nemo # put your preffered fileManager here, choose keybind
$menu = wofi --show drun $menu = wofi --show drun, run
# Cursor
env = HYPRCURSOR_THEME,DJ-FOX-C
env = HYPRCURSOR_SIZE,48
# -- environment variables -- # -- environment variables --
source = ~/.config/hypr/hyprland/env.conf
general {
gaps_in = 5
gaps_out = 8
border_size = 0
layout = dwindle
allow_tearing = false
}
decoration {
rounding = 5
active_opacity = 0.92
inactive_opacity = 0.92
fullscreen_opacity = 1
blur {
enabled = false
size = 3
passes = 1
}
}
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 to 1.0; 0 means no modification.
numlock_by_default = true
}
animations {
enabled = yes
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
}
dwindle {
pseudotile = yes
preserve_split = yes
}
#gestures {
# workspace_swipe = off
#}
misc {
force_default_wallpaper = 0
disable_hyprland_logo = true
}
source = ~/.config/hypr/hyprland/bind.conf source = ~/.config/hypr/hyprland/bind.conf
source = ~/.config/hypr/hyprland/workspaces.conf source = ~/.config/hypr/hyprland/workspaces.conf
source = ~/.config/hypr/hyprland/theme.conf

View File

@@ -0,0 +1,34 @@
# Needs To start first
exec-once = waybar
#exec-once = hypridle
exec-once = hyprpaper
exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
exec-once = bash /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg
exec-once = sleep 1 && ~/.config/hypr/scripts/wallpapers/wallpaper.sh
exec-once = ~/.config/hypr/scripts/goxlr/goxlr-start.sh
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user start hyprpolkitagent
exec-once = carla -n ~/Music/1Player.carxp
# exec-once = udiskie -t
# Monitor LT
exec-once = discord
exec-once = nextcloud
exec-once = keepassxc
# Monitor RT
exec-once = floorp
exec-once = librewolf
exec-once = thunderbird
exec-once = alacritty -e /usr/bin/ollama serve
# Monitor LB
# Monitor RB
# Reset to default workspaces
exec-once = sleep 5 && hyprctl dispatch workspace 4
exec-once = sleep 5 && hyprctl dispatch workspace 3
exec-once = sleep 5 && hyprctl dispatch workspace 2
exec-once = sleep 5 && hyprctl dispatch workspace 1

111
.config/hypr/hyprland/bind.conf Executable file
View File

@@ -0,0 +1,111 @@
# -- keybinds --
$mainMod = SUPER
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, W, killactive, # "Quit"
bind = $mainMod, F, fullscreen,
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu # "Apps"
bind = $mainMod SHIFT, D, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# waybar
bind = $mainMod SHIFT, B, exec, ~/.config/waybar/launch.sh
bind = $mainMod, B, exec, killall -SIGUSR1 waybar
# wallpaper/swww
bind = $mainMod SHIFT, W, exec, ~/.config/hypr/scripts/wallpapers/wallpaper.sh
# wlogout
bind = $mainMod, M, exec, wlogout -b 2
# file manager
bind = $mainMod, E, exec, $fileManager
# hyprlock
bind = $mainMod, L, exec, hyprlock
# hyprpaper
bind = $mainMod SHIFT, H, exec, hyprpaper
# switch workspaces
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, TAB, workspace, e+1
# move active window to a workspace
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
# move focus
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# scroll through existing workspaces
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# move/resize windows
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod SHIFT, mouse:272, resizewindow
bind = $mainMod SHIFT, right, resizeactive, 30 0
bind = $mainMod SHIFT, left, resizeactive, -30 0
bind = $mainMod SHIFT, up, resizeactive, 0 -30
bind = $mainMod SHIFT, down, resizeactive, 0 30
bind = $mainMod SHIFT, L, moveactive, 30 0
bind = $mainMod SHIFT, I, moveactive, -30 0
bind = $mainMod SHIFT, O, moveactive, 0 -30
bind = $mainMod SHIFT, K, moveactive, 0 30
# screenshots
bind = $mainMod, P, exec, ~/.config/hypr/scripts/screenshot/screenshot_window.sh
bind = $mainMod ALT, P, exec, ~/.config/hypr/scripts/screenshot/screenshot_monitor.sh
bind = $mainMod SHIFT, P, exec, ~/.config/hypr/scripts/screenshot/screenshot_area.sh
bind = $mainMod SHIFT, S, exec, ~/.config/hypr/scripts/screenshot/screenshot_area_2.sh
# Umlaute / German compatability on english Keyboard
bind = $mainMod, a, exec, bash -c 'wtype "ä"; xdotool type "ä"'
bind = $mainMod SHIFT, a, exec, wtype "Ä"
bind = $mainMod, o, exec, wtype "ö"
bind = $mainMod SHIFT, o, exec, wtype "Ö"
bind = $mainMod, u, exec, wtype "ü"
bind = $mainMod SHIFT, u, exec, wtype "Ü"
bind = $mainMod, s, exec, wtype "ß"
bind = $mainMod SHIFT, e, exec, wtype "€"
# Makro Pad
bind = $mainMod SHIFT CTRL, F1, exec, ~/.config/hypr/scripts/makropad/button01.sh
bind = $mainMod SHIFT CTRL, F2, exec, ~/.config/hypr/scripts/makropad/button02.sh
bind = $mainMod SHIFT CTRL, F3, exec, ~/.config/hypr/scripts/makropad/button03.sh
bind = $mainMod SHIFT CTRL, F4, exec, ~/.config/hypr/scripts/makropad/button04.sh
bind = $mainMod SHIFT CTRL, F5, exec, ~/.config/hypr/scripts/makropad/button05.sh
bind = $mainMod SHIFT CTRL, F6, exec, ~/.config/hypr/scripts/makropad/button06.sh
bind = $mainMod SHIFT CTRL, F7, exec, ~/.config/hypr/scripts/makropad/button07.sh
bind = $mainMod SHIFT CTRL, F8, exec, ~/.config/hypr/scripts/makropad/button08.sh
bind = $mainMod SHIFT CTRL, F9, exec, ~/.config/hypr/scripts/makropad/button09.sh
bind = $mainMod SHIFT CTRL, F10, exec, ~/.config/hypr/scripts/makropad/button10.sh
bind = $mainMod SHIFT CTRL, F11, exec, ~/.config/hypr/scripts/makropad/button11.sh
bind = $mainMod SHIFT CTRL, F12, exec, ~/.config/hypr/scripts/makropad/button12.sh

90
.config/hypr/hyprland/env.conf Executable file
View File

@@ -0,0 +1,90 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Environment variables. See https://wiki.hyprland.org/Configuring/Environment-variables/
env = GTK_USE_PORTAL,1
# Set your defaults editor through ENV in ~/.config/hypr/UserConfigs/01-UserDefaults.conf
# environment-variables
# Toolkit Backend Variables
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = CLUTTER_BACKEND,wayland
#Run SDL2 applications on Wayland.
#Remove or set to x11 if games that provide older versions of SDL cause compatibility issues
#env = SDL_VIDEODRIVER,wayland
# xdg Specifications
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
# QT Variables
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_QPA_PLATFORMTHEME,qt6ct
# hyprland-qt-support
env = QT_QUICK_CONTROLS_STYLE,org.hyprland.style
# xwayland apps scale fix (useful if you are use monitor scaling).
# Set same value if you use scaling in Monitors.conf
# 1 is 100% 1.5 is 150%
# see https://wiki.hyprland.org/Configuring/XWayland/
env = GDK_SCALE,1
env = QT_SCALE_FACTOR,1
# Bibata-Modern-Ice-Cursor
# NOTE! You must have the hyprcursor version to activate this.
# https://wiki.hyprland.org/Hypr-Ecosystem/hyprcursor/
#env = HYPRCURSOR_THEME,Bibata-Modern-Ice
#env = HYPRCURSOR_SIZE,24
# firefox
env = MOZ_ENABLE_WAYLAND,1
# electron >28 apps (may help) ##
# https://www.electronjs.org/docs/latest/api/environment-variables
env = ELECTRON_OZONE_PLATFORM_HINT,auto # auto selects Wayland if possible, X11 otherwise
# NVIDIA
# This is from Hyprland Wiki. Below will be activated nvidia gpu detected
# See hyprland wiki https://wiki.hyprland.org/Nvidia/#environment-variables
#env = LIBVA_DRIVER_NAME,nvidia
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
#env = NVD_BACKEND,direct
# additional ENV's for nvidia. Caution, activate with care
#env = GBM_BACKEND,nvidia-drm
#env = __GL_GSYNC_ALLOWED,1 #adaptive Vsync
#env = __NV_PRIME_RENDER_OFFLOAD,1
#env = __VK_LAYER_NV_optimus,NVIDIA_only
#env = WLR_DRM_NO_ATOMIC,1
# FOR VM and POSSIBLY NVIDIA
# LIBGL_ALWAYS_SOFTWARE software mesa rendering
#env = LIBGL_ALWAYS_SOFTWARE,1 # Warning. May cause hyprland to crash
#env = WLR_RENDERER_ALLOW_SOFTWARE,1
# nvidia firefox (for hardware acceleration on FF)?
# check this post https://github.com/elFarto/nvidia-vaapi-driver#configuration
#env = MOZ_DISABLE_RDD_SANDBOX,1
#env = EGL_PLATFORM,wayland
#### Aquamarine Environment Variables #### ( Hyprland > 0.45 )
# https://wiki.hyprland.org/Configuring/Environment-variables/#aquamarine-environment-variables----ref-httpsgithubcomhyprwmaquamarineblobmaindocsenvmd---
# env = AQ_TRACE,1 # Enables more verbose logging.
# env = AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0 # Set an explicit list of DRM devices (GPUs) to use. Its a colon-separated list of paths, with the first being the primary. E.g. /dev/dri/card1:/dev/dri/card0
# env = AQ_MGPU_NO_EXPLICIT,1 # Disables explicit syncing on mgpu buffers
# env = AQ_NO_MODIFIERS,1 # Disables modifiers for DRM buffers
#### Hyprland Environment Variables ####
# https://wiki.hyprland.org/Configuring/Environment-variables/#hyprland-environment-variables
# env = HYPRLAND_TRACE,1 # Enables more verbose logging.
# env = HYPRLAND_NO_RT,1 # Disables realtime priority setting by Hyprland.
# env = HYPRLAND_NO_SD_NOTIFY,1 # If systemd, disables the 'sd_notify' calls.
# env = HYPRLAND_NO_SD_VARS,1 # Disables management of variables in systemd and dbus activation environments.

View File

@@ -0,0 +1,28 @@
# The config where the resolution, position and
# other monitor Stuff is set up
# monitor = name, resolution, position, scale
monitor = desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609, 3840x2160@60, -3840x0, 1
monitor = desc:BNQ BenQ EX2710U Y8P00876019, 3840x2160@144, 0x0, 1
monitor= desc:Dell Inc. DELL P2419H D4CN3Q2, 1920x1080@60, -1920x-1080, 1, transform, 2v
monitor= desc:LG Electronics LG ULTRAGEAR 0x0004D8E1, 1920x1080@144, 0x-1080, 1, transform, 2
# Workspaces on Monitor 1
workspace = 1, monitor:desc:BNQ BenQ EX2710U Y8P00876019
# Workspaces on Monitor 2
workspace = 2, monitor:desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609
# Workspaces on Monitor 3
workspace = 3, monitor:desc:LG Electronics LG ULTRAGEAR 0x0004D8E1
workspace = 300, monitor:desc:LG Electronics LG ULTRAGEAR 0x0004D8E1
workspace = 301, monitor:desc:LG Electronics LG ULTRAGEAR 0x0004D8E1
workspace = 302, monitor:desc:LG Electronics LG ULTRAGEAR 0x0004D8E1
# Workspaces on Monitor 4
workspace = 4, monitor:desc:Dell Inc. DELL P2419H D4CN3Q2
workspace = 400, monitor:desc:Dell Inc. DELL P2419H D4CN3Q2
workspace = 401, monitor:desc:Dell Inc. DELL P2419H D4CN3Q2

View File

@@ -0,0 +1,97 @@
$GTK_THEME = "catppuccin-mocha-blue-standard+default"
$CURSOR_THEME = "DJ-FOX-C"
$ICON_THEME = "BeautyLine-Garuda"
$KVANTUM_THEME = "Catppuccin-Mocha-Blue"
# Experimental HDR (optional)
experimental:xx_color_management_v4 = true
debug:full_cm_proto=true
# GTK Theming
env = GTK_THEME,catppuccin-mocha-blue-standard+default
env = GTK_ICON_THEME,BeautyLine-Garuda
env = GTK_THEME_VARIANT,dark
env = XDG_CURRENT_DESKTOP,Hyprland
env = GDK_BACKEND,wayland,x11
env = GTK_USE_PORTAL,1
env = GTK_THEME_VARIANT,dark
# Qt/Kvantum Theming
env = QT_QPA_PLATFORMTHEME,qt5ct
#env = QT_STYLE_OVERRIDE,kvantum
env = KVANTUM_THEME,Catppuccin-Mocha-Blue
env = QT_ENABLE_HIGHDPI_SCALING,1
env = QT_QPA_PLATFORM,wayland
# Icons:
env = XDG_DATA_DIRS,/usr/local/share:/usr/share:/home/honney/.local/share:/home/honney/.icons
env = GTK_ICON_THEME,BeautyLine-Garuda
# Icons & Cursor
env = XCURSOR_THEME,DJ-FOX-C
env = XCURSOR_SIZE,48
env = HYPRCURSOR_THEME,DJ-FOX-C
env = HYPRCURSOR_SIZE,48
# Font
# Window management
general {
gaps_in = 5
gaps_out = 8
border_size = 0
layout = dwindle
allow_tearing = false
}
decoration {
rounding = 5
active_opacity = 0.92
inactive_opacity = 0.92
fullscreen_opacity = 1
blur {
enabled = false
size = 3
passes = 1
}
}
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 to 1.0; 0 means no modification.
numlock_by_default = true
}
animations {
enabled = yes
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
}
dwindle {
pseudotile = yes
preserve_split = yes
}
#gestures {
# workspace_swipe = off
#}
misc {
force_default_wallpaper = 0
disable_hyprland_logo = true
}

View File

@@ -0,0 +1,23 @@
# The config for to which workspace which window goes
### Apps windows to Workspaces
# Recommended Command: sleep 2 && hyprctl activewindow
# Apps on Monitor 1
# Apps on Monitor 2
# Apps on Monitor 3
windowrulev2 = workspace 3, class:^(floorp)$
windowrulev2 = workspace 300, class:^(librewolf)$
windowrulev2 = workspace 301, class:^(thunderbird)$
windowrulev2 = workspace 302, class:^(Alacritty)$
# Apps on Monitor 4
windowrulev2 = workspace 4, class:^(discord)$
windowrulev2 = workspace 4, class:^(Signal)$
windowrulev2 = workspace 400, class:^(com.nextcloud.desktopclient.nextcloud)$
windowrulev2 = workspace 401, class:^(org.keepassxc.KeePassXC)$
#windowrulev2 = tile,xwayland:1 # Grayjay and other xWayland fix but can also break