From f727f9b144aee41218b9d09e35007b4aa773d7e7 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Mon, 30 Sep 2024 17:56:15 +0330 Subject: [PATCH] feat: hyprland mouse configs --- .../dotfiles/hypr/configs/devices.conf | 7 ------- hypr-configs/dotfiles/hypr/configs/mouse.conf | 20 +++++++++++++++++++ .../dotfiles/hypr/configs/settings.conf | 1 + hypr-configs/dotfiles/hypr/hyprland.conf | 12 +++-------- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/hypr-configs/dotfiles/hypr/configs/devices.conf b/hypr-configs/dotfiles/hypr/configs/devices.conf index 335d0bd..f718b68 100644 --- a/hypr-configs/dotfiles/hypr/configs/devices.conf +++ b/hypr-configs/dotfiles/hypr/configs/devices.conf @@ -1,10 +1,3 @@ # ----------------------------------------------------- # Mice : hyprctl devices # ----------------------------------------------------- - -device { - name = instant-usb-gaming-mouse- - natural_scroll = 0 - accel_profile = flat - sensitivity = -0.8 -} \ No newline at end of file diff --git a/hypr-configs/dotfiles/hypr/configs/mouse.conf b/hypr-configs/dotfiles/hypr/configs/mouse.conf index 7c92ac9..44022dd 100644 --- a/hypr-configs/dotfiles/hypr/configs/mouse.conf +++ b/hypr-configs/dotfiles/hypr/configs/mouse.conf @@ -1,3 +1,23 @@ +# ----------------------------------------------------- +# Mouse +# ----------------------------------------------------- + +$mouse_cursor = Bibata-Modern-Ice +$mouse_cursor_size = 24 + +env = HYPRCURSOR_THEME, $mouse_cursor +env = XCURSOR_THEME, $mouse_cursor +env = HYPRCURSOR_SIZE, $mouse_cursor_size +env = XCURSOR_SIZE, $mouse_cursor_size +exec-once = gsettings set org.gnome.desktop.interface cursor-theme '$mouse_cursor' + cursor { no_hardware_cursors = true +} + +device { + name = instant-usb-gaming-mouse- + natural_scroll = 0 + accel_profile = flat + sensitivity = -0.8 } \ No newline at end of file diff --git a/hypr-configs/dotfiles/hypr/configs/settings.conf b/hypr-configs/dotfiles/hypr/configs/settings.conf index f544a79..74ff660 100644 --- a/hypr-configs/dotfiles/hypr/configs/settings.conf +++ b/hypr-configs/dotfiles/hypr/configs/settings.conf @@ -17,6 +17,7 @@ general { } misc { + middle_click_paste = false focus_on_activate = false disable_hyprland_logo = true disable_splash_rendering = true diff --git a/hypr-configs/dotfiles/hypr/hyprland.conf b/hypr-configs/dotfiles/hypr/hyprland.conf index a3f23db..1d31120 100644 --- a/hypr-configs/dotfiles/hypr/hyprland.conf +++ b/hypr-configs/dotfiles/hypr/hyprland.conf @@ -11,18 +11,11 @@ # Environments # ----------------------------------------------------- -$mouse_cursor_size = 24 - -env = HYPRCURSOR_THEME, Bibata-Modern-Ice -env = XCURSOR_THEME, Bibata-Modern-Ice -env = HYPRCURSOR_SIZE, $mouse_cursor_size -env = XCURSOR_SIZE, $mouse_cursor_size - env = ELECTRON_OZONE_PLATFORM_HINT,auto env = QT_QPA_PLATFORM, wayland env = QT_QPA_PLATFORMTHEME, qt6ct env = QT_STYLE_OVERRIDE, kvantum -exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" +exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" env = XDG_DATA_DIRS, $HOME/.nix-profile/share:/usr/share/:$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/var/lib/flatpak/exports/share @@ -35,8 +28,9 @@ $eww_toggle_panel = $eww_script_dir/eww/toggle-panel.sh $alacritty_terminal = alacritty $kitty_terminal = kitty $rio_terminal = rio + $terminal = $alacritty_terminal -$zterminal = $rio_terminal -o "window.opacity=1" -e zellij +$zterminal = $terminal -o "window.opacity=1" -e zellij $fileManager = nemo $bluetooth-manager = blueman-manager