This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/config/hypr/hyprland.conf
T
2026-07-26 11:45:12 +02:00

282 lines
7.9 KiB
Plaintext

################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
source = ~/.config/hypr/monitors.conf
source = ~/.config/hypr/theme.conf
###################
### MY PROGRAMS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use
$terminal = ghostty
$fileManager = nemo
$menu = qs ipc call appLauncher open
$clipboard = qs ipc call clipboardPicker open
$lock = hyprlock
$powermenu = qs ipc call powerMenu open
#################
### AUTOSTART ###
#################
exec-once = hypridle
exec-once = trayscale --hide-window
exec-once = nextcloud
exec-once = wl-paste --watch cliphist store
exec-once = quickshell
exec-once = easyeffects --service-mode
exec-once = lxqt-polkit-agent
exec-once = /home/johannes/.local/bin/mcpproxy
exec-once = awww-daemon
#############################
### ENVIRONMENT VARIABLES ###
#############################
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = XCURSOR_THEME,Bibata-Modern-Classic
env = QT_QPA_PLATFORMTHEME,qt5ct:qt6ct
env = MOZ_ENABLE_WAYLAND,1
env = XDG_SESSION_TYPE,wayland
env = MOZ_DBUS_REMOTE,1
env = GDK_BACKEND,wayland
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_FORCE_DPI,physical
env = OZONE_PLATFORM,wayland
env = EGL_PLATFORM,wayland
env = CLUTTER_BACKEND,wayland
env = TERM,ghostty
env = TERMINAL,ghostty
env = ELECTRON_OZONE_PLATFORM_HINT,auto
env = QT_QPA_PLATFORM,wayland
env = QT_STYLE_OVERRIDE,kvantum
env = GTK_THEME,catppuccin-mocha-mauve-standard+default
env = PROTON_DLSS_UPGRADE,1
#####################
### LOOK AND FEEL ###
#####################
general {
gaps_in = 5
gaps_out = 20
border_size = 2
col.active_border = $red
col.inactive_border = $surface1
resize_on_border = false
allow_tearing = false
layout = dwindle
}
decoration {
rounding = 2
rounding_power = 2
active_opacity = 1.0
inactive_opacity = 0.9
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
blur {
enabled = true
size = 3
passes = 1
vibrancy = 0.1696
}
}
animations {
enabled = true
bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, slide
animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 1, liner
animation = borderangle, 1, 30, liner, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
}
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
workspace = 2, layoutopt:direction:right
dwindle {
# pseudotile = true
preserve_split = true
}
master {
new_status = slave
}
scrolling {
fullscreen_on_one_column = true
column_width = 0.9
direction = right
}
misc {
force_default_wallpaper = -1
disable_hyprland_logo = false
}
#############
### INPUT ###
#############
input {
kb_layout = de
kb_model =
kb_rules =
follow_mouse = 1
sensitivity = 0
touchpad {
natural_scroll = true
}
}
gestures {
# workspace_swipe = true
}
# Example per-device config
device {
name = epic-mouse-v1
sensitivity = -0.5
}
###################
### KEYBINDINGS ###
###################
$mainMod = SUPER
exec = hyprctl dispatch submap global
submap = global
# Apps
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, M, exec, $powermenu
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, H, togglefloating,
bind = $mainMod, Space, exec, $menu
bind = $mainMod, P, pseudo,
#bind = $mainMod, J, togglesplit,
bind = $mainMod, F, fullscreen
bind = $mainMod, L, exec, $lock
bind = $mainMod, V, exec, $clipboard
# Layout
bind = $mainMod, period, layoutmsg, move +col
bind = $mainMod, comma, layoutmsg, move -col
bind = $mainMod SHIFT, period, layoutmsg, swapcol r
bind = $mainMod SHIFT, comma, layoutmsg, swapcol l
# Theme / wallpaper switchers
bind = $mainMod, T, exec, qs ipc call themeSwitcher open
bind = $mainMod, W, exec, qs ipc call wallpaperSwitcher open
bind = $mainMod SHIFT, W, exec, qs ipc call wallpaperSwitcher random
# Brightness
bindl = , XF86MonBrightnessUp, global, brightnessctl set 10%-
bindl = , XF86MonBrightnessDown, global, brightnessctl set 10%-
# Media
bindl = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindl = ,XF86AudioLowerVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%-
bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindl = ,XF86AudioPlay, exec, playerctl play-pause
bindl = ,XF86AudioPause, exec, playerctl play-pause
bindl = ,XF86AudioStop, exec, playerctl stop
bindl = ,XF86AudioNext, exec, playerctl next
bindl = ,XF86AudioPrev, exec, playerctl previous
# 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
# 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, 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
##############################
### WINDOWS AND WORKSPACES ###
##############################
windowrule = match:class vivaldi-snapshot, opacity 1.0 override 1.0 override
windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Theme Switcher)$
windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Theme Switcher)$
windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Theme Switcher)$
windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Wallpaper Switcher)$
windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Wallpaper Switcher)$
windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Wallpaper Switcher)$
windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Power Menu)$
windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Power Menu)$
windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Power Menu)$
windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Clipboard Picker)$
windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Clipboard Picker)$
windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Clipboard Picker)$
windowrule = float true,match:class ^(org.quickshell)$,match:title ^(App Launcher)$
windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(App Launcher)$
windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(App Launcher)$