Clone this repository in $HOME/.xmonad
.
yay -S xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-xapp xdg-desktop-portal-termfilechooser-git kitty python-pydbus --noconfirm
Configure XDG Desktop Portal
Create xdg-desktop-portal config
$HOME/.config/xdg-desktop-portal/portals.conf
[preferred]
default=gtk
org.freedesktop.impl.portal.FileChooser=termfilechooser;xapp;
org.freedesktop.FileManager1=xapp;
org.freedesktop.impl.portal.Settings=darkman # for darkmode
yay -S darkman xdg-desktop-portal-gtk
systemctl --user enable --now darkman.service
Create termfilechooser config
$HOME/.config/xdg-desktop-portal-termfilechooser/config
[filechooser]
cmd=/usr/share/xdg-desktop-portal-termfilechooser/ranger-wrapper.sh
Running xdg-termfilechooser config
Manually start xdg-deskto-portal-termfilechooser by the command below
You can start it by systemd
FileChooser
dbus
/usr/lib/xdg-desktop-portal-termfilechooser -c $HOME /.config/xdg-desktop-portal-termfilechooser/config -l DEBUG
# systemctl --user enable --now xdg-desktop-portal-termfilechooser
PYTHONPATH=$HOME /.xmonad/py python -m ranger-dbus.py &
export DE=' xfce'
export GTK_THEME=Adwaita:dark
export XDG_SESSION_TYPE=x11
export GTK_IM_MODULE=' ibus'
export QT_IM_MODULE=' ibus'
export XMODIFIERS=' @im=ibus'
export GLFW_IM_MODULE=ibus
export QT_QPA_PLATFORMTHEME=qt6ct
exec xmonad & > ~ /xmonad.log
Install drag and drop tool.
yay -S dragon-drop --noconfirm
Add the below line to the end of .config/ranger/rc.conf
.
map <C-d> shell dragon-drop -a -x %p
Refer to the emacs anywhere github
yay -S xclip xdotool xorg-xwininfo
curl -fsSL https://raw.github.com/zachcurry/emacs-anywhere/master/install | bash