- Clone this repository in
$HOME/.xmonad
.
- Google chrome uses Dbus
yay -S xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-xapp xdg-desktop-portal-termfilechooser-git kitty python-pydbus --noconfirm
- $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
- install
darkman
yay -S darkman xdg-desktop-portal-gtk
- Enable
darkman
.
systemctl --user enable --now darkman.service
- $HOME/.config/xdg-desktop-portal-termfilechooser/config
[filechooser]
cmd=/usr/share/xdg-desktop-portal-termfilechooser/ranger-wrapper.sh
- 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
FileManager1
dbus
PYTHONPATH=$HOME/.xmonad/py python -m ranger-dbus.py &
~/.xinitrc
setup.
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