diff --git a/hypr/bindings.conf b/hypr/bindings.conf index 149bce6..b3afee8 100644 --- a/hypr/bindings.conf +++ b/hypr/bindings.conf @@ -28,6 +28,7 @@ bind = $mainMod, $mainMod_L, exec, astal show-ws-numbers # Uncomment if you want to press SUPER to launch application search # bind = $mainMod, $mainMod_L, exec, astal toggle apps-window + bind = $mainMod, K, exec, $terminal bind = $mainMod, Q, killactive bind = $mainMod, E, exec, $fm diff --git a/hypr/environment.conf b/hypr/environment.conf index 07d6695..2021af3 100644 --- a/hypr/environment.conf +++ b/hypr/environment.conf @@ -21,7 +21,7 @@ env = HYPRCURSOR_SIZE, 24 # Wayland stuff env = MOZ_ENABLE_WAYLAND, 1 -env = ELECTRON_OZONE_PLATFORM_HINT, auto +env = ELECTRON_OZONE_PLATFORM_HINT, x11 # QT env = QT_QPA_PLATFORM, wayland @@ -29,5 +29,5 @@ env = QT_QPA_PLATFORMTHEME, qt5ct env = QT_AUTO_SCREEN_SCALE_FACTOR, 1 # Others -env = ADW_DISABLE_PORTAL, 1 # Fixes xdg-desktop-portal in some flatpak apps +env = ADW_DISABLE_PORTAL, 1 # Fixes prefer-dark theme setting in some flatpak apps env = WALLPAPERS, $HOME/wallpapers diff --git a/hypr/scripts/color-picker.sh b/hypr/scripts/color-picker.sh new file mode 100644 index 0000000..77786ff --- /dev/null +++ b/hypr/scripts/color-picker.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +send_notification() { + notify-send -u normal -a "Color Picker" "$1" "$2" +} + +# Check if user has hyprpicker installed +if ! [[ -f /bin/hyprpicker ]]; then + send_notification "An error occurred" "Looks like you don't have Hyprpicker installed! Try installing it before using the Color Picker tool." + exit 1 +fi + +selected_color=$(hyprpicker) + +if ! [[ $selected_color == "" ]]; then + wl-copy $selected_color + send_notification "Selected Color" "The selected color is $selected_color, it was also copied to your clipboard!" +fi