From b91afebd2a40a6fee61c7cf6517612bfd704b946 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Thu, 14 Sep 2023 15:42:20 +0200 Subject: [PATCH] updated hyprland config --- .config/hypr/hyprland.conf | 173 ++++++++++++++++++------------------- 1 file changed, 82 insertions(+), 91 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index c40e13a..1a880cf 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,141 +1,131 @@ - -# -# Please note not all available settings / options are set here. -# For a full list, see the wiki -# - -# See https://wiki.hyprland.org/Configuring/Monitors/ monitor=,preferred,auto,auto +# Load colors +source = ~/.config/hypr/nord-colors.conf -# See https://wiki.hyprland.org/Configuring/Keywords/ for more - -# Execute your favorite apps at launch -# exec-once = waybar & hyprpaper & firefox - -# 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 = + kb_layout = us + kb_variant = + kb_model = + kb_options = + kb_rules = - follow_mouse = 1 + numlock_by_default = true - touchpad { - natural_scroll = no - } + follow_mouse = 1 - sensitivity = 0 # -1.0 - 1.0, 0 means no modification. + touchpad { + natural_scroll = no + } } general { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - gaps_in = 5 - gaps_out = 7 - border_size = 2 - col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg - col.inactive_border = rgba(595959aa) - layout = dwindle + gaps_in = 5 + gaps_out = 3 + border_size = 2 + col.active_border = $color3 + col.inactive_border = $color0 + layout = dwindle } decoration { - # See https://wiki.hyprland.org/Configuring/Variables/ for more + rounding = 5 + blur { + enabled = true + special = false + size = 2 + } + drop_shadow = yes + shadow_range = 4 + shadow_render_power = 3 + col.shadow = rgba(1a1a1aee) + dim_special = 0.6 +} - rounding = 5 - blur = yes - blur_size = 3 - blur_passes = 1 - blur_new_optimizations = on - - drop_shadow = yes - shadow_range = 4 - shadow_render_power = 3 - col.shadow = rgba(1a1a1aee) +misc { +# disable_hyprland_logo = true +# disable_splash_rendering = true + force_hypr_chan = true + animate_manual_resizes = true + animate_mouse_windowdragging = true + + mouse_move_enables_dpms = true + key_press_enables_dpms = true + + enable_swallow = true +# swallow_regex = class regex } animations { - enabled = yes + enabled = yes + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 - # 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, 7, myBezier - animation = windowsOut, 1, 7, default, popin 80% - animation = border, 1, 10, default - animation = borderangle, 1, 8, default - animation = fade, 1, 7, default - animation = workspaces, 1, 6, default + animation = windows, 1, 7, myBezier + animation = windowsOut, 1, 7, default, popin 80% + animation = border, 1, 10, default + animation = borderangle, 1, 8, default + animation = fade, 1, 7, default + animation = workspaces, 1, 6, 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 + pseudotile = yes + preserve_split = yes } master { - # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more - new_is_master = true + new_is_master = true } gestures { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - workspace_swipe = off + workspace_swipe = off } binds { - workspace_back_and_forth=true + workspace_back_and_forth = true + allow_workspace_cycles = true } -# Example per-device config -# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more device:zly-zelotes-game-mouse { - sensitivity = -1 + sensitivity = -1 } -# Window/Layer-Rules +# Window and layer rules layerrule = noanim,rofi -windowrulev2 = workspace special, class:^(Spotify)$ - -# Example windowrule v1 -# windowrule = float, ^(kitty)$ -# Example windowrule v2 -# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ -# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more +windowrulev2 = workspace special:spotify silent, class:^(Spotify)$ +windowrulev2 = workspace special:term silent, class:^(scratchpad)$ # Env env = MOZ_ENABLE_WAYLAND,1 env = SDL_VIDEODRIVER,wayland +env = GDK_BACKEND=wayland,x11 +env = QT_QPA_PLATFORM=wayland;xcb +env = XCURSOR_SIZE=24 # Autostart exec-once = waybar exec-once = swaync exec-once = hyprpaper +exec-once = swayidle -w +exec-once = alacritty --class scratchpad -# See https://wiki.hyprland.org/Configuring/Keywords/ for more +# Keybinds $mainMod = SUPER $mainModShift = SUPER_SHIFT bind = $mainMod, Return, exec, alacritty -bind = $mainModShift, Q, exec, $XDG_CONFIG_HOME/hypr/killscript.sh +#bind = $mainModShift, Q, exec, $XDG_CONFIG_HOME/hypr/killscript.sh +bind = $mainMod, Tab, focuscurrentorlast +bind = $mainModShift, Q, killactive bind = $mainModShift, E, exec, $XDG_CONFIG_HOME/rofi/powermenu.sh bind = $mainModShift, Space, togglefloating bind = $mainMod, D, exec, rofi -show drun -theme $XDG_CONFIG_HOME/rofi/launcher.rasi bind = $mainMod, M, exec, $XDG_CONFIG_HOME/waybar/mute-toggle.sh -#bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, F, fullscreen +bind =, Print, exec, $XDG_DATA_HOME/scripts/share-screenshot.sh # Audio buttons binde =, XF86AudioRaiseVolume, exec, playerctl --player=spotify,%any volume 0.05+ @@ -169,16 +159,16 @@ 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 +bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 +bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 +bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 +bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 +bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 +bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 +bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 +bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 +bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 +bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 @@ -189,5 +179,6 @@ bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # Scratchpad -bind = $mainMod, F1, togglespecialworkspace +bind = $mainMod, F1, togglespecialworkspace, term +bind = $mainMod, F2, togglespecialworkspace, spotify