From b896e383c78c74fd87bfda38774ce54a75d9d2ab Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 10 Dec 2025 23:48:55 +0100 Subject: Clean up hyprland and use the role defaults --- .config/hypr/bindings.conf | 60 ------------------ .config/hypr/envs.conf | 5 -- .config/hypr/hyprland.conf | 5 +- .config/hypr/input.conf | 30 +-------- .config/hypr/looknfeel.conf | 147 -------------------------------------------- .config/hypr/monitors.conf | 14 ----- 6 files changed, 3 insertions(+), 258 deletions(-) delete mode 100644 .config/hypr/envs.conf delete mode 100644 .config/hypr/looknfeel.conf delete mode 100644 .config/hypr/monitors.conf (limited to '.config') diff --git a/.config/hypr/bindings.conf b/.config/hypr/bindings.conf index 2ea6bd3..428e2da 100644 --- a/.config/hypr/bindings.conf +++ b/.config/hypr/bindings.conf @@ -8,63 +8,3 @@ bindd = SUPER SHIFT, T, Terminal, exec, uwsm-app -- alacritty bindd = SUPER SHIFT, F, File Manager, exec, uwsm-app -- nautilus --new-window bindd = SUPER SHIFT, B, Web Browser, exec, uwsm-app -- firefox bindd = SUPER SHIFT CONTROL, B, Web Browser, exec, uwsm-app -- firefox --private-window - -# Switch workspaces with ctrl + [0-9] (MacOS-like) -bind = CONTROL, 1, workspace, 1 -bind = CONTROL, 2, workspace, 2 -bind = CONTROL, 3, workspace, 3 -bind = CONTROL, 4, workspace, 4 -bind = CONTROL, 5, workspace, 5 -bind = CONTROL, 6, workspace, 6 -bind = CONTROL, 7, workspace, 7 -bind = CONTROL, 8, workspace, 8 -bind = CONTROL, 9, workspace, 9 -bind = CONTROL, 0, workspace, 10 - -# Move active window to a workspace with ctrl + SHIFT + [0-9] -bind = CONTROL SHIFT, 1, movetoworkspace, 1 -bind = CONTROL SHIFT, 2, movetoworkspace, 2 -bind = CONTROL SHIFT, 3, movetoworkspace, 3 -bind = CONTROL SHIFT, 4, movetoworkspace, 4 -bind = CONTROL SHIFT, 5, movetoworkspace, 5 -bind = CONTROL SHIFT, 6, movetoworkspace, 6 -bind = CONTROL SHIFT, 7, movetoworkspace, 7 -bind = CONTROL SHIFT, 8, movetoworkspace, 8 -bind = CONTROL SHIFT, 9, movetoworkspace, 9 -bind = CONTROL SHIFT, 0, movetoworkspace, 10 - -# Move/resize windows with mouse (SUPER + SHIFT + left/right click) -bindm = SUPER SHIFT, mouse:272, movewindow -bindm = SUPER SHIFT, mouse:273, resizewindow - -# Move focus with (SUPER + h/j/k/l) -binde = SUPER, h, movefocus, l -binde = SUPER, j, movefocus, d -binde = SUPER, k, movefocus, u -binde = SUPER, l, movefocus, r - -# Swap windows with (SUPER + SHIFT + h/j/k/l) -binde = SUPER SHIFT, h, swapwindow, l -binde = SUPER SHIFT, j, swapwindow, d -binde = SUPER SHIFT, k, swapwindow, u -binde = SUPER SHIFT, l, swapwindow, r - -# Resize windows with (SUPER + CONTROL + h/j/k/l) -binde = SUPER CONTROL, h, resizeactive, -20 0 -binde = SUPER CONTROL, j, resizeactive, 0 20 -binde = SUPER CONTROL, k, resizeactive, 0 -20 -binde = SUPER CONTROL, l, resizeactive, 20 0 - -# Laptop multimedia keys for volume and LCD brightness -bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ -bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle -bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle -bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ -bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- - -# Requires playerctl -bindl = , XF86AudioNext, exec, playerctl next -bindl = , XF86AudioPause, exec, playerctl play-pause -bindl = , XF86AudioPlay, exec, playerctl play-pause -bindl = , XF86AudioPrev, exec, playerctl previous diff --git a/.config/hypr/envs.conf b/.config/hypr/envs.conf deleted file mode 100644 index 51f7bc0..0000000 --- a/.config/hypr/envs.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Configure Hyprland Environment Variables -# See https://wiki.hypr.land/Configuring/Environment-variables/ - -env = XCURSOR_SIZE,24 -env = HYPRCURSOR_SIZE,24 diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 8c0c82c..af45317 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,7 +1,6 @@ # Hyprland main configuration file # Based on Omarchy hyprland setup -source = ~/.config/hypr/monitors.conf +# check /etc/hyprland/hyprland.conf for the defaults + source = ~/.config/hypr/input.conf source = ~/.config/hypr/bindings.conf -source = ~/.config/hypr/envs.conf -source = ~/.config/hypr/looknfeel.conf diff --git a/.config/hypr/input.conf b/.config/hypr/input.conf index 7029850..8eb77e8 100644 --- a/.config/hypr/input.conf +++ b/.config/hypr/input.conf @@ -3,36 +3,8 @@ input { # Swap Caps Lock and Escape kb_options = caps:swapescape - kb_layout = us # Change speed of keyboard repeat repeat_rate = 40 - repeat_delay = 600 - - # Don't start with numlock on by default - numlock_by_default = false - - # Increase sensitivity for mouse/trackpad (default: 0) - # sensitivity = 0.35 - - # focus follows mouse pointer - # follow_mouse = 1 - - touchpad { - natural_scroll = false - - # 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 - } + repeat_delay = 300 } - -# Scroll nicely in the terminal -windowrule = scrolltouchpad 1.5, class:(Alacritty|kitty) -windowrule = scrolltouchpad 0.2, class:com.mitchellh.ghostty - -# Enable touchpad gestures for changing workspaces -# See https://wiki.hyprland.org/Configuring/Gestures/ -# gesture = 3, horizontal, workspace diff --git a/.config/hypr/looknfeel.conf b/.config/hypr/looknfeel.conf deleted file mode 100644 index 5f38613..0000000 --- a/.config/hypr/looknfeel.conf +++ /dev/null @@ -1,147 +0,0 @@ -# Look'n'feel configurations -# Inspired by Omarchy Hyprland setup -# Source: https://github.com/basecamp/omarchy/tree/8a37f3dce71b0764e3758cb86478c503a4a8746e/config/hypr/looknfeel.conf -# Defaults: https://github.com/basecamp/omarchy/blob/8a37f3dce71b0764e3758cb86478c503a4a8746e/default/hypr/looknfeel.conf - -# Refer to https://wiki.hyprland.org/Configuring/Variables/ -# Variables -$activeBorderColor = rgba(33ccffee) rgba(00ff99ee) 45deg -$inactiveBorderColor = rgba(595959aa) - -# https://wiki.hyprland.org/Configuring/Variables/#general -general { - gaps_in = 5 - gaps_out = 10 - - border_size = 2 - - # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors - col.active_border = $activeBorderColor - col.inactive_border = $inactiveBorderColor - - # Set to true enable resizing windows by clicking and dragging on borders and gaps - resize_on_border = false - - # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on - allow_tearing = false - - layout = dwindle -} - -# https://wiki.hyprland.org/Configuring/Variables/#decoration -decoration { - rounding = 5 - - shadow { - enabled = true - range = 2 - render_power = 3 - color = rgba(1a1a1aee) - } - - # Change transparency of focused and unfocused windows - active_opacity = 1.0 - inactive_opacity = 0.75 - - # https://wiki.hyprland.org/Configuring/Variables/#blur - blur { - enabled = true - size = 2 - passes = 2 - special = true - brightness = 0.60 - contrast = 0.75 - } -} - -# https://wiki.hypr.land/Configuring/Variables/#group -group { - col.border_active = $activeBorderColor - col.border_inactive = $inactiveBorderColor - col.border_locked_active = -1 - col.border_locked_inactive = -1 - - groupbar { - font_size = 12 - font_family = monospace - font_weight_active = ultraheavy - font_weight_inactive = normal - - indicator_height = 0 - indicator_gap = 5 - height = 22 - gaps_in = 5 - gaps_out = 0 - - text_color = rgb(ffffff) - text_color_inactive = rgba(ffffff90) - col.active = rgba(00000040) - col.inactive = rgba(00000020) - - gradients = true - gradient_rounding = 0 - gradient_round_only_edges = false - } -} - - -# https://wiki.hyprland.org/Configuring/Variables/#animations -animations { - enabled = yes, please :) - - # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - - bezier = easeOutQuint,0.23,1,0.32,1 - bezier = easeInOutCubic,0.65,0.05,0.36,1 - bezier = linear,0,0,1,1 - bezier = almostLinear,0.5,0.5,0.75,1.0 - bezier = quick,0.15,0,0.1,1 - - animation = global, 1, 10, default - animation = border, 1, 5.39, easeOutQuint - animation = windows, 1, 4.79, easeOutQuint - animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% - animation = windowsOut, 1, 1.49, linear, popin 87% - animation = fadeIn, 1, 1.73, almostLinear - animation = fadeOut, 1, 1.46, almostLinear - animation = fade, 1, 3.03, quick - animation = layers, 1, 3.81, easeOutQuint - animation = layersIn, 1, 4, easeOutQuint, fade - animation = layersOut, 1, 1.5, linear, fade - animation = fadeLayersIn, 1, 1.79, almostLinear - animation = fadeLayersOut, 1, 1.39, almostLinear - animation = workspaces, 0, 0, ease -} - -# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more -dwindle { - pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below - preserve_split = true # You probably want this - force_split = 2 # Always split on the right -} - -# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more -master { - new_status = master -} - -# https://wiki.hyprland.org/Configuring/Variables/#misc -misc { - disable_hyprland_logo = true - disable_splash_rendering = true - focus_on_activate = true - anr_missed_pings = 3 - new_window_takes_over_fullscreen = 1 -} - -# https://wiki.hypr.land/Configuring/Variables/#cursor -cursor { - hide_on_key_press = true -} - -# Style Gum confirm to match terminal theme -env = GUM_CONFIRM_PROMPT_FOREGROUND,6 # Cyan -env = GUM_CONFIRM_SELECTED_FOREGROUND,0 # Black -env = GUM_CONFIRM_SELECTED_BACKGROUND,2 # Green -env = GUM_CONFIRM_UNSELECTED_FOREGROUND,0 # Black -env = GUM_CONFIRM_UNSELECTED_BACKGROUND,8 # Dark grey diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf deleted file mode 100644 index fb79789..0000000 --- a/.config/hypr/monitors.conf +++ /dev/null @@ -1,14 +0,0 @@ -# Configure Hyprland Monitors -# See https://wiki.hypr.land/Configuring/Monitors/ - -# 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.6 - -# Straight 1x setup for low-resolution displays like 1080p or 1440p -env = GDK_SCALE,1 -monitor=,preferred,auto,1 -- cgit v1.2.3