diff --git a/users/pedro/home-configuration/hyprland/hyprland.nix b/users/pedro/home-configuration/hyprland/hyprland.nix index 4056fc4..480876f 100644 --- a/users/pedro/home-configuration/hyprland/hyprland.nix +++ b/users/pedro/home-configuration/hyprland/hyprland.nix @@ -13,12 +13,13 @@ settings = let - app_menu = "vicinae toggle"; + app_menu = "${pkgs.fuzzel}/bin/fuzzel"; 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" @@ -35,9 +36,6 @@ touchpad = { natural_scroll = true; }; - tablet = { - output = "current"; - }; }; general = { @@ -142,9 +140,10 @@ "$mainMod SHIFT, F, fullscreen, 1" "$mainMod, Space, togglefloating," "$mainMod, D, exec, uwsm app -- ${app_menu}" - "$mainMod SHIFT, E, exec, vicinae vicinae://extensions/vicinae/vicinae/search-emojis" + "$mainMod SHIFT, E, exec, uwsm app -- ${pkgs.bemoji}/bin/bemoji -n" "$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," @@ -236,7 +235,7 @@ "$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-" # clipboard manager - "$mainMod, V, exec, vicinae vicinae://extensions/vicinae/clipboard/history" + "$mainMod, V, exec, cliphist list | fuzzel --dmenu --prompt '📋 ' | cliphist decode | wl-copy" ]; # Bindings that work when locked @@ -310,12 +309,6 @@ "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 a86432a..a2c543f 100644 --- a/users/pedro/home-configuration/hyprland/utils.nix +++ b/users/pedro/home-configuration/hyprland/utils.nix @@ -1,5 +1,4 @@ -{ pkgs, config, ... }: -{ +{pkgs, ...}: { services.hyprpolkitagent.enable = true; programs.fuzzel = { @@ -25,34 +24,26 @@ }; }; - programs.vicinae = { + services.cliphist = { enable = true; - systemd = { - enable = true; - autoStart = true; - }; - settings = { - theme.iconTheme = "Default"; # Normal app icons in launcher - }; + + allowImages = true; }; 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}%" + ''; + }) ]; }