dotfiles/.config/hypr/hyprland.conf
2023-10-27 14:19:25 +02:00

149 lines
3.4 KiB
Text

# Jaaj Hyprland config
# Source colors variables
source = ~/.config/hypr/colors.conf
# Monitors config in separate file to allow multiple configs
source = ~/.config/hypr/monitors.conf
# Keybindings
source = ~/.config/hypr/keybindings.conf
# Window rules
source = ~/.config/hypr/windowrules.conf
# Exec once
exec-once = artix-pipewire-launcher restart
exec-once = nm-applet
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = $HOME/.scripts/swayidle.sh
exec-once = swayosd-server
# XWayland
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
# Clipboard
exec-once = wl-paste -w wl-copy -p
exec-once = cliphist wipe && wl-paste --watch cliphist store
# Discord
exec-once = discord --start-minimized --enable-features=UseOzonePlatform --ozone-platform=wayland
# exec-once = xwaylandvideobridge
# Element
exec-once = element-desktop --hidden
# Nextcloud
exec-once = nextcloud --background
exec-once = gnome-keyring-daemon -s -f
# Theming
exec-once = echo 1 > "$HOME/.cache/weeb-mode"
exec-once = $HOME/.scripts/set-wallpaper.sh -r
# Prevent hidden Wine System Tray window from keeping workspace existing
exec-once = $HOME/.scripts/kill-wine-explorer.sh
# Environement variables
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
env = SDL_VIDEODRIVER,wayland
env = _JAVA_AWT_WM_NONEREPARENTING,1
env = CLUTTER_BACKEND,wayland
env = GRIM_DEFAULT_DIR,$HOME/Images/grim-screenshots
env = DXVK_LOG_LEVEL,none
env = MOZ_ENABLE_WAYLAND,1
env = GDK_BACKEND,wayland
env = GDK_SCALE,1
env = XCURSOR_SIZE,24
# Variables
general {
border_size = $border_size
gaps_in = $gaps_in
gaps_out = $gaps_out
col.active_border = $accent1 $accent2 45deg
col.inactive_border = $background1 $background2 45deg
}
input {
kb_layout = fr
kb_variant = latin9
numlock_by_default = true
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
follow_mouse = 2
float_switch_override_focus = 0
touchpad {
disable_while_typing = false
natural_scroll = yes
}
}
device:asus-rog-sica {
sensitivity = -0.55
}
device:logitech-g203-lightsync-gaming-mouse {
sensitivity = -0.55
}
decoration {
rounding = $border_radius
active_opacity = 0.85
inactive_opacity = 0.65
blur {
enabled = true
size = 2
passes = 1
ignore_opacity = true
new_optimizations = on
xray = true
}
}
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
}
gestures {
workspace_swipe = on
}
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_is_master = true
}
misc {
vfr = true
vrr = 2
disable_autoreload = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
force_default_wallpaper = 0
}