From b2cfb5c61692a6905c5bba6cc3636587c10fff69 Mon Sep 17 00:00:00 2001 From: antistereov Date: Thu, 19 Feb 2026 04:19:43 +0100 Subject: [PATCH] feat(hypr): update hypr config --- hypr/autostart.conf | 13 ++++++ hypr/bindings.conf | 9 ++++ hypr/bindings/hyprshot.conf | 2 + hypr/{binds.conf => bindings/tiling.conf} | 6 +-- hypr/colors.conf | 31 ++++++++++++++ hypr/hypridle.conf | 22 ++++++++++ hypr/hyprland.conf | 17 ++------ hypr/hyprlock.conf | 47 +++++++++++++++++++++ hypr/input.conf | 6 +-- hypr/{look-and-feel.conf => looknfeel.conf} | 10 +++-- 10 files changed, 135 insertions(+), 28 deletions(-) create mode 100644 hypr/autostart.conf create mode 100644 hypr/bindings.conf create mode 100644 hypr/bindings/hyprshot.conf rename hypr/{binds.conf => bindings/tiling.conf} (95%) create mode 100644 hypr/colors.conf create mode 100644 hypr/hypridle.conf create mode 100644 hypr/hyprlock.conf rename hypr/{look-and-feel.conf => looknfeel.conf} (92%) diff --git a/hypr/autostart.conf b/hypr/autostart.conf new file mode 100644 index 0000000..30e1f79 --- /dev/null +++ b/hypr/autostart.conf @@ -0,0 +1,13 @@ +################# +### AUTOSTART ### +################# + +# Autostart necessary processes (like notifications daemons, status bars, etc.) +# Or execute your favorite apps at launch like this: + +exec-once = waybar & hyprpaper +exec-once = swaync + +exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark' +exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' + diff --git a/hypr/bindings.conf b/hypr/bindings.conf new file mode 100644 index 0000000..4f75913 --- /dev/null +++ b/hypr/bindings.conf @@ -0,0 +1,9 @@ +#################### +### KEYBINDINGSS ### +#################### + +# See https://wiki.hyprland.org/Configuring/Keywords/ +source = ~/.config/hypr/bindings/tiling.conf +source = ~/.config/hypr/bindings/hyprshot.conf + + diff --git a/hypr/bindings/hyprshot.conf b/hypr/bindings/hyprshot.conf new file mode 100644 index 0000000..00cc1af --- /dev/null +++ b/hypr/bindings/hyprshot.conf @@ -0,0 +1,2 @@ +bind = ALT SHIFT, 4, exec, hyprshot -m region +bind = ALT SHIFT, 5, exec, hyprshot -m window diff --git a/hypr/binds.conf b/hypr/bindings/tiling.conf similarity index 95% rename from hypr/binds.conf rename to hypr/bindings/tiling.conf index 1e58e0d..337a449 100644 --- a/hypr/binds.conf +++ b/hypr/bindings/tiling.conf @@ -1,11 +1,7 @@ -#################### -### KEYBINDINGSS ### -#################### - -# See https://wiki.hyprland.org/Configuring/Keywords/ $mainMod = SUPER # Sets "Windows" key as main modifier # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more + bind = $mainMod, RETURN, exec, $terminal bind = $mainMod, W, killactive, bind = $mainMod, M, exit, diff --git a/hypr/colors.conf b/hypr/colors.conf new file mode 100644 index 0000000..9cdc226 --- /dev/null +++ b/hypr/colors.conf @@ -0,0 +1,31 @@ +$accent = $lavender + +# accents +$rosewater = rgba(f5e0dcFF) +$flamingo = rgba(f2cdcdFF) +$pink = rgba(f5c2e7FF) +$mauve = rgba(cba6f7FF) +$red = rgba(f38ba8FF) +$maroon = rgba(eba0acFF) +$peach = rgba(fab387FF) +$yellow = rgba(f9e2afFF) +$green = rgba(a6e3a1FF) +$teal = rgba(94e2d5FF) +$sky = rgba(89dcebFF) +$sapphire = rgba(74c7ecFF) +$blue = rgba(89b4faFF) +$lavender = rgba(b4befeFF) + +# text +$text = rgba(cdd6f4FF) +$subtext1 = rgba(bac2deFF) +$subtext0 = rgba(a6adc8FF) + +# surfaces +$surface0 = rgba(313244FF) +$surface1 = rgba(45475aFF) +$surface2 = rgba(585b70FF) +$base = rgba(1e1e2eFF) +$mantle = rgba(181825FF) +$crust = rgba(11111bFF) + diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf new file mode 100644 index 0000000..d39c97f --- /dev/null +++ b/hypr/hypridle.conf @@ -0,0 +1,22 @@ +general { + lock_cmd = omarchy-lock-screen # lock screen and 1password + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. + inhibit_sleep = 3 # wait until screen is locked +} + +listener { + timeout = 150 # 2.5min + on-timeout = pidof hyprlock || omarchy-launch-screensaver # start screensaver (if we haven't locked already) +} + +listener { + timeout = 151 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 330 # 5.5min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected +} diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 1af16d8..e97a8cf 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -1,20 +1,9 @@ +source = ~/.config/hypr/autostart.conf source = ~/.config/hypr/monitors.conf source = ~/.config/hypr/programs.conf -source = ~/.config/hypr/binds.conf +source = ~/.config/hypr/bindings.conf source = ~/.config/hypr/input.conf -source = ~/.config/hypr/look-and-feel.conf - -################# -### AUTOSTART ### -################# - -# Autostart necessary processes (like notifications daemons, status bars, etc.) -# Or execute your favorite apps at launch like this: - -# exec-once = $terminal -# exec-once = nm-applet & -# exec-once = waybar & hyprpaper & firefox -exec-once = waybar & hyprpaper +source = ~/.config/hypr/looknfeel.conf ############################# ### ENVIRONMENT VARIABLES ### diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..4aa226f --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,47 @@ +$color = rgba(#1e1e2e, 1.0) +$inner_color = rgba(#1e1e2e, 0.8) +$outer_color = rgba(#cdd6f4, 1.0) +$font_color = rgba(#cdd6f4, 1.0) +$check_color = rgba(#89b4fa, 1.0) + +general { + ignore_empty_input = true +} + +background { + monitor = + color = $color + path = ~/.config/omarchy/current/background + blur_passes = 3 +} + +animations { + enabled = false +} + +input-field { + monitor = + size = 650, 100 + position = 0, 0 + halign = center + valign = center + + inner_color = $inner_color + outer_color = $outer_color + outline_thickness = 4 + + font_family = JetBrainsMono Nerd Font + font_color = $font_color + + placeholder_text = Enter Password + check_color = $check_color + fail_text = $FAIL ($ATTEMPTS) + + rounding = 0 + shadow_passes = 0 + fade_on_empty = false +} + +auth { + fingerprint:enabled = false +} diff --git a/hypr/input.conf b/hypr/input.conf index 470f13c..758dedc 100644 --- a/hypr/input.conf +++ b/hypr/input.conf @@ -7,7 +7,6 @@ input { kb_layout = us kb_variant = altgr-intl kb_options = caps:swapescape - kb_options = kb_rules = follow_mouse = 1 @@ -19,10 +18,7 @@ input { } } -# https://wiki.hyprland.org/Configuring/Variables/#gestures -gestures { - #workspace_swipe = false -} +gesture = 3, horizontal, workspace # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more diff --git a/hypr/look-and-feel.conf b/hypr/looknfeel.conf similarity index 92% rename from hypr/look-and-feel.conf rename to hypr/looknfeel.conf index b4b2c9f..e9289df 100644 --- a/hypr/look-and-feel.conf +++ b/hypr/looknfeel.conf @@ -2,6 +2,8 @@ ### LOOK AND FEEL ### ##################### +source = ~/.config/hypr/colors.conf + # Refer to https://wiki.hyprland.org/Configuring/Variables/ # https://wiki.hyprland.org/Configuring/Variables/#general @@ -12,8 +14,8 @@ general { border_size = 2 # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors - col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg - col.inactive_border = rgba(595959aa) + col.active_border = $accent + col.inactive_border = $surface2 # Set to true enable resizing windows by clicking and dragging on borders and gaps resize_on_border = false @@ -30,8 +32,8 @@ decoration { rounding = 10 # Change transparency of focused and unfocused windows - active_opacity = 1.0 - inactive_opacity = 1.0 + active_opacity = 0.995 + inactive_opacity = 0.95 # https://wiki.hyprland.org/Configuring/Variables/#blur blur {