From e7216cf84c1197773b414ce6c8b29701c442736a Mon Sep 17 00:00:00 2001 From: clxxiii Date: Thu, 2 Nov 2023 04:09:47 -0400 Subject: [PATCH] add hypr config --- hypr/hyprland.conf | 197 ++++++++++++++++++++++++++++++++++++++++++++ hypr/hyprpaper.conf | 3 + symlinks.sh | 2 + 3 files changed, 202 insertions(+) create mode 100644 hypr/hyprland.conf create mode 100644 hypr/hyprpaper.conf diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf new file mode 100644 index 0000000..4ce3f8f --- /dev/null +++ b/hypr/hyprland.conf @@ -0,0 +1,197 @@ + +# +# Please note not all available settings / options are set here. +# For a full list, see the wiki +# + +autogenerated = 0 # remove this line to remove the warning + +# See https://wiki.hyprland.org/Configuring/Monitors/ +monitor=eDP-1, preferred, 0x0, 1 +monitor=HDMI-A-1, 1920x1080@60, 1920x0, 1 + + +# See https://wiki.hyprland.org/Configuring/Keywords/ for more + +# Execute your favorite apps at launch +exec-once = hyprpaper +exec-once = eww-wayland open wayland + +# Source a file (multi-file configs) +# source = ~/.config/hypr/myColors.conf + +# Some default env vars. +env = XCURSOR_SIZE,24 + +# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ +input { + kb_layout = us + kb_variant = + kb_model = + kb_options = + kb_rules = + + follow_mouse = 1 + + touchpad { + natural_scroll = yes + } + + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. +} + +general { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + + gaps_in = 3 + gaps_out = 6 + border_size = 2 + col.active_border = rgba(585b70ff) + col.inactive_border = rgba(1e1e2eff) + + layout = dwindle +} + +decoration { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + + rounding = 6 + blur { + enabled = true + size = 2 + passes = 4 + noise = 0 + ignore_opacity = true + xray = false + } + # blur = yes + # blur_size = 3 + # blur_passes = 1 + # blur_new_optimizations = on + + drop_shadow = no + shadow_range = 4 + shadow_render_power = 3 + col.shadow = rgba(1a1a1aee) +} + +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, 3, myBezier + animation = windowsOut, 1, 3, default, popin 80% + animation = border, 1, 3, default + animation = borderangle, 1, 4, default + animation = fade, 1, 4, default + animation = workspaces, 1, 3, default +} + +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 +} + +# Example windowrule v1 +# windowrule = float, ^(kitty)$ +# Example windowrule v2 +windowrulev2 = opacity 0.7,class:Rofi +windowrulev2 = opacity 0.8,class:Spotify +windowrulev2 = opacity 0.8,class:discord +windowrulev2 = opacity 0.8,class:mailspring +windowrulev2 = opacity 0.8,class:todoist +windowrulev2 = opacity 0.9,class:alacritty +windowrulev2 = opacity 0.9,class:obsidian +windowrulev2 = opacity 0.9,class:Code +windowrulev2 = opacity 0.8,class:neovide +windowrulev2 = opacity 0.8,class:chatterino + +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more + + +# See https://wiki.hyprland.org/Configuring/Keywords/ for more +$mainMod = SUPER + +# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more +bind = $mainMod, RETURN, exec, alacritty +bind = ,Print, exec, grimblast copy area +bind = $mainMod SHIFT, Q, killactive, +bind = $mainMod SHIFT, E, exec, rofi -show p -modi 'p:~/.config/rofi/rofi-power-menu-hypr --choices shutdown/reboot/suspend/logout', +bind = $mainMod SHIFT, SPACE, togglefloating, +bind = $mainMod, D, exec, rofi -show drun +bind = $mainMod, E, togglesplit, # dwindle +bind = $mainMod, Y, pseudo # dwindle +bind = $mainMod, F, fullscreen # dwindle + +# Move focus with mainMod + arrow keys +bind = $mainMod, H, movefocus, l +bind = $mainMod, L, movefocus, r +bind = $mainMod, K, movefocus, u +bind = $mainMod, J, movefocus, d + +# Move window with mainMod + SHIFT +arrow keys +bind = $mainMod SHIFT, H, movewindow, l +bind = $mainMod SHIFT, L, movewindow, r +bind = $mainMod SHIFT, K, movewindow, u +bind = $mainMod SHIFT, J, movewindow, d + +# Change Window Size +bind = $mainMod, U, resizeactive, -40 0 +bind = $mainMod, P, resizeactive, 40 0 +bind = $mainMod, O, resizeactive, 0 40 +bind = $mainMod, I, resizeactive, 0 -40 + +# Switch workspaces with mainMod + [0-9] +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +# bind = $mainMod, 6, workspace, 6 +# bind = $mainMod, 7, workspace, 7 +# bind = $mainMod, 8, workspace, 8 +# bind = $mainMod, 9, workspace, 9 +# bind = $mainMod, 0, workspace, 10 + +# Move active window to a workspace with mainMod + SHIFT + [0-9] +bind = $mainMod SHIFT, 1, movetoworkspace, 1 +bind = $mainMod SHIFT, 2, movetoworkspace, 2 +bind = $mainMod SHIFT, 3, movetoworkspace, 3 +bind = $mainMod SHIFT, 4, movetoworkspace, 4 +bind = $mainMod SHIFT, 5, movetoworkspace, 5 +bind = $mainMod SHIFT, 6, movetoworkspace, 6 +bind = $mainMod SHIFT, 7, movetoworkspace, 7 +bind = $mainMod SHIFT, 8, movetoworkspace, 8 +bind = $mainMod SHIFT, 9, movetoworkspace, 9 +bind = $mainMod SHIFT, 0, movetoworkspace, 10 + +# Scroll through existing workspaces with mainMod + scroll +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 +# Example special workspace (scratchpad) +bind = $mainMod, T, togglespecialworkspace, magic +bind = $mainMod SHIFT, T, movetoworkspace, special:magic + +# Move/resize windows with mainMod + LMB/RMB and dragging +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf new file mode 100644 index 0000000..60f54cd --- /dev/null +++ b/hypr/hyprpaper.conf @@ -0,0 +1,3 @@ +preload = /home/eli/Pictures/Wallpapers/forest.png +wallpaper = eDP-1, /home/eli/Pictures/Wallpapers/forest.png +wallpaper = HDMI-A-1, /home/eli/Pictures/Wallpapers/forest.png diff --git a/symlinks.sh b/symlinks.sh index f35a0af..c98fa6e 100755 --- a/symlinks.sh +++ b/symlinks.sh @@ -30,6 +30,7 @@ link() { ln -s $DOTFILES_DIR/.nap ~/.nap ln -s $DOTFILES_DIR/neofetch ~/.config/neofetch ln -s $DOTFILES_DIR/eww ~/.config/eww + ln -s $DOTFILES_DIR/hypr ~/.config/hypr ln -s ~/.dotfiles/.zshrc ~/.zshrc ln -s ~/.dotfiles/.zshenv ~/.zshenv @@ -57,6 +58,7 @@ unlink() { rm -rf ~/.nap rm -rf ~/.config/neofetch rm -rf ~/.config/eww + rm -rf ~/.config/hypr rm -f ~/.zshrc rm -f ~/.zshenv -- 2.51.2