Skip to content

ztoiax/dotfiles

Repository files navigation

ranger

preview

# BitTorrent
pacman -S transmission-cli

add preview_images_method mpv

  • add mpv class
cat >> /usr/lib/python3.9/site-packages/ranger/ext/img_display.py << "EOF"

@register_image_displayer("mpv")
class MPVImageDisplayer(ImageDisplayer):
    def _launch_mpv(self, path):
        Popen([
            * os.environ.get("MPV", "mpv").split(),
            "--no-terminal",
            path,
        ])

    def draw(self, path, start_x, start_y, width, height):
        self._launch_mpv(path)
EOF
  • rc.conf
set preview_images_method mpv

qtile

command

debug with Xephyr

# 启动xwindow
Xephyr -br -ac -noreset -screen 800x600 :1 &

# 启动qtile
DISPLAY=:1 qtile start &

# 启动st终端
DISPLAY=:1 st &

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published