From 6ff912d3b87cd09aa709d768f226fdea4d924707 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sat, 17 Feb 2024 22:53:00 +0100 Subject: [PATCH] Split hyprland config even more --- home/.config/hypr/hyprland.conf | 90 +---------------------- home/.config/hypr/input.conf | 44 +++++++++++ home/.config/hypr/style.conf | 126 ++++++++++++++++++++++++++++++++ 3 files changed, 172 insertions(+), 88 deletions(-) create mode 100644 home/.config/hypr/input.conf create mode 100644 home/.config/hypr/style.conf diff --git a/home/.config/hypr/hyprland.conf b/home/.config/hypr/hyprland.conf index 5ea9f35..d7a124f 100644 --- a/home/.config/hypr/hyprland.conf +++ b/home/.config/hypr/hyprland.conf @@ -1,12 +1,3 @@ -################ -### MONITORS ### -################ - -# Should be configured per-profile -# monitor = HDMI-A-2, 1920x1080@60, 0x0, 1 -# monitor = eDP-1, 1920x1080@60, 1920x0, 1 -monitor = , preferred, auto, 1 - ################# ### AUTOSTART ### ################# @@ -28,64 +19,12 @@ exec-once = discord ######################### general { - border_size = 2 - gaps_in = 5 - gaps_out = 8 - - col.active_border = rgba(FFA500FF) # orange - col.inactive_border = rgba(666666AA) # transparent gray - - col.nogroup_border_active = rgba(FF00FFFF) # purple - col.nogroup_border = rgba(FF00FFAA) # transparent purple - # cursor_inactive_timeout = 10 # no_cursor_warps = true layout = dwindle } -decoration { - rounding = 8 - - #inactive_opacity = 1.0 - - #dim_inactive = true - dim_strength = 0.05 - dim_special = 0.2 - - drop_shadow = true - shadow_range = 20 - shadow_render_power = 2 - col.shadow = rgba(0F0F0FE6) - #col.shadow = rgba(FFA500FF) - col.shadow_inactive = rgba(0F0F0F99) - - blur { - enabled = true - size = 8 - passes = 1 - } -} - -animations { - enabled = true - - animation = windows, 1, 3, default, popin 50% - animation = border, 1, 4, default - animation = fade, 1, 4, default - animation = workspaces, 1, 3, default -} - -input { - kb_layout = us, sk - kb_variant = ,qwerty - kb_options = grp:alt_shift_toggle - - numlock_by_default=true - - follow_mouse = 1 -} - gestures { workspace_swipe = true workspace_swipe_fingers = 3 @@ -98,36 +37,9 @@ gestures { group { insert_after_current = true focus_removed_window = true - - col.border_active = rgba(00A500FF) # green - col.border_inactive = rgba(5AA500FF) # transparent green - - col.border_locked_active = rgba(A0A500FF) # yellow - col.border_locked_inactive = rgba(A0A500AA) # transparent yellow - - groupbar { - scrolling = false - - render_titles = true - font_size = 8 - text_color = rgba(FFFFFFFF) # white - - gradients = true - - col.active = rgba(FFA500FF) # light orange - col.inactive = rgba(00A500AA) # transparent green - - col.locked_active = rgba(FF8000FF) # dark orange - col.locked_inactive = rgba(A0A500AA) # transparent yello - } } misc { - disable_hyprland_logo = true - disable_splash_rendering = false - - animate_manual_resizes = true - # follow requests from windows to be focused focus_on_activate = true } @@ -146,6 +58,8 @@ dwindle { ####################### ### EXTERNAL CONFIG ### ####################### +source = ~/.config/hypr/input.conf +source = ~/.config/hypr/style.conf source = ~/.config/hypr/keybinds.conf source = ~/.config/hypr/window_rules.conf source = ~/.config/hypr/plugins.conf diff --git a/home/.config/hypr/input.conf b/home/.config/hypr/input.conf new file mode 100644 index 0000000..efd7213 --- /dev/null +++ b/home/.config/hypr/input.conf @@ -0,0 +1,44 @@ +################ +### MONITORS ### +################ + +# Should be configured per-profile +monitor = HDMI-A-1, 1920x1080@60, 0x0, 1 +monitor = eDP-1, 1920x1200@60, 0x1080, 1 +monitor = , preferred, auto, 1 + +# Mirror the primary (laptop) monitor on externals +# monitor= , preferred, auto, 1, mirror, eDP-1 + +##################### +### GENERAL INPUT ### +##################### + +input { + kb_layout = us, sk + kb_variant = ,qwerty + kb_options = grp:alt_shift_toggle + + numlock_by_default=true + + follow_mouse = 1 + touchpad { + middle_button_emulation = true + } +} + +########################### +### PER-DEVICE SETTINGS ### +########################### + +device:tpps/2-elan-trackpoint { + enabled = true + tap-to-click = true + tap_button_map = lrm +} + +device:elan06c9:00-04f3:320b-touchpad { + enabled = true +} + +# vi: ft=hypr diff --git a/home/.config/hypr/style.conf b/home/.config/hypr/style.conf new file mode 100644 index 0000000..a3c33a5 --- /dev/null +++ b/home/.config/hypr/style.conf @@ -0,0 +1,126 @@ +################### +### WINDOW GAPS ### +################### + +general { + gaps_in = 5 + gaps_out = 8 +} + +############### +### BORDERS ### +############### + +decoration { + rounding = 8 +} + +general { + border_size = 2 + + # Regular windows + col.active_border = rgba(FFA500FF) # orange + #col.active_border = rgba(FFFFFFEE) # white + col.inactive_border = rgba(666666AA) # transparent gray + + # Windows with nogroup property + col.nogroup_border_active = rgba(FF00FFFF) # purple + col.nogroup_border = rgba(FF00FFAA) # transparent purple +} + +group { + # Groupped windows + col.border_active = rgba(00A500FF) # green + col.border_inactive = rgba(5AA500FF) # transparent green + + # Locked groupped windows + col.border_locked_active = rgba(A0A500FF) # yellow + col.border_locked_inactive = rgba(A0A500AA) # transparent yellow +} + +################# +### GROUP BAR ### +################# + +group { + groupbar { + render_titles = true + font_size = 8 + text_color = rgba(FFFFFFFF) # white + + gradients = true + scrolling = false + + col.active = rgba(FFA500FF) # light orange + col.inactive = rgba(00A500AA) # transparent green + + col.locked_active = rgba(FF8000FF) # dark orange + col.locked_inactive = rgba(A0A500AA) # transparent yello + } +} + +################### +### DROP SHADOW ### +################### + +decoration { + drop_shadow = true + shadow_range = 20 + shadow_render_power = 2 + col.shadow = rgba(0F0F0FE6) + #col.shadow = rgba(FFA500FF) + col.shadow_inactive = rgba(0F0F0F99) +} + +################### +### WINDOW BLUR ### +################### + +decoration { + blur { + enabled = true + size = 8 + passes = 1 + } +} + +######################## +### INACTIVE WINDOWS ### +######################## + +decoration { + #dim_inactive = true + dim_strength = 0.05 + dim_special = 0.2 + + # inactive_opacity = 0.9 +} + +################## +### ANIMATIONS ### +################## + +animations { + enabled = true + + animation = windows, 1, 3, default, popin 50% + animation = border, 1, 4, default + animation = fade, 1, 4, default + animation = workspaces, 1, 3, default + animation = specialWorkspace, 1, 2, default, slidefadevert +} + +misc { + animate_manual_resizes = true +} + +################# +### WALLPAPER ### +################# + +misc { + disable_hyprland_logo = true + disable_splash_rendering = false +} + +# vi: ft=hypr