Further modularize hyprland config
This commit is contained in:
@ -1,49 +1,16 @@
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
source = ~/.config/hypr/polkit.conf # NOTE: This needs to be sourced, because NixOS fills in the polkit executable path
|
||||
source = ~/.config/hypr/waybar-reload.conf
|
||||
source = ~/.config/hypr/monitors.conf # NOTE: This file is different for each system
|
||||
# NOTE: Many of these are generated depending on the NixOS config
|
||||
source = ~/.config/hypr/autostart.conf
|
||||
source = ~/.config/hypr/floatingrules.conf
|
||||
source = ~/.config/hypr/input.conf
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar
|
||||
exec-once = dunst
|
||||
exec-once = hyprpaper
|
||||
exec-once = kdeconnect-indicator # TODO: Only shows sometimes?
|
||||
exec-once = nextcloud --background
|
||||
exec-once = keepassxc
|
||||
# exec-once = md.obsidian.Obsidian
|
||||
# exec-once = firefox
|
||||
exec-once = kitty
|
||||
exec-once = wl-paste -t text --watch clipman store --no-persist
|
||||
exec-once = wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json"
|
||||
exec-once = hyprctl setcursor Bibata-Modern-Classic 16
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
windowrulev2 = workspace 2, class:^(jetbrains-clion)$
|
||||
windowrulev2 = workspace 2, class:^(code-url-handler)$
|
||||
windowrulev2 = workspace 3, class:^(obsidian)$
|
||||
windowrulev2 = workspace 4, class:^(firefox)$
|
||||
windowrulev2 = workspace 4, class:^(chromium)$
|
||||
# windowrulev2 = workspace 5, class:^(Steam)$
|
||||
# windowrulev2 = workspace 5, class:^(steam_app_.+)$
|
||||
# windowrulev2 = workspace 5, class:^(gamescope)$
|
||||
windowrulev2 = workspace 9, class:^(mpv)$
|
||||
windowrulev2 = workspace 10, class:^(Spotify)
|
||||
windowrulev2 = workspace 10, class:^(discord)
|
||||
|
||||
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
|
||||
windowrulev2 = float, class:^(thunar)$, title:^(File Operation Progress)$
|
||||
|
||||
windowrulev2 = opacity 0.8 0.8, class:^(kitty)$
|
||||
windowrulev2 = opacity 0.8 0.8, class:^(discord)$
|
||||
windowrulev2 = opacity 0.8 0.8, class:^(Spotify)$
|
||||
windowrulev2 = opacity 0.8 0.8, class:^(obsidian)$
|
||||
windowrulev2 = opacity 0.8 0.8, class:^(jetbrains-clion)$
|
||||
source = ~/.config/hypr/monitors.conf
|
||||
source = ~/.config/hypr/polkit.conf
|
||||
source = ~/.config/hypr/translucentrules.conf
|
||||
source = ~/.config/hypr/waybar-reload.conf
|
||||
source = ~/.config/hypr/workspaces.conf
|
||||
source = ~/.config/hypr/workspacerules.conf
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 5
|
||||
gaps_out = 20
|
||||
border_size = 2
|
||||
@ -57,8 +24,6 @@ general {
|
||||
}
|
||||
|
||||
decoration {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
rounding = 5
|
||||
multisample_edges = on
|
||||
blur = yes
|
||||
@ -83,8 +48,6 @@ misc {
|
||||
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
|
||||
@ -96,31 +59,20 @@ animations {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = off
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||
device:epic-mouse-v1 {
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
# bind = $mainMod, M, exit
|
||||
# bind = $mainMod, P, pseudo # dwindle
|
||||
# bind = $mainMod, J, togglesplit # dwindle
|
||||
@ -147,7 +99,6 @@ bind = $mainMod, E, exec, kitty fish -c "nnncd -a -P p"
|
||||
bind = $mainMod, P, exec, hyprpicker -a
|
||||
bind = $mainMod, S, exec, grim -g "$(slurp)"
|
||||
bind = $mainMod CTRL, S, exec, grim -g "$(slurp)" - | wl-copy
|
||||
# bind = $mainMod, E, exec, dolphin
|
||||
|
||||
# Move windows in/out of groups
|
||||
bind = $mainMod, G, togglegroup
|
||||
@ -208,10 +159,6 @@ bind = CTRL ALT, R, moveworkspacetomonitor, 8 HDMI-A-1
|
||||
bind = CTRL ALT, R, moveworkspacetomonitor, 9 HDMI-A-1
|
||||
bind = CTRL ALT, R, moveworkspacetomonitor, 10 HDMI-A-2
|
||||
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user