From 708b190d2b16a231deed130d50c4cb544eeae5aa Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Mon, 5 Jan 2026 15:05:02 +0100 Subject: [PATCH] vicinae: switch to vicinae --- .../home-configuration/hyprland/hyprland.nix | 14 +++--- .../home-configuration/hyprland/utils.nix | 43 +++++++++++-------- 2 files changed, 35 insertions(+), 22 deletions(-) diff --git a/users/pedro/home-configuration/hyprland/hyprland.nix b/users/pedro/home-configuration/hyprland/hyprland.nix index 480876f..66a70eb 100644 --- a/users/pedro/home-configuration/hyprland/hyprland.nix +++ b/users/pedro/home-configuration/hyprland/hyprland.nix @@ -13,13 +13,12 @@ settings = let - app_menu = "${pkgs.fuzzel}/bin/fuzzel"; + app_menu = "vicinae toggle"; in { # Autostart exec-once = [ "uwsm app -- nm-applet" - "uwsm app -- ${pkgs.wl-clip-persist}/bin/persist --clipboard regular" "uwsm app -- bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'" "uwsm app -- ${pkgs.swaybg}/bin/swaybg -m fill -i ~/.config/hypr/wallpaper.png &" "uwsm app -- ${pkgs.poweralertd}/bin/poweralertd" @@ -140,10 +139,9 @@ "$mainMod SHIFT, F, fullscreen, 1" "$mainMod, Space, togglefloating," "$mainMod, D, exec, uwsm app -- ${app_menu}" - "$mainMod SHIFT, E, exec, uwsm app -- ${pkgs.bemoji}/bin/bemoji -n" + "$mainMod SHIFT, E, exec, vicinae vicinae://extensions/vicinae/vicinae/search-emojis" "$mainMod, M, exec, uwsm app -- element-desktop" "$mainMod, Y, exec, uwsm app -- kitty spotify_player" - "$mainMod, X, exec, uwsm app -- rofi-rbw" "$mainMod, Escape, exec, uwsm app -- loginctl lock-session" "$mainMod SHIFT, Escape, exec, uwsm app -- shutdown-script" "$mainMod, P, pseudo," @@ -235,7 +233,7 @@ "$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-" # clipboard manager - "$mainMod, V, exec, cliphist list | fuzzel --dmenu --prompt '📋 ' | cliphist decode | wl-copy" + "$mainMod, V, exec, vicinae vicinae://extensions/vicinae/clipboard/history" ]; # Bindings that work when locked @@ -309,6 +307,12 @@ "noblur,class:^(xwaylandvideobridge)$" ]; + layerrule = [ + "blur,vicinae" + "ignorealpha 0, vicinae" + "noanim, vicinae" # disable fade animation for vicinae only + ]; + monitor = [ ",preferred,auto,1" ]; diff --git a/users/pedro/home-configuration/hyprland/utils.nix b/users/pedro/home-configuration/hyprland/utils.nix index a2c543f..a86432a 100644 --- a/users/pedro/home-configuration/hyprland/utils.nix +++ b/users/pedro/home-configuration/hyprland/utils.nix @@ -1,4 +1,5 @@ -{pkgs, ...}: { +{ pkgs, config, ... }: +{ services.hyprpolkitagent.enable = true; programs.fuzzel = { @@ -24,26 +25,34 @@ }; }; - services.cliphist = { + programs.vicinae = { enable = true; - - allowImages = true; + systemd = { + enable = true; + autoStart = true; + }; + settings = { + theme.iconTheme = "Default"; # Normal app icons in launcher + }; }; home.packages = [ - (pkgs.writeShellApplication - { - # From https://github.com/emersion/mako/wiki/Volume-change-notification#1-create-the-notifier-script - name = "wp-vol"; - runtimeInputs = with pkgs; [wireplumber gawk bc]; - text = '' - # Get the volume level and convert it to a percentage - volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@) - volume=$(echo "$volume" | awk '{print $2}') - volume=$(echo "( $volume * 100 ) / 1" | bc) + (pkgs.writeShellApplication { + # From https://github.com/emersion/mako/wiki/Volume-change-notification#1-create-the-notifier-script + name = "wp-vol"; + runtimeInputs = with pkgs; [ + wireplumber + gawk + bc + ]; + text = '' + # Get the volume level and convert it to a percentage + volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@) + volume=$(echo "$volume" | awk '{print $2}') + volume=$(echo "( $volume * 100 ) / 1" | bc) - notify-send -t 1000 -a 'wp-vol' -h "int:value:$volume" "Volume: ''${volume}%" - ''; - }) + notify-send -t 1000 -a 'wp-vol' -h "int:value:$volume" "Volume: ''${volume}%" + ''; + }) ]; }