From 0532f7e843919ac82f8e964826fc07a79a6d9f33 Mon Sep 17 00:00:00 2001 From: reo101 Date: Fri, 17 Feb 2023 02:46:09 +0200 Subject: [PATCH] feat(homix): play around with `xdg-desktop-portals` --- machines/nixos/x86_64-linux/homix/configs/river | 2 ++ machines/nixos/x86_64-linux/homix/configuration.nix | 12 +++++++++++- machines/nixos/x86_64-linux/homix/home/reo101.nix | 6 +++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/machines/nixos/x86_64-linux/homix/configs/river b/machines/nixos/x86_64-linux/homix/configs/river index 1a4f2c3..54e6f34 100644 --- a/machines/nixos/x86_64-linux/homix/configs/river +++ b/machines/nixos/x86_64-linux/homix/configs/river @@ -155,4 +155,6 @@ wireplumber & waybar & +riverctl float-filter-add "flameshot" + exec rivertile -view-padding 6 -outer-padding 6 diff --git a/machines/nixos/x86_64-linux/homix/configuration.nix b/machines/nixos/x86_64-linux/homix/configuration.nix index 81d55f0..8b9c14e 100644 --- a/machines/nixos/x86_64-linux/homix/configuration.nix +++ b/machines/nixos/x86_64-linux/homix/configuration.nix @@ -119,6 +119,7 @@ "WLR_NO_HARDWARE_CURSORS" = "1"; "MOZ_DISABLE_RDD_SANDBOX" = "1"; "EGL_PLATFORM" = "wayland"; + "XDG_CURRENT_DESKTOP" = "sway"; # river }; ### Wayland specific @@ -136,6 +137,11 @@ }; }; + # Enable desktop portal + xdg.portal.extraPortals = [ + pkgs.xdg-desktop-portal-gtk + ]; + ## X11 specific services.xserver = { layout = "us,bg"; @@ -164,7 +170,10 @@ enable = true; }; }; - services.dbus.enable = true; + services.dbus = { + enable = true; + packages = [ pkgs.dconf ]; + }; ### Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; @@ -194,6 +203,7 @@ environment.systemPackages = with pkgs; [ river xdg-desktop-portal + xdg-desktop-portal-wlr neovim wget git diff --git a/machines/nixos/x86_64-linux/homix/home/reo101.nix b/machines/nixos/x86_64-linux/homix/home/reo101.nix index f1bf9a6..1687ef9 100644 --- a/machines/nixos/x86_64-linux/homix/home/reo101.nix +++ b/machines/nixos/x86_64-linux/homix/home/reo101.nix @@ -26,10 +26,14 @@ home.packages = with pkgs; [ ## WM - river # window manager + river swww # wallpaper deamon # wired-notify # dunst on wayland waybar # status bar + xwayland + wl-clipboard + slurp # select regions from wayland + grim # grap images from regions ## Terminals wezterm