From 740cf954a1fb0339cff1d1a8a748055bf53ee0b0 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Sun, 29 Sep 2024 18:01:48 +0330 Subject: [PATCH] fix: hidden cursor --- hypr-configs/dotfiles/eww/src/dock/main.yuck | 2 +- hypr-configs/dotfiles/gtk-3.0/settings.ini | 4 ++-- hypr-configs/dotfiles/hypr/configs/input.conf | 2 +- hypr-configs/dotfiles/hypr/configs/mouse.conf | 3 +++ hypr-configs/dotfiles/hypr/configs/rules/workspaces.conf | 2 +- hypr-configs/dotfiles/hypr/configs/startup.conf | 4 ++-- hypr-configs/dotfiles/hypr/hyprland.conf | 5 +++-- linux-configs | 2 +- stow.sh | 8 ++++++-- 9 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 hypr-configs/dotfiles/hypr/configs/mouse.conf diff --git a/hypr-configs/dotfiles/eww/src/dock/main.yuck b/hypr-configs/dotfiles/eww/src/dock/main.yuck index 19c0c97..16ca3f4 100644 --- a/hypr-configs/dotfiles/eww/src/dock/main.yuck +++ b/hypr-configs/dotfiles/eww/src/dock/main.yuck @@ -8,7 +8,7 @@ :monitor 0 (dockstruct)) -(defwidget dockstruct [] + (defwidget dockstruct [] (eventbox :onhover "${EWW_CMD} update revealDock=true" :onhoverlost "${EWW_CMD} update revealDock=false" diff --git a/hypr-configs/dotfiles/gtk-3.0/settings.ini b/hypr-configs/dotfiles/gtk-3.0/settings.ini index 30c9705..8b52edc 100644 --- a/hypr-configs/dotfiles/gtk-3.0/settings.ini +++ b/hypr-configs/dotfiles/gtk-3.0/settings.ini @@ -1,7 +1,7 @@ [Settings] gtk-theme-name=Colloid-Dark -gtk-icon-theme-name=Adwaita -gtk-font-name=Cantarell 11 +gtk-icon-theme-name=breeze-dark +gtk-font-name=Noto Sans, 10 gtk-cursor-theme-name=Bibata-Modern-Ice gtk-cursor-theme-size=24 gtk-toolbar-style=3 diff --git a/hypr-configs/dotfiles/hypr/configs/input.conf b/hypr-configs/dotfiles/hypr/configs/input.conf index d049305..a7bf025 100644 --- a/hypr-configs/dotfiles/hypr/configs/input.conf +++ b/hypr-configs/dotfiles/hypr/configs/input.conf @@ -9,7 +9,7 @@ input { kb_variant = kb_model = kb_rules = - follow_mouse = 1 + # follow_mouse = 1 touchpad { natural_scroll = false diff --git a/hypr-configs/dotfiles/hypr/configs/mouse.conf b/hypr-configs/dotfiles/hypr/configs/mouse.conf new file mode 100644 index 0000000..7c92ac9 --- /dev/null +++ b/hypr-configs/dotfiles/hypr/configs/mouse.conf @@ -0,0 +1,3 @@ +cursor { + no_hardware_cursors = true +} \ No newline at end of file diff --git a/hypr-configs/dotfiles/hypr/configs/rules/workspaces.conf b/hypr-configs/dotfiles/hypr/configs/rules/workspaces.conf index f652c2e..4c25777 100644 --- a/hypr-configs/dotfiles/hypr/configs/rules/workspaces.conf +++ b/hypr-configs/dotfiles/hypr/configs/rules/workspaces.conf @@ -3,7 +3,7 @@ # ----------------------------------------------------- windowrulev2 = workspace 1,class:^(Thorium-browser|chrome|google-chrome|Chrome|Firefox|firefox|FreeTube)$ -windowrulev2 = workspace 2,class:^(Code|.*jetbrains.*)$ +windowrulev2 = workspace 2,class:^(code-url-handler|code|Code|.*jetbrains.*)$ windowrulev2 = workspace 3,class:^(nekoray|Nekoray|hiddify)$ windowrulev2 = workspace 4,class:^(org.telegram.desktop|telegramdesktop|discord|vesktop)$ windowrulev2 = workspace 5,class:^(Spotify)$ diff --git a/hypr-configs/dotfiles/hypr/configs/startup.conf b/hypr-configs/dotfiles/hypr/configs/startup.conf index 015ba7a..40d6562 100644 --- a/hypr-configs/dotfiles/hypr/configs/startup.conf +++ b/hypr-configs/dotfiles/hypr/configs/startup.conf @@ -2,6 +2,6 @@ # Startup # ----------------------------------------------------- -exec-once = [workspace 3 silent] $terminal -e htop & - exec-once = [workspace 3 silent] nekoray + +exec-once = [workspace 3 silent] $terminal -e htop diff --git a/hypr-configs/dotfiles/hypr/hyprland.conf b/hypr-configs/dotfiles/hypr/hyprland.conf index c4963c2..a3f23db 100644 --- a/hypr-configs/dotfiles/hypr/hyprland.conf +++ b/hypr-configs/dotfiles/hypr/hyprland.conf @@ -18,6 +18,7 @@ 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 @@ -55,7 +56,6 @@ $rofi_screenshot = $script_dir/rofi-launch.sh s $rofi_clipboard = $script_dir/rofi-launch.sh c $rofi_wallpaper = $script_dir/rofi-launch.sh w - # ----------------------------------------------------- # Main configuration files # ----------------------------------------------------- @@ -65,6 +65,7 @@ source = ~/.config/hypr/configs/startup.conf source = ~/.config/hypr/configs/monitor/export.conf source = ~/.config/hypr/configs/animation/export.conf source = ~/.config/hypr/configs/input.conf +source = ~/.config/hypr/configs/mouse.conf # ----------------------------------------------------- # Load configuration files @@ -75,4 +76,4 @@ source = ~/.config/hypr/configs/devices.conf source = ~/.config/hypr/configs/decoration/export.conf source = ~/.config/hypr/configs/layout.conf source = ~/.config/hypr/configs/keybinds.conf -source = ~/.config/hypr/configs/rules.conf \ No newline at end of file +source = ~/.config/hypr/configs/rules.conf diff --git a/linux-configs b/linux-configs index ba41558..ab48302 160000 --- a/linux-configs +++ b/linux-configs @@ -1 +1 @@ -Subproject commit ba4155851315cbb43887faa07670e45c2eec021f +Subproject commit ab483020ebd65ee74f0d7871a81d63f9c49d436e diff --git a/stow.sh b/stow.sh index 5a42eca..002d87a 100755 --- a/stow.sh +++ b/stow.sh @@ -9,9 +9,10 @@ LINUX_DOTFILES_DIR="$LINUX_CONFIGS_DIR/dotfiles" NIX_DIR="$LINUX_CONFIGS_DIR/nix" ZSH_DIR="$LINUX_CONFIGS_DIR/shells/zsh" FISH_DIR="$LINUX_CONFIGS_DIR/shells/fish" -VIM_DIR="$LINUX_CONFIGS_DIR/editors/vim" -ZED_DIR="$LINUX_CONFIGS_DIR/editors/zed" UTILS_DIR="$LINUX_CONFIGS_DIR/utils" +ZED_DIR="$LINUX_CONFIGS_DIR/editors/zed" +VIM_DIR="$LINUX_CONFIGS_DIR/editors/vim" +NVIM_DIR="$LINUX_CONFIGS_DIR/editors/nvim" HYPRLAND_ROOT="$(pwd)/hypr-configs" HYPRLAND_DIR="$HYPRLAND_ROOT/dotfiles" @@ -44,6 +45,9 @@ stow() { create_links $VIM_DIR ~ log "Vim Editor stowed successfully!" + ln -sfn $NVIM_DIR ~/.config/nvim + log "Nvim Editor stowed successfully!" + ln -sfn $ZED_DIR ~/.config/zed log "Zed Editor stowed successfully!"