<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hyprpicker on Wimpy's World</title><link>https://blog.wimpys.world/tags/hyprpicker/</link><description>Recent content in Hyprpicker on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Tue, 15 Apr 2025 13:37:42 +0100</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/hyprpicker/rss.xml" rel="self" type="application/rss+xml"/><item><title>Fuzzel Colour Picker</title><link>https://blog.wimpys.world/posts/fuzzel-hyprpicker/</link><pubDate>Tue, 15 Apr 2025 13:37:42 +0100</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/fuzzel-hyprpicker/</guid><description>&lt;p&gt;We&amp;rsquo;ve all been there - you&amp;rsquo;re knee-deep in customizing your desktop, tweaking configs, perfecting that theme, and suddenly you need to grab a specific colour from somewhere on screen.
If you&amp;rsquo;re like me and recently made the jump to &lt;a href="https://hyprland.org/"&gt;Hyprland&lt;/a&gt; (or other contemporary Wayland compositor), you might have found yourself missing some of those handy X11 utilities that &lt;em&gt;&amp;ldquo;just worked&amp;rdquo;&lt;/em&gt; ️™️&lt;/p&gt;
&lt;h2 id="the-wayland-colour-picker-problem"&gt;The Wayland Colour Picker Problem&lt;/h2&gt;
&lt;p&gt;When I switched my daily driver to Hyprland back in August 2024, I was chuffed with the smooth animations, efficient tiling, and general polish.
But as with any big change, there were a few splinters in my workflow that needed sorting.&lt;/p&gt;
&lt;p&gt;One particular rough edge was the lack of a proper GUI colour picker.
On X11, I&amp;rsquo;d been spoiled by my mate &lt;a href="https://mastodon.social/@sil"&gt;Stuart Langridge&lt;/a&gt;&amp;rsquo;s excellent tool &lt;strong&gt;&lt;a href="https://www.kryogenix.org/code/pick/"&gt;Pick&lt;/a&gt;&lt;/strong&gt; - a proper colour picker that did exactly what it said on the tin.
But in Wayland? Well, I was left running &lt;a href="https://github.com/hyprwm/hyprpicker"&gt;&lt;code&gt;hyprpicker&lt;/code&gt;&lt;/a&gt; from the terminal like some kind of savage! 😅&lt;/p&gt;
&lt;p class="text-center"&gt;
&lt;img src="./hyprpicker.png" class="img-fluid" alt="hyprpicker in the terminal "/&gt;
&lt;br /&gt;
&lt;em&gt;hyprpicker in the terminal&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;Don&amp;rsquo;t get me wrong - &lt;code&gt;hyprpicker&lt;/code&gt; works brilliantly for what it is.
But after seeing how well my recent integrations of &lt;a href="https://github.com/e-tho/bzmenu"&gt;&lt;strong&gt;bzmenu&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://github.com/e-tho/iwmenu"&gt;&lt;strong&gt;iwmenu&lt;/strong&gt;&lt;/a&gt; worked with &lt;a href="https://codeberg.org/dnkl/fuzzel"&gt;Fuzzel&lt;/a&gt;, a lightbulb moment hit me: why not create a proper Fuzzel-based front-end for &lt;code&gt;hyprpicker&lt;/code&gt;? 💡&lt;/p&gt;
&lt;h2 id="birth-of-fuzzel-hyprpicker"&gt;Birth of fuzzel-hyprpicker&lt;/h2&gt;
&lt;p&gt;After my second coffee one morning (the optimal programming fuel ☕💪), I decided to tackle this problem head-on.
If I was going to spend hours staring at my &lt;a href="https://catppuccin.com/"&gt;Catppuccin Mocha&lt;/a&gt; themed desktop, I needed proper tools to maintain it! ‍🐈‍⬛🎨&lt;/p&gt;
&lt;p&gt;The goal was simple:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a Fuzzel-based UI for &lt;code&gt;hyprpicker&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Maintain persistent colour history&lt;/li&gt;
&lt;li&gt;Make it keyboard-friendly&lt;/li&gt;
&lt;li&gt;Automatcially copy selected colours to clipboard&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The result is &lt;a href="https://github.com/wimpysworld/nix-config/blob/main/home-manager/_mixins/desktop/hyprland/fuzzel/fuzzel-hyprpicker.sh"&gt;&lt;code&gt;fuzzel-hyprpicker.sh&lt;/code&gt;&lt;/a&gt; - a little script that brings together the power of &lt;code&gt;hyprpicker&lt;/code&gt; with the elegant UI of Fuzzel.&lt;/p&gt;
&lt;p class="text-center"&gt;
&lt;img src="./fuzzel-hyprpicker.png" class="img-fluid" alt="fuzzel-hyprpicker colour selection menu "/&gt;
&lt;br /&gt;
&lt;em&gt;fuzzel-hyprpicker showing the colour selection menu&lt;/em&gt;
&lt;/p&gt;
&lt;h2 id="how-it-works"&gt;How It Works&lt;/h2&gt;
&lt;p&gt;The magic behind &lt;code&gt;fuzzel-hyprpicker.sh&lt;/code&gt; is surprisingly straightforward.
Let me walk you through the key bits:&lt;/p&gt;
&lt;h3 id="setting-up-the-basics"&gt;Setting Up the Basics&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/usr/bin/env bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# A tool to pick colours from the screen using hyprpicker and fuzzel&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; +u &lt;span class="c1"&gt;# Disable nounset&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;APP_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;fuzzel-hyprpicker&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;NOTIFY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;notify-desktop --app-name=&lt;/span&gt;&lt;span class="nv"&gt;$APP_NAME&lt;/span&gt;&lt;span class="s2"&gt; --icon=org.gnome.design.Palette&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Set up the storage directory and file&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;XDG_CONFIG_HOME&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="p"&gt;/.config&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;$APP_NAME&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;HISTORY_FILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$CONFIG_DIR&lt;/span&gt;&lt;span class="s2"&gt;/colours.txt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;ICONS_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$CONFIG_DIR&lt;/span&gt;&lt;span class="s2"&gt;/icons&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Nothing fancy here - we&amp;rsquo;re just setting up our environment, defining where we&amp;rsquo;ll store our colour history, and setting up notifications.
Note that I properly follow the XDG spec here - it&amp;rsquo;s the little things! 😉&lt;/p&gt;
&lt;h3 id="the-clever-bit-svg-icons"&gt;The Clever Bit: SVG Icons&lt;/h3&gt;
&lt;p&gt;Here&amp;rsquo;s where things get interesting.
Fuzzel supports icons in its menus, but I needed a way to show colour swatches.
The solution? Dynamically generated SVG files:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;function&lt;/span&gt; generate_svg_icon&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;local&lt;/span&gt; &lt;span class="nv"&gt;colour&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;local&lt;/span&gt; &lt;span class="nv"&gt;icon_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$ICONS_DIR&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;$colour&lt;/span&gt;&lt;span class="s2"&gt;.svg&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# Create an SVG for the colour if it doesn&amp;#39;t exist&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; ! -f &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$icon_path&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; cat &amp;gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$icon_path&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="s"&gt;&amp;lt;&amp;lt;EOF
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;&amp;lt;svg width=&amp;#34;128&amp;#34; height=&amp;#34;128&amp;#34; xmlns=&amp;#34;http://www.w3.org/2000/svg&amp;#34;&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt; &amp;lt;rect width=&amp;#34;128&amp;#34; height=&amp;#34;128&amp;#34; fill=&amp;#34;#$colour&amp;#34; /&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;&amp;lt;/svg&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;EOF&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;rsquo;m rather pleased with myself for this solution.
Each time you pick a colour, it generates a tiny SVG file that&amp;rsquo;s just a coloured square.
Fuzzel then displays this next to the hex code in the menu. Well done brain! 🧠&lt;/p&gt;
&lt;h3 id="menu-building"&gt;Menu Building&lt;/h3&gt;
&lt;p&gt;The menu itself is built dynamically, showing an eyedropper icon for picking a new colour followed by your colour history:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;function&lt;/span&gt; build_menu&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; -e &lt;span class="s2"&gt;&amp;#34;Pick a colour\0icon\x1f&lt;/span&gt;&lt;span class="nv"&gt;$ICONS_DIR&lt;/span&gt;&lt;span class="s2"&gt;/eyedropper.svg&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# Add history items if they exist&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -s &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HISTORY_FILE&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r colour&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# If the preview icon doesn&amp;#39;t exist, generate it&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; ! -e &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$ICONS_DIR&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;$colour&lt;/span&gt;&lt;span class="s2"&gt;.svg&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; generate_svg_icon &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$colour&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# Display the colour with a preview&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; -e &lt;span class="s2"&gt;&amp;#34;#&lt;/span&gt;&lt;span class="nv"&gt;$colour&lt;/span&gt;&lt;span class="s2"&gt;\0icon\x1f&lt;/span&gt;&lt;span class="nv"&gt;$ICONS_DIR&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;$colour&lt;/span&gt;&lt;span class="s2"&gt;.svg&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt; &amp;lt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HISTORY_FILE&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This uses the &lt;a href="https://github.com/davatorium/rofi"&gt;&lt;code&gt;rofi&lt;/code&gt;&lt;/a&gt; &amp;ldquo;protocol&amp;rdquo; for menu items, something Fuzzel has built-in support for 💖
The &lt;code&gt;\0icon\x1f&lt;/code&gt; bit is how you tell Fuzzel &lt;em&gt;&amp;ldquo;hey, use this icon for this menu item&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;
&lt;h3 id="putting-it-all-together"&gt;Putting It All Together&lt;/h3&gt;
&lt;p&gt;The full workflow goes like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Press &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;Alt&lt;/kbd&gt; + &lt;kbd&gt;K&lt;/kbd&gt; to open the picker&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;&amp;ldquo;Pick a colour&amp;rdquo;&lt;/strong&gt; or choose one from your history&lt;/li&gt;
&lt;li&gt;If picking a new colour, &lt;code&gt;hyprpicker&lt;/code&gt; does it&amp;rsquo;s thing and click anywhere on screen&lt;/li&gt;
&lt;li&gt;The colour gets automatically copied to your clipboard&lt;/li&gt;
&lt;li&gt;A notification appears showing the selected colour&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="text-center"&gt;
&lt;img src="./hyprpicker-select.png" class="img-fluid" alt="hyprpicker colour selection "/&gt;
&lt;br /&gt;
&lt;em&gt;hyprpicker colour selection&lt;/em&gt;
&lt;/p&gt;
&lt;h2 id="integrating-it-with-your-setup"&gt;Integrating It With Your Setup&lt;/h2&gt;
&lt;p&gt;Want to give this a try yourself?
Here&amp;rsquo;s how to adapt it to your wlroots-compatible desktop:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;First, make sure you have the following installed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;hyprpicker&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fuzzel&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/bugaevc/wl-clipboard"&gt;&lt;code&gt;wl-clipboard&lt;/code&gt;&lt;/a&gt; (for clipboard management)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nowrep/notify-desktop"&gt;&lt;code&gt;notify-desktop&lt;/code&gt;&lt;/a&gt; (for notifications)
&lt;ul&gt;
&lt;li&gt;Although I&amp;rsquo;m planning on switching to &lt;a href="https://codeberg.org/dnkl/fyi"&gt;&lt;code&gt;fyi&lt;/code&gt;&lt;/a&gt; soon&amp;hellip;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save the script somewhere in your path (I&amp;rsquo;ve got mine as part of &lt;a href="https://github.com/wimpysworld/nix-config"&gt;my Nix configuration&lt;/a&gt;) ️❄️&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make it executable:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;chmod +x fuzzel-hyprpicker.sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start="4"&gt;
&lt;li&gt;Bind it to a keyboard shortcut in your Hyprland config:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;bind = CTRL ALT, K, exec, fuzzel-hyprpicker.sh
&lt;/code&gt;&lt;/pre&gt;&lt;ol start="5"&gt;
&lt;li&gt;Give it a whirl!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It should work with any wlroots-compatible compositor, not just Hyprland.&lt;/p&gt;
&lt;h2 id="possible-enhancements"&gt;Possible Enhancements&lt;/h2&gt;
&lt;p&gt;This is very much a v1 and there&amp;rsquo;s plenty of room for improvement:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add support for different colour formats (RGB, HSL, etc.)&lt;/li&gt;
&lt;li&gt;Implement colour name lookup&lt;/li&gt;
&lt;li&gt;Create a proper project rather than just a script wedged in my Nix configuration&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But for a morning hack, it&amp;rsquo;s been surprisingly useful!
Reaching for &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;Alt&lt;/kbd&gt; + &lt;kbd&gt;K&lt;/kbd&gt; brings a smile to my face 😀&lt;/p&gt;
&lt;h2 id="the-joy-of-keyboard-driven-workflows"&gt;The Joy of Keyboard-Driven Workflows&lt;/h2&gt;
&lt;p&gt;What I love about tools like this is how they contribute to a cohesive, keyboard-driven workflow.
Between Hyprland&amp;rsquo;s tiling, Waybar&amp;rsquo;s status info, and Fuzzel-based menus for everything from launching apps to picking colours, my fingers rarely stray from the keyboard these days.&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s something deeply satisfying about crafting your own tools to scratch your own itches.
It&amp;rsquo;s a long held Linux desktop tradition, isn&amp;rsquo;t it?
Taking what works, improving what doesn&amp;rsquo;t, and sharing the results with others.&lt;/p&gt;
&lt;p class="text-center"&gt;
&lt;a href="https://linuxmatters.sh" target="_blank"&gt;&lt;img src="./hyprland-desktop.png" class="img-fluid" alt="hyprland desktop with fuzzel-hyprpicker "/&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;em&gt;My hyprland desktop with fuzzel-hyprpicker in action&lt;/em&gt;
&lt;/p&gt;
&lt;h2 id="more-fuzzel-based-tools"&gt;More Fuzzel-Based Tools?&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;ve created several other Fuzzel menus that integrate with my Hyprland desktop.
I should probably post about those as well - emoji picker and screenshot and screen recording being among my most useful.
Let me know in the comments if you&amp;rsquo;d be interested in seeing those! 👇&lt;/p&gt;
&lt;p&gt;In the meantime, give &lt;code&gt;fuzzel-hyprpicker.sh&lt;/code&gt; a try and let me know what you think.
&lt;strong&gt;And if you improve upon it, &lt;em&gt;please do share your changes!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The full script is available in my Nix config repository: &lt;a href="https://github.com/wimpysworld/nix-config/blob/main/home-manager/_mixins/desktop/hyprland/fuzzel/fuzzel-hyprpicker.sh"&gt;fuzzel-hyprpicker.sh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Happy colour picking! 🎨🤏&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;Have you created any custom tools for your Wayland desktop? Are there any X11 utilities you miss since switching? Let me know in the comments below!&lt;/em&gt;&lt;/p&gt;</description><summary>Creating a Proper Colour Picker for Hyprland with Fuzzel</summary></item></channel></rss>