From e28533f95ddd5fb55c26ae7b730fb5d1232f524e Mon Sep 17 00:00:00 2001 From: WayfinderAK Date: Wed, 17 Sep 2025 12:09:14 -0800 Subject: [PATCH] Initial commit with Hypr dotfiles --- hypr/.config/hypr/autostart.conf | 2 ++ hypr/.config/hypr/bindings.conf | 53 +++++++++++++++++++++++++++++++ hypr/.config/hypr/envs.conf | 3 ++ hypr/.config/hypr/hypridle.conf | 17 ++++++++++ hypr/.config/hypr/hyprland.conf | 19 +++++++++++ hypr/.config/hypr/hyprlock.conf | 37 +++++++++++++++++++++ hypr/.config/hypr/hyprsunset.conf | 6 ++++ hypr/.config/hypr/input.conf | 32 +++++++++++++++++++ hypr/.config/hypr/monitors.conf | 20 ++++++++++++ 9 files changed, 189 insertions(+) create mode 100644 hypr/.config/hypr/autostart.conf create mode 100644 hypr/.config/hypr/bindings.conf create mode 100644 hypr/.config/hypr/envs.conf create mode 100644 hypr/.config/hypr/hypridle.conf create mode 100644 hypr/.config/hypr/hyprland.conf create mode 100644 hypr/.config/hypr/hyprlock.conf create mode 100644 hypr/.config/hypr/hyprsunset.conf create mode 100644 hypr/.config/hypr/input.conf create mode 100644 hypr/.config/hypr/monitors.conf diff --git a/hypr/.config/hypr/autostart.conf b/hypr/.config/hypr/autostart.conf new file mode 100644 index 0000000..3b7c62d --- /dev/null +++ b/hypr/.config/hypr/autostart.conf @@ -0,0 +1,2 @@ +# Extra autostart processes +# exec-once = uwsm app -- my-service diff --git a/hypr/.config/hypr/bindings.conf b/hypr/.config/hypr/bindings.conf new file mode 100644 index 0000000..720c319 --- /dev/null +++ b/hypr/.config/hypr/bindings.conf @@ -0,0 +1,53 @@ +# Application bindings +$terminal = ghostty +$browser = omarchy-launch-browser + +bindd = SUPER, return, Ghostty, exec, $terminal +bindd = SUPER, F, File manager, exec, uwsm app -- nautilus --new-window +bindd = SUPER, B, Browser, exec, zen-browser --new-window +bindd = SUPER, M, Music, exec, uwsm app -- spotify +bindd = SUPER, T, Activity, exec, $terminal -e btop +bindd = SUPER, N, Joplin, exec, uwsm app -- joplin +bindd = SUPER, slash, Passwords, exec, uwsm app -- bitwarden-desktop +bindd = SUPER, R, Reload Waybar, exec, killall -SIGUSR2 waybar + +bindd = SUPER, A, ChatGPT, exec, omarchy-launch-webapp "https://gemini.google.com" +bindd = SUPER SHIFT, A, Grok, exec, omarchy-launch-webapp "https://grok.com" +bindd = SUPER, C, Calendar, exec, omarchy-launch-webapp "https://app.hey.com/calendar/weeks/" +bindd = SUPER, E, Email, exec, omarchy-launch-webapp "https://mail.djpianalto.com/Sogo" +bindd = SUPER, Y, YouTube, exec, omarchy-launch-webapp "https://youtube.com/" +bindd = SUPER, G, Google Messages, exec, omarchy-launch-webapp "https://messages.google.com/web/conversations" +bindd = SUPER, X, X, exec, omarchy-launch-webapp "https://x.com/" +bindd = SUPER SHIFT, X, X Post, exec, omarchy-launch-webapp "https://x.com/compose/post" +bindd = SUPER, D, Discord, exec, omarchy-launch-webapp "https://discord.com/channels/@me" + +bindd = SUPER CTRL, 1, Move Workspace to Monitor 1, movecurrentworkspacetomonitor, 1 +bindd = SUPER CTRL, 2, Move Workspace to Monitor 2, movecurrentworkspacetomonitor, 2 +bindd = SUPER CTRL, 3, Move Workspace to Monitor 3, movecurrentworkspacetomonitor, 3 +bindd = SUPER CTRL, 4, Move Workspace to Monitor 4, movecurrentworkspacetomonitor, 4 + +# Overwrite existing bindings, like putting Omarchy Menu on Super + Space +# unbind = SUPER, Space +# bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu +unbind = SUPER, J +unbind = SUPER, K +unbind = SUPER, H +unbind = SUPER, L +bindd = SUPER, J, Move focus down, movefocus, d +bindd = SUPER, K, Move focus up, movefocus, u +bindd = SUPER, H, Move focus left, movefocus, l +bindd = SUPER, L, Move focus right, movefocus, r +unbind = SUPER SHIFT, J +unbind = SUPER SHIFT, K +unbind = SUPER SHIFT, H +unbind = SUPER SHIFT, L +bindd = SUPER SHIFT, J, Move focus down, swapwindow, d +bindd = SUPER SHIFT, K, Move focus up, swapwindow, u +bindd = SUPER SHIFT, H, Move focus left, swapwindow, l +bindd = SUPER SHIFT, L, Move focus right, swapwindow, r +bindd = SUPER, S, Toggle Split, togglesplit + +bind = SUPER CTRL, L, resizeactive, 10 0 +bind = SUPER CTRL, H, resizeactive, -10 0 +bind = SUPER CTRL, K, resizeactive, 0 -10 +bind = SUPER CTRL, J, resizeactive, 0 10 diff --git a/hypr/.config/hypr/envs.conf b/hypr/.config/hypr/envs.conf new file mode 100644 index 0000000..53e0825 --- /dev/null +++ b/hypr/.config/hypr/envs.conf @@ -0,0 +1,3 @@ +# Extra env variables +# Note: You must relaunch Hyprland after changing envs (use Super+Esc, then Relaunch) +# env = MY_GLOBAL_ENV,setting diff --git a/hypr/.config/hypr/hypridle.conf b/hypr/.config/hypr/hypridle.conf new file mode 100644 index 0000000..91bdd03 --- /dev/null +++ b/hypr/.config/hypr/hypridle.conf @@ -0,0 +1,17 @@ +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 = 600 + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 660 + 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/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf new file mode 100644 index 0000000..e03c300 --- /dev/null +++ b/hypr/.config/hypr/hyprland.conf @@ -0,0 +1,19 @@ +# Learn how to configure Hyprland: https://wiki.hyprland.org/Configuring/ + +# Use defaults Omarchy defaults (but don't edit these directly!) +source = ~/.local/share/omarchy/default/hypr/autostart.conf +source = ~/.local/share/omarchy/default/hypr/bindings/media.conf +source = ~/.local/share/omarchy/default/hypr/bindings/tiling.conf +source = ~/.local/share/omarchy/default/hypr/bindings/utilities.conf +source = ~/.local/share/omarchy/default/hypr/envs.conf +source = ~/.local/share/omarchy/default/hypr/looknfeel.conf +source = ~/.local/share/omarchy/default/hypr/input.conf +source = ~/.local/share/omarchy/default/hypr/windows.conf +source = ~/.config/omarchy/current/theme/hyprland.conf + +# Change your own setup in these files (and overwrite any settings from defaults!) +source = ~/.config/hypr/monitors.conf +source = ~/.config/hypr/input.conf +source = ~/.config/hypr/bindings.conf +source = ~/.config/hypr/envs.conf +source = ~/.config/hypr/autostart.conf diff --git a/hypr/.config/hypr/hyprlock.conf b/hypr/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..f3e8159 --- /dev/null +++ b/hypr/.config/hypr/hyprlock.conf @@ -0,0 +1,37 @@ +source = ~/.config/omarchy/current/theme/hyprlock.conf + +background { + monitor = + color = $color +} + +animations { + enabled = false +} + +input-field { + monitor = + size = 600, 100 + position = 0, 0 + halign = center + valign = center + + inner_color = $inner_color + outer_color = $outer_color + outline_thickness = 4 + + font_family = CaskaydiaMono Nerd Font + font_color = $font_color + + placeholder_text =   Enter Password 󰈷  + check_color = $check_color + fail_text = $PAMFAIL ($ATTEMPTS) + + rounding = 0 + shadow_passes = 0 + fade_on_empty = false +} + +auth { + fingerprint:enabled = true +} diff --git a/hypr/.config/hypr/hyprsunset.conf b/hypr/.config/hypr/hyprsunset.conf new file mode 100644 index 0000000..1827445 --- /dev/null +++ b/hypr/.config/hypr/hyprsunset.conf @@ -0,0 +1,6 @@ +# Makes hyprsunset do nothing to the screen by default +# Without this, the default applies some tint to the monitor +profile { + time = 00:00 + identity = true +} \ No newline at end of file diff --git a/hypr/.config/hypr/input.conf b/hypr/.config/hypr/input.conf new file mode 100644 index 0000000..a345ae5 --- /dev/null +++ b/hypr/.config/hypr/input.conf @@ -0,0 +1,32 @@ +# Control your input devices +# See https://wiki.hypr.land/Configuring/Variables/#input +input { + # Use multiple keyboard layouts and switch between them with Left Alt + Right Alt + # kb_layout = us,dk,eu + kb_layout = us + kb_options = compose:ralt,caps:escape,grp:alt_shift_toggle # ,grp:alts_toggle + + # Change speed of keyboard repeat + repeat_rate = 40 + repeat_delay = 600 + + # Start with numlock on by default + numlock_by_default = true + + # Increase sensitity for mouse/trackpack (default: 0) + # sensitivity = 0.35 + + touchpad { + # Use natural (inverse) scrolling + natural_scroll = true + + # Use two-finger clicks for right-click instead of lower-right corner + clickfinger_behavior = true + + # Control the speed of your scrolling + scroll_factor = 0.4 + } +} + +# Scroll faster in the terminal +windowrule = scrolltouchpad 1.5, class:Alacritty diff --git a/hypr/.config/hypr/monitors.conf b/hypr/.config/hypr/monitors.conf new file mode 100644 index 0000000..6fc1387 --- /dev/null +++ b/hypr/.config/hypr/monitors.conf @@ -0,0 +1,20 @@ +# See https://wiki.hyprland.org/Configuring/Monitors/ +# List current monitors and resolutions possible: hyprctl monitors +# Format: monitor = [port], resolution, position, scale +# You must relaunch Hyprland after changing any envs (use Super+Esc, then Relaunch) + +# Optimized for retina-class 2x displays, like 13" 2.8K, 27" 5K, 32" 6K. +env = GDK_SCALE,2 +monitor=,preferred,auto,auto + +# Good compromise for 27" or 32" 4K monitors (but fractional!) +# env = GDK_SCALE,1.75 +# monitor=,preferred,auto,1.666667 + +# Straight 1x setup for low-resolution displays like 1080p or 1440p +# env = GDK_SCALE,1 +# monitor=,preferred,auto,1 + +# Example for Framework 13 w/ 6K XDR Apple display +# monitor = DP-5, 6016x3384@60, auto, 2 +# monitor = eDP-1, 2880x1920@120, auto, 2