From c41e5d4866a150801d58e2a0a67ef452e61e2e49 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 15 May 2025 09:08:01 +0200 Subject: [PATCH] added hyprexpo --- desktopenvs/hyprland/hypr-usr/binds.conf | 4 +++- desktopenvs/hyprland/hypr/hyprland.conf | 16 ++++++++++++++-- setup/modules/Desktop-Enviroments/hyprland.sh | 6 +++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/desktopenvs/hyprland/hypr-usr/binds.conf b/desktopenvs/hyprland/hypr-usr/binds.conf index 729e187..ace7932 100644 --- a/desktopenvs/hyprland/hypr-usr/binds.conf +++ b/desktopenvs/hyprland/hypr-usr/binds.conf @@ -27,6 +27,8 @@ $vimright = l $vimup = k $vimdown = j +bind = $mainMod, E, hyprexpo:expo, toggle + # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal bind = $mainMod, Z, exec, $terminal btop @@ -40,7 +42,7 @@ bind = $mainMod, B, togglesplit, # dwindle bind = $mainMod SHIFT, O, exec, hyprctl dispatch exit 1 bind = $mainMod, O, exec, hyprlock #bind = $mainMod, A, exec, killall waybar ; waybar -bind = $mainMod, E, exec, eww reload +bind = $mainMod CTRL, E, exec, eww reload bind = $mainMod, N, exec, nextcloud bind = $mainMod, I, exec, env GTK_THEME=cyberqueer bash ~/Dotfiles/desktopenvs/hyprland/wofi/netman/wofi-network-manager.sh bind = $mainMod, S, exec, [tag +mixer] kitty pulsemixer diff --git a/desktopenvs/hyprland/hypr/hyprland.conf b/desktopenvs/hyprland/hypr/hyprland.conf index 1d0eece..75e7690 100644 --- a/desktopenvs/hyprland/hypr/hyprland.conf +++ b/desktopenvs/hyprland/hypr/hyprland.conf @@ -3,6 +3,19 @@ source = ~/.config/monitors.conf source = ~/.config/binds.conf source = ~/.config/windowrules.conf +plugin { + hyprexpo { + columns = 3 + gap_size = 5 + bg_col = rgb(111111) + workspace_method = center current # [center/first] [workspace] e.g. first 1 or center m+1 + + enable_gesture = true # laptop touchpad + gesture_fingers = 3 # 3 or 4 + gesture_distance = 300 # how far is the "max" + gesture_positive = true # positive = swipe down. Negative = swipe up. + } +} # https://wiki.hyprland.org/Configuring/Variables/#gestures gestures { workspace_swipe = true @@ -34,7 +47,6 @@ device { ################### # See https://wiki.hyprland.org/Configuring/Keywords/ - # Set programs that you use $terminal = kitty $fileManager = kitty -e yazi @@ -50,7 +62,7 @@ $menu = wofi --show=drun # Or execute your favorite apps at launch like this: exec-once=bash ~/Dotfiles/desktopenvs/hyprland/scripts/ewwstart.sh - +exec-once=bash hyprpm enable hyprexpo #exec-once = waybar exec-once = dunst # exec-once = nm-applet & diff --git a/setup/modules/Desktop-Enviroments/hyprland.sh b/setup/modules/Desktop-Enviroments/hyprland.sh index 8f5d39d..418df10 100644 --- a/setup/modules/Desktop-Enviroments/hyprland.sh +++ b/setup/modules/Desktop-Enviroments/hyprland.sh @@ -1,7 +1,7 @@ #!/bin/bash echo "Installing required Packages" -sudo pacman -Syu --noconfirm hyprland hyprcursor hyprpaper hyprlock kitty alacritty dunst nwg-dock-hyprland nwg-drawer nwg-menu nwg-look python +sudo pacman -Syu --noconfirm hyprland hyprcursor hyprpaper hyprlock kitty alacritty dunst nwg-dock-hyprland nwg-drawer nwg-menu nwg-look python cmake meson cpio pkgconf ruby-pkg-config echo "Installing AUR packages" yay -Syu --answerdiff None --answerclean All hyprland-workspaces bluetuith @@ -31,6 +31,10 @@ tar x -f papirus-icon-theme-violet-folders.tar.xz cp -r Papirus* ~/.icons gsettings set org.gnome.desktop.interface icon-theme Papirus-Dark +hyprpm update +hyprpm add https://github.com/hyprwm/hyprland-plugins +hyprpm enable hyprexpo + rm -rf ~/.config/kitty ln -s ~/Dotfiles/desktopenvs/hyprland/kitty/ ~/.config/