From 7be70802f63c0756cfb5fe810265e1b01ffe3ef4 Mon Sep 17 00:00:00 2001 From: Vilyaem Date: Sun, 2 Mar 2025 03:05:35 -0500 Subject: [PATCH] First. --- .Xresources | 1 + .config/.gitconfig | 5 + .config/OpenSCAD/OpenSCAD.conf | 26 + .config/dosbox/dosbox-staging.conf | 1115 +++ .config/foot/foot.ini | 5 + .config/gtk-2.0/gtkfilechooser.ini | 11 + .config/gtk-3.0/settings.ini | 5 + .config/htop/htoprc | 63 + .config/mimeapps.list | 28 + .config/mpv/mpv.conf | 2 + .config/neofetch/config.conf | 865 ++ .config/nvim/README.md | 3 + .config/nvim/init.lua | 243 + .config/nvim/plugin/packer_compiled.lua | 224 + .config/qutebrowser/autoconfig.yml | 47 + .config/qutebrowser/qsettings/QtProject.conf | 8 + .config/qutebrowser/quickmarks | 0 .config/readline/.inputrc | 2 + .config/screenkey.json | 32 + .config/spectrwm/spectrwm.conf | 2 + .config/sway/config | 236 + .config/tmuxinator/work.yml | 33 + .config/vifm/colors/Default.vifm | 100 + .config/vifm/scripts/README | 6 + .config/vifm/scripts/supervifm | 30 + .config/vifm/vifm-help.txt | 7011 +++++++++++++++++ .config/vifm/vifminfo.json | 1 + .config/vifm/vifmrc | 46 + .gitconfig | 5 + .tmux.conf | 32 + .vimrc | 84 + .xinitrc | 8 + .zprofile | 4 + .zshrc | 180 + README.md | 40 + apk.txt | 1778 +++++ apkworld.txt | 258 + badwolf/.ninja_deps | Bin 0 -> 16 bytes badwolf/.ninja_log | 63 + badwolf/AUTHORS | 9 + badwolf/COPYING | 26 + badwolf/KnowledgeBase.md | 35 + badwolf/LICENSES/BSD-3-Clause.txt | 11 + badwolf/LICENSES/CC-BY-SA-4.0.txt | 170 + badwolf/README.md | 90 + badwolf/badwolf.1 | 167 + badwolf/badwolf.c | 1179 +++ badwolf/badwolf.de.1 | 189 + badwolf/badwolf.desktop | 20 + badwolf/badwolf.fr.1 | 190 + badwolf/badwolf.h | 62 + badwolf/badwolf.inkscape.svg | 164 + badwolf/badwolf.o | Bin 0 -> 157320 bytes badwolf/badwolf.svg | 134 + badwolf/badwolf.tr.1 | 186 + badwolf/badwolf.vi.1 | 165 + badwolf/bookmarks.c | 125 + badwolf/bookmarks.h | 6 + badwolf/bookmarks.o | Bin 0 -> 26968 bytes badwolf/bookmarks_test.c | 34 + .../full/badwolf/bookmarks.xbel | 20 + badwolf/build.ninja | 62 + badwolf/config.h | 112 + badwolf/config.ninja | 108 + badwolf/configure | 455 ++ badwolf/configure.h | 5 + badwolf/decisions.md | 77 + badwolf/downloads.c | 226 + badwolf/downloads.h | 31 + badwolf/downloads.o | Bin 0 -> 37096 bytes badwolf/fmt.c | 31 + badwolf/fmt.h | 7 + badwolf/fmt.o | Bin 0 -> 4784 bytes badwolf/fmt_test.c | 58 + .../icons/hicolor/128x128/apps/badwolf.png | Bin 0 -> 8682 bytes badwolf/icons/hicolor/24x24/apps/badwolf.png | Bin 0 -> 1057 bytes .../icons/hicolor/256x256/apps/badwolf.png | Bin 0 -> 20209 bytes badwolf/icons/hicolor/32x32/apps/badwolf.png | Bin 0 -> 1525 bytes badwolf/icons/hicolor/48x48/apps/badwolf.png | Bin 0 -> 2581 bytes badwolf/icons/hicolor/64x64/apps/badwolf.png | Bin 0 -> 3715 bytes .../icons/hicolor/scalable/apps/badwolf.svg | 2 + badwolf/icons_size.sh | 8 + badwolf/install | 31 + badwolf/install.sh | 31 + badwolf/interface.css | 7 + badwolf/interface.md | 51 + badwolf/keybindings.c | 237 + badwolf/keybindings.h | 17 + badwolf/keybindings.o | Bin 0 -> 39896 bytes badwolf/locale/de/LC_MESSAGES/Badwolf.mo | Bin 0 -> 5337 bytes badwolf/locale/fr/LC_MESSAGES/Badwolf.mo | Bin 0 -> 6093 bytes badwolf/locale/pt_BR/LC_MESSAGES/Badwolf.mo | Bin 0 -> 4874 bytes badwolf/locale/tr/LC_MESSAGES/Badwolf.mo | Bin 0 -> 5027 bytes badwolf/locale/vi/LC_MESSAGES/Badwolf.mo | Bin 0 -> 6521 bytes badwolf/mo/.keep | 0 badwolf/po/de.po | 237 + badwolf/po/de_man.po | 607 ++ badwolf/po/fr.po | 221 + badwolf/po/fr_man.po | 606 ++ badwolf/po/manpage.pot | 545 ++ badwolf/po/messages.pot | 214 + badwolf/po/pot_license.ed | 8 + badwolf/po/pt_BR.po | 222 + badwolf/po/tr.po | 220 + badwolf/po/tr_man.po | 530 ++ badwolf/po/vi.po | 221 + badwolf/uri.c | 38 + badwolf/uri.h | 20 + badwolf/uri.o | Bin 0 -> 6968 bytes badwolf/uri_test.c | 67 + badwolf/userscripts.c | 76 + badwolf/userscripts.h | 7 + badwolf/userscripts.o | Bin 0 -> 14776 bytes badwolf/usr.bin.badwolf | 81 + badwolf/version.sh | 16 + bar/README.md | 11 + bar/bar | 53 + cl/c.sh | 7 + cl/cl | Bin 0 -> 4800 bytes cl/cl.c | 7 + cl/cl.s | 25 + dmenu/LICENSE | 30 + dmenu/Makefile | 64 + dmenu/README | 24 + dmenu/arg.h | 49 + dmenu/config.def.h | 23 + dmenu/config.h | 25 + dmenu/config.mk | 32 + dmenu/dmenu | Bin 0 -> 43304 bytes dmenu/dmenu.1 | 194 + dmenu/dmenu.c | 796 ++ dmenu/dmenu.o | Bin 0 -> 31824 bytes dmenu/dmenu_path | 13 + dmenu/dmenu_run | 2 + dmenu/drw.c | 451 ++ dmenu/drw.h | 58 + dmenu/drw.o | Bin 0 -> 10872 bytes dmenu/stest | Bin 0 -> 16888 bytes dmenu/stest.1 | 90 + dmenu/stest.c | 109 + dmenu/stest.o | Bin 0 -> 4952 bytes dmenu/util.c | 36 + dmenu/util.h | 9 + dmenu/util.o | Bin 0 -> 2080 bytes nhkd/CHANGES | 16 + nhkd/LICENSE | 21 + nhkd/Makefile | 31 + nhkd/README | 51 + nhkd/c.sh | 5 + nhkd/config.h | 50 + nhkd/nhkd | Bin 0 -> 18440 bytes nhkd/nhkd.1 | 38 + nhkd/nhkd.c | 313 + nhkd/tags | 137 + sxiv | 1 + vildwm/LICENSE | 38 + vildwm/Makefile | 51 + vildwm/README | 48 + vildwm/config.def.h | 126 + vildwm/config.def.h.orig | 126 + vildwm/config.def.h.rej | 20 + vildwm/config.h | 137 + vildwm/config.mk | 40 + vildwm/config.mk.orig | 39 + vildwm/drw.c | 450 ++ vildwm/drw.h | 58 + vildwm/drw.o | Bin 0 -> 10888 bytes vildwm/dwm | Bin 0 -> 72944 bytes vildwm/dwm-centeredmaster-6.1.diff | 142 + vildwm/dwm-fibonacci-20200418-c82db69.diff | 114 + vildwm/dwm-swallow-6.3.diff | 412 + vildwm/dwm.1 | 176 + vildwm/dwm.c | 2494 ++++++ vildwm/dwm.c.orig | 2388 ++++++ vildwm/dwm.c.rej | 118 + vildwm/dwm.o | Bin 0 -> 62016 bytes vildwm/dwm.png | Bin 0 -> 373 bytes vildwm/dwmcenter.diff | 142 + vildwm/dwmfib.diff | 114 + vildwm/fibonacci.c | 66 + vildwm/transient.c | 42 + vildwm/util.c | 36 + vildwm/util.h | 8 + vildwm/util.o | Bin 0 -> 2080 bytes vilst/LICENSE | 34 + vilst/Makefile | 54 + vilst/README | 17 + vilst/arg.h | 50 + vilst/config.def.h | 493 ++ vilst/config.h | 497 ++ vilst/config.mk | 60 + vilst/hb.c | 139 + vilst/patch/alpha.c | 19 + vilst/patch/alpha.h | 2 + vilst/patch/keyboardselect_reflow.txt | 29 + vilst/patch/scrollback.c | 43 + vilst/patch/scrollback.h | 15 + vilst/patch/st_embedder_x.c | 50 + vilst/patch/st_embedder_x.h | 7 + vilst/patch/st_include.c | 2 + vilst/patch/st_include.h | 2 + vilst/patch/utils.h | 23 + vilst/patch/x_include.c | 3 + vilst/patch/x_include.h | 3 + vilst/sixel.c | 687 ++ vilst/sixel.h | 63 + vilst/sixel.o | Bin 0 -> 15376 bytes vilst/sixel_hls.c | 115 + vilst/sixel_hls.h | 7 + vilst/sixel_hls.o | Bin 0 -> 2832 bytes vilst/st | Bin 0 -> 140472 bytes vilst/st.1 | 177 + vilst/st.c | 3037 +++++++ vilst/st.desktop | 8 + vilst/st.h | 301 + vilst/st.info | 252 + vilst/st.o | Bin 0 -> 116496 bytes vilst/win.h | 42 + vilst/x.c | 2254 ++++++ vilst/x.o | Bin 0 -> 95168 bytes 220 files changed, 39717 insertions(+) create mode 100644 .Xresources create mode 100644 .config/.gitconfig create mode 100644 .config/OpenSCAD/OpenSCAD.conf create mode 100644 .config/dosbox/dosbox-staging.conf create mode 100644 .config/foot/foot.ini create mode 100644 .config/gtk-2.0/gtkfilechooser.ini create mode 100644 .config/gtk-3.0/settings.ini create mode 100644 .config/htop/htoprc create mode 100644 .config/mimeapps.list create mode 100644 .config/mpv/mpv.conf create mode 100644 .config/neofetch/config.conf create mode 100644 .config/nvim/README.md create mode 100644 .config/nvim/init.lua create mode 100644 .config/nvim/plugin/packer_compiled.lua create mode 100644 .config/qutebrowser/autoconfig.yml create mode 100644 .config/qutebrowser/qsettings/QtProject.conf create mode 100644 .config/qutebrowser/quickmarks create mode 100644 .config/readline/.inputrc create mode 100644 .config/screenkey.json create mode 100644 .config/spectrwm/spectrwm.conf create mode 100644 .config/sway/config create mode 100644 .config/tmuxinator/work.yml create mode 100644 .config/vifm/colors/Default.vifm create mode 100644 .config/vifm/scripts/README create mode 100755 .config/vifm/scripts/supervifm create mode 100644 .config/vifm/vifm-help.txt create mode 100644 .config/vifm/vifminfo.json create mode 100644 .config/vifm/vifmrc create mode 100644 .gitconfig create mode 100644 .tmux.conf create mode 100644 .vimrc create mode 100644 .xinitrc create mode 100644 .zprofile create mode 100644 .zshrc create mode 100644 README.md create mode 100644 apk.txt create mode 100644 apkworld.txt create mode 100644 badwolf/.ninja_deps create mode 100755 badwolf/.ninja_log create mode 100755 badwolf/AUTHORS create mode 100755 badwolf/COPYING create mode 100755 badwolf/KnowledgeBase.md create mode 100755 badwolf/LICENSES/BSD-3-Clause.txt create mode 100755 badwolf/LICENSES/CC-BY-SA-4.0.txt create mode 100755 badwolf/README.md create mode 100755 badwolf/badwolf.1 create mode 100755 badwolf/badwolf.c create mode 100755 badwolf/badwolf.de.1 create mode 100755 badwolf/badwolf.desktop create mode 100755 badwolf/badwolf.fr.1 create mode 100755 badwolf/badwolf.h create mode 100755 badwolf/badwolf.inkscape.svg create mode 100755 badwolf/badwolf.o create mode 100755 badwolf/badwolf.svg create mode 100755 badwolf/badwolf.tr.1 create mode 100755 badwolf/badwolf.vi.1 create mode 100755 badwolf/bookmarks.c create mode 100755 badwolf/bookmarks.h create mode 100755 badwolf/bookmarks.o create mode 100755 badwolf/bookmarks_test.c create mode 100755 badwolf/bookmarks_test.fixtures/full/badwolf/bookmarks.xbel create mode 100755 badwolf/build.ninja create mode 100755 badwolf/config.h create mode 100755 badwolf/config.ninja create mode 100755 badwolf/configure create mode 100755 badwolf/configure.h create mode 100755 badwolf/decisions.md create mode 100755 badwolf/downloads.c create mode 100755 badwolf/downloads.h create mode 100755 badwolf/downloads.o create mode 100755 badwolf/fmt.c create mode 100755 badwolf/fmt.h create mode 100644 badwolf/fmt.o create mode 100755 badwolf/fmt_test.c create mode 100755 badwolf/icons/hicolor/128x128/apps/badwolf.png create mode 100755 badwolf/icons/hicolor/24x24/apps/badwolf.png create mode 100755 badwolf/icons/hicolor/256x256/apps/badwolf.png create mode 100755 badwolf/icons/hicolor/32x32/apps/badwolf.png create mode 100755 badwolf/icons/hicolor/48x48/apps/badwolf.png create mode 100755 badwolf/icons/hicolor/64x64/apps/badwolf.png create mode 100755 badwolf/icons/hicolor/scalable/apps/badwolf.svg create mode 100755 badwolf/icons_size.sh create mode 100755 badwolf/install create mode 100755 badwolf/install.sh create mode 100755 badwolf/interface.css create mode 100755 badwolf/interface.md create mode 100755 badwolf/keybindings.c create mode 100755 badwolf/keybindings.h create mode 100755 badwolf/keybindings.o create mode 100755 badwolf/locale/de/LC_MESSAGES/Badwolf.mo create mode 100755 badwolf/locale/fr/LC_MESSAGES/Badwolf.mo create mode 100755 badwolf/locale/pt_BR/LC_MESSAGES/Badwolf.mo create mode 100755 badwolf/locale/tr/LC_MESSAGES/Badwolf.mo create mode 100755 badwolf/locale/vi/LC_MESSAGES/Badwolf.mo create mode 100755 badwolf/mo/.keep create mode 100755 badwolf/po/de.po create mode 100755 badwolf/po/de_man.po create mode 100755 badwolf/po/fr.po create mode 100755 badwolf/po/fr_man.po create mode 100755 badwolf/po/manpage.pot create mode 100755 badwolf/po/messages.pot create mode 100755 badwolf/po/pot_license.ed create mode 100755 badwolf/po/pt_BR.po create mode 100755 badwolf/po/tr.po create mode 100755 badwolf/po/tr_man.po create mode 100755 badwolf/po/vi.po create mode 100755 badwolf/uri.c create mode 100755 badwolf/uri.h create mode 100755 badwolf/uri.o create mode 100755 badwolf/uri_test.c create mode 100755 badwolf/userscripts.c create mode 100755 badwolf/userscripts.h create mode 100755 badwolf/userscripts.o create mode 100755 badwolf/usr.bin.badwolf create mode 100755 badwolf/version.sh create mode 100644 bar/README.md create mode 100755 bar/bar create mode 100755 cl/c.sh create mode 100755 cl/cl create mode 100644 cl/cl.c create mode 100644 cl/cl.s create mode 100755 dmenu/LICENSE create mode 100755 dmenu/Makefile create mode 100755 dmenu/README create mode 100755 dmenu/arg.h create mode 100755 dmenu/config.def.h create mode 100755 dmenu/config.h create mode 100755 dmenu/config.mk create mode 100755 dmenu/dmenu create mode 100755 dmenu/dmenu.1 create mode 100755 dmenu/dmenu.c create mode 100644 dmenu/dmenu.o create mode 100755 dmenu/dmenu_path create mode 100755 dmenu/dmenu_run create mode 100755 dmenu/drw.c create mode 100755 dmenu/drw.h create mode 100644 dmenu/drw.o create mode 100755 dmenu/stest create mode 100755 dmenu/stest.1 create mode 100755 dmenu/stest.c create mode 100644 dmenu/stest.o create mode 100755 dmenu/util.c create mode 100755 dmenu/util.h create mode 100644 dmenu/util.o create mode 100755 nhkd/CHANGES create mode 100755 nhkd/LICENSE create mode 100755 nhkd/Makefile create mode 100755 nhkd/README create mode 100755 nhkd/c.sh create mode 100755 nhkd/config.h create mode 100755 nhkd/nhkd create mode 100755 nhkd/nhkd.1 create mode 100755 nhkd/nhkd.c create mode 100644 nhkd/tags create mode 160000 sxiv create mode 100755 vildwm/LICENSE create mode 100755 vildwm/Makefile create mode 100755 vildwm/README create mode 100755 vildwm/config.def.h create mode 100755 vildwm/config.def.h.orig create mode 100755 vildwm/config.def.h.rej create mode 100755 vildwm/config.h create mode 100755 vildwm/config.mk create mode 100755 vildwm/config.mk.orig create mode 100755 vildwm/drw.c create mode 100755 vildwm/drw.h create mode 100644 vildwm/drw.o create mode 100755 vildwm/dwm create mode 100755 vildwm/dwm-centeredmaster-6.1.diff create mode 100755 vildwm/dwm-fibonacci-20200418-c82db69.diff create mode 100755 vildwm/dwm-swallow-6.3.diff create mode 100755 vildwm/dwm.1 create mode 100755 vildwm/dwm.c create mode 100755 vildwm/dwm.c.orig create mode 100755 vildwm/dwm.c.rej create mode 100644 vildwm/dwm.o create mode 100755 vildwm/dwm.png create mode 100755 vildwm/dwmcenter.diff create mode 100755 vildwm/dwmfib.diff create mode 100755 vildwm/fibonacci.c create mode 100755 vildwm/transient.c create mode 100755 vildwm/util.c create mode 100755 vildwm/util.h create mode 100644 vildwm/util.o create mode 100755 vilst/LICENSE create mode 100755 vilst/Makefile create mode 100755 vilst/README create mode 100644 vilst/arg.h create mode 100644 vilst/config.def.h create mode 100644 vilst/config.h create mode 100755 vilst/config.mk create mode 100644 vilst/hb.c create mode 100644 vilst/patch/alpha.c create mode 100644 vilst/patch/alpha.h create mode 100755 vilst/patch/keyboardselect_reflow.txt create mode 100644 vilst/patch/scrollback.c create mode 100644 vilst/patch/scrollback.h create mode 100644 vilst/patch/st_embedder_x.c create mode 100644 vilst/patch/st_embedder_x.h create mode 100644 vilst/patch/st_include.c create mode 100644 vilst/patch/st_include.h create mode 100644 vilst/patch/utils.h create mode 100644 vilst/patch/x_include.c create mode 100644 vilst/patch/x_include.h create mode 100644 vilst/sixel.c create mode 100644 vilst/sixel.h create mode 100644 vilst/sixel.o create mode 100644 vilst/sixel_hls.c create mode 100644 vilst/sixel_hls.h create mode 100644 vilst/sixel_hls.o create mode 100755 vilst/st create mode 100755 vilst/st.1 create mode 100644 vilst/st.c create mode 100755 vilst/st.desktop create mode 100644 vilst/st.h create mode 100755 vilst/st.info create mode 100644 vilst/st.o create mode 100644 vilst/win.h create mode 100644 vilst/x.c create mode 100644 vilst/x.o diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..5da3aa0 --- /dev/null +++ b/.Xresources @@ -0,0 +1 @@ +Xcursor.theme: Bibata-Modern-Classic diff --git a/.config/.gitconfig b/.config/.gitconfig new file mode 100644 index 0000000..5078e30 --- /dev/null +++ b/.config/.gitconfig @@ -0,0 +1,5 @@ +[user] + email = kenyaz@vilyaem.xyz + name = Vilyaem +[credential] + helper = cache diff --git a/.config/OpenSCAD/OpenSCAD.conf b/.config/OpenSCAD/OpenSCAD.conf new file mode 100644 index 0000000..0713a5e --- /dev/null +++ b/.config/OpenSCAD/OpenSCAD.conf @@ -0,0 +1,26 @@ +[General] +recentFileList=/home/vilyaem/kb.scad, /home/vilyaem/repos/keebcu/tedboard.scad + +[3dview] +colorscheme=Metallic + +[design] +autoReload=true + +[view] +hide3DViewToolbar=false +hideConsole=false +hideCustomizer=true +hideEditor=true +hideEditorToolbar=false +hideErrorLog=false +orthogonalProjection=false +showAxes=true +showCrosshairs=false +showEdges=false +showScaleProportional=true + +[window] +position=@Point(640 252) +size=@Size(638 232) +state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x3\0\0\0\0\0\0\x2.\0\0\x2\x8a\xfc\x2\0\0\0\x1\xfb\0\0\0\x14\0\x65\0\x64\0i\0t\0o\0r\0\x44\0o\0\x63\0k\0\0\0\0\x14\0\0\x2\x8a\0\0\0j\0\xff\xff\xff\0\0\0\x1\0\0\x1\x65\0\0\0\0\xfc\x2\0\0\0\x1\xfb\0\0\0\x1a\0p\0\x61\0r\0\x61\0m\0\x65\0t\0\x65\0r\0\x44\0o\0\x63\0k\0\0\0\0\x14\0\0\0\x96\0\0\0\x96\0\xff\xff\xff\0\0\0\x3\0\0\x2~\0\0\0\x1d\xfc\x1\0\0\0\x2\xfb\0\0\0\x16\0\x63\0o\0n\0s\0o\0l\0\x65\0\x44\0o\0\x63\0k\x1\0\0\0\0\0\0\0\x85\0\0\0)\0\xff\xff\xff\xfb\0\0\0\x18\0\x65\0r\0r\0o\0r\0L\0o\0g\0\x44\0o\0\x63\0k\x1\0\0\0\x8b\0\0\x1\xf3\0\0\0)\0\xff\xff\xff\0\0\x2~\0\0\0\x9b\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x14\0t\0\x61\0\x62\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) diff --git a/.config/dosbox/dosbox-staging.conf b/.config/dosbox/dosbox-staging.conf new file mode 100644 index 0000000..95edbd5 --- /dev/null +++ b/.config/dosbox/dosbox-staging.conf @@ -0,0 +1,1115 @@ +# This is the configuration file for dosbox-staging (0.81.1). +# Lines starting with a '#' character are comments. + +[sdl] +# fullscreen: Start directly in fullscreen (disabled by default). +# Run INTRO and see Special Keys for window control hotkeys. +# display: Number of display to use; values depend on OS and user settings (0 by default). +# fullresolution: What resolution to use for fullscreen: 'original', 'desktop' +# or a fixed size, e.g. 1024x768 ('desktop' by default). +# windowresolution: Set intial window size for windowed mode. You can still resize the window +# after startup. +# default: Select the best option based on your environment and other +# settings (such as whether aspect ratio correction is enabled). +# small, medium, large (s, m, l): +# Size the window relative to the desktop. +# WxH: Specify window size in WxH format in logical units +# (e.g., 1024x768). +# window_position: Set initial window position for windowed mode: +# auto: Let the window manager decide the position (default). +# X,Y: Set window position in X,Y format (e.g., 250,100). +# 0,0 is the top-left corner of the screen. +# window_decorations: Enable window decorations in windowed mode (enabled by default). +# transparency: Set the transparency of the DOSBox Staging screen (0 by default). +# From 0 (no transparency) to 90 (high transparency). +# host_rate: Set the host's refresh rate: +# auto: Use SDI rates, or VRR rates when in fullscreen on a high-refresh +# rate display (default). +# sdi: Use serial device interface (SDI) rates, without further +# adjustment. +# vrr: Deduct 3 Hz from the reported rate (best practice for VRR +# displays). +# N: Specify custom refresh rate in Hz (decimal values are allowed; +# 23.000 is the allowed minimum). +# vsync: Set the host video driver's vertical synchronization (vsync) mode: +# auto: Limit vsync to beneficial cases, such as when using an +# interpolating VRR display in fullscreen (default). +# on: Enable vsync. This can prevent tearing in some games but will +# impact performance or drop frames when the DOS rate exceeds the +# host rate (e.g. 70 Hz DOS rate vs 60 Hz host rate). +# adaptive: Enables vsync when the frame rate is higher than the host rate, +# but disables it when the frame rate drops below the host rate. +# This is a reasonable alternative on macOS instead of 'on'. +# Note: only valid in OpenGL output modes; otherwise treated as +# 'on'. +# off: Attempt to disable vsync to allow quicker frame presentation at +# the risk of tearing in some games. +# yield: Let the host's video driver control video synchronization. +# Possible values: auto, on, adaptive, off, yield. +# vsync_skip: Number of microseconds to allow rendering to block before skipping the +# next frame. For example, a value of 7000 is roughly half the frame time +# at 70 Hz. 0 disables this and will always render (default). +# presentation_mode: Select the frame presentation mode: +# auto: Intelligently time and drop frames to prevent emulation stalls, +# based on host and DOS frame rates (default). +# cfr: Always present DOS frames at a constant frame rate. +# vfr: Always present changed DOS frames at a variable frame rate. +# Possible values: auto, cfr, vfr. +# output: Video system to use for output ('opengl' by default). +# 'texture' and 'opengl' use bilinear interpolation, 'texturenb' and +# 'openglnb' use nearest-neighbour (no-bilinear). Some shaders require +# bilinear interpolation, making that the safest choice. +# Possible values: texture, texturenb, opengl, openglnb. +# Deprecated values: openglpp, surface, texturepp. +# texture_renderer: Render driver to use in 'texture' output mode ('auto' by default). +# Use 'texture_renderer = auto' for an automatic choice. +# Possible values: auto, opengl, opengles2, software. +# waitonerror: Keep the console open if an error has occurred (enabled by default). +# priority: Priority levels to apply when active and inactive, respectively. +# ('auto auto' by default) +# 'auto' lets the host operating system manage the priority. +# Possible values: auto, lowest, lower, normal, higher, highest. +# mute_when_inactive: Mute the sound when the window is inactive (disabled by default). +# pause_when_inactive: Pause emulation when the window is inactive (disabled by default). +# mapperfile: Path to the mapper file ('mapper-sdl2-XYZ.map' by default, where XYZ is the +# current version). Pre-configured maps are bundled in 'resources/mapperfiles'. +# These can be loaded by name, e.g., with 'mapperfile = xbox/xenon2.map'. +# Note: The '--resetmapper' command line option only deletes the default mapper +# file. +# screensaver: Use 'allow' or 'block' to override the SDL_VIDEO_ALLOW_SCREENSAVER environment +# variable which usually blocks the OS screensaver while the emulator is +# running ('auto' by default). +# Possible values: auto, allow, block. + +fullscreen = false +display = 0 +fullresolution = 320x200 +windowresolution = 320x200 +window_position = auto +window_decorations = true +transparency = 20 +host_rate = auto +vsync = auto +vsync_skip = 0 +presentation_mode = auto +output = opengl +texture_renderer = auto +waitonerror = true +priority = auto auto +mute_when_inactive = false +pause_when_inactive = false +mapperfile = mapper-sdl2-0.81.1.map +screensaver = auto + +[dosbox] +# language: Select a language to use: 'br', 'de', 'en', 'es', 'fr', 'it', 'nl', 'pl', +# or 'ru' (unset by default; this defaults to English). +# Notes: +# - This setting will override the 'LANG' environment variable, if set. +# - The bundled 'resources/translations' directory with the executable holds +# these files. Please keep it along-side the executable to support this +# feature. +# machine: Set the video adapter or machine to emulate: +# hercules: Hercules Graphics Card (HGC) (see 'monochrome_palette'). +# cga_mono: CGA adapter connected to a monochrome monitor (see +# 'monochrome_palette'). +# cga: IBM Color Graphics Adapter (CGA). Also enables composite +# video emulation (see [composite] section). +# pcjr: An IBM PCjr machine. Also enables PCjr sound and composite +# video emulation (see [composite] section). +# tandy: A Tandy 1000 machine with TGA graphics. Also enables Tandy +# sound and composite video emulation (see [composite] +# section). +# ega: IBM Enhanced Graphics Adapter (EGA). +# svga_paradise: Paradise PVGA1A SVGA card (no VESA VBE; 512K vmem by default, +# can be set to 256K or 1MB with 'vmemsize'). This is the +# closest to IBM's original VGA adapter. +# svga_et3000: Tseng Labs ET3000 SVGA card (no VESA VBE; fixed 512K vmem). +# svga_et4000: Tseng Labs ET4000 SVGA card (no VESA VBE; 1MB vmem by +# default, can be set to 256K or 512K with 'vmemsize'). +# svga_s3: S3 Trio64 (VESA VBE 2.0; 4MB vmem by default, can be set to +# 512K, 1MB, 2MB, or 8MB with 'vmemsize') (default) +# vesa_oldvbe: Same as 'svga_s3' but limited to VESA VBE 1.2. +# vesa_nolfb: Same as 'svga_s3' (VESA VBE 2.0), plus the "no linear +# framebuffer" hack (needed only by a few games). +# Possible values: hercules, cga_mono, cga, pcjr, tandy, ega, svga_s3, svga_et3000, svga_et4000, svga_paradise, vesa_nolfb, vesa_oldvbe. +# Deprecated values: vgaonly. +# memsize: Amount of memory of the emulated machine has in MB (16 by default). +# Best leave at the default setting to avoid problems with some games, +# though a few games might require a higher value. +# There is generally no speed advantage when raising this value. +# mcb_fault_strategy: How software-corrupted memory chain blocks should be handled: +# repair: Repair (and report) faults using adjacent blocks (default). +# report: Report faults but otherwise proceed as-is. +# allow: Allow faults to go unreported (hardware behavior). +# deny: Quit (and report) when faults are detected. +# Possible values: repair, report, allow, deny. +# vmemsize: Video memory in MB (1-8) or KB (256 to 8192). 'auto' uses the default for +# the selected video adapter ('auto' by default). See the 'machine' setting for +# the list of valid options per adapter. +# Possible values: auto, 1, 2, 4, 8, 256, 512, 1024, 2048, 4096, 8192. +# vmem_delay: Set video memory access delay emulation ('off' by default). +# off: Disable video memory access delay emulation (default). +# This is preferable for most games to avoid slowdowns. +# on: Enable video memory access delay emulation (3000 ns). +# This can help reduce or eliminate flicker in Hercules, +# CGA, EGA, and early VGA games. +# : Set access delay in nanoseconds. Valid range is 0 to 20000 ns; +# 500 to 5000 ns is the most useful range. +# Note: Only set this on a per-game basis when necessary as it slows down +# the whole emulator. +# dos_rate: Customize the emulated video mode's frame rate. +# default: The DOS video mode determines the rate (default). +# host: Match the DOS rate to the host rate (see 'host_rate' setting). +# : Sets the rate to an exact value in between 24.000 and 1000.000 Hz. +# Note: We recommend the 'default' rate, otherwise test and set on a per-game +# basis. +# vesa_modes: Controls the selection of VESA 1.2 and 2.0 modes offered: +# compatible: A tailored selection that maximizes game compatibility. +# This is recommended along with 4 or 8 MB of video memory +# (default). +# halfline: Supports the low-resolution halfline VESA 2.0 mode used by +# Extreme Assault. Use only if needed, as it's not S3 compatible. +# all: All modes for a given video memory size, however some games may +# not use them properly (flickering) or may need more system +# memory to use them. +# Possible values: compatible, all, halfline. +# vga_8dot_font: Use 8-pixel-wide fonts on VGA adapters (disabled by default). +# vga_render_per_scanline: Emulate accurate per-scanline VGA rendering (enabled by default). +# Currently, you need to disable this for a few games, otherwise they will crash +# at startup (e.g., Deus, Ishar 3, Robinson's Requiem, Time Warriors). +# speed_mods: Permit changes known to improve performance (enabled by default). +# Currently, no games are known to be negatively affected by this. +# Please file a bug with the project if you find a game that fails +# when this is enabled so we will list them here. +# autoexec_section: How autoexec sections are handled from multiple config files: +# join: Combine them into one big section (legacy behavior; default). +# overwrite: Use the last one encountered, like other config settings. +# Possible values: join, overwrite. +# automount: Mount 'drives/[c]' directories as drives on startup, where [c] is a lower-case +# drive letter from 'a' to 'y' (enabled by default). The 'drives' folder can be +# provided relative to the current directory or via built-in resources. +# Mount settings can be optionally provided using a [c].conf file along-side +# the drive's directory, with content as follows: +# [drive] +# type = dir, overlay, floppy, or cdrom +# label = custom_label +# path = path-specification, ie: path = %%path%%;c:\tools +# override_drive = mount the directory to this drive instead (default empty) +# verbose = true or false +# startup_verbosity: Controls verbosity prior to displaying the program ('auto' by default): +# Verbosity | Welcome | Early stdout +# high | yes | yes +# low | no | yes +# quiet | no | no +# auto | 'low' if exec or dir is passed, otherwise 'high' +# Possible values: auto, high, low, quiet. +# allow_write_protected_files: Many games open all their files with writable permissions; even files that they +# never modify. This setting lets you write-protect those files while still +# allowing the game to read them (enabled by default). A second use-case: if +# you're using a copy-on-write or network-based filesystem, this setting avoids +# triggering write operations for these write-protected files. +# shell_config_shortcuts: Allow shortcuts for simpler configuration management (enabled by default). +# E.g., instead of 'config -set sbtype sb16', it is enough to execute +# 'sbtype sb16', and instead of 'config -get sbtype', you can just execute +# the 'sbtype' command. + +language = +#machine = svga_s3 +machine = svga_paradise +memsize = 32 +mcb_fault_strategy = repair +vmemsize = auto +vmem_delay = off +dos_rate = default +vesa_modes = compatible +vga_8dot_font = false +vga_render_per_scanline = true +speed_mods = true +autoexec_section = join +automount = true +startup_verbosity = auto +allow_write_protected_files = true +shell_config_shortcuts = true + +[render] +# aspect: Set the aspect ratio correction mode (enabled by default): +# auto, on: Apply aspect ratio correction for modern square-pixel +# flat-screen displays, so DOS video modes with non-square +# pixels appear as they would on a 4:3 display aspect +# ratio CRT monitor the majority of DOS games were +# designed for. This setting only affects video modes that +# use non-square pixels, such as 320x200 or 640x400;. +# square-pixelmodes (e.g., 320x240, 640x480, and 800x600), +# are displayed as-is. +# square-pixels, off: Don't apply aspect ratio correction; all DOS video modes +# are displayed with square pixels. Most 320x200 games +# will appear squashed, but a minority of titles (e.g., +# DOS ports of PAL Amiga games) need square pixels to +# appear as the artists intended. +# stretch: Calculate the aspect ratio from the viewport's +# dimensions. Combined with 'viewport', this mode is +# useful to force arbitrary aspect ratios (e.g., +# stretching DOS games to fullscreen on 16:9 displays) and +# to emulate the horizontal and vertical stretch controls +# of CRT monitors. +# Possible values: auto, on, square-pixels, off, stretch. +# integer_scaling: Constrain the horizontal or vertical scaling factor to the largest integer +# value so the image still fits into the viewport. The configured aspect ratio is +# always maintained according to the 'aspect' and 'viewport' settings, which may +# result in a non-integer scaling factor in the other dimension. If the image is +# larger than the viewport, the integer scaling constraint is auto-disabled (same +# as 'off'). Possible values: +# auto: 'vertical' mode auto-enabled for adaptive CRT shaders only +# (see 'glshader'), otherwise 'off' (default). +# vertical: Constrain the vertical scaling factor to integer values. +# This is the recommended setting for CRT shaders to avoid uneven +# scanlines and interference artifacts. +# horizontal: Constrain the horizontal scaling factor to integer values. +# off: No integer scaling constraint is applied; the image fills the +# viewport while maintaining the configured aspect ratio. +# Possible values: auto, vertical, horizontal, off. +# viewport: Set the viewport size (maximum drawable area). The video output is always +# contained within the viewport while taking the configured aspect ratio into +# account (see 'aspect'). Possible values: +# fit: Fit the viewport into the available window/screen (default). +# There might be padding (black areas) around the image with +# 'integer_scaling' enabled. +# WxH: Set a fixed viewport size in WxH format in logical units +# (e.g., 960x720). The specified size must not be larger than +# the desktop. If it's larger than the window size, it's +# scaled to fit within the window. +# N%: Similar to 'WxH' but the size is specified as a percentage +# of the desktop size. +# relative H% V%: The viewport is set to a 4:3 aspect ratio rectangle fit into +# the available window/screen, then it's scaled by the H and V +# horizontal and vertical scaling factors (valid range is from +# 20% to 300%). The resulting viewport is allowed to extend +# beyond the window/screen. Useful to force arbitrary display +# aspect ratios with 'aspect = stretch' and to zoom into the +# image. This effectively emulates the horizontal and vertical +# stretch controls of CRT monitors. +# Notes: +# - Using 'relative' mode with 'integer_scaling' enabled could lead to +# surprising (but correct) results. +# - You can use the 'Stretch Axis', 'Inc Stretch', and 'Dec Stretch' hotkey +# actions to set the stretch in 'relative' mode in real-time. +# monochrome_palette: Set the palette for monochrome display emulation ('amber' by default). +# Works only with the 'hercules' and 'cga_mono' machine types. +# Note: You can also cycle through the available palettes via hotkeys. +# Possible values: amber, green, white, paperwhite. +# cga_colors: Set the interpretation of CGA RGBI colours. Affects all machine types capable +# of displaying CGA or better graphics. Built-in presets: +# default: The canonical CGA palette, as emulated by VGA adapters +# (default). +# tandy : Emulation of an idealised Tandy monitor with adjustable brown +# level. The brown level can be provided as an optional second +# parameter (0 - red, 50 - brown, 100 - dark yellow; +# defaults to 50). E.g. tandy 100 +# tandy-warm: Emulation of the actual colour output of an unknown Tandy +# monitor. +# ibm5153 : Emulation of the actual colour output of an IBM 5153 monitor +# with a unique contrast control that dims non-bright colours +# only. The contrast can be optionally provided as a second +# parameter (0 to 100; defaults to 100), e.g. ibm5153 60 +# agi-amiga-v1, agi-amiga-v2, agi-amiga-v3: +# Palettes used by the Amiga ports of Sierra AGI games. +# agi-amigaish: A mix of EGA and Amiga colours used by the Sarien +# AGI-interpreter. +# scumm-amiga: Palette used by the Amiga ports of LucasArts EGA games. +# colodore: Commodore 64 inspired colours based on the Colodore palette. +# colodore-sat: Colodore palette with 20% more saturation. +# dga16: A modern take on the canonical CGA palette with dialed back +# contrast. +# You can also set custom colours by specifying 16 space or comma separated +# colour values, either as 3 or 6-digit hex codes (e.g. #f00 or #ff0000 for full +# red), or decimal RGB triplets (e.g. (255, 0, 255) for magenta). The 16 colours +# are ordered as follows: +# black, blue, green, cyan, red, magenta, brown, light-grey, dark-grey, +# light-blue, light-green, light-cyan, light-red, light-magenta, yellow, white. +# Their default values, shown here in 6-digit hex code format, are: +# #000000 #0000aa #00aa00 #00aaaa #aa0000 #aa00aa #aa5500 #aaaaaa +# #555555 #5555ff #55ff55 #55ffff #ff5555 #ff55ff #ffff55 #ffffff +# glshader: Set an adaptive CRT monitor emulation shader or a regular GLSL shader in OpenGL +# output modes. Adaptive CRT shader options: +# crt-auto: A CRT shader that prioritises developer intent and +# how people experienced the game at the time of +# release (default). The appropriate shader variant is +# automatically selected based the graphics standard of +# the current video mode and the viewport size, +# irrespective of the 'machine' setting. This means +# that even on an emulated VGA card you'll get +# authentic single-scanned EGA monitor emulation with +# visible "thick scanlines" in EGA games. +# crt-auto-machine: Similar to 'crt-auto', but this picks a fixed CRT +# monitor appropriate for the video adapter configured +# via the 'machine' setting. E.g., CGA and EGA games +# will appear double-scanned on an emulated VGA +# adapter. +# crt-auto-arcade: Emulation of an arcade or home computer monitor less +# sharp than a typical PC monitor with thick scanlines +# in low-resolution modes. This fantasy option does not +# exist in real life, but it can be a lot of fun, +# especially with DOS ports of Amiga games. +# crt-auto-arcade-sharp: A sharper variant of the arcade shader for those who +# like the thick scanlines but want to retain the +# horizontal sharpness of a typical PC monitor. +# Other options include 'sharp', 'none', a shader listed using the +# '--list-glshaders' command-line argument, or an absolute or relative path +# to a file. In all cases, you may omit the shader's '.glsl' file extension. + +aspect = auto +integer_scaling = auto +viewport = fit +monochrome_palette = amber +cga_colors = default +glshader = crt-auto + +[composite] +# composite: Enable composite mode on start (only for 'cga', 'pcjr', and 'tandy' machine +# types; 'auto' by default). 'auto' lets the program decide. +# Note: Fine-tune the settings below (i.e., 'hue') using the composite hotkeys, +# then copy the new settings from the logs into your config. +# Possible values: auto, on, off. +# era: Era of composite technology ('auto' by default). +# When 'auto', PCjr uses 'new', and CGA/Tandy use 'old'. +# Possible values: auto, old, new. +# hue: Hue of the RGB palette (0 by default). +# For example, adjust until the sky is blue. +# saturation: Intensity of colors, from washed out to vivid (100 by default). +# contrast: Ratio between the dark and light area (100 by default). +# brightness: Luminosity of the image, from dark to light (0 by default). +# convergence: Convergence of subpixel elements, from blurry to sharp (0 by default). + +composite = auto +era = auto +hue = 0 +saturation = 100 +contrast = 100 +brightness = 0 +convergence = 0 + +[cpu] +# core: CPU core used in emulation ('auto' by default). 'auto' will switch to dynamic +# if available and appropriate. +# Possible values: auto, dynamic, normal, simple. +# cputype: CPU type used in emulation ('auto' by default). 'auto' is the fastest choice. +# Possible values: auto, 386, 386_slow, 486_slow, pentium_slow, 386_prefetch. +# cycles: Number of instructions DOSBox tries to emulate per millisecond +# ('auto' by default). Setting this value too high may result in sound drop-outs +# and lags. +# auto: Try to guess what a game needs. It usually works, but can +# fail with certain games. +# fixed : Set a fixed number of cycles. This is what you usually +# need if 'auto' fails (e.g. 'fixed 4000'). +# max: Allocate as much cycles as your computer is able to handle. +# Possible values: auto, fixed, max. +# cycleup: Number of cycles added with the increase cycles hotkey (10 by default). +# Setting it lower than 100 will be a percentage. +# cycledown: Number of cycles subtracted with the decrease cycles hotkey (20 by default). +# Setting it lower than 100 will be a percentage. + +core = auto +cputype = auto +cycles = max +cycleup = 10 +cycledown = 20 + +[voodoo] +# voodoo: Enable 3dfx Voodoo emulation (enabled by default). +# voodoo_memsize: Set the amount of video memory for 3dfx Voodoo graphics, either 4 or 12 MB. +# The memory is used by the Frame Buffer Interface (FBI) and Texture Mapping Unit +# (TMU) as follows: +# 4: 2 MB for the FBI and one TMU with 2 MB (default). +# 12: 4 MB for the FBI and two TMUs, each with 4 MB. +# Possible values: 4, 12. +# voodoo_multithreading: Use threads to improve 3dfx Voodoo performance (enabled by default). +# voodoo_bilinear_filtering: Use bilinear filtering to emulate the 3dfx Voodoo's texture smoothing effect +# (disabled by default). Only suggested if you have a fast desktop-class CPU, as +# it can impact frame rates on slower systems. + +voodoo = true +voodoo_memsize = 4 +voodoo_multithreading = true +voodoo_bilinear_filtering = false + +[capture] +# capture_dir: Directory where the various captures are saved, such as audio, video, MIDI +# and screenshot captures. ('capture' in the current working directory by +# default). +# default_image_capture_formats: Set the capture format of the default screenshot action ('upscaled' by +# default): +# upscaled: The image is bilinear-sharp upscaled and the correct aspect +# ratio is maintained, depending on the 'aspect' setting. The +# vertical scaling factor is always an integer. For example, +# 320x200 content is upscaled to 1600x1200 (5:6 integer scaling), +# 640x480 to 1920x1440 (3:3 integer scaling), and 640x350 to +# 1400x1050 (2.1875:3 scaling; fractional horizontally and +# integer vertically). The filenames of upscaled screenshots +# have no postfix (e.g. 'image0001.png'). +# rendered: The post-rendered, post-shader image shown on the screen is +# captured. The filenames of rendered screenshots end with +# '-rendered' (e.g. 'image0001-rendered.png'). +# raw: The contents of the raw framebuffer is captured (this always +# results in square pixels). The filenames of raw screenshots +# end with '-raw' (e.g. 'image0001-raw.png'). +# If multiple formats are specified separated by spaces, the default +# screenshot action will save multiple images in the specified formats. +# Keybindings for taking single screenshots in specific formats are also +# available. + +capture_dir = capture +default_image_capture_formats = upscaled + +[mouse] +# mouse_capture: Set the mouse capture behaviour: +# onclick: Capture the mouse when clicking any mouse button in the window +# (default). +# onstart: Capture the mouse immediately on start. Might not work correctly +# on some host operating systems. +# seamless: Let the mouse move seamlessly between the DOSBox window and the +# rest of the desktop; captures only with middle-click or hotkey. +# Seamless mouse does not work correctly with all the games. +# Windows 3.1x can be made compatible with a custom mouse driver. +# nomouse: Hide the mouse and don't send mouse input to the game. +# For touch-screen control, use 'seamless'. +# Possible values: seamless, onclick, onstart, nomouse. +# mouse_middle_release: Release the captured mouse by middle-clicking, and also capture it in +# seamless mode (enabled by default). +# mouse_multi_display_aware: Allow seamless mouse behavior and mouse pointer release to work in fullscreen +# mode on systems with more than one display (enabled by default). +# Note: You should disable this if it incorrectly detects multiple displays +# when only one should actually be used. This might happen if you are +# using mirrored display mode or using an AV receiver's HDMI input for +# audio-only listening. +# mouse_sensitivity: Global mouse sensitivity for the horizontal and vertical axes, as a percentage +# (100 by default). Values can be separated by spaces, commas, or semicolons +# (i.e. 100,150). Negative values invert the axis, zero disables it. +# Providing only one value sets sensitivity for both axes. +# Sensitivity can be further fine-tuned per mouse interface using the internal +# MOUSECTL.COM tool available on the Z drive. +# mouse_raw_input: Enable to bypass your operating system's mouse acceleration and sensitivity +# settings (enabled by default). Works in fullscreen or when the mouse is +# captured in windowed mode. +# dos_mouse_driver: Enable built-in DOS mouse driver (enabled by default). +# Notes: +# - Disable if you intend to use original MOUSE.COM driver in emulated DOS. +# - When guest OS is booted, built-in driver gets disabled automatically. +# dos_mouse_immediate: Update mouse movement counters immediately, without waiting for interrupt +# (disabled by default). May improve gameplay, especially in fast-paced games +# (arcade, FPS, etc.), as for some games it effectively boosts the mouse +# sampling rate to 1000 Hz, without increasing interrupt overhead. +# Might cause compatibility issues. List of known incompatible games: +# - Ultima Underworld: The Stygian Abyss +# - Ultima Underworld II: Labyrinth of Worlds +# Please report it if you find another incompatible game so we can update this +# list. +# ps2_mouse_model: PS/2 AUX port mouse model: +# standard: 3 buttons, standard PS/2 mouse. +# intellimouse: 3 buttons + wheel, Microsoft IntelliMouse. +# explorer: 5 buttons + wheel, Microsoft IntelliMouse Explorer (default). +# none: no PS/2 mouse emulated. +# Possible values: standard, intellimouse, explorer, none. +# com_mouse_model: COM (serial) port default mouse model: +# 2button: 2 buttons, Microsoft mouse. +# 3button: 3 buttons, Logitech mouse; +# mostly compatible with Microsoft mouse. +# wheel: 3 buttons + wheel; +# mostly compatible with Microsoft mouse. +# msm: 3 buttons, Mouse Systems mouse; +# NOT compatible with Microsoft mouse. +# 2button+msm: Automatic choice between '2button' and 'msm'. +# 3button+msm: Automatic choice between '3button' and 'msm'. +# wheel+msm: Automatic choice between 'wheel' and 'msm' (default). +# Note: Enable COM port mice in the [serial] section. +# Possible values: 2button, 3button, wheel, msm, 2button+msm, 3button+msm, wheel+msm. +# vmware_mouse: VMware mouse interface (enabled by default). +# Fully compatible only with experimental 3rd party Windows 3.1x driver. +# Note: Requires PS/2 mouse to be enabled. +# virtualbox_mouse: VirtualBox mouse interface (enabled by default). +# Fully compatible only with 3rd party Windows 3.1x driver. +# Note: Requires PS/2 mouse to be enabled. + +mouse_capture = onclick +mouse_middle_release = true +mouse_multi_display_aware = true +mouse_sensitivity = 100 +mouse_raw_input = true +dos_mouse_driver = true +dos_mouse_immediate = false +ps2_mouse_model = explorer +com_mouse_model = wheel+msm +vmware_mouse = true +virtualbox_mouse = true + +[mixer] +# nosound: Enable silent mode (disabled by default). +# Sound is still fully emulated in silent mode, but DOSBox outputs silence. +# rate: Mixer sample rate (48000 by default). +# Possible values: 8000, 11025, 16000, 22050, 32000, 44100, 48000. +# blocksize: Mixer block size in sample frames (512 by default). Larger values might help +# with sound stuttering but the sound will also be more lagged. +# Possible values: 128, 256, 512, 1024, 2048, 4096, 8192. +# prebuffer: How many milliseconds of sound to render on top of the blocksize +# (20 by default). Larger values might help with sound stuttering but the sound +# will also be more lagged. +# negotiate: Let the system audio driver negotiate possibly better sample rate and blocksize +# settings (enabled by default). +# compressor: Enable the auto-leveling compressor on the master channel to prevent clipping +# of the audio output: +# off: Disable compressor. +# on: Enable compressor (default). +# crossfeed: Enable crossfeed globally on all stereo channels for headphone listening: +# off: No crossfeed (default). +# on: Enable crossfeed (normal preset). +# light: Light crossfeed (strength 15). +# normal: Normal crossfeed (strength 40). +# strong: Strong crossfeed (strength 65). +# Note: You can fine-tune each channel's crossfeed strength using the MIXER. +# Possible values: off, on, light, normal, strong. +# reverb: Enable reverb globally to add a sense of space to the sound: +# off: No reverb (default). +# on: Enable reverb (medium preset). +# tiny: Simulates the sound of a small integrated speaker in a room; +# specifically designed for small-speaker audio systems +# (PC Speaker, Tandy, PS/1 Audio, and LPT DAC devices). +# small: Adds a subtle sense of space; good for games that use a single +# synth channel (typically OPL) for both music and sound effects. +# medium: Medium room preset that works well with a wide variety of games. +# large: Large hall preset recommended for games that use separate +# channels for music and digital audio. +# huge: A stronger variant of the large hall preset; works really well +# in some games with more atmospheric soundtracks. +# Note: You can fine-tune each channel's reverb level using the MIXER. +# Possible values: off, on, tiny, small, medium, large, huge. +# chorus: Enable chorus globally to add a sense of stereo movement to the sound: +# off: No chorus (default). +# on: Enable chorus (normal preset). +# light: A light chorus effect (especially suited for synth music that +# features lots of white noise). +# normal: Normal chorus that works well with a wide variety of games. +# strong: An obvious and upfront chorus effect. +# Note: You can fine-tune each channel's chorus level using the MIXER. +# Possible values: off, on, light, normal, strong. + +nosound = false +rate = 48000 +blocksize = 512 +prebuffer = 20 +negotiate = true +compressor = true +crossfeed = off +reverb = off +chorus = off + +[midi] +# mididevice: Set where MIDI data from the emulated MPU-401 MIDI interface is sent +# ('auto' by default): +# oss: Use the Linux OSS MIDI playback interface. +# alsa: Use the Linux ALSA MIDI playback interface. +# fluidsynth: The built-in FluidSynth MIDI synthesizer (SoundFont player). +# See the [fluidsynth] section for detailed configuration. +# auto: Either one of the built-in MIDI synthesisers (if `midiconfig` is +# set to 'fluidsynth' or 'mt32'), or a MIDI device external to +# DOSBox (any other 'midiconfig' value). This might be a software +# synthesizer or physical device. This is the default behaviour. +# none: Disable MIDI output. +# Possible values: auto, oss, alsa, fluidsynth, none. +# midiconfig: Configuration options for the selected MIDI interface (unset by default). +# This is usually the ID or name of the MIDI synthesizer you want +# to use (find the ID/name with the DOS command 'MIXER /LISTMIDI'). +# Notes: +# - This option has no effect when using the built-in synthesizers +# ('mididevice = fluidsynth' or 'mididevice = mt32'). +# - When using ALSA, use the Linux command 'aconnect -l' to list all open +# MIDI ports and select one (e.g. 'midiconfig = 14:0' for sequencer +# client 14, port 0). +# - If you're using a physical Roland MT-32 with revision 0 PCB, the hardware +# may require a delay in order to prevent its buffer from overflowing. +# In that case, add 'delaysysex' (e.g. 'midiconfig = 2 delaysysex'). +# mpu401: MPU-401 mode to emulate ('intelligent' by default). +# Possible values: intelligent, uart, none. +# raw_midi_output: Enable raw, unaltered MIDI output (disabled by default). +# The MIDI drivers of many games don't fully conform to the MIDI standard, +# which makes editing the MIDI recordings of these games very error-prone and +# cumbersome in MIDI sequencers, often resulting in hanging or missing notes. +# DOSBox corrects the MIDI output of such games by default. This results in no +# audible difference whatsoever; it only affects the representation of the MIDI +# data. You should only enable 'raw_midi_output' if you really need to capture +# the raw, unaltered MIDI output of a program, e.g. when working with music +# applications, or when debugging MIDI issues. + +mididevice = auto +midiconfig = +mpu401 = intelligent +raw_midi_output = false + +[fluidsynth] +# soundfont: Path to a SoundFont file in .sf2 format ('default.sf2' by default). +# You can use an absolute or relative path, or the name of an .sf2 inside the +# 'soundfonts' directory within your DOSBox configuration directory. +# An optional percentage value after the name will scale the SoundFont's volume. +# This is useful for normalising the volume of different SoundFonts. +# E.g. 'my_soundfont.sf2 50' will attenuate the volume by 50%. +# The percentage value can range from 1 to 800. +# fsynth_chorus: Chorus effect: 'auto' (default), 'on', 'off', or custom values. +# When using custom values: +# All five must be provided in-order and space-separated. +# They are: voice-count level speed depth modulation-wave, where: +# - voice-count is an integer from 0 to 99 +# - level is a decimal from 0.0 to 10.0 +# - speed is a decimal, measured in Hz, from 0.1 to 5.0 +# - depth is a decimal from 0.0 to 21.0 +# - modulation-wave is either 'sine' or 'triangle' +# For example: chorus = 3 1.2 0.3 8.0 sine +# Note: You can disable the FluidSynth chorus and enable the mixer-level chorus +# on the FluidSynth channel instead, or enable both chorus effects at the +# same time. Whether this sounds good depends on the SoundFont and the +# chorus settings being used. +# fsynth_reverb: Reverb effect: 'auto' (default), 'on', 'off', or custom values. +# When using custom values: +# All four must be provided in-order and space-separated. +# They are: room-size damping width level, where: +# - room-size is a decimal from 0.0 to 1.0 +# - damping is a decimal from 0.0 to 1.0 +# - width is a decimal from 0.0 to 100.0 +# - level is a decimal from 0.0 to 1.0 +# For example: reverb = 0.61 0.23 0.76 0.56 +# Note: You can disable the FluidSynth reverb and enable the mixer-level reverb +# on the FluidSynth channel instead, or enable both reverb effects at the +# same time. Whether this sounds good depends on the SoundFont and the +# reverb settings being used. +# fsynth_filter: Filter for the FluidSynth audio output: +# off: Don't filter the output (default). +# : Custom filter definition; see 'sb_filter' for details. + +soundfont = default.sf2 +fsynth_chorus = auto +fsynth_reverb = auto +fsynth_filter = off + +[sblaster] +# sbtype: Type of Sound Blaster to emulate ('sb16' by default). +# 'gb' is Game Blaster. +# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none. +# sbbase: The IO address of the Sound Blaster (220 by default). +# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300. +# irq: The IRQ number of the Sound Blaster (7 by default). +# Possible values: 3, 5, 7, 9, 10, 11, 12. +# dma: The DMA channel of the Sound Blaster (1 by default). +# Possible values: 0, 1, 3, 5, 6, 7. +# hdma: The High DMA channel of the Sound Blaster 16 (5 by default). +# Possible values: 0, 1, 3, 5, 6, 7. +# sbmixer: Allow the Sound Blaster mixer to modify the DOSBox mixer (enabled by default). +# sbwarmup: Silence initial DMA audio after card power-on, in milliseconds +# (100 by default). This mitigates pops heard when starting many SB-based games. +# Reduce this if you notice intial playback is missing audio. +# oplmode: Type of OPL emulation ('auto' by default). +# On 'auto' the mode is determined by 'sbtype'. +# All OPL modes are AdLib-compatible, except for 'cms'. +# Possible values: auto, cms, opl2, dualopl2, opl3, opl3gold, none. +# opl_fadeout: Fade out the OPL synth output after the last IO port write: +# off: Don't fade out; residual output will play forever (default). +# on: Wait 0.5s before fading out over a 0.5s period. +# : A custom fade-out definition in the following format: +# WAIT FADE +# Where WAIT is how long after the last IO port write fading begins, +# ranging between 100 and 5000 milliseconds; and FADE is the +# fade-out period, ranging between 10 and 3000 milliseconds. +# Examples: +# 300 200 (Wait 300ms before fading out over a 200ms period) +# 1000 3000 (Wait 1s before fading out over a 3s period) +# sb_filter: Type of filter to emulate for the Sound Blaster digital sound output: +# auto: Use the appropriate filter determined by 'sbtype'. +# sb1, sb2, sbpro1, sbpro2, sb16: +# Use the filter of this Sound Blaster model. +# modern: Use linear interpolation upsampling that acts as a low-pass +# filter; this is the legacy DOSBox behaviour (default). +# off: Don't filter the output. +# : One or two custom filters in the following format: +# TYPE ORDER FREQ +# Where TYPE can be 'hpf' (high-pass) or 'lpf' (low-pass), +# ORDER is the order of the filter from 1 to 16 +# (1st order = 6dB/oct slope, 2nd order = 12dB/oct, etc.), +# and FREQ is the cutoff frequency in Hz. Examples: +# lpf 2 12000 +# hpf 3 120 lfp 1 6500 +# sb_filter_always_on: Force the Sound Blaster filter to be always on +# (disallow programs from turning the filter off; disabled by default). +# opl_filter: Type of filter to emulate for the Sound Blaster OPL output: +# auto: Use the appropriate filter determined by 'sbtype' (default). +# sb1, sb2, sbpro1, sbpro2, sb16: +# Use the filter of this Sound Blaster model. +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. +# cms_filter: Filter for the Sound Blaster CMS output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. + +sbtype = sb16 +sbbase = 220 +irq = 7 +dma = 1 +hdma = 5 +sbmixer = true +sbwarmup = 100 +oplmode = auto +opl_fadeout = off +sb_filter = modern +sb_filter_always_on = false +opl_filter = auto +cms_filter = on + +[gus] +# gus: Enable Gravis UltraSound emulation (disabled by default). +# The default settings of base address 240, IRQ 5, and DMA 3 have been chosen +# so the GUS can coexist with a Sound Blaster card. This works fine for the +# majority of programs, but some games and demos expect the GUS factory +# defaults of base address 220, IRQ 11, and DMA 1. +# gusbase: The IO base address of the Gravis UltraSound (240 by default). +# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300. +# gusirq: The IRQ number of the Gravis UltraSound (5 by default). +# Possible values: 3, 5, 7, 9, 10, 11, 12. +# gusdma: The DMA channel of the Gravis UltraSound (3 by default). +# Possible values: 0, 1, 3, 5, 6, 7. +# ultradir: Path to UltraSound directory ('C:\ULTRASND' by default). +# In this directory there should be a 'MIDI' directory that contains the patch +# files for GUS playback. +# gus_filter: Filter for the Gravis UltraSound audio output: +# off: Don't filter the output (default). +# : Custom filter definition; see 'sb_filter' for details. + +gus = false +gusbase = 240 +gusirq = 5 +gusdma = 3 +ultradir = C:\ULTRASND +gus_filter = off + +[imfc] +# imfc: Enable the IBM Music Feature Card (disabled by default). +# imfc_base: The IO base address of the IBM Music Feature Card (2A20 by default). +# Possible values: 2a20, 2a30. +# imfc_irq: The IRQ number of the IBM Music Feature Card (3 by default). +# Possible values: 2, 3, 4, 5, 6, 7. +# imfc_filter: Filter for the IBM Music Feature Card output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. + +imfc = false +imfc_base = 2a20 +imfc_irq = 3 +imfc_filter = on + +[innovation] +# sidmodel: Model of chip to emulate in the Innovation SSI-2001 card: +# auto: Use the 6581 chip. +# 6581: The original chip, known for its bassy and rich character. +# 8580: A later revision that more closely matched the SID specification. +# It fixed the 6581's DC bias and is less prone to distortion. +# The 8580 is an option on reproduction cards, like the DuoSID. +# none: Disable the card (default). +# Possible values: auto, 6581, 8580, none. +# sidclock: The SID chip's clock frequency, which is jumperable on reproduction cards: +# default: 0.895 MHz, per the original SSI-2001 card (default). +# c64ntsc: 1.023 MHz, per NTSC Commodore PCs and the DuoSID. +# c64pal: 0.985 MHz, per PAL Commodore PCs and the DuoSID. +# hardsid: 1.000 MHz, available on the DuoSID. +# Possible values: default, c64ntsc, c64pal, hardsid. +# sidport: The IO port address of the Innovation SSI-2001 (280 by default). +# Possible values: 240, 260, 280, 2a0, 2c0. +# 6581filter: Adjusts the 6581's filtering strength as a percentage from 0 to 100 +# (50 by default). The SID's analog filtering meant that each chip was +# physically unique. +# 8580filter: Adjusts the 8580's filtering strength as a percentage from 0 to 100 +# (50 by default). +# innovation_filter: Filter for the Innovation audio output: +# off: Don't filter the output (default). +# : Custom filter definition; see 'sb_filter' for details. + +sidmodel = none +sidclock = default +sidport = 280 +6581filter = 50 +8580filter = 50 +innovation_filter = off + +[speaker] +# pcspeaker: PC speaker emulation model: +# discrete: Waveform is created using discrete steps (default). +# Works well for games that use RealSound-type effects. +# impulse: Waveform is created using sinc impulses. +# Recommended for square-wave games, like Commander Keen. +# While improving accuracy, it is more CPU intensive. +# none/off: Don't use the PC Speaker. +# Possible values: discrete, impulse, none, off. +# pcspeaker_filter: Filter for the PC Speaker output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. +# tandy: Set the Tandy/PCjr 3 Voice sound emulation: +# auto: Automatically enable Tandy/PCjr sound for the 'tandy' and 'pcjr' +# machine types only (default). +# on: Enable Tandy/PCjr sound with DAC support, when possible. +# Most games also need the machine set to 'tandy' or 'pcjr' to work. +# psg: Only enable the card's three-voice programmable sound generator +# without DAC to avoid conflicts with other cards using DMA 1. +# off: Disable Tandy/PCjr sound. +# Possible values: auto, on, psg, off. +# tandy_fadeout: Fade out the Tandy synth output after the last IO port write: +# off: Don't fade out; residual output will play forever (default). +# on: Wait 0.5s before fading out over a 0.5s period. +# : Custom fade out definition; see 'opl_fadeout' for details. +# tandy_filter: Filter for the Tandy synth output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. +# tandy_dac_filter: Filter for the Tandy DAC output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. +# lpt_dac: Type of DAC plugged into the parallel port: +# disney: Disney Sound Source. +# covox: Covox Speech Thing. +# ston1: Stereo-on-1 DAC, in stereo up to 30 kHz. +# none/off: Don't use a parallel port DAC (default). +# Possible values: none, disney, covox, ston1, off. +# lpt_dac_filter: Filter for the LPT DAC audio device(s): +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. +# ps1audio: Enable IBM PS/1 Audio emulation (disabled by default). +# ps1audio_filter: Filter for the PS/1 Audio synth output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. +# ps1audio_dac_filter: Filter for the PS/1 Audio DAC output: +# on: Filter the output (default). +# off: Don't filter the output. +# : Custom filter definition; see 'sb_filter' for details. + +pcspeaker = discrete +pcspeaker_filter = on +tandy = auto +tandy_fadeout = off +tandy_filter = on +tandy_dac_filter = on +lpt_dac = none +lpt_dac_filter = on +ps1audio = false +ps1audio_filter = on +ps1audio_dac_filter = on + +[reelmagic] +# reelmagic: ReelMagic (aka REALmagic) MPEG playback support: +# off: Disable support (default). +# cardonly: Initialize the card without loading the FMPDRV.EXE driver. +# on: Initialize the card and load the FMPDRV.EXE on startup. +# reelmagic_key: Set the 32-bit magic key used to decode the game's videos: +# auto: Use the built-in routines to determine the key (default). +# common: Use the most commonly found key, which is 0x40044041. +# thehorde: Use The Horde's key, which is 0xC39D7088. +# : Set a custom key in hex format (e.g., 0x12345678). +# reelmagic_fcode: Override the frame rate code used during video playback: +# 0: No override: attempt automatic rate discovery (default). +# 1 to 7: Override the frame rate to one the following (use 1 through 7): +# 1=23.976, 2=24, 3=25, 4=29.97, 5=30, 6=50, or 7=59.94 FPS. + +reelmagic = off +reelmagic_key = auto +reelmagic_fcode = 0 + +[joystick] +# joysticktype: Type of joystick to emulate: +# auto: Detect and use any joystick(s), if possible (default). +# Joystick emulation is disabled if no joystick is found. +# 2axis: Support up to two joysticks, each with 2 axis. +# 4axis: Support the first joystick only, as a 4-axis type. +# 4axis_2: Support the second joystick only, as a 4-axis type. +# fcs: Emulate joystick as an original Thrustmaster FCS. +# ch: Emulate joystick as an original CH Flightstick. +# hidden: Prevent DOS from seeing the joystick(s), but enable them +# for mapping. +# disabled: Fully disable joysticks: won't be polled, mapped, +# or visible in DOS. +# Remember to reset DOSBox's mapperfile if you saved it earlier. +# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, hidden, disabled. +# timed: Enable timed intervals for axis (enabled by default). +# Experiment with this option, if your joystick drifts away. +# autofire: Fire continuously as long as the button is pressed +# (disabled by default). +# swap34: Swap the 3rd and the 4th axis (disabled by default). +# Can be useful for certain joysticks. +# buttonwrap: Enable button wrapping at the number of emulated buttons (disabled by default). +# circularinput: Enable translation of circular input to square output (disabled by default). +# Try enabling this if your left analog stick can only move in a circle. +# deadzone: Percentage of motion to ignore (10 by default). +# 100 turns the stick into a digital one. +# use_joy_calibration_hotkeys: Enable hotkeys to allow realtime calibration of the joystick's X and Y axes +# (disabled by default). Only consider this if in-game calibration fails and +# other settings have been tried. +# - Ctrl/Cmd+Arrow-keys adjust the axis' scalar value: +# - Left and Right diminish or magnify the x-axis scalar, respectively. +# - Down and Up diminish or magnify the y-axis scalar, respectively. +# - Alt+Arrow-keys adjust the axis' offset position: +# - Left and Right shift X-axis offset in the given direction. +# - Down and Up shift the Y-axis offset in the given direction. +# - Reset the X and Y calibration using Ctrl+Delete and Ctrl+Home, +# respectively. +# Each tap will report X or Y calibration values you can set below. When you find +# parameters that work, quit the game, switch this setting back to disabled, and +# populate the reported calibration parameters. +# joy_x_calibration: Apply X-axis calibration parameters from the hotkeys ('auto' by default). +# joy_y_calibration: Apply Y-axis calibration parameters from the hotkeys ('auto' by default). + +joysticktype = auto +timed = true +autofire = false +swap34 = false +buttonwrap = false +circularinput = false +deadzone = 10 +use_joy_calibration_hotkeys = false +joy_x_calibration = auto +joy_y_calibration = auto + +[serial] +# serial1: Set type of device connected to the COM1 port. +# Can be disabled, dummy, mouse, modem, nullmodem, direct ('dummy' by default). +# Additional parameters must be on the same line in the form of +# parameter:value. The optional 'irq' parameter is common for all types. +# - for 'mouse': model (overrides the setting from the [mouse] section) +# - for 'direct': realport (required), rxdelay (optional). +# (e.g., realport:COM1, realport:ttyS0). +# - for 'modem': listenport, sock, bps (all optional). +# - for 'nullmodem': server, rxdelay, txdelay, telnet, usedtr, +# transparent, port, inhsocket, sock (all optional). +# The 'sock' parameter specifies the protocol to use at both sides of the +# connection. Valid values are 0 for TCP, and 1 for ENet reliable UDP. +# Example: serial1=modem listenport:5000 sock:1 +# Possible values: dummy, disabled, mouse, modem, nullmodem, direct. +# serial2: See 'serial1' ('dummy' by default). +# Possible values: dummy, disabled, mouse, modem, nullmodem, direct. +# serial3: See 'serial1' ('disabled' by default). +# Possible values: dummy, disabled, mouse, modem, nullmodem, direct. +# serial4: See 'serial1' ('disabled' by default). +# Possible values: dummy, disabled, mouse, modem, nullmodem, direct. +# phonebookfile: File used to map fake phone numbers to addresses +# ('phonebook.txt' by default). + +serial1 = dummy +serial2 = dummy +serial3 = disabled +serial4 = disabled +phonebookfile = phonebook.txt + +[dos] +# xms: Enable XMS support (enabled by default). +# ems: Enable EMS support (enabled by default). Enabled provides the best +# compatibility but certain applications may run better with other choices, +# or require EMS support to be disabled to work at all. +# Possible values: true, emsboard, emm386, false. +# umb: Enable UMB support (enabled by default). +# ver: Set DOS version (5.0 by default). Specify in major.minor format. +# A single number is treated as the major version. +# Common settings are 3.3, 5.0, 6.22, and 7.1. +# locale_period: Set locale epoch ('modern' by default). Historic settings (if available +# for the given country) try to mimic old DOS behaviour when displaying +# information such as dates, time, or numbers, modern ones follow current day +# practices for user experience more consistent with typical host systems. +# Possible values: historic, modern. +# country: Set DOS country code ('auto' by default). +# This affects country-specific information such as date, time, and decimal +# formats. The list of supported country codes can be displayed using +# '--list-countries' command-line argument. If set to 'auto', the country code +# corresponding to the selected keyboard layout will be used. +# keyboardlayout: Keyboard layout code ('auto' by default), i.e. 'us' for US English layout. +# Other possible values are the same as accepted by FreeDOS. +# expand_shell_variable: Enable expanding environment variables such as %PATH% in the DOS command shell +# (auto by default, enabled if DOS version >= 7.0). +# FreeDOS and MS-DOS 7/8 COMMAND.COM supports this behavior. +# Possible values: auto, true, false. +# shell_history_file: File containing persistent command line history ('shell_history.txt' +# by default). Setting it to empty disables persistent shell history. +# setver_table_file: File containing the list of applications and assigned DOS versions, in a +# tab-separated format, used by SETVER.EXE as a persistent storage +# (empty by default). +# pcjr_memory_config: PCjr memory layout ('expanded' by default). +# expanded: 640 KB total memory with applications residing above 128 KB. +# Compatible with most games. +# standard: 128 KB total memory with applications residing below 96 KB. +# Required for some older games (e.g., Jumpman, Troll). +# Possible values: expanded, standard. + +xms = true +ems = true +umb = true +ver = 5.0 +locale_period = modern +country = auto +keyboardlayout = auto +expand_shell_variable = auto +shell_history_file = shell_history.txt +setver_table_file = +pcjr_memory_config = expanded + +[ipx] +# ipx: Enable IPX over UDP/IP emulation (disabled by default). + +ipx = false + +[ethernet] +# ne2000: Enable emulation of a Novell NE2000 network card on a software-based +# network (using libslirp) with properties as follows (enabled by default): +# - 255.255.255.0: Subnet mask of the 10.0.2.0 virtual LAN. +# - 10.0.2.2: IP of the gateway and DHCP service. +# - 10.0.2.3: IP of the virtual DNS server. +# - 10.0.2.15: First IP provided by DHCP, your IP! +# Note: Inside DOS, setting this up requires an NE2000 packet driver, DHCP +# client, and TCP/IP stack. You might need port-forwarding from the host +# into the DOS guest, and from your router to your host when acting as the +# server for multiplayer games. +# nicbase: Base address of the NE2000 card (300 by default). +# Note: Addresses 220 and 240 might not be available as they're assigned to the +# Sound Blaster and Gravis UltraSound by default. +# Possible values: 200, 220, 240, 260, 280, 2c0, 300, 320, 340, 360. +# nicirq: The interrupt used by the NE2000 card (3 by default). +# Note: IRQs 3 and 5 might not be available as they're assigned to +# 'serial2' and the Gravis UltraSound by default. +# Possible values: 3, 4, 5, 9, 10, 11, 12, 14, 15. +# macaddr: The MAC address of the NE2000 card ('AC:DE:48:88:99:AA' by default). +# tcp_port_forwards: Forward one or more TCP ports from the host into the DOS guest +# (unset by default). +# The format is: +# port1 port2 port3 ... (e.g., 21 80 443) +# This will forward FTP, HTTP, and HTTPS into the DOS guest. +# If the ports are privileged on the host, a mapping can be used +# host:guest ..., (e.g., 8021:21 8080:80) +# This will forward ports 8021 and 8080 to FTP and HTTP in the guest. +# A range of adjacent ports can be abbreviated with a dash: +# start-end ... (e.g., 27910-27960) +# This will forward ports 27910 to 27960 into the DOS guest. +# Mappings and ranges can be combined, too: +# hstart-hend:gstart-gend ..., (e.g, 8040-8080:20-60) +# This forwards ports 8040 to 8080 into 20 to 60 in the guest. +# Notes: +# - If mapped ranges differ, the shorter range is extended to fit. +# - If conflicting host ports are given, only the first one is setup. +# - If conflicting guest ports are given, the latter rule takes precedent. +# udp_port_forwards: Forward one or more UDP ports from the host into the DOS guest +# (unset by default). The format is the same as for TCP port forwards. + +ne2000 = true +nicbase = 300 +nicirq = 3 +macaddr = AC:DE:48:88:99:AA +tcp_port_forwards = +udp_port_forwards = + +[autoexec] +# Lines in this section will be run at startup. +# You can put your MOUNT lines here. + + diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini new file mode 100644 index 0000000..bf9410d --- /dev/null +++ b/.config/foot/foot.ini @@ -0,0 +1,5 @@ +[main] +shell=/bin/sh +font=Terminus:size=14 +[colors] +alpha=0.7 diff --git a/.config/gtk-2.0/gtkfilechooser.ini b/.config/gtk-2.0/gtkfilechooser.ini new file mode 100644 index 0000000..ca9a5ab --- /dev/null +++ b/.config/gtk-2.0/gtkfilechooser.ini @@ -0,0 +1,11 @@ +[Filechooser Settings] +LocationMode=filename-entry +ShowHidden=false +ShowSizeColumn=true +GeometryX=270 +GeometryY=102 +GeometryWidth=819 +GeometryHeight=542 +SortColumn=modified +SortOrder=descending +StartupMode=recent diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..0732144 --- /dev/null +++ b/.config/gtk-3.0/settings.ini @@ -0,0 +1,5 @@ +[Settings] +gtk-icon-theme-name = Breeze +gtk-theme-name = Breeze +gtk-font-name = Terminus +gtk-application-prefer-dark-theme = true diff --git a/.config/htop/htoprc b/.config/htop/htoprc new file mode 100644 index 0000000..f7f48f1 --- /dev/null +++ b/.config/htop/htoprc @@ -0,0 +1,63 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +htop_version=3.3.0 +config_reader_min_version=3 +fields=0 48 17 18 38 39 40 2 46 47 49 1 +hide_kernel_threads=1 +hide_userland_threads=0 +hide_running_in_container=0 +shadow_other_users=0 +show_thread_names=0 +show_program_path=1 +highlight_base_name=0 +highlight_deleted_exe=1 +shadow_distribution_path_prefix=0 +highlight_megabytes=1 +highlight_threads=1 +highlight_changes=0 +highlight_changes_delay_secs=5 +find_comm_in_cmdline=1 +strip_exe_from_cmdline=1 +show_merged_command=0 +header_margin=1 +screen_tabs=1 +detailed_cpu_time=0 +cpu_count_from_one=0 +show_cpu_usage=1 +show_cpu_frequency=0 +show_cpu_temperature=0 +degree_fahrenheit=0 +update_process_names=0 +account_guest_in_cpu_meter=0 +color_scheme=0 +enable_mouse=1 +delay=15 +hide_function_bar=0 +header_layout=two_50_50 +column_meters_0=AllCPUs Memory Swap +column_meter_modes_0=1 1 1 +column_meters_1=Tasks LoadAverage Uptime +column_meter_modes_1=2 2 2 +tree_view=0 +sort_key=46 +tree_sort_key=0 +sort_direction=-1 +tree_sort_direction=1 +tree_view_always_by_pid=0 +all_branches_collapsed=0 +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command +.sort_key=PERCENT_CPU +.tree_sort_key=PID +.tree_view_always_by_pid=0 +.tree_view=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 +screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE Command +.sort_key=IO_RATE +.tree_sort_key=PID +.tree_view_always_by_pid=0 +.tree_view=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 diff --git a/.config/mimeapps.list b/.config/mimeapps.list new file mode 100644 index 0000000..9b593c0 --- /dev/null +++ b/.config/mimeapps.list @@ -0,0 +1,28 @@ +[Default Applications] +x-scheme-handler/mailto=userapp-Thunderbird-5DSCS2.desktop +message/rfc822=userapp-Thunderbird-5DSCS2.desktop +x-scheme-handler/mid=userapp-Thunderbird-5DSCS2.desktop +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +x-scheme-handler/chrome=firefox.desktop +text/html=firefox.desktop +application/x-extension-htm=firefox.desktop +application/x-extension-html=firefox.desktop +application/x-extension-shtml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/x-extension-xhtml=firefox.desktop +application/x-extension-xht=firefox.desktop + +[Added Associations] +x-scheme-handler/mailto=userapp-Thunderbird-5DSCS2.desktop; +x-scheme-handler/mid=userapp-Thunderbird-5DSCS2.desktop; +x-scheme-handler/http=firefox.desktop; +x-scheme-handler/https=firefox.desktop; +x-scheme-handler/chrome=firefox.desktop; +text/html=firefox.desktop; +application/x-extension-htm=firefox.desktop; +application/x-extension-html=firefox.desktop; +application/x-extension-shtml=firefox.desktop; +application/xhtml+xml=firefox.desktop; +application/x-extension-xhtml=firefox.desktop; +application/x-extension-xht=firefox.desktop; diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..fb149d4 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,2 @@ +ytdl-format=bestvideo[height<=480]+bestaudio/best +audio-display=no diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf new file mode 100644 index 0000000..3422437 --- /dev/null +++ b/.config/neofetch/config.conf @@ -0,0 +1,865 @@ +# See this wiki page for more info: +# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info +print_info() { + info title + info underline + + info "OS" distro + info "Host" model + info "Kernel" kernel + info "Uptime" uptime + info "Packages" packages + info "Shell" shell + info "Resolution" resolution + info "DE" de + info "WM" wm + info "WM Theme" wm_theme + info "Theme" theme + info "Icons" icons + info "Terminal" term + info "Terminal Font" term_font + info "CPU" cpu + info "GPU" gpu + info "Memory" memory + + # info "GPU Driver" gpu_driver # Linux/macOS only + # info "CPU Usage" cpu_usage + # info "Disk" disk + # info "Battery" battery + # info "Font" font + # info "Song" song + # [[ "$player" ]] && prin "Music Player" "$player" + # info "Local IP" local_ip + # info "Public IP" public_ip + # info "Users" users + # info "Locale" locale # This only works on glibc systems. + + info cols +} + +# Title + + +# Hide/Show Fully qualified domain name. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --title_fqdn +title_fqdn="off" + + +# Kernel + + +# Shorten the output of the kernel function. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --kernel_shorthand +# Supports: Everything except *BSDs (except PacBSD and PC-BSD) +# +# Example: +# on: '4.8.9-1-ARCH' +# off: 'Linux 4.8.9-1-ARCH' +kernel_shorthand="on" + + +# Distro + + +# Shorten the output of the distro function +# +# Default: 'off' +# Values: 'on', 'tiny', 'off' +# Flag: --distro_shorthand +# Supports: Everything except Windows and Haiku +distro_shorthand="off" + +# Show/Hide OS Architecture. +# Show 'x86_64', 'x86' and etc in 'Distro:' output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --os_arch +# +# Example: +# on: 'Arch Linux x86_64' +# off: 'Arch Linux' +os_arch="on" + + +# Uptime + + +# Shorten the output of the uptime function +# +# Default: 'on' +# Values: 'on', 'tiny', 'off' +# Flag: --uptime_shorthand +# +# Example: +# on: '2 days, 10 hours, 3 mins' +# tiny: '2d 10h 3m' +# off: '2 days, 10 hours, 3 minutes' +uptime_shorthand="on" + + +# Memory + + +# Show memory pecentage in output. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --memory_percent +# +# Example: +# on: '1801MiB / 7881MiB (22%)' +# off: '1801MiB / 7881MiB' +memory_percent="off" + +# Change memory output unit. +# +# Default: 'mib' +# Values: 'kib', 'mib', 'gib' +# Flag: --memory_unit +# +# Example: +# kib '1020928KiB / 7117824KiB' +# mib '1042MiB / 6951MiB' +# gib: ' 0.98GiB / 6.79GiB' +memory_unit="mib" + + +# Packages + + +# Show/Hide Package Manager names. +# +# Default: 'tiny' +# Values: 'on', 'tiny' 'off' +# Flag: --package_managers +# +# Example: +# on: '998 (pacman), 8 (flatpak), 4 (snap)' +# tiny: '908 (pacman, flatpak, snap)' +# off: '908' +package_managers="on" + + +# Shell + + +# Show the path to $SHELL +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --shell_path +# +# Example: +# on: '/bin/bash' +# off: 'bash' +shell_path="off" + +# Show $SHELL version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --shell_version +# +# Example: +# on: 'bash 4.4.5' +# off: 'bash' +shell_version="on" + + +# CPU + + +# CPU speed type +# +# Default: 'bios_limit' +# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. +# Flag: --speed_type +# Supports: Linux with 'cpufreq' +# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. +speed_type="bios_limit" + +# CPU speed shorthand +# +# Default: 'off' +# Values: 'on', 'off'. +# Flag: --speed_shorthand +# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz +# +# Example: +# on: 'i7-6500U (4) @ 3.1GHz' +# off: 'i7-6500U (4) @ 3.100GHz' +speed_shorthand="off" + +# Enable/Disable CPU brand in output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_brand +# +# Example: +# on: 'Intel i7-6500U' +# off: 'i7-6500U (4)' +cpu_brand="on" + +# CPU Speed +# Hide/Show CPU speed. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_speed +# +# Example: +# on: 'Intel i7-6500U (4) @ 3.1GHz' +# off: 'Intel i7-6500U (4)' +cpu_speed="on" + +# CPU Cores +# Display CPU cores in output +# +# Default: 'logical' +# Values: 'logical', 'physical', 'off' +# Flag: --cpu_cores +# Support: 'physical' doesn't work on BSD. +# +# Example: +# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) +# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) +# off: 'Intel i7-6500U @ 3.1GHz' +cpu_cores="logical" + +# CPU Temperature +# Hide/Show CPU temperature. +# Note the temperature is added to the regular CPU function. +# +# Default: 'off' +# Values: 'C', 'F', 'off' +# Flag: --cpu_temp +# Supports: Linux, BSD +# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable +# coretemp kernel module. This only supports newer Intel processors. +# +# Example: +# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' +# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' +# off: 'Intel i7-6500U (4) @ 3.1GHz' +cpu_temp="off" + + +# GPU + + +# Enable/Disable GPU Brand +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gpu_brand +# +# Example: +# on: 'AMD HD 7950' +# off: 'HD 7950' +gpu_brand="on" + +# Which GPU to display +# +# Default: 'all' +# Values: 'all', 'dedicated', 'integrated' +# Flag: --gpu_type +# Supports: Linux +# +# Example: +# all: +# GPU1: AMD HD 7950 +# GPU2: Intel Integrated Graphics +# +# dedicated: +# GPU1: AMD HD 7950 +# +# integrated: +# GPU1: Intel Integrated Graphics +gpu_type="all" + + +# Resolution + + +# Display refresh rate next to each monitor +# Default: 'off' +# Values: 'on', 'off' +# Flag: --refresh_rate +# Supports: Doesn't work on Windows. +# +# Example: +# on: '1920x1080 @ 60Hz' +# off: '1920x1080' +refresh_rate="off" + + +# Gtk Theme / Icons / Font + + +# Shorten output of GTK Theme / Icons / Font +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --gtk_shorthand +# +# Example: +# on: 'Numix, Adwaita' +# off: 'Numix [GTK2], Adwaita [GTK3]' +gtk_shorthand="off" + + +# Enable/Disable gtk2 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk2 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Adwaita [GTK3]' +gtk2="on" + +# Enable/Disable gtk3 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk3 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Numix [GTK2]' +gtk3="on" + + +# IP Address + + +# Website to ping for the public IP +# +# Default: 'http://ident.me' +# Values: 'url' +# Flag: --ip_host +public_ip_host="http://ident.me" + +# Public IP timeout. +# +# Default: '2' +# Values: 'int' +# Flag: --ip_timeout +public_ip_timeout=2 + + +# Desktop Environment + + +# Show Desktop Environment version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --de_version +de_version="on" + + +# Disk + + +# Which disks to display. +# The values can be any /dev/sdXX, mount point or directory. +# NOTE: By default we only show the disk info for '/'. +# +# Default: '/' +# Values: '/', '/dev/sdXX', '/path/to/drive'. +# Flag: --disk_show +# +# Example: +# disk_show=('/' '/dev/sdb1'): +# 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 823G / 893G (93%)' +# +# disk_show=('/'): +# 'Disk (/): 74G / 118G (66%)' +# +disk_show=('/') + +# Disk subtitle. +# What to append to the Disk subtitle. +# +# Default: 'mount' +# Values: 'mount', 'name', 'dir', 'none' +# Flag: --disk_subtitle +# +# Example: +# name: 'Disk (/dev/sda1): 74G / 118G (66%)' +# 'Disk (/dev/sdb2): 74G / 118G (66%)' +# +# mount: 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 74G / 118G (66%)' +# +# dir: 'Disk (/): 74G / 118G (66%)' +# 'Disk (Local Disk): 74G / 118G (66%)' +# 'Disk (Videos): 74G / 118G (66%)' +# +# none: 'Disk: 74G / 118G (66%)' +# 'Disk: 74G / 118G (66%)' +# 'Disk: 74G / 118G (66%)' +disk_subtitle="mount" + +# Disk percent. +# Show/Hide disk percent. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --disk_percent +# +# Example: +# on: 'Disk (/): 74G / 118G (66%)' +# off: 'Disk (/): 74G / 118G' +disk_percent="on" + + +# Song + + +# Manually specify a music player. +# +# Default: 'auto' +# Values: 'auto', 'player-name' +# Flag: --music_player +# +# Available values for 'player-name': +# +# amarok +# audacious +# banshee +# bluemindo +# clementine +# cmus +# deadbeef +# deepin-music +# dragon +# elisa +# exaile +# gnome-music +# gmusicbrowser +# gogglesmm +# guayadeque +# io.elementary.music +# iTunes +# juk +# lollypop +# mocp +# mopidy +# mpd +# muine +# netease-cloud-music +# olivia +# playerctl +# pogo +# pragha +# qmmp +# quodlibet +# rhythmbox +# sayonara +# smplayer +# spotify +# strawberry +# tauonmb +# tomahawk +# vlc +# xmms2d +# xnoise +# yarock +music_player="auto" + +# Format to display song information. +# +# Default: '%artist% - %album% - %title%' +# Values: '%artist%', '%album%', '%title%' +# Flag: --song_format +# +# Example: +# default: 'Song: Jet - Get Born - Sgt Major' +song_format="%artist% - %album% - %title%" + +# Print the Artist, Album and Title on separate lines +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --song_shorthand +# +# Example: +# on: 'Artist: The Fratellis' +# 'Album: Costello Music' +# 'Song: Chelsea Dagger' +# +# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' +song_shorthand="off" + +# 'mpc' arguments (specify a host, password etc). +# +# Default: '' +# Example: mpc_args=(-h HOST -P PASSWORD) +mpc_args=() + + +# Text Colors + + +# Text Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --colors +# +# Each number represents a different part of the text in +# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' +# +# Example: +# colors=(distro) - Text is colored based on Distro colors. +# colors=(4 6 1 8 8 6) - Text is colored in the order above. +colors=(distro) + + +# Text Options + + +# Toggle bold text +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bold +bold="on" + +# Enable/Disable Underline +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --underline +underline_enabled="on" + +# Underline character +# +# Default: '-' +# Values: 'string' +# Flag: --underline_char +underline_char="-" + + +# Info Separator +# Replace the default separator with the specified string. +# +# Default: ':' +# Flag: --separator +# +# Example: +# separator="->": 'Shell-> bash' +# separator=" =": 'WM = dwm' +separator=":" + + +# Color Blocks + + +# Color block range +# The range of colors to print. +# +# Default: '0', '15' +# Values: 'num' +# Flag: --block_range +# +# Example: +# +# Display colors 0-7 in the blocks. (8 colors) +# neofetch --block_range 0 7 +# +# Display colors 0-15 in the blocks. (16 colors) +# neofetch --block_range 0 15 +block_range=(0 15) + +# Toggle color blocks +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --color_blocks +color_blocks="on" + +# Color block width in spaces +# +# Default: '3' +# Values: 'num' +# Flag: --block_width +block_width=3 + +# Color block height in lines +# +# Default: '1' +# Values: 'num' +# Flag: --block_height +block_height=1 + +# Color Alignment +# +# Default: 'auto' +# Values: 'auto', 'num' +# Flag: --col_offset +# +# Number specifies how far from the left side of the terminal (in spaces) to +# begin printing the columns, in case you want to e.g. center them under your +# text. +# Example: +# col_offset="auto" - Default behavior of neofetch +# col_offset=7 - Leave 7 spaces then print the colors +col_offset="auto" + +# Progress Bars + + +# Bar characters +# +# Default: '-', '=' +# Values: 'string', 'string' +# Flag: --bar_char +# +# Example: +# neofetch --bar_char 'elapsed' 'total' +# neofetch --bar_char '-' '=' +bar_char_elapsed="-" +bar_char_total="=" + +# Toggle Bar border +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bar_border +bar_border="on" + +# Progress bar length in spaces +# Number of chars long to make the progress bars. +# +# Default: '15' +# Values: 'num' +# Flag: --bar_length +bar_length=15 + +# Progress bar colors +# When set to distro, uses your distro's logo colors. +# +# Default: 'distro', 'distro' +# Values: 'distro', 'num' +# Flag: --bar_colors +# +# Example: +# neofetch --bar_colors 3 4 +# neofetch --bar_colors distro 5 +bar_color_elapsed="distro" +bar_color_total="distro" + + +# Info display +# Display a bar with the info. +# +# Default: 'off' +# Values: 'bar', 'infobar', 'barinfo', 'off' +# Flags: --cpu_display +# --memory_display +# --battery_display +# --disk_display +# +# Example: +# bar: '[---=======]' +# infobar: 'info [---=======]' +# barinfo: '[---=======] info' +# off: 'info' +cpu_display="off" +memory_display="off" +battery_display="off" +disk_display="off" + + +# Backend Settings + + +# Image backend. +# +# Default: 'ascii' +# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off', +# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty' +# Flag: --backend +#image_backend="ascii" +image_backend="chafa" + +# Image Source +# +# Which image or ascii file to display. +# +# Default: 'auto' +# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' +# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")' +# Flag: --source +# +# NOTE: 'auto' will pick the best image source for whatever image backend is used. +# In ascii mode, distro ascii art will be used and in an image mode, your +# wallpaper will be used. +image_source="wallpaper" + + +# Ascii Options + + +# Ascii distro +# Which distro's ascii art to display. +# +# Default: 'auto' +# Values: 'auto', 'distro_name' +# Flag: --ascii_distro +# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS", +# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs, +# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, +# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD, +# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS, +# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, +# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin, +# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary, +# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, +# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, +# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, +# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, +# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite, +# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, +# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib, +# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner, +# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba, +# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD, +# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint, +# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, +# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, +# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, +# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, +# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, +# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, +# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, +# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin, +# and IRIX have ascii logos +# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants. +# Use '{distro name}_old' to use the old logos. +# NOTE: Ubuntu has flavor variants. +# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME, +# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors. +# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu, +# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android, +# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola, +# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS, +# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian, +# postmarketOS, and Void have a smaller logo variant. +# Use '{distro name}_small' to use the small variants. +ascii_distro="auto" + +# Ascii Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --ascii_colors +# +# Example: +# ascii_colors=(distro) - Ascii is colored based on Distro colors. +# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. +ascii_colors=(distro) + +# Bold ascii logo +# Whether or not to bold the ascii logo. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --ascii_bold +ascii_bold="on" + + +# Image Options + + +# Image loop +# Setting this to on will make neofetch redraw the image constantly until +# Ctrl+C is pressed. This fixes display issues in some terminal emulators. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --loop +image_loop="off" + +# Thumbnail directory +# +# Default: '~/.cache/thumbnails/neofetch' +# Values: 'dir' +thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" + +# Crop mode +# +# Default: 'normal' +# Values: 'normal', 'fit', 'fill' +# Flag: --crop_mode +# +# See this wiki page to learn about the fit and fill options. +# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F +crop_mode="normal" + +# Crop offset +# Note: Only affects 'normal' crop mode. +# +# Default: 'center' +# Values: 'northwest', 'north', 'northeast', 'west', 'center' +# 'east', 'southwest', 'south', 'southeast' +# Flag: --crop_offset +crop_offset="center" + +# Image size +# The image is half the terminal width by default. +# +# Default: 'auto' +# Values: 'auto', '00px', '00%', 'none' +# Flags: --image_size +# --size +image_size="auto" + +# Gap between image and text +# +# Default: '3' +# Values: 'num', '-num' +# Flag: --gap +gap=3 + +# Image offsets +# Only works with the w3m backend. +# +# Default: '0' +# Values: 'px' +# Flags: --xoffset +# --yoffset +yoffset=0 +xoffset=0 + +# Image background color +# Only works with the w3m backend. +# +# Default: '' +# Values: 'color', 'blue' +# Flag: --bg_color +background_color= + + +# Misc Options + +# Stdout mode +# Turn off all colors and disables image backend (ASCII/Image). +# Useful for piping into another command. +# Default: 'off' +# Values: 'on', 'off' +stdout="off" diff --git a/.config/nvim/README.md b/.config/nvim/README.md new file mode 100644 index 0000000..5833100 --- /dev/null +++ b/.config/nvim/README.md @@ -0,0 +1,3 @@ +# Vilyaem's Neovim +This is my NeoVim configuration, I've greatly simplified it from the +NVChad nonsense I was using for a while. diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..a0fce56 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,243 @@ +--[[--------------------------------------------- +- Description - Vilyaem's Neovim Configuration +- Author - Vilyaem +- -------------------------------------------]] + +vim.g.mapleader = " " + + +--Vilyaem's Settings +vim.opt.autoindent = true +vim.opt.backspace = { 'indent', 'eol', 'start' } +vim.opt.encoding = 'utf-8' +vim.opt.expandtab = true +vim.opt.lazyredraw = true +vim.opt.list = true +vim.opt.listchars = { tab = '>.' } +vim.opt.mouse = 'a' +vim.opt.swapfile = false +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.spelllang = 'en_gb' +vim.opt.shiftwidth = 2 +vim.opt.viminfo = '' +vim.opt.history = 1000 + +--Colouring +vim.cmd("highlight Comment guifg=NONE ") +vim.cmd("highlight @comment guifg=NONE ") +vim.api.nvim_set_hl(0,"Normal",{bg = "none"}) +vim.api.nvim_set_hl(0,"NormalFloat",{bg = "none"}) + +--Enable King's English Spell Checking +vim.opt.spelllang = 'en_gb' +vim.opt.spell = true + +-- Easy search and replace +vim.api.nvim_set_keymap('n', 'S', ':%s///g', { noremap = true }) +vim.api.nvim_set_keymap('v', 'S', ':s///g', { noremap = true }) + +-- Easy save +vim.api.nvim_set_keymap('n', 'W', ':w', { noremap = true }) + +-- Function or File heading +function FileHeading() + local line = vim.fn.line(".") + vim.fn.setline(line, "/*********************************************") + vim.fn.append(line, "* Description - ") + vim.fn.append(line + 1, "* Author - Vilyaem") + vim.fn.append(line + 2, "* *******************************************/") +end +vim.api.nvim_set_keymap('i', '', ':lua FileHeading()g;kkA', { noremap = true }) + +-- Section +vim.api.nvim_set_keymap('i', '', 'I/*----------!----------*//!?xi', { noremap = true }) + +--F6 talk to the soybot +vim.api.nvim_set_keymap("n","",":Gen",{noremap = true, silent = true}) + +-- Set the key mappings for the GDB commands +vim.keymap.set("n", "db", "GdbStart", { noremap = true, silent = true }) +vim.keymap.set("n", "dc", "GdbContinue", { noremap = true, silent = true }) +vim.keymap.set("n", "dn", "GdbNext", { noremap = true, silent = true }) +vim.keymap.set("n", "ds", "GdbStep", { noremap = true, silent = true }) +vim.keymap.set("n", "di", "GdbStepInto", { noremap = true, silent = true }) +vim.keymap.set("n", "do", "GdbStepOut", { noremap = true, silent = true }) +vim.keymap.set("n", "db", "GdbBreakpoint", { noremap = true, silent = true }) +vim.keymap.set("n", "dw", "GdbWatch", { noremap = true, silent = true }) + +--Calculate expression plugin +vim.api.nvim_create_user_command("Calculate", "lua require(\"calculator\").calculate()", + { ["range"] = 1, ["nargs"] = 0 }) + +--Setup packer +-- Install packer.nvim for plugin management +local function bootstrap_packer() + local fn = vim.fn + local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' + if fn.empty(fn.glob(install_path)) > 0 then + fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + vim.cmd('packadd packer.nvim') + return true + end + return false +end + +local packer_bootstrap = bootstrap_packer() + +-- Use packer to manage plugins +require('packer').startup(function(use) + use 'wbthomason/packer.nvim' -- Package manager + + use{"L3MON4D3/LuaSnip"} + use{"vzze/calculator.nvim"} + use{"hrsh7th/nvim-cmp"} + use{"hrsh7th/cmp-buffer"} + use{"hrsh7th/cmp-nvim-lsp"} + use{"hrsh7th/cmp-nvim-lua"} + use{"hrsh7th/cmp-path"} + use{"saadparwaiz1/cmp_luasnip"} + use{"stevearc/conform.nvim"} + use{"rafamadriz/friendly-snippets"} + use{"David-Kunz/gen.nvim"} + use{"lewis6991/gitsigns.nvim"} + use{"lukas-reineke/indent-blankline.nvim"} + use{"williamboman/mason.nvim"} + use{"williamboman/mason-lspconfig.nvim"} + use{"windwp/nvim-autopairs"} + use{"sakhnik/nvim-gdb"} + use{"neovim/nvim-lspconfig"} + use{"nvim-tree/nvim-tree.lua"} + use{"nvim-treesitter/nvim-treesitter"} + use{"nvim-lua/plenary.nvim"} + use{"nvim-telescope/telescope.nvim"} + use{"ThePrimeagen/vim-be-good"} + use{"folke/which-key.nvim"} + + if packer_bootstrap then + require('packer').sync() + end +end) + + +-- Setup installed packages +require("nvim-tree").setup() +require("mason").setup() +require("telescope").setup{} + + +-- LSP +vim.api.nvim_create_autocmd('LspAttach', { + desc = 'LSP actions', + callback = function(event) + local opts = {buffer = event.buf} + -- these will be buffer-local keybindings + -- because they only work if you have an active language server + vim.keymap.set('n', 'K', 'lua vim.lsp.buf.hover()', opts) + vim.keymap.set('n', 'gd', 'lua vim.lsp.buf.definition()', opts) + vim.keymap.set('n', 'gD', 'lua vim.lsp.buf.declaration()', opts) + vim.keymap.set('n', 'gi', 'lua vim.lsp.buf.implementation()', opts) + vim.keymap.set('n', 'go', 'lua vim.lsp.buf.type_definition()', opts) + vim.keymap.set('n', 'gr', 'lua vim.lsp.buf.references()', opts) + vim.keymap.set('n', 'gs', 'lua vim.lsp.buf.signature_help()', opts) + vim.keymap.set('n', '', 'lua vim.lsp.buf.rename()', opts) + vim.keymap.set({'n', 'x'}, '', 'lua vim.lsp.buf.format({async = true})', opts) + vim.keymap.set('n', '', 'lua vim.lsp.buf.code_action()', opts) + end +}) + +local lsp_capabilities = require('cmp_nvim_lsp').default_capabilities() + +require('mason').setup({}) +require('mason-lspconfig').setup({ + ensure_installed = {}, + handlers = { + function(clangd) + require('lspconfig').clangd.setup({ + capabilities = lsp_capabilities, + }) + end, + }, +}) + +local cmp = require('cmp') + +cmp.setup({ + sources = { + {name = 'nvim_lsp'}, + }, + mapping = cmp.mapping.preset.insert({ + -- Enter key confirms completion item + [''] = cmp.mapping.confirm({select = false}), + -- Ctrl + space triggers completion menu + [''] = cmp.mapping.complete(), + }), + snippet = { + expand = function(args) + require('luasnip').lsp_expand(args.body) + end, + }, +}) + +-- Set package keybindings + +local map = vim.keymap.set +map("i", "", "^i", { desc = "move beginning of line" }) +map("i", "", "", { desc = "move end of line" }) +map("i", "", "", { desc = "move left" }) +map("i", "", "", { desc = "move right" }) +map("i", "", "", { desc = "move down" }) +map("i", "", "", { desc = "move up" }) +map("n", "", "h", { desc = "switch window left" }) +map("n", "", "l", { desc = "switch window right" }) +map("n", "", "j", { desc = "switch window down" }) +map("n", "", "k", { desc = "switch window up" }) +map("n", "", "noh", { desc = "general clear highlights" }) +map("n", "", "w", { desc = "general save file" }) +map("n", "", "%y+", { desc = "general copy whole file" }) + +-- Key mappings for tab navigation +vim.api.nvim_set_keymap('n', '', ':tabnext', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':tabprevious', { noremap = true, silent = true }) + +-- Key mappings for closing and creating tabs +vim.api.nvim_set_keymap('n', 'x', ':tabclose', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'b', ':tabnew', { noremap = true, silent = true }) + +-- Ensure new files opened from Nvim Tree open in new tabs +vim.api.nvim_create_autocmd("BufEnter", { + pattern = "*", + callback = function() + if vim.fn.winnr('$') == 1 and vim.bo.filetype == 'NvimTree' then + vim.cmd('tabnew') + end + end +}) + +-- Comment +map("n", "/", "gcc", { desc = "toggle comment", remap = true }) +map("v", "/", "gc", { desc = "toggle comment", remap = true }) + +-- nvimtree +map("n", "", "NvimTreeToggle", { desc = "nvimtree toggle window" }) +map("n", "e", "NvimTreeFocus", { desc = "nvimtree focus window" }) + +-- telescope +map("n", "fw", "Telescope live_grep", { desc = "telescope live grep" }) +map("n", "fb", "Telescope buffers", { desc = "telescope find buffers" }) +map("n", "fh", "Telescope help_tags", { desc = "telescope help page" }) +map("n", "ma", "Telescope marks", { desc = "telescope find marks" }) +map("n", "fo", "Telescope oldfiles", { desc = "telescope find oldfiles" }) +map("n", "fz", "Telescope current_buffer_fuzzy_find", { desc = "telescope find in current buffer" }) +map("n", "cm", "Telescope git_commits", { desc = "telescope git commits" }) +map("n", "gt", "Telescope git_status", { desc = "telescope git status" }) +map("n", "pt", "Telescope terms", { desc = "telescope pick hidden term" }) + + +map("n", "ff", "Telescope find_files", { desc = "telescope find files" }) +map( + "n", + "fa", + "Telescope find_files follow=true no_ignore=true hidden=true", + { desc = "telescope find all files" } +) diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua new file mode 100644 index 0000000..61106bd --- /dev/null +++ b/.config/nvim/plugin/packer_compiled.lua @@ -0,0 +1,224 @@ +-- Automatically generated packer.nvim plugin loader code + +if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then + vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') + return +end + +vim.api.nvim_command('packadd packer.nvim') + +local no_errors, error_msg = pcall(function() + +_G._packer = _G._packer or {} +_G._packer.inside_compile = true + +local time +local profile_info +local should_profile = false +if should_profile then + local hrtime = vim.loop.hrtime + profile_info = {} + time = function(chunk, start) + if start then + profile_info[chunk] = hrtime() + else + profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 + end + end +else + time = function(chunk, start) end +end + +local function save_profiles(threshold) + local sorted_times = {} + for chunk_name, time_taken in pairs(profile_info) do + sorted_times[#sorted_times + 1] = {chunk_name, time_taken} + end + table.sort(sorted_times, function(a, b) return a[2] > b[2] end) + local results = {} + for i, elem in ipairs(sorted_times) do + if not threshold or threshold and elem[2] > threshold then + results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' + end + end + if threshold then + table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') + end + + _G._packer.profile_output = results +end + +time([[Luarocks path setup]], true) +local package_path_str = "/home/vilyaem/.cache/nvim/packer_hererocks/2.1.1734355927/share/lua/5.1/?.lua;/home/vilyaem/.cache/nvim/packer_hererocks/2.1.1734355927/share/lua/5.1/?/init.lua;/home/vilyaem/.cache/nvim/packer_hererocks/2.1.1734355927/lib/luarocks/rocks-5.1/?.lua;/home/vilyaem/.cache/nvim/packer_hererocks/2.1.1734355927/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/vilyaem/.cache/nvim/packer_hererocks/2.1.1734355927/lib/lua/5.1/?.so" +if not string.find(package.path, package_path_str, 1, true) then + package.path = package.path .. ';' .. package_path_str +end + +if not string.find(package.cpath, install_cpath_pattern, 1, true) then + package.cpath = package.cpath .. ';' .. install_cpath_pattern +end + +time([[Luarocks path setup]], false) +time([[try_loadstring definition]], true) +local function try_loadstring(s, component, name) + local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) + if not success then + vim.schedule(function() + vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) + end) + end + return result +end + +time([[try_loadstring definition]], false) +time([[Defining packer_plugins]], true) +_G.packer_plugins = { + LuaSnip = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/LuaSnip", + url = "https://github.com/L3MON4D3/LuaSnip" + }, + ["calculator.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/calculator.nvim", + url = "https://github.com/vzze/calculator.nvim" + }, + ["cmp-buffer"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/cmp-buffer", + url = "https://github.com/hrsh7th/cmp-buffer" + }, + ["cmp-nvim-lsp"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", + url = "https://github.com/hrsh7th/cmp-nvim-lsp" + }, + ["cmp-nvim-lua"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", + url = "https://github.com/hrsh7th/cmp-nvim-lua" + }, + ["cmp-path"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/cmp-path", + url = "https://github.com/hrsh7th/cmp-path" + }, + cmp_luasnip = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/cmp_luasnip", + url = "https://github.com/saadparwaiz1/cmp_luasnip" + }, + ["conform.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/conform.nvim", + url = "https://github.com/stevearc/conform.nvim" + }, + ["friendly-snippets"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/friendly-snippets", + url = "https://github.com/rafamadriz/friendly-snippets" + }, + ["gen.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/gen.nvim", + url = "https://github.com/David-Kunz/gen.nvim" + }, + ["gitsigns.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, + ["indent-blankline.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", + url = "https://github.com/lukas-reineke/indent-blankline.nvim" + }, + ["mason-lspconfig.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", + url = "https://github.com/williamboman/mason-lspconfig.nvim" + }, + ["mason.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/mason.nvim", + url = "https://github.com/williamboman/mason.nvim" + }, + ["nvim-autopairs"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/nvim-autopairs", + url = "https://github.com/windwp/nvim-autopairs" + }, + ["nvim-cmp"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/nvim-cmp", + url = "https://github.com/hrsh7th/nvim-cmp" + }, + ["nvim-gdb"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/nvim-gdb", + url = "https://github.com/sakhnik/nvim-gdb" + }, + ["nvim-lspconfig"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", + url = "https://github.com/neovim/nvim-lspconfig" + }, + ["nvim-tree.lua"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", + url = "https://github.com/nvim-tree/nvim-tree.lua" + }, + ["nvim-treesitter"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, + ["packer.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/packer.nvim", + url = "https://github.com/wbthomason/packer.nvim" + }, + ["plenary.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/plenary.nvim", + url = "https://github.com/nvim-lua/plenary.nvim" + }, + ["telescope.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/telescope.nvim", + url = "https://github.com/nvim-telescope/telescope.nvim" + }, + ui = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/ui", + url = "https://github.com/NvChad/ui" + }, + ["vim-be-good"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/vim-be-good", + url = "https://github.com/ThePrimeagen/vim-be-good" + }, + ["which-key.nvim"] = { + loaded = true, + path = "/home/vilyaem/.local/share/nvim/site/pack/packer/start/which-key.nvim", + url = "https://github.com/folke/which-key.nvim" + } +} + +time([[Defining packer_plugins]], false) + +_G._packer.inside_compile = false +if _G._packer.needs_bufread == true then + vim.cmd("doautocmd BufRead") +end +_G._packer.needs_bufread = false + +if should_profile then save_profiles() end + +end) + +if not no_errors then + error_msg = error_msg:gsub('"', '\\"') + vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') +end diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml new file mode 100644 index 0000000..18c093d --- /dev/null +++ b/.config/qutebrowser/autoconfig.yml @@ -0,0 +1,47 @@ +# If a config.py file exists, this file is ignored unless it's explicitly loaded +# via config.load_autoconfig(). For more information, see: +# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + bindings.key_mappings: + global: + : + : + : + : + : + : + : + : + : + colors.webpage.darkmode.enabled: + global: true + colors.webpage.darkmode.policy.page: + global: smart + colors.webpage.preferred_color_scheme: + global: dark + content.notifications.enabled: + https://tmailor.com: false + https://www.rexoweb.com: false + content.proxy: + global: socks://localhost:9050/ + downloads.location.directory: + global: /home/vilyaem/down/ + fonts.default_family: + global: Terminus + fonts.web.family.sans_serif: + global: Terminus + fonts.web.family.serif: + global: Terminus + hints.chars: + global: aoeuidhtns + url.default_page: + global: file:///home/vilyaem/x/web/homepage/index.html + url.searchengines: + global: + DEFAULT: https://search.cherub.im/?q={} + url.start_pages: + global: file:///home/vilyaem/x/web/homepage/index.html diff --git a/.config/qutebrowser/qsettings/QtProject.conf b/.config/qutebrowser/qsettings/QtProject.conf new file mode 100644 index 0000000..18a3aad --- /dev/null +++ b/.config/qutebrowser/qsettings/QtProject.conf @@ -0,0 +1,8 @@ +[FileDialog] +history=file:///home/vilyaem, file:///home/vilyaem/prog/basicrpg3 +lastVisited=file:///home/vilyaem/prog/basicrpg3 +qtVersion=6.7.2 +shortcuts=file:, file:///home/vilyaem +sidebarWidth=98 +treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xec\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0n\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff\0\0\0\0) +viewMode=Detail diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks new file mode 100644 index 0000000..e69de29 diff --git a/.config/readline/.inputrc b/.config/readline/.inputrc new file mode 100644 index 0000000..1a3a6bc --- /dev/null +++ b/.config/readline/.inputrc @@ -0,0 +1,2 @@ +set editing-mode vi +"\C-l": clear-screen diff --git a/.config/screenkey.json b/.config/screenkey.json new file mode 100644 index 0000000..089a473 --- /dev/null +++ b/.config/screenkey.json @@ -0,0 +1,32 @@ +{ + "no_systray": false, + "timeout": 0.0, + "recent_thr": 0.1, + "compr_cnt": 3, + "ignore": [], + "position": "fixed", + "persist": true, + "window": null, + "font_desc": "Terminus 10", + "font_size": "medium", + "font_color": "#9999c1c1f1f1", + "bg_color": "black", + "opacity": 0.7, + "key_mode": "composed", + "bak_mode": "baked", + "mods_mode": "normal", + "mods_only": false, + "multiline": false, + "vis_shift": false, + "vis_space": true, + "geometry": [ + 908, + 22, + 370, + 42 + ], + "screen": 0, + "start_disabled": false, + "mouse": true, + "button_hide_duration": 1 +} \ No newline at end of file diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf new file mode 100644 index 0000000..b218420 --- /dev/null +++ b/.config/spectrwm/spectrwm.conf @@ -0,0 +1,2 @@ +program[term]=st +program[lock]=physlock diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..3dd64e7 --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,236 @@ +# Default config for sway +# +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. +exec swaymsg "exec nhkd &" +exec swaymsg "exec xbanish &" + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l +# Your preferred terminal emulator +set $term st +# Your preferred application launcher +# Note: pass the final command to swaymsg so that the resulting window can be opened +# on the original workspace that the command was run on. +set $menu dmenu_path | wmenu | xargs swaymsg exec -- + +### Output configuration +# +# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) +output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill +# +# Example configuration: +# +output LVDS-1 resolution 1280x720 position 1280,0 +# +# You can get the names of your outputs by running: swaymsg -t get_outputs + +### Idle configuration +# +# Example configuration: +# +# exec swayidle -w \ +# timeout 300 'swaylock -f -c 000000' \ +# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ +# before-sleep 'swaylock -f -c 000000' +# +# This will lock your screen after 300 seconds of inactivity, then turn off +# your displays after another 300 seconds, and turn your screens back on when +# resumed. It will also lock your screen before your computer goes to sleep. + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + +set $mod Mod1 + +### Key bindings +# +# Basics: +# +# Start a terminal +bindsym $mod+Shift+Return exec $term + +# Kill focused window +bindsym $mod+Shift+c kill + +# Start your launcher +bindsym $mod+d exec $menu + +# Drag floating windows by holding down $mod and left mouse button. +# Resize them with right mouse button + $mod. +# Despite the name, also works for non-floating windows. +# Change normal to inverse to use left mouse button for resizing and right +# mouse button for dragging. +floating_modifier $mod normal + +# Reload the configuration file +bindsym $mod+Shift+r reload + +# Exit sway (logs you out of your Wayland session) +bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' +# +# Moving around: +# +# Move your focus around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +# Or use $mod+[up|down|left|right] +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move the focused window with the same, but add Shift +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right +# Ditto, with arrow keys +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right +# +# Workspaces: +# +# Switch to workspace +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number 1 +bindsym $mod+Shift+2 move container to workspace number 2 +bindsym $mod+Shift+3 move container to workspace number 3 +bindsym $mod+Shift+4 move container to workspace number 4 +bindsym $mod+Shift+5 move container to workspace number 5 +bindsym $mod+Shift+6 move container to workspace number 6 +bindsym $mod+Shift+7 move container to workspace number 7 +bindsym $mod+Shift+8 move container to workspace number 8 +bindsym $mod+Shift+9 move container to workspace number 9 +bindsym $mod+Shift+0 move container to workspace number 10 +# Note: workspaces can have any name you want, not just numbers. +# We just use 1-10 as the default. +# +# Layout stuff: +# +# You can "split" the current object of your focus with +# $mod+b or $mod+v, for horizontal and vertical splits +# respectively. +bindsym $mod+b splith +bindsym $mod+v splitv + +# Switch the current container between different layout styles +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# Make the current focus fullscreen +bindsym $mod+f fullscreen + +# Toggle the current focus between tiling and floating mode +bindsym $mod+Shift+space floating toggle + +# Swap focus between the tiling area and the floating area +bindsym $mod+space focus mode_toggle + +# Move focus to the parent container +bindsym $mod+a focus parent + +input * { + + xkb_layout "us" + xkb_variant "dvorak" + +# Capslock key should work as escape key +# See /usr/share/X11/xkb/rules/xorg.lst for options + xkb_options caps:escape + + repeat_delay 250 + repeat_rate 70 +} + +# +# Scratchpad: +# +# Sway has a "scratchpad", which is a bag of holding for windows. +# You can send windows there and get them back later. + +# Move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { +# left will shrink the containers width +# right will grow the containers width +# up will shrink the containers height +# down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + +# Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + +# Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + +# When the status_command prints a new line to stdout, swaybar updates. +# The default just shows the current date and time. + status_command while date +'%Y-%m-%d %X'; do sleep 1; done + + colors { + statusline #ffffff + #background #323232 + background #000000 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + +include /etc/sway/config.d/* diff --git a/.config/tmuxinator/work.yml b/.config/tmuxinator/work.yml new file mode 100644 index 0000000..b79d4ea --- /dev/null +++ b/.config/tmuxinator/work.yml @@ -0,0 +1,33 @@ +# /home/vilyaem/.config/tmuxinator/work.yml + +name: work +root: ~/ +startup_window: sigma +startup_pane: 1 +windows: + - sigma: + layout: main-horizontal + panes: + - pmake + - twinkle-console + - watch -n 1200 remind ~/.local/share/pmakeremind + - monitorworld: + layout: even-horizontal + panes: + #For Busybox... + #- watch -n 1200 curl "5.9.243.187/?1Qn" + #- watch -n 1200 curl "5.9.243.188/XMR" + - watch --color -n 1200 curl "wttr.in/?1Qn" + - watch --color -n 1200 curl "rate.sx/XMR" + - monitorserver: + layout: even-horizontal + panes: + - watch -n 1200 ssh root@novgorod 'tail /var/log/nginx/error.log' + - watch -n 1200 ssh root@novgorod 'tail /var/log/nginx/access.log' + #- ssh root@novgorod 'top' + - soybot: + layout: even-horizontal + panes: + - nvim -c ':Gen' + - workshop: + layout: horizontal diff --git a/.config/vifm/colors/Default.vifm b/.config/vifm/colors/Default.vifm new file mode 100644 index 0000000..898d956 --- /dev/null +++ b/.config/vifm/colors/Default.vifm @@ -0,0 +1,100 @@ +" You can edit this file by hand. +" The " character at the beginning of a line comments out the line. +" Blank lines are ignored. + +" The Default color scheme is used for any directory that does not have +" a specified scheme and for parts of user interface like menus. A +" color scheme set for a base directory will also +" be used for the sub directories. + +" The standard ncurses colors are: +" Default = -1 = None, can be used for transparency or default color +" Black = 0 +" Red = 1 +" Green = 2 +" Yellow = 3 +" Blue = 4 +" Magenta = 5 +" Cyan = 6 +" White = 7 + +" Light versions of colors are also available (they set bold +" attribute in terminals with less than 16 colors): +" LightBlack +" LightRed +" LightGreen +" LightYellow +" LightBlue +" LightMagenta +" LightCyan +" LightWhite + +" Available attributes (some of them can be combined): +" bold +" underline +" reverse or inverse +" standout +" italic (on unsupported systems becomes reverse) +" combine +" none + +" Vifm supports 256 colors you can use color numbers 0-255 +" (requires properly set up terminal: set your TERM environment variable +" (directly or using resources) to some color terminal name (e.g. +" xterm-256color) from /usr/lib/terminfo/; you can check current number +" of colors in your terminal with tput colors command) + +" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color + +highlight clear + +highlight Win cterm=none ctermfg=white ctermbg=black +highlight Directory cterm=bold ctermfg=cyan ctermbg=default +highlight Link cterm=bold ctermfg=yellow ctermbg=default +highlight BrokenLink cterm=bold ctermfg=red ctermbg=default +highlight HardLink cterm=none ctermfg=yellow ctermbg=default +highlight Socket cterm=bold ctermfg=magenta ctermbg=default +highlight Device cterm=bold ctermfg=red ctermbg=default +highlight Fifo cterm=bold ctermfg=cyan ctermbg=default +highlight Executable cterm=bold ctermfg=green ctermbg=default +highlight Selected cterm=bold ctermfg=magenta ctermbg=default +highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default +highlight TopLine cterm=none ctermfg=black ctermbg=white +highlight TopLineSel cterm=bold ctermfg=black ctermbg=default +highlight StatusLine cterm=bold ctermfg=black ctermbg=white +highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black +highlight CmdLine cterm=none ctermfg=white ctermbg=black +highlight ErrorMsg cterm=none ctermfg=red ctermbg=black +highlight Border cterm=none ctermfg=black ctermbg=white +highlight OtherLine ctermfg=default ctermbg=default +highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white +highlight SuggestBox cterm=bold ctermfg=default ctermbg=default +highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red +highlight CmpUnmatched cterm=bold ctermfg=white ctermbg=green +highlight CmpBlank ctermfg=default ctermbg=default +highlight AuxWin ctermfg=default ctermbg=default +highlight TabLine cterm=none ctermfg=white ctermbg=black +highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default +highlight User1 ctermfg=default ctermbg=default +highlight User2 ctermfg=default ctermbg=default +highlight User3 ctermfg=default ctermbg=default +highlight User4 ctermfg=default ctermbg=default +highlight User5 ctermfg=default ctermbg=default +highlight User6 ctermfg=default ctermbg=default +highlight User7 ctermfg=default ctermbg=default +highlight User8 ctermfg=default ctermbg=default +highlight User9 ctermfg=default ctermbg=default +highlight User10 ctermfg=default ctermbg=default +highlight User11 ctermfg=default ctermbg=default +highlight User12 ctermfg=default ctermbg=default +highlight User13 ctermfg=default ctermbg=default +highlight User14 ctermfg=default ctermbg=default +highlight User15 ctermfg=default ctermbg=default +highlight User16 ctermfg=default ctermbg=default +highlight User17 ctermfg=default ctermbg=default +highlight User18 ctermfg=default ctermbg=default +highlight User19 ctermfg=default ctermbg=default +highlight User20 ctermfg=default ctermbg=default +highlight OtherWin ctermfg=default ctermbg=default +highlight LineNr ctermfg=default ctermbg=default +highlight OddLine ctermfg=default ctermbg=default diff --git a/.config/vifm/scripts/README b/.config/vifm/scripts/README new file mode 100644 index 0000000..7694952 --- /dev/null +++ b/.config/vifm/scripts/README @@ -0,0 +1,6 @@ +This directory is dedicated for user-supplied scripts/executables. +vifm modifies its PATH environment variable to let user run those +scripts without specifying full path. All subdirectories are added +as well. File in a subdirectory overrules file with the same name +in parent directories. Restart might be needed to recognize files +in newly created or renamed subdirectories. \ No newline at end of file diff --git a/.config/vifm/scripts/supervifm b/.config/vifm/scripts/supervifm new file mode 100755 index 0000000..41d0c54 --- /dev/null +++ b/.config/vifm/scripts/supervifm @@ -0,0 +1,30 @@ +#!/bin/sh +width="$1" +file="$2" +i=0 +clear + + +printf "\n\n\n" +printf " " +while [ "$i" -lt $( expr "$width" / 2) ] +do + printf " " + i=$( expr "$i" + 1 ) +done + +if [ -z $DISPLAY ] ; then + chafa --work=1 -s 40x40 --animate=off -c 256 --symbols ascii "$file" + sleep 10 + exit +fi + + +if [ -z "$TERM256" ] ; then + #chafa --work=1 --animate=off -c full -f sixels --bg blue "$file" + chafa --work=1 --animate=off -c 256 -f sixels --bg blue "$file" +else + #chafa --work=1 -s 32x32 --animate=off -c 256 -f symbols --bg blue "$file" + chafa --work=1 --animate=off -c 256 -f symbols --bg blue "$file" +fi +pkill chafa #make sure it's dead and not hogging resources diff --git a/.config/vifm/vifm-help.txt b/.config/vifm/vifm-help.txt new file mode 100644 index 0000000..92a18a2 --- /dev/null +++ b/.config/vifm/vifm-help.txt @@ -0,0 +1,7011 @@ +VIFM(1) General Commands Manual VIFM(1) + +NAME + vifm - vi file manager + +SYNOPSIS + vifm [OPTION]... + vifm [OPTION]... path + vifm [OPTION]... path path + +DESCRIPTION + Vifm is an ncurses based file manager with vi like keybindings. If you + use vi, vifm gives you complete keyboard control over your files + without having to learn a new set of commands. + +OPTIONS + vifm starts in the current directory unless it is given a different + directory on the command line or 'vifminfo' option includes "savedirs" + (in which case last visited directories are used as defaults). + + - Read list of files from standard input stream and compose custom + view out of them (see "Custom views" section). Current working + directory is used as a base for relative paths. + + Starts Vifm in the specified path. + + + Starts Vifm in the specified paths. + + Specifying two directories triggers split view even when vifm was in + single-view mode on finishing previous run. To suppress this behaviour + :only command can be put in the vifmrc file. + + When only one path argument is found on command-line, the left/top pane + is automatically set as the current view. + + Paths to files are also allowed in case you want vifm to start with + some archive opened. + + --select + Open parent directory of the given path and select specified + file in it. + + -f Makes vifm instead of opening files write selection to + $VIFM/vimfiles and quit. + + --choose-files |- + Sets output file to write selection into on exit instead of + opening files. "-" means standard output. Use empty value to + disable it. + + --choose-dir |- + Sets output file to write last visited directory into on exit. + "-" means standard output. Use empty value to disable it. + + --delimiter + Sets separator for list of file paths written out by vifm. + Empty value means null character. Default is new line + character. + + --on-choose + Sets command to be executed on selected files instead of opening + them. The command may use any of macros described in "Command + macros" section below. The command is executed once for whole + selection. + + --plugins-dir + Additional plugins directory (can appear multiple times). The + last one added has the highest priority. + + --logging[=] + Log some operational details to $XDG_DATA_HOME/vifm/log or + $VIFM/log. If the optional startup log path is specified and + permissions allow to open it for writing, then logging of early + initialization (before configuration directories are determined) + is put there. + + --server-list + List available server names and exit. + + --server-name + Name of target or this instance (sequential numbers are appended + on name conflict). + + --remote + Sends the rest of the command line to another instance of vifm, + --server-name is treated just like any other argument and should + precede --remote on the command line. When there is no server, + quits silently. There is no limit on how many arguments can be + processed. One can combine --remote with -c or + + to execute commands in already running instance of + vifm. See also "Client-Server" section below. + + --remote-expr + passes expression to vifm server and prints result. See also + "Client-Server" section below. + + -c or + + Run command-line mode on startup. Commands in such + arguments are executed in the order they appear in command line. + Commands with spaces or special symbols must be enclosed in + double or single quotes or all special symbols should be escaped + (the exact syntax strongly depends on shell). "+" argument is + equivalent to "$" and thus picks last item of of the view. + + --help, -h + Show a brief command summary and exit vifm. + + --version, -v + Show version information and quit. + + --no-configs + Skip reading vifmrc and vifminfo. + + + See "Startup" section below for the explanations on $VIFM. + +General keys + Ctrl-C or Escape + cancel most operations (see "Cancellation" section below), clear + all selected files. + + Ctrl-L clear and redraw the screen. Can also reload file list in + appropriate modes (like normal and visual). + +Basic Movement + The basic vi key bindings are used to move through the files and pop-up + windows. + + k, gk, or Ctrl-P + move cursor up one line. + + j, gj or Ctrl-N + move cursor down one line. + + h when 'lsview' is off move up one directory (moves to parent + directory node in tree view), otherwise move left one file. + + l when 'lsview' is off move into a directory or launch a file, + otherwise move right one file. See "Selection" section below. + + gg move to the first line of the file list. + + G move to the last line in the file list. + + gh go up one directory regardless of view representation (regular, + ls-like). Also can be used to leave custom views including tree + view. + + gl or Enter + enter directory or launch a file. See "Selection" section + below. + + H move to the first file in the window. + + M move to the file in the middle of the window. + + L move to the last file in the window. + + Ctrl-F or Page Down + move forward one page. + + Ctrl-B or Page Up + move back one page. + + Ctrl-D jump back one half page. + + Ctrl-U jump forward one half page. + + n% move to the file that is n percent from the top of the list (for + example 25%). + + 0 or ^ move cursor to the first column. See 'lsview' option + description. + + $ move cursor to the last column. See 'lsview' option + description. + + Space switch file lists. + + gt switch to the next tab (wrapping around). + + {n}gt switch to the tab number {n} (wrapping around). + + gT switch to the previous tab (wrapping around). + + {n}gT switch to {n}-th previous tab. + +Movement with Count + Most movement commands also accept a count, 12j would move down 12 + files. + + [count]% + move to percent of the file list. + + [count]j + move down [count] files. + + [count]k + move up [count] files. + + [count]G or [count]gg + move to list position [count]. + + [count]h + go up [count] directories. + +Scrolling panes + zt redraw pane with file in top of list. + + zz redraw pane with file in center of list. + + zb redraw pane with file in bottom of list. + + Ctrl-E scroll pane one line down or column right (in transposed ls-like + view). + + Ctrl-Y scroll pane one line up or column left (in transposed ls-like + view). + +Pane manipulation + Second character can be entered with or without Control key. + + Ctrl-W H + move the pane to the far left. + + Ctrl-W J + move the pane to the very bottom. + + Ctrl-W K + move the pane to the very top. + + Ctrl-W L + move the pane to the far right. + + + Ctrl-W h + switch to the left pane. + + Ctrl-W j + switch to the pane below. + + Ctrl-W k + switch to the pane above. + + Ctrl-W l + switch to the right pane. + + + Ctrl-W b + switch to bottom-right window. + + Ctrl-W t + switch to top-left window. + + + Ctrl-W p + switch to previous window. + + Ctrl-W w + switch to other pane. + + + Ctrl-W o + leave only one pane. + + Ctrl-W s + split window horizontally. + + Ctrl-W v + split window vertically. + + + Ctrl-W x + exchange panes. + + Ctrl-W z + quit preview pane or view modes. + + + Ctrl-W - + decrease size of the view by count. + + Ctrl-W + + increase size of the view by count. + + Ctrl-W < + decrease size of the view by count. + + Ctrl-W > + increase size of the view by count. + + + Ctrl-W | + set current view size to count. + + Ctrl-W _ + set current view size to count. + + Ctrl-W = + make size of two views equal. + + For Ctrl-W +, Ctrl-W -, Ctrl-W <, Ctrl-W >, Ctrl-W | and Ctrl-W _ + commands count can be given before and/or after Ctrl-W. The resulting + count is a multiplication of those two. So "2 Ctrl-W 2 -" decreases + window size by 4 lines or columns. + + Ctrl-W | and Ctrl-W _ maximise current view by default. + +Marks + Marks are set the same way as they are in vi. + + You can use these characters for marks [a-z][A-Z][0-9]. + + m[a-z][A-Z][0-9] + set a mark for the file at the current cursor position. + + '[a-z][A-Z][0-9] + navigate to the file set for the mark. + + + There are also several special marks that can't be set manually: + + - ' (single quote) - previously visited directory of the view, thus + hitting '' allows switching between two last locations + + - < - the first file of the last visually selected block + + - > - the last file of the last visually selected block + +Searching + /regular expression pattern + search for files matching regular expression in forward + direction and advance cursor to next match. + + / perform forward search with top item of search pattern history. + + ?regular expression pattern + search for files matching regular expression in backward + direction and advance cursor to previous match. + + ? perform backward search with top item of search pattern history. + + Trailing slash for directories is taken into account, so /\/ searches + for directories and symbolic links to directories. At the moment // + works too, but this can change in the future, so consider escaping the + slash if not typing pattern by hand. + + Matches are automatically selected if 'hlsearch' is set. Enabling + 'incsearch' makes search interactive. 'ignorecase' and 'smartcase' + options affect case sensitivity of search queries as well as local + filter and other things detailed in the description of 'caseoptions'. + + + [count]n + go to the next file matching last search pattern. Takes last + search direction into account. + + [count]N + go to the previous file matching last search pattern. Takes + last search direction into account. + + If 'hlsearch' option is set, hitting n/N to perform search and go to + the first matching item resets current selection in normal mode. It is + not the case if search was already performed on files in the directory, + thus selection is not reset after clearing selection with escape key + and hitting n/N key again. + + See also "Regular expressions" section. + + + [count]f[character] + search forward for file with [character] as first character in + name. Search wraps around the end of the list. + + [count]F[character] + search backward for file with [character] as first character in + name. Search wraps around the end of the list. + + [count]; + find the next match of f or F. + + [count], + find the previous match of f or F. + + Note: f, F, ; and , wrap around list beginning and end when they are + used alone and they don't wrap when they are used as selectors. + +File Filters + There are three basic file filters: + + - dot files filter (does not affect "." and ".." special directories, + whose appearance is controlled by the 'dotdirs' option), see + 'dotfiles' option; + + - permanent filter; + + - local filter (see description of the "=" normal mode command). + + Permanent filter essentially allows defining a group of files names + which are not desirable to be seen by default, like temporary or backup + files, which might be created alongside normal ones. Just like you + don't usually need to see hidden dot files (files starting with a dot). + Local filter on the other hand is for temporary immediate filtering of + file list at hand, to get rid of uninterested files in the view or to + make it possible to use % range in a :command. + + For the purposes of more deterministic editing permanent filter is + split into two parts: + + - one edited explicitly via :filter command; + + - another one which is edited implicitly via zf shortcut. + + Files are tested against both parts and a match counts if at least one + of the parts matched. + + + Each file list has its own copy of each filter. + + Filtered files are not checked in / search or :commands. + + Files and directories are filtered separately. This is done by + appending a slash to a directory name before testing whether it matches + the filter. Examples: + + + " filter directories which names end with '.files' + :filter /^.*\.files\/$/ + + " filter files which names end with '.d' + :filter {*.d} + + " filter files and directories which names end with '.o' + :filter /^.*\.o\/?$/ + + See also "Regular expressions" and "Patterns" sections. + + The basic Vim folding key bindings are used for managing filters. + + + za toggle visibility of dot files. + + zo show dot files. + + zm hide dot files. + + zf add selected files to permanent filter. + + zO reset permanent filter. + + zR save and reset all filters. + + zr clear local filter. + + zM restore all filters (undoes last zR). + + zd exclude selection or current file from a custom view. Does + nothing for regular view. For tree view excluding directory + excludes that sub-tree. For compare views zd hides group of + adjacent identical files, count can be specified as 1 to exclude + just single file or selected items instead. Files excluded this + way are not counted as filtered out and can't be returned unless + view is reloaded. + + =regular expression pattern + filter out files that don't match regular expression. Whether + view is updated as regular expression is changed depends on the + value of the 'incsearch' option. This kind of filter is + automatically reset when directory is changed. + +Tree-related Keys + While some of the keys make sense outside of tree-view, they are most + useful in trees. + + [z go to first sibling of current entry. + + ]z go to last sibling of current entry. + + zj go to next directory sibling of current entry or do nothing. + + zk go to previous directory sibling of current entry or do nothing. + + zx toggle fold under the cursor or parent entry of the current file + if cursor is not on a directory. + +Other Normal Mode Keys + [count]: + enter command line mode. [count] generates range. + + q: open external editor to prompt for command-line command. See + "Command line editing" section for details. + + q/ open external editor to prompt for search pattern to be searched + in forward direction. See "Command line editing" section for + details. + + q? open external editor to prompt for search pattern to be searched + in backward direction. See "Command line editing" section for + details. + + q= open external editor to prompt for filter pattern. See "Command + line editing" section for details. Unlike other q{x} commands + this one doesn't work in Visual mode. + + [count]!! and [count]! + enter command line mode with entered ! command. [count] + modifies range. + + Ctrl-O go backwards through directory history of current view. + Nonexistent directories are automatically skipped. + + Ctrl-I if 'cpoptions' contains "t" flag, and switch active + pane just like does, otherwise it goes forward through + directory history of current view. Nonexistent directories are + automatically skipped. + + Ctrl-G show a dialog with detailed information about current file. See + "Menus and dialogs" section for controls. + + Shift-Tab + enter view mode (works only after activating view pane with + :view command). + + ga calculate directory size. Uses cached directory sizes when + possible for better performance. As a special case calculating + size of ".." entry results in calculation of size of current + directory. + + gA like ga, but force update. Ignores old values of directory + sizes. + + If file under cursor is selected, each selected item is processed, + otherwise only current file is updated. + + gf find link destination (like l with 'followlinks' off, but also + finds directories). On Windows additionally follows .lnk-files. + + gF Same as gf, but resolves final path of the chain of symbolic + links. + + gr only for MS-Windows + same as l key, but tries to run program with administrative + privileges. + + av go into visual mode for updating current selection, any existing + selection is preserved. + + gv go into visual mode restoring last selection. + + [reg]gs + if register is present, then all files listed in that register + that are visible in current view are selected. + + When no register is specified, restore the last selection saved + for this view (similar to what gv does for visual mode + selection). When you leave a directory, its saved selection is + remembered for that path and visiting the directory again + restores it. Selection for up to 10 distinct file-system + locations are remembered. + + gu + make names of selected files lowercase. + + [count]guu and [count]gugu + make names of [count] files starting from the current one + lowercase. Without [count] only current file is affected. + + gU + make names of selected files uppercase. + + [count]gUU and [count]gUgU + make names of [count] files starting from the current one + uppercase. Without [count] only current file is affected. + + e explore file in the current pane. + + i handle file (even if it's an executable and 'runexec' option is + set). + + cw change word is used to rename a file or files. If multiple + files are selected, behaves as :rename command run without + arguments. + + cW change WORD is used to change only name of file (without + extension). + + cl change link target. If multiple files are selected, an editor + is spawn to edit paths. + + co only for *nix + change file owner. + + cg only for *nix + change file group. + + [count]cp + change file attributes (permission on *nix and properties on + Windows). If [count] is specified, it's treated as numerical + argument for non-recursive `chmod` command (of the form + [0-7]{3,4}). See "Menus and dialogs" section for controls. + + [count]C + clone file [count] times. + + [count]dd or d[count]selector + move selected file or files to trash directory (if 'trash' + option is set, otherwise delete). See "Trash directory" section + below. + + [count]DD or D[count]selector + like dd and d, but omitting trash directory (even when + 'trash' option is set). + + Y, [count]yy or y[count]selector + yank selected files. + + p copy yanked files to the current directory or move the files to + the current directory if they were deleted with dd or :d[elete] + or if the files were yanked from trash directory. See "Trash + directory" section below. + + P move the last yanked files. The advantage of using P instead of + d followed by p is that P moves files only once. This isn't + important in case you're moving files in the same file system + where your home directory is, but using P to move files on some + other file system (or file systems, in case you want to move + files from fs1 to fs2 and your home is on fs3) can save your + time. + + al put symbolic links with absolute paths. + + rl put symbolic links with relative paths. + + t select or unselect (tag) the current file. + + u undo last change. + + Ctrl-R redo last change. + + dp in compare view of "ofboth grouppaths" kind makes corresponding + entries of the other pane equal to the current one. If at least + one file is selected, the command processes selection, otherwise + current file. + The semantics is as follows: + - nothing is done for identical entries + - if file is missing in current view, its pair gets removed + - if file is missing or differs in other view, it's replaced + - file pairs are defined by matching relative paths + File removal obeys 'trash' option. When the option is enabled, + the operation can be undone/redone (although results won't be + visible automatically). + Unlike in Vim, this operation is performed on a single line + rather than a set of adjacent changes. + + do same as dp, but applies changes in the opposite direction. + + v or V enter visual mode, clears current selection. + + [count]Ctrl-A + increment first number in file name by [count] (1 by default). + + [count]Ctrl-X + decrement first number in file name by [count] (1 by default). + + ZQ same as :quit!. + + ZZ same as :quit. + + . repeat last command-line command (not normal mode command) of + this run (does nothing right after startup or :restart command). + The command doesn't depend on command-line history and can be + used with completely disabled history. + + ( go to previous group. Groups are defined by primary sorting + key. For name and iname members of each group have same first + letter, for all other sorting keys vifm uses size, uid, ... + + ) go to next group. See ( key description above. + + { speeds up navigation to closest previous entry of the opposite + type by moving to the first file backwards when cursor is on a + directory and to the first directory backwards when cursor is on + a file. This is essentially a special case of ( that is locked + on "dirs". + + } same as {, but in forward direction. + + [c go to previous mismatched entry in directory comparison view or + do nothing. + + ]c go to next mismatched entry in directory comparison view or do + nothing. + + [d go to previous directory entry or do nothing. + + ]d go to next directory entry or do nothing. + + [r same as :siblprev. + + ]r same as :siblnext. + + [R same as :siblprev!. + + ]R same as :siblnext!. + + [s go to previous selected entry or do nothing. + + ]s go to next selected entry or do nothing. + +Using Count + You can use count with commands like yy. + + [count]yy + yank count files starting from current cursor position downward. + + Or you can use count with motions passed to y, d or D. + + d[count]j + delete (count + 1) files starting from current cursor position + upward. + +Registers + vifm supports multiple registers for temporary storing list of yanked + or deleted files. + + Registers should be specified by hitting double quote key followed by a + register name. Count is specified after register name. By default + commands use unnamed register, which has double quote as its name. + + Though all commands accept registers, most of commands ignores them + (for example H or Ctrl-U). Other commands can fill register or append + new files to it. + + Presently vifm supports ", _, a-z and A-Z characters as register names. + + As mentioned above " is unnamed register and has special meaning of the + default register. Every time when you use named registers (a-z and A- + Z) unnamed register is updated to contain same list of files as the + last used register. + + _ is black hole register. It can be used for writing, but its list is + always empty. + + Registers with names from a to z and from A to Z are named ones. + Lowercase registers are cleared before adding new files, while + uppercase aren't and should be used to append new files to the existing + file list of appropriate lowercase register (A for a, B for b, ...). + + Registers can be changed on :empty command if they contain files under + trash directory (see "Trash directory" section below). + + Registers do not contain one file more than once. + + Example: + + "a2yy + + puts names of two files to register a (and to the unnamed register), + + "Ad + + removes one file and append its name to register a (and to the unnamed + register), + + p or "ap or "Ap + + inserts previously yanked and deleted files into current directory. + +Selectors + y, d, D, !, gu and gU commands accept selectors. You can combine them + with any of selectors below to quickly remove or yank several files. + + Most of selectors are like vi motions: j, k, gg, G, H, L, M, %, f, F, + ;, comma, ', ^, 0 and $. But there are some additional ones. + + a all files in current view. + + s selected files. + + S all files except selected. + + Examples: + + - dj - delete file under cursor and one below; + + - d2j - delete file under cursor and two below; + + - y6gg - yank all files from cursor position to 6th file in the list. + + When you pass a count to whole command and its selector they are + multiplied. So: + + - 2d2j - delete file under cursor and four below; + + - 2dj - delete file under cursor and two below; + + - 2y6gg - yank all files from cursor position to 12th file in the + list. + +Visual Mode + Visual mode has two generic operating submodes: + + - plain selection as it is in Vim; + + - selection editing submode. + + Both modes select files in range from cursor position at which visual + mode was entered to current cursor position (let's call it "selection + region"). Each of two borders can be adjusted by swapping them via "o" + or "O" keys and updating cursor position with regular cursor motion + keys. Obviously, once initial cursor position is altered this way, + real start position becomes unavailable. + + Plain Vim-like visual mode starts with cleared selection, which is not + restored on rejecting selection ("Escape", "Ctrl-C", "v", "V"). + Contrary to it, selection editing doesn't clear previously selected + files and restores them after reject. Accepting selection by + performing an operation on selected items (e.g. yanking them via "y") + moves cursor to the top of current selection region (not to the top + most selected file of the view). + + In turn, selection editing supports three types of editing (look at + status bar to know which one is currently active): + + - append - amend selection by selecting elements in selection region; + + - remove - amend selection by deselecting elements in selection + region; + + - invert - amend selection by inverting selection of elements in + selection region. + + No matter how you activate selection editing it starts in "append". + One can switch type of operation (in the order given above) via "Ctrl- + G" key. + + Almost all normal mode keys work in visual mode, but instead of + accepting selectors they operate on selected items. + + Enter save selection and go back to normal mode not moving cursor. + + av leave visual mode if in amending mode (restores previous + selection), otherwise switch to amending selection mode. + + gv restore previous visual selection. + + v, V, Ctrl-C or Escape + leave visual mode if not in amending mode, otherwise switch to + normal visual selection. + + Ctrl-G switch type of amending by round robin scheme: append -> remove + -> invert. + + : enter command line mode. Selection is cleared on leaving the + mode. + + o switch active selection bound. + + O switch active selection bound. + + gu, u make names of selected files lowercase. + + gU, U make names of selected files uppercase. + + cl change target of symbolic link(s). + + cw same as running :rename command without arguments. + +View Mode + This mode tries to imitate the less program. List of builtin shortcuts + can be found below. Shortcuts can be customized using :qmap, :qnoremap + and :qunmap command-line commands. + + Shift-Tab, Tab, q, Q, ZZ + return to normal mode. + + [count]e, [count]Ctrl-E, [count]j, [count]Ctrl-N, [count]Enter + scroll forward one line (or [count] lines). + + [count]y, [count]Ctrl-Y, [count]k, [count]Ctrl-K, [count]Ctrl-P + scroll backward one line (or [count] lines). + + [count]f, [count]Ctrl-F, [count]Ctrl-V, [count]Space + scroll forward one window (or [count] lines). + + [count]b, [count]Ctrl-B, [count]Alt-V + scroll backward one window (or [count] lines). + + [count]z + scroll forward one window (and set window to [count]). + + [count]w + scroll backward one window (and set window to [count]). + + [count]Alt-Space + scroll forward one window, but don't stop at end-of-file. + + [count]d, [count]Ctrl-D + scroll forward one half-window (and set half-window to [count]). + + [count]u, [count]Ctrl-U + scroll backward one half-window (and set half-window to + [count]). + + r, Ctrl-R, Ctrl-L + repaint screen. + + R reload view preserving scroll position. + + F toggle automatic forwarding. Roughly equivalent to periodic + file reload and scrolling to the bottom. The behaviour is + similar to `tail -F` or F key in less. + + a switch to the next viewer. Does nothing for preview constructed + via %q macro. + + A switch to the previous viewer. Does nothing for preview + constructed via %q macro. + + i toggle raw mode (ignoring of defined viewers). Does nothing for + preview constructed via %q macro. + + [count]/pattern + search forward for ([count]-th) matching line. + + [count]?pattern + search backward for ([count]-th) matching line. + + [count]n + repeat previous search (for [count]-th occurrence). + + [count]N + repeat previous search in reverse direction (for [count]-th + occurrence). + + [count]g, [count]<, [count]Alt-< + scroll to the first line of the file (or line [count]). + + [count]G, [count]>, [count]Alt-> + scroll to the last line of the file (or line [count]). + + [count]p, [count]% + scroll to the beginning of the file (or N percent into file). + + v invoke an editor to edit the current file being viewed. The + command for editing is taken from the 'vicmd' or 'vixcmd' option + value and extended with middle line number prepended by a plus + sign and name of the current file. + + All "Ctrl-W x" keys work the same was as in Normal mode. Active mode + is automatically changed on navigating among windows. When less-like + mode activated on file preview is left using one by "Ctrl-W x" keys, + its state is stored until another file is displayed using preview (it's + possible to leave the mode, hide preview pane, do something else, then + get back to the file and show preview pane again with previously stored + state in it). + +Command line Mode + These keys are available in all submodes of the command line mode: + command, search, prompt and filtering. + + Down, Up, Left, Right, Home, End and Delete are extended keys and they + are not available if vifm is compiled with --disable-extended-keys + option. + + Esc, Ctrl-C + leave command line mode, cancels input. Cancelled input is + saved into appropriate history and can be recalled later. + + Ctrl-M, Enter + execute command and leave command line mode. + + Ctrl-I, Tab + complete command or its argument. + + Shift-Tab + complete in reverse order. + + Ctrl-_ stop completion and return original input. + + Ctrl-B, Left + move cursor to the left. + + Ctrl-F, Right + move cursor to the right. + + Ctrl-A, Home + go to line beginning. + + Ctrl-E, End + go to line end. + + Alt-B go to the beginning of previous word. + + Alt-F go to the end of next word. + + Ctrl-U remove characters from cursor position till the beginning of + line. + + Ctrl-K remove characters from cursor position till the end of line. + + Ctrl-H, Backspace + remove character before the cursor. + + Ctrl-D, Delete + remove character under the cursor. + + Ctrl-W remove characters from cursor position till the beginning of + previous word. + + Alt-D remove characters from cursor position till the beginning of + next word. + + Ctrl-T swap the order of current and previous character and move cursor + forward or, if cursor past the end of line, swap the order of + two last characters in the line. + + Alt-. insert last part of previous command to current cursor position. + Each next call will insert last part of older command. + + Ctrl-G edit command-line content in external editor. See "Command line + editing" section for details. + + Ctrl-N recall more recent command-line from history. + + Ctrl-P recall older command-line from history. + + Up recall more recent command-line from history, that begins as the + current command-line. + + Down recall older command-line from history, that begins as the + current command-line. + + Ctrl-] trigger abbreviation expansion. + + Ctrl-R = + insert result of evaluating an expression. Expression is to be + entered via nested command-line prompt (where this key does + nothing). Expansion of an erroneous expression is empty. + +Fast navigation + In order to streamline navigation through directory tree, you can enter + a special form of command-line mode from search or local filter prompt. + Once activated, pressing Enter opens currently selected directory and + clears the prompt in anticipation of the next component of the path. + If entry under the cursor is a file, it is opened and the mode is + finished. + + This behaviour is embedded in a command-line mode, but doesn't update + input histories nor expands abbreviations and redefines some of the + mode's mappings for the purpose of faster navigation through the file + system rather than command-line editing. When on, prompt gets "nav" + prefix. + + You can enable this behaviour on search by default via a mapping like: + + nnoremap / / + + + Ctrl-Y enter navigation mode. Works only for search and local filter + started from a normal mode and only when 'incsearch' is set + ('wrapscan' is also nice to have set for search). + + Ctrl-Y return to a regular command-line mode. + + Enter, Right + either enter a directory under the cursor without leaving the + mode and clear the prompt or leave the mode for files. If + 'navoptions' specifies "open:all" a file under the cursor is + opened after leaving the mode. + + Ctrl-O, Left + go to parent directory. + + Ctrl-J leave the mode without undoing cursor position or filter state. + + Ctrl-N, Down + move view cursor down. + + Ctrl-P, Up + move view cursor up. + + Page Down + scroll view down. + + Page Up + scroll view up. + + Home move view cursor to the first item. + + End move view cursor to the last item. + +Pasting special values + The shortcuts listed below insert specified values into current cursor + position. Last key of every shortcut references value that it inserts: + - c - [c]urrent file + - d - [d]irectory path + - e - [e]xtension of a file name + - r - [r]oot part of a file name + - t - [t]ail part of directory path + + - a - [a]utomatic filter + - m - [m]anual filter + - = - local filter, which is bound to "=" in normal mode + + Values related to filelist in current pane are available through Ctrl-X + prefix, while values from the other pane have doubled Ctrl-X key as + their prefix (doubled Ctrl-X is presumably easier to type than + uppercase letters; it's still easy to remap the keys to correspond to + names of similar macros). + + Ctrl-X c + name of the current file of the active pane. + + Ctrl-X d + path to the current directory of the active pane. + + Ctrl-X e + extension of the current file of the active pane. + + Ctrl-X r + name root of current file of the active pane. + + Ctrl-X t + the last component of path to the current directory of the + active pane. + + Ctrl-X Ctrl-X c + name of the current file of the inactive pane. + + Ctrl-X Ctrl-X d + path to the current directory of the inactive pane. + + Ctrl-X Ctrl-X e + extension of the current file of the inactive pane. + + Ctrl-X Ctrl-X r + name root of current file of the inactive pane. + + Ctrl-X Ctrl-X t + the last component of path to the current directory of the + inactive pane. + + + Ctrl-X a + value of implicit permanent filter (old name "automatic") of the + active pane. + + Ctrl-X m + value of explicit permanent filter (old name "manual") of the + active pane. + + Ctrl-X = + value of local filter of the active pane. + + + Ctrl-X / + last pattern from search history. + +Command line editing + vifm provides a facility to edit several kinds of data, that is usually + edited in command-line mode, in external editor (using command + specified by 'vicmd' or 'vixcmd' option). This has at least two + advantages over built-in command-line mode: + - one can use full power of Vim to edit text; + - finding and reusing history entries becomes possible. + + The facility is supported by four input submodes of the command-line: + - command; + - forward search; + - backward search; + - file rename (see description of cw and cW normal mode keys). + + Editing command-line using external editor is activated by the Ctrl-G + shortcut. It's also possible to do almost the same from Normal and + Visual modes using q:, q/ and q? commands. + + Temporary file created for the purpose of editing the line has the + following structure: + + 1. First line, which is either empty or contains text already entered + in command-line. + + 2. 2nd and all other lines with history items starting with the most + recent one. Altering this lines in any way won't change history + items stored by vifm. + + After editing application is finished the first line of the file is + taken as the result of operation, when the application returns zero + exit code. If the application returns an error (see :cquit command in + Vim), all the edits made to the file are ignored, but the initial value + of the first line is saved in appropriate history. + +More Mode + This is the mode that appears when status bar content is so big that it + doesn't fit on the screen. One can identify the mode by "-- More --" + message at the bottom. + + The following keys are handled in this mode: + + + Enter, Ctrl-J, j or Down + scroll one line down. + + Backspace, k or Up + scroll one line up. + + + d scroll one page (half of a screen) down. + + u scroll one page (half of a screen) up. + + + Space, f or PageDown + scroll down a screen. + + b or PageUp + scroll up a screen. + + + G scroll to the bottom. + + g scroll to the top. + + + q, Escape or Ctrl-C + quit the mode. + + : switch to command-line mode. + +Commands + Commands are executed with :command_name + + Commented out lines should start with the double quote symbol ("), + which may be preceded by whitespace characters intermixed with colons. + Inline comments can be added at the end of the line after double quote + symbol, only last line of a multi-line command can contain such + comment. Not all commands support inline comments as their syntax + conflicts with names of registers and fields where double quotes are + allowed. + + Most of the commands have two forms: complete and the short one. + Example: + + :noh[lsearch] + + This means the complete command is nohlsearch, and the short one is + noh. + + Most of command-line commands completely reset selection in the current + view. However, there are several exceptions: + + - `:invert s` most likely leaves some files selected; + + - :view command; + + - :normal command (when it doesn't leave command-line mode); + + - :if and :else commands don't affect selection on successful + execution. + + '|' can be used to separate commands, so you can give multiple commands + in one line. If you want to use '|' in an argument, precede it with + '\'. + + These commands see '|' as part of their arguments even when it's + escaped: + + :[range]! + :amap + :anoremap + :autocmd + :cabbrev + :cmap + :cnoreabbrev + :cnoremap + :command + :dmap + :dnoremap + :filetype + :fileviewer + :filextype + :keepsel + :map + :mmap + :mnoremap + :nmap + :nnoremap + :noremap + :normal + :qmap + :qnoremap + :vmap + :vnoremap + :wincmd + :windo + :winrun + + To be able to use another command after one of these, wrap it with the + :execute command. An example: + + if filetype('.') == 'reg' | execute '!!echo regular file' | endif + + :[count] + + :number + move to the file number. + :12 would move to the 12th file in the list. + :0 move to the top of the list. + :$ move to the bottom of the list. + + :[count]command + The only builtin :[count]command are :[count]d[elete] and + :[count]y[ank]. + + :d3 would delete three files starting at the current file position + moving down. + + :3d would delete one file at the third line in the list. + + :command [args] + + :[range]!program + execute command via shell. Accepts macros. + + :[range]!command & + + same as above, but the command is run in the background using vifm's + means. + + Programs that write to stderr create error dialogs showing errors of + the command. + + Note the space before ampersand symbol, if you omit it, command will be + run in the background using job control of your shell. + + Accepts macros. + + :!! + + :[range]!!command + same as :!, but pauses before returning. + + :!! repeat the last command. + + :alink + + :[range]alink[!?] + create absolute symbolic links to files in directory of inactive + view. With "?" prompts for destination file names in an editor. + "!" forces overwrite. + + :[range]alink[!] path + create absolute symbolic links to files in directory specified + by the path (absolute or relative to directory of inactive + view). + + :[range]alink[!] name1 name2... + create absolute symbolic links of files in directory of other + view giving each next link a corresponding name from the + argument list. + + :[range]alink[!?] -skip ... + see "-skip parameter" section below. + + :apropos + + :apropos keyword... + create a menu of items returned by the apropos command. + Selecting an item in the menu opens corresponding man page. By + default the command relies on the external "apropos" utility, + which can be customized by altering value of the 'aproposprg' + option. See "Menus and dialogs" section for controls. + + :autocmd + + :au[tocmd] {event} {pat} {cmd} + register autocommand for the {event}, which can be: + - DirEnter - triggered after directory is changed + Event name is case insensitive. + + {pat} is a comma-separated list of modified globs patterns, + which can contain tilde or environment variables. All paths use + slash ('/') as directory separator. The pattern can start with + a '!', which negates it. Patterns that do not contain slashes + are matched against the last item of the path only (e.g. "dir" + in "/path/dir"). Literal comma can be entered by doubling it. + Two modifications to globs matching are as follows: + - * - never matches a slash (i.e., can signify single + directory level) + - ** - matches any character (i.e., can match path of + arbitrary depth) + + {cmd} is a :command or several of them separated with '|'. + + Examples of patterns: + - conf.d - matches conf.d directory anywhere + - *.d - matches directories ending with ".d" anywhere + - **.git - matches something.git, but not .git anywhere + - **/.git/** - matches /path/.git/objects, but not /path/.git + - **/.git/**/ - matches /path/.git/ only (because of trailing + slash) + - /etc/* - matches /etc/conf.d/, /etc/X11, but not + /etc/X11/fs + - /etc/**/*.d - matches /etc/conf.d, /etc/X11/conf.d, etc. + - /etc/**/* - matches /etc/ itself and any file below it + - /etc/**/** - matches /etc/ itself and any file below it + + :au[tocmd] [{event}] [{pat}] + list those autocommands that match given event-pattern + combination. + {event} and {pat} can be omitted to list all autocommands. To + list any autocommands for specific pattern one can use * + placeholder in place of {event}. + + :au[tocmd]! [{event}] [{pat}] + remove autocommands that match given event-pattern combination. + Syntax is the same as for listing above. + + :apropos + repeat last :apropos command. + + :bmark + + :bmark tag1 [tag2 [tag3...]] + bookmark current directory with specified tags. + + :bmark! path tag1 [tag2 [tag3...]] + same as :bmark, but allows bookmarking specific path instead of + current directory. This is for use in vifmrc and for + bookmarking files. + + Path can contain macros that expand to single path (%c, %C, %d, + %D) or those that can expand to multiple paths, but contain only + one (%f, %F, %rx). The latter is done for convenience on using + the command interactively. Complex macros that include spaces + (e.g. "%c:gs/ /_") should be escaped. + + :bmarks + + :bmarks + display all bookmarks in a menu. + + :bmarks [tag1 [tag2...]] + display menu of bookmarks that include all of the specified + tags. See "Menus and dialogs" section for controls. + + :bmgo + + :bmgo [tag1 [tag2...]] + when there are more than one match acts exactly like :bmarks, + otherwise navigates to single match immediately (and fails if + there is no match). + + :cabbrev + + :ca[bbrev] + display menu of command-line mode abbreviations. See "Menus and + dialogs" section for controls. + + :ca[bbrev] lhs-prefix + display command-line mode abbreviations which left-hand side + starts with specified prefix. + + :ca[bbrev] lhs rhs + register new or overwrites existing abbreviation for command- + line mode. rhs can contain spaces and any special sequences + accepted in rhs of mappings (see "Mappings" section below). + Abbreviations are expanded non-recursively. + + :cnoreabbrev + + :cnorea[bbrev] + display menu of command-line mode abbreviations. See "Menus and + dialogs" section for controls. + + :cnorea[bbrev] lhs-prefix + display command-line mode abbreviations which left-hand side + starts with specified prefix. + + :cnorea[bbrev] lhs rhs + same as :cabbrev, but mappings in rhs are ignored during + expansion. + + :cd + + :cd or :cd ~ or :cd $HOME + change to home directory. + + :cd - go to the last visited directory. + + :cd ~/dir + change directory to ~/dir. + + :cd /curr/dir /other/dir + change directory of the current pane to /curr/dir and directory + of the other pane to /other/dir. Relative paths are assumed to + be relative to directory of current view. Command won't fail if + one of directories is invalid. All forms of the command accept + macros. + + :cd! /dir + same as :cd /dir /dir. + + :cds + + :cds[!] pattern string + navigate to path obtained by substituting first match in current + path. Arguments can include slashes, but starting first + argument with a separator will activate below form of the + command. Specifying "!" changes directory of both panes. + + Available flags: + + - i - ignore case (the 'ignorecase' and 'smartcase' options are not + used) + + - I - don't ignore case (the 'ignorecase' and 'smartcase' options are + not used) + + :cds[!]/pattern/string/[flags] + same as above, but with :substitute-like syntax. Other + punctuation characters can be used as separators. + + :change + + :c[hange] + show a dialog to alter properties of files. + + :chmod + + :[range]chmod + display file attributes (permission on *nix and properties on + Windows) change dialog. + + :[range]chmod[!] arg... + only for *nix + change permissions for files. See `man 1 chmod` for arg format. + "!" means set permissions recursively. + + :chown + + :[range]chown + only for *nix + same as co key in normal mode. + + :[range]chown [user][:][group] + only for *nix + change owner and/or group of files. Operates on directories + recursively. + + :clone + + :[range]clone[!?] + clones files in current directory. With "?" vifm will open vi + to edit file names. "!" forces overwrite. Macros are expanded. + + :[range]clone[!] path + clones files to directory specified with the path (absolute or + relative to current directory). "!" forces overwrite. Macros + are expanded. + + :[range]clone[!] name1 name2... + clones files in current directory giving each next clone a + corresponding name from the argument list. "!" forces + overwrite. Macros are expanded. + + :colorscheme + + :colo[rscheme]? + print current color scheme name on the status bar. + + :colo[rscheme] + display a menu with a list of available color schemes. You can + choose primary color scheme here. It is used for view if no + directory specific colorscheme fits current path. It's also + used to set border color (except view titles) and colors in + menus and dialogs. See "Menus and dialogs" section for + controls. + + :colo[rscheme] color_scheme_name + change primary color scheme to color_scheme_name. In case of + errors (e.g. some colors are not supported by terminal) either + nothing is changed or color scheme is reset to builtin colors to + ensure that TUI is left in a usable state. + + :colo[rscheme] color_scheme_name directory + associate directory with the color scheme. The directory + argument can be either absolute or relative path when + :colorscheme command is executed from command line, but + mandatory should be an absolute path when the command is + executed in scripts loaded at startup (until vifm is completely + loaded). + + :colo[rscheme] color_scheme_name color_scheme_name... + loads the first color scheme in the order given that exists and + is supported by the terminal. If none matches, current one + remains unchanged. For example: + + " use a separate color scheme for panes which are inside FUSE mounts + execute 'colorscheme in-fuse' &fusehome + + :comclear + + :comc[lear] + remove all user defined commands. + + :command + + :com[mand] + display a menu of user commands. See "Menus and dialogs" + section for controls. + + :com[mand] prefix + display user defined commands that start with the prefix. + + :com[mand] name action[ &] + set or redefine a user command. + Use :com[mand]! to overwrite a previously set command of the + same name. Builtin commands can't be redefined. + User commands must start with an upper or lower case letter. + Command name can't contain special symbols except for a single + trailing '?' or '!'. Numbers are allowed provided that they + don't cause parsing ambiguity (no command name prefix that + precedes a digit can match an existing command unless it has a + digit in the same place), for example: + " good + :command mp3 command + " good + :command mp4 command + :command mp3! command + :command mp4? command + " bad + :command mp command + :command mp44 command + " good + :command mp4c command + + User commands are run in a shell by default (see below for + syntax of other options). To run a command in the background + you must mark it as a background command by adding " &" after + the command's action (e.g., `:com rm rm %f &`). + User commands of all kinds have macros expanded in them. See + "Command macros" section for more information. + + :com[mand] name /pattern + set search pattern. + + :com[mand] name =pattern + set local filter value. + + :com[mand] name filter{:filter args} + set file name filter (see :filter command description). For + example: + + " display only audio files + :command onlyaudio filter/.+.\(mp3|wav|mp3|flac|ogg|m4a|wma|ape\)$/i + " display everything except audio files + :command noaudio filter!/.+.\(mp3|wav|mp3|flac|ogg|m4a|wma|ape\)$/i + + :com[mand] name :commands + set kind of an alias for internal commands (like in a shell). + Passes range given to alias to an aliased command, so running + :%cp after + :command cp :copy %a + equals + :%copy + + :compare + + :compare [byname | bysize | bycontents | + listall | listunique | listdups | + ofboth | ofone | + groupids | grouppaths | + skipempty | withicase | withrcase | + showidentical | showdifferent | showuniqueleft | + showuniqueright]... + compare files in one or two views according to the arguments. + The default is "bycontents listall ofboth grouppaths + showidentical showdifferent showuniqueleft showuniqueright". + See "Compare views" section below for details. Diff structure + is incompatible with alternative representations, so values of + 'lsview' and 'millerview' options are ignored. + + :compare! (showidentical | showdifferent | showuniqueleft | + showuniqueright)... this invocation form works only when + compare view is active and results in redoing of the previous + :compare with toggled state of the passed in options. + + :copen + + :cope[n] + reopens the last visible menu that has navigation to files by + default, if any. + + :copy + + :[range]co[py][!?][ &] + copy files to directory of other view. With "?" prompts for + destination file names in an editor. "!" forces overwrite. + + :[range]co[py][!] path[ &] + copy files to directory specified with the path (absolute or + relative to directory of other view). "!" forces overwrite. + + :[range]co[py][!] name1 name2...[ &] + copy files to directory of other view giving each next file a + corresponding name from the argument list. "!" forces + overwrite. + + :[range]co[py][!?] -skip ...[ &] + see "-skip parameter" section below. + + :cquit + + :cq[uit][!] + same as :quit, but also aborts directory choosing via + --choose-dir (empties output file) and returns non-zero exit + code. + + :cunabbrev + + :cuna[bbrev] lhs + unregister command-line mode abbreviation by its lhs. + + :cuna[bbrev] rhs + unregister command-line mode abbreviation by its rhs, so that + abbreviation could be removed even after expansion. + + :delbmarks + + :delbmarks + remove bookmarks from current directory. + + :delbmarks tag1 [tag2 [tag3...]] + remove set of bookmarks that include all of the specified tags. + + :delbmarks! + remove all bookmarks. + + :delbmarks! path1 [path2 [path3...]] + remove bookmarks of listed paths. + + :delcommand + + :delc[ommand] user_command + remove user defined command named user_command. + + :delete + + :[range]d[elete][!][ &] + delete selected file or files. "!" means complete removal + (omitting trash). + + :[range]d[elete][!] [reg] [count][ &] + delete selected or [count] files to the reg register. "!" means + complete removal (omitting trash). + + :delmarks + + :delm[arks]! + delete all marks. + + :delm[arks] marks ... + delete specified marks, each argument is treated as a set of + marks. + + :delsession + + :delsession + delete specified session if it was stored previously. Deleting + current session doesn't detach it. + + :display + + :di[splay] + display menu with registers content. + + :di[splay] list ... + display the contents of the numbered and named registers that + are mentioned in list (for example "az to display "", "a and "z + content). + + :dirs + + :dirs display directory stack in a menu. See "Menus and dialogs" + section for controls. + + :echo + + :ec[ho] [...] + evaluate each argument as an expression and output them + separated with a space. See help on :let command for a + definition of . + + :edit + + :[range]e[dit] [file...] + open selected or passed file(s) in editor. Macros and + environment variables are expanded. + + :else + + :el[se] + execute commands until next matching :endif if all other + conditions didn't match. See also help on :if and :endif + commands. + + :elseif + + :elsei[f] {expr1} + execute commands until next matching :elseif, :else or :endif if + conditions of previous :if and :elseif branches were evaluated + to zero. See also help on :if and :endif commands. + + :empty + + :empty permanently remove files from all existing non-empty trash + directories (see "Trash directory" section below). Trash + directories which are specified via %r and/or %u also get + deleted completely. Also remove all operations from undolist + that have no sense after :empty and remove all records about + files located inside directories from all registers. Removal is + performed as background task with undetermined amount of work + and can be checked via :jobs menu. + + :endif + + :en[dif] + end conditional block. See also help on :if and :else commands. + + :execute + + :exe[cute] [...] + evaluate each argument as an expression and join results + separated by a space to get a single string which is then + executed as a command-line command. See help on :let command + for a definition of . + + :exit + + :exi[t][!] + same as :quit. + + :file + + :f[ile][ &] + display menu of programs set for the file type of the current + file. " &" forces running associated program in background. + See "Menus and dialogs" section for controls. + + :f[ile] arg[ &] + run associated command that begins with the arg skipping opening + menu. " &" forces running associated program in background. + + :filetype + + :filet[ype] pattern-list [{descr}]def_prog[ &],[{descr}]prog2[ &],... + associate given program list to each of the patterns. + Associated program (command) is used by handlers of l and Enter + keys (and also in the :file menu). If you need to insert comma + into command just double it (",,"). Space followed by an + ampersand as two last characters of a command means running of + the command in the background. Optional description can be + given to each command to ease understanding of what command will + do in the :file menu. Vifm will try the rest of the programs + for an association when the default isn't found. When program + entry doesn't contain any of vifm macros, name of current file + is appended as if program entry ended with %c macro on *nix and + %"c on Windows. On Windows path to executables containing + spaces can (and should be for correct work with such paths) be + double quoted. See "Patterns" section below for pattern + definition and "Selection" section for how selection is handled. + See also "Automatic FUSE mounts" section below. Example for zip + archives and several actions: + + filetype *.zip,*.jar,*.war,*.ear + \ {Mount with fuse-zip} + \ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR, + \ {View contents} + \ zip -sf %c | less, + \ {Extract here} + \ tar -xf %c, + + Note that on OS X when `open` is used to call an app, vifm is + unable to check whether that app is actually available. So if + automatic skipping of programs that aren't there is desirable, + `open` should be replaced with an actual command. + + :filet[ype] filename + list (in menu mode) currently registered patterns that match + specified file name. Same as ":filextype filename". + + :filextype + + :filex[type] pattern-list [{ description }] def_program,program2,... + same as :filetype, but this command is ignored if not running in + X. In X :filextype is equal to :filetype. See "Patterns" + section below for pattern definition and "Selection" section for + how selection is handled. See also "Automatic FUSE mounts" + section below. + + For example, consider the following settings (the order might + seem strange, but it's for the demonstration purpose): + + filetype *.html,*.htm + \ {View in lynx} + \ lynx + filextype *.html,*.htm + \ {Open with dwb} + \ dwb %f %i &, + filetype *.html,*.htm + \ {View in links} + \ links + filextype *.html,*.htm + \ {Open with firefox} + \ firefox %f &, + \ {Open with uzbl} + \ uzbl-browser %f %i &, + + If you're using vifm inside a terminal emulator that is running + in graphical environment (when X is used on *nix; always on + Windows), vifm attempts to run application in this order: + + 1. lynx + 2. dwb + 3. links + 4. firefox + 5. uzbl + + If there is no graphical environment (checked by presence of + non-empty $DISPLAY or $WAYLAND_DISPLAY environment variable on + *nix; never happens on Windows), the list will look like: + + 1. lynx + 2. links + + Just as if all :filextype commands were not there. + + The purpose of such differentiation is to allow comfortable use + of vifm with same settings in desktop environment/through remote + connection (SSH)/in native console. + + Note that on OS X $DISPLAY isn't defined unless you define it, + so :filextype should be used only if you set $DISPLAY in some + way. + + :filext[ype] filename + list (in menu mode) currently registered patterns that match + specified file name. Same as ":filetype filename". + + :fileviewer + + :filev[iewer] pattern-list command1,command2,... + register specified list of commands as viewers for each of the + patterns. Viewer is a command which output is captured and + displayed in one of the panes of vifm after pressing "e" or + running :view command. When the command doesn't contain any of + vifm macros, name of current file is appended as if command + ended with %c macro. Comma escaping and missing commands + processing rules as for :filetype apply to this command. See + "Patterns" section below for pattern definition. Supports Lua + handlers. + + Example for zip archives: + + fileviewer *.zip,*.jar,*.war,*.ear zip -sf %c, echo "No zip to preview:" + + :filev[iewer] filename + list (in menu mode) currently registered patterns that match + specified filename. + + :filter + + :filter[!] {pattern} + filter files matching the pattern out of directory listings. + '!' controls state of filter inversion after updating filter + value (see also 'cpoptions' description). Filter is matched + case sensitively on *nix and case insensitively on Windows. See + "File Filters" and "Patterns" sections. + + Example: + + " filter all files ending in .o from the filelist. + :filter /.o$/ + + + :filter[!] {empty-pattern} + same as above, but use last search pattern as pattern value. + + Example: + + :filter //I + + + :filter + reset filter (set it to an empty string) and show all files. + + :filter! + same as :invert. + + :filter? + show information on local, name and auto filters. + + :find + + :[range]fin[d] pattern + display results of find command in the menu. Searches among + selected files if any. Accepts macros. By default the command + relies on the external "find" utility, which can be customized + by altering value of the 'findprg' option. + + :[range]fin[d] -opt... + same as :find above, but user defines all find arguments. + Searches among selected files if any. + + :[range]fin[d] path -opt... + same as :find above, but user defines all find arguments. + Ignores selection and range. + + :[range]fin[d] + repeat last :find command. + + :finish + + :fini[sh] + stop sourcing a script. Can only be used in a vifm script file. + This is a quick way to skip the rest of the file. + + :goto + + :go[to] + change directory if necessary and put specified path under the + cursor. The path should be existing non-root path. Macros and + environment variables are expanded. + + :grep + + :[range]gr[ep][!] pattern + will show results of grep command in the menu. Add "!" to + request inversion of search (look for lines that do not match + pattern). Searches among selected files if any and no range + given. Ignores binary files by default. By default the command + relies on the external "grep" utility, which can be customized + by altering value of the 'grepprg' option. + + :[range]gr[ep][!] -opt... + same as :grep above, but user defines all grep arguments, which + are not escaped. Searches among selected files if any. + + :[range]gr[ep][!] + repeat last :grep command. "!" of this command inverts "!" in + repeated command. + + :help + + :h[elp] + show the help file. + + :h[elp] argument + is the same as using ':h argument' in vim. Use vifm- + to get help on vifm (tab completion works). This form of the + command doesn't work when 'vimhelp' option is off. + + :hideui + + :hideui + hide interface to show previous commands' output. + + :highlight + + :hi[ghlight] + display information about all highlight groups active at the + moment. + + :hi[ghlight] clear + reset all highlighting to builtin defaults and removed all + filename-specific rules. + + :hi[ghlight] clear ( {pat1,pat2,...} | /regexp/ ) + remove specified rule. + + :hi[ghlight] ( group-name | {pat1,pat2,...} | /regexp/ ) + display information on given highlight group or file name + pattern of color scheme used in the active view. + + :hi[ghlight] ( group-name | {pat1,pat2,...} | /regexp/[iI] ) + cterm=style | ctermfg=color | ctermbg=color | gui=style | guifg=color | + guibg=color + set style (cterm, gui), foreground (ctermfg, guifg) and/or + background (ctermbg, guibg) parameters of highlight group or + file name pattern for color scheme used in the active view. + + All style values as well as color names are case insensitive. + + Available style values (some of them can be combined): + - bold + - underline + - reverse or inverse + - standout + - italic (on unsupported systems becomes reverse) + - combine - add attributes of current group to attributes of the + parent in group hierarchy (see below) instead of replacing them + - none + + Available group-name values: + - Win - color of all windows (views, dialogs, menus) and default color + for their content (e.g. regular files in views) + - AuxWin - color of auxiliary areas of windows + - OtherWin - color of inactive pane + - Border - color of vertical parts of the border + - TabLine - tab line color (for 'tabscope' set to "global") + - TabLineSel - color of the tip of selected tab (regardless of + 'tabscope') + - TopLine - top line color of the other pane + - TopLineSel - top line color of the current pane + - CmdLine - the command line/status bar color + - ErrorMsg - color of error messages in the status bar + - StatusLine - color of the line above the status bar + - JobLine - color of job line that appears above the status line + - WildMenu - color of the wild menu items + - SuggestBox - color of key suggestion box + - CurrLine - line at cursor position in active view + - OtherLine - line at cursor position in inactive view + - OddLine - color of every second entry line in a pane + - LineNr - line number column of views + - Selected - color of selected files + - Directory - color of directories + - Link - color of symbolic links in the views + - BrokenLink - color of broken symbolic links + - HardLink - color of regular files with more than one hard link + - Socket - color of sockets + - Device - color of block and character devices + - Executable - color of executable files + - Fifo - color of fifo pipes + - CmpMismatch - color of mismatched files in side-by-side comparison + by path + - CmpUnmatched - comparison file entry that has no pair in the other + pane + - CmpBlank - entry placeholder in a compare view, paired with + CmpUnmatched + - User1..User20 - 20 colors which can be used via %* 'statusline' + macro + + Available colors: + - -1 or default or none - default or transparent + - black and lightblack + - red and lightred + - green and lightgreen + - yellow and lightyellow + - blue and lightblue + - magenta and lightmagenta + - cyan and lightcyan + - white and lightwhite + - 0-255 - corresponding colors from 256-color palette (for ctermfg and + ctermbg) + - #rrggbb - direct ("gui", "true", 24-bit) color in hex-notation, each + of the three compontents are in the range 0x00 to 0xff (for guifg and + guibg) + + Light versions of colors are regular colors with bold attribute set + automatically in terminals that have less than 16 colors. So order of + arguments of :highlight command is important and it's better to put + "cterm" in front of others to prevent it from overwriting attributes + set by "ctermfg" or "ctermbg" arguments. + + For convenience of color scheme authors xterm-like names for 256 color + palette is also supported. The mapping is taken from + http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim + Duplicated entries were altered by adding an underscore followed by + numerical suffix. + + 0 Black 86 Aquamarine1 172 Orange3 + 1 Red 87 DarkSlateGray2 173 LightSalmon3_2 + 2 Green 88 DarkRed_2 174 LightPink3 + 3 Yellow 89 DeepPink4_2 175 Pink3 + 4 Blue 90 DarkMagenta 176 Plum3 + 5 Magenta 91 DarkMagenta_2 177 Violet + 6 Cyan 92 DarkViolet 178 Gold3_2 + 7 White 93 Purple 179 LightGoldenrod3 + 8 LightBlack 94 Orange4_2 180 Tan + 9 LightRed 95 LightPink4 181 MistyRose3 + 10 LightGreen 96 Plum4 182 Thistle3 + 11 LightYellow 97 MediumPurple3 183 Plum2 + 12 LightBlue 98 MediumPurple3_2 184 Yellow3_2 + 13 LightMagenta 99 SlateBlue1 185 Khaki3 + 14 LightCyan 100 Yellow4 186 LightGoldenrod2 + 15 LightWhite 101 Wheat4 187 LightYellow3 + 16 Grey0 102 Grey53 188 Grey84 + 17 NavyBlue 103 LightSlateGrey 189 LightSteelBlue1 + 18 DarkBlue 104 MediumPurple 190 Yellow2 + 19 Blue3 105 LightSlateBlue 191 DarkOliveGreen1 + 20 Blue3_2 106 Yellow4_2 192 + DarkOliveGreen1_2 + 21 Blue1 107 DarkOliveGreen3 193 DarkSeaGreen1_2 + 22 DarkGreen 108 DarkSeaGreen 194 Honeydew2 + 23 DeepSkyBlue4 109 LightSkyBlue3 195 LightCyan1 + 24 DeepSkyBlue4_2 110 LightSkyBlue3_2 196 Red1 + 25 DeepSkyBlue4_3 111 SkyBlue2 197 DeepPink2 + 26 DodgerBlue3 112 Chartreuse2_2 198 DeepPink1 + 27 DodgerBlue2 113 DarkOliveGreen3_2 199 DeepPink1_2 + 28 Green4 114 PaleGreen3_2 200 Magenta2_2 + 29 SpringGreen4 115 DarkSeaGreen3 201 Magenta1 + 30 Turquoise4 116 DarkSlateGray3 202 OrangeRed1 + 31 DeepSkyBlue3 117 SkyBlue1 203 IndianRed1 + 32 DeepSkyBlue3_2 118 Chartreuse1 204 IndianRed1_2 + 33 DodgerBlue1 119 LightGreen_2 205 HotPink + 34 Green3 120 LightGreen_3 206 HotPink_2 + 35 SpringGreen3 121 PaleGreen1 207 MediumOrchid1_2 + 36 DarkCyan 122 Aquamarine1_2 208 DarkOrange + 37 LightSeaGreen 123 DarkSlateGray1 209 Salmon1 + 38 DeepSkyBlue2 124 Red3 210 LightCoral + 39 DeepSkyBlue1 125 DeepPink4_3 211 PaleVioletRed1 + 40 Green3_2 126 MediumVioletRed 212 Orchid2 + 41 SpringGreen3_2 127 Magenta3 213 Orchid1 + 42 SpringGreen2 128 DarkViolet_2 214 Orange1 + 43 Cyan3 129 Purple_2 215 SandyBrown + 44 DarkTurquoise 130 DarkOrange3 216 LightSalmon1 + 45 Turquoise2 131 IndianRed 217 LightPink1 + 46 Green1 132 HotPink3 218 Pink1 + 47 SpringGreen2_2 133 MediumOrchid3 219 Plum1 + 48 SpringGreen1 134 MediumOrchid 220 Gold1 + 49 MediumSpringGreen 135 MediumPurple2 221 + LightGoldenrod2_2 + 50 Cyan2 136 DarkGoldenrod 222 + LightGoldenrod2_3 + 51 Cyan1 137 LightSalmon3 223 NavajoWhite1 + 52 DarkRed 138 RosyBrown 224 MistyRose1 + 53 DeepPink4 139 Grey63 225 Thistle1 + 54 Purple4 140 MediumPurple2_2 226 Yellow1 + 55 Purple4_2 141 MediumPurple1 227 LightGoldenrod1 + 56 Purple3 142 Gold3 228 Khaki1 + 57 BlueViolet 143 DarkKhaki 229 Wheat1 + 58 Orange4 144 NavajoWhite3 230 Cornsilk1 + 59 Grey37 145 Grey69 231 Grey100 + 60 MediumPurple4 146 LightSteelBlue3 232 Grey3 + 61 SlateBlue3 147 LightSteelBlue 233 Grey7 + 62 SlateBlue3_2 148 Yellow3 234 Grey11 + 63 RoyalBlue1 149 DarkOliveGreen3_3 235 Grey15 + 64 Chartreuse4 150 DarkSeaGreen3_2 236 Grey19 + 65 DarkSeaGreen4 151 DarkSeaGreen2 237 Grey23 + 66 PaleTurquoise4 152 LightCyan3 238 Grey27 + 67 SteelBlue 153 LightSkyBlue1 239 Grey30 + 68 SteelBlue3 154 GreenYellow 240 Grey35 + 69 CornflowerBlue 155 DarkOliveGreen2 241 Grey39 + 70 Chartreuse3 156 PaleGreen1_2 242 Grey42 + 71 DarkSeaGreen4_2 157 DarkSeaGreen2_2 243 Grey46 + 72 CadetBlue 158 DarkSeaGreen1 244 Grey50 + 73 CadetBlue_2 159 PaleTurquoise1 245 Grey54 + 74 SkyBlue3 160 Red3_2 246 Grey58 + 75 SteelBlue1 161 DeepPink3 247 Grey62 + 76 Chartreuse3_2 162 DeepPink3_2 248 Grey66 + 77 PaleGreen3 163 Magenta3_2 249 Grey70 + 78 SeaGreen3 164 Magenta3_3 250 Grey74 + 79 Aquamarine3 165 Magenta2 251 Grey78 + 80 MediumTurquoise 166 DarkOrange3_2 252 Grey82 + 81 SteelBlue1_2 167 IndianRed_2 253 Grey85 + 82 Chartreuse2 168 HotPink3_2 254 Grey89 + 83 SeaGreen2 169 HotPink2 255 Grey93 + 84 SeaGreen1 170 Orchid + 85 SeaGreen1_2 171 MediumOrchid1 + + There are two colors (foreground and background) and only one bold + attribute. Thus single bold attribute affects both colors when + "reverse" attribute is used in vifm run inside terminal emulator. At + the same time linux native console can handle boldness of foreground + and background colors independently, but for consistency with terminal + emulators this is available only implicitly by using light versions of + colors. This behaviour might be changed in the future. + + Although vifm supports 256 colors in a sense they are supported by UI + drawing library, whether you will be able to use all of them highly + depends on your terminal. To set up terminal properly, make sure that + $TERM in the environment you run vifm is set to name of 256-color + terminal (on *nixes it can also be set via X resources), e.g. + xterm-256color. One can find list of available terminal names by + listing /usr/lib/terminfo/. Number of colors supported by terminal + with current settings can be checked via "tput colors" command. + + In order to use 24-bit colors one needs a terminal that supports them, + corresponding terminfo record (probably ends in "-direct" like in + "xterm-direct") and $TERM pointing to it. When vifm detects direct + color support "cterm*" values are ignored for groups which have at + least one of "gui*" values set, otherwise they are used after + translating via a builtin palette. + + Here is the hierarchy of highlight groups, which you need to know for + using transparency: + JobLine + SuggestBox + StatusLine + WildMenu + User1..User20 + Border + CmdLine + ErrorMsg + Win + OtherWin + AuxWin + OddLine + File name specific highlights + Directory + Link + BrokenLink + HardLink + Socket + Device + Fifo + Executable + CmpMismatch + CmpUnmatched + CmpBlank + Selected + CurrLine + LineNr (in active pane) + OtherLine + LineNr (in inactive pane) + TopLine + TopLineSel + TabLineSel (for pane tabs) + User1..User20 + TabLine + TabLineSel + User1..User20 + + "none" means default terminal color for highlight groups at the first + level of the hierarchy and transparency for all others. + + Here file name specific highlights mean those configured via globs ({}) + or regular expressions (//). At most one of them is applied per file + entry, namely the first that matches file name, hence order of + :highlight commands might be important in certain cases. + + :history + + :his[tory] + display a menu with list of visited directories. See "Menus and + dialogs" section for controls. + + :his[tory] x + x can be: + d[ir] or . show directory history. + c[md] or : show command line history. + s[earch] or / show search history and search forward on l + key. + f[search] or / show search history and search forward on l + key. + b[search] or ? show search history and search backward on l + key. + i[nput] or @ show prompt history (e.g. on one file + renaming). + fi[lter] or = show local filter history (see description of + the "=" normal mode command). + e[xprreg] show expression register history (see + description of Ctrl+R = in command-line mode). + See "Menus and dialogs" section for controls. + + :histnext + + :histnext + same as . The main use case for this command is to work + around the common pain point of and being the same + ASCII character: one could alter the terminal emulator settings + to emit, for example, the `F1` keycode when Ctrl-I is pressed, + then `:noremap :histnext` in vifm, add "t" flag to the + 'cpoptions', and thus have both and working as + expected. + + :histprev + + :histprev + same as . + + :if + + :if {expr1} + start conditional block. Commands are executed until next + matching :elseif, :else or :endif command if {expr1} evaluates + to non-zero, otherwise they are ignored. See also help on :else + and :endif commands. + + Example: + + if $TERM == 'screen.linux' + highlight CurrLine ctermfg=lightwhite ctermbg=lightblack + elseif $TERM == 'tmux' + highlight CurrLine cterm=reverse ctermfg=black ctermbg=white + else + highlight CurrLine cterm=bold,reverse ctermfg=black ctermbg=white + endif + + :invert + + :invert [f] + invert file name filter. + + :invert? [f] + show current filter state. + + :invert s + invert selection. + + :invert o + invert sorting order of the primary sorting key. + + :invert? o + show sorting order of the primary sorting key. + + :jobs + + :jobs display menu of current backgrounded processes. See "Menus and + dialogs" section for controls. + + :keepsel + + :keepsel [command...] + preserve selection during some :command by default. Note that + this doesn't save and restore selection to preserve it no matter + what, but precludes its clearing at the end of a command and + thus won't help if selection is cleared explicitly during + operation. + + Example: + + :keepsel view + + :let + + :let $ENV_VAR = + set an environment variable. Warning: setting environment + variable to an empty string on Windows removes it. + + :let $ENV_VAR .= + append value to environment variable. + + :let &[l:|g:]opt = + sets option value. + + :let &[l:|g:]opt .= + append value to string option. + + :let &[l:|g:]opt += + increasing option value, adding sub-values. + + :let &[l:|g:]opt -= + decreasing option value, removing sub-values. + + Where could be a single-quoted string, double-quoted string, an + environment variable, function call or a concatanation of any of them + in any order using the '.' operator. Any whitespace is ignored. + + :locate + + :locate filename + use "locate" command to create a menu of filenames. Selecting a + file from the menu will reload the current file list in vifm to + show the selected file. By default the command relies on the + external "locate" utility (it's assumed that its database is + already built), which can be customized by altering value of the + 'locateprg' option. See "Menus and dialogs" section for + controls. + + :locate + repeat last :locate command. + + :ls + + :ls lists windows of active terminal multiplexer (only when terminal + multiplexer is used). This is achieved by issuing proper + command for active terminal multiplexer, thus the list is not + handled by vifm. + + :lstrash + + :lstrash + display a menu with list of files in trash. Each element of the + list is original path of a deleted file, thus the list can + contain duplicates. See "Menus and dialogs" section for + controls. + + :mark + + :[range]ma[rk][?] x [/full/path] [filename] + Set mark x (a-zA-Z0-9) at /full/path and filename. By default + current directory is being used. If no filename was given and + /full/path is current directory then last file in [range] is + used. Using of macros is allowed. Question mark will stop + command from overwriting existing marks. + + :marks + + :marks create a pop-up menu of marks. See "Menus and dialogs" section + for controls. + + :marks list ... + display the contents of the marks that are mentioned in list. + + :media + + :media only for *nix + display media management menu. See "Menus and dialogs" section + for controls. See also 'mediaprg' option. + + :messages + + :mes[sages] + shows previously given messages (up to 50). + + :mkdir + + :[line]mkdir[!] dir ... + create directories at specified paths. The [line] can be used + to pick node in a tree-view. "!" means make parent directories + as needed. Macros are expanded. + + :move + + :[range]m[ove][!?][ &] + move files to directory of other view. With "?" prompts for + destination file names in an editor. "!" forces overwrite. + + :[range]m[ove][!] path[ &] + move files to directory specified with the path (absolute or + relative to directory of other view). "!" forces overwrite. + + :[range]m[ove][!] name1 name2...[ &] + move files to directory of other view giving each next file a + corresponding name from the argument list. "!" forces + overwrite. + + :[range]m[ove][!?] -skip ...[ &] + see "-skip parameter" section below. + + :nohlsearch + + :noh[lsearch] + clear selection in current pane. + + :normal + + :norm[al][!] commands + execute normal mode commands. If "!" is used, user defined + mappings are ignored. Unfinished last command is aborted as if + or was typed. A ":" should be completed as well. + Commands can't start with a space, so put a count of 1 (one) + before it. + + :only + + :on[ly] + switch to a one window view. + + :plugin + + :plugin load + loads all plugins. To be used in configuration file to manually + load plugins at an earlier point. The plugins can be loaded + only once, additional calls will do nothing. + + :plugin blacklist {plugin} + adds {plugin} to the list of plugins to be ignored. + + :plugin whitelist {plugin} + adds {plugin} to the list of plugins to be loaded while ignoring + all other plugins. This list should normally be empty. + + :plugins + + :plugins + open plugins menu. See "Menus and dialogs" section for + controls. + + :popd + + :popd remove pane directories from stack. + + :pushd + + :pushd[!] /curr/dir [/other/dir] + add pane directories to stack and process arguments like :cd + command. + + :pushd exchange the top two items of the directory stack. + + :put + + :[line]pu[t][!] [reg] [ &] + put files from specified register (" by default) into current + directory. The [line] can be used to pick node in a tree-view. + "!" moves files "!" moves files from their original location + instead of copying them. During this operation no confirmation + dialogs will be shown, all checks are performed beforehand. + + :pwd + + :pw[d] show the present working directory. + + :qall + + :qa[ll][!] + exit vifm (add ! to skip saving changes and checking for active + backgrounded commands). + + :quit + + :q[uit][!] + if there is more than one tab, close the current one, otherwise + exit vifm (add ! to skip saving state and checking for active + backgrounded commands). + + :redraw + + :redr[aw] + redraw the screen immediately. + + :regedit + + :rege[dit] [{reg}] + edit register contents using external editor. If {reg} is + omitted, unnamed register will be edited by default. Edited + paths are normalized (no extra `.`, `..`, `/`, etc.) and all + relative paths are treated as starting in the directory of the + current view. + + :registers + + :reg[isters] + display menu with registers content. + + :reg[isters] list ... + display the contents of the numbered and named registers that + are mentioned in list (for example "az to display "", "a and "z + content). + + :regular + + :regular + + switch to regular view leaving custom view. + :rename + + :[range]rename[!] + rename files by editing their names in an editor. "!" renames + files recursively in subdirectories. See "External Renaming" + section. + + :[range]rename name1 name2... + rename each of selected files to a corresponding name. + + :restart + + :restart + free a lot of things (histories, commands, etc.), reread + vifminfo, vifmrc and session files and run startup commands + passed in the argument list, thus losing all unsaved changes + (e.g. recent history or keys mapped after starting this + instance). Session that wasn't yet stored gets reset. + + While many things get reset, some basic UI state and current + locations are preserved, including tabs. + + :restart full + variation of :restart that makes no attempt to preserve + anything. + + :restore + + :[range]restore + restore file from trash directory, doesn't work outside one of + trash directories. See "Trash directory" section below. + + :rlink + + :[range]rlink[!?] + create relative symbolic links to files in directory of other + view. With "?" prompts for destination file names in an editor. + "!" forces overwrite. + + :[range]rlink[!] path + create relative symbolic links of files in directory specified + with the path (absolute or relative to directory of other view). + "!" forces overwrite. + + :[range]rlink[!] name1 name2... + create relative symbolic links of files in directory of other + view giving each next link a corresponding name from the + argument list. "!" forces overwrite. + + :[range]rlink[!?] -skip ...[ &] + see "-skip parameter" section below. + + :screen + + :screen + toggle whether to use the terminal multiplexer or not. + A terminal multiplexer uses pseudo terminals to allow multiple + windows to be used in the console or in a single xterm. + Starting vifm from terminal multiplexer with appropriate support + turned on will cause vifm to open a new terminal multiplexer + window for each new file edited or program launched from vifm. + This requires screen version 3.9.9 or newer for the screen -X + argument or tmux (1.8 version or newer is recommended). + + :screen! + enable integration with terminal multiplexers. + + :screen? + display whether integration with terminal multiplexers is + enabled. + + Note: the command is called screen for historical reasons (when tmux + wasn't yet supported) and might be changed in future releases, or get + an alias. + + :select + + :[range]select + select files in the given range (current file if no range is + given). + + :select {pattern} + select files that match specified pattern. Possible {pattern} + forms are described in "Patterns" section below. Trailing slash + for directories is taken into account, so `:select! */ | invert + s` selects only files. + + :select //[iI] + same as item above, but reuses last search pattern. + + :select !{external command} + select files from the list supplied by external command. Files + are matched by full paths, relative paths are converted to + absolute ones beforehand. + + :[range]select! [{pattern}] + same as above, but resets previously selected items before + proceeding. + + :session + + :session? + print name of the current session. + + :session + detach current session without saving it. Resets v:session. + + :session name + create or load and switch to a session with the specified name. + Name can't contain slashes. Session active at the moment is + saved before the switch. Session is also automatically saved + when quiting the application in usual ways. Sets v:session. + + :session - + switch to a previous session if it still exists (wasn't removed + or detached from without saving). + + :set + + :se[t] display all options that differ from their default value. + + :se[t] all + display all options. + + :se[t] opt1=val1 opt2='val2' opt3="val3" ... + sets given options. For local options both values are set. + You can use following syntax: + - for all options - option, option? and option& + - for boolean options - nooption, invoption and option! + - for integer options - option=x, option+=x and option-=x + - for string options - option=x and option+=x + - for string list options - option=x, option+=x, option-=x and + option^=x + - for enumeration options - option=x, option+=x and option-=x + - for set options - option=x, option+=x, option-=x and + option^=x + - for charset options - option=x, option+=x, option-=x and + option^=x + + the meaning: + - option - turn option on (for boolean) or print its value (for + all others) + - nooption - turn option off + - invoption - invert option state + - option! - invert option state + - option? - print option value + - option& - reset option to its default value + - option=x or option:x - set option to x + - option+=x - add/append x to option + - option-=x - remove (or subtract) x from option + - option^=x - toggle x presence among values of the option + + Option name can be prepended and appended by any number of + whitespace characters. + + :setglobal + + :setg[lobal] + display all global options that differ from their default value. + + :setg[lobal] all + display all global options. + + :setg[lobal] opt1=val1 opt2='val2' opt3="val3" ... + same as :set, but changes/prints only global options or global + values of local options. Changes to the latter might be not + visible until directory is changed. + + :setlocal + + :setl[ocal] + display all local options that differ from their default value. + + :setl[ocal] all + display all local options. + + :setl[ocal] opt1=val1 opt2='val2' opt3="val3" ... + same as :set, but changes/prints only local values of local + options. + + :shell + + :sh[ell][!] + start a shell in current directory. "!" suppresses spawning + dedicated window of terminal multiplexer for a shell. To make + vifm adaptive to environment it uses $SHELL if it's defined, + otherwise 'shell' value is used. + + + :siblnext + + :[count]siblnext[!] + + change directory to [count]th next sibling directory after + current path using value of global sort option of current pane. + "!" enables wrapping. + + For example, say, you're at /boot and root listing starts like + this: + + bin/ + boot/ + dev/ + ... + + Issuing :siblnext will navigate to /dev. + + + :siblprev + + :[count]siblprev[!] + same as :siblnext, but in the opposite direction. + + :sort + + :sor[t] + display dialog with different sorting methods, where one can + select the primary sorting key. When 'viewcolumns' options is + empty and 'lsview' is off, changing primary sorting key will + also affect view look (in particular the second column of the + view will be changed). See "Menus and dialogs" section for + controls. + + :source + + :so[urce] file + read command-line commands from the file. + + :split + + :sp[lit] + switch to a two window horizontal view. + + :sp[lit]! + toggle horizontal window splitting. + + :sp[lit] path + splits the window horizontally to show both file directories. + Also changes other pane to path (absolute or relative to current + directory of active pane). + + :stop + + :st[op] + suspend vifm (same as pressing Ctrl-Z). Does nothing if this + instance isn't running in a shell. The command exists to allow + mapping to the action of Ctrl-Z. + + :substitute + + :[range]s[ubstitute]/pattern/string/[flags] + for each file in range replace a match of pattern with string. + + String can contain \0...\9 to link to capture groups (\0 - all match, + \1 - first group, etc.). + + Pattern is stored in search history. + + Available flags: + + - i - ignore case (the 'ignorecase' and 'smartcase' options are not + used) + + - I - don't ignore case (the 'ignorecase' and 'smartcase' options are + not used) + + - g - substitute all matches in each file name (each g toggles this) + + :[range]s[ubstitute]/pattern + substitute pattern with an empty string. + + :[range]s[ubstitute]//string/[flags] + use last pattern from search history. + + :[range]s[ubstitute] + repeat previous substitution command. + + :sync + + :sync [relative path] + change the other pane to the current pane directory or to some + path relative to the current directory. Using macros is + allowed. + + :sync! change the other pane to the current pane directory and + synchronize cursor position. If current pane displays custom + list of files, position before entering it is used (current one + might not make any sense). + + + :sync! [location | cursorpos | localopts | filters | filelist | tree | + all]... + change enumerated properties of the other pane to match + corresponding properties of the current pane. Arguments have + the following meanings: + + - location - current directory of the pane; + + - cursorpos - cursor position (doesn't make sense without + "location"); + + - localopts - all local options; + + - filters - all filters; + + - filelist - list of files for custom view (implies + "location"); + + - tree - tree structure for tree view (implies "location"); + + - all - all of the above. + + :tabclose + + :tabc[lose] + close current tab, unless it's the only one open at current + scope. + + :tabmove + + :tabm[ove] [N] + without the argument or with `$` as the argument, current tab + becomes the last tab. With the argument, current tab is moved + after the tab with the specified number. Argument of `0` moves + current tab to the first position. + + :tabname + + :tabname [name] + set, update or reset (when no argument is provided) name of the + current tab. + + :tabnew + + :tabnew [path] + create new tab. Accepts optional path for the new tab. Macros + and environment variables are expanded. + + :tabnext + + :tabn[ext] + switch to the next tab (wrapping around). + + :tabn[ext] {n} + go to the tab number {n}. Tab numeration starts with 1. + + :tabonly + + :tabo[nly] + close all tabs but the current one. Closes pane tabs only at + the active side. + + :tabprevious + + :tabp[revious] + switch to the previous tab (wrapping around). + + :tabp[revious] {n} + go to the {n}-th previous tab. Note that :tabnext handles its + argument differently. + + :touch + + :[line]touch file... + create files at specified paths. Aborts on errors. Doesn't + update time of existing files. The [line] can be used to pick + node in a tree-view. Macros are expanded. + + :tr + + :[range]tr/pattern/string/ + for each file in range transliterate the characters which appear + in pattern to the corresponding character in string. When + string is shorter than pattern, it's padded with its last + character. + + :trashes + + :trashes + lists all valid trash directories in a menu. Only non-empty and + writable trash directories are shown. This is exactly the list + of directories that are cleared when :empty command is executed. + + :trashes? + same as :trashes, but also displays size of each trash + directory. + + :tree + + :tree turn pane into tree view with current directory as its root. + The tree view is implemented on top of a custom view, but is + automatically kept in sync with file system state and considers + all the filters. Thus the structure corresponds to what one + would see on visiting the directories manually. As a special + case for trees built out of custom view file-system tracking + isn't performed. + + To leave tree view go up from its root or use gh at any level of + the tree. Any command that changes directory will also do, in + particular, `:cd ..`. + + Tree structure is incompatible with alternative representations, + so values of 'lsview' and 'millerview' options are ignored. + + The "depth" argument specifies nesting level on which loading of + subdirectories won't happen (they will be folded). Values start + at 1. + + :tree! toggle current view in and out of tree mode. + + :undolist + + :undol[ist] + display list of latest changes. Use "!" to see actual commands. + See "Menus and dialogs" section for controls. + + :unlet + + :unl[et][!] $ENV_VAR1 $ENV_VAR2 ... + remove environment variables. Add ! to omit displaying of + warnings about nonexistent variables. + + :unselect + + :[range]unselect + unselect files in the given range (current file if no range is + given). + + :unselect {pattern} + unselect files that match specified pattern. Possible {pattern} + forms are described in "Patterns" section below. Trailing slash + for directories is taken into account, so `:unselect */` + unselects directories. + + :unselect !{external command} + unselect files from the list supplied by external command. + Files are matched by full paths, relative paths are converted to + absolute ones beforehand. + + :unselect //[iI] + same as item above, but reuses last search pattern. + + :version + + :ve[rsion] + show menu with version information. + + :vifm + + :vifm same as :version. + + :view + + :vie[w] + toggle on and off the quick file view (preview of file's + contents). See also 'quickview' option. + + :vie[w]! + turn on quick file view if it's off. + + :volumes + + :volumes + only for MS-Windows + display menu with volume list. Hitting l (or Enter) key opens + appropriate volume in the current pane. See "Menus and dialogs" + section for controls. + + :vsplit + + :vs[plit] + switch to a two window vertical view. + + :vs[plit]! + toggle window vertical splitting. + + :vs[plit] path + split the window vertically to show both file directories. And + changes other pane to path (absolute or relative to current + directory of active pane). + + :wincmd + + :[count]winc[md] {arg} + same as running Ctrl-W [count] {arg}. + + :windo + + :windo [command...] + execute command for each pane (same as :winrun % command). + + :winrun + + :winrun type [command...] + execute command for pane(s), which is determined by type + argument: + - ^ - top-left pane + - $ - bottom-right pane + - % - all panes + - . - current pane + - , - other pane + + :write + + :w[rite] + write current state to vifminfo and session files (if a session + is active). + + :wq + + :wq[!] same as :quit, but ! disables only the check of backgrounded + commands, while state of the application is always written. + :wqall + + :wqa[ll][!] + same as :qall, but ! disables only the check of backgrounded + commands, while state of the application is always written. + + :xall + + :xa[ll][!] + same as :qall. + + :xit + + :x[it][!] + same as :quit. + + :yank + + :[range]y[ank] [reg] [count] + will yank files to the reg register. + + :map lhs rhs + + :map lhs rhs + map lhs key sequence to rhs in normal and visual modes. + + :map! lhs rhs + map lhs key sequence to rhs in command line mode. + + + :amap :cmap :dmap :mmap :nmap :qmap + :vmap + + :amap lhs rhs + map lhs to rhs in navigation mode. + + :cm[ap] lhs rhs + map lhs to rhs in command line mode. + + :dm[ap] lhs rhs + map lhs to rhs in dialog modes. + + :mm[ap] lhs rhs + map lhs to rhs in menu mode. + + :nm[ap] lhs rhs + map lhs to rhs in normal mode. + + :qm[ap] lhs rhs + map lhs to rhs in view mode. + + :vm[ap] lhs rhs + map lhs to rhs in visual mode. + + + :*map + + :amap list all maps in navigation mode. + + :cm[ap] + list all maps in command line mode. + + :dm[ap] + list all maps in dialog modes. + + :mm[ap] + list all maps in menu mode. + + :nm[ap] + list all maps in normal mode. + + :qm[ap] + list all maps in view mode. + + :vm[ap] + list all maps in visual mode. + + :*map beginning + + :amap beginning + list all maps in navigation mode that start with the beginning. + + :cm[ap] beginning + list all maps in command line mode that start with the + beginning. + + :dm[ap] beginning + list all maps in dialog modes that start with the beginning. + + :mm[ap] beginning + list all maps in menu mode that start with the beginning. + + :nm[ap] beginning + list all maps in normal mode that start with the beginning. + + :qm[ap] beginning + list all maps in view mode that start with the beginning. + + :vm[ap] beginning + list all maps in visual mode that start with the beginning. + + :noremap + + :no[remap] lhs rhs + map the key sequence lhs to rhs for normal and visual modes, but + don't expand user mappings in rhs. + + :no[remap]! lhs rhs + map the key sequence lhs to rhs for command line mode, but don't + expand user mappings in rhs. + + :anoremap :cnoremap :dnoremap :mnoremap :nnoremap :qnoremap + :vnoremap + + :anoremap lhs rhs + map the key sequence lhs to rhs for navigation mode, but don't + expand user mappings in rhs. + + :cno[remap] lhs rhs + map the key sequence lhs to rhs for command line mode, but don't + expand user mappings in rhs. + + :dn[oremap] lhs rhs + map the key sequence lhs to rhs for dialog modes, but don't + expand user mappings in rhs. + + :mn[oremap] lhs rhs + map the key sequence lhs to rhs for menu mode, but don't expand + user mappings in rhs. + + :nn[oremap] lhs rhs + map the key sequence lhs to rhs for normal mode, but don't + expand user mappings in rhs. + + :qn[oremap] lhs rhs + map the key sequence lhs to rhs for view mode, but don't expand + user mappings in rhs. + + :vn[oremap] lhs rhs + map the key sequence lhs to rhs for visual mode, but don't + expand user mappings in rhs. + + :unmap + + :unm[ap] lhs + remove user mapping of lhs from normal and visual modes. + + :unm[ap]! lhs + remove user mapping of lhs from command line mode. + + :aunmap :cunmap :dunmap :munmap :nunmap :qunmap + :vunmap + + :aunmap lhs + remove user mapping of lhs from navigation mode. + + :cu[nmap] lhs + remove user mapping of lhs from command line mode. + + :du[nmap] lhs + remove user mapping of lhs from dialog modes. + + :mu[nmap] lhs + remove user mapping of lhs from menu mode. + + :nun[map] lhs + remove user mapping of lhs from normal mode. + + :qun[map] lhs + remove user mapping of lhs from view mode. + + :vu[nmap] lhs + remove user mapping of lhs from visual mode. + +Ranges + The ranges implemented include: + 2,3 - from second to third file in the list (including it) + % - the entire directory. + . - the current position in the filelist. + $ - the end of the filelist. + 't - the mark position t. + + Examples: + + :%delete + + would delete all files in the directory. + + :2,4delete + + would delete the files in the list positions 2 through 4. + + :.,$delete + + would delete the files from the current position to the end of the + filelist. + + :3delete4 + + would delete the files in the list positions 3, 4, 5, 6. + + If a backward range is given :4,2delete - an query message is given and + user can chose what to do next. + + The builtin commands that accept a range are :d[elete] and :y[ank]. + +:command parameters + Some of the command-line commands accept parameters in the form of + `-paramname`. Arguments of such commands can be split into two groups: + parameters and positional arguments. Items from the two groups cannot + be interleaved and parameters always come first. List of parameters is + terminated implicitly by the first argument that doesn't start with a + dash ("-") or explicitly via "--" separator (needs to be a separate + argument), which is just discarded. These strict rules allow arbitrary + positional arguments, such as file names that start with a dash. + + + -skip parameter + This parameter makes :copy, :move, :alink and :rlink + automatically skip source files that already exist at the + destination rather than refusing to perform the operation. + +Command macros + The command macros may be used in user commands. + + %a User arguments. When user arguments contain macros, they are + expanded before preforming substitution of %a. + + %c %"c The current file under the cursor. + + %C %"C The current file under the cursor in the other directory. + + %f %"f All of the selected files or the current file, but see + "Selection" section below. + + %F %"F Same as %f, %"f, but for the inactive pane. + + %l %"l List of selected files. Unlike %f from above, this is only for + explicit selection (i.e., not via a range) and is empty if no + files are selected. + + %L %"L Same as %l, %"l, but for the inactive pane. + + %b %"b Same as %f %F. + + %d %"d Full path to current directory. + + %D %"D Full path to other file list directory. + + %rx %"rx + Full paths to files in the register {x}. In case of invalid + symbol in place of {x}, it's processed with the rest of the line + and default register is used. + + %m Show command output in a menu. + + %M Same as %m, but l (or Enter) key is handled like for :locate and + :find commands. + + %u Process command output as list of paths and compose custom view + out of it. + + %U Same as %u, but implies less list updates inside vifm, which is + absence of sorting at the moment. + + %Iu Same as %u, but gives up terminal before running external + command. + + %IU Same as %U, but gives up terminal before running external + command. + + %S Show command output in the status bar. + + %q Redirect command output to quick view, which is activated if + disabled. + + %s Execute command in horizontally split window of active terminal + multiplexer (ignored if not running inside one). + + %v Same as %s, but splits vertically. + + %n Forbid use of terminal multiplexer to run the command. + + %N Do not detach viewer from terminal session (keeps `/dev/tty` + available) or process group (keeps the command in the set of + foreground clients of the terminal). + + %i Run in background and suppress error dialogs, but collect errors + internally for viewing via :jobs menu. + + %Pl Pipe list of files to standard input of a command. + + %Pz Same as %Pl, but separates paths by null ('\0') character. + + %pc Marks the end of the main command and the beginning of the clear + command for graphical preview, which is invoked on closing + preview of a file. + + %pd Marks a preview command as one that directly communicates with + the terminal. Beware that this is for things like sixel which + are self-contained sequences that depend only on current cursor + position, using this with anything else is likely to mangle + terminal state. + + %pu Uncached preview. Intended to be used for commands that just + send file path somewhere for preview. + + The following dimensions and coordinates are in characters: + + %px x coordinate of top-left corner of preview area. + + %py y coordinate of top-left corner of preview area. + + %pw width of preview area. + + %ph height of preview area. + + + Use %% if you need to put a percent sign in your command. + + Note that %i, %Iu, %IU, %m, %M, %n, %q, %s, %S, %u, %U and %v macros + are mutually exclusive. Only the last one of them on the command will + take effect. + + Note that %Pl and %Pz are mutually exclusive. Only the last one of + them on the command will take effect. + + You can use file name modifiers after %c, %C, %f, %F, %b, %d and %D + macros. Supported modifiers are: + + - :p - full path + + - :u - UNC name of path (e.g. "\\server" in + "\\server\share"), Windows only. Expands to current computer name + for not UNC paths. + + - :~ - relative to the home directory + + - :. - relative to current directory + + - :h - head of the file name + + - :t - tail of the file name + + - :r - root of the file name (without last extension) + + - :e - extension of the file name (last one) + + - :s?pat?sub? - substitute the first occurrence of pat with sub. + You can use any character for '?', but it must not occur in pat or + sub. + + - :gs?pat?sub? - like :s, but substitutes all occurrences of pat with + sub. + + See ':h filename-modifiers' in Vim's documentation for the detailed + description. + + Using %x means expand corresponding macro escaping all characters that + have special meaning. And %"x means using of double quotes and escape + only backslash and double quote characters, which is more useful on + Windows systems. + + Position and quantity (if there is any) of %m, %M, %S or %s macros in + the command is unimportant. All their occurrences are removed from the + resulting command. + + %c and %f macros are expanded to file names only, when %C and %F are + expanded to full paths. %f and %F follow this in %b too. + + :com move mv %f %D + set the :move command to move all of the files selected in the + current directory to the other directory. + + The %a macro is replaced with any arguments given to an alias command. + All arguments are considered optional. + :com lsl !!ls -l %a - set the lsl command to execute ls -l with + or without an argument. + + :lsl + will list the directory contents of the current directory. + + :lsl filename + will list only the given filename. + + The macros can also be used in directly executing commands. ":!mv %f + %D" would move the current directory selected files to the other + directory. + + Appending & to the end of a command causes it to be executed in the + background. Typically you want to run two kinds of external commands + in the background: + + - GUI applications that doesn't fork thus block vifm (:!sxiv %f &); + + - console tools that do not work with terminal (:!mv %f %D &). + + You don't want to run terminal commands, which require terminal input + or output something in background because they will mess up vifm's TUI. + Anyway, if you did run such a command, you can use Ctrl-L key to update + vifm's TUI. + + Rewriting the example command with macros given above with + backgrounding: + + %m, %M, %s, %S, %u and %U macros cannot be combined with background + mark (" &") as it doesn't make much sense. + +Command backgrounding + Copy and move operation can take a lot of time to proceed. That's why + vifm supports backgrounding of this two operations. To run :copy, + :move or :delete command in the background just add " &" at the end of + a command. + + For each background operation a new thread is created. Job + cancellation can be requested in the :jobs menu via dd shortcut. + + You can see if command is still running in the :jobs menu. + Backgrounded commands have progress instead of process id at the line + beginning. + + Background operations cannot be undone. + +Cancellation + Note that cancellation works somewhat different on Windows platform due + to different mechanism of break signal propagation. One also might + need to use Ctrl-Break shortcut instead of Ctrl-C. + + There are two types of operations that can be cancelled: + + - file system operations; + + - mounting with FUSE (but not unmounting as it can cause loss of + data); + + - calls of external applications. + + Note that vifm never terminates applications, it sends SIGINT signal + and lets the application quit normally. + + When one of set of operations is cancelled (e.g. copying of 5th file of + 10 files), further operations are cancelled too. In this case undo + history will contain only actually performed operations. + + Cancelled operations are indicated by "(cancelled)" suffix appended to + information message on status bar. + + File system operations + + Currently the following commands can be cancelled: :alink, :chmod, + :chown, :clone, :copy, :delete, :mkdir, :move, :restore, :rlink, + :touch. File putting (on p/P key) can be cancelled as well. It's not + hard to see that these are mainly long-running operations. + + Cancelling commands when they are repeated for undo/redo operations is + allowed for convenience, but is not recommended as further undo/redo + operations might get blocked by side-effects of partially cancelled + group of operations. + + These commands can't be cancelled: :empty, :rename, :substitute, :tr. + + Mounting with FUSE + + It's not considered to be an error, so only notification on the status + bar is shown. + + External application calls + + Each of this operations can be cancelled: :apropos, :find, :grep, + :locate. + +Selection + If there is a selection, it's stashed before proceeding further unless + file under the cursor is part of that selection. This means that when + macros are expanded for :filetype or :filextype programs, `%f` and `%F` + become equivalent to `%c` and `%C` respectively if current file is not + selected. So you run selection by running one of selected files, + otherwise you're running a single file even if there are other selected + entries. + + When running a selection it must not include broken symbolic links, has + to be consistent and set of file handlers must be compatible. + Consistency means that selection contains either only directories + (including links to them) or only files, but not their mix. + + Compatibility is a more sophisticated check, but it's defined in a + natural way so that you get what you'd expect. The following + properties of selection are taken into account while checking it for + compatibility and deciding how to handle it: + + + 1. If there any files for which handler isn't defined, then all files + are opened using 'vicmd' or 'vixcmd'. + + + 2. If all handlers match the following criteria: + - backgrounded + - include `%c` and/or `%C` + - include neither `%f` nor `%F` + then each file is executed independently of the rest. + + + 3. If all handlers are equal, the common handler is executed. This + handler might ignore selection and process only file under the + cursor. + + + 4. Otherwise, an error is reported, because handlers differ and they + don't support parallel execution. + +Patterns + :highlight, :filetype, :filextype, :fileviewer commands and 'classify' + option support globs, regular expressions and mime types to match file + names or their paths. + + There are six possible ways to write a single pattern: + + 1. [!]{comma-separated-name-globs} + + 2. [!]{{comma-separated-path-globs}} + + 3. [!]/name-regular-expression/[iI] + + 4. [!]//path-regular-expression//[iI] + + 5. [!] + + 6. undecorated-pattern + + First five forms can include leading exclamation mark that negates + pattern matching. + + The last form is implicitly refers to one of others. :highlight does + not accept undecorated form, while :filetype, :filextype, :fileviewer, + :select, :unselect and 'classify' treat it as list of name globs. + + Path patterns receive absolute path of the file that includes its name + component as well. + + To combine several patterns (AND them), make sure you're using one of + the first five forms and write patterns one after another, like this: + {*.vifm} + Mind that if you make a mistake the whole string will be treated as the + sixth form. + + :filetype, :filextype and :fileviewer commands accept comma-separated + list of patterns instead of a single pattern, thus effectively handling + OR operation on them: + {*.vifm},{*.pdf} + Forms that accept comma-separated lists of patterns also process them + as lists of alternatives. + + Patterns with regular expressions + + Regular expression patterns are case insensitive by default, see + description of commands, which might override default behaviour. + + Flags of regular expressions mean the following: + - "i" makes filter case insensitive; + - "I" makes filter case sensitive. They can be repeated multiple + times, but the later one takes precedence (e.g. "iiiI" is equivalent + to "I" and "IiIi" is the same as "i"). + + There are no implicit `^` or `$`, so make sure to specify them + explicitly if the pattern should match the whole name or path. + + Patterns with globs + + "Globs" section below provides short overview of globs and some + important points that one needs to know about them. + + Patterns with mime-types + + Mime type matching is essentially globs matching applied to mime type + of a file instead of its name/path. Note: mime types aren't detected + on Windows. + + Examples + + Associate `evince` to PDF-files only inside `/home/user/downloads/` + directory (excluding its subdirectories): + + :filextype //^/home/user/downloads/[^/]*.pdf$// evince %f + + +Regular expressions + All regular expressions are modern/extended. See `man 7 regex` for + more details on what's supported. + + The following special sequences are additionally parsed: + - `\c` forces matching ignoring case of letters + - `\C` forces matching respecting case of letters + + `\c` and `\C` have the highest priority in determining whether case is + matched or not and exist to override 'ignorecase', 'smartcase' and + `i`/`I` flags when necessary. + + If multiple sequences are present, the one which appears later takes + precedence. + + Note that unlike in Vim character classes are affected by settings and + sequences that control case sensitivity in regular expressions. + +Globs + Globs are always case insensitive as it makes sense in general case. + + `*`, `?`, `[` and `]` are treated as special symbols in the pattern. + E.g. + + :filetype * less %c + + matches all files. One can use character classes for escaping, so + + :filetype [*] less %c + + matches only one file name, the one which contains only asterisk + symbol. + + `*` means any number of any characters (possibly an empty substring), + with one exception: asterisk at the pattern beginning doesn't match dot + in the first position. E.g. + + :fileviewer *.zip,*.jar zip -sf %c + + associates using of `zip` program to preview all files with `zip` or + `jar` extensions as listing of their content, but `.file.zip` won't be + matched. + + `?` means any character at this position. E.g. + + :fileviewer ?.out file %c + + calls `file` tool for all files which have exactly one character before + their extension (e.g. a.out, b.out). + + Square brackets designate character class, which means that whole + character class matches against any of characters listed in it. For + example + + :fileviewer *.[ch] highlight -O xterm256 -s dante --syntax c %c + + makes vifm call `highlight` program to colorize source and header files + in C language for a 256-color terminal. Equal command would be + + :fileviewer *.c,*.h highlight -O xterm256 -s dante --syntax c %c + + + Inside square brackets `^` or `!` can be used for symbol class + negotiation and the `-` symbol to set a range. `^` and `!` should + appear right after the opening square bracket. For example + + :filetype *.[!d]/ inspect_dir + + associates `inspect_dir` as additional handler for all directories that + have one character extension unless it's "d" letter. And + + :filetype [0-9].jpg sxiv + + associates `sxiv` picture viewer only for JPEG-files that contain + single digit in their name. + + If you need to include literal comma, which is normally separates + multiple globs, double it. + +:set options + Local options + These are kind of options that are local to a specific view. So + you can set ascending sorting order for left pane and descending + order for right pane. + + In addition to being local to views, each such option also has + two values: + + - local to current directory (value associated with current + location); + + - global to current directory (value associated with the + pane). + + The idea is that current directory can be made a temporary + exception to regular configuration of the view, until directory + change. Use :setlocal for that. :setglobal changes view value + not affecting settings until directory change. :set applies + changes immediately to all values. + + + 'aproposprg' + type: string + default: "apropos %a" + Specifies format for an external command to be invoked by the + :apropos command. The format supports expanding of macros, + specific for a particular *prg option, and %% sequence for + inserting percent sign literally. This option should include + the %a macro to specify placement of arguments passed to the + :apropos command. If the macro is not used, it will be + implicitly added after a space to the value of this option. + + 'autocd' + type: boolean + default: false + When enabled unknown command-line commands are interpreted as + implicit invocation of :cd with one argument and no escaping. + Tilde is expanded, but not macros or environment variables. + + 'autochpos' + type: boolean + default: true + When disabled vifm will set cursor to the first line in the view + after :cd and :pushd commands instead of saved cursor position. + Disabling this will also make vifm clear information about + cursor position in the view history on :cd and :pushd commands + (and on startup if 'autochpos' is disabled in the vifmrc). l + key in the ":history ." and ":trashes" menus are treated like + :cd command. This option also affects marks so that navigating + to a mark doesn't restore cursor position. + + When this option is enabled, more fine grained control over + cursor position is available via 'histcursor' option. + + 'columns' 'co' + type: integer + default: terminal width on startup + Terminal width in characters. + + 'caseoptions' + type: charset + default: "" + This option gives additional control over case sensitivity by + allowing overriding default behaviour to either always be case + sensitive or always be case insensitive. Possible values form + pairs of lower and upper case letters that configure specific + aspect of behaviour: + p - always ignore case of paths during completion. + P - always match case of paths during completion. + g - always ignore case of characters for f/F/;/,. + G - always match case of characters for f/F/;/,. + + At most one item of each pair takes affect, if both or more are + present, only the last one matters. When none of pair's + elements are present, the behaviour is default (depends on + operating system for path completion and on values of + 'ignorecase' and 'smartcase' options for file navigation). + + 'cdpath' 'cd' + type: string list + default: value of $CDPATH with commas instead of colons + Specifies locations to check on changing directory with relative + path that doesn't start with "./" or "../". When non-empty, + current directory is examined after directories listed in the + option. + + This option doesn't affect completion of :cd command. + + Example: + + set cdpath=~ + + This way ":cd bin" will switch to "~/bin" even if directory + named "bin" exists in current directory, while ":cd ./bin" + command will ignore value of 'cdpath'. + + 'chaselinks' + type: boolean + default: false + When enabled path of view is always resolved to real path (with + all symbolic links expanded). + + 'classify' + type: string list + default: ":dir:/" + Specifies file name prefixes and suffixes depending on file type + or name. The format is either of: + - [{prefix}]:{filetype}:[{suffix}] + - [{prefix}]::{pattern}::[{suffix}] + Possible {pattern} forms are described in "Patterns" section + above. + + Priority rules: + - file name patterns have priority over type patterns + - file name patterns are matched in left-to-right order of + their appearance in this option + + Either {prefix} or {suffix} or both can be omitted (which is the + default for all unspecified file types), this means empty + {prefix} and/or {suffix}. {prefix} and {suffix} should consist + of at most eight characters. Elements are separated by commas. + Neither prefixes nor suffixes are part of file names, so they + don't affect commands which operate on file names in any way. + Comma (',') character can be inserted by doubling it. List of + file type names can be found in the description of filetype() + function. + + 'confirm' 'cf' + type: set + default: delete,permdelete + Defines which operations require confirmation: + - delete - moving files to trash (on d or :delete); + - permdelete - permanent deletion of files (on D or :delete! + command or on undo/redo operation). + + 'cpoptions' 'cpo' + type: charset + default: "fst" + Contains a sequence of single-character flags. Each flag + enables behaviour of older versions of vifm. Flags: + - f - when included, running :filter command results in not + inverted (matching files are filtered out) and :filter! in + inverted (matching files are left) filter, when omitted, meaning + of the exclamation mark changes to the opposite; + - s - when included, yy, dd and DD normal mode commands act on + selection, otherwise they operate on current file only; + - t - when included, (thus ) behave as and + switches active pane, otherwise and go forward in + the view history. It's possible to make both and to + work as expected by setting up the terminal to emit a custom + sequence when is pressed; see :histnext for details. + + 'cvoptions' + type: set + default: + Specifies whether entering/leaving custom views triggers events + that normally happen on entering/leaving directories: + - autocmds - trigger autocommands on entering/leaving custom + views; + - localopts - reset local options on entering/leaving custom + views; + - localfilter - reset local filter on entering/leaving custom + views. + + 'deleteprg' + type: string + default: "" + Specifies program to run on files that are permanently removed. + When empty, files are removed as usual, otherwise this command + is invoked on each file by appending its name. If the command + doesn't remove files, they will remain on the file system. + + 'dirsize' + type: enumeration + default: size + Controls how size of directories is displayed in file views. + The following values are possible: + - size - size of directory (i.e., size used to store list of + files) + - nitems - number of entries in the directory (excluding . and + ..) + + Size obtained via ga/gA overwrites this setting so seeing count + of files and occasionally size of directories is possible. + + 'dotdirs' + type: set + default: nonrootparent,treeleafsparent + Controls displaying of dot directories. The following values + are possible: + - rootparent - show "../" in root directory of file system + - nonrootparent - show "../" in non-root directories of file + system + - treeleafsparent - show "../" in empty directories of tree + view + + Note that empty directories always contain "../" entry + regardless of value of this option. "../" disappears at the + moment at least one file is created. + + 'dotfiles' + type: boolean + default: false + Whether dot files are shown in the view. Can be controlled with + z* bindings. + + 'fastrun' + type: boolean + default: false + With this option turned on you can run partially entered + commands with unambiguous beginning using :! (e.g. :!Te instead + of :!Terminal or :!Te). + + 'fillchars' 'fcs' + type: string list + default: "" + Sets characters used to fill borders. + + item default used for + vborder:c ' ' left, middle and right vertical + borders + hborder:c '' middle horizontal border + + A null string for vborder is equivalent to a space. + + A null string for hborder omits the horizontal border. + + Example: + + set fillchars=vborder:".",hborder:"" + + 'findprg' + type: string + default: "find %s %a -print , -type d \( ! -readable -o ! + -executable \) -prune" + Specifies format for an external command to be invoked by the + :find command. The format supports expansion of macros specific + for this particular option and %% sequence for inserting percent + sign literally. The macros are: + + macro value/meaning + %s literal arguments of :find or + list of paths to search in + + %A empty or + literal arguments of :find + %a empty or + literal arguments of :find or + predicate followed by escaped arguments of :find + %p empty or + literal arguments of :find or + escaped arguments (parameters) of :find + + %u redirect output to custom view instead of showing a + menu + %U redirect output to unsorted custom view instead of + showing a menu + + Predicate in %a is "-name" on *nix and "-iname" on Windows. + + If both %u and %U are specified, %U is chosen. + + Some macros can be added implicitly: + - if %s isn't present, it's appended + - if neither of %a, %A and %p is present, %a is appended + - if neither of %s, %a, %A and %p is present, %s and %a are + appended in this order + + The macros slightly change their meaning depending on format of + :find's arguments: + - if the first argument points to an existing directory, %s is + assigned all arguments while %a, %A and %p are left empty + - otherwise: + - %s is assigned a dot (".") meaning current directory or + list of selected file names, if any + - %a, %A and %p are assigned literal arguments when first + argument starts with a dash ("-"), otherwise %a gets an escaped + version of the arguments with a predicate and %p contains + escaped version of the arguments + + Starting with Windows Server 2003 a `where` command is + available. One can configure vifm to use it in the following + way: + + set findprg="where /R %s %A" + + As the syntax of this command is rather limited, one can't use + :find command with selection of more than one item because the + command ignores all directory paths except for the last one. + + When using find port on Windows, another option is to setup + 'findprg' like this: + + set findprg="find %s %a" + + + 'followlinks' + type: boolean + default: true + Follow links on l or Enter. That is navigate to destination + file instead of treating the link as if it were target file. + Doesn't affects links to directories, which are always entered + (use gf key for directories). + + 'fusehome' + type: string + default: "($XDG_DATA_HOME/vifm | $VIFM)/fuse/" + Directory to be used as a root dir for FUSE mounts. Value of + the option can contain environment variables (in form + "$envname"), which will be expanded (prepend it with a slash to + prevent expansion). The value should expand to an absolute + path. + + If you change this option, vifm won't remount anything. It + affects future mounts only. See "Automatic FUSE mounts" section + below for more information. + + 'gdefault' 'gd' + type: boolean + default: false + When on, 'g' flag is on for :substitute by default. + + 'grepprg' + type: string + default: "grep -n -H -I -r %i %a %s" + Specifies format for an external command to be invoked by the + :grep command. The format supports expanding of macros, + specific for a particular *prg option, and %% sequence for + inserting percent sign literally. This option should include + the %i macro to specify placement of "-v" string when inversion + of results is requested, %a or %A macro to specify placement of + arguments passed to the :grep command and the %s macro to + specify placement of list of files to search in. If some of the + macros are not used, they will be implicitly added after a space + to the value of the 'grepprg' option in the following order: %i, + %a, %s. Note that when neither %a nor %A are specified, it's %a + which is added implicitly. + + Optional %u or %U macro could be used (if both specified %U is + chosen) to force redirection to custom or unsorted custom view + respectively. + + See 'findprg' option for description of difference between %a + and %A. + + Example of setup to use ack (http://beyondgrep.com/) instead of + grep: + + set grepprg='ack -H -r %i %a %s' + + or The Silver Searcher + (https://github.com/ggreer/the_silver_searcher): + + set grepprg='ag --line-numbers %i %a %s' + + + + 'histcursor' + type: set + default: startup,dirmark,direnter + Defines situations when cursor should be moved according to + directory history: + - startup - on loading file lists during startup + - dirmark - after navigating to a mark that doesn't specify + file + - direnter - on opening directory from a file list + + This option has no effect when 'autochpos' is disabled. + + Note that the list is not exhaustive and there are other + situations when cursor is positioned automatically. + + 'history' 'hi' + type: integer + default: 15 + Maximum number of stored items in all histories. + + 'hlsearch' 'hls' + type: boolean + default: true + Automatically select files that are search matches. + + 'iec' type: boolean + default: false + Use KiB, MiB, ... suffixes instead of K, M, ... when printing + size in human-friendly format. + + 'ignorecase' 'ic' + type: boolean + default: false + Ignore case in search patterns (:substitute, / and ? commands), + local filter (but not the rest of filters) and other things + detailed in the description of 'caseoptions'. + + 'incsearch' 'is' + type: boolean + default: false + When this option is set, search and view update for local filter + is be performed starting from initial cursor position each time + search pattern is changed. + + 'iooptions' + type: set + default: datasync + Controls details of file operations. The following values are + available: + - datasync - periodically synchronize writes on copying files + when 'syscalls' is set. + (This makes copying last as long as it takes to + actually write + data to the medium, which is slower than you might + expect; + however, this also prevents system hanging due to + filling memory + with file-system cache.) + - fastfilecloning - perform fast file cloning (copy-on-write), + when available (available on Linux and btrfs file system). + + 'laststatus' 'ls' + type: boolean + default: true + Controls if status bar is visible. + + 'lines' + type: integer + default: terminal height on startup + Terminal height in lines. + + 'locateprg' + type: string + default: "locate %a" + Specifies format for an external command to be invoked by the + :locate command. The format supports expanding of macros, + specific for a particular *prg option, and %% sequence for + inserting percent sign literally. This option should include + the %a macro to specify placement of arguments passed to the + :locate command. If the macro is not used, it will be + implicitly added after a space to the value of this option. + + Optional %u or %U macro could be used (if both specified %U is + chosen) to force redirection to custom or unsorted custom view + respectively. + + 'mediaprg' + type: string + default: path to bundled script that supports udevil, udisks and + udisks2 + (using udisks2 requires python with dbus module + installed) + OS X: path points to a python script that uses diskutil + {only for *nix} + Specifies command to be used to manage media devices. Used by + :media command. + + The command can be passed the following parameters: + - list -- list media + - mount {device} -- mount a device + - unmount {path} -- unmount given mount point + + The output of `list` subcommand is parsed in search of lines + that start with one of the following prefixes: + - device= - specifies device path (e.g., "/dev/sde") + - label= - specifies optional device label (e.g., "Memory + card") + - info= - specifies arbitrary text to display next to + device (by + default "[label]" is used, if label is + provided) + - mount-point= - specifies a mount point (can be absent or + appear more than once) + + All other lines are ignored. Each `device=` starts a new + section describing a device which should include two other + possible prefixes. + + `list` subcommand is assumed to always succeed, while exit code + of `mount` and `unmount` is taken into account to determine + whether operation was performed successfully. + + 'lsoptions' + type: string list + default: "" + scope: local + + Configures ls-like view. + + item used for + columncount fixed number of columns to display or 0 + transposed filling view grid by columns rather than by + lines + + + 'lsview' + type: boolean + default: false + scope: local + When this option is set, directory view will be displayed in + multiple columns with file names similar to output of `ls -x` + command. See "ls-like view" section below for format + description. This option has no effect if 'millerview' is on. + + 'milleroptions' + type: string list + default: "lsize:1,csize:1,rsize:1,rpreview:dirs" + scope: local + + Configures miller view. + + item default used for + lsize:num 0 left column + csize:num 1 center column (can't be disabled) + rsize:num 0 right column + rpreview:str dirs right column + + *size specifies ratios of columns. Each ratio is in the range + from 0 to 100 and values are adjusted to fit the limits. Zero + disables a column, but central (main) column can't be disabled. + + rpreview specifies what file-system objects should be previewed + in the right column and takes three values: dirs (only + directories), files (only files) or all. Neither value enables + preview of parent directory (".."). + + Example of two-column mode which is useful in combination with + :view command: + + set milleroptions=lsize:1,csize:2 + + + 'millerview' + type: boolean + default: false + scope: local + When this option is set, directory view will be displayed in + multiple cascading columns. Ignores 'lsview'. + + 'mintimeoutlen' + type: integer + default: 150 + The fracture of 'timeoutlen' in milliseconds that is waited + between subsequent input polls, which affects various + asynchronous operations (detecting changes made by external + applications, monitoring background jobs, redrawing UI). There + are no strict guarantees, however the higher this value is, the + less is CPU load in idle mode. + + 'mouse' + type: charset + default: "" + + Contains a sequence of single-character flags: + - a - all supported modes (a shorthand for all the rest and + future additions) + - c - command-line mode (includes navigation mode) + - m - menu mode + - n - normal mode + - q - view mode + - v - visual mode + + 'navoptions' + type: string list + default: "open:dirs" + + Configures behaviour of navigation mode. + + item default + open:str dirs + + The "open" item specifies what file-system objects should be + opened on Enter and can take two values: dirs (only directories) + or all. + + 'number' 'nu' + type: boolean + default: false + scope: local + Print line number in front of each file name when 'lsview' + option is turned off. Use 'numberwidth' to control width of + line number. Also see 'relativenumber'. + + 'numberwidth' 'nuw' + type: integer + default: 4 + scope: local + Minimal number of characters for line number field. + + 'previewoptions' + type: string list + default: "graphicsdelay:50000" + + Tweaks how previewing is done (in quick view, miller view's + column and view mode). + + item default meaning + graphicsdelay:num 0 delay before drawing graphics + (microseconds) + hardgraphicsclear unset redraw screen to get rid of + graphics + maxtreedepth:num 0 max number of levels in preview + tree + toptreestats unset show file counts before the tree + + graphicsdelay is needed if terminal requires some timeout before + it can draw graphics (otherwise it gets lost). + + hardgraphicsclear seems to be necessary to get rid of sixel + graphics in some terminals, where it otherwise lingers. This + can cause flicker on the screen due to erasure followed by + redrawing. + + 0 for maxtreedepth means "unlimited", 1 will only show selected + directory, 2 adds its children, and so forth. + + Default value is used when item is missing from the option. + + 'previewprg' + type: string + default: "" + scope: local + + External command to be used instead of preview programs + configured via :fileviewer command. + + Example: + + " always show git log in preview of files inside some repository + au DirEnter '~/git-repo/**/*' setl previewprg='git log --color -- %c 2>&1' + + 'quickview' + type: boolean + default: false + Whether quick view (:view) is currently active or not. + + 'relativenumber' 'rnu' + type: boolean + default: false + scope: local + Print relative line number in front of each file name when + 'lsview' option is turned off. Use 'numberwidth' to control + width of line number. Various combinations of 'number' and + 'relativenumber' lead to such results: + + nonumber number + + norelativenumber | first | 1 first + | second | 2 second + | third | 3 third + + relativenumber | 1 first | 1 first + | 0 second |2 second + | 1 third | 1 third + + + 'rulerformat' 'ruf' + type: string + default: "%l/%S " + Determines the content of the ruler. Its minimal width is 13 + characters and it's right aligned. Following macros are + supported: + %= - separation point between left and right aligned halves of + the line + %l - file number + %L - total number of files in view (including filtered out + ones) + %x - number of files excluded by filters + %0- - old name for %x macro + %P - percentage through file list (All, Top, xx% or Bot), + always 3 in length + %S - number of displayed files + %= - separation point between left and right align items + %% - literal percent sign + %[ - designates beginning of an optional block + %] - designates end of an optional block + + Percent sign can be followed by optional minimum field width. + Add '-' before minimum field width if you want field to be right + aligned. + + Optional blocks are ignored unless at least one macro inside of + them is expanded to a non-empty value. + + Example: + + set rulerformat='%2l-%S%[ +%x%]' + + 'runexec' + type: boolean + default: false + Run executable file on Enter, l or Right Arrow key. Behaviour + of the last two depends on the value of the 'lsview' option. + + 'scrollbind' 'scb' + type: boolean + default: false + When this option is set, vifm will try to keep difference of + scrolling positions of two windows constant. + + 'scrolloff' 'so' + type: integer + default: 0 + Minimal number of screen lines to keep above and below the + cursor. If you want cursor line to always be in the middle of + the view (except at the beginning or end of the file list), set + this option to some large value (e.g. 999). + + 'sessionoptions' 'ssop' + sessionoptions ssop + type: set + default: tui,state,tabs,savedirs,dhistory + An equivalent of 'vifminfo' for sessions, uses the same values. + When both options include the same value, data from session file + has higher priority (data from vifminfo isn't necessarily + completely discarded, instead it's merged with the state of a + session the same way state of multiple instances is merged on + exit). + + 'shell' 'sh' + type: string + default: $SHELL or "/bin/sh" or "cmd" (on MS-Windows) + Full path to the shell to use to run external commands. On *nix + a shell argument can be supplied. + + 'shellcmdflag' 'shcf' + type: string + default: "-c" or "/C" (for cmd.exe on MS-Windows) + Command-line option used to pass a command to 'shell'. It's + used in contexts where command comes from the user. + + Note that using this option to force interactive mode of the + shell is most likely a BAD IDEA. In general interactive host + and interactive child shell can't share the same terminal + session. You can't even run such a shell in background. + Consider writing a wrapper for your shell that preloads aliases + and commands without making the shell interactive and ending up + using it in a way it was not meant to be used. + + Note that this option is ignored when 'shell' is set to + PowerShell due to the internal use of `-encodedCommand`. + + 'shortmess' 'shm' + type: charset + default: "p" + Contains a sequence of single-character flags. Each flag + enables shortening of some message displayed by vifm in the TUI. + Flags: + - L - display only last directory in tab line instead of full + path. + - M - shorten titles in windows of terminal multiplexers + created by vifm down to file name instead of using full path. + - T - truncate status bar messages in the middle if they are + too long to fit on the command line. "..." will appear in the + middle. + - p - use tilde shortening in view titles. + + + 'showtabline' 'stal' + type: enumeration + default: multiple + Specifies when tab line should be displayed. Possible values: + - never - never display tab line + - multiple - show tab line only when there are at least two + tabs + - always - display tab line always + + Alternatively 0, 1 and 2 Vim-like values are also accepted and + correspond to "never", "multiple" and "always" respectively. + + 'sizefmt' + type: string list + default: "units:iec" + Configures the way size is formatted in human-friendly way. + + item value meaning + units: iec Use 1024 byte units (K or KiB, + etc.). + See 'iec' option. + si Use 1000 byte units (KB, etc.). + precision: i > 0 How many fraction digits to + consider. + {not set} Precision of 1 for integer part + < 10, + 0 otherwise (provides old + behaviour). + space {present} Insert space before unit + symbols. + This is the default. + nospace {present} Do not insert space before unit + symbols. + + Numbers are rounded from zero. Trailing zeros are dropped. + + Example: + + set sizefmt=units:iec,precision:2,nospace + + + 'slowfs' + type: string list + default: "" + only for *nix + A list of mounter fs name beginnings (first column in /etc/mtab + or /proc/mounts) or paths prefixes for fs/directories that work + too slow for you. This option can be used to stop vifm from + making some requests to particular kinds of file systems that + can slow down file browsing. Currently this means don't check + if directory has changed, skip check if target of symbolic links + exists, assume that link target located on slow fs to be a + directory (allows entering directories and navigating to files + via gf). If you set the option to "*", it means all the systems + are considered slow (useful for cygwin, where all the checks + might render vifm very slow if there are network mounts). + + Example for autofs root /mnt/autofs: + + set slowfs+=/mnt/autofs + + 'smartcase' 'scs' + type: boolean + default: false + Overrides the ignorecase option if a pattern contains at least + one upper case character. Only used when 'ignorecase' option is + enabled. + + 'sort' type: string list + default: +name on *nix and +iname on Windows + scope: local + Sets list of sorting keys (first item is primary key, second is + secondary key, etc.): + [+-]ext - extension of files and directories + [+-]fileext - extension of files only + [+-]name - name (including extension) + [+-]iname - name (including extension, ignores case) + [+-]type - file type + (dir/reg/exe/link/char/block/sock/fifo) + [+-]dir - directory grouping (directory < file) + [+-]gid - group id (*nix only) + [+-]gname - group name (*nix only) + [+-]mode - file type derived from its mode (*nix only) + [+-]perms - permissions string (*nix only) + [+-]uid - owner id (*nix only) + [+-]uname - owner name (*nix only) + [+-]nlinks - number of hard links (*nix only) + [+-]inode - inode number (*nix only) + [+-]size - size + [+-]nitems - number of items in a directory (zero for files) + [+-]groups - groups extracted via regexps from 'sortgroups' + [+-]target - symbolic link target (empty for other file + types) + [+-]atime - time accessed (e.g., read, executed) + [+-]ctime - time changed (changes in metadata, like mode) + [+-]mtime - time modified (when file contents is changed) + + Note: look for st_atime, st_ctime and st_mtime in "man 2 stat" + for more information on time keys. + + '+' means ascending sort for this key, and '-' means descending + sort. + + "dir" key is somewhat similar in this regard but it's added + implicitly: when "dir" is not specified, sorting behaves as if + it was the first key in the list. That's why if one wants + sorting algorithm to mix directories and files, "dir" should be + appended to sorting option, for example like this: + + set sort+=dir + + or + + set sort=-size,dir + + Value of the option is checked to include dir key and default + sorting key (name on *nix, iname on Windows). Here is what + happens if one of them is missing: + + - type key is added at the beginning; + + - default key is added at the end; + + all other keys are left untouched (at most they are moved). + + This option also changes view columns according to primary + sorting key set, unless 'viewcolumns' option is not empty. + + 'sortnumbers' + type: boolean + default: false + scope: local + Natural sort of (version) numbers within text. + + 'sortgroups' + type: string + default: "" + scope: local + Sets comma-separated list of regular expressions for group type + of sorting. Double the comma to insert it literally. + + The regular expressions are used to extract substrings of file + names to serve as keys for sorting. It is essentially a way to + ignore uninteresting parts of file names during sorting by name. + + Each expression should contain at least one group or its value + will be considered to be always empty. Also, only the first + match of regular expression is processed. + + The first group divides list of files into sub-groups, each of + which is then sorted by substrings extracted using second + regular expression and so on recursively. + + Example: + set sortgroups=-(todo|done).* + this would group files with "-done" in their names and files + with "-todo" separately. On ascending sorting, group containing + "-done" would appear before the other one. + + 'sortorder' + type: enumeration + default: ascending + Sets sort order for primary key: ascending, descending. + + 'statusline' 'stl' + type: string + default: "" + Determines the content of the status line (the line right above + command-line). Empty string means use same format like in + previous versions. Following macros are supported: + + - %N - line break (increases height of the status line + accordingly), ignores %[ %] blocks + + - %t - file name (considering value of the 'classify' option) + + - %T - symbolic link target (empty for other filetypes) + + - %f - file name relative to current directory (considers + 'classify') + + - %A - file attributes (permissions on *nix or properties on + Windows) + + - %o - file permissions in octal form on *nix (nothing on + Windows) + + - %u - user name or uid (if it cannot be resolved) + + - %g - group name or gid (if it cannot be resolved) + + - %s - file size in human readable format + + - %E - size of selected files in human readable format, same as + %s when no files are selected, except that it will never show + size of ../ in visual mode, since it cannot be selected + + - %d - file modification date (uses 'timefmt' option) + + - %D - path of the other pane for single-pane layout + + - %a - amount of free space available on current FS + + - %c - size of current FS + + - %z - short tips/tricks/hints that chosen randomly after one + minute period + + - %{} - evaluate arbitrary vifm expression '', e.g. + '&sort' + + - %* - resets or applies one of User1..User20 highlight groups; + reset happens when width field is 0 or not specified, one of + the groups gets picked when width field is in the range from 1 + to 20 + + - all 'rulerformat' macros + + Percent sign can be followed by optional minimum field width. + Add '-' before minimum field width if you want field to be right + aligned. + + On Windows file properties include the following flags (upper + case means flag is on): + A - archive + H - hidden + I - content isn't indexed + R - readonly + S - system + C - compressed + D - directory + E - encrypted + P - reparse point (e.g. symbolic link) + Z - sparse file + + Example without colors: + + set statusline=" %t%= %A %10u:%-7g %15s %20d %{&sort} " + + Example with colors: + + highlight User1 ctermbg=yellow + highlight User2 ctermbg=blue ctermfg=white cterm=bold + set statusline="%1* %-26t %2* %= %1* %A %2* %7u:%-7g %1* %-5s %2* %d " + + + 'suggestoptions' + type: string list + default: + Controls when, for what and how suggestions are displayed. The + following values are available: + - normal - in normal mode; + - visual - in visual mode; + - view - in view mode; + - otherpane - use other pane to display suggestions, when + available; + - delay[:num] - display suggestions after a small delay (to + do not annoy if you just want to type a fast shortcut consisting + of multiple keys), num specifies the delay in ms (500 by + default), 'timeoutlen' at most; + - keys - include shortcuts (commands and selectors); + - foldsubkeys - fold multiple keys with common prefix; + - marks - include marks; + - registers[:num] - include registers, at most num files (5 by + default). + + 'syncregs' + type: string + default: "" + Specifies identifier of group of instances that share registers + among each other. When several instances of vifm have this + option set to identical value, they automatically synchronize + contents of their registers on operations which use them. + + 'syscalls' + type: boolean + default: false + When disabled, vifm will rely on external applications to + perform file-system operations, otherwise system calls are used + instead (much faster and supports progress tracking). The + option should eventually be removed. Mostly *nix-like systems + are affected. + + 'tablabel' + type: string + default: "" + When non-empty and 'tabline' isn't set, determines format of the + main part of a single tab's label. + + When empty, tab label is set to either tab name for named tabs + or to view title (usually current path) for unnamed tabs. + + The following macros can appear in the format (see below for + what a flag is): + + - %C - flag of a current tab + + - %N - number of the tab + + - %T - flag of a tree mode + + - %c - description of a custom view + + - %n - name of the tab + + - %p - path of the view (handles filename modifiers) + + - %t - title of the view (affected by 'shortmess' flags) + + - %% - literal percent sign + + - %[ - designates beginning of an optional block + + - %] - designates end of an optional block + + - %*, %0* - resets highlighting + + - %1*-%20* - applies one of User1..User20 highlight groups + + In global tabs the view in bullets above refers to currently + active view of that tab. + + Flag macros are a special kind of macros that always expand to + an empty value and are meant to be used inside optional blocks + to control their visibility. + + Optional blocks are ignored unless at least one macro inside of + them is expanded to a non-empty value or is a set flag macro. + + " %[(%n)%] -- optional name of the tab + " %[ -- optional description of the view + " %[%T{tree}%] -- mark of tree mode + " %[{%c}%] -- description of custom view + " @ -- just an extra separator before the path + ' %] + " %p:t -- tail part of view's location + set tablabel=%[(%n)%]%[%[%T{tree}%]%[{%c}%]@%]%p:t + + 'tabline' 'tal' + type: string + default: "" + When non-empty, determines format of the tab line. Note that + mouse clicks won't be handled when this option is non-empty. + + The following macros can appear in the format: + + - %*, %0* - resets highlighting + + - %1*-%20* - applies one of User1..User20 highlight groups + + 'tabprefix' + type: string + default: "[%N:" + Determines prefix of a tab's label. Formatting is done as for + 'tablabel' option. + + 'tabscope' + type: enumeration + default: global + Picks style of tabs, which defines what a single tab contains. + Possible values: + - global - tab describes complete UI of two views and how they + are arranged + - pane - tab is located "inside" a pane and manages it and + quick view + + 'tabstop' 'ts' + type: integer + default: value from curses library + Number of spaces that a Tab in the file counts for. + + 'tabsuffix' + type: string + default: "]" + Determines suffix of a tab's label. Formatting is done as for + 'tablabel' option. + + 'timefmt' + type: string + default: "%m/%d %H:%M" + Format of time in file list. See "man 1 date" or "man 3 + strftime" for details. + + 'timeoutlen' 'tm' + type: integer + default: 1000 + The time in milliseconds that is waited for a mapped key in case + of already typed key sequence is ambiguous. + + 'title' + type: boolean + default: true when title can be restored, false otherwise + When enabled, title of the terminal or terminal multiplexer's + window is updated according to current location. Because not + all terminals support setting title, this works only if `$TERM` + value matches one of the following conditions: + - equals "xterm" or starts with "xterm-" + - equals "rxvt" or starts with "rxvt-" + - equals "screen" or starts with "screen-" + - equals "aterm" + - equals "Eterm" + + 'trash' + type: boolean + default: true + Use trash directory. See "Trash directory" section below. + + 'trashdir' + type: string + default: + on *nix: + "%r/.vifm-Trash-%u,$XDG_DATA_HOME/vifm/Trash,%r/.vifm-Trash" + or + "%r/.vifm-Trash-%u,$VIFM/Trash,%r/.vifm-Trash" + on Windows: + "%r/.vifm-Trash,$XDG_DATA_HOME/vifm/Trash" + or + "%r/.vifm-Trash,$VIFM/vifm/Trash" + List of trash directory path specifications, separated with + commas. Each list item either defines an absolute path to trash + directory or a path relative to a mount point root when list + element starts with "%r/". Value of the option can contain + environment variables (of form "$envname"), which will be + expanded (prepend $ with a slash to prevent expansion). + Environment variables are expanded when the option is set. + + On *nix, if element ends with "%u", the mark is replaced with + real user ID and permissions are set so that only that only + owner is able to use it. + Note that even this setup is not completely secure when combined + with "%r/" and it's overall safer to keep files in home + directory, but that implies cost of copying files between + partitions. + + When new file gets cut (deleted) vifm traverses each element of + the option in the order of their appearance and uses first trash + directory that it was able to create or that is already + writable. + + Default value tries to use trash directory per mount point and + falls back to trash common trash directory on failure. + + Will attempt to create the directory if it does not exist. See + "Trash directory" section below. + + 'tuioptions' 'to' + type: charset + default: "psv" + Each flag configures some aspect of TUI appearance. The flags + are: + p - when included: + * file list inside a pane gets additional single character + padding on left and right sides; + * quick view and view mode get single character padding. + s - when included, left and right borders (side borders, hence + "s" character) are visible. + u - use Unicode characters in the TUI (Unicode ellipsis instead + of "..."). + v - vary width of vertical middle border to equalize view sizes. + + Each pane title contains the path of the listed directory. If + too large, the path is truncated on the left for the active pane + and on the right for the other pane. This can be modified with: + + l - truncation is always on the left. + r - truncation is always on the right. + + 'undolevels' 'ul' + type: integer + default: 100 + Maximum number of changes that can be undone. Note that here + single file operation is used as a unit, not operation, i.e. + deletion of 101 files will exceed default limit. + + 'vicmd' + type: string + default: "vim" + Command used to edit files in various contexts. Ampersand sign + at the end (regardless whether it's preceded by space or not) + means backgrounding of command. + + Background flag is ignored in certain context where vifm waits + for the editor to finish. Such contexts include any command + that spawns editor to change list of file names or a command, + with :rename being one example. `-f` is also appended to + prevent forking in such cases, so the command needs to handle + the flag. + + Additionally `+{num}` and `+'call cursor()'` arguments are used + to position cursor when location is known. + + 'viewcolumns' + type: string + default: "" + scope: local + Format string containing list of columns in the view. When this + option is empty, view columns to show are chosen automatically + using sorting keys (see 'sort') as a base. Value of this option + is ignored if 'lsview' is set. See "Column view" section below + for format description. + + An example of setting the options for both panes (note :windo + command): + + windo set viewcolumns=-{name}..,6{size},11{perms} + + 'vixcmd' + type: string + default: value of 'vicmd' + Same as 'vicmd', but takes precedence over it when running + inside a graphical environment. + + 'vifminfo' + type: set + default: bookmarks,bmarks + Controls what will be saved in the $VIFM/vifminfo file. + + bmarks - named bookmarks (see :bmark command) + bookmarks - marks, except special ones like '< and '> + tui - state of the user interface (sorting, number of + windows, quick + view state, active view) + dhistory - directory history + state - file name and dot filters and terminal + multiplexers integration + state + cs - primary color scheme + savedirs - save last visited directory + chistory - command line history + ehistory - expression register history (see description of + Ctrl+R = + in command-line mode) + shistory - search history (/ and ? commands) + phistory - prompt history + fhistory - history of local filter (see description of the + "=" normal mode + command) + dirstack - directory stack overwrites previous stack, unless + stack of + current instance is empty + registers - registers content + tabs - global or pane tabs + options - all options that can be set with the :set command + (obsolete) + filetypes - associated programs and viewers (obsolete) + commands - user defined commands (see :command description) + (obsolete) + + 'vimhelp' + type: boolean + default: false + Use vim help format. + + 'wildmenu' 'wmnu' + type: boolean + default: false + Controls whether possible matches of completion will be shown + above the command line. + + 'wildstyle' + type: enumeration + default: bar + Picks presentation style of wild menu. Possible values: + - bar - one-line with left-to-right cursor + - popup - multi-line with top-to-bottom cursor + + 'wordchars' + type: string list + default: "1-8,14-31,33-255" (that is all non-whitespace + characters) + Specifies which characters in command-line mode should be + considered as part of a word. Value of the option is comma- + separated list of ranges. If both endpoints of a range match, + single endpoint is enough (e.g. "a" = "a-a"). Both endpoints + are inclusive. There are two accepted forms: character + representing itself or number encoding character according to + ASCII table. In case of ambiguous characters (dash, comma, + digit) use numeric form. Accepted characters are in the range + from 0 to 255. Any Unicode character with code greater than 255 + is considered to be part of a word. + + The option affects Alt-D, Alt-B and Alt-F, but not Ctrl-W. This + is intentionally to allow two use cases: + + - Moving by WORDS and deletion by words. + - Moving by words and deletion by WORDS. + + To get the latter use the following mapping: + + cnoremap + + Also used for abbreviations. + + 'wrap' type: boolean + default: true + Controls whether to wrap text in quick view. + + 'wrapscan' 'ws' + type: boolean + default: true + Searches wrap around end of the list. + +Mappings + A user mapping like `nnoremap lhs rhs` defines a substitution of the + left-hand-side (LHS) with the right-hand-side (RHS) in the input + stream. A regular mapping (without "nore" in :command's name) expands + recognized sequences in the RHS, while "*noremap" mapping always + interprets RHS as if no user mappings were defined and each key has its + builtin meaning. In most cases you want to use noremap variant and if + your RHS includes LHS, only noremap variant will work because recursion + in a mapping is not allowed. + + In order to define a mapping determine in which mode you want to + activate it and use an appropriate "*noremap" :command (e.g., :nnoremap + for a normal mode mapping). RHS doesn't have to limit itself to the + mode in which the mapping was started and can span multiple modes. + + Map arguments + + LHS of mappings can be preceded by arguments which take the form of + special sequences: + + + Postpone UI updates until RHS is completely processed. + + In case of builtin mapping causing conflict for a user-defined + mapping (e.g., `t` builtin to a partially typed `ta` user- + defined mapping), ignore the builtin mapping and wait for input + indefinitely as opposed to default behaviour of triggering the + builtin mapping after a delay defined by 'timeoutlen'. Example: + + nnoremap tw :set wrap! + nnoremap tn :set number! + nnoremap tr :set relativenumber! + + Special sequences + + Since it's not easy to enter special characters there are several + special sequences that can be used in place of them. They are: + + Enter key. + + Escape key. + + + Space key. + + Less-than character (<). + + provides a way to disable a mapping (by mapping it to ). + + Backspace key (see key conflict description below). + + + Tabulation and Shift+Tabulation keys. + + + Home/End. + + + Arrow keys. + + + PageUp/PageDown. + + + Delete key. and mean different codes, but + is more common. + + + Insert key. + + + + + + Shift + one of the keys from above, if terminal and its + terminfo supports it. + + ,,...,,,,,, + Control + some key (see key conflict description below). + + {only for *nix} + Control + Space. + + ,,..., + ,,..., + ,,..., {only for *nix} + ,,..., {only for *nix} + Alt + some key. + + ,,..., {only for *nix} + ,,..., {only for *nix} + ,,..., {only for *nix} + ,,..., {only for *nix} + Alt + Shift + some key. + + ,,..., {only for *nix} + ,,..., {only for *nix} + Alt + Ctrl + some key. + + - + Functional keys. + + - {only for MS-Windows} + functional keys with Control key pressed. + + - {only for MS-Windows} + functional keys with Alt key pressed. + + - {only for MS-Windows} + functional keys with Shift key pressed. + + Note that due to the way terminals process their input, several + keyboard keys might be mapped to single key code, for example: + + - and ; + + - and ; + + - and and ; + + - etc. + + Most of the time they are defined consistently and don't cause + surprises, but and are treated differently in different + environments (although they match each other all the time), that's why + they correspond to different keys in vifm. As a consequence, if you + map or be sure to repeat the mapping with the other one so + that it works in all environments. Alternatively, provide your mapping + in one form and add one of the following: + + " if mappings with in the LHS work + map + " if mappings with in the LHS work + map + + Also sometimes neither of them might work and it's key which + corresponds to your backspace (don't mind the name). + + Whitespace + + vifm removes whitespace characters at the beginning and end of + commands. That's why you may want to use at the end of rhs in + mappings. For example: + + cmap man + + will put "man " in line when you hit the key in the command line + mode. + +Expression syntax + Supported expressions is a subset of what VimL provides. + + Expression syntax summary, from least to most significant: + + expr1 expr2 + expr2 || expr2 .. logical OR + + expr2 expr3 + expr3 && expr3 .. logical AND + + expr3 expr4 + expr4 == expr4 equal + expr4 != expr4 not equal + expr4 > expr4 greater than + expr4 >= expr4 greater than or equal + expr4 < expr4 smaller than + expr4 <= expr4 smaller than or equal + + expr4 expr5 + expr5 + expr5 .. number addition + expr5 - expr5 .. number subtraction + + expr5 expr6 + expr6 . expr6 .. string concatenation + + expr6 expr7 + - expr6 unary minus + + expr6 unary plus + ! expr6 logical NOT + + expr7 number number constant + "string" string constant, \ is special + 'string' string constant, ' is doubled + &option option value + $VAR environment variable + v:var builtin variable + function(expr1, ...) function call + (expr1) nested expression + + ".." indicates that the operations in this level can be concatenated. + + expr1 + ----- + expr2 || expr2 + + Arguments are converted to numbers before evaluation. + + Result is non-zero if at least one of arguments is non-zero. + + It's right associative and with short-circuiting, so sub-expressions + are evaluated from left to right until result of whole expression is + determined (i.e., until first non-zero) or end of the expression. + + expr2 + ----- + expr3 && expr3 + + Arguments are converted to numbers before evaluation. + + Result is non-zero only if both arguments are non-zero. + + It's right associative and with short-circuiting, so sub-expressions + are evaluated from left to right until result of whole expression is + determined (i.e., until first zero) or end of the expression. + + expr3 + ----- + expr4 {cmp} expr4 + + Compare two expr4 expressions, resulting in a 0 if it evaluates to + false or 1 if it evaluates to true. + + equal == + not equal != + greater than > + greater than or equal >= + smaller than < + smaller than or equal <= + + Examples: + + 'a' == 'a' == 1 + 'a' > 'b' == 1 + 'a' == 'b' == 0 + '2' > 'b' == 0 + 2 > 'b' == 1 + 2 > '1b' == 1 + 2 > '9b' == 0 + -1 == -'1' == 1 + 0 == '--1' == 1 + + expr4 + ----- + expr5 + expr5 .. number addition expr5 - expr5 .. number + subtraction + + Examples: + + 1 + 3 - 3 == 1 + 1 + '2' == 3 + + expr5 + ----- + expr6 . expr6 .. string concatenation + + Examples: + + 'a' . 'b' == 'ab' + 'aaa' . '' . 'c' == 'aaac' + + expr6 + ----- + + - expr6 unary minus + + expr6 unary plus + ! expr6 logical NOT + + For '-' the sign of the number is changed. + For '+' the number is unchanged. + For '!' non-zero becomes zero, zero becomes one. + + A String will be converted to a Number first. + + These operations can be repeated and mixed. Examples: + + --9 == 9 + ---9 == -9 + -+9 == 9 + !-9 == 0 + !'' == 1 + !'x' == 0 + !!9 == 1 + + expr7 + ----- + + number number constant + ----- + + Decimal number. Examples: + + 0 == 0 + 0000 == 0 + 01 == 1 + 123 == 123 + 10000 == 10000 + + string + ------ + "string" string constant + + Note that double quotes are used. + + A string constant accepts these special characters: + \b backspace + \e escape + \n newline + \r return + \t tab + \\ backslash + \" double quote + + Examples: + + "\"Hello,\tWorld!\"" + "Hi,\nthere!" + + literal-string + -------------- + 'string' string constant + + Note that single quotes are used. + + This string is taken as it is. No backslashes are removed or have a + special meaning. The only exception is that two quotes stand for one + quote. + + Examples: + + 'All\slashes\are\saved.' + 'This string contains doubled single quotes ''here''' + + option + ------ + &option option value (local one is preferred, if exists) + &g:option global option value &l:option local + option value + + Examples: + + echo 'Terminal size: '.&columns.'x'.&lines + if &columns > 100 + + Any valid option name can be used here (note that "all" in ":set all" + is a pseudo option). See ":set options" section above. + + environment variable + -------------------- + $VAR environment variable + + The String value of any environment variable. When it is not defined, + the result is an empty string. + + Examples: + + 'This is my $PATH env: ' . $PATH + 'vifmrc at ' . $MYVIFMRC . ' is used.' + + builtin variable + -------------------- + v:var builtin variable + + Information exposed by vifm for use in scripting. + + v:count + count passed to : command, 0 by default. Can be used in mappings to + passthe count to a different command. + v:count1 + same as v:count, but 1 by default. + v:jobcount + number of active jobs (as can be seen in the :jobs menu). + v:session + name of the current session or empty string. + v:servername + See below. + + function call + ------------- + function(expr1, ...) function call + + See "Functions" section below. + + Examples: + + "'" . filetype('.') . "'" + filetype('.') == 'reg' + + expression nesting + ------------------ + (expr1) nested expression + + Groups any other expression of arbitrary complexity enforcing order in + which operators are applied. + + +Functions + USAGE RESULT DESCRIPTION + + chooseopt({opt}) String Queries choose parameters passed on + startup. + executable({expr}) Integer Checks whether {expr} command + available. + expand({expr}) String Expands special keywords in {expr}. + extcached({cache}, {path}, {extcmd}) + String Caches output of {extcmd} per {cache} + and + {path} combination. + filereadable({path}) Integer Checks whether {expr} points to a + non-directory that can be read. + filetype({fnum} [, {resolve}]) + String Returns file type from position. + fnameescape({expr}) String Escapes {expr} for use in a :command. + getpanetype() String Returns type of current pane. + has({property}) Integer Checks whether instance has + {property}. + input({prompt} [, {initial} [, {completion}]]) + String Prompts user for an input on command- + line. + layoutis({type}) Integer Checks whether layout is of type + {type}. + paneisat({loc}) Integer Checks whether current pane is at + {loc}. + system({command}) String Executes shell command and returns + its output. + tabpagenr([{arg}]) Integer Returns number of current or last + tab. + term({command}) String Like system(), but for interactive + commands. + + chooseopt({opt}) + + Retrieves values of options related to file choosing. {opt} can be one + of: + files returns argument of --choose-files or empty string + dir returns argument of --choose-dir or empty string + cmd returns argument of --on-choose or empty string + delimiter returns argument of --delimiter or the default one (\n) + + executable({expr}) + + If {expr} is absolute or relative path, checks whether path destination + exists and refers to an executable, otherwise checks whether command + named {expr} is present in directories listed in $PATH. Checks for + various executable extensions on Windows. Returns boolean value + describing result of the check. + + Example: + + " use custom default viewer script if it's available and installed + " in predefined system directory, otherwise try to find it elsewhere + if executable('/usr/local/bin/defviewer') + fileview * /usr/local/bin/defviewer %c + else + if executable('defviewer') + fileview * defviewer %c + endif + endif + + expand({expr}) + + Expands environment variables and macros in {expr} (in this order). + Returns a string. See "Command macros" section above. + + Examples: + + " percent sign + :echo expand('%%') + " the last part of directory name of the other pane + :echo expand('%D:t') + " $PATH environment variable (same as `:echo $PATH`) + :echo expand('$PATH') + " full path to the current file with backslashes + :echo expand('%c:p:gs!/!\!') + + extcached({cache}, {path}, {extcmd}) + + Caches value of {extcmd} external command automatically updating it as + necessary based on monitoring change date of a {path}. The cache is + invalidated when file or its meta-data is updated. A single path can + have multiple caches associated with it. + + {path} value is normalized, but symbolic links in it aren't resolved. + + Example: + + " display number and size of blocks actually used by a file or directory + set statusline+=" Uses: %{ extcached('uses', + expand('%c'), + expand('stat --format=%%bx%%B %c')) }" + + filereadable({path}) + + Checks whether {path} exists and refers to a non-directory entry and + its permissions allow reading. Returns boolean value describing result + of the check. + + filetype({fnum} [, {resolve}]) + + The result is a string, which represents file type and is one of the + list: + exe executables + reg regular files + link symbolic links + broken broken symbolic links (appears only when resolving) + dir directories + char character devices + block block devices + fifo pipes + sock *nix domain sockets + ? unknown file type (should not normally happen) or + non-file (pseudo-entries in compare view) + + The result can also be an empty string in case of invalid argument. + + Parameter {fnum} can have following values: + - '.' to get type of file under the cursor in the active pane + - numerical value base 1 to get type of file on specified line + number + + Optional parameter {resolve} is treated as a boolean and specifies + whether symbolic links should be resolved. + + fnameescape({expr}) + + Escapes parameter to make it suitable for use as an argument of a + :command. List of escaped characters includes %, which is doubled. + + Usage example: + + " navigate to most recently modified file in current directory + execute 'goto' fnameescape(system('ls -t | head -1')) + + getpanetype() + + Retrieves string describing type of current pane. Possible return + values: + regular regular file listing of some directory + custom custom file list (%u) + very-custom very custom file list (%U) + tree tree view + compare compare view + + has({property}) + + Allows examining internal parameters from scripts to e.g. figure out + environment in which application is running. Returns 1 if property is + true/present, otherwise 0 is returned. Currently the following + properties are supported (anything else will yield 0): + unix runs in *nix-like environment (including Cygwin) + win runs on Windows + #* whether particular Lua handler exists + + Usage example: + + " skip user/group on Windows + if !has('win') + let $RIGHTS = '%10u:%-7g ' + endif + + execute 'set' 'statusline=" %t%= %A '.$RIGHTS.'%15E %20d "' + + input({prompt} [, {initial} [, {completion}]]) + + Creates a command-line prompt to obtain user's input. Initial value + can be supplied as an optional second parameter, otherwise empty string + is used. + + Optional third parameter specifies kind of completion, which can be one + of: + dir paths to directories + file paths to files and directories + "" (empty string, default) no completion + + Note that behaviour differs from Vim where executing a mapping like + nnoremap j :echo input('text: ')input + leaves you in a prompt mode with "input" typed in. Vifm will wait for + leaving the prompt and then continue executing the mapping. + + Usage example: + + nnoremap ,m : let $DIR_NAME = input('mkdir: ', '', 'dir') + \| if $DIR_NAME != '' + \| execute 'mkdir' fnameescape($DIR_NAME) + \| endif + + layoutis({type}) + + Checks whether current interface layout is {type} or not, where {type} + can be: + only single-pane mode + split double-pane mode (either vertical or horizontal split) + vsplit vertical split (left and right panes) + hsplit horizontal split (top and bottom panes) + + Usage example: + + " automatically split vertically before enabling preview + :nnoremap w :if layoutis('only') | vsplit | endif | view! + + paneisat({loc}) + + Checks whether position of active pane in current layout matches one of + the following locations: + top pane reaches top border + bottom pane reaches bottom border + left pane reaches left border + right pane reaches right border + + system({command}) + + Runs the command in shell and returns its output (joined standard + output and standard error streams). All trailing newline characters + are stripped to allow easy appending to command output. Ctrl-C should + interrupt the command. + + Use this function to consume output of external commands that don't + require user interaction and term() for interactive commands that make + use of terminal and are capable of handling stream redirection. + + Usage example: + + " command to enter .git/ directory of git-repository (when ran inside one) + command! cdgit :execute 'cd' fnameescape(system('git rev-parse --git-dir')) + + tabpagenr([{arg}]) + + When called without arguments returns number of current tab page base + one. + + When called with "$" as an argument returns number of the last tab page + base one, which is the same as number of tabs. + + term({command}) + + Same as system() function, but user interface is shutdown during the + execution of the command, which makes sure that external interactive + applications won't affect the way terminal is used by vifm. + + Usage example: + + " command to change directory by picking it via fzf + command! fzfcd :execute 'cd' + fnameescape(term('find -type d | fzf 2> /dev/tty')) + +Menus and dialogs + When navigating to some path from a menu there is a difference in end + location depending on whether path has trailing slash or not. Files + normally don't have trailing slashes so "file/" won't work and one can + only navigate to a file anyway. On the other hand with directories + there are two options: navigate to a directory or inside of it. To + allow both use cases, the first one is used on paths like "dir" and the + second one for "dir/". + + Commands + + :range navigate to a menu line. + + :exi[t][!] :q[uit][!] :x[it][!] + leave menu mode. + + :noh[lsearch] + reset search match highlighting. + + :w[rite] {dest} + write all menu lines into file specified by {dest}. + + General + + j, Ctrl-N - move down. + k, Ctrl-P - move up. + Enter, l - select and exit the menu. + Ctrl-L - redraw the menu. + + Escape, Ctrl-C, ZZ, ZQ, q - quit. + + In all menus + + The following set of keys has the same meaning as in normal mode. + + Ctrl-B, Ctrl-F + Ctrl-D, Ctrl-U + Ctrl-E, Ctrl-Y + /, ? + n, N + [count]G, [count]gg + H, M, L + zb, zt, zz + + zh - scroll menu items [count] characters to the right. + zl - scroll menu items [count] characters to the left. + zH - scroll menu items half of screen width characters to the right. + zL - scroll menu items half of screen width characters to the left. + + : - enter command line mode for menus (currently only :exi[t], :q[uit], + :x[it] and :{range} are supported). + + b - interpret content of the menu as list of paths and use it to create + custom view in place of previously active pane. See "Custom views" + section below. + B - same as above, but creates unsorted view. + + v - load menu content into quickfix list of the editor (Vim compatible + by assumption) or if list doesn't have separators after file names + (colons) open each line as a file name. + + + Below is description of additional commands and reaction on selection + in some menus and dialogs. + + Apropos menu + + Selecting menu item runs man on a given topic. Menu won't be closed + automatically to allow view several pages one by one. + + Command-line mode abbreviations menu + + Type dd on an abbreviation to remove it. + + c leaves menu preserving file selection and inserts right-hand side of + selected command into command-line. + + Color scheme menu + + Selecting name of a color scheme applies it the same way as if + ":colorscheme " was executed on the command-line. + + Commands menu + + Selecting command executes it with empty arguments (%a). + + dd on a command to remove. + + Marks menu + + Selecting mark navigates to it. + + dd on a mark to remove it. + + Bookmarks menu + + Selecting a bookmark navigates to it. + + Type dd on a bookmark to remove it. + + gf and e also work to make it more convenient to bookmark files. + + Trash (:lstrash) menu + + r on a file name to restore it from trash. + + dd deletes file under the cursor. + + Trashes (:trashes) menu + + dd empties selected trash in background. + + Directory history and Trashes menus + + Selecting directory name will change directory of the current view as + if :cd command was used. + + Directory stack menu + + Selecting directory name will rotate stack to put selected directory + pair at the top of the stack. + + File (:file) menu + + Commands from vifmrc or typed in command-line are displayed above empty + line. All commands below empty line are from .desktop files. + + c leaves menu preserving file selection and inserts command after :! in + command-line mode. + + Grep, find, locate, bookmarks and user menu with navigation (%M macro) + + gf - navigate previously active view to currently selected item. + Leaves menu mode except for grep menu. Pressing Enter key has the same + effect. + + e - open selected path in the editor, stays in menu mode. + + c - leave menu preserving file selection and insert file name after :! + in command-line mode. + + User menu without navigation (%m macro) + + c leaves menu preserving file selection and inserts whole line after :! + in command-line mode. + + Grep menu + + Selecting file (via Enter or l key) opens it in editor set by 'vicmd' + at given line number. Menu won't be closed automatically to allow + viewing more than one result. + + See above for "gf" and "e" keys description. + + Command-line history menu + + Selecting an item executes it as command-line command, search query or + local filter. + + c leaves menu preserving file selection and inserts line into command- + line of appropriate kind. + + Volumes menu + + Selecting a drive navigates previously active pane to the root of that + drive. + + Fileinfo dialog + + Enter, q - close dialog + + Sort dialog + + h, Space - switch ascending/descending. + q - close dialog + + One shortcut per sorting key (see the dialog). + + Attributes (permissions or properties) dialog + + h, Space - check/uncheck. + q - close dialog + r - (*nix only) (un)set all read bits + w - (*nix only) (un)set all write bits + x - (*nix only) (un)set all execute bits + s - (*nix only) (un)set all special (SetUID, SetGID, Sticky) bits + e - (*nix only) (un)set recursion (for directories only) + + Item states: + + - * - checked flag. + + - X - means that it has different value for files in selection. + + - d (*nix only) - (only for execute flags) means u-x+X, g-x+X or o-x+X + argument for the chmod program. If you're not on OS X and want to + remove execute permission bit from all files, but preserve it for + directories, set all execute flags to 'd' and check 'Set Recursively' + flag. + + Jobs menu (:jobs) + + dd - request cancellation of job under cursor. The job won't be + removed from the list, but marked as being cancelled (if cancellation + was successfully requested). A message will pop up if the job has + already stopped. Note that on Windows cancelling external programs + like this might not work, because their parent shell doesn't have any + windows. + + e - display errors of selected job if any were collected. They are + displayed in a new menu, but you can get back to jobs menu by pressing + h. + + r - reload the list of jobs. + + + Undolist menu + + r - reset undo position to group under the cursor. + + + Media menu + + Selecting a device either mounts (if it wasn't mounted yet) or + navigates to its first mount point. + + Selecting a mount point navigates to it. + + Selecting "not mounted" line causes mounting. + + Selecting any other line does nothing. + + r - reload the list. + + m - mount/unmount device (cursor should be positioned on lines under + device information). + + [ - put cursor on the previous device. + + ] - put cursor on the next device. + + + Plugins menu + + e - display log messages of selected plugin if any were collected. + They are displayed in a new menu, but you can get back to plugins menu + by pressing h. + + gf - navigate previously active view to the location of selected + plugin. Leaves menu mode. + + +Custom views + Definition + + Normally file views contain list of files from a single directory, but + sometimes it's useful to populate them with list of files that do not + belong to the same directory, which is what custom views are for. + + Presentation + + Custom views are still related to directory they were in before custom + list was loaded. Path to that directory (original directory) can be + seen in the title of a custom view. + + Files in same directory have to be named differently, this doesn't hold + for custom views thus seeing just file names might be rather confusing. + In order to give an idea where files come from and when possible, + relative paths to original directory of the view is displayed, + otherwise full path is used instead. + + Custom views normally don't contain any inexistent files. + + Navigation + + Custom views have some differences related to navigation in regular + views. + + gf - acts similar to gf on symbolic links and navigates to the file at + its real + location. + + h - go to closes parent node in tree view, otherwise return to the + original directory. + + gh - return to the original directory. + + Opening ".." entry also causes return to the original directory. + + History + + Custom list exists only while it's visible, once left one can't return + to it, so there is no appearances of it in any history. + + Filters + + Only local filter affects content of the view. This is intentional, + presumably if one loads list, precisely that list should be displayed + (except for inexistent paths, which are ignored). + + Search + + Although directory names are visible in listing, they are not + searchable. Only file names are taken into account (might be changed + in future, searching whole lines seems quite reasonable). + + Sorting + + Contrary to search sorting by name works on whole visible part of file + path. + + Highlight + + Whole file name is highlighted as one entity, even if there are + directory elements. + + Updates + + Reloads can occur, though they are not automatic due to files being + scattered among different places. On a reload, inexistent files are + removed and meta-data of all other files is updated. + + Once custom view forgets about the file, it won't add it back even if + it's created again. So not seeing file previously affected by an + operation, which was undone is normal. + + Operations + + All operations that add files are forbidden for custom views. For + example, moving/copying/putting files into a custom view doesn't work, + because it doesn't make much sense. + + On the other hand, operations that use files of a custom view as a + source (e.g. yanking, copying, moving file from custom view, deletion) + and operations that modify names are all allowed. + +Compare views + Kinds + + :compare can produce four different results depending on arguments: + - single compare view (ofone and either listall or listdups); + - single custom view (ofone and listunique); + - two compare views (ofboth and either listall or listdups); + - two custom views (ofboth and listunique). + + The first two display files of one file system tree. Here duplicates + are files that have at least one copy in the same tree. The other two + kinds of operation compare two trees, in which duplicates are files + that are found in both trees. + + Lists of unique files are presented in custom views because there is no + file grouping to preserve as all file ids are guaranteed to be + distinct. + + Creation + + Arguments passed to :compare form seven categories each with its own + prefix and is responsible for particular property of operation. + + Which files to compare: + - ofboth - compares files of two panes against each other; + - ofone - compares files of the same directory. + + How files are compared: + - byname - by their name only; + - bysize - only by their size; + - bycontents - by data they contain (combination of size and hash of + small chunk of contents is used as first approximation, so don't worry + too much about large files). + + Which files to display: + - listall - all files; + - listunique - unique files only; + - listdups - only duplicated files. + + How results are grouped (has no effect if "ofone" specified): + - groupids - files considered identical are always adjacent in + output; + - grouppaths - file system ordering is preferred (this also enables + displaying identically named files as mismatches). + + Which files to omit: + - skipempty - ignore empty files. + + Comparison tweaks: + - withicase - ignore case when comparing file names/paths; + - withrcase - respect case when comparing file names/paths. + + Which results to show (has no effect for single pane comparison): + - showidentical - toggle showing of identical files; + - showdifferent - toggle showing of different files; + - showuniqueleft - toggle showing of unique top/left files; + - showuniqueright - toggle showing of unique bottom/right files. + + Each argument can appear multiple times, the rightmost one of the group + is considered. Arguments alter default behaviour instead of + substituting it. + + When neither "withicase" nor "withrcase" is specified, case depends on + the running operating system and the file system on which the files are + located. + + Examples + + The defaults corresponds to probably the most common use case of + comparing files in two trees with grouping by paths, so the following + are equivalent: + + :compare + :compare bycontents grouppaths + :compare bycontents listall ofboth grouppaths + :compare showidentical showdifferent showuniqueleft showuniqueright + + Another use case is to find duplicates in the current sub-tree: + + :compare listdups ofone + + The following command lists files that are unique to each pane: + + :compare listunique + + Look + + The view can't switch to ls-like view as it's unable to display diff- + like data. + + Comparison views have second column displaying id of the file, files + with same id are considered to be equal. The view columns + configuration is predefined. + + The status bar displays only the initial result of the comparison and + can be out of date. + + Behaviour + + When two views are being compared against each other the following + changes to the regular behaviour apply: + - views are scrolled synchronously (as if 'scrollbind' was set); + - views' cursors are synchronized; + - local filtering is disabled (its results wouldn't be meaningful); + - zd excludes groups of adjacent identical files, 1zd gives usual + behaviour; + - sorting is permanently disabled (ordering is fixed); + - removed files hide their counter pairs; + - exiting one of the views terminates the other immediately; + - renaming files isn't blocked, but isn't taken into account and might + require regeneration of comparison; + - entries which indicate absence of equivalent file have empty names + and can be matched as such; + - when unique files of both views are listed custom views can be + empty, this absence of unique files is stated clearly. + + One compare view has similar properties (those that are applicable for + single pane). + + Files are gathered in this way: + - recursively starting at current location of the view; + - dot files are excluded if view hides them at the moment of + comparison, file name filters are obeyed as well so you end up + comparing what you see; + - directories are not taken into account; + - symbolic links to directories are ignored. + +Startup + On startup vifm determines several variables that are used during + execution. They are determined in the order they appear below. + + On *nix systems $HOME is normally present and used as is. On Windows + systems vifm tries to find correct home directory in the following + order: + - $HOME variable; + - $USERPROFILE variable (on Windows only); + - a combination of $HOMEDRIVE and $HOMEPATH variables (on Windows + only). + + vifm tries to find correct configuration directory by checking the + following places: + - $VIFM variable; + - parent directory of the executable file (on Windows only); + - $HOME/.vifm directory; + - $APPDATA/Vifm directory (on Windows only); + - $XDG_CONFIG_HOME/vifm directory; + - $HOME/.config/vifm directory. + + vifm tries to find correct configuration file by checking the following + places: + - $MYVIFMRC variable; + - vifmrc in parent directory of the executable file (on Windows only); + - $VIFM/vifmrc file. + +Configure + See "Startup" section above for the explanations on $VIFM and + $MYVIFMRC. + + The vifmrc file contains commands that will be executed on vifm + startup. There are two such files: global and local. Global one is at + {prefix}/etc/vifm/vifmrc, see $MYVIFMRC variable description for the + search algorithm used to find local vifmrc. Global vifmrc is loaded + before the local one, so that the later one can redefine anything + configured globally. + + Use vifmrc to set settings, mappings, filetypes etc. To use multi line + commands precede each next line with a slash (whitespace before slash + is ignored, but all spaces at the end of the lines are saved). For + example: + + set + \smartcase + + equals "setsmartcase". When + + set + \ smartcase + + equals "set smartcase". + + The $VIFM/vifminfo file contains generic state of the application. You + can control what is stored in vifminfo by setting 'vifminfo' option. + Vifm always writes this file on exit unless 'vifminfo' option is empty. + Marks, bookmarks, commands, histories, filetypes, fileviewers and + registers in the file are merged with vifm configuration (which has + bigger priority). + + Generally, runtime configuration has bigger priority during merging, + but there are some exceptions: + + - directory stack stored in the file is not overwritten unless + something is changed in vifm instance that performs merge; + + - each mark or bookmark is marked with a timestamp, so that newer + value is not overwritten by older one, thus no matter from where it + comes, the newer one wins; + + - all histories are marked with timestamps on storing, this means + that last instance to quit puts its elements on top of the list; + + - tabs are merged only if both current instance and stored state + contain exactly one tab of any kind. + + The $VIFM/scripts directory can contain shell scripts. vifm modifies + its PATH environment variable to let user run those scripts without + specifying full path. All subdirectories of the $VIFM/scripts will be + added to PATH too. Script in a subdirectory overlaps script with the + same name in all its parent directories. + + The $VIFM/colors/ and {prefix}/etc/vifm/colors/ directories contain + color schemes. Available color schemes are searched in that order, so + on name conflict the one in $VIFM/colors/ wins. + + Each color scheme should have ".vifm" extension. This wasn't the case + before and for this reason the following rules apply during lookup: + + - if there is no file with .vifm extension, all regular files are + listed; + + - otherwise only files with .vifm extension are listed (with the + extension being truncated). + +Sessions + Sessions provide a way to have multiple persistent runtime + configurations. Think of them as second-level vifminfo files in + addition to the first-level one used by all sessions. In other words, + they aren't a replacement for vifminfo file that exists without + sessions, but an addition to it. One can empty 'vifminfo' option and + rely solely on sessions, but in practice one might want to share some + state among instances in different sessions or have an "out-of- + sessions" state for tasks that don't deserve a session of their own. + + This leads to a two-level structure where data in session files has + higher priority than data in vifminfo files (where this makes sense) + following the same rules that merging of vifminfo file obeys. In + addition to that, history items from session files are never ordered + before history items from vifminfo file. + + Format + + Sessions have the format of vifminfo files, they do not consist of + sequence of command-line commands and are not meant to be sourced via + :source command. + + Storage and naming + + `$VIFM/sessions/` directory serves as a storage for sessions. + Consequently names should be valid filenames. The structure of the + storage is flat meaning that there are no subdirectories, that's why + names of sessions can't contain slashes. + + Usage model + + Contrary to Vim, vifm automates basic management of sessions. You can + start, switch, stop or delete a session using builtin means. + + Current session is saved at the same time vifminfo is saved (on normal + exits or explicitly on :write command) and right before switching to + another session. To avoid saving in those cases use :session command + to detach (without saving) from a session before proceeding. + + Related topics + + Commands: :session, :delsession + Options: 'sessionoptions' + Variables: v:session + +Automatic FUSE mounts + vifm has a builtin support of automated FUSE file system mounts. It is + implemented using file associations mechanism. To enable automated + mounts, one needs to use a specially formatted program line in filetype + or filextype commands. These use special macros, which differ from + macros in commands unrelated to FUSE. Currently three formats are + supported: + + 1) FUSE_MOUNT This format should be used in case when all information + needed for mounting all files of a particular type is the same. E.g. + mounting of tar files don't require any file specific options. + + Format line: + FUSE_MOUNT|mounter %SOURCE_FILE %DESTINATION_DIR [%FOREGROUND] + + Example filetype command: + + :filetype FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR + + 2) FUSE_MOUNT2 This format allows one to use specially formatted files + to perform mounting and is useful for mounting remotes, for example + remote file systems over ftp or ssh. + + Format line: + FUSE_MOUNT2|mounter %PARAM %DESTINATION_DIR [%FOREGROUND] + + Example filetype command: + + :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR + + Example file content: + + root@127.0.0.1:/ + + 3) FUSE_MOUNT3 + + This format is equivalent to FUSE_MOUNT, but omits unmounting. It is + useful for cases, when unmounting isn't needed, like when using AVFS. + + Example :filetype command: + + :filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.deb + \ {Mount with avfs} + \ FUSE_MOUNT3|mount-avfs %DESTINATION_DIR %SOURCE_FILE + + Example `mount-avfs` helper script: + + #!/bin/sh + + dest=$1 + file=$2 + + rmdir "$dest" + ln -s "$HOME/.avfs$file#/" "$dest" + + All % macros are expanded by vifm at runtime and have the following + meaning: + - %SOURCE_FILE is replaced by full path to selected file; + - %DESTINATION_DIR is replaced by full path to mount directory, which + is created by vifm basing on the value of 'fusehome' option; + - %PARAM value is filled from the first line of file (whole line), + though in the future it can be changed to whole file content; + - %FOREGROUND means that you want to run mount command as a regular + command (required to be able to provide input for communication with + mounter in interactive way). + + %FOREGROUND is an optional macro. Other macros are not mandatory, but + mount commands likely won't work without them. + + %CLEAR is obsolete name of %FOREGROUND, which is still supported, but + might be removed in future. Its use is discouraged. + + Unlike macros elsewhere, these are recognized only if they appear at + the end of a command or are followed by a space. There is no way to + escape % either. These are historical limitations, which might be + addressed in the future. + + The mounted FUSE file systems will be automatically unmounted in two + cases: + + - when vifm quits (with ZZ, :q, etc. or when killed by signal); + + - when you explicitly leave mount point going up to its parent + directory (with h, Enter on "../" or ":cd ..") and other pane is + not in the same directory or its child directories. + +View look + vifm supports displaying of file list view in two different ways: + + - in a table mode, when multiple columns can be set using + 'viewcolumns' option (see "Column view" section below for details); + + - in a multicolumn list manner which looks almost like `ls -x` + command output (see "ls-like view" section below for details). + + The look is local for each view and can be chosen by changing value of + the 'lsview' boolean option. + + Depending on view look some of keys change their meaning to allow more + natural cursor moving. This concerns mainly h, j, k, l and other + similar navigation keys. + + Also some of options can be ignored if they don't affect view + displaying in selected look. For example value of 'viewcolumns' when + 'lsview' is set. + +ls-like view + When this view look is enabled by setting 'lsview' option on, vifm will + display files in multiple columns. Number of columns depends on the + length of the longest file name present in current directory of the + view. Whole file list is automatically reflowed on directory change, + terminal or view resize. + + View looks close to output of `ls -x` command, so files are listed left + to right in rows. + + In this mode file manipulation commands (e.g. d) don't work line-wise + like they do in Vim, since such operations would be uncommon for file + manipulation tasks. Thus, for example, dd will remove only current + file. + + By default the view is filled by lines, 'lsoptions' can be used to get + filling by columns. + + Note that tree-view and compare view inhibit ls-like view. + +Column view + View columns are described by a comma-separated list of column + descriptions, each of which has the following format + [ '-' | '*' ] [ fw ( [ '.' tw ] | '%' ) ] '{' type | literal '}' + '.'{0,3} + where fw stands for full width, tw stands for text width, bar is + logical or, square brackets denote optional parts and curly braces + define range of repetitions for a symbol that precedes them. + + So it basically consists of four parts: + 1. Optional alignment specifier + 2. Optional width specifier + 3. Mandatory column name + 4. Optional cropping specifier + + Alignment specifier + + It's an optional minus or asterisk sign as the first symbol of the + string. + + Specifies type of text alignment within a column. Three types are + supported: + + - left align + + set viewcolumns=-{name} + + - right align (default) + + set viewcolumns={name} + + - dynamic align + + It's like left alignment, but when the text is bigger than the + column, the alignment is made at the right (so the part of the field + is always visible). + + set viewcolumns=*{name} + + Width specifier + + It's a number followed by a percent sign, two numbers (second one + should be less than or equal to the first one) separated with a dot or + a single number. + + Specifies column width and its units. There are three size types: + + - absolute size - column width is specified in characters + + set viewcolumns=-100{name},20.15{ext} + + results in two columns with lengths of 100 and 20 and a reserved + space of five characters on the left of second column. + + - relative (percent) size - column width is specified in percents of + view width + + set viewcolumns=-80%{name},15%{ext},5%{mtime} + + results in three columns with lengths of 80/100, 15/100 and 5/100 of + view width. + + - auto size (default) - column width is automatically determined + + set viewcolumns=-{name},{ext},{mtime} + + results in three columns with length of one third of view width. + There is no size adjustment to content, since it will slow down + rendering. + + Columns of different sizing types can be freely mixed in one view. + Though sometimes some of columns can be seen partly or be completely + invisible if there is not enough space to display them. + + Column contents + + This is usually a sorting key surrounded with curly braces, e.g. + + {name},{ext},{mtime} + + {name} and {iname} types are the same and present both for consistency + with 'sort' option. + + Following types don't have corresponding sorting keys: + + - {root} - display name without extension (as a complement for + {ext}) + + - {fileroot} - display name without extension for anything except for + directories and symbolic links to directories (as a complement for + {fileext}) + + Empty curly braces ({}) are replaced with the default secondary column + for primary sort key. So after the next command view will be displayed + almost as if 'viewcolumns' is empty, but adding ellipsis for long file + names: + + set viewcolumns=-{name}..,6{}. + + The last kind of column value is a string literal. The literal is used + as a column value for every row. The syntax is "{#literal}", for + example: + + 3{#},{#|},{# | } + + This can be used to draw column separators. Mind that for convenience + literals have different defaults: truncation and automatically + determined absolute size, which is what you usually want for them. + Example: + + set viewcolumns=*{name}..,{#|},6{}. + + Cropping specifier + + It's from one to three dots after closing curly brace in column format. + + Specifies type of text truncation if it doesn't fit in the column. + Currently three types are supported: + + - truncation - text is truncated + + set viewcolumns=-{name}. + + results in truncation of names that are too long too fit in the + view. + + - adding of ellipsis - ellipsis on the left or right are added when + needed + + set viewcolumns=-{name}.. + + results in that ellipsis are added at the end of too long file + names. + + - none (default) - text can pass column boundaries + + set viewcolumns=-{name}...,{ext} + + results in that long file names can partially be written on the ext + column. + +Color schemes + The color schemes in vifm can be applied in two different ways: + + - as the primary color scheme; + + - as local to a pane color scheme. + + Both types are set using :colorscheme command, but of different forms: + + - :colorscheme color_scheme_name - for the primary color scheme; + + - :colorscheme color_scheme_name directory - for local color schemes. + + Look of different parts of the TUI (Text User Interface) is determined + in this way: + + - Border, TabLine, TabLineSel, TopLineSel, TopLine, CmdLine, + ErrorMsg, StatusLine, JobLine, SuggestBox and WildMenu are always + determined by the primary color scheme; + + - CurrLine, Selected, Directory, Link, BrokenLink, Socket, Device, + Executable, Fifo, CmpMismatch, CmpUnmatched, CmpBlank, Win, AuxWin + and OtherWin are determined by primary color scheme and a set of + local color schemes, which can be empty. + + There might be a set of local color schemes because they are structured + hierarchically according to file system structure. For example, having + the following piece of file system: + + ~ + `-- bin + | + `-- my + + Two color schemes: + + # ~/.config/vifm/colors/for_bin.vifm + highlight Win cterm=none ctermfg=white ctermbg=red + highlight CurrLine cterm=none ctermfg=red ctermbg=black + + # ~/.config/vifm/colors/for_bin_my.vifm + highlight CurrLine cterm=none ctermfg=green ctermbg=black + + And these three commands in the vifmrc file: + + colorscheme Default + colorscheme for_bin ~/bin + colorscheme for_bin_my ~/bin/my + + File list will look in the following way for each level: + + - ~/ - Default color scheme + black background + cursor with blue background + + - ~/bin/ - mix of Default and for_bin color schemes + red background + cursor with black background and red foreground + + - ~/bin/my/ - mix of Default, for_bin and for_bin_my color schemes + red background + cursor with black background and green foreground + +Trash directory + vifm has support of trash directory, which is used as temporary storage + for deleted files or files that were cut. Using trash is controlled by + the 'trash' option, and exact path to the trash can be set with + 'trashdir' option. Trash directory in vifm differs from the system- + wide one by default, because of possible incompatibilities of storing + deleted files among different file managers. But one can set + 'trashdir' to "~/.local/share/Trash" to use a "standard" trash + directory. + + There are two scenarios of using trash in vifm: + + 1. As a place for storing files that were cut by "d" and may be + inserted to some other place in file system. + + 2. As a storage of files, that are deleted but not purged yet. + + The first scenario uses deletion ("d") operations to put files to trash + and put ("p") operations to restore files from trash directory. Note + that such operations move files to and from trash directory, which can + be long term operations in case of different partitions or remote + drives mounted locally. + + The second scenario uses deletion ("d") operations for moving files to + trash directory and :empty command-line command to purge all previously + deleted files. + + Deletion and put operations depend on registers, which can point to + files in trash directory. Normally, there are no nonexistent files in + registers, but vifm doesn't keep track of modifications under trash + directory, so one shouldn't expect value of registers to be absolutely + correct if trash directory was modified not by operation that are meant + for it. But this won't lead to any issues with operations, since they + ignore nonexistent files. + +Client-Server + vifm supports remote execution of command-line mode commands, remote + changing of directories and expression evaluation. This is possible + using --remote and --remote-expr command-line arguments. + + To execute a command remotely combine --remote argument with -c + or +. For example: + + vifm --remote -c 'cd /' + vifm --remote '+cd /' + + To change directory not using command-line mode commands one can + specify paths right after --remote argument, like this: + + vifm --remote / + vifm --remote ~ + vifm --remote /usr/bin /tmp + + Evaluating expression remotely might be useful to query information + about an instance, for example its location: + + vifm --remote-expr 'expand("%d")' + + If there are several running instances, the target can be specified + with --server-name option (otherwise, the first one lexicographically + is used): + + vifm --server-name work --remote ~/work/project + + List of names of running instances can be obtained via --server-list + option. Name of the current one is available via v:servername. + + + v:servername + server name of the running vifm instance. Empty if client- + server feature is disabled. + +External Renaming + When an editor is run to edit list of file names, contents of the + temporary file has the following format: + + 1. Order of lines correspond to the order of files in a view. + + 2. Lines that start with a "#" are comments and are ignored. + + 3. Single backslash at the beginning of a line is ignored, so that a + file starting with a backslash will appear like "\#name". + + If an operation was rejected due to issues with file names, next time + you'll see the following in this order: + + 1. Last error (in comments). + + 2. Original file names (in comments). + + 3. Failed list of new names. + + Mind that Vim plugin will extract list of original names and show them + in a vertical split. + + You can cancel renaming by removing all non-comments from the buffer. + This also erases information about previous edits. + +Using mouse + Note: is not available on 32-bit *nix systems, + because ncurses doesn't support it there (limitation of + implementation). + + Note: these are not available in mappings at the momemnt. + + Normal Mode + + event position change action + cursor window + yes yes if cursor wasn't move + no yes + no yes + no yes + yes yes :file + no yes + no yes or :tabprevious + no yes or :tabnext + + Clicking on or scrolling over an inactive pane (including its title), + makes it active and does nothing else. Tabs are scrolled when mouse + hovers over them. + + Clicking on the left miller column goes to parent directory and + clicking the right one opens current entry. + + Visual Mode + + event position selection action + cursor + yes update if cursor wasn't move + no + no update + no + no + no + no update + no update + + Command-line Mode + + event position action + cursor + yes + no + no + no + no + no + no + no + + Menu Mode + + event position action + cursor + yes if cursor wasn't moved + no + no + no + no + no + no + no + + view Mode + + event action + + k + j + + Clicking on or scrolling over an inactive pane (including its title), + detaches view mode if it wasn't activated for exploring a file. + + +Plugin + Plugin for using vifm in vim as a file selector. + + Commands: + + :EditVifm select a file or files to open in the current buffer. + :Vifm alias for :EditVifm. + :SplitVifm split buffer and select a file or files to open. + :VsplitVifm vertically split buffer and select a file or files to + open. + :DiffVifm select a file or files to compare to the current file + with + :vert diffsplit. + :TabVifm select a file or files to open in tabs. + + Each command accepts up to two arguments: left pane directory and right + pane directory. After arguments are checked, vifm process is spawned + in a special "file-picker" mode. To pick files just open them either + by pressing l, i or Enter keys, or by running :edit command. If no + files are selected, file under the cursor is opened, otherwise whole + selection is passed to the plugin and opened in vim. + + The plugin have only two settings. It's a string variable named + g:vifm_term to let user specify command to run GUI terminal. By + default it's equal to 'xterm -e'. And another string variable named + g:vifm_exec, which equals "vifm" by default and specifies path to + vifm's executable. To pass arguments to vifm use g:vifm_exec_args, + which is empty by default. + + To use the plugin copy the vifm.vim file to either the system wide + vim/plugin directory or into ~/.vim/plugin. + + If you would prefer not to use the plugin and it is in the system wide + plugin directory add + + let loaded_vifm=1 + + to your ~/.vimrc file. + +Reserved + The following command names are reserved and shouldn't be used for user + commands. + + g[lobal] + v[global] + +ENVIRONMENT + VIFM Points to main configuration directory (usually + ~/.config/vifm/). + + MYVIFMRC + Points to main configuration file (usually + ~/.config/vifm/vifmrc). + + These environment variables are valid inside vifm and also can be used + to configure it by setting some of them before running vifm. + + When $MYVIFMRC isn't set, it's made as $VIFM/vifmrc (exception for + Windows: vifmrc in the same directory as vifm.exe has higher priority + than $VIFM/vifmrc). + + See "Startup" section above for more details. + + VIFM_FUSE_FILE + On execution of external commands this variable is set to the + full path of file used to initiate FUSE mount of the closest + mount point from current pane's directory up. It's not set when + outside FUSE mount point. When vifm is used inside terminal + multiplexer, it tries to set this variable as well (it doesn't + work this way on its own). + +SEE ALSO + vifm-convert-dircolors(1), vifm-pause(1) + + Website: https://vifm.info/ + Wiki: https://wiki.vifm.info/ + + Esperanto translation of the documentation by Sebastian Cyprych: + http://cyprych.neostrada.pl/tekstoj/komputiloj/vifm-help.eo.html + +AUTHOR + Vifm was written by ksteen + And currently is developed by xaizek + +vifm 0.13 04 April 2023 VIFM(1) diff --git a/.config/vifm/vifminfo.json b/.config/vifm/vifminfo.json new file mode 100644 index 0000000..8d45370 --- /dev/null +++ b/.config/vifm/vifminfo.json @@ -0,0 +1 @@ +{"gtabs":[{"panes":[{"ptabs":[{}]},{"ptabs":[{}]}]}],"trash":[{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.bash_history","original":"/home/vilyaem/.bash_history"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.cache","original":"/home/vilyaem/.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_.cache","original":"/home/vilyaem/.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/002_.cache","original":"/home/vilyaem/.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/003_.cache","original":"/home/vilyaem/.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/004_.cache","original":"/home/vilyaem/.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/005_.cache","original":"/home/vilyaem/.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_a2j","original":"/home/vilyaem/.config/a2j"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ardour8","original":"/home/vilyaem/.config/ardour8"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_audacity","original":"/home/vilyaem/.config/audacity"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_blender","original":"/home/vilyaem/.config/blender"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_composer","original":"/home/vilyaem/.config/composer"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_cubocore","original":"/home/vilyaem/.config/cubocore"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_fish","original":"/home/vilyaem/.config/fish"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_fontforge","original":"/home/vilyaem/.config/fontforge"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_go","original":"/home/vilyaem/.config/go"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_inkscape","original":"/home/vilyaem/.config/inkscape"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_invidtui","original":"/home/vilyaem/.config/invidtui"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_kde.org","original":"/home/vilyaem/.config/kde.org"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_linphone","original":"/home/vilyaem/.config/linphone"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_luakit","original":"/home/vilyaem/.config/luakit"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_marblerc","original":"/home/vilyaem/.config/marblerc"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_menus","original":"/home/vilyaem/.config/menus"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_netsurf","original":"/home/vilyaem/.config/netsurf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_psi+","original":"/home/vilyaem/.config/psi+"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_vimb","original":"/home/vilyaem/.config/vimb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_weechat","original":"/home/vilyaem/.config/weechat"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_xfce4","original":"/home/vilyaem/.config/xfce4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.docker","original":"/home/vilyaem/.docker"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.jsdos","original":"/home/vilyaem/.jsdos"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.librewolf","original":"/home/vilyaem/.librewolf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_.librewolf","original":"/home/vilyaem/.librewolf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.links","original":"/home/vilyaem/.links"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.linphone-zidcache","original":"/home/vilyaem/.linphone-zidcache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.linphonerc","original":"/home/vilyaem/.linphonerc"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.lyrics","original":"/home/vilyaem/.lyrics"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.mozilla","original":"/home/vilyaem/.mozilla"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_.mozilla","original":"/home/vilyaem/.mozilla"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.mp4","original":"/home/vilyaem/.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.mupdf.history","original":"/home/vilyaem/.mupdf.history"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.npm","original":"/home/vilyaem/.npm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.pki","original":"/home/vilyaem/.pki"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.python_history","original":"/home/vilyaem/.python_history"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.surf","original":"/home/vilyaem/.surf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.thunderbird","original":"/home/vilyaem/.thunderbird"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.var","original":"/home/vilyaem/.var"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.~lock.exercisesheet2.ods#","original":"/home/vilyaem/.~lock.exercisesheet2.ods#"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_41622 - SoyBooru.jpg","original":"/home/vilyaem/41622 - SoyBooru.jpg"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_78297 - SoyBooru.png","original":"/home/vilyaem/78297 - SoyBooru.png"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_80338 - SoyBooru.jpg","original":"/home/vilyaem/80338 - SoyBooru.jpg"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/002_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/003_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/004_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/005_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/006_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/007_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/008_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/009_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/010_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/011_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/012_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/013_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/014_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/016_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/017_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/018_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/019_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/020_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/021_Downloads","original":"/home/vilyaem/Downloads"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Videos","original":"/home/vilyaem/Videos"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_a.out","original":"/home/vilyaem/a.out"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_nresume.pdf","original":"/home/vilyaem/books/nresume.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_blender-3.6.15-linux-x64","original":"/home/vilyaem/d/blender-3.6.15-linux-x64"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_chudsvacation-0.01_linux64.tar.gz","original":"/home/vilyaem/d/chudsvacation-0.01_linux64.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bwdm","original":"/home/vilyaem/d/hmmr/bwdm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_dosbox.conf","original":"/home/vilyaem/dosbox.conf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Telegram","original":"/home/vilyaem/down/Telegram"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_tb","original":"/home/vilyaem/down/tb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_track08.ra","original":"/home/vilyaem/down/track08.ra"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_upscayl","original":"/home/vilyaem/down/upscayl"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_evlis.zip","original":"/home/vilyaem/evlis.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_georgedroyd.mp4","original":"/home/vilyaem/georgedroyd.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_go","original":"/home/vilyaem/go"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/002_go","original":"/home/vilyaem/go"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_i","original":"/home/vilyaem/i"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_intelephense","original":"/home/vilyaem/intelephense"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_intelephense","original":"/home/vilyaem/intelephense"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Arabic Advanced CD1-01.mp3","original":"/home/vilyaem/m/audio/MichelThomas/Michel Thomas Courses/Arabic Advanced CD1/Arabic Advanced CD1-01.mp3"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Arabic Advanced CD1-02.mp3","original":"/home/vilyaem/m/audio/MichelThomas/Michel Thomas Courses/Arabic Advanced CD1/Arabic Advanced CD1-02.mp3"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Arabic Advanced CD1-03.mp3","original":"/home/vilyaem/m/audio/MichelThomas/Michel Thomas Courses/Arabic Advanced CD1/Arabic Advanced CD1-03.mp3"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Arabic Advanced CD1-04.mp3","original":"/home/vilyaem/m/audio/MichelThomas/Michel Thomas Courses/Arabic Advanced CD1/Arabic Advanced CD1-04.mp3"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Arabic Advanced CD1-05.mp3","original":"/home/vilyaem/m/audio/MichelThomas/Michel Thomas Courses/Arabic Advanced CD1/Arabic Advanced CD1-05.mp3"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_test","original":"/home/vilyaem/m/test"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_new","original":"/home/vilyaem/m/vilyaemkenyaz/new"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_main.c","original":"/home/vilyaem/main.c"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_mashed","original":"/home/vilyaem/media/mashed"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_100 Subscriber Special! [2UlfOl18Glk].mkv","original":"/home/vilyaem/media/mashed/100 Subscriber Special! [2UlfOl18Glk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_A Járható Út (Hangoskönyv) [lzdkRhU5GTA].f251.webm.part","original":"/home/vilyaem/media/mashed/A Járható Út (Hangoskönyv) [lzdkRhU5GTA].f251.webm.part"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_A Járható Út (Hangoskönyv) [lzdkRhU5GTA].f299.mp4.part","original":"/home/vilyaem/media/mashed/A Járható Út (Hangoskönyv) [lzdkRhU5GTA].f299.mp4.part"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Console Peasants And PC Elitist [oh1ezu5msHc].mkv","original":"/home/vilyaem/media/mashed/Console Peasants And PC Elitist [oh1ezu5msHc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Creating a website (CS50 Week 8) [MjPEjttaQ8E].f251.webm.part","original":"/home/vilyaem/media/mashed/Creating a website (CS50 Week 8) [MjPEjttaQ8E].f251.webm.part"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Discord Scams [CuAnITpoc5w].webm","original":"/home/vilyaem/media/mashed/Discord Scams [CuAnITpoc5w].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Face reveal [hOjZ3w7n-gE].mkv","original":"/home/vilyaem/media/mashed/Face reveal [hOjZ3w7n-gE].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Feminism is not needed anymore [JvWiS0cETso].mkv","original":"/home/vilyaem/media/mashed/Feminism is not needed anymore [JvWiS0cETso].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Hacking [xMPLILravW8].mkv","original":"/home/vilyaem/media/mashed/Hacking [xMPLILravW8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_My YouTuber Encounters (Fitz, Swaggersouls, Faceless) [ontfiLKvHK4].mkv","original":"/home/vilyaem/media/mashed/My YouTuber Encounters (Fitz, Swaggersouls, Faceless) [ontfiLKvHK4].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_My thoughts on modern dating... [rTpg4inLyd8].webm","original":"/home/vilyaem/media/mashed/My thoughts on modern dating... [rTpg4inLyd8].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_PC VS Console [LSWL--VV7ow].mkv","original":"/home/vilyaem/media/mashed/PC VS Console [LSWL--VV7ow].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Payday 2: The Review [GmaNL126zfg].mkv","original":"/home/vilyaem/media/mashed/Payday 2: The Review [GmaNL126zfg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Source 2 is the most important engine... [5zUZrTY5LbA].mkv","original":"/home/vilyaem/media/mashed/Source 2 is the most important engine... [5zUZrTY5LbA].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_TOSS!🍌A GOOD VR CLIMBER? [XQ17HAiG83g].mkv","original":"/home/vilyaem/media/mashed/TOSS!🍌A GOOD VR CLIMBER? [XQ17HAiG83g].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_The Left is becoming more radical [9KbtHtup3Jk].mkv","original":"/home/vilyaem/media/mashed/The Left is becoming more radical [9KbtHtup3Jk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_The Political Compass explained [XRB8hxBKQsg].mkv","original":"/home/vilyaem/media/mashed/The Political Compass explained [XRB8hxBKQsg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Thoughtful Peasants 1 [KjKVeE0xfq8].mkv","original":"/home/vilyaem/media/mashed/Thoughtful Peasants 1 [KjKVeE0xfq8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Top Drawing's,Meme's And Loom [pcomvjUQV90].mp4","original":"/home/vilyaem/media/mashed/Top Drawing's,Meme's And Loom [pcomvjUQV90].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Type Some Comments [aZWWpFiWDCc].mkv","original":"/home/vilyaem/media/mashed/Type Some Comments [aZWWpFiWDCc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_What's the future of VR like? [XJgsoQs37N8].mkv","original":"/home/vilyaem/media/mashed/What's the future of VR like? [XJgsoQs37N8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Where I've been? [TXvRkV0UbbA].mkv","original":"/home/vilyaem/media/mashed/Where I've been? [TXvRkV0UbbA].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Why tech geniuses limit their kids phone time [UuJ2g_nomG4].mkv","original":"/home/vilyaem/media/mashed/Why tech geniuses limit their kids phone time [UuJ2g_nomG4].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Why you should use Git⧸Github [L5tdMP_rOOs].mkv","original":"/home/vilyaem/media/mashed/Why you should use Git⧸Github [L5tdMP_rOOs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Why you shouldn't buy from G2A [hcMpbyejvT4].mkv","original":"/home/vilyaem/media/mashed/Why you shouldn't buy from G2A [hcMpbyejvT4].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_smirk.mp4 [hu0uHUrnTG0].mkv","original":"/home/vilyaem/media/mashed/smirk.mp4 [hu0uHUrnTG0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_update [TC7U56zYR-A].mkv","original":"/home/vilyaem/media/mashed/update [TC7U56zYR-A].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_who i'm voting for president [z_YrKxYA5e4].mkv","original":"/home/vilyaem/media/mashed/who i'm voting for president [z_YrKxYA5e4].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_King%20Terry-enobjd0wq0e71.mp4","original":"/home/vilyaem/media/other/King%20Terry-enobjd0wq0e71.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Terry_death_confirmation_2018-09-0514-21-40.flv","original":"/home/vilyaem/media/other/Terry_death_confirmation_2018-09-0514-21-40.flv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Terry_death_confirmation_2018-09-0514-21-40.ogv","original":"/home/vilyaem/media/other/Terry_death_confirmation_2018-09-0514-21-40.ogv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_autism","original":"/home/vilyaem/media/other/autism"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_autism.zip","original":"/home/vilyaem/media/other/autism.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_chineselady.webp","original":"/home/vilyaem/media/other/chineselady.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_donbass.webm","original":"/home/vilyaem/media/other/donbass.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_mini","original":"/home/vilyaem/media/other/mini"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Benjamin Freedman Speech UNEDITED VERSION (1961) On NWO, Zionism, WW1, WW2 and WW3 [qXjawSyqfT23].mp4.webm","original":"/home/vilyaem/media/other/mini/Benjamin Freedman Speech UNEDITED VERSION (1961) On NWO, Zionism, WW1, WW2 and WW3 [qXjawSyqfT23].mp4.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_workout - too busy.JPG","original":"/home/vilyaem/media/other/workout - too busy.JPG"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Demons in video games and anime [CqKySrOwIjk].webm","original":"/home/vilyaem/media/schizolab/Demons in video games and anime [CqKySrOwIjk].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1428545_main.mp4","original":"/home/vilyaem/media/test/1428545_main.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_25-proofs-earth-is-young-dr-grady-mcmurtry-6000-year-old-earth.mp4","original":"/home/vilyaem/media/test/25-proofs-earth-is-young-dr-grady-mcmurtry-6000-year-old-earth.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_396e88f14f53b5eb1ae68836371449bb9bb883035a0e221ba8628b8d80e14e52.mp4","original":"/home/vilyaem/media/test/396e88f14f53b5eb1ae68836371449bb9bb883035a0e221ba8628b8d80e14e52.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_87594SoyBooru.mp4","original":"/home/vilyaem/media/test/87594SoyBooru.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Arabic Orthodox Chant | اليوم يوم القيامة [knBc0UZbzdw].mp4","original":"/home/vilyaem/media/test/Arabic Orthodox Chant | اليوم يوم القيامة [knBc0UZbzdw].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Average Ukrainian [jL4wUUh8Bnc].mp4","original":"/home/vilyaem/media/test/Average Ukrainian [jL4wUUh8Bnc].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Battle of Moscow 1941 - Nazi Germany vs Soviet Union [HD]-KdD0Xps2B6A.mp4 (1).mp4","original":"/home/vilyaem/media/test/Battle of Moscow 1941 - Nazi Germany vs Soviet Union [HD]-KdD0Xps2B6A.mp4 (1).mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_CIA NIGGERS GLOW IN THE DARK.mp4","original":"/home/vilyaem/media/test/CIA NIGGERS GLOW IN THE DARK.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Christchurch mosque video 03-15-2019 [823d4d1e340b5357f700a8912c876050cddf239c].mp4","original":"/home/vilyaem/media/test/Christchurch mosque video 03-15-2019 [823d4d1e340b5357f700a8912c876050cddf239c].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/002_Christchurch mosque video 03-15-2019 [823d4d1e340b5357f700a8912c876050cddf239c].mp4","original":"/home/vilyaem/media/test/Christchurch mosque video 03-15-2019 [823d4d1e340b5357f700a8912c876050cddf239c].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Freemasonry: The Depths of Satan - Elder Athanasios Mitilinaios [CUu-6a0KhHw].webm","original":"/home/vilyaem/media/test/Freemasonry: The Depths of Satan - Elder Athanasios Mitilinaios [CUu-6a0KhHw].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_GeburtstagsparadenFrAdolfHitler-Jahre19331936193919421945BirthdayParadesForAdolfHitler_512kb.mp4","original":"/home/vilyaem/media/test/GeburtstagsparadenFrAdolfHitler-Jahre19331936193919421945BirthdayParadesForAdolfHitler_512kb.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_Hitmen_for_Hire.mp4","original":"/home/vilyaem/media/test/Hitmen_for_Hire.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_How did George Hackenschmidt get so JACKED? [Toetmb0b8kI].webm","original":"/home/vilyaem/media/test/How did George Hackenschmidt get so JACKED? [Toetmb0b8kI].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Multiple phone numbers across devices with JMP.chat (MMS + Phone) [u7MTwS99Tq8].mkv","original":"/home/vilyaem/media/test/Multiple phone numbers across devices with JMP.chat (MMS + Phone) [u7MTwS99Tq8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_My Journey from Lutheran to Orthodox Christian [699972054].mp4","original":"/home/vilyaem/media/test/My Journey from Lutheran to Orthodox Christian [699972054].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_My Journey from Lutheran to Orthodox Christian [Wu0_yo8ZgVY].mkv","original":"/home/vilyaem/media/test/My Journey from Lutheran to Orthodox Christian [Wu0_yo8ZgVY].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Psalm 50 (Romanian Orthodox Chant) [L7aVbs3qvGs].mkv","original":"/home/vilyaem/media/test/Psalm 50 (Romanian Orthodox Chant) [L7aVbs3qvGs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Revolution OS (2001) Complete Documentary [Subs: ENG, ESP] [svDtjA2WiFU].mkv","original":"/home/vilyaem/media/test/Revolution OS (2001) Complete Documentary [Subs: ENG, ESP] [svDtjA2WiFU].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Saint Mary Protectress Center [3jWvk7HhkAo].mkv","original":"/home/vilyaem/media/test/Saint Mary Protectress Center [3jWvk7HhkAo].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_The nigger cattle of the CIA and the illuminati suck Terry Davis cock!.mp4","original":"/home/vilyaem/media/test/The nigger cattle of the CIA and the illuminati suck Terry Davis cock!.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_This%20Is%20My%20Choice-1080p-hls.mp4","original":"/home/vilyaem/media/test/This%20Is%20My%20Choice-1080p-hls.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_Your%20Own%20Cross-1080p-hls.mp4","original":"/home/vilyaem/media/test/Your%20Own%20Cross-1080p-hls.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_gail-riplinger-perfection-or-perversion-of-the-holy-bible.mp4","original":"/home/vilyaem/media/test/gail-riplinger-perfection-or-perversion-of-the-holy-bible.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_output.mkv","original":"/home/vilyaem/media/test/output.mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_output.mp4","original":"/home/vilyaem/media/test/output.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_'Apeson ESCAPE (edit) #hwabag #soyjak #edit #phonkedit #capcut #cobson [jDNtcqc4QKs].webm","original":"/home/vilyaem/media/test/proc/'Apeson ESCAPE (edit) #hwabag #soyjak #edit #phonkedit #capcut #cobson [jDNtcqc4QKs].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1505736581860.webm","original":"/home/vilyaem/media/test/proc/1505736581860.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1505878409107.webm","original":"/home/vilyaem/media/test/proc/1505878409107.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1506016183417.webm","original":"/home/vilyaem/media/test/proc/1506016183417.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1670598341345.webm","original":"/home/vilyaem/media/test/proc/1670598341345.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_60_pizzas_IAS.webm.720p.vp9.webm","original":"/home/vilyaem/media/test/proc/60_pizzas_IAS.webm.720p.vp9.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Christ The Eternal King [GUQC_PODU1M].webm","original":"/home/vilyaem/media/test/proc/Christ The Eternal King [GUQC_PODU1M].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_Christchurch mosque video 03-15-2019 [823d4d1e340b5357f700a8912c876050cddf239c].mp4","original":"/home/vilyaem/media/test/proc/Christchurch mosque video 03-15-2019 [823d4d1e340b5357f700a8912c876050cddf239c].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Coma - Paimen (1996) [60fps] [oHjtmOFrX-k].mp4","original":"/home/vilyaem/media/test/proc/Coma - Paimen (1996) [60fps] [oHjtmOFrX-k].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Dennis Ritchie - Write in C [H4YRPdRXKFs].webm","original":"/home/vilyaem/media/test/proc/Dennis Ritchie - Write in C [H4YRPdRXKFs].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Do Not Sing, Nightingale (English Subtitles).mp4","original":"/home/vilyaem/media/test/proc/Do Not Sing, Nightingale (English Subtitles).mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Emperor Nicholas 2 - edit (Russian Empire) [tC1MdMcKvvI].webm","original":"/home/vilyaem/media/test/proc/Emperor Nicholas 2 - edit (Russian Empire) [tC1MdMcKvvI].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_FORCED VAX RAIDS IN RUSSIA [uGKOlIK06OqS].mp4","original":"/home/vilyaem/media/test/proc/FORCED VAX RAIDS IN RUSSIA [uGKOlIK06OqS].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_GeburtstagsparadenFrAdolfHitler-Jahre19331936193919421945BirthdayParadesForAdolfHitler_512kb.mp4","original":"/home/vilyaem/media/test/proc/GeburtstagsparadenFrAdolfHitler-Jahre19331936193919421945BirthdayParadesForAdolfHitler_512kb.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Gentoo: A ℂ𝕠𝕞𝕗𝕪 Install Guide [J7W9MItUSGw].webm","original":"/home/vilyaem/media/test/proc/Gentoo: A ℂ𝕠𝕞𝕗𝕪 Install Guide [J7W9MItUSGw].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Hitmen_for_Hire.mp4","original":"/home/vilyaem/media/test/proc/Hitmen_for_Hire.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_How To Build A Shed [rWpCEnNAQzQ].mp4","original":"/home/vilyaem/media/test/proc/How To Build A Shed [rWpCEnNAQzQ].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_How_to_dox_pedophiles_slash_bad_people_educational_video.mp4.480p.vp9.webm","original":"/home/vilyaem/media/test/proc/How_to_dox_pedophiles_slash_bad_people_educational_video.mp4.480p.vp9.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_HumanSacrificeCern.mp4","original":"/home/vilyaem/media/test/proc/HumanSacrificeCern.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_I Made a 3D Modeler, in C, in a Week [-Xb3Kk3HhIw].webm","original":"/home/vilyaem/media/test/proc/I Made a 3D Modeler, in C, in a Week [-Xb3Kk3HhIw].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Inside the Unabomber's Cabin [QKg3CN0dDnQ].webm","original":"/home/vilyaem/media/test/proc/Inside the Unabomber's Cabin [QKg3CN0dDnQ].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_LouisPosting.mp4.180p.vp9.webm","original":"/home/vilyaem/media/test/proc/LouisPosting.mp4.180p.vp9.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_My Journey from Lutheran to Orthodox Christian [699972054].mp4","original":"/home/vilyaem/media/test/proc/My Journey from Lutheran to Orthodox Christian [699972054].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Pippastein_(2).mp4.480p.vp9.webm","original":"/home/vilyaem/media/test/proc/Pippastein_(2).mp4.480p.vp9.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Plan_9_Not_dead,_Just_Resting,_by_Ori_Bernstein.mp4","original":"/home/vilyaem/media/test/proc/Plan_9_Not_dead,_Just_Resting,_by_Ori_Bernstein.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Psalm 50 (51): Chanted in English by the Greek Orthodox. [pJ8ufoy4ulw].webm","original":"/home/vilyaem/media/test/proc/Psalm 50 (51): Chanted in English by the Greek Orthodox. [pJ8ufoy4ulw].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Psalm 50 (Arabic) | المزمور الخمسين [8Al3tLf6Z5s].webm","original":"/home/vilyaem/media/test/proc/Psalm 50 (Arabic) | المزمور الخمسين [8Al3tLf6Z5s].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_QUANTUM COMPUTERS EXPOSED AI = DEMONIC SPIRITS WORKING THROUGH TECHNOLOGY [oBu0nVQal2Yz].mp4","original":"/home/vilyaem/media/test/proc/QUANTUM COMPUTERS EXPOSED AI = DEMONIC SPIRITS WORKING THROUGH TECHNOLOGY [oBu0nVQal2Yz].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_SERBIAN ARTILLERY IS LED BY GOD [JFteJlDJvqY].webm","original":"/home/vilyaem/media/test/proc/SERBIAN ARTILLERY IS LED BY GOD [JFteJlDJvqY].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Slavic Aryan Dream ⧸ Slavic-Hyperborean mythology ⧸ Golden Age of Aryan race [CdlyVV59Zqk].webm","original":"/home/vilyaem/media/test/proc/Slavic Aryan Dream ⧸ Slavic-Hyperborean mythology ⧸ Golden Age of Aryan race [CdlyVV59Zqk].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Song of Resurrection - Chinese Chant [hILcYnsTUg4].webm","original":"/home/vilyaem/media/test/proc/Song of Resurrection - Chinese Chant [hILcYnsTUg4].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Tatar Dancers in Howell, Michigan [HKG23OJApkc].webm","original":"/home/vilyaem/media/test/proc/Tatar Dancers in Howell, Michigan [HKG23OJApkc].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Terry Davis CIA [7fNAsSYyN48].webm","original":"/home/vilyaem/media/test/proc/Terry Davis CIA [7fNAsSYyN48].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_The nigger cattle of the CIA and the illuminati suck Terry Davis cock!.mp4","original":"/home/vilyaem/media/test/proc/The nigger cattle of the CIA and the illuminati suck Terry Davis cock!.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Tunnel Jews [WsX6uVewnPo].webm","original":"/home/vilyaem/media/test/proc/Tunnel Jews [WsX6uVewnPo].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_WELCOME 2 THE TRIBULATION (ITS GOING 2 GET WORSE EVERYDAY) [KytcrWgn3PwC].mp4","original":"/home/vilyaem/media/test/proc/WELCOME 2 THE TRIBULATION (ITS GOING 2 GET WORSE EVERYDAY) [KytcrWgn3PwC].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Wer_hat_Muammar_Gaddafi_ermordet.mp4","original":"/home/vilyaem/media/test/proc/Wer_hat_Muammar_Gaddafi_ermordet.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Your%20Own%20Cross-1080p-hls.mp4","original":"/home/vilyaem/media/test/proc/Your%20Own%20Cross-1080p-hls.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Zyzz - Malo Tebya (Hardstyle Remix) [r45SFAj_m00].webm","original":"/home/vilyaem/media/test/proc/Zyzz - Malo Tebya (Hardstyle Remix) [r45SFAj_m00].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_agartha.mp4","original":"/home/vilyaem/media/test/proc/agartha.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_death-bed-confession-project-slamdunk-official-govt.-code-name-of-the-moon-landing-hoax.mp4","original":"/home/vilyaem/media/test/proc/death-bed-confession-project-slamdunk-official-govt.-code-name-of-the-moon-landing-hoax.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_gail-riplinger-perfection-or-perversion-of-the-holy-bible.mp4","original":"/home/vilyaem/media/test/proc/gail-riplinger-perfection-or-perversion-of-the-holy-bible.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_jewlaugh.webm","original":"/home/vilyaem/media/test/proc/jewlaugh.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_output.mkv","original":"/home/vilyaem/media/test/proc/output.mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_terry davis edit [yeM9DpjDJa4].webm","original":"/home/vilyaem/media/test/proc/terry davis edit [yeM9DpjDJa4].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_terry davis x yeat [i5PcpeVxYHQ].webm","original":"/home/vilyaem/media/test/proc/terry davis x yeat [i5PcpeVxYHQ].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_terrydWriteInC.webm","original":"/home/vilyaem/media/test/proc/terrydWriteInC.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_videoplayback.webm","original":"/home/vilyaem/media/test/proc/videoplayback.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_videoplayback.webm.mp4","original":"/home/vilyaem/media/test/proc/videoplayback.webm.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_المسيح قام من بين الأموات Christ is Risen from the Dead Arabic Hymn [epM8SBuDJFk].webm","original":"/home/vilyaem/media/test/proc/المسيح قام من بين الأموات Christ is Risen from the Dead Arabic Hymn [epM8SBuDJFk].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_recording.mkv","original":"/home/vilyaem/media/test/recording.mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1.jpg","original":"/home/vilyaem/media/vilyaemkenyaz/1.jpg"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_2.jpg","original":"/home/vilyaem/media/vilyaemkenyaz/2.jpg"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_mini","original":"/home/vilyaem/media/vilyaemkenyaz/mini"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_(LinSim) 38 htm Petrus [eMJ5FC7NSMI].mkv","original":"/home/vilyaem/media/xmdi/(LinSim) 38 htm Petrus [eMJ5FC7NSMI].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.29 lol Petrus [F-JPtAuIEfw].mkv","original":"/home/vilyaem/media/xmdi/10.29 lol Petrus [F-JPtAuIEfw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.49 Portico Method [FK_hrbokk7Y].mkv","original":"/home/vilyaem/media/xmdi/10.49 Portico Method [FK_hrbokk7Y].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.56 Heise single [dXN4r1VZBZY].mkv","original":"/home/vilyaem/media/xmdi/10.56 Heise single [dXN4r1VZBZY].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.57 Petrus avg5 [former ytuwr] [jQF9lBRQ84k].mkv","original":"/home/vilyaem/media/xmdi/10.57 Petrus avg5 [former ytuwr] [jQF9lBRQ84k].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.69 SpeedBLD Petrus FAIL [ipylkzxgVTA].mkv","original":"/home/vilyaem/media/xmdi/10.69 SpeedBLD Petrus FAIL [ipylkzxgVTA].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.71 Heise [bntCJleu5YU].mkv","original":"/home/vilyaem/media/xmdi/10.71 Heise [bntCJleu5YU].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.98 single Snyder Method [MsNE51qr6FI].mp4","original":"/home/vilyaem/media/xmdi/10.98 single Snyder Method [MsNE51qr6FI].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_10.99 [g803fFmHwPo].mkv","original":"/home/vilyaem/media/xmdi/10.99 [g803fFmHwPo].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1080 pls pls pls? [LfCKwTkVTxE].mp4","original":"/home/vilyaem/media/xmdi/1080 pls pls pls? [LfCKwTkVTxE].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.18 petrus for Dallas [kzkpBFKDovQ].mp4","original":"/home/vilyaem/media/xmdi/11.18 petrus for Dallas [kzkpBFKDovQ].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.21 NL petrus avg5 [wbFB2wdE2Go].mkv","original":"/home/vilyaem/media/xmdi/11.21 NL petrus avg5 [wbFB2wdE2Go].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.27 avg5 method neutral (& 9.08 CFOP with 2L OLL) [_Rx_0S6sYNQ].mkv","original":"/home/vilyaem/media/xmdi/11.27 avg5 method neutral (& 9.08 CFOP with 2L OLL) [_Rx_0S6sYNQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.70 avg5 Petrus (guhong v1) [sTcZCgVyGLw].mkv","original":"/home/vilyaem/media/xmdi/11.70 avg5 Petrus (guhong v1) [sTcZCgVyGLw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.79 cfop avg5 [jDpDFLGyc04].mkv","original":"/home/vilyaem/media/xmdi/11.79 cfop avg5 [jDpDFLGyc04].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.83 nl single [gSpb-Mupo1I].mp4","original":"/home/vilyaem/media/xmdi/11.83 nl single [gSpb-Mupo1I].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_11.85 avg5 Petrus [_pKkgqKDPp0].mkv","original":"/home/vilyaem/media/xmdi/11.85 avg5 Petrus [_pKkgqKDPp0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.04 avg5 Petrus [8ua51MaK1wM].mkv","original":"/home/vilyaem/media/xmdi/12.04 avg5 Petrus [8ua51MaK1wM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.11 avg5 on AV (method neutral) [ETXlvLdnzCs].mkv","original":"/home/vilyaem/media/xmdi/12.11 avg5 on AV (method neutral) [ETXlvLdnzCs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.17 avg5 Petrus [03OacKi_8WQ].mkv","original":"/home/vilyaem/media/xmdi/12.17 avg5 Petrus [03OacKi_8WQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.29 petrus [O7Hhu6bSQKs].mkv","original":"/home/vilyaem/media/xmdi/12.29 petrus [O7Hhu6bSQKs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.39 avg5 with Proactive EOLine [QQY2mumHddY].mkv","original":"/home/vilyaem/media/xmdi/12.39 avg5 with Proactive EOLine [QQY2mumHddY].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.54 [SgQCwQuBUEI].mp4","original":"/home/vilyaem/media/xmdi/12.54 [SgQCwQuBUEI].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.56 [vGJgEGS_BjQ].mkv","original":"/home/vilyaem/media/xmdi/12.56 [vGJgEGS_BjQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.58 [R2whEG6NPzA].mp4","original":"/home/vilyaem/media/xmdi/12.58 [R2whEG6NPzA].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.75 avg5 Petrus [EKWigEOP2Ak].mkv","original":"/home/vilyaem/media/xmdi/12.75 avg5 Petrus [EKWigEOP2Ak].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.97 petrus [gmJA1I7hQF8].mp4","original":"/home/vilyaem/media/xmdi/12.97 petrus [gmJA1I7hQF8].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.98 petrus avg5 [Mi02B_onZqs].mkv","original":"/home/vilyaem/media/xmdi/12.98 petrus avg5 [Mi02B_onZqs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_12.99 avg5 Method Neutral [oNOCpSEHDzc].mkv","original":"/home/vilyaem/media/xmdi/12.99 avg5 Method Neutral [oNOCpSEHDzc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.02 avg12 Petrus [uF_wBspHBQo].mp4","original":"/home/vilyaem/media/xmdi/13.02 avg12 Petrus [uF_wBspHBQo].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.05 zzoh [bXT0MfwdPvs].mkv","original":"/home/vilyaem/media/xmdi/13.05 zzoh [bXT0MfwdPvs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.10 Heise single LOL [lNmxt7R03zw].mkv","original":"/home/vilyaem/media/xmdi/13.10 Heise single LOL [lNmxt7R03zw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.18 avg12 Petrus [N19SxOO6iyQ].mkv","original":"/home/vilyaem/media/xmdi/13.18 avg12 Petrus [N19SxOO6iyQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.48 ZZ-D (porkynator2) [1rRgK5tWZ5I].mkv","original":"/home/vilyaem/media/xmdi/13.48 ZZ-D (porkynator2) [1rRgK5tWZ5I].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.81 avg5 petrus [D6sHRuAiplU].mkv","original":"/home/vilyaem/media/xmdi/13.81 avg5 petrus [D6sHRuAiplU].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_13.89 avg5 Snyder Method (zero algs) [Xxx0LJQKhTw].mkv","original":"/home/vilyaem/media/xmdi/13.89 avg5 Snyder Method (zero algs) [Xxx0LJQKhTw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_14.27 Heise avg5 (speed-heise) [3MdO0V8P9Hg].mkv","original":"/home/vilyaem/media/xmdi/14.27 Heise avg5 (speed-heise) [3MdO0V8P9Hg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_14.62 avg5 Petrus [6MvEqIdcL88].mkv","original":"/home/vilyaem/media/xmdi/14.62 avg5 Petrus [6MvEqIdcL88].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_14.70 [cR4Li6ItBIk].mkv","original":"/home/vilyaem/media/xmdi/14.70 [cR4Li6ItBIk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_14.73 avg5 only PLL skips [i1XAB7KRSaw].mkv","original":"/home/vilyaem/media/xmdi/14.73 avg5 only PLL skips [i1XAB7KRSaw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_14.79 avg5 CPLS (and 11.48 NL single) [de9PEK82ELY].mkv","original":"/home/vilyaem/media/xmdi/14.79 avg5 CPLS (and 11.48 NL single) [de9PEK82ELY].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_15.30 sec zzoh [teht_nATiMA].mp4","original":"/home/vilyaem/media/xmdi/15.30 sec zzoh [teht_nATiMA].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_15.43 [CaPNNNzsxQY].mkv","original":"/home/vilyaem/media/xmdi/15.43 [CaPNNNzsxQY].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_15.68 avg5 Speed-Optimized Heise [DfmqJTO1VsM].mkv","original":"/home/vilyaem/media/xmdi/15.68 avg5 Speed-Optimized Heise [DfmqJTO1VsM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_15.81 single Heise [IJTXD5rZvow].mkv","original":"/home/vilyaem/media/xmdi/15.81 single Heise [IJTXD5rZvow].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_15.90 ZZ-d avg5 [4ZO5X1cK9Uk].mkv","original":"/home/vilyaem/media/xmdi/15.90 ZZ-d avg5 [4ZO5X1cK9Uk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_15.97 lucky ZZ-Heise [TvBMw8ep7Rk].mp4","original":"/home/vilyaem/media/xmdi/15.97 lucky ZZ-Heise [TvBMw8ep7Rk].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_16.19 ao5 ZZ-LOL (line on left) [ZsiCKhVLyEI].mkv","original":"/home/vilyaem/media/xmdi/16.19 ao5 ZZ-LOL (line on left) [ZsiCKhVLyEI].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_16.52 [hpoppyGoCAE].mp4","original":"/home/vilyaem/media/xmdi/16.52 [hpoppyGoCAE].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_16.72 avg5 [aKUyNJ3bLK0].mkv","original":"/home/vilyaem/media/xmdi/16.72 avg5 [aKUyNJ3bLK0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_16.75 nl heise [FNlgjLWSAS8].mkv","original":"/home/vilyaem/media/xmdi/16.75 nl heise [FNlgjLWSAS8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_16.83 ZZ-D (porkynator2) [FhnzV_qQzrg].mkv","original":"/home/vilyaem/media/xmdi/16.83 ZZ-D (porkynator2) [FhnzV_qQzrg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_16.99 ZZ-d OH [gkNiE8L5O2A].mkv","original":"/home/vilyaem/media/xmdi/16.99 ZZ-d OH [gkNiE8L5O2A].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_17.30 petrus avg5 [6UiSbpMBobY].mkv","original":"/home/vilyaem/media/xmdi/17.30 petrus avg5 [6UiSbpMBobY].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_17.74 fullstep ZZ-D (porkynator2) [CdZOVv6Z2gs].mkv","original":"/home/vilyaem/media/xmdi/17.74 fullstep ZZ-D (porkynator2) [CdZOVv6Z2gs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_18.27 ZZ-D with missing link (porkynator2) [4Mge7uHqAgQ].mkv","original":"/home/vilyaem/media/xmdi/18.27 ZZ-D with missing link (porkynator2) [4Mge7uHqAgQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_19.04 with ZZ-D missing link (porkynator2) [bZhxuGdcVps].mkv","original":"/home/vilyaem/media/xmdi/19.04 with ZZ-D missing link (porkynator2) [bZhxuGdcVps].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_19.07 [DQlYtCZOgDU].mp4","original":"/home/vilyaem/media/xmdi/19.07 [DQlYtCZOgDU].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_19.11 oh avg5 [1GuLp4IIPM8].mp4","original":"/home/vilyaem/media/xmdi/19.11 oh avg5 [1GuLp4IIPM8].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_19.19 ZZ-ULTIMATE (zz cuber styles compilation) [JPEOlaWGJn4].mkv","original":"/home/vilyaem/media/xmdi/19.19 ZZ-ULTIMATE (zz cuber styles compilation) [JPEOlaWGJn4].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_19.56 oh avg5 [TWp7WXXwKjc].mkv","original":"/home/vilyaem/media/xmdi/19.56 oh avg5 [TWp7WXXwKjc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_1x Big Icicle [_kRxmRTqREo].mp4","original":"/home/vilyaem/media/xmdi/1x Big Icicle [_kRxmRTqREo].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_20.14 [qcFwkWO9gU8].mp4","original":"/home/vilyaem/media/xmdi/20.14 [qcFwkWO9gU8].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_20.21 [yRjgdyLapfQ].mp4","original":"/home/vilyaem/media/xmdi/20.21 [yRjgdyLapfQ].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_20.31 ZZ-D missing link (Porkynator2) [H8xFMiK8WzQ].mkv","original":"/home/vilyaem/media/xmdi/20.31 ZZ-D missing link (Porkynator2) [H8xFMiK8WzQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_20.32 avg5 Heise [x88NIxPOdCM].mkv","original":"/home/vilyaem/media/xmdi/20.32 avg5 Heise [x88NIxPOdCM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_22.01 OH ZZ-D with porkynator2 [pO1kfWTUvRw].mkv","original":"/home/vilyaem/media/xmdi/22.01 OH ZZ-D with porkynator2 [pO1kfWTUvRw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_22.29 avg12 with porkynator2 [2V5VNjUMCjw].mkv","original":"/home/vilyaem/media/xmdi/22.29 avg12 with porkynator2 [2V5VNjUMCjw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_23.91 avg5 with the REAL missing link to ZZ-D! [rGvkWZ4iiI8].mp4","original":"/home/vilyaem/media/xmdi/23.91 avg5 with the REAL missing link to ZZ-D! [rGvkWZ4iiI8].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_25.34 [StVc4_NiZUQ].mkv","original":"/home/vilyaem/media/xmdi/25.34 [StVc4_NiZUQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_2x2 1.85 [-Gm9lC2X17I].mkv","original":"/home/vilyaem/media/xmdi/2x2 1.85 [-Gm9lC2X17I].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_3D scatter plots in x86 asm | SCHIZONE EP-32 [09L90wlvUrY].webm","original":"/home/vilyaem/media/xmdi/3D scatter plots in x86 asm | SCHIZONE EP-32 [09L90wlvUrY].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_46.03 Composite Challenge [VBMsh5YcQL8].mkv","original":"/home/vilyaem/media/xmdi/46.03 Composite Challenge [VBMsh5YcQL8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_47.93; 3 method relay [Zyv6adhtUEw].mp4","original":"/home/vilyaem/media/xmdi/47.93; 3 method relay [Zyv6adhtUEw].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_4x4 (petrus4) 1_02.24 single [K75wnikVOLA].mkv","original":"/home/vilyaem/media/xmdi/4x4 (petrus4) 1_02.24 single [K75wnikVOLA].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_4x4 pb 56.15 [y0EwkcSwekw].mkv","original":"/home/vilyaem/media/xmdi/4x4 pb 56.15 [y0EwkcSwekw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_5 ADVANCED! Petrus Walkthroughs [rn1aYlpTynw].mkv","original":"/home/vilyaem/media/xmdi/5 ADVANCED! Petrus Walkthroughs [rn1aYlpTynw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_6[R2D2] = 2.66 [ARZuKSMmtEM].mkv","original":"/home/vilyaem/media/xmdi/6[R2D2] = 2.66 [ARZuKSMmtEM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_8.14 Petrus single [IkE_6YpvfIE].mkv","original":"/home/vilyaem/media/xmdi/8.14 Petrus single [IkE_6YpvfIE].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_8.55 Petrus single [xnoiVK-Lq9U].mkv","original":"/home/vilyaem/media/xmdi/8.55 Petrus single [xnoiVK-Lq9U].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_8.90 Petrus single LL skip [nFQ12ZzgDpk].mkv","original":"/home/vilyaem/media/xmdi/8.90 Petrus single LL skip [nFQ12ZzgDpk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_8.99 cfop pb lol [S1_-feNAg2g].mkv","original":"/home/vilyaem/media/xmdi/8.99 cfop pb lol [S1_-feNAg2g].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.16 Petrus fullstep [UG5j1zo7ccI].mkv","original":"/home/vilyaem/media/xmdi/9.16 Petrus fullstep [UG5j1zo7ccI].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.23 [QGR5OENmEL0].mkv","original":"/home/vilyaem/media/xmdi/9.23 [QGR5OENmEL0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.38 relaxed turning [eo4bxKaPMWc].mkv","original":"/home/vilyaem/media/xmdi/9.38 relaxed turning [eo4bxKaPMWc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.40 Petrus single [Z4q4fw7Lm0A].mkv","original":"/home/vilyaem/media/xmdi/9.40 Petrus single [Z4q4fw7Lm0A].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.56 freefop [fxodDE8o6Ag].mkv","original":"/home/vilyaem/media/xmdi/9.56 freefop [fxodDE8o6Ag].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.72 [vNZJCaCP3Pw].mkv","original":"/home/vilyaem/media/xmdi/9.72 [vNZJCaCP3Pw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_9.89 cfop [-LxrqIekWvU].mp4","original":"/home/vilyaem/media/xmdi/9.89 cfop [-LxrqIekWvU].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_A 13.37 Solve [o2Aiz7lAQ4U].mp4","original":"/home/vilyaem/media/xmdi/A 13.37 Solve [o2Aiz7lAQ4U].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_All About the Label - Vance! [Official Music Video] [jgraWwgtlXs].mkv","original":"/home/vilyaem/media/xmdi/All About the Label - Vance! [Official Music Video] [jgraWwgtlXs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Cheap fix for fridge that won't turn on [_MnRRepPYmI].mkv","original":"/home/vilyaem/media/xmdi/Cheap fix for fridge that won't turn on [_MnRRepPYmI].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Cubing Relay - 1_13.44 - Rensselaer Polytechnic Institute [A Team] [JxQfjedTWfI].mkv","original":"/home/vilyaem/media/xmdi/Cubing Relay - 1_13.44 - Rensselaer Polytechnic Institute [A Team] [JxQfjedTWfI].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Cubing Relay - 3_30.04 - Rensselaer Polytechnic Institute [B Team] [wQOORCDK0xg].mkv","original":"/home/vilyaem/media/xmdi/Cubing Relay - 3_30.04 - Rensselaer Polytechnic Institute [B Team] [wQOORCDK0xg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_EPLL time attack 4.41 [XtUCPvpVoxc].mkv","original":"/home/vilyaem/media/xmdi/EPLL time attack 4.41 [XtUCPvpVoxc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Heise: 17.72 avg5 + 14.15 single [2l2Zm3OOKbM].mkv","original":"/home/vilyaem/media/xmdi/Heise: 17.72 avg5 + 14.15 single [2l2Zm3OOKbM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Hillary Clinton and Jeffrey Dahmer [p7F51zR0-JM].mkv","original":"/home/vilyaem/media/xmdi/Hillary Clinton and Jeffrey Dahmer [p7F51zR0-JM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_LoL Diamond Ashe Montage S5 [LwWMfJxvhl0].mkv","original":"/home/vilyaem/media/xmdi/LoL Diamond Ashe Montage S5 [LwWMfJxvhl0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Lol new OH camera angle [Yt8uDjoBSgU].mp4","original":"/home/vilyaem/media/xmdi/Lol new OH camera angle [Yt8uDjoBSgU].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Mario vs Luigi [EFWPcsZ3VDA].mp4","original":"/home/vilyaem/media/xmdi/Mario vs Luigi [EFWPcsZ3VDA].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Michelle Obama is Eminem's Uncle ?? PROOF OF NWO ?? [NZlWdYCbMvs].mkv","original":"/home/vilyaem/media/xmdi/Michelle Obama is Eminem's Uncle ?? PROOF OF NWO ?? [NZlWdYCbMvs].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Muffins [C. Falcon] & Alien [Olimar] vs Dork [Ganondorf] & Big V [Kirby] ending moments [EnOBgPkgcgw].mp4","original":"/home/vilyaem/media/xmdi/Muffins [C. Falcon] & Alien [Olimar] vs Dork [Ganondorf] & Big V [Kirby] ending moments [EnOBgPkgcgw].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Muffins [Peach] vs Dork [Pikachu] ending moments [Cnc04n_ZtBc].mp4","original":"/home/vilyaem/media/xmdi/Muffins [Peach] vs Dork [Pikachu] ending moments [Cnc04n_ZtBc].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_PoV solve [n8WysDYoJ48].mkv","original":"/home/vilyaem/media/xmdi/PoV solve [n8WysDYoJ48].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Pure Heise and Speed-Heise Walkthrough [ZXl-kTEiiXA].webm","original":"/home/vilyaem/media/xmdi/Pure Heise and Speed-Heise Walkthrough [ZXl-kTEiiXA].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Racearound - Vance! [Official Music Video] [S0Q8WgsCtEU].mkv","original":"/home/vilyaem/media/xmdi/Racearound - Vance! [Official Music Video] [S0Q8WgsCtEU].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Rand Paul Benghazi Rap [8AeRSeHyuwM].mkv","original":"/home/vilyaem/media/xmdi/Rand Paul Benghazi Rap [8AeRSeHyuwM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Rubiksplosion [GRAPHIC CONTENT] [w0OGBqkhaO8].mp4","original":"/home/vilyaem/media/xmdi/Rubiksplosion [GRAPHIC CONTENT] [w0OGBqkhaO8].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Rubix's Cube Tutorial for Beginners [D2JvVqRZpDQ].mp4","original":"/home/vilyaem/media/xmdi/Rubix's Cube Tutorial for Beginners [D2JvVqRZpDQ].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Sub-20 with 20 ZZ "Variants" [VLObmp6MWRo].mkv","original":"/home/vilyaem/media/xmdi/Sub-20 with 20 ZZ "Variants" [VLObmp6MWRo].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Syndra Support Guide (S5) [G5FwJmUNWpM].mkv","original":"/home/vilyaem/media/xmdi/Syndra Support Guide (S5) [G5FwJmUNWpM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Tetris Method: 13.27 [AP_0Zf_xJpk].mkv","original":"/home/vilyaem/media/xmdi/Tetris Method: 13.27 [AP_0Zf_xJpk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_The Flattest Can We Ever Made - A Brawl Highlight Compilation [fDgM4UlDyhg].mkv","original":"/home/vilyaem/media/xmdi/The Flattest Can We Ever Made - A Brawl Highlight Compilation [fDgM4UlDyhg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Twisted Fate Advanced Positioning Guide (S6) [0FH2HsY5Zaw].mkv","original":"/home/vilyaem/media/xmdi/Twisted Fate Advanced Positioning Guide (S6) [0FH2HsY5Zaw].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ 3 cube relay - 57.92 [BF66gCWPjVQ].mkv","original":"/home/vilyaem/media/xmdi/ZZ 3 cube relay - 57.92 [BF66gCWPjVQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ 4.41 wr spoof [Gw305sUBNDM].mkv","original":"/home/vilyaem/media/xmdi/ZZ 4.41 wr spoof [Gw305sUBNDM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ Variant to Increase LL Skip Chances to 1⧸54, Less Moves [PGGgn8eIAxM].mkv","original":"/home/vilyaem/media/xmdi/ZZ Variant to Increase LL Skip Chances to 1⧸54, Less Moves [PGGgn8eIAxM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ example solve 2 [REzA6k5Ostc].mp4","original":"/home/vilyaem/media/xmdi/ZZ example solve 2 [REzA6k5Ostc].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ example solve 3 [bizduiKQv10].mkv","original":"/home/vilyaem/media/xmdi/ZZ example solve 3 [bizduiKQv10].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ example solve [QC3a2gxbULE].mp4","original":"/home/vilyaem/media/xmdi/ZZ example solve [QC3a2gxbULE].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ-Edges First example solve [jBlt8lmSlNQ].mp4","original":"/home/vilyaem/media/xmdi/ZZ-Edges First example solve [jBlt8lmSlNQ].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ-Rainbow [f4RIDNDceKo].mkv","original":"/home/vilyaem/media/xmdi/ZZ-Rainbow [f4RIDNDceKo].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ZZ-d 16.67 avg5 [Z1U-CYu_G70].mkv","original":"/home/vilyaem/media/xmdi/ZZ-d 16.67 avg5 [Z1U-CYu_G70].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_[1 of 3] Literally the Best Way to Break in Your Cube [LL9ezIFTRVc].mkv","original":"/home/vilyaem/media/xmdi/[1 of 3] Literally the Best Way to Break in Your Cube [LL9ezIFTRVc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_[HIGH ELO] J4 + TF OP Combo Season 5.23 [dDObkbt93i0].mkv","original":"/home/vilyaem/media/xmdi/[HIGH ELO] J4 + TF OP Combo Season 5.23 [dDObkbt93i0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_[High ELO] Fizz Montage (5.22 Preseason 6) [9HW1qZLN254].mkv","original":"/home/vilyaem/media/xmdi/[High ELO] Fizz Montage (5.22 Preseason 6) [9HW1qZLN254].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_[MLG] rand paul xx quickscope 1v1 rust [DdHFu6AxH6A].mkv","original":"/home/vilyaem/media/xmdi/[MLG] rand paul xx quickscope 1v1 rust [DdHFu6AxH6A].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_[Unboxing and Review] Moyu LingPo 2x2 [NAJvERrnCdc].mkv","original":"/home/vilyaem/media/xmdi/[Unboxing and Review] Moyu LingPo 2x2 [NAJvERrnCdc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_[YTUWR] 1_34.55 3x3 OH Wrist-Turning with Petrus while wearing America T-shirt [RSDlL14lJZc].mkv","original":"/home/vilyaem/media/xmdi/[YTUWR] 1_34.55 3x3 OH Wrist-Turning with Petrus while wearing America T-shirt [RSDlL14lJZc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_best trig approximations in x86 asm | SCHIZONE EP-31 [pbIhg0NF6pI].webm","original":"/home/vilyaem/media/xmdi/best trig approximations in x86 asm | SCHIZONE EP-31 [pbIhg0NF6pI].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_debugging in x86 assembly | BONUS SCHIZONE [n3OMTrl4k-Q].mp4.part","original":"/home/vilyaem/media/xmdi/debugging in x86 assembly | BONUS SCHIZONE [n3OMTrl4k-Q].mp4.part"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_debugging in x86 assembly | BONUS SCHIZONE [n3OMTrl4k-Q].mp4.ytdl","original":"/home/vilyaem/media/xmdi/debugging in x86 assembly | BONUS SCHIZONE [n3OMTrl4k-Q].mp4.ytdl"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_detailed anti-niklas tutorial for pyjam [TE8T_H8BWF0].mkv","original":"/home/vilyaem/media/xmdi/detailed anti-niklas tutorial for pyjam [TE8T_H8BWF0].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_footprints won't melt even after heavy rain [w1bYPavyC84].mkv","original":"/home/vilyaem/media/xmdi/footprints won't melt even after heavy rain [w1bYPavyC84].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_i hate bugs & 14.26 zz-d [tsfS0x2uHM8].mkv","original":"/home/vilyaem/media/xmdi/i hate bugs & 14.26 zz-d [tsfS0x2uHM8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_lol undead guhong [BInNeQnBbFE].mkv","original":"/home/vilyaem/media/xmdi/lol undead guhong [BInNeQnBbFE].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_lolFOP with hybrid cube [EpMh9jIS9HI].mp4","original":"/home/vilyaem/media/xmdi/lolFOP with hybrid cube [EpMh9jIS9HI].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ls in x86 assembly | SCHIZONE LAB-06 [GbsKzOtA7Lg].webm","original":"/home/vilyaem/media/xmdi/ls in x86 assembly | SCHIZONE LAB-06 [GbsKzOtA7Lg].webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_orange front? [ib0yP1ySoL8].mkv","original":"/home/vilyaem/media/xmdi/orange front? [ib0yP1ySoL8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_petrus 11.85 avg5 with counting 9.63 [K00TKNvBzCU].mkv","original":"/home/vilyaem/media/xmdi/petrus 11.85 avg5 with counting 9.63 [K00TKNvBzCU].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_petrus 14.33 [xy0qIQBhbJM].mkv","original":"/home/vilyaem/media/xmdi/petrus 14.33 [xy0qIQBhbJM].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_porky2 first success: 41.25 [tXEo78aYpug].mkv","original":"/home/vilyaem/media/xmdi/porky2 first success: 41.25 [tXEo78aYpug].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_proof [S7oISC3lyJA].mp4","original":"/home/vilyaem/media/xmdi/proof [S7oISC3lyJA].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_super lucky 2h 17.24 avg5 pl0x [SOxWWZ0B_f8].mkv","original":"/home/vilyaem/media/xmdi/super lucky 2h 17.24 avg5 pl0x [SOxWWZ0B_f8].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_teh Glove r essential [WrP2UY47YNg].mkv","original":"/home/vilyaem/media/xmdi/teh Glove r essential [WrP2UY47YNg].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_wcaTOOLKIT v2.0 (MASSIVE UPGRADE) [nCCE_V6LxUc].mkv","original":"/home/vilyaem/media/xmdi/wcaTOOLKIT v2.0 (MASSIVE UPGRADE) [nCCE_V6LxUc].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_xeoline solve [gTPOAqMx-m0].mp4","original":"/home/vilyaem/media/xmdi/xeoline solve [gTPOAqMx-m0].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_zz is leet [8rhsrFHFzig].mkv","original":"/home/vilyaem/media/xmdi/zz is leet [8rhsrFHFzig].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_zz-d 17.09 [sVpGJK2nDds].mp4","original":"/home/vilyaem/media/xmdi/zz-d 17.09 [sVpGJK2nDds].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_zz-d for speedsolving [quKlp7pT8Yk].mp4","original":"/home/vilyaem/media/xmdi/zz-d for speedsolving [quKlp7pT8Yk].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_zz-porky2 25.95 [7ZWfCvlyfWU].mkv","original":"/home/vilyaem/media/xmdi/zz-porky2 25.95 [7ZWfCvlyfWU].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_zzoh cam test [WbWh-aoBGC0].mp4","original":"/home/vilyaem/media/xmdi/zzoh cam test [WbWh-aoBGC0].mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_"C3" SSBB Gameplay Compilation [cMeLW9v_C8s].mkv","original":"/home/vilyaem/media/xmdi/"C3" SSBB Gameplay Compilation [cMeLW9v_C8s].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_"Crêpes" A SSBB Combo Video [TNdjhfuySdk].mkv","original":"/home/vilyaem/media/xmdi/"Crêpes" A SSBB Combo Video [TNdjhfuySdk].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_"Fishy and Headlights" A SSBB Combo Video [bIthPX5LOoE].mkv","original":"/home/vilyaem/media/xmdi/"Fishy and Headlights" A SSBB Combo Video [bIthPX5LOoE].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_"Zesta 4 Life" SSB Brawl Combo Video [jPNF789NRNQ].mkv","original":"/home/vilyaem/media/xmdi/"Zesta 4 Life" SSB Brawl Combo Video [jPNF789NRNQ].mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_monero-wallet-cli.log","original":"/home/vilyaem/monero-wallet-cli.log"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_endoflinus","original":"/home/vilyaem/prog/endoflinus"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_dm_entangled_rc1.bsp0000","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/cache/dm_entangled_rc1.bsp0000"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_downloadcache.db","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/cache/downloadcache.db"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_muschis.mp3.bz20000","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/cache/muschis.mp3.bz20000"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_question core.vtf0000","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/cache/question core.vtf0000"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_say_ahole.mp3.bz20000","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/cache/say_ahole.mp3.bz20000"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_thieves.mp3.bz20000","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/cache/thieves.mp3.bz20000"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_hl2mp_pak.vpk.sound.cache","original":"/home/vilyaem/prog/srcxp/dm/hl2mp/hl2mp_pak.vpk.sound.cache"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_recording.mkv","original":"/home/vilyaem/recording.mkv"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/004_dwl","original":"/home/vilyaem/repos/dwl"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_autostart.patch","original":"/home/vilyaem/repos/dwl/autostart.patch"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_togglekblayout.patch","original":"/home/vilyaem/repos/vildwl/togglekblayout.patch"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_debloat.MAN","original":"/home/vilyaem/s/debloat/debloat.MAN"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_LICENSE","original":"/home/vilyaem/scri/viltube/LICENSE"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_3supz5.webp","original":"/home/vilyaem/scri/viltube/thumbs/3supz5.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_BlessedIntervention.webp","original":"/home/vilyaem/scri/viltube/thumbs/BlessedIntervention.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_DennisRitchie-WriteInC.webp","original":"/home/vilyaem/scri/viltube/thumbs/DennisRitchie-WriteInC.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Flight Simulator Written in C From Scratch.webp","original":"/home/vilyaem/scri/viltube/thumbs/Flight Simulator Written in C From Scratch.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_HardTrapBeat-SADSATAN.webp","original":"/home/vilyaem/scri/viltube/thumbs/HardTrapBeat-SADSATAN.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_HavaNagila!.webp","original":"/home/vilyaem/scri/viltube/thumbs/HavaNagila!.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_KING-TERRY.webp","original":"/home/vilyaem/scri/viltube/thumbs/KING-TERRY.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Morrowind is Goofy.webp","original":"/home/vilyaem/scri/viltube/thumbs/Morrowind is Goofy.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Orthodox Logos Based Ascension.webp","original":"/home/vilyaem/scri/viltube/thumbs/Orthodox Logos Based Ascension.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Psalm50Arabic.webp","original":"/home/vilyaem/scri/viltube/thumbs/Psalm50Arabic.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Rayfrogger (C99).webp","original":"/home/vilyaem/scri/viltube/thumbs/Rayfrogger (C99).webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Scary Game (C99).webp","original":"/home/vilyaem/scri/viltube/thumbs/Scary Game (C99).webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_dzakhpot.webp","original":"/home/vilyaem/scri/viltube/thumbs/dzakhpot.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_slop.webp","original":"/home/vilyaem/scri/viltube/thumbs/slop.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_3supz5.mp4","original":"/home/vilyaem/scri/viltube/videos/3supz5.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_BlessedIntervention.mp4","original":"/home/vilyaem/scri/viltube/videos/BlessedIntervention.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_DennisRitchie-WriteInC.mp4","original":"/home/vilyaem/scri/viltube/videos/DennisRitchie-WriteInC.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Flight Simulator Written in C From Scratch.webm","original":"/home/vilyaem/scri/viltube/videos/Flight Simulator Written in C From Scratch.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_HardTrapBeat-SADSATAN.mp4","original":"/home/vilyaem/scri/viltube/videos/HardTrapBeat-SADSATAN.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_HavaNagila!.webm","original":"/home/vilyaem/scri/viltube/videos/HavaNagila!.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_KING-TERRY.webm","original":"/home/vilyaem/scri/viltube/videos/KING-TERRY.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Morrowind is Goofy.mp4","original":"/home/vilyaem/scri/viltube/videos/Morrowind is Goofy.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Orthodox Logos Based Ascension.mp4","original":"/home/vilyaem/scri/viltube/videos/Orthodox Logos Based Ascension.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Psalm50Arabic.mp4","original":"/home/vilyaem/scri/viltube/videos/Psalm50Arabic.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Rayfrogger (C99).webm","original":"/home/vilyaem/scri/viltube/videos/Rayfrogger (C99).webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Scary Game (C99).webm","original":"/home/vilyaem/scri/viltube/videos/Scary Game (C99).webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_dzakhpot.mp4","original":"/home/vilyaem/scri/viltube/videos/dzakhpot.mp4"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_slop.webm","original":"/home/vilyaem/scri/viltube/videos/slop.webm"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_sdtest","original":"/home/vilyaem/sdtest"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_sigma.wav","original":"/home/vilyaem/sigma.wav"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_test.tx","original":"/home/vilyaem/test.tx"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_testgif.avif","original":"/home/vilyaem/testgif.avif"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_v","original":"/home/vilyaem/v"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_yurt","original":"/home/vilyaem/vm/yurt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/001_yurt","original":"/home/vilyaem/vm/yurt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/002_yurt","original":"/home/vilyaem/vm/yurt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_webmon_recent_searches","original":"/home/vilyaem/webmon_recent_searches"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_License.txt","original":"/home/vilyaem/x/assetbin/License.txt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Tamriel Data (Vanilla)-10.1.7z","original":"/home/vilyaem/x/assetbin/Tamriel Data (Vanilla)-10.1.7z"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Health_Bars.zip","original":"/home/vilyaem/x/assetbin/bar/Health_Bars.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_hl2","original":"/home/vilyaem/x/assetbin/hl2/hl2"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_hl2_materials.zip","original":"/home/vilyaem/x/assetbin/hl2/hl2_materials.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Inventory_0.zip","original":"/home/vilyaem/x/assetbin/inv/Inventory_0.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_public%20domain%20game%20pack.zip","original":"/home/vilyaem/x/assetbin/pdgp/public%20domain%20game%20pack.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_procedural_music.zip","original":"/home/vilyaem/x/assetbin/procmusic/procedural_music.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_proctextures.zip","original":"/home/vilyaem/x/assetbin/proctextures/proctextures.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_sbs_-_base_materials_pack_256x256.zip","original":"/home/vilyaem/x/assetbin/sbs_-_base_materials_pack_256x256.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.alpine-release","original":"/home/vilyaem/x/iso/.alpine-release"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_apks","original":"/home/vilyaem/x/iso/apks"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_artix-xfce-runit-20230814-x86_64.iso","original":"/home/vilyaem/x/iso/artix-xfce-runit-20230814-x86_64.iso"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2708-rpi-b-plus.dtb","original":"/home/vilyaem/x/iso/bcm2708-rpi-b-plus.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2708-rpi-b-rev1.dtb","original":"/home/vilyaem/x/iso/bcm2708-rpi-b-rev1.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2708-rpi-b.dtb","original":"/home/vilyaem/x/iso/bcm2708-rpi-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2708-rpi-cm.dtb","original":"/home/vilyaem/x/iso/bcm2708-rpi-cm.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2708-rpi-zero-w.dtb","original":"/home/vilyaem/x/iso/bcm2708-rpi-zero-w.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2708-rpi-zero.dtb","original":"/home/vilyaem/x/iso/bcm2708-rpi-zero.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2709-rpi-2-b.dtb","original":"/home/vilyaem/x/iso/bcm2709-rpi-2-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2709-rpi-cm2.dtb","original":"/home/vilyaem/x/iso/bcm2709-rpi-cm2.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2710-rpi-2-b.dtb","original":"/home/vilyaem/x/iso/bcm2710-rpi-2-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2710-rpi-3-b-plus.dtb","original":"/home/vilyaem/x/iso/bcm2710-rpi-3-b-plus.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2710-rpi-3-b.dtb","original":"/home/vilyaem/x/iso/bcm2710-rpi-3-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2710-rpi-cm3.dtb","original":"/home/vilyaem/x/iso/bcm2710-rpi-cm3.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2710-rpi-zero-2-w.dtb","original":"/home/vilyaem/x/iso/bcm2710-rpi-zero-2-w.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2710-rpi-zero-2.dtb","original":"/home/vilyaem/x/iso/bcm2710-rpi-zero-2.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2711-rpi-4-b.dtb","original":"/home/vilyaem/x/iso/bcm2711-rpi-4-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2711-rpi-400.dtb","original":"/home/vilyaem/x/iso/bcm2711-rpi-400.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2711-rpi-cm4-io.dtb","original":"/home/vilyaem/x/iso/bcm2711-rpi-cm4-io.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2711-rpi-cm4.dtb","original":"/home/vilyaem/x/iso/bcm2711-rpi-cm4.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2711-rpi-cm4s.dtb","original":"/home/vilyaem/x/iso/bcm2711-rpi-cm4s.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-a-plus.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-a-plus.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-a.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-a.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-b-plus.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-b-plus.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-b-rev2.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-b-rev2.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-b.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-cm1-io1.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-cm1-io1.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-zero-w.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-zero-w.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2835-rpi-zero.dtb","original":"/home/vilyaem/x/iso/bcm2835-rpi-zero.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2836-rpi-2-b.dtb","original":"/home/vilyaem/x/iso/bcm2836-rpi-2-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2837-rpi-3-a-plus.dtb","original":"/home/vilyaem/x/iso/bcm2837-rpi-3-a-plus.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2837-rpi-3-b-plus.dtb","original":"/home/vilyaem/x/iso/bcm2837-rpi-3-b-plus.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2837-rpi-3-b.dtb","original":"/home/vilyaem/x/iso/bcm2837-rpi-3-b.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2837-rpi-cm3-io3.dtb","original":"/home/vilyaem/x/iso/bcm2837-rpi-cm3-io3.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bcm2837-rpi-zero-2-w.dtb","original":"/home/vilyaem/x/iso/bcm2837-rpi-zero-2-w.dtb"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_boot","original":"/home/vilyaem/x/iso/boot"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bootcode.bin","original":"/home/vilyaem/x/iso/bootcode.bin"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_cmdline.txt","original":"/home/vilyaem/x/iso/cmdline.txt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_config.txt","original":"/home/vilyaem/x/iso/config.txt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_fixup.dat","original":"/home/vilyaem/x/iso/fixup.dat"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_fixup4.dat","original":"/home/vilyaem/x/iso/fixup4.dat"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_overlays","original":"/home/vilyaem/x/iso/overlays"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_start.elf","original":"/home/vilyaem/x/iso/start.elf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_start4.elf","original":"/home/vilyaem/x/iso/start4.elf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bots=off","original":"/home/vilyaem/x/localnet/bots=off"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210105.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210105.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210119.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210119.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210125.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210125.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210211.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210211.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210219.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210219.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210303.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210303.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210320.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210320.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210403.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210403.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210421.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210421.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210515.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210515.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210616.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210616.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210726.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210726.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210802.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210802.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210813.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210813.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210831.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210831.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210917.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210917.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20210924.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20210924.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20211007.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20211007.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20211030.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20211030.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20211120.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20211120.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20211126.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20211126.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20211217.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20211217.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220115.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220115.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220128.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220128.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220216.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220216.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220221.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220221.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220306.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220306.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220316.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220316.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220411.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220411.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_collapseos-20220508.tar.gz","original":"/home/vilyaem/x/localnet/collapseos.org/files/collapseos-20220508.tar.gz"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_crn.hopto.org.zim.tmp","original":"/home/vilyaem/x/localnet/crn.hopto.org.zim.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_crn.hopto.org.zim_fulltext.idx.tmp","original":"/home/vilyaem/x/localnet/crn.hopto.org.zim_fulltext.idx.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_crn.hopto.org.zim_title.idx.tmp","original":"/home/vilyaem/x/localnet/crn.hopto.org.zim_title.idx.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_eK","original":"/home/vilyaem/x/localnet/eK"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ek","original":"/home/vilyaem/x/localnet/ek"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_24invaders","original":"/home/vilyaem/x/localnet/incoherency.co.uk/24invaders"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_anagram","original":"/home/vilyaem/x/localnet/incoherency.co.uk/anagram"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_base58","original":"/home/vilyaem/x/localnet/incoherency.co.uk/base58"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_bauch","original":"/home/vilyaem/x/localnet/incoherency.co.uk/bauch"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_blog","original":"/home/vilyaem/x/localnet/incoherency.co.uk/blog"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_blog-style.css","original":"/home/vilyaem/x/localnet/incoherency.co.uk/blog-style.css"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_chess-clock","original":"/home/vilyaem/x/localnet/incoherency.co.uk/chess-clock"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_chess-puzzle","original":"/home/vilyaem/x/localnet/incoherency.co.uk/chess-puzzle"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_chess-steg","original":"/home/vilyaem/x/localnet/incoherency.co.uk/chess-steg"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_clock-gear-train-calculator","original":"/home/vilyaem/x/localnet/incoherency.co.uk/clock-gear-train-calculator"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_coriolis","original":"/home/vilyaem/x/localnet/incoherency.co.uk/coriolis"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_coriolis-fountain","original":"/home/vilyaem/x/localnet/incoherency.co.uk/coriolis-fountain"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_coriolis-tanks","original":"/home/vilyaem/x/localnet/incoherency.co.uk/coriolis-tanks"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_countdown","original":"/home/vilyaem/x/localnet/incoherency.co.uk/countdown"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_deadbeat-escapement","original":"/home/vilyaem/x/localnet/incoherency.co.uk/deadbeat-escapement"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_encmech","original":"/home/vilyaem/x/localnet/incoherency.co.uk/encmech"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_escapement","original":"/home/vilyaem/x/localnet/incoherency.co.uk/escapement"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_flexwing","original":"/home/vilyaem/x/localnet/incoherency.co.uk/flexwing"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_image-steganography","original":"/home/vilyaem/x/localnet/incoherency.co.uk/image-steganography"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_index.html","original":"/home/vilyaem/x/localnet/incoherency.co.uk/index.html"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_interest","original":"/home/vilyaem/x/localnet/incoherency.co.uk/interest"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_jesref","original":"/home/vilyaem/x/localnet/incoherency.co.uk/jesref"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_matterjs-test-case","original":"/home/vilyaem/x/localnet/incoherency.co.uk/matterjs-test-case"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_mojibake","original":"/home/vilyaem/x/localnet/incoherency.co.uk/mojibake"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_motorcycling-forecast","original":"/home/vilyaem/x/localnet/incoherency.co.uk/motorcycling-forecast"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_nightdrive","original":"/home/vilyaem/x/localnet/incoherency.co.uk/nightdrive"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_notes","original":"/home/vilyaem/x/localnet/incoherency.co.uk/notes"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_oscillating-engine","original":"/home/vilyaem/x/localnet/incoherency.co.uk/oscillating-engine"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_polygon-turning","original":"/home/vilyaem/x/localnet/incoherency.co.uk/polygon-turning"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_robots.txt","original":"/home/vilyaem/x/localnet/incoherency.co.uk/robots.txt"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_scamp","original":"/home/vilyaem/x/localnet/incoherency.co.uk/scamp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_stegoseed","original":"/home/vilyaem/x/localnet/incoherency.co.uk/stegoseed"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_style.css","original":"/home/vilyaem/x/localnet/incoherency.co.uk/style.css"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_timeline","original":"/home/vilyaem/x/localnet/incoherency.co.uk/timeline"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_triangle-strip-encoding","original":"/home/vilyaem/x/localnet/incoherency.co.uk/triangle-strip-encoding"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ndom-wait","original":"/home/vilyaem/x/localnet/ndom-wait"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ndom-woit","original":"/home/vilyaem/x/localnet/ndom-woit"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_nigger","original":"/home/vilyaem/x/localnet/nigger"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_3323a0626ba74a1658d5e609f754d92fa972a8a9525841c08ad7f6c72e282bd7.webp","original":"/home/vilyaem/x/localnet/nigger/jakparty.soy/file/thumb/3323a0626ba74a1658d5e609f754d92fa972a8a9525841c08ad7f6c72e282bd7.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_3cee1b8adb4da4736e34c8cb9b92cba64032551ce09dd127e66fedb7893bb503.webp","original":"/home/vilyaem/x/localnet/nigger/jakparty.soy/file/thumb/3cee1b8adb4da4736e34c8cb9b92cba64032551ce09dd127e66fedb7893bb503.webp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_orthodoxwiki.org.zim_fulltext.idx.tmp","original":"/home/vilyaem/x/localnet/orthodoxwiki.org.zim_fulltext.idx.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_orthodoxwiki.org.zim_title.idx.tmp","original":"/home/vilyaem/x/localnet/orthodoxwiki.org.zim_title.idx.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_lrs_wiki.7z","original":"/home/vilyaem/x/localnet/www.tastyfish.cz/lrs/lrs_wiki.7z"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ziglang.org.zim.tmp","original":"/home/vilyaem/x/localnet/ziglang.org.zim.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ziglang.org.zim_fulltext.idx.tmp","original":"/home/vilyaem/x/localnet/ziglang.org.zim_fulltext.idx.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ziglang.org.zim_title.idx.tmp","original":"/home/vilyaem/x/localnet/ziglang.org.zim_title.idx.tmp"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_it-IT","original":"/home/vilyaem/x/localnet/ziglang.org/it-IT"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ja-JP","original":"/home/vilyaem/x/localnet/ziglang.org/ja-JP"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Alex Charalabidis - The Book of IRC-No Starch Press_ Publishers Group West [distributor] (2000).pdf.crdownload","original":"/home/vilyaem/x/nerobooks/Alex Charalabidis - The Book of IRC-No Starch Press_ Publishers Group West [distributor] (2000).pdf.crdownload"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_ComputerCryptoLinux","original":"/home/vilyaem/x/nerobooks/ComputerCryptoLinux"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Unconfirmed 825737.crdownload","original":"/home/vilyaem/x/nerobooks/Unconfirmed 825737.crdownload"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_chess","original":"/home/vilyaem/x/nerobooks/chess"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_niggerassets","original":"/home/vilyaem/x/niggerassets"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_auto.sh","original":"/home/vilyaem/x/web/neropaytar/auto.sh"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_html","original":"/home/vilyaem/x/web/neropaytar/data/doc/html"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_BirchTrees.zip","original":"/home/vilyaem/x/web/neropaytar/files/BirchTrees.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_IconCorner.zip","original":"/home/vilyaem/x/web/neropaytar/files/IconCorner.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Nicholas.zip","original":"/home/vilyaem/x/web/neropaytar/files/Nicholas.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_TsarNicholas.zip","original":"/home/vilyaem/x/web/neropaytar/files/TsarNicholas.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_WoodCross.zip","original":"/home/vilyaem/x/web/neropaytar/files/WoodCross.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_cyan.zip","original":"/home/vilyaem/x/web/neropaytar/files/cyan.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_rabbittracker.zip","original":"/home/vilyaem/x/web/neropaytar/files/rabbittracker.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_seraphim.zip","original":"/home/vilyaem/x/web/neropaytar/files/seraphim.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_v.zip","original":"/home/vilyaem/x/web/neropaytar/files/v.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_viltube.zip","original":"/home/vilyaem/x/web/neropaytar/files/viltube.zip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_monpayw","original":"/home/vilyaem/x/web/neropaytar/monpayw"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_monpayw.keys","original":"/home/vilyaem/x/web/neropaytar/monpayw.keys"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_neropay","original":"/home/vilyaem/x/web/neropaytar/neropay"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_.svcs","original":"/home/vilyaem/x/web/neropaytar/neropay/.svcs"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_2018-07-13 Affidavits.pdf","original":"/home/vilyaem/x/web/vilyaem/library/2018-07-13 Affidavits.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_75xogn.pdf","original":"/home/vilyaem/x/web/vilyaem/library/75xogn.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_CompactBookNigger.pdf","original":"/home/vilyaem/x/web/vilyaem/library/CompactBookNigger.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_FoundationsofBusiness.pdf","original":"/home/vilyaem/x/web/vilyaem/library/FoundationsofBusiness.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_June 2012 Harvester.pdf","original":"/home/vilyaem/x/web/vilyaem/library/June 2012 Harvester.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_program-2019-final-draft-2-1.pdf","original":"/home/vilyaem/x/web/vilyaem/library/program-2019-final-draft-2-1.pdf"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_xclip","original":"/home/vilyaem/xclip"},{"trashed":"/home/vilyaem/.local/share/vifm/Trash/000_Ева я любила тебя (speed up) [JEUt8RdVKzQ].webm","original":"/home/vilyaem/Ева я любила тебя (speed up) [JEUt8RdVKzQ].webm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-000.jpg","original":"/home/void/.cache/-000.jpg"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-000.jpg","original":"/home/void/.cache/-000.jpg"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-001.pbm","original":"/home/void/.cache/-001.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-001.pbm","original":"/home/void/.cache/-001.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-002.pbm","original":"/home/void/.cache/-002.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-002.pbm","original":"/home/void/.cache/-002.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-003.pbm","original":"/home/void/.cache/-003.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-003.pbm","original":"/home/void/.cache/-003.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-004.jpg","original":"/home/void/.cache/-004.jpg"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-004.jpg","original":"/home/void/.cache/-004.jpg"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-005.pbm","original":"/home/void/.cache/-005.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-005.pbm","original":"/home/void/.cache/-005.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-006.pbm","original":"/home/void/.cache/-006.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-006.pbm","original":"/home/void/.cache/-006.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-007.ppm","original":"/home/void/.cache/-007.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-007.ppm","original":"/home/void/.cache/-007.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-008.pbm","original":"/home/void/.cache/-008.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-008.pbm","original":"/home/void/.cache/-008.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-009.pbm","original":"/home/void/.cache/-009.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-009.pbm","original":"/home/void/.cache/-009.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-010.ppm","original":"/home/void/.cache/-010.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-010.ppm","original":"/home/void/.cache/-010.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-011.pbm","original":"/home/void/.cache/-011.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-011.pbm","original":"/home/void/.cache/-011.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-012.pbm","original":"/home/void/.cache/-012.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-012.pbm","original":"/home/void/.cache/-012.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-013.ppm","original":"/home/void/.cache/-013.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-013.ppm","original":"/home/void/.cache/-013.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-014.pbm","original":"/home/void/.cache/-014.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-014.pbm","original":"/home/void/.cache/-014.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-015.ppm","original":"/home/void/.cache/-015.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-015.ppm","original":"/home/void/.cache/-015.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-016.pbm","original":"/home/void/.cache/-016.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-016.pbm","original":"/home/void/.cache/-016.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-017.pbm","original":"/home/void/.cache/-017.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-017.pbm","original":"/home/void/.cache/-017.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-018.ppm","original":"/home/void/.cache/-018.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-018.ppm","original":"/home/void/.cache/-018.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-019.pbm","original":"/home/void/.cache/-019.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-019.pbm","original":"/home/void/.cache/-019.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-020.pbm","original":"/home/void/.cache/-020.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-020.pbm","original":"/home/void/.cache/-020.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-021.ppm","original":"/home/void/.cache/-021.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-021.ppm","original":"/home/void/.cache/-021.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-022.pbm","original":"/home/void/.cache/-022.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-022.pbm","original":"/home/void/.cache/-022.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-023.pbm","original":"/home/void/.cache/-023.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-023.pbm","original":"/home/void/.cache/-023.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-024.ppm","original":"/home/void/.cache/-024.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-024.ppm","original":"/home/void/.cache/-024.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-025.pbm","original":"/home/void/.cache/-025.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-025.pbm","original":"/home/void/.cache/-025.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-026.ppm","original":"/home/void/.cache/-026.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-026.ppm","original":"/home/void/.cache/-026.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-027.pbm","original":"/home/void/.cache/-027.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-027.pbm","original":"/home/void/.cache/-027.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-028.ppm","original":"/home/void/.cache/-028.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-028.ppm","original":"/home/void/.cache/-028.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-029.pbm","original":"/home/void/.cache/-029.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-029.pbm","original":"/home/void/.cache/-029.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-030.ppm","original":"/home/void/.cache/-030.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-030.ppm","original":"/home/void/.cache/-030.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-031.pbm","original":"/home/void/.cache/-031.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-031.pbm","original":"/home/void/.cache/-031.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-032.ppm","original":"/home/void/.cache/-032.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-032.ppm","original":"/home/void/.cache/-032.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-033.pbm","original":"/home/void/.cache/-033.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-033.pbm","original":"/home/void/.cache/-033.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-034.ppm","original":"/home/void/.cache/-034.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-034.ppm","original":"/home/void/.cache/-034.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-035.pbm","original":"/home/void/.cache/-035.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-035.pbm","original":"/home/void/.cache/-035.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-036.ppm","original":"/home/void/.cache/-036.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-036.ppm","original":"/home/void/.cache/-036.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-037.pbm","original":"/home/void/.cache/-037.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-037.pbm","original":"/home/void/.cache/-037.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-038.ppm","original":"/home/void/.cache/-038.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-038.ppm","original":"/home/void/.cache/-038.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-039.pbm","original":"/home/void/.cache/-039.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-039.pbm","original":"/home/void/.cache/-039.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-040.ppm","original":"/home/void/.cache/-040.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-040.ppm","original":"/home/void/.cache/-040.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-041.pbm","original":"/home/void/.cache/-041.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-041.pbm","original":"/home/void/.cache/-041.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-042.ppm","original":"/home/void/.cache/-042.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-042.ppm","original":"/home/void/.cache/-042.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-043.pbm","original":"/home/void/.cache/-043.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-043.pbm","original":"/home/void/.cache/-043.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-044.ppm","original":"/home/void/.cache/-044.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-044.ppm","original":"/home/void/.cache/-044.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-045.pbm","original":"/home/void/.cache/-045.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-045.pbm","original":"/home/void/.cache/-045.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-046.ppm","original":"/home/void/.cache/-046.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-046.ppm","original":"/home/void/.cache/-046.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-047.pbm","original":"/home/void/.cache/-047.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-047.pbm","original":"/home/void/.cache/-047.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-048.ppm","original":"/home/void/.cache/-048.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-048.ppm","original":"/home/void/.cache/-048.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-049.pbm","original":"/home/void/.cache/-049.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-049.pbm","original":"/home/void/.cache/-049.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-050.ppm","original":"/home/void/.cache/-050.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-050.ppm","original":"/home/void/.cache/-050.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-051.pbm","original":"/home/void/.cache/-051.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-051.pbm","original":"/home/void/.cache/-051.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-052.ppm","original":"/home/void/.cache/-052.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-052.ppm","original":"/home/void/.cache/-052.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-053.pbm","original":"/home/void/.cache/-053.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-053.pbm","original":"/home/void/.cache/-053.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-054.ppm","original":"/home/void/.cache/-054.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-054.ppm","original":"/home/void/.cache/-054.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-055.pbm","original":"/home/void/.cache/-055.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-055.pbm","original":"/home/void/.cache/-055.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-056.ppm","original":"/home/void/.cache/-056.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-056.ppm","original":"/home/void/.cache/-056.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-057.pbm","original":"/home/void/.cache/-057.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-057.pbm","original":"/home/void/.cache/-057.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-058.ppm","original":"/home/void/.cache/-058.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-058.ppm","original":"/home/void/.cache/-058.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-059.pbm","original":"/home/void/.cache/-059.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-059.pbm","original":"/home/void/.cache/-059.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-060.ppm","original":"/home/void/.cache/-060.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-060.ppm","original":"/home/void/.cache/-060.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-061.pbm","original":"/home/void/.cache/-061.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-061.pbm","original":"/home/void/.cache/-061.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-062.ppm","original":"/home/void/.cache/-062.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-062.ppm","original":"/home/void/.cache/-062.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-063.pbm","original":"/home/void/.cache/-063.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-063.pbm","original":"/home/void/.cache/-063.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-064.ppm","original":"/home/void/.cache/-064.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-064.ppm","original":"/home/void/.cache/-064.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-065.pbm","original":"/home/void/.cache/-065.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-065.pbm","original":"/home/void/.cache/-065.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-066.ppm","original":"/home/void/.cache/-066.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-066.ppm","original":"/home/void/.cache/-066.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-067.pbm","original":"/home/void/.cache/-067.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-067.pbm","original":"/home/void/.cache/-067.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-068.ppm","original":"/home/void/.cache/-068.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-068.ppm","original":"/home/void/.cache/-068.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-069.pbm","original":"/home/void/.cache/-069.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-069.pbm","original":"/home/void/.cache/-069.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-070.ppm","original":"/home/void/.cache/-070.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-070.ppm","original":"/home/void/.cache/-070.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-071.pbm","original":"/home/void/.cache/-071.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-071.pbm","original":"/home/void/.cache/-071.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-072.ppm","original":"/home/void/.cache/-072.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-072.ppm","original":"/home/void/.cache/-072.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-073.pbm","original":"/home/void/.cache/-073.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-073.pbm","original":"/home/void/.cache/-073.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-074.ppm","original":"/home/void/.cache/-074.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-074.ppm","original":"/home/void/.cache/-074.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-075.pbm","original":"/home/void/.cache/-075.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-075.pbm","original":"/home/void/.cache/-075.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-076.ppm","original":"/home/void/.cache/-076.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-076.ppm","original":"/home/void/.cache/-076.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-077.pbm","original":"/home/void/.cache/-077.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-077.pbm","original":"/home/void/.cache/-077.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-078.ppm","original":"/home/void/.cache/-078.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-078.ppm","original":"/home/void/.cache/-078.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-079.pbm","original":"/home/void/.cache/-079.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-079.pbm","original":"/home/void/.cache/-079.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-080.ppm","original":"/home/void/.cache/-080.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-080.ppm","original":"/home/void/.cache/-080.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-081.pbm","original":"/home/void/.cache/-081.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-081.pbm","original":"/home/void/.cache/-081.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-082.ppm","original":"/home/void/.cache/-082.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-082.ppm","original":"/home/void/.cache/-082.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-083.pbm","original":"/home/void/.cache/-083.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-083.pbm","original":"/home/void/.cache/-083.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-084.ppm","original":"/home/void/.cache/-084.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-084.ppm","original":"/home/void/.cache/-084.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-085.pbm","original":"/home/void/.cache/-085.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-085.pbm","original":"/home/void/.cache/-085.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-086.ppm","original":"/home/void/.cache/-086.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-086.ppm","original":"/home/void/.cache/-086.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-087.pbm","original":"/home/void/.cache/-087.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-087.pbm","original":"/home/void/.cache/-087.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-088.ppm","original":"/home/void/.cache/-088.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-088.ppm","original":"/home/void/.cache/-088.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-089.pbm","original":"/home/void/.cache/-089.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-089.pbm","original":"/home/void/.cache/-089.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-090.ppm","original":"/home/void/.cache/-090.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-090.ppm","original":"/home/void/.cache/-090.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-091.pbm","original":"/home/void/.cache/-091.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-091.pbm","original":"/home/void/.cache/-091.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-092.ppm","original":"/home/void/.cache/-092.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-092.ppm","original":"/home/void/.cache/-092.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-093.pbm","original":"/home/void/.cache/-093.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-093.pbm","original":"/home/void/.cache/-093.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-094.ppm","original":"/home/void/.cache/-094.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-094.ppm","original":"/home/void/.cache/-094.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-095.pbm","original":"/home/void/.cache/-095.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-095.pbm","original":"/home/void/.cache/-095.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-096.ppm","original":"/home/void/.cache/-096.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-096.ppm","original":"/home/void/.cache/-096.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-097.pbm","original":"/home/void/.cache/-097.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-097.pbm","original":"/home/void/.cache/-097.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-098.ppm","original":"/home/void/.cache/-098.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-098.ppm","original":"/home/void/.cache/-098.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-099.pbm","original":"/home/void/.cache/-099.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-099.pbm","original":"/home/void/.cache/-099.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-100.pbm","original":"/home/void/.cache/-100.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-100.pbm","original":"/home/void/.cache/-100.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-101.ppm","original":"/home/void/.cache/-101.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-101.ppm","original":"/home/void/.cache/-101.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-102.pbm","original":"/home/void/.cache/-102.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-102.pbm","original":"/home/void/.cache/-102.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-103.ppm","original":"/home/void/.cache/-103.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-103.ppm","original":"/home/void/.cache/-103.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-104.pbm","original":"/home/void/.cache/-104.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-104.pbm","original":"/home/void/.cache/-104.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-105.ppm","original":"/home/void/.cache/-105.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-105.ppm","original":"/home/void/.cache/-105.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-106.pbm","original":"/home/void/.cache/-106.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-106.pbm","original":"/home/void/.cache/-106.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-107.ppm","original":"/home/void/.cache/-107.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-107.ppm","original":"/home/void/.cache/-107.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-108.pbm","original":"/home/void/.cache/-108.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-108.pbm","original":"/home/void/.cache/-108.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-109.ppm","original":"/home/void/.cache/-109.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-109.ppm","original":"/home/void/.cache/-109.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-110.pbm","original":"/home/void/.cache/-110.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-110.pbm","original":"/home/void/.cache/-110.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-111.ppm","original":"/home/void/.cache/-111.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-111.ppm","original":"/home/void/.cache/-111.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-112.pbm","original":"/home/void/.cache/-112.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-112.pbm","original":"/home/void/.cache/-112.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-113.ppm","original":"/home/void/.cache/-113.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-113.ppm","original":"/home/void/.cache/-113.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-114.pbm","original":"/home/void/.cache/-114.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-114.pbm","original":"/home/void/.cache/-114.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-115.ppm","original":"/home/void/.cache/-115.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-115.ppm","original":"/home/void/.cache/-115.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-116.pbm","original":"/home/void/.cache/-116.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-116.pbm","original":"/home/void/.cache/-116.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-117.ppm","original":"/home/void/.cache/-117.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-117.ppm","original":"/home/void/.cache/-117.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-118.pbm","original":"/home/void/.cache/-118.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-118.pbm","original":"/home/void/.cache/-118.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-119.ppm","original":"/home/void/.cache/-119.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-119.ppm","original":"/home/void/.cache/-119.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-120.pbm","original":"/home/void/.cache/-120.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-120.pbm","original":"/home/void/.cache/-120.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-121.ppm","original":"/home/void/.cache/-121.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-121.ppm","original":"/home/void/.cache/-121.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-122.pbm","original":"/home/void/.cache/-122.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-122.pbm","original":"/home/void/.cache/-122.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-123.ppm","original":"/home/void/.cache/-123.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-123.ppm","original":"/home/void/.cache/-123.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-124.pbm","original":"/home/void/.cache/-124.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-124.pbm","original":"/home/void/.cache/-124.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-125.ppm","original":"/home/void/.cache/-125.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-125.ppm","original":"/home/void/.cache/-125.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-126.pbm","original":"/home/void/.cache/-126.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-126.pbm","original":"/home/void/.cache/-126.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-127.ppm","original":"/home/void/.cache/-127.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-127.ppm","original":"/home/void/.cache/-127.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-128.pbm","original":"/home/void/.cache/-128.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-128.pbm","original":"/home/void/.cache/-128.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-129.ppm","original":"/home/void/.cache/-129.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-129.ppm","original":"/home/void/.cache/-129.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-130.pbm","original":"/home/void/.cache/-130.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-130.pbm","original":"/home/void/.cache/-130.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-131.ppm","original":"/home/void/.cache/-131.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-131.ppm","original":"/home/void/.cache/-131.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-132.pbm","original":"/home/void/.cache/-132.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-132.pbm","original":"/home/void/.cache/-132.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-133.ppm","original":"/home/void/.cache/-133.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-133.ppm","original":"/home/void/.cache/-133.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-134.pbm","original":"/home/void/.cache/-134.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-134.pbm","original":"/home/void/.cache/-134.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-135.ppm","original":"/home/void/.cache/-135.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-135.ppm","original":"/home/void/.cache/-135.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-136.pbm","original":"/home/void/.cache/-136.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-136.pbm","original":"/home/void/.cache/-136.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-137.ppm","original":"/home/void/.cache/-137.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-137.ppm","original":"/home/void/.cache/-137.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-138.pbm","original":"/home/void/.cache/-138.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-138.pbm","original":"/home/void/.cache/-138.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-139.ppm","original":"/home/void/.cache/-139.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-139.ppm","original":"/home/void/.cache/-139.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-140.pbm","original":"/home/void/.cache/-140.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-140.pbm","original":"/home/void/.cache/-140.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-141.ppm","original":"/home/void/.cache/-141.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-141.ppm","original":"/home/void/.cache/-141.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-142.pbm","original":"/home/void/.cache/-142.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-142.pbm","original":"/home/void/.cache/-142.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-143.pbm","original":"/home/void/.cache/-143.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-143.pbm","original":"/home/void/.cache/-143.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-144.ppm","original":"/home/void/.cache/-144.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-144.ppm","original":"/home/void/.cache/-144.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-145.pbm","original":"/home/void/.cache/-145.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-145.pbm","original":"/home/void/.cache/-145.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-146.ppm","original":"/home/void/.cache/-146.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-146.ppm","original":"/home/void/.cache/-146.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-147.pbm","original":"/home/void/.cache/-147.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-147.pbm","original":"/home/void/.cache/-147.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-148.ppm","original":"/home/void/.cache/-148.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-148.ppm","original":"/home/void/.cache/-148.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-149.pbm","original":"/home/void/.cache/-149.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-149.pbm","original":"/home/void/.cache/-149.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-150.ppm","original":"/home/void/.cache/-150.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-150.ppm","original":"/home/void/.cache/-150.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-151.pbm","original":"/home/void/.cache/-151.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-151.pbm","original":"/home/void/.cache/-151.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-152.ppm","original":"/home/void/.cache/-152.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-152.ppm","original":"/home/void/.cache/-152.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-153.pbm","original":"/home/void/.cache/-153.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-153.pbm","original":"/home/void/.cache/-153.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-154.ppm","original":"/home/void/.cache/-154.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-154.ppm","original":"/home/void/.cache/-154.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-155.pbm","original":"/home/void/.cache/-155.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-155.pbm","original":"/home/void/.cache/-155.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-156.ppm","original":"/home/void/.cache/-156.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-156.ppm","original":"/home/void/.cache/-156.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-157.pbm","original":"/home/void/.cache/-157.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-157.pbm","original":"/home/void/.cache/-157.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-158.ppm","original":"/home/void/.cache/-158.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-158.ppm","original":"/home/void/.cache/-158.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-159.pbm","original":"/home/void/.cache/-159.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-159.pbm","original":"/home/void/.cache/-159.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-160.ppm","original":"/home/void/.cache/-160.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-160.ppm","original":"/home/void/.cache/-160.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-161.pbm","original":"/home/void/.cache/-161.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-161.pbm","original":"/home/void/.cache/-161.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-162.ppm","original":"/home/void/.cache/-162.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-162.ppm","original":"/home/void/.cache/-162.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-163.pbm","original":"/home/void/.cache/-163.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-163.pbm","original":"/home/void/.cache/-163.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-164.ppm","original":"/home/void/.cache/-164.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-164.ppm","original":"/home/void/.cache/-164.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-165.pbm","original":"/home/void/.cache/-165.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-165.pbm","original":"/home/void/.cache/-165.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-166.ppm","original":"/home/void/.cache/-166.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-166.ppm","original":"/home/void/.cache/-166.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-167.pbm","original":"/home/void/.cache/-167.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-167.pbm","original":"/home/void/.cache/-167.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-168.ppm","original":"/home/void/.cache/-168.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-168.ppm","original":"/home/void/.cache/-168.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-169.pbm","original":"/home/void/.cache/-169.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-169.pbm","original":"/home/void/.cache/-169.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-170.ppm","original":"/home/void/.cache/-170.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-170.ppm","original":"/home/void/.cache/-170.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-171.pbm","original":"/home/void/.cache/-171.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-171.pbm","original":"/home/void/.cache/-171.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-172.ppm","original":"/home/void/.cache/-172.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-172.ppm","original":"/home/void/.cache/-172.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-173.pbm","original":"/home/void/.cache/-173.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-173.pbm","original":"/home/void/.cache/-173.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-174.ppm","original":"/home/void/.cache/-174.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-174.ppm","original":"/home/void/.cache/-174.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-175.pbm","original":"/home/void/.cache/-175.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-175.pbm","original":"/home/void/.cache/-175.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-176.ppm","original":"/home/void/.cache/-176.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-176.ppm","original":"/home/void/.cache/-176.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-176.ppm","original":"/home/void/.cache/-176.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-177.pbm","original":"/home/void/.cache/-177.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-177.pbm","original":"/home/void/.cache/-177.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-177.pbm","original":"/home/void/.cache/-177.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-178.ppm","original":"/home/void/.cache/-178.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-178.ppm","original":"/home/void/.cache/-178.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-178.ppm","original":"/home/void/.cache/-178.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-179.pbm","original":"/home/void/.cache/-179.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-179.pbm","original":"/home/void/.cache/-179.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-179.pbm","original":"/home/void/.cache/-179.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-180.ppm","original":"/home/void/.cache/-180.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-180.ppm","original":"/home/void/.cache/-180.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-180.ppm","original":"/home/void/.cache/-180.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-181.pbm","original":"/home/void/.cache/-181.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-181.pbm","original":"/home/void/.cache/-181.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-181.pbm","original":"/home/void/.cache/-181.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-182.ppm","original":"/home/void/.cache/-182.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-182.ppm","original":"/home/void/.cache/-182.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-182.ppm","original":"/home/void/.cache/-182.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-183.pbm","original":"/home/void/.cache/-183.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-183.pbm","original":"/home/void/.cache/-183.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-183.pbm","original":"/home/void/.cache/-183.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-184.ppm","original":"/home/void/.cache/-184.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-184.ppm","original":"/home/void/.cache/-184.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-184.ppm","original":"/home/void/.cache/-184.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-185.pbm","original":"/home/void/.cache/-185.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-185.pbm","original":"/home/void/.cache/-185.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-185.pbm","original":"/home/void/.cache/-185.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-186.ppm","original":"/home/void/.cache/-186.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-186.ppm","original":"/home/void/.cache/-186.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-186.ppm","original":"/home/void/.cache/-186.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-187.pbm","original":"/home/void/.cache/-187.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-187.pbm","original":"/home/void/.cache/-187.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/002_-187.pbm","original":"/home/void/.cache/-187.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-188.ppm","original":"/home/void/.cache/-188.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-188.ppm","original":"/home/void/.cache/-188.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-189.pbm","original":"/home/void/.cache/-189.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-189.pbm","original":"/home/void/.cache/-189.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-190.ppm","original":"/home/void/.cache/-190.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-190.ppm","original":"/home/void/.cache/-190.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-191.pbm","original":"/home/void/.cache/-191.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-191.pbm","original":"/home/void/.cache/-191.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-192.ppm","original":"/home/void/.cache/-192.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-192.ppm","original":"/home/void/.cache/-192.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-193.pbm","original":"/home/void/.cache/-193.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-193.pbm","original":"/home/void/.cache/-193.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-194.ppm","original":"/home/void/.cache/-194.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-194.ppm","original":"/home/void/.cache/-194.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-195.pbm","original":"/home/void/.cache/-195.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-195.pbm","original":"/home/void/.cache/-195.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-196.ppm","original":"/home/void/.cache/-196.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-196.ppm","original":"/home/void/.cache/-196.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-197.pbm","original":"/home/void/.cache/-197.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-197.pbm","original":"/home/void/.cache/-197.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-198.ppm","original":"/home/void/.cache/-198.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-198.ppm","original":"/home/void/.cache/-198.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-199.pbm","original":"/home/void/.cache/-199.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-199.pbm","original":"/home/void/.cache/-199.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-200.ppm","original":"/home/void/.cache/-200.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-200.ppm","original":"/home/void/.cache/-200.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-201.pbm","original":"/home/void/.cache/-201.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-201.pbm","original":"/home/void/.cache/-201.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-202.ppm","original":"/home/void/.cache/-202.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-202.ppm","original":"/home/void/.cache/-202.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-203.pbm","original":"/home/void/.cache/-203.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-203.pbm","original":"/home/void/.cache/-203.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-204.ppm","original":"/home/void/.cache/-204.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-204.ppm","original":"/home/void/.cache/-204.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-205.pbm","original":"/home/void/.cache/-205.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-205.pbm","original":"/home/void/.cache/-205.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-206.ppm","original":"/home/void/.cache/-206.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-206.ppm","original":"/home/void/.cache/-206.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-207.pbm","original":"/home/void/.cache/-207.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-207.pbm","original":"/home/void/.cache/-207.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-208.ppm","original":"/home/void/.cache/-208.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-208.ppm","original":"/home/void/.cache/-208.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-209.pbm","original":"/home/void/.cache/-209.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-209.pbm","original":"/home/void/.cache/-209.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-210.ppm","original":"/home/void/.cache/-210.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-210.ppm","original":"/home/void/.cache/-210.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-211.pbm","original":"/home/void/.cache/-211.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-211.pbm","original":"/home/void/.cache/-211.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-212.ppm","original":"/home/void/.cache/-212.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-212.ppm","original":"/home/void/.cache/-212.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-213.pbm","original":"/home/void/.cache/-213.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/001_-213.pbm","original":"/home/void/.cache/-213.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-214.ppm","original":"/home/void/.cache/-214.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-215.pbm","original":"/home/void/.cache/-215.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-216.ppm","original":"/home/void/.cache/-216.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-217.pbm","original":"/home/void/.cache/-217.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-218.ppm","original":"/home/void/.cache/-218.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-219.pbm","original":"/home/void/.cache/-219.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-220.ppm","original":"/home/void/.cache/-220.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-221.pbm","original":"/home/void/.cache/-221.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-222.ppm","original":"/home/void/.cache/-222.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-223.pbm","original":"/home/void/.cache/-223.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-224.ppm","original":"/home/void/.cache/-224.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-225.pbm","original":"/home/void/.cache/-225.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-226.ppm","original":"/home/void/.cache/-226.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-227.pbm","original":"/home/void/.cache/-227.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-228.ppm","original":"/home/void/.cache/-228.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-229.pbm","original":"/home/void/.cache/-229.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-230.ppm","original":"/home/void/.cache/-230.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-231.pbm","original":"/home/void/.cache/-231.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-232.ppm","original":"/home/void/.cache/-232.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-233.pbm","original":"/home/void/.cache/-233.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-234.ppm","original":"/home/void/.cache/-234.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-235.pbm","original":"/home/void/.cache/-235.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-236.ppm","original":"/home/void/.cache/-236.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-237.pbm","original":"/home/void/.cache/-237.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-238.pbm","original":"/home/void/.cache/-238.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-239.ppm","original":"/home/void/.cache/-239.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-240.pbm","original":"/home/void/.cache/-240.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-241.ppm","original":"/home/void/.cache/-241.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-242.pbm","original":"/home/void/.cache/-242.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-243.pbm","original":"/home/void/.cache/-243.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-244.ppm","original":"/home/void/.cache/-244.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-245.pbm","original":"/home/void/.cache/-245.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-246.pbm","original":"/home/void/.cache/-246.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-247.ppm","original":"/home/void/.cache/-247.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-248.pbm","original":"/home/void/.cache/-248.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-249.ppm","original":"/home/void/.cache/-249.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-250.pbm","original":"/home/void/.cache/-250.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-251.ppm","original":"/home/void/.cache/-251.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-252.pbm","original":"/home/void/.cache/-252.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-253.ppm","original":"/home/void/.cache/-253.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-254.pbm","original":"/home/void/.cache/-254.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-255.ppm","original":"/home/void/.cache/-255.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-256.pbm","original":"/home/void/.cache/-256.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-257.ppm","original":"/home/void/.cache/-257.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-258.pbm","original":"/home/void/.cache/-258.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-259.ppm","original":"/home/void/.cache/-259.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-260.pbm","original":"/home/void/.cache/-260.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-261.pbm","original":"/home/void/.cache/-261.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-262.ppm","original":"/home/void/.cache/-262.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-263.pbm","original":"/home/void/.cache/-263.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-264.ppm","original":"/home/void/.cache/-264.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-265.pbm","original":"/home/void/.cache/-265.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-266.pbm","original":"/home/void/.cache/-266.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-267.ppm","original":"/home/void/.cache/-267.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-268.pbm","original":"/home/void/.cache/-268.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-269.pbm","original":"/home/void/.cache/-269.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-270.pbm","original":"/home/void/.cache/-270.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-271.ppm","original":"/home/void/.cache/-271.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-272.pbm","original":"/home/void/.cache/-272.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-273.ppm","original":"/home/void/.cache/-273.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-274.pbm","original":"/home/void/.cache/-274.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-275.ppm","original":"/home/void/.cache/-275.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-276.pbm","original":"/home/void/.cache/-276.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-277.pbm","original":"/home/void/.cache/-277.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-278.ppm","original":"/home/void/.cache/-278.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-279.pbm","original":"/home/void/.cache/-279.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-280.ppm","original":"/home/void/.cache/-280.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-281.pbm","original":"/home/void/.cache/-281.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-282.ppm","original":"/home/void/.cache/-282.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-283.pbm","original":"/home/void/.cache/-283.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-284.ppm","original":"/home/void/.cache/-284.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-285.pbm","original":"/home/void/.cache/-285.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-286.ppm","original":"/home/void/.cache/-286.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-287.pbm","original":"/home/void/.cache/-287.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-288.ppm","original":"/home/void/.cache/-288.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-289.pbm","original":"/home/void/.cache/-289.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-290.ppm","original":"/home/void/.cache/-290.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-291.pbm","original":"/home/void/.cache/-291.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-292.ppm","original":"/home/void/.cache/-292.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-293.pbm","original":"/home/void/.cache/-293.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-294.ppm","original":"/home/void/.cache/-294.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-295.pbm","original":"/home/void/.cache/-295.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-296.ppm","original":"/home/void/.cache/-296.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-297.pbm","original":"/home/void/.cache/-297.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-298.ppm","original":"/home/void/.cache/-298.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-299.pbm","original":"/home/void/.cache/-299.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-300.ppm","original":"/home/void/.cache/-300.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-301.pbm","original":"/home/void/.cache/-301.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-302.ppm","original":"/home/void/.cache/-302.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-303.pbm","original":"/home/void/.cache/-303.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-304.ppm","original":"/home/void/.cache/-304.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-305.pbm","original":"/home/void/.cache/-305.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-306.ppm","original":"/home/void/.cache/-306.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-307.pbm","original":"/home/void/.cache/-307.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-308.ppm","original":"/home/void/.cache/-308.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-309.pbm","original":"/home/void/.cache/-309.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-310.ppm","original":"/home/void/.cache/-310.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-311.pbm","original":"/home/void/.cache/-311.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-312.ppm","original":"/home/void/.cache/-312.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-313.pbm","original":"/home/void/.cache/-313.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-314.ppm","original":"/home/void/.cache/-314.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-315.pbm","original":"/home/void/.cache/-315.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-316.ppm","original":"/home/void/.cache/-316.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-317.pbm","original":"/home/void/.cache/-317.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-318.ppm","original":"/home/void/.cache/-318.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-319.pbm","original":"/home/void/.cache/-319.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-320.ppm","original":"/home/void/.cache/-320.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-321.pbm","original":"/home/void/.cache/-321.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-322.ppm","original":"/home/void/.cache/-322.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-323.pbm","original":"/home/void/.cache/-323.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-324.ppm","original":"/home/void/.cache/-324.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-325.pbm","original":"/home/void/.cache/-325.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-326.ppm","original":"/home/void/.cache/-326.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-327.pbm","original":"/home/void/.cache/-327.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-328.ppm","original":"/home/void/.cache/-328.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-329.pbm","original":"/home/void/.cache/-329.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-330.ppm","original":"/home/void/.cache/-330.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-331.pbm","original":"/home/void/.cache/-331.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-332.pbm","original":"/home/void/.cache/-332.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-333.ppm","original":"/home/void/.cache/-333.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-334.pbm","original":"/home/void/.cache/-334.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-335.ppm","original":"/home/void/.cache/-335.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-336.pbm","original":"/home/void/.cache/-336.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-337.ppm","original":"/home/void/.cache/-337.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-338.pbm","original":"/home/void/.cache/-338.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-339.ppm","original":"/home/void/.cache/-339.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-340.pbm","original":"/home/void/.cache/-340.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-341.ppm","original":"/home/void/.cache/-341.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-342.pbm","original":"/home/void/.cache/-342.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-343.ppm","original":"/home/void/.cache/-343.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-344.pbm","original":"/home/void/.cache/-344.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-345.ppm","original":"/home/void/.cache/-345.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-346.pbm","original":"/home/void/.cache/-346.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-347.ppm","original":"/home/void/.cache/-347.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-348.pbm","original":"/home/void/.cache/-348.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-349.ppm","original":"/home/void/.cache/-349.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-350.pbm","original":"/home/void/.cache/-350.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-351.ppm","original":"/home/void/.cache/-351.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-352.pbm","original":"/home/void/.cache/-352.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-353.ppm","original":"/home/void/.cache/-353.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-354.pbm","original":"/home/void/.cache/-354.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-355.ppm","original":"/home/void/.cache/-355.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-356.pbm","original":"/home/void/.cache/-356.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-357.ppm","original":"/home/void/.cache/-357.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-358.pbm","original":"/home/void/.cache/-358.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-359.ppm","original":"/home/void/.cache/-359.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-360.pbm","original":"/home/void/.cache/-360.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-361.ppm","original":"/home/void/.cache/-361.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-362.pbm","original":"/home/void/.cache/-362.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-363.ppm","original":"/home/void/.cache/-363.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-364.pbm","original":"/home/void/.cache/-364.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-365.ppm","original":"/home/void/.cache/-365.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-366.pbm","original":"/home/void/.cache/-366.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-367.ppm","original":"/home/void/.cache/-367.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-368.pbm","original":"/home/void/.cache/-368.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-369.ppm","original":"/home/void/.cache/-369.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-370.pbm","original":"/home/void/.cache/-370.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-371.ppm","original":"/home/void/.cache/-371.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-372.pbm","original":"/home/void/.cache/-372.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-373.ppm","original":"/home/void/.cache/-373.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-374.pbm","original":"/home/void/.cache/-374.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-375.ppm","original":"/home/void/.cache/-375.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-376.pbm","original":"/home/void/.cache/-376.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-377.ppm","original":"/home/void/.cache/-377.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-378.pbm","original":"/home/void/.cache/-378.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-379.ppm","original":"/home/void/.cache/-379.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-380.pbm","original":"/home/void/.cache/-380.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-381.ppm","original":"/home/void/.cache/-381.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-382.pbm","original":"/home/void/.cache/-382.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-383.ppm","original":"/home/void/.cache/-383.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-384.pbm","original":"/home/void/.cache/-384.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-385.ppm","original":"/home/void/.cache/-385.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-386.pbm","original":"/home/void/.cache/-386.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-387.ppm","original":"/home/void/.cache/-387.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-388.pbm","original":"/home/void/.cache/-388.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-389.ppm","original":"/home/void/.cache/-389.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-390.pbm","original":"/home/void/.cache/-390.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-391.ppm","original":"/home/void/.cache/-391.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-392.pbm","original":"/home/void/.cache/-392.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-393.ppm","original":"/home/void/.cache/-393.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-394.pbm","original":"/home/void/.cache/-394.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-395.ppm","original":"/home/void/.cache/-395.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-396.pbm","original":"/home/void/.cache/-396.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-397.ppm","original":"/home/void/.cache/-397.ppm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-398.pbm","original":"/home/void/.cache/-398.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_-399.pbm","original":"/home/void/.cache/-399.pbm"},{"trashed":"/home/void/.local/share/vifm/Trash/000_.moc","original":"/home/void/.moc"},{"trashed":"/home/void/.local/share/vifm/Trash/000_.pki","original":"/home/void/.pki"},{"trashed":"/home/void/.local/share/vifm/Trash/000_.ssh","original":"/home/void/.ssh"},{"trashed":"/home/void/.local/share/vifm/Trash/000_.surf","original":"/home/void/.surf"},{"trashed":"/home/void/.local/share/vifm/Trash/000_RESUME.PDF","original":"/home/void/repos/nhkd/RESUME.PDF"},{"trashed":"/.vifm-Trash-0/000_ novgorod","original":"/root/ novgorod"},{"trashed":"/.vifm-Trash-0/000_ novgorod.pub","original":"/root/ novgorod.pub"},{"trashed":"/.vifm-Trash-0/000_known_hosts","original":"/root/.ssh/known_hosts"},{"trashed":"/.vifm-Trash-0/000_known_hosts.old","original":"/root/.ssh/known_hosts.old"},{"trashed":"/.vifm-Trash-0/000_Downloads","original":"/root/Downloads"},{"trashed":"/.vifm-Trash-0/001_Downloads","original":"/root/Downloads"},{"trashed":"/.vifm-Trash-0/000_boot.s","original":"/root/boot.s"},{"trashed":"/.vifm-Trash-0/000_IMG_2271.jpeg","original":"/root/down/IMG_2271.jpeg"},{"trashed":"/.vifm-Trash-0/000_LICENSE.TXT","original":"/root/down/LICENSE.TXT"},{"trashed":"/.vifm-Trash-0/000_MODEM.PCK","original":"/root/down/MODEM.PCK"},{"trashed":"/.vifm-Trash-0/000_Nimbus Roman No9 L Regular U(1).ttf","original":"/root/down/Nimbus Roman No9 L Regular U(1).ttf"},{"trashed":"/.vifm-Trash-0/000_Other Files","original":"/root/down/Other Files"},{"trashed":"/.vifm-Trash-0/000_folder","original":"/root/down/folder"},{"trashed":"/.vifm-Trash-0/000_autism","original":"/root/down/folder/autism"},{"trashed":"/.vifm-Trash-0/000_hunger_2006-11-30.zip","original":"/root/down/hunger_2006-11-30.zip"},{"trashed":"/.vifm-Trash-0/000_hunger_2008-04-02.zip","original":"/root/down/hunger_2008-04-02.zip"},{"trashed":"/.vifm-Trash-0/000_image_proxy.png","original":"/root/down/image_proxy.png"},{"trashed":"/.vifm-Trash-0/000_nzcc_v0.7z","original":"/root/down/nzcc_v0.7z"},{"trashed":"/.vifm-Trash-0/000_nzdec_v0.7z","original":"/root/down/nzdec_v0.7z"},{"trashed":"/.vifm-Trash-0/000_readme.txt","original":"/root/down/readme.txt"},{"trashed":"/.vifm-Trash-0/000_sMb9zRpB.html","original":"/root/down/sMb9zRpB.html"},{"trashed":"/.vifm-Trash-0/000_song60d.ogg","original":"/root/down/song60d.ogg"},{"trashed":"/.vifm-Trash-0/000_wow.avi","original":"/root/down/wow.avi"},{"trashed":"/.vifm-Trash-0/000_xkb-symbols.tar","original":"/root/down/xkb-symbols.tar"},{"trashed":"/.vifm-Trash-0/000_judilliam.xbm","original":"/root/judilliam.xbm"},{"trashed":"/.vifm-Trash-0/000_linker.ld","original":"/root/linker.ld"},{"trashed":"/.vifm-Trash-0/000_2023-08-25-224148_1600x900_scrot(1).png","original":"/root/media/vilyaemkenyaz/2023-08-25-224148_1600x900_scrot(1).png"},{"trashed":"/.vifm-Trash-0/000_2023-08-25-224148_1600x900_scrot(2).png","original":"/root/media/vilyaemkenyaz/2023-08-25-224148_1600x900_scrot(2).png"},{"trashed":"/.vifm-Trash-0/000_2023-08-25-224148_1600x900_scrot(3).png","original":"/root/media/vilyaemkenyaz/2023-08-25-224148_1600x900_scrot(3).png"},{"trashed":"/.vifm-Trash-0/000_novgorod","original":"/root/novgorod"},{"trashed":"/.vifm-Trash-0/000_novgorod.pub","original":"/root/novgorod.pub"},{"trashed":"/.vifm-Trash-0/000_GOX_007b.ppm","original":"/root/prog/gox/GOX_007b.ppm"},{"trashed":"/.vifm-Trash-0/000_GOX_0113.ppm","original":"/root/prog/gox/GOX_0113.ppm"},{"trashed":"/.vifm-Trash-0/000_GOX_012b.ppm","original":"/root/prog/gox/GOX_012b.ppm"},{"trashed":"/.vifm-Trash-0/000_tags","original":"/root/repos/blood/tags"},{"trashed":"/.vifm-Trash-0/000_vm","original":"/root/repos/cyberchud/build/vm"},{"trashed":"/.vifm-Trash-0/000_st-gruvbox-dark-0.8.2.diff","original":"/root/repos/sites/st.suckless.org/patches/darkpastel/st-gruvbox-dark-0.8.2.diff"},{"trashed":"/.vifm-Trash-0/000_st-gruvbox-dark-0.8.5.diff","original":"/root/repos/sites/st.suckless.org/patches/darkpastel/st-gruvbox-dark-0.8.5.diff"},{"trashed":"/.vifm-Trash-0/000_st-gruvbox-light-0.8.2.diff","original":"/root/repos/sites/st.suckless.org/patches/darkpastel/st-gruvbox-light-0.8.2.diff"},{"trashed":"/.vifm-Trash-0/000_st-gruvbox-light-0.8.5.diff","original":"/root/repos/sites/st.suckless.org/patches/darkpastel/st-gruvbox-light-0.8.5.diff"},{"trashed":"/.vifm-Trash-0/000_bookwrt","original":"/root/x/bookwrt"},{"trashed":"/.vifm-Trash-0/000_emails","original":"/root/x/emails"},{"trashed":"/.vifm-Trash-0/000_Hello","original":"/root/x/modeling/biz/BirchTrees/Hello"},{"trashed":"/.vifm-Trash-0/001_Hello","original":"/root/x/modeling/biz/BirchTrees/Hello"},{"trashed":"/.vifm-Trash-0/000_hello","original":"/root/x/modeling/biz/BirchTrees/hello"},{"trashed":"/.vifm-Trash-0/000_003.webp","original":"/root/x/web/homepage/imgs/003.webp"},{"trashed":"/.vifm-Trash-0/000_004.webp","original":"/root/x/web/homepage/imgs/004.webp"},{"trashed":"/.vifm-Trash-0/000_005.webp","original":"/root/x/web/homepage/imgs/005.webp"},{"trashed":"/.vifm-Trash-0/000_orig","original":"/root/x/web/homepage/imgs/orig"},{"trashed":"/.vifm-Trash-0/001_orig","original":"/root/x/web/homepage/imgs/orig"},{"trashed":"/.vifm-Trash-0/000_README.md","original":"/root/x/web/monpay/README.md"},{"trashed":"/.vifm-Trash-0/000_data","original":"/root/x/web/monpay/data"},{"trashed":"/.vifm-Trash-0/000_files","original":"/root/x/web/monpay/files"},{"trashed":"/.vifm-Trash-0/000_go.mod","original":"/root/x/web/monpay/go.mod"},{"trashed":"/.vifm-Trash-0/000_go.sum","original":"/root/x/web/monpay/go.sum"},{"trashed":"/.vifm-Trash-0/000_index.php","original":"/root/x/web/monpay/index.php"},{"trashed":"/.vifm-Trash-0/000_main.go","original":"/root/x/web/monpay/main.go"},{"trashed":"/.vifm-Trash-0/000_monero-wallet-cli.log","original":"/root/x/web/monpay/monero-wallet-cli.log"},{"trashed":"/.vifm-Trash-0/000_monero-wallet-rpc.18083.login","original":"/root/x/web/monpay/monero-wallet-rpc.18083.login"},{"trashed":"/.vifm-Trash-0/000_monero-wallet-rpc.log","original":"/root/x/web/monpay/monero-wallet-rpc.log"},{"trashed":"/.vifm-Trash-0/000_monpayw","original":"/root/x/web/monpay/monpayw"},{"trashed":"/.vifm-Trash-0/000_monpayw.keys","original":"/root/x/web/monpay/monpayw.keys"},{"trashed":"/.vifm-Trash-0/000_test.php","original":"/root/x/web/monpay/test.php"},{"trashed":"/.vifm-Trash-0/000_xmpp.go","original":"/root/x/web/monpay/xmpp.go"},{"trashed":"/.vifm-Trash-0/000_Aileron-Black.otf","original":"/root/x/web/voxus/Aileron-Black.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-BlackItalic.otf","original":"/root/x/web/voxus/Aileron-BlackItalic.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-BoldItalic.otf","original":"/root/x/web/voxus/Aileron-BoldItalic.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-Heavy.otf","original":"/root/x/web/voxus/Aileron-Heavy.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-HeavyItalic.otf","original":"/root/x/web/voxus/Aileron-HeavyItalic.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-Italic.otf","original":"/root/x/web/voxus/Aileron-Italic.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-Regular.otf","original":"/root/x/web/voxus/Aileron-Regular.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-SemiBold.otf","original":"/root/x/web/voxus/Aileron-SemiBold.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-SemiBoldItalic.otf","original":"/root/x/web/voxus/Aileron-SemiBoldItalic.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-Thin.otf","original":"/root/x/web/voxus/Aileron-Thin.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-ThinItalic.otf","original":"/root/x/web/voxus/Aileron-ThinItalic.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-UltraLight.otf","original":"/root/x/web/voxus/Aileron-UltraLight.otf"},{"trashed":"/.vifm-Trash-0/000_Aileron-UltraLightItalic.otf","original":"/root/x/web/voxus/Aileron-UltraLightItalic.otf"},{"trashed":"/.vifm-Trash-0/000_aileron_0102.zip","original":"/root/x/web/voxus/aileron_0102.zip"},{"trashed":"/.vifm-Trash-0/000_y.tab.h","original":"/root/y.tab.h"}],"marks":{"H":{"dir":"/root/","file":"..","ts":1722498528},"a":{"dir":"/root/repos/cyberchud/src","file":"bsp_parse.c","ts":1724821533},"b":{"dir":"/root/bin/","file":"..","ts":1722498528},"h":{"dir":"/root/","file":"..","ts":1722498528},"z":{"dir":"/root/.config/vifm","file":"..","ts":1722498528}},"bmarks":{}} \ No newline at end of file diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc new file mode 100644 index 0000000..faba33a --- /dev/null +++ b/.config/vifm/vifmrc @@ -0,0 +1,46 @@ +" Vilyaem's ViFM configuration + +set dotfiles +set mouse=a +:view + +command create : +\| let $last_char = expand(system("str=\"%a\"; echo \"${str: -1}\"")) +\| if $last_char == "/" +\| mkdir "%a" +\| else +\| touch "%a" +\| endif + + +:map $ :shell +:map ; : +:map J :view +:map Q :quit +:map S :!sxiv * +:map ][ :compare listall + +"Fix Sixel rendering bugs +:map :pwd +:map :pwd + +nnoremap a :create + +filetype *.bmp,*.gif,*.jpe,*.jpeg,*.jpg,*.pbm,*.png,*.ppm,*.webp,*.xpm,*.dds,image_proxy sxiv +"filetype *.bmp,*.gif,*.jpe,*.jpeg,*.jpg,*.pbm,*.png,*.ppm,*.webp,*.xpm,image_proxy swiv +filetype *avi,*.mp4,*.mp3,*.m4a,*.mkv,*.webm,*.mod,*.s3m,*.it,*.raw,*.wav,*.ogg,*.ogv,*.opus mpv +filetype *.pdf,*.epub,*.djvu zathura +filetype *.mid,*.midi fluidsynth +"filetype * vim +filetype * nvim +filetype .* nvim + +highlight Win cterm=none ctermfg=white ctermbg=none + +"Sixel and 256 color file preview +fileviewer *.bmp,*.gif,*.jpe,*.jpeg,*.jpg,*.pbm,*.png,*.ppm,*.webp,*.xpm,image_proxy,*.ico supervifm %pw %c %pd %pc +fileviewer *.mp4,*.mkv,*.ogv,*.webm,*.avi,*.3gp ffmpegthumbnailer -s 128 -i %c -o ~/.cache/thumb.jpg ; supervifm %pw ~/.cache/thumb.jpg %pd %pc +fileviewer *.pdf pdftoppm -jpeg -f 1 -singlefile %c ~/.cache/thumb ; supervifm %pw ~/.cache/thumb.jpg %pd %pc +fileviewer *.epub gnome-epub-thumbnailer %c ~/.cache/thumb.jpg ; supervifm %pw ~/.cache/thumb.jpg %pd %pc +fileviewer *.img,*.bin,*.z,*.blend xxd %c +fileviewer *.wav,*.mp3,*.mid,*.it,*.s3m,*.mod,*.opus,*.bin,*.dll,*.exe,*.dat file %c diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..dd98f88 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,5 @@ +# This is Git's per-user configuration file. +[user] +# Please adapt and uncomment the following lines: + name = Vilyaem + email = vilyaem@vilyaem.xyz diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..1d653c8 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,32 @@ +# Vilyaem's Tmux + +# Default shell is zsh +set-option -g default-shell /bin/zsh + +# colors +#set-option -g pane-border-bg blue +#set-option -g pane-border-fg black + +set -g status-bg blue +set -g status-fg black + +# Index at 1 instead of 0 +set -g base-index 1 +setw -g pane-base-index 1 + +# Different prefix key Ctrl-b -> Ctrl-a +set -g prefix C-a + +# File reloading +#bind r source-file ~/.tmux.conf \; display “config file loaded.” + +# Close immediately +unbind x +bind x kill-pane +bind X kill-session + +# More window splitting +bind | split-window -h +bind - split-window -v + + diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..b68040d --- /dev/null +++ b/.vimrc @@ -0,0 +1,84 @@ +""VILYAEMS VIMRC +"tinier vimrc 80 line limit +filetype plugin on +set autoindent +set backspace=indent,eol,start +set encoding=utf-8 +set et +set lazyredraw +set list +set listchars=tab:>. +set mouse=a +set nocompatible +set noswapfile +set number relativenumber +"set omnifunc=syntaxcomplete#Complete +set spelllang=en_gb +set sw=2 +set viminfo="" +"syntax enable +"syntax spell toplevel + +"Vimwiki +let g:vimwiki_list = [{'path': '~/x/wiki/md/', 'path_html': '~/x/wiki/web/', + \ 'template_path': '~/x/wiki/', 'template_default': 'page', 'template_ext': '.html'}] + +"call plug#begin(system('echo "~/.vim/plugged/"')) +"Plug 'preservim/nerdtree' +"Plug 'jreybert/vimagit' +"Plug 'vimwiki/vimwiki' +"Plug 'xiyaowong/transparent.nvim' +"call plug#end() +" + +" System clipboard usage +nnoremap y "+y +nnoremap p "+p +inoremap y "+y +inoremap p "+p + +" Color column +nnoremap co :set colorcolumn=80 +nnoremap nc :set colorcolumn-=80 + +"whitespace removal +"nnoremap cw :%s/\s\+$//:noh + +"indent file +"nnoremap ind gg=G`` +"inoremap ind gg=G``I + +"code completion +"inoremap 1 + +"easy search and replace +nnoremap S :%s///g + +"easy save +nnoremap W :w + +" c h soy++ +"desc gen +function FileHeading() + let s:line=line(".") + call setline(s:line,"/*********************************************") + call append(s:line,"* Description - ") + call append(s:line+1,"* Author - Vilyaem") + call append(s:line+2,"* *******************************************/") + unlet s:line +endfunction +imap mz:execute FileHeading()g;kkA + +"section +imap I/*----------!----------*//!?xi + +"bulid +imap :w:!./c.sh +nnoremap :w:!./c.sh +"comments +inoremap oc /* +inoremap cc */ +inoremap cl I/*A*/ +nnoremap cl I/*A*/ + +"syntax off diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..0dbc6af --- /dev/null +++ b/.xinitrc @@ -0,0 +1,8 @@ +xset r rate 400 100 & +picom & +setxkbmap -option caps:escape us dvorak & +xrandr -s 1280x720 & +xbanish & +nhkd & +bar & +exec dwm diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..97ca7e9 --- /dev/null +++ b/.zprofile @@ -0,0 +1,4 @@ +#Login to window manager the moment I login to my first tty. +if [[ $(tty) == /dev/tty1 ]]; then + doas slim +fi diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..41db8fa --- /dev/null +++ b/.zshrc @@ -0,0 +1,180 @@ +############################################# +# Description - My ZSH configuration +# Author - Vilyaem +# ########################################### + +##########Zsh########## +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh +autoload -Uz compinit -C -d "$ZSH_COMPDUMP/.zcompdump-${ZSH_VERSION}" +autoload -U colors && colors +_comp_options+=(globdots) +# Enable case-insensitive completion +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' +# Show possible completions in a menu +zstyle ':completion:*' menu select +# Enable auto-correction of mistyped commands +setopt correct +# Set the theme +ZSH_THEME="agnoster" +# History settings +HISTSIZE=10000000 +SAVEHIST=10000000 +HISTFILE=~/.cache/zsh_history +export ZSH_COMPDUMP="$HOME/.cache/zcompdump" +setopt append_history +setopt share_history +export PS1="%{$fg[blue]%}$USER%%%{$reset_color%} %~ " +#export PS1="$USER%% %~ " +export PATH="$HOME/.local/bin:$PATH" +export PATH="$HOME/r/zig-linux-x86_64-0.13.0/:$PATH" +export PATH="$HOME/.local/share/cargo/bin/:$PATH" +#Add Vi mode +bindkey -v +#Arrow key history completion +bindkey '^[[A' history-search-backward +bindkey '^[[B' history-search-forward + + +##########Default Programs########## +export BROWSER="firefox" +export BUG_PROJECT=$(pwd)/bug +export CC="gcc" +export EDITOR="v" +export MANPAGER='nvim +Man!' +export TERMINAL="st" +export SESSION_MANAGER="slim" + +##########Ricing########## +export XDG_RUNTIME_DIR=/run/user/0 +export GTK_THEME=Breeze:dark +export XCURSOR_THEME="Bibata-Modern-Classic" +export QT_QPA_PLATFORMTHEME="qt5ct:qt6ct" +eval $(dircolors -b) + +##########Cleanup########## +export INPUTRC="~/.config/readline/.inputrc" +export XINITRC="/home/vilyaem/.config/X11/xinitrc" +export LESSHISTFILE="-" +export CARGO_HOME="$XDG_DATA_HOME"/cargo +export ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf; personal $XDG_DATA_HOME/aspell/en.pws; repl $XDG_DATA_HOME/aspell/en.prepl" +export ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority" +export ELECTRUMDIR="$XDG_DATA_HOME/electrum" + +##########Wine########## +alias wine='WINEPREFIX="$HOME/.wine" WINEARCH=win32 wine' +alias wine64='WINEPREFIX="$HOME/.local/share/wineprefixes/default/" WINEARCH=win64 wine64' +#export WINEPREFIX=~/.wine64/ +export WINEPREFIX=~/.local/share/wineprefixes/default/ +export WINEARCH=win64 + + +##########Aliases########## +alias abook='abook --datafile ~/.local/share/abook/addressbook' +alias alsafix='for x in `amixer controls | grep layback` ; do amixer cset "${x}" on ; done' +alias apc='doas apt list --installed | wc -l' +alias aplist='doas apt list --installed' +alias aptar='doas apt autoremove' +alias apti='doas apt install' +alias aptr='doas apt remove' +alias apts='doas apt search' +alias c='./c.sh' +alias dosbox="dosbox -conf ~/.local/share/dosbox/dosbox.conf" +alias dwifi='doas rfkill block wifi' +alias emsetup='cd ~/r/emsdk/ && ./emsdk activate latest && source ./emsdk_env.sh && pwd' +alias freedosmnt='doas mount -t msdos -o loop,offset=32256 freedos.img /mnt/' +alias gc='git clone --recurse-submodules --depth=1' +alias getcam='cp --update=none /mnt/DCIM/139CANON/* /root/media/vilyaemkenyaz/' +alias getmouse='xdotool getmouselocation --shell' +alias ghex='grabc -hex' +alias gmt='xdg-mime query filetype $1' +alias grgb='grabc -rgb' \ +alias hosted='doas v /etc/hosts ; exit' +alias l='\ls --color=auto --group-directories-first' +alias ls='ls --color=auto -lah' +alias makeiso='xorriso -as mkisofs -o $1.iso .' +alias mkgource='gource --fullscreen -s 0.8 ./ --stop-at-end -follow-user --'VilyaemKenyaz'' +alias nero='monero-wallet-cli --trusted-daemon --daemon-address http://node.monerodevs.org:18089 --wallet-file vilyaem' +alias neroo='monero-wallet-cli --trusted-daemon --daemon-address http://node.monerodevs.org:18089' +alias pg='ps aux | grep' +alias phptmp='doas php -S localhost:80' +alias printer='system-config-printer' +alias qrcode='qrencode -s 20 "#1" -o qr.png' +alias record='ffmpeg -y -f x11grab -r 25 -i :0.0 -vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p -s 1280x720 vilcord-$(date -I).mkv' +alias recordcast='ffmpeg -y -f x11grab -r 30 -i :0.0 -f alsa -i hw:0 -vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p vilcast-$(date -I).mkv' +alias recordmic='ffmpeg -y -f alsa -i hw:0 vilmic-$(date -I).ogg' +alias setbug='export BUG_PROJECT=$(pwd)/bug' +alias sk='screenkey' +alias sx='sxiv' +alias tarit='tar -czvf $1.tar.gz $1' +alias tsm='transmission-remote' +alias tsmd='pkill trans && transmission-daemon' +alias untar='tar -xzvf $1' +alias usbmnt='doas mount -t vfat /dev/sdb1 /mnt/ && ls /mnt/' +alias usbumnt='doas umount /mnt/' +alias vedit='cd ~ && v .vimrc' +alias vgamon='xrandr --output VGA1 --mode 640x480 --pos -640x0 --output HDMI1 --pos 0x0' +alias vi='nvim' +alias vim='nvim' +alias webcam='mpv /dev/video0' +alias wikiedit='z mr ; v *' +alias xb='xbacklight -set $1' +alias yt='ytfzf --ii=inv.nadeko.net --show-thumbnails -T chafa --max-threads=$(nproc)' +alias zathura='printf "use v"' +alias zipup='zip -r $1.zip $1 && rm $1' + +##########Shell functions & utilities########## + +#Dictionary! +dict(){ + grep $@ ~/.config/dict.csv | awk -F, '{print "Definition of "$1"..."; print " " ;for (i=3; i<=NF; i++) printf "%s", $i; print ""}' | sed 's/\"//g' +} + +#Internet dict.org dictionary +wdict(){ + for var in "$@" + do + curl dict://dict.org/d:"$var" + done +} + +#Read me a story! +story(){ + pdftotext $@ - | espeak --stdout | mpv - +} + +#Logout +bye(){ + pkill tmux && doas su root --c 'pm-suspend' +} + +#It's like notion, but not soy +note(){ + printf ".H1\nJournal Entry of $(date)\n.P\n\n" > ~/.local/share/pmkentries/$(date -I).mr + remind ~/.reminders >> ~/.local/share/pmkentries/$(date -I).mr + cat ~/.local/share/pmakebase.mr >> ~/.local/share/pmkentries/$(date -I).mr + vim ~/.local/share/pmkentries/$(date -I).mr +} + +#Download 'Tube links with yt-dlp +t(){ + yt-dlp -f "best[height<=360]" $(echo "$@" | sed -e 's|inv\.nadeko\.net|youtube.com|g' -e 's|yewtu\.be|youtube.com|g') +} + +#Watch 'tube links with mpv +tw(){ + mpv $(echo "$@" | sed -e 's|inv\.nadeko\.net|youtube.com|g' -e 's|yewtu\.be|youtube.com|g') +} + +#Yazi shell wrapper script +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + builtin cd -- "$cwd" + fi + rm -f -- "$tmp" +} + +##########Zoxide########## +eval "$(zoxide init zsh)" diff --git a/README.md b/README.md new file mode 100644 index 0000000..4a02511 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# Vilyaem's Dotfiles and Programs + +This repository stores my configuration, private forks of the programs I use, +and my own personal programs and scripts.. + +apk.txt stores all apt packages installed, very bloated. +apkworld.txt stores all intentionally installed apt packages. + +## Programs + +* badwolf -- Web Browser +* dmenu -- Dynamic Menu +* nhkd -- Nano Hotkey Daemon +* vildwm -- Vilyaem's Dynamic Window Manager +* vilst -- Vilyaem's ST Terminal Emulator +* sxiv -- Image viewer + +## Configurations +* OpenSCAD +* at-spi +* dosbox +* foot +* gtk-2.0 +* gtk-3.0 +* htop +* mpv +* neofetch +* nvim <- now home-made +* qutebrowser +* screenkey.json +* spectrwm +* sway +* tmuxinator +* vifm +* wget +* vim + +## Personal Software +* bar -- Status Bar +* cl -- Screen clearer made in ASM diff --git a/apk.txt b/apk.txt new file mode 100644 index 0000000..7248419 --- /dev/null +++ b/apk.txt @@ -0,0 +1,1778 @@ +7zip +7zip-doc +a52dec +a52dec-doc +abook +abook-doc +abseil-cpp-base +abseil-cpp-city +abseil-cpp-cord +abseil-cpp-cord-internal +abseil-cpp-cordz-functions +abseil-cpp-cordz-handle +abseil-cpp-cordz-info +abseil-cpp-crc-cord-state +abseil-cpp-crc-internal +abseil-cpp-crc32c +abseil-cpp-debugging-internal +abseil-cpp-die-if-null +abseil-cpp-examine-stack +abseil-cpp-exponential-biased +abseil-cpp-hash +abseil-cpp-int128 +abseil-cpp-kernel-timeout-internal +abseil-cpp-log-globals +abseil-cpp-log-internal-check-op +abseil-cpp-log-internal-conditions +abseil-cpp-log-internal-format +abseil-cpp-log-internal-globals +abseil-cpp-log-internal-log-sink-set +abseil-cpp-log-internal-message +abseil-cpp-log-internal-nullguard +abseil-cpp-log-internal-proto +abseil-cpp-log-sink +abseil-cpp-low-level-hash +abseil-cpp-malloc-internal +abseil-cpp-raw-hash-set +abseil-cpp-raw-logging-internal +abseil-cpp-spinlock-wait +abseil-cpp-stacktrace +abseil-cpp-status +abseil-cpp-statusor +abseil-cpp-str-format-internal +abseil-cpp-strerror +abseil-cpp-strings +abseil-cpp-strings-internal +abseil-cpp-symbolize +abseil-cpp-synchronization +abseil-cpp-throw-delegate +abseil-cpp-time +abseil-cpp-time-zone +acpid +acpid-doc +acpid-openrc +ada-libs +aerc +aerc-doc +agetty +agetty-openrc +alpine +alpine-base +alpine-baselayout +alpine-baselayout-data +alpine-conf +alpine-doc +alpine-keys +alpine-release +alsa-lib +alsa-lib-dev +alsa-tools +alsa-tools-doc +alsa-ucm-conf +alsa-utils +alsa-utils-doc +alsa-utils-openrc +alsaconf +aom-libs +apk-tools +apk-tools-zsh-completion +apko-zsh-completion +aria2 +aria2-doc +assimp +assimp-dev +assimp-libs +at-spi2-core +attica +attica-doc +attr +attr-doc +aubio +avahi-compat-libdns_sd +avahi-glib +avahi-libs +babl +bash +bash-doc +bc +bc-doc +binutils +binutils-arm-none-eabi +binutils-doc +bison +bison-doc +blkid +bluez-libs +boost1.84 +boost1.84-atomic +boost1.84-chrono +boost1.84-container +boost1.84-context +boost1.84-contract +boost1.84-coroutine +boost1.84-date_time +boost1.84-dev +boost1.84-doc +boost1.84-fiber +boost1.84-filesystem +boost1.84-graph +boost1.84-iostreams +boost1.84-json +boost1.84-libs +boost1.84-locale +boost1.84-log +boost1.84-log_setup +boost1.84-math +boost1.84-nowide +boost1.84-prg_exec_monitor +boost1.84-program_options +boost1.84-python3 +boost1.84-random +boost1.84-regex +boost1.84-serialization +boost1.84-stacktrace_basic +boost1.84-stacktrace_noop +boost1.84-system +boost1.84-thread +boost1.84-timer +boost1.84-type_erasure +boost1.84-unit_test_framework +boost1.84-url +boost1.84-wave +boost1.84-wserialization +botan-libs +box2d +box2d-doc +breeze-icons +brotli +brotli-dev +brotli-doc +brotli-libs +bsd-compat-headers +build-base +busybox +busybox-binsh +busybox-doc +busybox-mdev-openrc +busybox-openrc +busybox-suid +bzip2 +bzip2-dev +bzip2-doc +c-ares +c-ares-dev +c-ares-doc +ca-certificates +ca-certificates-bundle +ca-certificates-doc +cabextract +cabextract-doc +cairo +cairo-dev +cairo-doc +cairo-gobject +cairo-tools +capstone +ccrtp +ccrtp-doc +cdparanoia-libs +cdrkit +cdrkit-doc +cfdisk +chafa +chafa-doc +chafa-libs +cjson +clang18-libs +clang19 +clang19-dev +clang19-doc +clang19-extra-tools +clang19-headers +clang19-libclang +clang19-libs +clisp +clisp-doc +cloc +cloc-doc +clucene +clucene-contribs +cmake +cmake-vim +commoncpp +commoncpp-doc +cryptsetup +cryptsetup-doc +cryptsetup-libs +cryptsetup-openrc +ctags +ctags-doc +cups +cups-client +cups-doc +cups-filters +cups-filters-doc +cups-filters-libs +cups-libs +cups-openrc +cups-pdf +cups-pk-helper +curl +curl-dev +curl-doc +curl-zsh-completion +czmq +czmq-dev +dbus +dbus-daemon-launch-helper +dbus-doc +dbus-libs +dbus-openrc +dbus-x11 +debian-archive-keyring +debian-archive-keyring-doc +debootstrap +debootstrap-doc +deutex +deutex-doc +device-mapper-libs +dialog +dialog-doc +directfb +directfb-doc +dmenu +dmenu-doc +dmesg +dmidecode +dmidecode-doc +dnsmasq +dnsmasq-common +dnsmasq-doc +dnsmasq-openrc +doas +doas-doc +docbook-xml +docbook-xsl +docbook-xsl-nons +docbook-xsl-ns +docopt-cpp +docopt-cpp-doc +docs +double-conversion +doxygen +doxygen-doc +dpkg +dpkg-doc +dpkg-zsh-completion +duktape +dunst +dunst-doc +dunst-zsh-completion +dunstify +e2fsprogs +e2fsprogs-doc +e2fsprogs-libs +electrum +electrum-gui +electrum-pyc +embree +embree-dev +embree-doc +embree3 +embree3-dev +encodings +epson-inkjet-printer-escpr +espeak +eudev +eudev-dev +eudev-doc +eudev-libs +eudev-openrc +exiv2 +exiv2-doc +expat +expat-dev +expat-doc +faac +faac-doc +farbfeld +farbfeld-doc +farstream +farstream-doc +fdk-aac +fdk-aac-doc +ffcall +ffcall-doc +ffmpeg +ffmpeg-doc +ffmpeg-libavcodec +ffmpeg-libavdevice +ffmpeg-libavfilter +ffmpeg-libavformat +ffmpeg-libavutil +ffmpeg-libpostproc +ffmpeg-libswresample +ffmpeg-libswscale +ffmpegthumbnailer +ffmpegthumbnailer-doc +ffplay +fftw-double-libs +fftw-single-libs +file +findmnt +firefox +firefox-intl +flac-dev +flite +flock +fluidsynth +fluidsynth-libs +font-alias +font-alias-doc +font-cursor-misc +font-dejavu +font-freefont +font-freefont-doc +font-misc-misc +font-noto +font-noto-common +font-noto-emoji +font-noto-math +font-noto-symbols +font-terminus-nerd +font-twemoji +fontconfig +fontconfig-dev +fontconfig-doc +fortify-headers +fossil +fossil-zsh-completion +freetype +freetype-dev +freetype-doc +frei0r-plugins +fribidi +fribidi-doc +fstrim +fzf +fzf-bash-plugin +fzf-doc +fzf-neovim +fzf-vim +fzf-zsh-plugin +g++ +gajim +gajim-doc +gajim-pyc +gavl +gavl-doc +gbinder-python +gc +gc-doc +gcc +gcc-arm-none-eabi +gcc-doc +gcc-gdb +gcc-zsh-completion +gcompat +gcr +gcr-base +gdb +gdb-doc +gdbm +gdbm-doc +gdk-pixbuf +gdk-pixbuf-doc +gegl +gettext +gettext-asprintf +gettext-dev +gettext-doc +gettext-envsubst +gettext-libs +gexiv2 +gexiv2-doc +ghostscript +ghostscript-doc +giflib +giflib-dev +giflib-doc +gifsicle +gifsicle-doc +gimp +gimp-doc +girara +git +git-doc +git-init-template +git-perl +git-zsh-completion +glew +glfw +glfw-dev +glib +glib-dev +glib-doc +glib-networking +glibmm +glslang-libs +glu +gmime +gmime-doc +gmp +gmp-doc +gnupg +gnupg-dirmngr +gnupg-doc +gnupg-gpgconf +gnupg-keyboxd +gnupg-utils +gnupg-wks-client +gnutls +gnutls-doc +go +gobject-introspection +gobject-introspection-doc +gource +gource-doc +gperftools +gperftools-doc +gpg +gpg-agent +gpg-wks-server +gpgme +gpgmepp +gpgsm +gpgv +graphene +graphite2 +graphite2-dev +groff +groff-doc +gsettings-desktop-schemas +gsm +gsm-doc +gst-libav +gst-plugins-bad +gst-plugins-base +gst-plugins-ugly +gst-vaapi +gstreamer +gstreamer-ptp-helper +gstreamermm +gtk+2.0 +gtk+2.0-doc +gtk+3.0 +gtk+3.0-doc +gtk-update-icon-cache +gtk4.0 +gtk4.0-doc +gtksourceview4 +gumbo-parser +gumbo-parser-doc +gvim +gzip +gzip-doc +harfbuzz +harfbuzz-cairo +harfbuzz-dev +harfbuzz-doc +harfbuzz-gobject +harfbuzz-icu +harfbuzz-subset +hexdump +hicolor-icon-theme +hidapi +htop +htop-doc +hunspell +hunspell-doc +hwdata-pci +hwloc +hwloc-doc +hyphen +icu +icu-data-full +icu-dev +icu-doc +icu-libs +ifupdown-ng +ifupdown-ng-doc +ifupdown-ng-wifi +imagemagick +imagemagick-doc +imagemagick-jpeg +imagemagick-jxl +imagemagick-libs +imagemagick-pango +imagemagick-pdf +imagemagick-raw +imagemagick-svg +imagemagick-tiff +imagemagick-webp +imagemagick-zsh-completion +imath +imlib2 +imlib2-dev +inetutils-telnet +inetutils-telnet-doc +iptables +iptables-doc +iptables-openrc +isl26 +iso-codes +iso-codes-lang +iw +iw-doc +jack +jack-dev +jack-doc +jansson +jbig2dec +jbig2dec-doc +jq +jq-doc +json-c +json-c-doc +json-glib +karchive +karchive-doc +kauth +kauth-doc +kbookmarks +kbookmarks-doc +kcodecs +kcodecs-doc +kcolorscheme +kcolorscheme-doc +kcompletion +kcompletion-doc +kconfig +kconfig-doc +kconfigwidgets +kconfigwidgets-doc +kcoreaddons +kcoreaddons-doc +kcrash +kcrash-doc +kdbusaddons +kdbusaddons-doc +kde-default-icon-theme +kded +kded-doc +kdenlive +kdenlive-doc +kdoctools +kdoctools-doc +kfilemetadata +kfilemetadata-doc +kglobalaccel +kglobalaccel-doc +kguiaddons +kguiaddons-doc +ki18n +ki18n-doc +kiconthemes +kiconthemes-doc +kio +kirigami +kirigami-libs +kitemviews +kitemviews-doc +kiwix-desktop +kiwix-tools +kiwix-tools-doc +kjobwidgets +kjobwidgets-doc +kmod +kmod-doc +kmod-libs +knewstuff +knewstuff-doc +knotifications +knotifications-doc +knotifyconfig +knotifyconfig-doc +kpackage +kpackage-doc +kservice +kservice-doc +ktextwidgets +ktextwidgets-doc +kwidgetsaddons +kwidgetsaddons-doc +kwindowsystem +kwindowsystem-doc +kxmlgui +kxmlgui-doc +lame-libs +lcms2 +lcms2-doc +lddtree +ledger +ledger-doc +less +less-doc +lib3mf +libabw +libabw-doc +libacl +libaio +libaio-doc +libao +libao-doc +libarchive +libarchive-doc +libass +libassuan +libassuan-doc +libasyncns +libasyncns-doc +libatk-1.0 +libatk-bridge-2.0 +libatomic +libattr +libb2 +libblkid +libbluray +libbpf +libbsd +libbsd-doc +libbz2 +libcaca +libcaca-doc +libcamera +libcamera-doc +libcamera-ipa +libcanberra +libcanberra-doc +libcanberra-gstreamer +libcap-ng +libcap-ng-doc +libcap2 +libcdio +libcdio-doc +libcdio-paranoia +libcdio-paranoia-doc +libcdr +libcdr-doc +libclc +libcom_err +libconfig +libconfig-doc +libcrypto3 +libcurl +libdav1d +libdc1394 +libdc1394-doc +libde265 +libdecor +libdecor-dev +libdeflate +libdovi +libdovi-doc +libdrm +libdrm-dev +libdvdcss +libdvdcss-doc +libdvdnav +libdvdnav-doc +libdvdread +libdvdread-doc +libdw +libe-book +libe-book-doc +libeconf +libeconf-doc +libedit +libedit-dev +libedit-doc +libelf +libelogind +libepoxy +libepubgen +libepubgen-doc +libetonyek +libetonyek-doc +libev +libev-doc +libevdev +libevdev-dev +libevdev-doc +libevent +libexif +libexif-dev +libexif-doc +libexpat +libexttextcat +libfdisk +libffi +libffi-dev +libffi-doc +libflac +libflac++ +libfontenc +libformw +libfreeaptx +libfreehand +libfreehand-doc +libgbinder +libgcc +libgcrypt +libgcrypt-doc +libgfortran +libglibutil +libglibutil-doc +libgomp +libgpg-error +libgpg-error-doc +libgphoto2 +libgphoto2-doc +libgudev +libhunspell +libhwy +libice +libice-dev +libice-doc +libid3tag +libidn2 +libidn2-dev +libidn2-doc +libimagequant +libimobiledevice +libimobiledevice-doc +libimobiledevice-glue +libinput-dev +libinput-libs +libinput-udev +libintl +libixion +libjpeg +libjpeg-turbo +libjpeg-turbo-dev +libjpeg-turbo-doc +libjxl +libjxl-doc +libkiwix +libkiwix-doc +libksba +libksba-doc +liblangtag +liblangtag-doc +libldac +libldap +libltdl +libluv +libmad +libmagic +libmd +libmd-doc +libmenuw +libmicrohttpd +libmicrohttpd-doc +libmnl +libmodplug +libmodplug-doc +libmount +libmspack +libmspub +libmspub-doc +libmwaw +libmwaw-doc +libmypaint +libncurses++ +libncursesw +libnftnl +libnice +libnl3 +libnl3-doc +libnotify +libnotify-doc +libnumbertext +libodfgen +libodfgen-doc +libogg +libogg-dev +libogg-doc +libopencv_calib3d +libopencv_core +libopencv_dnn +libopencv_features2d +libopencv_flann +libopencv_imgproc +libopencv_tracking +libopencv_video +libopenmpt +liborcus +libotr +libotr-doc +libpagemaker +libpagemaker-doc +libpanelw +libpaper +libpaper-doc +libpcap +libpcap-doc +libpciaccess +libpciaccess-dev +libpciaccess-doc +libpcre2-16 +libpcre2-32 +libplacebo +libplist +libplist-doc +libpng +libpng-dev +libpng-doc +libportaudiocxx +libpq +libprotobuf +libproxy +libproxy-doc +libpsl +libpsl-dev +libpsl-doc +libpsl-utils +libpulse +libpulse-mainloop-glib +libqt5designer +libqt5help +libquadmath +libqxp +libqxp-doc +libraw +libraw1394 +libraw1394-doc +libreoffice +libreoffice-base +libreoffice-calc +libreoffice-common +libreoffice-connector-postgres +libreoffice-draw +libreoffice-gtk +libreoffice-impress +libreoffice-lang-en_us +libreoffice-math +libreoffice-writer +libretls +libretls-doc +librevenge +librevenge-doc +librist +librsvg +librsvg-doc +librtmp +libsamplerate +libsamplerate-doc +libsasl +libseccomp +libseccomp-doc +libsecp256k1 +libsharpyuv +libsigc++ +libsigc++-doc +libsignal-protocol-c +libsigsegv +libsixel +libslirp +libsm +libsm-dev +libsm-doc +libsmartcols +libsndfile +libsndfile-dev +libsndfile-doc +libsodium +libsodium-dev +libsoup3 +libspnav +libsrt +libsrtp +libssh +libssl3 +libstaroffice +libstaroffice-doc +libstdc++ +libstdc++-dev +libstrophe +libSvtAv1Enc +libsynctex +libtag +libtasn1 +libtasn1-doc +libtheora +libtheora-doc +libtorrent-rasterbar +libturbojpeg +libucontext +libucontext-doc +libunibreak +libunistring +libunistring-doc +libunwind +libunwind-doc +liburing +liburing-doc +libusb +libusbmuxd +libusbmuxd-doc +libuuid +libuv +libva +libva-intel-driver +libvdpau +libvisio +libvisio-doc +libvorbis +libvorbis-dev +libvorbis-doc +libvpx +libvterm +libwebp +libwebp-doc +libwebpdemux +libwebpmux +libwpd +libwpd-doc +libwpg +libwpg-doc +libwps +libwps-doc +libx11 +libx11-dev +libx11-doc +libxapian +libxau +libxau-dev +libxau-doc +libxcb +libxcb-dev +libxcomposite +libxcomposite-doc +libxcursor +libxcursor-dev +libxcursor-doc +libxcvt +libxcvt-doc +libxdamage +libxdamage-dev +libxdmcp +libxdmcp-dev +libxdmcp-doc +libxext +libxext-dev +libxext-doc +libxfixes +libxfixes-dev +libxfixes-doc +libxfont2 +libxft +libxft-dev +libxft-doc +libxi +libxi-dev +libxi-doc +libxinerama +libxinerama-dev +libxinerama-doc +libxkbcommon +libxkbcommon-doc +libxkbcommon-x11 +libxkbfile +libxkbfile-doc +libxml2 +libxml2-doc +libxml2-utils +libxmu +libxmu-doc +libxpm +libxpm-doc +libxpresent +libxpresent-doc +libxrandr +libxrandr-dev +libxrandr-doc +libxrender +libxrender-dev +libxrender-doc +libxres +libxres-doc +libxscrnsaver +libxscrnsaver-doc +libxshmfence +libxshmfence-dev +libxslt +libxslt-doc +libxt +libxt-doc +libxtables +libxtst +libxtst-doc +libxv +libxv-doc +libxvmc +libxvmc-doc +libxxf86vm +libxxf86vm-dev +libxxf86vm-doc +libxxhash +libzbar +libzim +libzim-doc +libzip +libzip-doc +libzmf +libzmf-doc +libzmq +lilv-libs +links-graphics +links-graphics-doc +linux-firmware-i915 +linux-firmware-intel +linux-firmware-mediatek +linux-firmware-other +linux-firmware-rtl_bt +linux-headers +linux-lts +linux-pam +linux-pam-doc +live-media +live-media-utils +lld +lld-doc +lld-libs +lld18-libs +llvm18-libs +llvm19-libs +llvm19-linker-tools +logger +losetup +lsblk +lscpu +lua5.1 +lua5.1-doc +lua5.1-libs +lua5.1-lpeg +luajit +luajit-doc +lxc +lxc-doc +lxc-libs +lxc-openrc +lynx +lynx-doc +lynx-zsh-completion +lz4-libs +lzo +lzo-doc +m4 +m4-doc +maim +maim-doc +make +make-doc +man-pages +mandoc +mandoc-doc +mariadb-connector-c +mbedtls +mcookie +mdev-conf +mercurial +mercurial-doc +mercurial-pyc +mercurial-vim +mercurial-zsh-completion +mesa +mesa-dev +mesa-dri-gallium +mesa-egl +mesa-gbm +mesa-gl +mesa-glapi +mesa-gles +mesa-osmesa +mesa-rusticl +mesa-vulkan-intel +mesa-xatracker +mingw-w64-binutils +mingw-w64-crt +mingw-w64-gcc +mingw-w64-headers +mingw-w64-headers-doc +mingw-w64-winpthreads +mingw-w64-winpthreads-doc +miniupnpc +miniupnpc-doc +minizip +minizip-dev +mkfontscale +mkfontscale-doc +mkinitfs +mlt +mlt-doc +monero +mount +mpc1 +mpc1-doc +mpdecimal +mpdecimal-doc +mpfr4 +mpfr4-doc +mpg123-libs +mpv +mpv-doc +mpv-zsh-completion +msgpack-c +msttcorefonts-installer +mtdev +mtools +mtools-doc +mujs-libs +mumble +mumble-doc +mupdf-libs +murmur-doc +musl +musl-dbg +musl-dev +musl-fts +musl-obstack +musl-utils +mythes +ncdu +ncdu-doc +ncurses +ncurses-dev +ncurses-doc +ncurses-terminfo-base +neon +neon-doc +neovim +neovim-doc +nettle +newsraft +newsraft-doc +nghttp2-dev +nghttp2-libs +nodejs +nodejs-doc +notmuch-libs +npm +npm-doc +npth +nspr +nss +nsxiv +nsxiv-doc +numactl +numactl-doc +onetbb +onetbb-dev +onetbb-doc +onevpl-libs +oniguruma +openal-soft-dev +openal-soft-libs +openblas +openblas-doc +opencl +opencsg +openexr-libiex +openexr-libilmthread +openexr-libopenexr +openexr-libopenexrcore +openh264 +openjpeg +openrc +openrc-doc +openrc-zsh-completion +openscad +openscad-doc +openssh +openssh-client-common +openssh-client-default +openssh-keygen +openssh-server +openssh-server-common +openssh-server-common-openrc +openssh-sftp-server +openssl +openssl-dev +openssl-doc +opus +opus-dev +opus-doc +opusfile +opusfile-doc +orc +p11-kit +p11-kit-doc +pandoc-cli +pango +pango-doc +partx +patch +patch-doc +pciutils-libs +pcre +pcre-doc +pcre2 +pcre2-dev +pcre2-doc +pcsc-lite-libs +perl +perl-algorithm-diff +perl-algorithm-diff-doc +perl-class-method-modifiers +perl-class-method-modifiers-doc +perl-doc +perl-error +perl-error-doc +perl-file-homedir +perl-file-homedir-doc +perl-file-which +perl-file-which-doc +perl-git +perl-mime-charset +perl-mime-charset-doc +perl-moo +perl-moo-doc +perl-parallel-forkmanager +perl-parallel-forkmanager-doc +perl-regexp-common +perl-regexp-common-doc +perl-role-tiny +perl-role-tiny-doc +perl-sub-quote +perl-sub-quote-doc +perl-unicode-linebreak +perl-unicode-linebreak-doc +perl-yaml-tiny +perl-yaml-tiny-doc +picom +picom-doc +pinentry +pinentry-doc +pipewire-libs +pixman +pixman-dev +pkgconf +pkgconf-doc +poco +polkit-elogind-libs +polkit-qt6 +poppler +poppler-glib +poppler-utils +popt +popt-doc +portaudio +portaudio-dev +profanity +profanity-doc +projectm +projectm-pulseaudio-doc +protobuf-c +pugixml +pulseaudio-dev +purpose +py3-aiohappyeyeballs +py3-aiohappyeyeballs-pyc +py3-aiohttp +py3-aiohttp-pyc +py3-aiohttp-socks +py3-aiohttp-socks-pyc +py3-aiorpcx +py3-aiorpcx-pyc +py3-aiosignal +py3-aiosignal-pyc +py3-async-timeout +py3-async-timeout-pyc +py3-attrs +py3-attrs-pyc +py3-bitstring +py3-bitstring-pyc +py3-brotli +py3-brotli-pyc +py3-cairo +py3-cairo-pyc +py3-certifi +py3-certifi-pyc +py3-cffi +py3-cffi-pyc +py3-chardet +py3-chardet-pyc +py3-charset-normalizer +py3-charset-normalizer-pyc +py3-cparser +py3-cparser-pyc +py3-cryptography +py3-cryptography-pyc +py3-css-parser +py3-css-parser-pyc +py3-dbus +py3-dbus-pyc +py3-dnspython +py3-dnspython-pyc +py3-docopt +py3-docopt-pyc +py3-ecdsa +py3-ecdsa-pyc +py3-emoji +py3-emoji-pyc +py3-frozenlist +py3-frozenlist-pyc +py3-gobject3 +py3-gobject3-pyc +py3-greenlet +py3-greenlet-pyc +py3-idna +py3-idna-pyc +py3-idna-ssl +py3-idna-ssl-pyc +py3-importlib-metadata +py3-importlib-metadata-pyc +py3-jaraco.classes +py3-jaraco.classes-pyc +py3-jeepney +py3-jeepney-pyc +py3-jsonpatch +py3-jsonpatch-pyc +py3-jsonpointer +py3-jsonpointer-pyc +py3-keyring +py3-keyring-pyc +py3-more-itertools +py3-more-itertools-pyc +py3-multidict +py3-multidict-pyc +py3-mutagen +py3-mutagen-pyc +py3-nbxmpp +py3-nbxmpp-pyc +py3-omemo-dr +py3-omemo-dr-pyc +py3-openssl +py3-openssl-pyc +py3-packaging +py3-packaging-pyc +py3-parsing +py3-parsing-pyc +py3-pillow +py3-pillow-pyc +py3-pip +py3-pip-doc +py3-pip-pyc +py3-pip-zsh-completion +py3-precis-i18n +py3-precis-i18n-pyc +py3-protobuf +py3-protobuf-pyc +py3-pyclip +py3-pyclip-pyc +py3-pycryptodomex +py3-pypng +py3-pypng-pyc +py3-pyqt5-sip +py3-python-socks +py3-python-socks-pyc +py3-qrcode +py3-qrcode-doc +py3-qrcode-pyc +py3-qt5 +py3-qt5-pyc +py3-secretstorage +py3-secretstorage-pyc +py3-setuptools +py3-setuptools-pyc +py3-six +py3-six-pyc +py3-sqlalchemy +py3-sqlalchemy-pyc +py3-typing-extensions +py3-typing-extensions-pyc +py3-websockets +py3-websockets-pyc +py3-yarl +py3-yarl-pyc +py3-zipp +py3-zipp-pyc +pyc +python3 +python3-pyc +python3-pycache-pyc0 +qbittorrent +qbittorrent-cli +qbittorrent-doc +qbittorrent-nox-doc +qemu +qemu-audio-sdl +qemu-bridge-helper +qemu-doc +qemu-img +qemu-system-arm +qemu-system-x86_64 +qemu-ui-opengl +qemu-ui-sdl +qemu-x86_64 +qpdf-libs +qqc2-desktop-style +qscintilla +qt5-qtbase +qt5-qtbase-doc +qt5-qtbase-sqlite +qt5-qtbase-x11 +qt5-qtconnectivity +qt5-qtdeclarative +qt5-qtlocation +qt5-qtmultimedia +qt5-qtserialport +qt5-qtsvg +qt5-qtwayland +qt5-qtwebchannel +qt5-qtwebengine +qt5-qtwebsockets-libs +qt5-qtx11extras +qt6-qt5compat +qt6-qtbase +qt6-qtbase-doc +qt6-qtbase-x11 +qt6-qtdeclarative +qt6-qtmultimedia +qt6-qtmultimedia-ffmpeg +qt6-qtnetworkauth +qt6-qtshadertools +qt6-qtspeech +qt6-qtsvg +qt6-qtwayland +raptor2 +raptor2-doc +rasqal +rasqal-doc +rav1e-libs +raylib +raylib-dev +readline +readline-doc +redland +redland-doc +redshift +redshift-doc +remind +remind-doc +rhash-libs +ripgrep +ripgrep-doc +ripgrep-zsh-completion +rnnoise +roc-toolkit-libs +rsync +rsync-doc +rsync-openrc +rsync-zsh-completion +rubberband-libs +ruby +ruby-doc +ruby-erubi +ruby-libs +ruby-thor +ruby-xdg +runuser +sacc +sacc-doc +samurai +samurai-doc +sane +sane-doc +sane-udev +sbc +scanelf +scc +screenkey +screenkey-doc +screenkey-pyc +scrot +scrot-doc +scudo-malloc +sdl12-compat +sdl12-compat-dev +sdl2 +sdl2-dev +sdl2-doc +sdl2_image +sdl2_image-doc +sdl2_mixer +sdl2_mixer-dev +sdl2_mixer-doc +sdl2_net +sdl2_net-dev +sdl2_net-doc +sdl2_ttf +sdl2_ttf-dev +sdl2_ttf-doc +serd-libs +setarch +setpriv +setxkbmap +setxkbmap-doc +sfdisk +shaderc +shared-mime-info +shared-mime-info-doc +shellcheck +shellcheck-doc +simdjson +simdutf +skalibs-libs +slop +slop-doc +slop-libs +snappy +snappy-doc +sndio-libs +socat +socat-doc +solid-libs +sonnet +sonnet-doc +sord-libs +sound-theme-freedesktop +soundfont-timgm +soundtouch +sox +sox-doc +soxr +spandsp +speex +speex-doc +speexdsp +speexdsp-doc +spirv-llvm-translator-libs +spirv-tools +sqlite +sqlite-dev +sqlite-doc +sqlite-libs +sratom +ssl_client +syndication +syndication-doc +syslinux +talloc +talloc-doc +tar +tar-doc +tcc +tcc-dev +tcc-doc +tcc-libs +tcc-libs-static +tcpdump +tcpdump-doc +tdb-libs +tealdeer +tealdeer-zsh-completion +texlive +texlive-doc +texmf-dist +texmf-dist-doc +texmf-dist-latex +texmf-dist-latex-doc +the_silver_searcher +the_silver_searcher-doc +the_silver_searcher-zsh-completion +thunderbird +tiff +tiff-doc +tinyxml +tmux +tmux-doc +tmux-zsh-completion +tmuxinator +tmuxinator-zsh-completion +tor +tor-doc +tor-openrc +torsocks +torsocks-doc +tree-sitter +tree-sitter-c +tree-sitter-cpp +tree-sitter-lua +tree-sitter-make +tree-sitter-markdown +tree-sitter-markdown-doc +tslib +tslib-doc +twinkle +twinkle-doc +tzdata +uchardet-libs +udev-init-scripts +udev-init-scripts-openrc +ueberzug +ueberzug-pyc +umount +unbound-libs +unibilium +unibilium-doc +unixodbc +unixodbc-doc +unzip +unzip-doc +util-linux +util-linux-dev +util-linux-doc +util-linux-login +util-linux-login-doc +util-linux-misc +util-linux-openrc +util-macros +utmps-libs +uuidgen +v4l-utils-libs +vde2-libs +vidstab +vifm +vifm-doc +vifm-zsh-completion +vim-common +vim-doc +vo-aacenc +vo-amrwbenc +vulkan-loader +w3m +w3m-doc +w3m-image +wabt +wabt-doc +waydroid +waydroid-openrc +waydroid-pyc +wayland-dev +wayland-libs-client +wayland-libs-cursor +wayland-libs-egl +wayland-libs-server +webrtc-audio-processing-1 +wget +wget-doc +wine +wine-doc +wipefs +wpa_supplicant +wpa_supplicant-doc +wpa_supplicant-openrc +x264-libs +x265-libs +xauth +xauth-doc +xbacklight +xbacklight-doc +xbanish +xbanish-doc +xcb-proto +xcb-proto-pyc +xcb-util +xcb-util-cursor +xcb-util-dev +xcb-util-image +xcb-util-keysyms +xcb-util-renderutil +xcb-util-wm +xclip +xclip-doc +xdg-dbus-proxy +xdg-dbus-proxy-doc +xdg-utils +xdg-utils-doc +xdotool +xdotool-doc +xen-libs +xf86-input-libinput +xf86-input-libinput-doc +xf86-video-fbdev +xf86-video-fbdev-doc +xf86-video-intel +xf86-video-intel-doc +xhost +xhost-doc +xinit +xinit-doc +xinput +xinput-doc +xkbcomp +xkbcomp-doc +xkeyboard-config +xkeyboard-config-doc +xkill +xkill-doc +xmlsec +xmlsec-doc +xmlsec-nss +xmodmap +xmodmap-doc +xorg-server +xorg-server-common +xorg-server-doc +xorgproto +xprop +xrandr +xrandr-doc +xrdb +xrdb-doc +xset +xset-doc +xsetroot +xsetroot-doc +xtrans +xvidcore +xwallpaper +xwallpaper-doc +xwallpaper-zsh-completion +xxd +xz +xz-dev +xz-doc +xz-libs +yajl +yaml +yasm +yasm-doc +yt-dlp +yt-dlp-core +yt-dlp-core-pyc +yt-dlp-zsh-completion +ytfzf +ytfzf-doc +zathura +zathura-doc +zathura-pdf-mupdf +zathura-zsh-completion +zeromq-dev +zig +zig-doc +zim-tools +zim-tools-doc +zimg +zimg-doc +zip +zip-doc +zix-libs +zlib +zlib-dev +zlib-doc +zsh +zsh-autosuggestions +zsh-doc +zsh-pcre +zsh-syntax-highlighting +zsh-syntax-highlighting-doc +zstd +zstd-dev +zstd-doc +zstd-libs +zxing-cpp +zzz +zzz-doc diff --git a/apkworld.txt b/apkworld.txt new file mode 100644 index 0000000..4007a97 --- /dev/null +++ b/apkworld.txt @@ -0,0 +1,258 @@ +7zip +abook +acpid +aerc +alpine +alpine-base +alsa-lib-dev +alsa-tools +alsa-utils +alsaconf +apk-tools-zsh-completion +apko-zsh-completion +assimp +assimp-dev +assimp-libs +aubio +binutils +bison +boost1.84-dev +build-base +busybox-mdev-openrc +cairo +cairo-dev +cdrkit +chafa +clang +clang-dev +clang19-extra-tools +clisp +cloc +cmake +cryptsetup +ctags +cups +cups-pdf +cups-pk-helper +curl +curl-dev +czmq-dev +dbus +dbus-x11 +debootstrap +deutex +dmenu +dmidecode +doas +docs +doxygen +dunst +e2fsprogs +electrum +embree +embree-dev +embree3-dev +epson-inkjet-printer-escpr +espeak +eudev +farbfeld +farstream +ffmpeg +ffmpegthumbnailer +ffplay +firefox +fluidsynth +font-dejavu +font-noto +font-noto-emoji +font-terminus-nerd +font-twemoji +fossil +fzf +g++ +gajim +gcc +gcc-arm-none-eabi +gcompat +gcr +gdb +ghostscript +giflib-dev +gifsicle +gimp +git +go +gource +gperftools +groff +gst-libav +gst-plugins-base +gst-plugins-ugly +gst-vaapi +gstreamer +gstreamermm +htop +icu +icu-dev +imagemagick +imlib2 +imlib2-dev +inetutils-telnet +iw +jq +kdenlive +kiwix-desktop +kiwix-tools +ledger +libcurl +libdecor-dev +libevdev +libevdev-dev +libexif-dev +libinput-dev +libjpeg +libjpeg-turbo-dev +libreoffice +libreoffice-lang-en_us +libx11-dev +libxcb-dev +libxcursor-dev +libxft-dev +libxi-dev +libxinerama-dev +libxrandr-dev +libzmq +links +linux-firmware-i915 +linux-firmware-intel +linux-firmware-mediatek +linux-firmware-other +linux-firmware-rtl_bt +linux-lts +live-media-utils +lld +lua +lynx +maim +make +mandoc +mercurial +mesa-vulkan-intel +mingw-w64-gcc +minizip-dev +monero +mount +mpv +msttcorefonts-installer +mumble +musl-dbg +musl-dev +musl-utils +ncdu +ncurses-dev +neovim +newsraft +ninja +npm +nsxiv +onetbb-dev +openal-soft-dev +openscad +openssh +openssl +pandoc +picom +poppler +profanity +projectm +py3-pip +qbittorrent +qbittorrent-cli +qemu-audio-sdl +qemu-img +qemu-system-arm +qemu-system-x86_64 +qemu-ui-sdl +qemu-x86_64 +raylib +raylib-dev +redshift +remind +ripgrep +rsync +sacc +scc +screenkey +scrot +sdl12-compat +sdl12-compat-dev +sdl2-dev +sdl2_mixer +sdl2_mixer-dev +sdl2_net-dev +sdl2_ttf-dev +setxkbmap +shellcheck +slop +socat +sqlite +syslinux +tcc +tcc-dev +tcc-libs +tcc-libs-static +tcpdump +tealdeer +texlive +the_silver_searcher +thunderbird +tmux +tmuxinator +tor +torsocks +tree-sitter-c +tree-sitter-cpp +tree-sitter-lua +tree-sitter-make +tree-sitter-markdown +twinkle +ueberzug +util-linux-login +vifm +vim +w3m +wabt +waydroid +wget +wine +wpa_supplicant +xbacklight +xbanish +xclip +xdg-dbus-proxy +xdg-utils +xdotool +xf86-input-libinput +xf86-video-fbdev +xf86-video-intel +xhost +xinit +xinput +xkill +xorg-server +xrandr +xsetroot +xwallpaper +yasm +yt-dlp +ytfzf +zathura +zathura-pdf-mupdf +zig +zim-tools +zip +zsh +zsh-autosuggestions +zsh-syntax-highlighting +zstd-dev +zzz diff --git a/badwolf/.ninja_deps b/badwolf/.ninja_deps new file mode 100644 index 0000000000000000000000000000000000000000..e5675ec1d586af8d236baf921ad7835de2df96ac GIT binary patch literal 16 XcmY#Z$ji*jN=!*DDCS~eU|;|MDX9bw literal 0 HcmV?d00001 diff --git a/badwolf/.ninja_log b/badwolf/.ninja_log new file mode 100755 index 0000000..6fd9260 --- /dev/null +++ b/badwolf/.ninja_log @@ -0,0 +1,63 @@ +# ninja log v5 +1 65 1713286030825038925 po/messages.pot 566c6a1444ecc613 +2 107 1713286030866038926 fmt.o 532a6341c0e8e918 +3 388 1713286031147038932 uri.o 2458d857fa9f209f +388 407 1713286031167038933 po/fr.po 1dd8e44731f319df +407 426 1713286031186038933 locale/fr/LC_MESSAGES/Badwolf.mo ce2ac1d444874d5a +426 448 1713286031208038934 po/pt_BR.po 3802b38cf0257900 +448 474 1713286031231038934 locale/pt_BR/LC_MESSAGES/Badwolf.mo ee2f19b7539c4b47 +474 496 1713286031256038935 po/tr.po 9573cbbef9125bdf +496 518 1713286031275038936 locale/tr/LC_MESSAGES/Badwolf.mo 4842e28ac1b84bf7 +518 541 1713286031301038936 po/de.po 2239741ba3ea8936 +541 565 1713286031325038937 locale/de/LC_MESSAGES/Badwolf.mo c4ef72af4db428d6 +565 586 1713286031346038937 po/vi.po 3a029179310ff9ab +586 608 1713286031368038938 locale/vi/LC_MESSAGES/Badwolf.mo 537283c15a391a8e +2 1398 1713286032153038956 userscripts.o 1ca9348aa797fd33 +3 1764 1713286032524038965 keybindings.o 82f0f39378e01e4f +65 1815 1713286032575038966 downloads.o 8e1c1ba285687f86 +1 1924 1713286032684038969 bookmarks.o 3414b3827617156b +107 2145 1713286032904038974 badwolf.o a671890a4d320b20 +2145 2404 1713286033160038980 badwolf 4be0213d418c55b5 +1 14 1713286195270042833 po/messages.pot 566c6a1444ecc613 +14 23 1713286195279042833 po/fr.po 1dd8e44731f319df +15 24 1713286195280042833 po/de.po 2239741ba3ea8936 +14 25 1713286195282042833 po/pt_BR.po 3802b38cf0257900 +14 31 1713286195287042834 po/tr.po 9573cbbef9125bdf +16 32 1713286195287042834 po/vi.po 3a029179310ff9ab +23 34 1713286195288042834 locale/fr/LC_MESSAGES/Badwolf.mo ce2ac1d444874d5a +24 34 1713286195289042834 locale/de/LC_MESSAGES/Badwolf.mo c4ef72af4db428d6 +26 40 1713286195295042834 locale/pt_BR/LC_MESSAGES/Badwolf.mo ee2f19b7539c4b47 +32 41 1713286195297042834 locale/vi/LC_MESSAGES/Badwolf.mo 537283c15a391a8e +31 42 1713286195298042834 locale/tr/LC_MESSAGES/Badwolf.mo 4842e28ac1b84bf7 +2 686 1713286195942042849 keybindings.o 82f0f39378e01e4f +686 913 1713286196165042854 badwolf 4be0213d418c55b5 +1 24 1713287455318072780 po/messages.pot 566c6a1444ecc613 +24 45 1713287455339072780 po/fr.po 1dd8e44731f319df +27 47 1713287455339072780 po/pt_BR.po 3802b38cf0257900 +45 64 1713287455358072781 locale/fr/LC_MESSAGES/Badwolf.mo ce2ac1d444874d5a +47 69 1713287455363072781 locale/pt_BR/LC_MESSAGES/Badwolf.mo ee2f19b7539c4b47 +64 88 1713287455382072782 po/tr.po 9573cbbef9125bdf +69 89 1713287455382072782 po/de.po 2239741ba3ea8936 +88 108 1713287455397072782 locale/tr/LC_MESSAGES/Badwolf.mo 4842e28ac1b84bf7 +89 115 1713287455403072782 locale/de/LC_MESSAGES/Badwolf.mo c4ef72af4db428d6 +108 128 1713287455422072782 po/vi.po 3a029179310ff9ab +128 153 1713287455443072783 locale/vi/LC_MESSAGES/Badwolf.mo 537283c15a391a8e +1 1167 1713287456460072807 bookmarks.o 3414b3827617156b +2 1288 1713287456581072810 userscripts.o 1ca9348aa797fd33 +2 1344 1713287456638072811 downloads.o 8e1c1ba285687f86 +3 1663 1713287456956072819 badwolf.o a671890a4d320b20 +1663 1893 1713287457184072824 badwolf 4be0213d418c55b5 +77 1033 1713498091509103351 po/messages.pot 566c6a1444ecc613 +1034 1217 1713498091693103347 po/de.po 2239741ba3ea8936 +1035 1217 1713498091693103347 po/vi.po 3a029179310ff9ab +1034 1217 1713498091693103347 po/fr.po 1dd8e44731f319df +1034 1218 1713498091694103347 po/pt_BR.po 3802b38cf0257900 +1034 1218 1713498091693103347 po/tr.po 9573cbbef9125bdf +1217 1277 1713498091753103346 locale/vi/LC_MESSAGES/Badwolf.mo 537283c15a391a8e +1218 1277 1713498091753103346 locale/pt_BR/LC_MESSAGES/Badwolf.mo ee2f19b7539c4b47 +1218 1277 1713498091753103346 locale/tr/LC_MESSAGES/Badwolf.mo 4842e28ac1b84bf7 +1217 1279 1713498091755103346 locale/de/LC_MESSAGES/Badwolf.mo c4ef72af4db428d6 +1217 1279 1713498091756103346 locale/fr/LC_MESSAGES/Badwolf.mo ce2ac1d444874d5a +78 7364 1713498097838103221 downloads.o 8e1c1ba285687f86 +7364 8209 1713498098681103204 badwolf 4be0213d418c55b5 +0 0 1733606610253595009 fmt.o 532a6341c0e8e918 diff --git a/badwolf/AUTHORS b/badwolf/AUTHORS new file mode 100755 index 0000000..f693913 --- /dev/null +++ b/badwolf/AUTHORS @@ -0,0 +1,9 @@ +Ben K +Haelwenn (lanodan) Monnier +Jean-Yves Monnier +Ngô Ngọc Đức Huy +nXecure +Oğuz Ersen +Pedro Lucas Porcellis +Stacy Harper +striker.sh diff --git a/badwolf/COPYING b/badwolf/COPYING new file mode 100755 index 0000000..ce92c4e --- /dev/null +++ b/badwolf/COPYING @@ -0,0 +1,26 @@ +Copyright (c) 2019-2022, Badwolf Authors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/badwolf/KnowledgeBase.md b/badwolf/KnowledgeBase.md new file mode 100755 index 0000000..6b307dd --- /dev/null +++ b/badwolf/KnowledgeBase.md @@ -0,0 +1,35 @@ + + +- Similar WebKitGTK+ browser: https://www.uninformativ.de/git/lariza/ +- WebKit2 Extensions Tutorial: https://blogs.igalia.com/carlosgc/2013/09/10/webkit2gtk-web-process-extensions/ +- https://trac.torproject.org/projects/tor/wiki/doc/ImportantGoogleChromeBugs / https://trac.torproject.org/projects/tor/ticket/1925 +- https://webkit.org/blog/3476/content-blockers-first-look/ + +# GObject Reference counting +- `GOBJECT_DEBUG=instance-count GTK_DEBUG=interactive %command%` +- Switch to the Statistics tab +- Press record (top-left) +- Do a bunch of actions, specially reversible ones +- Stop recording + +Tiling window manager tip for WebKitGTK: Put the application and it's debugger on floating, leaving WebKitWebProcess ones in the back + +# Bookmark formats +The different plain-text formats used by web browsers found in the wild, done +in Augmented Backus–Naur Form (ABNF). + +url = *CHAR +title = *CHAR + +## uzbl +bookmark = URL TAB title [TAB tags] +tags = *(*CHAR SP) + +Documenter comment: How does it manages when the separator (TAB here) is +present in the title? + +## qutebrowser +bookmark = URL SP title diff --git a/badwolf/LICENSES/BSD-3-Clause.txt b/badwolf/LICENSES/BSD-3-Clause.txt new file mode 100755 index 0000000..ea890af --- /dev/null +++ b/badwolf/LICENSES/BSD-3-Clause.txt @@ -0,0 +1,11 @@ +Copyright (c) . + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/badwolf/LICENSES/CC-BY-SA-4.0.txt b/badwolf/LICENSES/CC-BY-SA-4.0.txt new file mode 100755 index 0000000..835a683 --- /dev/null +++ b/badwolf/LICENSES/CC-BY-SA-4.0.txt @@ -0,0 +1,170 @@ +Creative Commons Attribution-ShareAlike 4.0 International + + Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. + +Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution-ShareAlike 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. + + C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. + + 1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 – Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/badwolf/README.md b/badwolf/README.md new file mode 100755 index 0000000..e58aa0d --- /dev/null +++ b/badwolf/README.md @@ -0,0 +1,90 @@ +# BadWolf +``` +SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +SPDX-License-Identifier: BSD-3-Clause +``` + +Minimalist and privacy-oriented WebKitGTK+ browser. + +Homepage: + +The name is a reference to BBC's Doctor Who TV series, I took it simply because I wanted to have a specie in the name, like some other web browsers do, but doesn't go into the “gentle” zone. + +## Differences +Comparing from other small WebKit browsers for unixes found in the wild: + +- Independent of environment, should just work if GTK and WebKitGTK does +- Storing data should be: + - explicit and optional (i.e. Applying preferences doesn't imply Saving to disk) + - not queryabe by WebKit (so the web can't use it) + - done in a standard format (like XBEL for bookmarks) +- Static UI, no element should be added at runtime, this is to avoid potential tracking via viewport changes +- Small codebase, should be possible to read and understand it completely over an afternoon. +- Does not use modal editing (from vi) as that was designed for editing, not browsing +- UTF-8 encoding by default + +Motivation from other clients + +## Contributing +### Translations +You need to have gettext installed. If you want a GUI, poedit exists and Weblate is a good web platform that I might consider hosting at some point. + +- Syncing POT file with the source code: ``ninja po/messages.pot`` +- Syncing PO file with the POT file: ``ninja po/de.po`` +- Initialising a new PO file (example for German, `de_DE`): ``msginit -l de_DE -i po/messages.pot -o po/de.po`` + +## Contacts / Discussions +- IRC: `#badwolf-browser` on [GeekNode](https://www.geeknode.org/) +- Matrix (bridge): [#badwolf-browser:matrix.fdn.fr](https://matrix.to/#/#badwolf-browser:matrix.fdn.fr) + +## Repositories +### git +- Main: , +- Mirror: , this one can also be used if you prefer tickets/PRs over emails + +### release assets +- Main: +- Mirror: + +- `*.tar.*` files are tarballs archives to be extracted with a program like `tar(1)`, GNU tar and LibArchive bsdtar are known to work. +- `*.sign` files are minisign (OpenBSD `signify(1)` compatible) signatures, they key used for it can be found at as well as other places (feel free to ping me to get it) + +## Manual Installation +### Dependencies +- POSIX-compatible Shell (i.e. mrsh, dash, lksh) +- [ninja](https://ninja-build.org/) or [samurai](https://github.com/michaelforney/samurai) +- A pkg-config implementation (pkgconf is recommended) +- C11 Compiler (such as clang or gcc) +- [WebKitGTK](https://webkitgtk.org/), only the latest stable(2.32.0+) is supported +- [libxml-2.0](http://www.xmlsoft.org/), no known version limitation +- (optional, translating) [po4a](https://po4a.org/) to modify manpage translations +- (optional, translating) gettext implementation (such as GNU Gettext) +- (optional, translating) ed(1), the standard editor +- (optional, lint) [mandoc](https://mdocml.bsd.lv/) (the command) for linting the manpage +- (optional, lint) [shellcheck](https://www.shellcheck.net/) for linting the `./configure` script +- (optional, lint) [flawfinder](https://www.dwheeler.com/flawfinder/) for examining C source code for flaws +- (optional, lint) [reuse](https://reuse.software/) for checking REUSE compliance + +Note: Packagers can safely ignore the lint dependencies. + +### Compiling +``` +./configure && ninja +``` + +Note: `configure` is a simple shell script (so not autotools) which supports variables like `PREFIX`. + +### Installing +``` +ninja install +# DESTDIR is supported +``` + +Debian users will probably want to use `checkinstall` instead. + +An example AppArmor profile is provided at `usr.bin.badwolf`, please do some long runtime checks before shipping it or a modified version, help can be provided but with no support. + +If you modify the icons, you'll need `inkscape` (command line only), to regenerate the bitmap versions. It isn't needed for a normal installation as the bitmap icons are bundled. + +## Notes +Most of the privacy/security stuff will be done with patches against WebKit as quite a lot isn't into [WebKitSettings](https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html) and with generic WebKit extensions that should be reusable. diff --git a/badwolf/badwolf.1 b/badwolf/badwolf.1 new file mode 100755 index 0000000..161f03e --- /dev/null +++ b/badwolf/badwolf.1 @@ -0,0 +1,167 @@ +.\" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +.\" Copyright © 2019-2023 Badwolf Authors +.\" SPDX-License-Identifier: BSD-3-Clause +.Dd 2022-07-13 +.Dt BADWOLF 1 +.Os +.Sh NAME +.Nm badwolf +.Nd minimalist and privacy-oriented web browser based on WebKitGTK +.Sh SYNOPSIS +.Nm +.Op Ar webkit/gtk options +.Op Ar URLs or paths +.Sh DESCRIPTION +.Nm +is a minimalist browser that cares about privacy, it is based on WebKitGTK and thus also accepts WebKitGTK (and dependencies) flags and environment variables, unfortunately there doesn't seems to be manpages for theses. +.Pp +Runtime configuration specific to +.Nm +will probably get added at a later release. +.Sh KEYBINDINGS +The following section lists the keybinding by their action, each item is described by the widget the focus is on or +.Aq any +if it works for the whole window, followed by the keybind it grabs. +.Bl -tag -width Ds +.It webview Ctrl-Scroll +Zooms the webpage in/out. +.It webview Ctrl-0 +Resets webpage zoom to 100%. +.It webview Ctrl-MousePrimary, webview MouseMiddle +Opens the selected link in a new tab. (Note: JS still overrides the event) +.It any Ctrl-t +Creates a new tab (in a new session, similar as pressing the button) +.It browser Ctrl-F4, browser Alt-d +Closes the current tab +.It browser Ctrl-f +Focuses on the search entry +.It browser Ctrl-l +Focuses on the location(URL) entry +.It browser Ctrl-Shift-r / Ctrl-r, browser F5 +Reloads the content in the current tab (with/without clearing cache) +.It browser Escape +Stops loading the content in the current tab +.It browser F7 +Toggles caret browsing. +.It browser F12 +Opens the web inspector. +.It browser Ctrl-[ / Ctrl-] +Go back/forward in current tab's history +.It browser Ctrl-p +Print the current page. (spawns a dialog) +.It any Alt-Left / Alt-Right +Go to the previous/next tab +.It any F1 +Shows the about dialog +.It any Alt-n +Where n is any numeric-row key. +Go to the n-th tab, 0 goes to the last one. +.El +.Ss DEFAULT ONES +Here is a incomplete list of the default Webkit/GTK keybindings: +.Bl -tag -width Ds +.It any Ctrl-PageUp / Ctrl-PageDown +Go to the previous/next tab +.It search Ctrl-g / Ctrl-Shift-g +When the search box is focused it goes to the Next/Previous search term. +.It search Escape +Cancels current search +.It textarea Ctrl-; +Insert Emoji +.El +.Sh ENVIRONMENT +.Bl -tag -width Ds +.It Ev BADWOLF_L10N +A colon-separated list in the form lang_COUNTRY where lang is in ISO-639 and COUNTRY in ISO-3166. +For example +.Ic BADWOLF_L10N="en_GB:fr_FR:de_DE" . +When this variable isn't set, spelling isn't activated. +A more generic variable name is also intended to be used in the future. +.Pp +To get the list of supported dictionaries execute +.Ic enchant-lsmod-2 -list-dicts +or before enchant 2.0: +.Ic enchant-lsmod -list-dicts +.El +.Sh FILES +The following paths are using +.Xr sh 1 +syntax to correctly support XDG Base Directory Specification, you can use the +.Xr echo 1 +command to check where it is on your system. +.Pp +.Bl -tag -width Ds -compact +.It Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json +WebKit-specific content-filter file, this allows to block unwanted content (ads, nagware, ...). +For some introductory information about the format see: +.Lk https://webkit.org/blog/3476/content-blockers-first-look/ +.Lk https://webkit.org/blog/4062/targeting-domains-with-content-blockers/ +.Lk https://developer.apple.com/documentation/safariservices/creating_a_content_blocker +.Pp +For a converter using AblockPlus-style filters, try: +.Lk https://gitlab.com/eyeo/adblockplus/abp2blocklist +.Pp +For a ready-to-use file (that you should update periodically), try: +.Lk https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json +.It Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters +This is where the compiled filters are stored, the file(s) in it are automatically generated and so shouldn't be edited. +Documented here only for sandboxing / access-control purposes. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel +XBEL (XML Bookmark Exchange Language) file, known to be currently supported by: +.Xr elinks 1 , +.Xr konqueror 1 , +.Xr kbookmarkeditor 1 . +.Pp +You can do a symbolic link from their path, but you might prefer to use +.Lk https://www.w3.org/TR/xinclude/ XInclude +which is natively supported by +.Nm +to automatically merge multiple XBEL files. +.Pp +Also the bookmark entries aren't re-sorted, so you might want to put your most frequently used ones at the top of the file. +.Pp +For more information about this format see: +.Lk http://pyxml.sourceforge.net/topics/xbel/ +.Pp +For an example XBEL file see: +.Lk https://hacktivis.me/bookmarks.xbel +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/ +Directory containing the +.Lk https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebExtension.html WebKitWebExtensions +to be loaded into +.Nm . Note: They aren't the JavaScript-based Web-Extensions supported by Firefox or Chrome, but native code in shared objects using the WebKitGTK API. +.Pp +Examples of useful extensions may be found at: +.Lk https://hacktivis.me/git/badwolf-extensions +.It Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css +CSS files (respectively system and user-level) for styling +.Nm +interface. +See +.Lk https://docs.gtk.org/gtk3/css-properties.html +for the properties being available. +.Pp +For testing your styles I would recommend using the +.Ev GTK_DEBUG=interactive +environment variable on launching +.Nm +and going to the CSS tab. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/ +Directory containing JS userscripts (ending in +.Ic .js ) +ran at the start of page loads, +nesting down into iframes, useful to override website behaviors or add +missing features to websites. +.Pp +Please note that for now unlike GreaseMonkey-style userscripts, they are +always run, regardless of the hostname / URLs. +.El +.Sh AUTHORS +.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me +.Sh BUGS +You can submit contributions or tickets to +.Lk https://sr.ht/~lanodan/badwolf/ +with +.Xr git-send-email 1 +for patches. diff --git a/badwolf/badwolf.c b/badwolf/badwolf.c new file mode 100755 index 0000000..5101109 --- /dev/null +++ b/badwolf/badwolf.c @@ -0,0 +1,1179 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "badwolf.h" + +#include "bookmarks.h" +#include "config.h" +#include "downloads.h" +#include "fmt.h" +#include "keybindings.h" +#include "uri.h" +#include "userscripts.h" + +#include +#include /* _() and other internationalization/localization helpers */ +#include /* soup* */ +#include /* LC_* */ +#include /* perror(), fprintf(), snprintf() */ +#include /* malloc() */ +#include /* access() */ + +const gchar *homepage = "https://vilyaem.xyz"; +const gchar *version = VERSION; + +static gchar *web_extensions_directory; +static uint64_t context_id_counter = 0; +GtkTreeModel *bookmarks_completion_model; + +static gboolean WebViewCb_close(WebKitWebView *webView, gpointer user_data); +static gboolean WebViewCb_web_process_terminated(WebKitWebView *webView, + WebKitWebProcessTerminationReason reason, + gpointer user_data); +static gboolean +WebViewCb_notify__uri(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data); +static gboolean +WebViewCb_notify__title(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data); +static gboolean +WebViewCb_notify__is__playing__audio(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data); +static gboolean WebViewCb_notify__estimated_load_progress(WebKitWebView *webView, + GParamSpec *pspec, + gpointer user_data); +static gboolean WebViewCb_mouse_target_changed(WebKitWebView *webView, + WebKitHitTestResult *hit, + guint modifiers, + gpointer user_data); +static WebKitWebView *WebViewCb_create(WebKitWebView *related_web_view, + WebKitNavigationAction *navigation_action, + gpointer user_data); +static gboolean WebViewCb_permission_request(WebKitWebView *web_view, + WebKitPermissionRequest *request, + gpointer user_data); +static gboolean WebViewCb_decide_policy(WebKitWebView *web_view, + WebKitPolicyDecision *decision, + WebKitPolicyDecisionType decision_type, + gpointer user_data); +static void +WebViewCb_load_changed(WebKitWebView *webView, WebKitLoadEvent load_event, gpointer user_data); +static void web_contextCb_download_started(WebKitWebContext *web_context, + WebKitDownload *download, + gpointer user_data); +static gboolean locationCb_activate(GtkEntry *location, gpointer user_data); +static gboolean javascriptCb_toggled(GtkButton *javascript, gpointer user_data); +static gboolean auto_load_imagesCb_toggled(GtkButton *auto_load_images, gpointer user_data); +static void backCb_clicked(GtkButton *back, gpointer user_data); +static void forwardCb_clicked(GtkButton *forward, gpointer user_data); +static void printCb_clicked(GtkButton *forward, gpointer user_data); +static gboolean SearchEntryCb_next__match(GtkSearchEntry *search, gpointer user_data); +static gboolean SearchEntryCb_previous__match(GtkSearchEntry *search, gpointer user_data); +static gboolean SearchEntryCb_search__changed(GtkSearchEntry *search, gpointer user_data); +static gboolean SearchEntryCb_stop__search(GtkSearchEntry *search, gpointer user_data); +static void new_tabCb_clicked(GtkButton *new_tab, gpointer user_data); +static void closeCb_clicked(GtkButton *close, gpointer user_data); +static void +notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data); +void content_managerCb_ready(GObject *store, GAsyncResult *result, gpointer user_data); + +static gboolean +WebViewCb_close(WebKitWebView *UNUSED(webView), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + gtk_widget_destroy(browser->box); + + free(browser); + + return TRUE; +} + +static gboolean +WebViewCb_web_process_terminated(WebKitWebView *UNUSED(webView), + WebKitWebProcessTerminationReason reason, + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + switch(reason) + { + case WEBKIT_WEB_PROCESS_CRASHED: + fprintf(stderr, "%s", _("the web process crashed.\n")); + webView_tab_label_change(browser, _("Crashed")); + break; + case WEBKIT_WEB_PROCESS_EXCEEDED_MEMORY_LIMIT: + fprintf(stderr, "%s", _("the web process exceeded the memory limit.\n")); + webView_tab_label_change(browser, _("Out of Memory")); + break; + default: + fprintf(stderr, "%s", _("the web process terminated for an unknown reason.\n")); + webView_tab_label_change(browser, _("Unknown Crash")); + } + + return FALSE; +} + +static gboolean +WebViewCb_notify__uri(WebKitWebView *UNUSED(webView), GParamSpec *UNUSED(pspec), gpointer user_data) +{ + const gchar *location_uri; + struct Client *browser = (struct Client *)user_data; + + location_uri = webkit_web_view_get_uri(browser->webView); + printf("location_uri: <%s>\n", location_uri); + + // Don't set if location_uri is NULL / empty, latter happens on WebProcess termination + if(location_uri == NULL || location_uri[0] == '\0') + { + return TRUE; + } + + gtk_entry_set_text(GTK_ENTRY(browser->location), location_uri); + + if(webkit_uri_for_display(location_uri) != location_uri) + gtk_widget_set_tooltip_text(browser->location, webkit_uri_for_display(location_uri)); + else + gtk_widget_set_has_tooltip(browser->location, false); + + return TRUE; +} + +GtkWidget * +badwolf_new_tab_box(const gchar *title, struct Client *browser) +{ + /* flawfinder: ignore. bound checks are done */ + char context_id_str[BADWOLF_CTX_SIZ] = {0, 0, 0, 0, 0, 0, 0}; + + fmt_context_id(browser->context_id, context_id_str); + + GtkWidget *tab_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_name(tab_box, "browser__tabbox"); + + GtkWidget *close = + gtk_button_new_from_icon_name("window-close-symbolic", GTK_ICON_SIZE_LARGE_TOOLBAR); + gtk_widget_set_name(close, "browser__tabbox__close"); + GtkWidget *label = gtk_label_new(title); + gtk_widget_set_name(label, "browser__tabbox__label"); + GtkWidget *label_event_box = gtk_event_box_new(); + gtk_container_add(GTK_CONTAINER(label_event_box), label); + GtkWidget *context_label = gtk_label_new(context_id_str); + gtk_widget_set_name(context_label, "browser__tabbox__context_label"); + GtkWidget *context_label_event_box = gtk_event_box_new(); + gtk_container_add(GTK_CONTAINER(context_label_event_box), context_label); + GtkWidget *playing = + gtk_image_new_from_icon_name("audio-volume-high-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_widget_set_name(playing, "browser__tabbox__playing"); + GtkWidget *playing_event_box = gtk_event_box_new(); + gtk_container_add(GTK_CONTAINER(playing_event_box), playing); + +#ifdef BADWOLF_TAB_BOX_WIDTH + gtk_widget_set_size_request(label, BADWOLF_TAB_BOX_WIDTH, -1); +#endif +#ifdef BADWOLF_TAB_LABEL_CHARWIDTH + gtk_label_set_width_chars(GTK_LABEL(label), BADWOLF_TAB_LABEL_CHARWIDTH); +#endif + gtk_widget_set_hexpand(tab_box, BADWOLF_TAB_HEXPAND); + + gtk_label_set_ellipsize(GTK_LABEL(label), BADWOLF_TAB_LABEL_ELLIPSIZE); + gtk_label_set_single_line_mode(GTK_LABEL(label), TRUE); + gtk_label_set_single_line_mode(GTK_LABEL(context_label), TRUE); + + gtk_box_pack_start(GTK_BOX(tab_box), context_label_event_box, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(tab_box), playing_event_box, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(tab_box), label_event_box, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(tab_box), close, FALSE, FALSE, 0); + + gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE); + + g_signal_connect(close, "clicked", G_CALLBACK(closeCb_clicked), browser); + + gtk_widget_set_tooltip_text(tab_box, title); + + gtk_widget_show_all(tab_box); + gtk_widget_set_visible(playing, webkit_web_view_is_playing_audio(browser->webView)); + gtk_widget_set_events(label, GDK_BUTTON_RELEASE_MASK); + g_signal_connect( + tab_box, "button-release-event", G_CALLBACK(tab_boxCb_button_release_event), browser); + + return tab_box; +} + +static gboolean +WebViewCb_notify__title(WebKitWebView *UNUSED(webView), + GParamSpec *UNUSED(pspec), + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + // Don't set if title is NULL / empty, latter happens on WebProcess crash + const char *title = webkit_web_view_get_title(browser->webView); + printf("title: <%s>\n", title); + if(title == NULL || title[0] == '\0') + { + return TRUE; + } + + webView_tab_label_change(browser, NULL); + + return TRUE; +} + +static gboolean +WebViewCb_notify__is__playing__audio(WebKitWebView *UNUSED(webView), + GParamSpec *UNUSED(pspec), + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + webView_tab_label_change(browser, NULL); + + return TRUE; +} + +void +webView_tab_label_change(struct Client *browser, const gchar *title) +{ + GtkWidget *notebook = browser->window->notebook; + +#define title_IS_EMPTY title == NULL || title[0] == '\0' + + if(title_IS_EMPTY) title = webkit_web_view_get_title(browser->webView); + if(title_IS_EMPTY) title = webkit_web_view_get_uri(browser->webView); + if(title_IS_EMPTY) title = _("Empty Title"); + + gtk_notebook_set_tab_label( + GTK_NOTEBOOK(notebook), browser->box, badwolf_new_tab_box(title, browser)); + gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(notebook), browser->box, title); + + // Set the window title if the title change was on the current tab + if(gtk_notebook_page_num(GTK_NOTEBOOK(notebook), browser->box) == + gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook))) + gtk_window_set_title(GTK_WINDOW(browser->window->main_window), title); +} + +static gboolean +WebViewCb_notify__estimated_load_progress(WebKitWebView *UNUSED(webView), + GParamSpec *UNUSED(pspec), + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + gdouble progress; + + progress = webkit_web_view_get_estimated_load_progress(browser->webView); + + if(progress >= 1) progress = 0; + + gtk_entry_set_progress_fraction(GTK_ENTRY(browser->location), progress); + + return TRUE; +} + +static gboolean +WebViewCb_mouse_target_changed(WebKitWebView *UNUSED(webView), + WebKitHitTestResult *hit, + guint UNUSED(modifiers), + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + if(webkit_hit_test_result_context_is_link(hit)) + { + const gchar *link_uri = webkit_hit_test_result_get_link_uri(hit); + + gtk_label_set_text(GTK_LABEL(browser->statuslabel), webkit_uri_for_display(link_uri)); + } + else + gtk_label_set_text(GTK_LABEL(browser->statuslabel), NULL); + + return FALSE; +} + +static gboolean +WebViewCb_scroll_event(GtkWidget *UNUSED(widget), GdkEvent *event, gpointer data) +{ + struct Client *browser = (struct Client *)data; + gdouble delta_x, delta_y; + gdouble zoom; + + if(((GdkEventScroll *)event)->state & GDK_CONTROL_MASK) + { + gdk_event_get_scroll_deltas(event, &delta_x, &delta_y); + zoom = webkit_web_view_get_zoom_level(WEBKIT_WEB_VIEW(browser->webView)); + zoom -= delta_y * 0.1; + webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(browser->webView), zoom); + return TRUE; + } + + return FALSE; +} + +static WebKitWebView * +WebViewCb_create(WebKitWebView *related_web_view, + WebKitNavigationAction *UNUSED(navigation_action), + gpointer user_data) +{ + struct Client *old_browser = (struct Client *)user_data; + struct Client *browser = NULL; + + // shouldn't be needed but better be safe + old_browser->webView = related_web_view; + + browser = new_browser(old_browser->window, NULL, old_browser); + + if(badwolf_new_tab(GTK_NOTEBOOK(old_browser->window->notebook), browser, FALSE) < 0) + return NULL; + else + return browser->webView; +} + +static gboolean +WebViewCb_permission_request(WebKitWebView *UNUSED(web_view), + WebKitPermissionRequest *request, + gpointer UNUSED(user_data)) +{ + webkit_permission_request_deny(request); + + return TRUE; /* Stop other handlers */ +} + +static gboolean +WebViewCb_decide_policy(WebKitWebView *UNUSED(web_view), + WebKitPolicyDecision *decision, + WebKitPolicyDecisionType decision_type, + gpointer user_data) +{ + struct Client *old_browser = (struct Client *)user_data; + WebKitResponsePolicyDecision *r; + WebKitNavigationPolicyDecision *n; + WebKitNavigationAction *navigation_action; + + switch(decision_type) + { + case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: + n = WEBKIT_NAVIGATION_POLICY_DECISION(decision); + navigation_action = webkit_navigation_policy_decision_get_navigation_action(n); + + if(GDK_CONTROL_MASK == webkit_navigation_action_get_modifiers(navigation_action) || + 2 == webkit_navigation_action_get_mouse_button(navigation_action)) + { + WebKitURIRequest *uri = webkit_navigation_action_get_request(navigation_action); + const gchar *target_url = webkit_uri_request_get_uri(uri); + struct Client *browser = new_browser(old_browser->window, target_url, old_browser); + + badwolf_new_tab(GTK_NOTEBOOK(browser->window->notebook), browser, FALSE); + webkit_web_view_load_uri(browser->webView, target_url); + webkit_policy_decision_ignore(decision); + } + else + { + /* Use whatever default there is. */ + return FALSE; + } + break; + case WEBKIT_POLICY_DECISION_TYPE_RESPONSE: + r = WEBKIT_RESPONSE_POLICY_DECISION(decision); + if(!webkit_response_policy_decision_is_mime_type_supported(r)) + webkit_policy_decision_download(decision); + else + webkit_policy_decision_use(decision); + break; + default: + /* Use whatever default there is. */ + return FALSE; + } + + return TRUE; +} + +static void +WebViewCb_load_changed(WebKitWebView *UNUSED(webView), + WebKitLoadEvent UNUSED(load_event), + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + gtk_widget_set_sensitive(browser->back, webkit_web_view_can_go_back(browser->webView)); + gtk_widget_set_sensitive(browser->forward, webkit_web_view_can_go_forward(browser->webView)); +} + +static char * +detail_tls_certificate_flags(GTlsCertificateFlags tls_errors) +{ + GString *errors = g_string_new(NULL); + + g_string_append_printf(errors, + _("Couldn't verify the TLS certificate to ensure a better security of the " + "connection. You might want to verify your machine and network.\n\n")); + + if(tls_errors & G_TLS_CERTIFICATE_UNKNOWN_CA) + g_string_append_printf(errors, _("Error: The X509 Certificate Authority is unknown.\n")); + + if(tls_errors & G_TLS_CERTIFICATE_BAD_IDENTITY) + g_string_append(errors, _("Error: The given identity doesn't match the expected one.\n")); + + if(tls_errors & G_TLS_CERTIFICATE_NOT_ACTIVATED) + g_string_append(errors, + _("Error: The certificate isn't valid yet. Check your system's clock.\n")); + + if(tls_errors & G_TLS_CERTIFICATE_EXPIRED) + g_string_append(errors, _("Error: The certificate has expired. Check your system's clock.\n")); + + if(tls_errors & G_TLS_CERTIFICATE_REVOKED) + g_string_append(errors, _("Error: The certificate has been revoked.\n")); + + if(tls_errors & G_TLS_CERTIFICATE_INSECURE) + g_string_append(errors, _("Error: The certificate is considered to be insecure.\n")); + + if(tls_errors & G_TLS_CERTIFICATE_GENERIC_ERROR) + g_string_append(errors, _("Error: Some unknown error occurred validating the certificate.\n")); + + return g_string_free(errors, FALSE); +} + +static gboolean +WebViewCb_load_failed_with_tls_errors(WebKitWebView *UNUSED(web_view), + gchar *failing_text, + GTlsCertificate *certificate, + GTlsCertificateFlags errors, + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + gchar *error_details = detail_tls_certificate_flags(errors); + gint dialog_response; + +#ifndef USE_LIBSOUP2 + GUri *failing_uri = g_uri_parse(failing_text, G_URI_FLAGS_NONE, NULL); +#else + SoupURI *failing_uri = soup_uri_new(failing_text); +#endif + + GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(browser->window->main_window), + GTK_DIALOG_MODAL & GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_NONE, + _("TLS Error for %s."), + failing_text); + gtk_dialog_add_buttons( + GTK_DIALOG(dialog), _("Temporarily Add Exception"), 1, _("Continue"), 0, NULL); + if(!failing_uri) + { + gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog), 1, FALSE); + } + gtk_dialog_set_default_response(GTK_DIALOG(dialog), 0); + gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s\n", error_details); + + dialog_response = gtk_dialog_run(GTK_DIALOG(dialog)); + + if(dialog_response == 1) + { +#ifndef USE_LIBSOUP2 + webkit_web_context_allow_tls_certificate_for_host( + webkit_web_view_get_context(browser->webView), certificate, g_uri_get_host(failing_uri)); +#else + webkit_web_context_allow_tls_certificate_for_host( + webkit_web_view_get_context(browser->webView), certificate, failing_uri->host); +#endif + webkit_web_view_reload(browser->webView); + } + +#ifndef USE_LIBSOUP2 + /* Calling g_free(failing_uri) ought to be the correct way but this causes a segfault. + * + * - documentation describes it as something which should be free + * - implementation seems to make it a pointer that should be freed + * - epiphany doesn't seems to free/unref it but gnome code seems to frequently have memleaks + * + * Decided to at least continue to try with using g_uri_unref(failing_uri) instead. + * Related fediverse post: + */ + g_uri_unref(failing_uri); +#else + soup_uri_free(failing_uri); +#endif + g_free(error_details); + gtk_widget_destroy(dialog); + + return FALSE; /* propagate the event further */ +} + +static void +web_contextCb_download_started(WebKitWebContext *UNUSED(web_context), + WebKitDownload *webkit_download, + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + struct Download *download = malloc(sizeof(struct Download)); + + assert(webkit_download); + + if(download != NULL) + { + download->window = browser->window; + + download_new_entry(webkit_download, download); + + g_signal_connect( + G_OBJECT(webkit_download), "received-data", G_CALLBACK(downloadCb_received_data), download); + g_signal_connect(G_OBJECT(webkit_download), + "created-destination", + G_CALLBACK(downloadCb_created_destination), + download); + g_signal_connect(G_OBJECT(webkit_download), "failed", G_CALLBACK(downloadCb_failed), download); + g_signal_connect( + G_OBJECT(webkit_download), "finished", G_CALLBACK(downloadCb_finished), download); + } + + g_signal_connect(G_OBJECT(webkit_download), + "decide-destination", + G_CALLBACK(downloadCb_decide_destination), + user_data); +} + +static gboolean +locationCb_activate(GtkEntry *location, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + webkit_web_view_load_uri(browser->webView, + badwolf_ensure_uri_scheme(gtk_entry_get_text(location), TRUE)); + + return TRUE; +} + +static gboolean +javascriptCb_toggled(GtkButton *javascript, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + WebKitSettings *settings = webkit_web_view_get_settings(browser->webView); + + webkit_settings_set_enable_javascript_markup( + settings, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(javascript))); + + webkit_web_view_set_settings(browser->webView, settings); + + return TRUE; +} + +static gboolean +auto_load_imagesCb_toggled(GtkButton *auto_load_images, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + WebKitSettings *settings = webkit_web_view_get_settings(browser->webView); + + webkit_settings_set_auto_load_images( + settings, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(auto_load_images))); + + webkit_web_view_set_settings(browser->webView, settings); + + return TRUE; +} + +static void +backCb_clicked(GtkButton *UNUSED(back), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + webkit_web_view_go_back(browser->webView); +} + +static void +forwardCb_clicked(GtkButton *UNUSED(forward), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + webkit_web_view_go_forward(browser->webView); +} + +static void +printCb_clicked(GtkButton *UNUSED(print), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + WebKitPrintOperation *print_operation = webkit_print_operation_new(browser->webView); + + webkit_print_operation_run_dialog(print_operation, GTK_WINDOW(browser->window->main_window)); +} + +static gboolean +SearchEntryCb_next__match(GtkSearchEntry *UNUSED(search), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + WebKitFindController *findController = webkit_web_view_get_find_controller(browser->webView); + + webkit_find_controller_search_next(findController); + + return TRUE; +} + +static gboolean +SearchEntryCb_previous__match(GtkSearchEntry *UNUSED(search), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + WebKitFindController *findController = webkit_web_view_get_find_controller(browser->webView); + + webkit_find_controller_search_previous(findController); + + return TRUE; +} + +static gboolean +SearchEntryCb_search__changed(GtkSearchEntry *search, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + WebKitFindController *findController = webkit_web_view_get_find_controller(browser->webView); + const gchar *search_text = gtk_entry_get_text(GTK_ENTRY(search)); + + webkit_find_controller_search(findController, search_text, 0, 0); + + return TRUE; +} + +static gboolean +SearchEntryCb_stop__search(GtkSearchEntry *UNUSED(search), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + WebKitFindController *findController = webkit_web_view_get_find_controller(browser->webView); + + webkit_find_controller_search_finish(findController); + + return TRUE; +} + +static gboolean +widgetCb_drop_button3_event(GtkWidget *UNUSED(widget), GdkEvent *event, gpointer UNUSED(user_data)) +{ + // Button3 being right-click on right-handed mode, left-click on left-handed mode + return ((GdkEventButton *)event)->button == 3; +} + +struct Client * +new_browser(struct Window *window, const gchar *target_url, struct Client *old_browser) +{ + struct Client *browser = malloc(sizeof(struct Client)); + target_url = badwolf_ensure_uri_scheme(target_url, (old_browser == NULL)); + char *badwolf_l10n = NULL; + + WebKitWebContext *web_context = NULL; + + if(browser == NULL) return NULL; + + browser->window = window; + browser->context_id = old_browser == NULL ? context_id_counter++ : old_browser->context_id; + browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_widget_set_name(browser->box, "browser__box"); + + browser->toolbar = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_name(browser->toolbar, "browser__toolbar"); + + browser->back = + gtk_button_new_from_icon_name("go-previous-symbolic", GTK_ICON_SIZE_LARGE_TOOLBAR); + gtk_widget_set_name(browser->back, "browser__back"); + + browser->forward = gtk_button_new_from_icon_name("go-next-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_widget_set_name(browser->forward, "browser__forward"); + + GtkWidget *toolbar_separator = gtk_separator_new(GTK_ORIENTATION_VERTICAL); + + browser->javascript = gtk_toggle_button_new_with_mnemonic(_("_JS")); + gtk_widget_set_name(browser->javascript, "browser__javascript"); + gtk_widget_set_tooltip_text(browser->javascript, _("Toggle javascript")); + gtk_button_set_relief(GTK_BUTTON(browser->javascript), GTK_RELIEF_NONE); + + browser->auto_load_images = gtk_toggle_button_new_with_mnemonic(_("_IMG")); + gtk_widget_set_name(browser->auto_load_images, "browser__load_images"); + gtk_widget_set_tooltip_text(browser->auto_load_images, _("Toggle loading images automatically")); + gtk_button_set_relief(GTK_BUTTON(browser->auto_load_images), GTK_RELIEF_NONE); + + browser->location = gtk_entry_new(); + gtk_widget_set_name(browser->location, "browser__location"); + + GtkWidget *print = + gtk_button_new_from_icon_name("document-print-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_widget_set_name(browser->back, "browser__print"); + + browser->statusbar = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_name(browser->statusbar, "browser__statusbar"); + browser->search = gtk_search_entry_new(); + gtk_widget_set_name(browser->search, "browser__search"); + browser->statuslabel = gtk_label_new(NULL); + gtk_widget_set_name(browser->statuslabel, "browser__statuslabel"); + + if(old_browser == NULL) + { + WebKitWebsiteDataManager *website_data_manager = webkit_website_data_manager_new_ephemeral(); + webkit_website_data_manager_set_itp_enabled(website_data_manager, TRUE); + + web_context = webkit_web_context_new_with_website_data_manager(website_data_manager); + g_object_unref(website_data_manager); + webkit_web_context_set_sandbox_enabled(web_context, TRUE); + webkit_web_context_set_web_extensions_directory(web_context, web_extensions_directory); + + g_signal_connect(G_OBJECT(web_context), + "download-started", + G_CALLBACK(web_contextCb_download_started), + browser); + + /* flawfinder: ignore. Consider that g_strsplit is safe enough */ + badwolf_l10n = getenv("BADWOLF_L10N"); + + if(badwolf_l10n != NULL) + { + gchar **languages = g_strsplit(badwolf_l10n, ":", -1); + webkit_web_context_set_spell_checking_languages(web_context, (const gchar *const *)languages); + g_strfreev(languages); + + webkit_web_context_set_spell_checking_enabled(web_context, TRUE); + } + } + + WebKitSettings *settings = webkit_settings_new_with_settings(BADWOLF_WEBKIT_SETTINGS); + + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(browser->javascript), + webkit_settings_get_enable_javascript_markup(settings)); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(browser->auto_load_images), + webkit_settings_get_auto_load_images(settings)); + + browser->webView = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW, + "web-context", + web_context, + "related-view", + old_browser == NULL ? NULL : old_browser->webView, + "settings", + settings, + "user-content-manager", + window->content_manager, + NULL)); + + gtk_widget_set_name(GTK_WIDGET(browser->webView), "browser__webView"); + if(old_browser == NULL) + { + g_object_unref(web_context); + } + g_object_unref(settings); + + gtk_box_pack_start( + GTK_BOX(browser->toolbar), GTK_WIDGET(browser->back), FALSE, FALSE, BADWOLF_TOOLBAR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->toolbar), + GTK_WIDGET(browser->forward), + FALSE, + FALSE, + BADWOLF_TOOLBAR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->toolbar), + toolbar_separator, + FALSE, + FALSE, + BADWOLF_TOOLBAR_SEPARATOR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->toolbar), + GTK_WIDGET(browser->javascript), + FALSE, + FALSE, + BADWOLF_TOOLBAR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->toolbar), + GTK_WIDGET(browser->auto_load_images), + FALSE, + FALSE, + BADWOLF_TOOLBAR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->toolbar), + GTK_WIDGET(browser->location), + TRUE, + TRUE, + BADWOLF_TOOLBAR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->toolbar), print, FALSE, FALSE, BADWOLF_TOOLBAR_PADDING); + + gtk_container_set_focus_child(GTK_CONTAINER(browser->box), browser->toolbar); + gtk_container_set_focus_child(GTK_CONTAINER(browser->toolbar), browser->location); + + gtk_box_pack_start( + GTK_BOX(browser->box), GTK_WIDGET(browser->toolbar), FALSE, FALSE, BADWOLF_BOX_PADDING); + gtk_box_pack_start( + GTK_BOX(browser->box), GTK_WIDGET(browser->webView), TRUE, TRUE, BADWOLF_BOX_PADDING); + + gtk_box_pack_start( + GTK_BOX(browser->box), GTK_WIDGET(browser->statusbar), FALSE, FALSE, BADWOLF_BOX_PADDING); + + gtk_box_pack_start(GTK_BOX(browser->statusbar), + GTK_WIDGET(browser->search), + FALSE, + FALSE, + BADWOLF_STATUSBAR_PADDING); + gtk_box_pack_start(GTK_BOX(browser->statusbar), + GTK_WIDGET(browser->statuslabel), + FALSE, + FALSE, + BADWOLF_STATUSBAR_PADDING); + + gtk_widget_set_halign(browser->statusbar, GTK_ALIGN_START); + + gtk_label_set_single_line_mode(GTK_LABEL(browser->statuslabel), TRUE); + gtk_label_set_ellipsize(GTK_LABEL(browser->statuslabel), BADWOLF_STATUSLABEL_ELLIPSIZE); + + if(bookmarks_completion_model != NULL) + { + GtkEntryCompletion *location_completion = gtk_entry_completion_new(); + GtkTreeModel *location_completion_model = bookmarks_completion_model; + + bookmarks_completion_setup(location_completion, location_completion_model); + gtk_entry_set_completion(GTK_ENTRY(browser->location), location_completion); + } + + gtk_entry_set_text(GTK_ENTRY(browser->location), target_url); + gtk_entry_set_input_purpose(GTK_ENTRY(browser->location), GTK_INPUT_PURPOSE_URL); + + gtk_entry_set_placeholder_text(GTK_ENTRY(browser->search), _("search in current page")); + + /* signals for back/forward buttons */ + g_signal_connect(browser->back, "clicked", G_CALLBACK(backCb_clicked), browser); + g_signal_connect(browser->forward, "clicked", G_CALLBACK(forwardCb_clicked), browser); + /* prevents GtkNotebook from spawning it's context-menu */ + g_signal_connect( + browser->back, "button-press-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + g_signal_connect( + browser->back, "button-release-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + g_signal_connect( + browser->forward, "button-press-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + g_signal_connect( + browser->forward, "button-release-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + + /* signals for javacript toggle widget */ + g_signal_connect(browser->javascript, "toggled", G_CALLBACK(javascriptCb_toggled), browser); + /* prevents GtkNotebook from spawning it's context-menu */ + g_signal_connect( + browser->javascript, "button-press-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + g_signal_connect( + browser->javascript, "button-release-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + + /* signals for auto_load_images toggle widget */ + g_signal_connect( + browser->auto_load_images, "toggled", G_CALLBACK(auto_load_imagesCb_toggled), browser); + /* prevents GtkNotebook from spawning it's context-menu */ + g_signal_connect(browser->auto_load_images, + "button-press-event", + G_CALLBACK(widgetCb_drop_button3_event), + NULL); + g_signal_connect(browser->auto_load_images, + "button-release-event", + G_CALLBACK(widgetCb_drop_button3_event), + NULL); + + /* signals for location entry widget */ + g_signal_connect(browser->location, "activate", G_CALLBACK(locationCb_activate), browser); + + /* signals for print button */ + g_signal_connect(print, "clicked", G_CALLBACK(printCb_clicked), browser); + /* prevents GtkNotebook from spawning it's context-menu */ + g_signal_connect(print, "button-press-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + g_signal_connect(print, "button-release-event", G_CALLBACK(widgetCb_drop_button3_event), NULL); + + /* signals for WebView widget */ + g_signal_connect(browser->webView, + "web-process-terminated", + G_CALLBACK(WebViewCb_web_process_terminated), + browser); + g_signal_connect(browser->webView, "notify::uri", G_CALLBACK(WebViewCb_notify__uri), browser); + g_signal_connect(browser->webView, "notify::title", G_CALLBACK(WebViewCb_notify__title), browser); + g_signal_connect(browser->webView, + "notify::is-playing-audio", + G_CALLBACK(WebViewCb_notify__is__playing__audio), + browser); + g_signal_connect(browser->webView, + "mouse-target-changed", + G_CALLBACK(WebViewCb_mouse_target_changed), + browser); + g_signal_connect(browser->webView, + "notify::estimated-load-progress", + G_CALLBACK(WebViewCb_notify__estimated_load_progress), + browser); + g_signal_connect(browser->webView, "create", G_CALLBACK(WebViewCb_create), browser); + g_signal_connect(browser->webView, "close", G_CALLBACK(WebViewCb_close), browser); + + g_signal_connect( + browser->webView, "key-press-event", G_CALLBACK(WebViewCb_key_press_event), browser); + g_signal_connect(browser->webView, "scroll-event", G_CALLBACK(WebViewCb_scroll_event), browser); + g_signal_connect( + browser->webView, "permission-request", G_CALLBACK(WebViewCb_permission_request), NULL); + g_signal_connect(browser->webView, "decide-policy", G_CALLBACK(WebViewCb_decide_policy), browser); + g_signal_connect(browser->webView, + "load-failed-with-tls-errors", + G_CALLBACK(WebViewCb_load_failed_with_tls_errors), + browser); + g_signal_connect(browser->webView, "load-changed", G_CALLBACK(WebViewCb_load_changed), browser); + + /* signals for search widget */ + g_signal_connect(browser->search, "next-match", G_CALLBACK(SearchEntryCb_next__match), browser); + g_signal_connect( + browser->search, "previous-match", G_CALLBACK(SearchEntryCb_previous__match), browser); + g_signal_connect( + browser->search, "search-changed", G_CALLBACK(SearchEntryCb_search__changed), browser); + g_signal_connect(browser->search, "stop-search", G_CALLBACK(SearchEntryCb_stop__search), browser); + + /* signals for box container */ + g_signal_connect(browser->box, "key-press-event", G_CALLBACK(boxCb_key_press_event), browser); + + if(old_browser == NULL) webkit_web_view_load_uri(browser->webView, target_url); + + return browser; +} + +/* badwolf_new_tab: Inserts struct Client *browser in GtkNotebook *notebook + * and optionally switches selected tab to it. + * + * returns: + * 0 : Ran successfully + * -1 : Failed to insert a page for browser->box + * -2 : browser is NULL + */ +int +badwolf_new_tab(GtkNotebook *notebook, struct Client *browser, bool auto_switch) +{ + gint current_page = gtk_notebook_get_current_page(notebook); + gchar *title = _("New tab"); + + if(browser == NULL) return -2; + + gtk_widget_show_all(browser->box); + + if(gtk_notebook_insert_page(notebook, browser->box, NULL, (current_page + 1)) == -1) return -1; + + gtk_notebook_set_tab_reorderable(notebook, browser->box, TRUE); + gtk_notebook_set_tab_label(notebook, browser->box, badwolf_new_tab_box(title, browser)); + gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(notebook), browser->box, title); + + gtk_widget_queue_draw(GTK_WIDGET(notebook)); + + if(auto_switch) + { + gtk_notebook_set_current_page(notebook, gtk_notebook_page_num(notebook, browser->box)); + } + + return 0; +} + +static void +new_tabCb_clicked(GtkButton *UNUSED(new_tab), gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + struct Client *browser = new_browser(window, NULL, NULL); + + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser, TRUE); +} + +static void +closeCb_clicked(GtkButton *UNUSED(close), gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + webkit_web_view_try_close(browser->webView); +} + +static void +notebookCb_switch__page(GtkNotebook *notebook, + GtkWidget *page, + guint UNUSED(page_num), + gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + GtkWidget *label = gtk_notebook_get_tab_label(notebook, page); + + // TODO: Maybe find a better way to store the title + gtk_window_set_title(GTK_WINDOW(window->main_window), gtk_widget_get_tooltip_text(label)); +} + +void +content_managerCb_ready(GObject *UNUSED(store), GAsyncResult *result, gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + GError *err = NULL; + + WebKitUserContentFilter *filter = + webkit_user_content_filter_store_load_finish(window->content_store, result, &err); + + if(filter == NULL) + { + if(err == NULL) + { + fprintf(stderr, _("badwolf: failed to load content-filter, err: [%d] %s\n"), -1, "unknown"); + } + else + { + fprintf(stderr, + _("badwolf: failed to load content-filter, err: [%d] %s\n"), + err->code, + err->message); + } + } + else + { + fprintf(stderr, _("badwolf: content-filter loaded, adding to content-manager…\n")); + webkit_user_content_manager_add_filter(window->content_manager, filter); + } +} + +static void +storeCb_finish(WebKitUserContentFilterStore *UNUSED(store), + GAsyncResult *result, + gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + GError *err = NULL; + + WebKitUserContentFilter *filter = + webkit_user_content_filter_store_save_finish(window->content_store, result, &err); + + if(filter == NULL) + { + if(err == NULL) + { + fprintf(stderr, + _("badwolf: failed to compile content-filters.json, err: [%d] %s\n"), + -1, + "unknown"); + } + else + { + fprintf(stderr, + _("badwolf: failed to compile content-filters.json, err: [%d] %s\n"), + err->code, + err->message); + } + } + else + { + webkit_user_content_filter_store_load( + window->content_store, "a", NULL, content_managerCb_ready, window); + } +} + +int +main(int argc, char *argv[]) +{ + struct Window *window = &(struct Window){NULL, NULL, NULL, NULL, NULL, NULL}; + GApplication *application; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, DATADIR "/locale"); + bind_textdomain_codeset(PACKAGE, "UTF-8"); + textdomain(PACKAGE); + + application = g_application_new("me.hacktivis.badwolf", + G_APPLICATION_HANDLES_COMMAND_LINE | + G_APPLICATION_SEND_ENVIRONMENT | G_APPLICATION_NON_UNIQUE); + g_application_register(application, NULL, NULL); + //g_application_activate(application); + + gtk_init(&argc, &argv); + + fprintf(stderr, _("Running Badwolf version: %s\n"), version); + fprintf(stderr, + _("Buildtime WebKit version: %d.%d.%d\n"), + WEBKIT_MAJOR_VERSION, + WEBKIT_MINOR_VERSION, + WEBKIT_MICRO_VERSION); + fprintf(stderr, + _("Runtime WebKit version: %d.%d.%d\n"), + webkit_get_major_version(), + webkit_get_minor_version(), + webkit_get_micro_version()); + + web_extensions_directory = + g_build_filename(g_get_user_data_dir(), "badwolf", "webkit-web-extension", NULL); + fprintf(stderr, _("webkit-web-extension directory set to: %s\n"), web_extensions_directory); + + bookmarks_completion_model = bookmarks_completion_init(); + g_object_ref(bookmarks_completion_model); + + window->main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + window->notebook = gtk_notebook_new(); + window->new_tab = gtk_button_new_from_icon_name("tab-new-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + window->downloads_tab = badwolf_downloads_tab_new(); + window->content_manager = webkit_user_content_manager_new(); + + load_userscripts(window->content_manager); + + gchar *contentFilterPath = + g_build_filename(g_get_user_config_dir(), g_get_prgname(), "content-filters.json", NULL); + GFile *contentFilterFile = g_file_new_for_path(contentFilterPath); + fprintf(stderr, _("content-filters file set to: %s\n"), contentFilterPath); + + gchar *filtersPath = g_build_filename(g_get_user_cache_dir(), g_get_prgname(), "filters", NULL); + window->content_store = webkit_user_content_filter_store_new(filtersPath); + + webkit_user_content_filter_store_save_from_file(window->content_store, + "a", + contentFilterFile, + NULL, + (GAsyncReadyCallback)storeCb_finish, + window); + + gtk_window_set_default_size( + GTK_WINDOW(window->main_window), BADWOLF_DEFAULT_WIDTH, BADWOLF_DEFAULT_HEIGHT); + gtk_window_set_role(GTK_WINDOW(window->main_window), "browser"); + gtk_window_set_icon_name(GTK_WINDOW(window->main_window), "badwolf"); + + gchar *provider_path_app = g_build_filename(DATADIR, "interface.css", NULL); + /* flawfinder: ignore, just a presence check */ + if(access(provider_path_app, R_OK) == 0) + { + GtkCssProvider *css_provider_app = gtk_css_provider_new(); + gtk_css_provider_load_from_path(css_provider_app, provider_path_app, NULL); + gtk_style_context_add_provider_for_screen( + gtk_widget_get_screen(GTK_WIDGET(window->main_window)), + GTK_STYLE_PROVIDER(css_provider_app), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + } + g_free(provider_path_app); + + gchar *provider_path_user = + g_build_filename(g_get_user_data_dir(), "badwolf", "interface.css", NULL); + /* flawfinder: ignore, just a presence check */ + if(access(provider_path_user, R_OK) == 0) + { + GtkCssProvider *css_provider_user = gtk_css_provider_new(); + gtk_css_provider_load_from_path(css_provider_user, provider_path_user, NULL); + gtk_style_context_add_provider_for_screen( + gtk_widget_get_screen(GTK_WIDGET(window->main_window)), + GTK_STYLE_PROVIDER(css_provider_user), + GTK_STYLE_PROVIDER_PRIORITY_USER); + } + g_free(provider_path_user); + + gtk_widget_set_tooltip_text(window->new_tab, _("Open new tab")); + + gtk_notebook_set_action_widget(GTK_NOTEBOOK(window->notebook), window->new_tab, GTK_PACK_END); + gtk_notebook_set_scrollable(GTK_NOTEBOOK(window->notebook), TRUE); + gtk_notebook_set_tab_pos(GTK_NOTEBOOK(window->notebook), BADWOLF_TAB_POSITION); + gtk_notebook_popup_enable(GTK_NOTEBOOK(window->notebook)); + + gtk_container_add(GTK_CONTAINER(window->main_window), window->notebook); + gtk_widget_queue_draw(window->notebook); + + badwolf_downloads_tab_attach(window); + + g_signal_connect( + window->main_window, "key-press-event", G_CALLBACK(main_windowCb_key_press_event), window); + + g_signal_connect(window->main_window, "destroy", G_CALLBACK(gtk_main_quit), NULL); + g_signal_connect(window->new_tab, "clicked", G_CALLBACK(new_tabCb_clicked), window); + g_signal_connect(window->notebook, "switch-page", G_CALLBACK(notebookCb_switch__page), window); + + gtk_widget_show(window->new_tab); + gtk_widget_show_all(window->main_window); + + if(argc == 1) + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, NULL, NULL), FALSE); + else + for(int i = 1; i < argc; ++i) + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, argv[i], NULL), FALSE); + + gtk_notebook_set_current_page(GTK_NOTEBOOK(window->notebook), 1); + + gtk_main(); + + g_object_unref(bookmarks_completion_model); + +#if 0 + /* TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. */ + _("ø"); +#endif + + return 0; +} diff --git a/badwolf/badwolf.de.1 b/badwolf/badwolf.de.1 new file mode 100755 index 0000000..8ed48ec --- /dev/null +++ b/badwolf/badwolf.de.1 @@ -0,0 +1,189 @@ +.\" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +.\" Copyright © 2019-2023 Badwolf Authors +.\" SPDX-License-Identifier: BSD-3-Clause +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.Dd 2022-07-13 +.Dt BADWOLF 1 +.Os +.Sh NAME +.Nm badwolf +.Nd minimalistischer und privatsphäre-orientierter Webbrowser basierend auf WebKitGTK +.Sh ÜBERSICHT +.Nm +.Op Ar WebKit-/GTK-Optionen +.Op Ar URLs oder Pfade +.Sh BESCHREIBUNG +.Nm +ist ein minimalistischer Webbrowser, der die Privatssphäre seiner +Nutzer respektiert. Er basiert auf WebKitGTK und akzeptiert daher alle +Optionen und Umgebungsvariablen, die WebKitGTK (und Abhängigkeiten) auch +akzeptieren, leider gibt es dafür keine Manpages. +.Pp +Laufzeitspezifische Konfigurationsmöglichkeiten für +.Nm +werden +wahrscheinlich in einer späteren Version hinzugefügt. +.Sh TASTENKOMBINATIONEN +Der folgende Abschnitt listet die unterstützten Tastenkombinationen und ihre +Funktionen auf. Vor jeder Tastenkombination steht der greifende Kontext. +.Bl -tag -width Ds +.It webview Ctrl-Scroll +Zoomt die Website rein/raus. +.It webview Ctrl-0 +Setzt den Zoom auf 100% zurück. +.It webview Ctrl-MousePrimary, webview MouseMiddle +Öffnet den hervorgehobenen Link in einem neuen Tab. (Hinweis: Dieses +Verhalten kann mit Javascript manipuliert werden) +.It any Ctrl-t +Eröffnet einen neuen Tab in einer neuen Sitzung (ähnlich wie der "Neuer +Tab"-Knopf) +.It browser Ctrl-F4, browser Alt-d +Schließt den aktuellen Tab +.It browser Ctrl-f +Hebt das Suchfeld hervor +.It browser Ctrl-l +Hebt die Addresszeile hervor +.It browser Ctrl-Shift-r / Ctrl-r, browser F5 +Lädt den aktuellen Tab neu (jeweils mit und ohne den Cache zu leeren) +.It browser Escape +Bricht das Laden ab +.It browser F7 +Aktiviert den Tastaturmodus (Navigation mit dem Textcursor) +.It browser F12 +Öffnet die Entwickleroptionen +.It browser Ctrl-[ / Ctrl-] +Zur vorherigen/nächsten Seite im Suchverlauf gehen +.It browser Ctrl-p +Druckt die aktuelle Seite aus. (Eröffnet Dialogfenster) +.It any Alt-Left / Alt-Right +Wechseln zum vorherigen/nächsten Tab +.It any F1 +Zeigt Informationen über das Programm +.It any Alt-n +n ist eine Zahl. Wechseln zum Tab n. 0 wechselt zum letzten Tab. +.El +.Ss STANDARDTASTENKOMBINATIONEN +Im Folgenden befindet sich eine unvollständige Liste mit standartmäßigen +Webkit-/GTK-Tastenkombinationen: +.Bl -tag -width Ds +.It any Ctrl-PageUp / Ctrl-PageDown +Wechseln zum vorherigen/nächsten Tab +.It search Ctrl-g / Ctrl-Shift-g +Zum nächsten/vorherigen Suchtreffer gehen +.It search Escape +Bricht die Suche ab +.It textarea Ctrl-; +Emoji einfügen😚️ +.El +.Sh UMGEBUNGSVARIABLEN +.Bl -tag -width Ds +.It Ev BADWOLF_L10N +Eine mit Doppelpunkten getrennte List im Format sprache_LAND wo die sprache +ISO-639 und das LAND ISO-3166 ist. Z.B.: +.Ic BADWOLF_L10N="en_GB:fr_FR:de_DE" . +Wenn diese Variable nicht gesetzt ist, +gibt es keine Rechtschreibprüfung. Der Variablenname könnte in der Zukunft +durch einen generischeren ersetzt werden. +.Pp +Um eine List mit installierten Sprächen zu bekommen, muss +.Ic enchant-lsmod-2 -list-dicts +ausgeführt werden. Bei Versionen vor enchant +2.0: +.Ic enchant-lsmod -list-dicts +.El +.Sh DATEIEN +Die im Folgenden aufgelistetene Pfade benutzen +.Xr sh 1 +-Syntaxe, um der +XDG-Base-Directory-Specifation gerecht zu werden. Du kannst den Befehl +.Xr echo 1 +benutzen, um zu gucken, wo das auf dem Computer ist. +.Pp +.Bl -tag -width Ds -compact +.It Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json +WebKit-spezifischer Inhaltsfilter-Datei, mit der unerwünschte Inhalte +(z.B. Werbung, Schadsoftware, ...) geblockt werden können. Für mehr +Informationen, siehe: +.Lk https://webkit.org/blog/3476/content-blockers-first-look/ +.Lk https://webkit.org/blog/4062/targeting-domains-with-content-blockers/ +.Lk https://developer.apple.com/documentation/safariservices/creating_a_content_blocker +.Pp +Es gibt einen Übersetzer, der AdblockPlus-Filterlisten in Webkit-Blocklisten +übersetzen kann: +.Lk https://gitlab.com/eyeo/adblockplus/abp2blocklist +.Pp +Für eine fertige Datei (die regelmäßig aktualisiert werden sollte), siehe: +.Lk https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json +.It Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters +Hier werden kompilierte Filter gespeichert. Diese Dateien werden automatisch +generiert und sollten deswegen nicht bearbeitet werden. Diese Datei wird +hier überhaupt nur dokumentiert, damit sie in Sandboxen/Zugriffskontrollen +eingearbeitet werden kann. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel +XBEL (XML Bookmark Exchange Language) Datei, wird momentan unterstützt von: +.Xr elinks 1 , +.Xr konqueror 1 , +.Xr kbookmarkeditor 1 . +.Pp +Du kannst einfach eine Verknüpfung zu deren Dateien erstellen, aber +vielleicht möchtest du lieber +.Lk https://www.w3.org/TR/xinclude/ XInclude +benutzen, welches von +.Nm +systemeigen unterstützt wird und mehrer +XBEL-Dateien zusammenfügt. +.Pp +Außerdem werden die Lesezeicheneinträge nicht neusortiert, deswegen ist es +eventuell gewünscht, die am häufigsten genutzen Einträge an den Anfang der +Datei zu schieben. +.Pp +Für weitere Informationen über dieses Format siehe: +.Lk http://pyxml.sourceforge.net/topics/xbel/ +.Pp +Für eine Beispiel-XBEL-Datei siehe: +.Lk https://hacktivis.me/bookmarks.xbel +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/ +Verzeichnis mit den +.Lk https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebExtension.html WebKitWebExtensions +die in +.Nm geladen werden sollen. Hinweis: Es handelt sich dabei nicht um Javascript-basierte Erweitungen wie man sie von Firefox oder Chrome kennt, sondern um systemeigenen Code aus Shared Objects der WebKitGTK API. +.Pp +Für Beispiele nützlicher Erweiterungen siehe: +.Lk https://hacktivis.me/git/badwolf-extensions +.It Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css +CSS-Dateien (jeweils System und User-Ebene), um das Aussehen das Interfaces +anzupassen. Siehe +.Lk https://docs.gtk.org/gtk3/css-properties.html +für die zur Verfügung stehen Eigenschaften. +.Pp +Für das Austesten eines Aussehens ist es zu empfehlen die Umgebungsvariable +.Ev GTK_DEBUG=interactive +biem Start zu setzen und dann in den CSS tab zu +gehen. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/ +Verzeichnis, welches die JavaScript-Userscripts enthält (Dateiendung +.Ic .js ) , +die am Start des Ladens jeder Seite ausgeführt werden und sich auch +in iframes verschachteln. Nützlich um Website-Verhalten zu manipulieren oder +fehlende Funktionen zu ergänzen. +.Pp +Es ist anzumerken, dass — anders als bei GreaseMonkey-artigen Userscripts — +die +.Nm +-Userscripts immer ausgeführt werden, unabhängig von +Hostname/URLs. +.El +.Sh AUTOREN. +.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me , +Übersetzung von Ben Kaps +.Sh BUGS +Verbesserungen oder Fehlerberichte können unter +.Lk https://sr.ht/~lanodan/badwolf/ +mit +.Xr git-send-email 1 +für Patches eingereicht werden. diff --git a/badwolf/badwolf.desktop b/badwolf/badwolf.desktop new file mode 100755 index 0000000..ccce7cb --- /dev/null +++ b/badwolf/badwolf.desktop @@ -0,0 +1,20 @@ +# https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/ +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +[Desktop Entry] +Version=1.1 +Type=Application +Categories=Network;WebBrowser +Comment=A minimalist and privacy-oriented web browser +Comment[fr]=Un navigateur web minimaliste et orienté vers le respect de la vie privée +Comment[tr]=Sadelik ve gizlilik odaklı web tarayıcısı +Exec=badwolf %U +GenericName=Web Browser +GenericName[fr]=Navigateur Web +GenericName[tr]=Web Tarayıcısı +Icon=badwolf +Keywords=Internet;WWW;Browser;Web;WebKit;WebKitGTK +Keywords[fr]=Internet;WWW;Browser;Web;Surfer;Navigateur;WebKit;WebKitGTK +Keywords[tr]=Internet;WWW;Browser;Web;WebKit;WebKitGTK;İnternet;Tarayıcı; +MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https +Name=Badwolf diff --git a/badwolf/badwolf.fr.1 b/badwolf/badwolf.fr.1 new file mode 100755 index 0000000..642ebb7 --- /dev/null +++ b/badwolf/badwolf.fr.1 @@ -0,0 +1,190 @@ +.\" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +.\" Copyright © 2019-2023 Badwolf Authors +.\" SPDX-License-Identifier: BSD-3-Clause +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.Dd 2022-07-13 +.Dt BADWOLF 1 +.Os +.Sh NAME +.Nm badwolf +.Nd navigateur minimaliste et orienté vie-privée basé sur WebKitGTK +.Sh SYNOPSIS +.Nm +.Op Ar options webkit/gtk +.Op Ar URLs or chemins +.Sh DESCRIPTION +.Nm +est un navigateur minimaliste qui prend soin de la vie privée, c'est +basé WebKitGTK et accept donc les options et variables d'environements de +WebKitGTK et ses dépendances, malheuresement il ne semble pas avoir de pages +de man pour celles-ci. +.Pp +Une configuration dynamique spécifique à +.Nm +sera sans doute rajoutée +dans une version suivante. +.Sh RACCOURCIS +Cette section liste les raccourcis et leurs actions, chaque point est décris +avec le widget actif ou avec +.Aq tout +quand il fonctionne sur la fenêtre +entière, suivit par le raccourcis. +.Bl -tag -width Ds +.It vueweb Ctrl-Défilement +(Dé)-Grossir le zoom de la page. +.It vueweb Ctrl-0 +Remettre le zoom de la page à 100%. +.It vueweb Ctrl-SourisPremier, vueweb SourisMilieu +Ouvrir le lien sélectionné dans un nouvel onglet. (Note: JS modifie +quand-même l'action) +.It tout Ctrl-t +Créer un nouvel onglet (dans une nouvelle session, comme un apuis sur le +bouton dédié) +.It navigateur Ctrl-F4, navigateur Alt-d +Fermer l'onglet courant. +.It navigateur Ctrl-f +Aller dans le champ de recherche. +.It navigateur Ctrl-l +Aller dans la barre d'URL. +.It navigateur Ctrl-Maj-r / Ctrl-r, navigateur F5 +Recharger le contenu dans l'onglet courant (avec/sans nettoyer le cache). +.It navigateur Échap +Arrêter le chargement dans l'onglet courant. +.It navigateur F7 +(Dé)-Activer la navigation par curseur. +.It navigateur F12 +Ouvrir les outils de dévelopement. +.It navigateur Ctrl-[ / Ctrl-] +Naviguer dans l'historique courrant précédent/suivant. +.It navigateur Ctrl-p +Imprimer la page courante. (ouvre une nouvelle fenêtre) +.It tout Alt-Gauche / Alt-Droite +Aller à l'onglet précédent/suivant. +.It tout F1 +Montrer la fenêtre d'À Propos. +.It tout Alt-n +Où n est n'importe quelle touche de la barre numérique. +Aller à l'onglet n, 0 va au dernier. +.El +.Ss PAR DÉFAULTS +Ceci est une liste incomplète des raccourcis par défaults dans WebKit/GTK: +.Bl -tag -width Ds +.It tout Ctrl-PageUp / Ctrl-PageDown +Aller à l'onglet précédent/suivant. +.It recherche Ctrl-g / Ctrl-Maj-g +Quand le champ de recherche est actif, aller au résultat précédent/suivant. +.It recherche Échap +Annule la recherche actuelle. +.It champ-texte Ctrl-; +Insérer un Émoji +.El +.Sh ENVIRONMENT +.Bl -tag -width Ds +.It Ev BADWOLF_L10N +Une liste séparé par des deux-points dans le format langue_PAYS où la langue +est en ISO-639 et le PAYS en ISO-3166. +Par example +.Ic BADWOLF_L10N="en_GB:fr_FR:de_DE" . +Quand cette variable n'est pas configuré, la correction orthographique est +désactivée. +Un nom plus générique est voulu pour le futur. +.Pp +Pour avoir la liste des dictionaires installés, executez: +.Ic enchant-lsmod-2 -list-dicts +ou avant enchant 2.0: +.Ic enchant-lsmod -list-dicts +.El +.Sh FICHIERS +Les chemins suivants utilisent la syntaxe de +.Xr sh 1 +pour correctement +supporter la XDG Base Directory Specification, vous pouver utiliser la +commande +.Xr echo 1 +pour vérifier où cela se trouve sur votre système. +.Pp +.Bl -tag -width Ds -compact +.It Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json +Fichier content-filter spécifique à WebKit, cela permet de blocker le +contenu indésirable (pubs, nagware, …). +Pour une introduction au format, voir (en anglais): +.Lk https://webkit.org/blog/3476/content-blockers-first-look/ +.Lk https://webkit.org/blog/4062/targeting-domains-with-content-blockers/ +.Lk https://developer.apple.com/documentation/safariservices/creating_a_content_blocker +.Pp +Pour un convertiseur de filtres compatibles AdBlockPlus, essayez: +.Lk https://gitlab.com/eyeo/adblockplus/abp2blocklist +.Pp +Pour un fichier prêt à l'usage (que vous devrez mettre à jour +périodiquement), essayez: +.Lk https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json +.It Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters +Stockage des filtres compilés, les fichiers présents sont automatiquement +générés et ne doivent pas être édité. +Documenté ici seulement pour les isolations ou la gestion des contrôle +d'accès. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel +Fichier XBEL (XML Bookmark Exchange Language; Language XML d'Échange de +Marques-Pages), connu pour être supporté par: +.Xr elinks 1 , +.Xr konqueror 1 , +.Xr kbookmarkeditor 1 . +.Pp +Vous pouvez faire un lien symbolique depuis leur fichiers, mais vous pouvez +aussi utiliser +.Lk https://www.w3.org/TR/xinclude/ XInclude +qui est supporté nativement par +.Nm +pour automatiquement fusionner +plusieurs fichiers XBEL. +.Pp +Aussi les marques-pages ne sont pas re-triés, vous pouvez donc mettre les +plus fréquement utilisés au début du fichier. +.Pp +Pour plus d'information à propos du format, voir (en anglais): +.Lk http://pyxml.sourceforge.net/topics/xbel/ +.Pp +Pour un example de fichier XBEL voir: +.Lk https://hacktivis.me/bookmarks.xbel +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/ +Répertoire contenant les +.Lk https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebExtension.html WebKitWebExtensions +pour être chargés dans +.Nm . Note\ : Ce ne sont pas les Web-Extensions basé sur JavaScript et supporté par Firefox ou Chrome, mais du code natif dans des shared objects qui utilisent l'API WebKitGTK. +.Pp +Des examples de quelques extensions utiles peuvent être trouvés sur: +.Lk https://hacktivis.me/git/badwolf-extensions +.It Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css +Fichiers CSS (respectivement système et utilisateur) pour changer le style +de l'interface de +.Nm . +Voir +.Lk https://docs.gtk.org/gtk3/css-properties.html +pour la liste des propriétés disponibles. +.Pp +Pour tester les styles je recommende d'utiliser la variable d'environemnt +.Ev GTK_DEBUG=interactive +et d'aller à l'onglet CSS. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/ +Dossier contenant les userscripts JavaScript (finisant en +.Ic .js ) +lancés +à chaque chargement de page, descendant dans les iframes, utile pour changer +le comportement ou rajouter des fonctionalitées aux sites web. +.Pp +Veuillez noter que pour l'instant, contrairement aux userscripts à la +GreaseMonkey, ils sont toujours exécutés, sans filtrage de domaines / URLs. +.El +.Sh AUTHORS +.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me +.Sh BUGS +Vous pouvez soumettre des contributions ou des tickets à +.Lk https://sr.ht/~lanodan/badwolf/ +avec +.Xr git-send-email 1 +pour les modifications. diff --git a/badwolf/badwolf.h b/badwolf/badwolf.h new file mode 100755 index 0000000..820fb0d --- /dev/null +++ b/badwolf/badwolf.h @@ -0,0 +1,62 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef BADWOLF_H_INCLUDED +#define BADWOLF_H_INCLUDED + +#include +#include /* uint64_t */ +#include + +#if !WEBKIT_CHECK_VERSION(2, 32, 0) +#error WebkitGTK 2.32.0 is the latest supported version for badwolf. +#endif + +#ifdef UNUSED +#error UNUSED is already defined +#elif defined(__GNUC__) +#define UNUSED(x) UNUSED_##x __attribute__((unused)) +#else +#define UNUSED(x) x +#endif + +extern const gchar *homepage; +extern const gchar *version; + +struct Window +{ + GtkWidget *main_window; + GtkWidget *notebook; + GtkWidget *new_tab; + GtkWidget *downloads_tab; + WebKitUserContentManager *content_manager; + WebKitUserContentFilterStore *content_store; +}; + +struct Client +{ + GtkWidget *box; + + GtkWidget *toolbar; + GtkWidget *back; + GtkWidget *forward; + GtkWidget *javascript; + GtkWidget *auto_load_images; + GtkWidget *location; + + uint64_t context_id; + WebKitWebView *webView; + struct Window *window; + + GtkWidget *statusbar; + GtkWidget *statuslabel; + GtkWidget *search; +}; + +GtkWidget *badwolf_new_tab_box(const gchar *title, struct Client *browser); +void webView_tab_label_change(struct Client *browser, const gchar *title); +struct Client * +new_browser(struct Window *window, const gchar *target_url, struct Client *old_browser); +int badwolf_new_tab(GtkNotebook *notebook, struct Client *browser, bool auto_switch); +gint badwolf_get_tab_position(GtkContainer *notebook, GtkWidget *child); +#endif /* BADWOLF_H_INCLUDED */ diff --git a/badwolf/badwolf.inkscape.svg b/badwolf/badwolf.inkscape.svg new file mode 100755 index 0000000..de73138 --- /dev/null +++ b/badwolf/badwolf.inkscape.svg @@ -0,0 +1,164 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/badwolf/badwolf.o b/badwolf/badwolf.o new file mode 100755 index 0000000000000000000000000000000000000000..b237e4bdd1a38140edd647352be41d167e1e70cd GIT binary patch literal 157320 zcmdqIcRbZ?_&9!S$_!cIC@Zq}-a10rsg!wejAI>JrOZPz%S;(%Bs(F=ib$nNDw0vQ zQW=Tg{XPTr^n9Mr>-+uv{`q-55AXMVU-xxi`@XL0es@;SNS~C11V;QJfvLl`-iV_x z81*UA%@J5DNPB_bFFur!KqW*mag6;0wv!+OnATCL4J|7J z><=wVEem68hb8tgL_RwL%fgR?m)dBgfapq)!;!be3E)Di1qY(};{gdnlp8q=riGo= ziWnyc1EdU5T0kRuQL_wDa3DG`M9mO&2A~2@j0{mm_$N3+6eoC!7}sQongj?C*kSyx z&!v7CVV4XD^8S;E2RI;O>=z);9|qVKgLqwjL?anQXS^bTsz2A@Rq*?$0YN%?Qr&t| zEk@WcfT>1E(NZl$N)Uj9NO?e-)Q`;}>@WnpN{|VT7UEpQG6_Ru44?#ooyScWVK;sQ z07_?*_mmLZat5(YDl+F*!$2qd+MEL>5YIgbk(E?j%=)NP#m%<^WPAA){g7h5Zk5`2w&Y zqFR7la1`NP0oXY;0^7DlhYYYnK!-sBIU53N!4LMrO9nu&;Utr_MGTk*qCt=W2@zz2 zvtLahTAckxYX15kMZ@sF6AdF?Reu%D8bI-Hq5*E>1ayNJQuo^bNQx}Z1piY@vv}$J zl@$AbBL(u-NHehiUzCFYHVJvm7=)PM0+3FAvyG#~U3JxfL9ZgPbKC6WGq4Xp{9lDI z`R?b&1}={O?#Fmw?C@4hn)JazZqi^7AI7gqbazC&EWZ)bg3iC!&K-P68Wn7T=85{|a{}7 z<*nf6|8>0}v=3O1V}DcIj9?Te-#^C92zn&IZygSkO3*&r?BjQQaySD6dd1`0w$2~O zYjgi?R`G2Q5Tx^MA2bP7?p(j}OmmMKX zCCX!ta6C+E0a)iGyw3O`UT}Vde~*D=vhAH8@{MipSrCug-Zy?iNpioW%4iUrGDU-Z%aEtehZS{Erz=g z@j8eThNgz%g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7pA3;T==DRvqkU23f`gWE2#Q&u0YQij_4%DLHu~GIIE4%80@u zo68pdT~_A!?BSzxN9LJoWBnPKnFU!Bs=RGV=Zr2avdyV1lTnb7o1InF3Uaf59+)#a zH;c*5c(B*<@YwK(ys=}ma?N<><`re7^c`^fRc35PjKOer?)a4ag1r2!f}%-iK-Q?? zBMUOdX1SU6|M+ibyZtC)c3sGnhQ7>J7bw<~P<1f&oOHYBrHKzZ;DFChwwI}GJ@pWW z+hbzqqOD_b$GhfvLQ*f^u(5u3r5Ug}wfriSXFV*#`Z?Uu^w^v{4?<`8ruaP2S)T1k zGjCK^erp?7qL)lqmgDOXl$WqbLW(Q@jMT5wf1nAgZu)Obay2Aiy=SMt-4wI^oGzKh zY-COI=Xb@|x*^N~+i&M3%d`FO z7^|*+{vI^1T~M4ID%D>qbGo|C1H>8Y-Ksa-Hl$Nd~P^z-s|H4`h(0K9G~c0G;7 zZLID1dO6BFt^EI=#g+YjAIs5F4A}LWd`u$c#V&&D55~)6ian3X=G5|$5?5lOteCZY z4^z0h`Imo}%h(SqM!WpjS;6w0f7RA);ufxS^|wuSuTk^ziuu#>7aP-cuc1iU2ljs? eG7HBuZm4p)bGV`DsjmD+9Iy?t4fHx0jQk6#M@cRK literal 0 HcmV?d00001 diff --git a/badwolf/badwolf.svg b/badwolf/badwolf.svg new file mode 100755 index 0000000..d2ff8e2 --- /dev/null +++ b/badwolf/badwolf.svg @@ -0,0 +1,134 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/badwolf/badwolf.tr.1 b/badwolf/badwolf.tr.1 new file mode 100755 index 0000000..7f9aec6 --- /dev/null +++ b/badwolf/badwolf.tr.1 @@ -0,0 +1,186 @@ +.\" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +.\" Copyright © 2019-2023 Badwolf Authors +.\" SPDX-License-Identifier: BSD-3-Clause +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.Dd 2022-07-13 +.Dt BADWOLF 1 +.Os +.Sh AD +.Nm badwolf +.Nd WebKitGTK tabanlı sade ve gizlilik odaklı web tarayıcısı +.Sh ÖZET +.Nm +.Op Ar webkit/gtk seçenekleri +.Op Ar URL veya yollar +.Sh AÇIKLAMA +.Nm +gizliliğe önem veren sade bir tarayıcıdır, WebKitGTK tabanlıdır ve bu +nedenle WebKitGTK (ve bağımlılıkları) seçeneklerini ve ortam değişkenlerini +de kabul eder, ne yazık ki bunlar için kılavuz sayfası yok gibi görünüyor. +.Pp +.Nm +’e özgü çalışma zamanı yapılandırması muhtemelen daha sonraki bir +sürümde eklenecek. +.Sh TUŞ ATAMALARI +Aşağıdaki bölüm tuş atamalarını eylemlerine göre listeler, her öge odağın +üzerinde olduğu widget ile veya tüm pencere için çalışıyorsa +.Aq tümü +ile, ardından yakaladığı tuş ataması ile açıklanmaktadır. +.Bl -tag -width Ds +.It web_görünümü Ctrl-Scroll +Web sayfasını yakınlaştırır/uzaklaştırır. +.It web_görünümü Ctrl-0 +Web sayfasının yakınlaştırmasını %100 olarak sıfırlar. +.It webview Ctrl-MousePrimary, webview MouseMiddle +Opens the selected link in a new tab. (Note: JS still overrides the event) +.It tümü Ctrl-t +Yeni bir sekme oluşturur (yeni bir oturumda, düğmeye basmaya benzer şekilde) +.It tarayıcı Ctrl-F4, tarayıcı Alt-d +Geçerli sekmeyi kapatır +.It tarayıcı Ctrl-f +Arama girişine odaklanır +.It tarayıcı Ctrl-l +Konum (URL) girişine odaklanır +.It tarayıcı Ctrl-Shift-r / Ctrl-r, tarayıcı F5 +Geçerli sekmedeki içeriği yeniden yükler (önbelleği temizleyerek/önbelleği +temizlemeden) +.It tarayıcı Escape +Geçerli sekmedeki içeriğin yüklenmesini durdurur +.It tarayıcı F7 +İmleç gezinmesini açar/kapatır. +.It tarayıcı F12 +Web inceleyicisini açar. +.It tarayıcı Ctrl-[ / Ctrl-] +Geçerli sekmenin geçmişinde geri/ileri git +.It tarayıcı Ctrl-p +Geçerli sayfayı yazdır. (bir iletişim kutusu açar) +.It tümü Alt-Left / Alt-Right +Önceki/sonraki sekmeye git +.It tümü F1 +Hakkında iletişim kutusunu göster +.It tümü Alt-n +n herhangi bir sayısal satır tuşudur. n'inci sekmeye git, 0 son sekmeye +gider. +.El +.Ss ÖNTANIMLI OLANLAR +Öntanımlı Webkit/GTK tuş atamalarının bir kısmının listesi: +.Bl -tag -width Ds +.It tümü Ctrl-PageUp / Ctrl-PageDown +Önceki/sonraki sekmeye git +.It arama Ctrl-g / Ctrl-Shift-g +Arama kutusuna odaklanıldığında Sonraki/Önceki arama terimine gider. +.It arama Escape +Geçerli aramayı iptal eder +.It textarea Ctrl-; +Insert Emoji +.El +.Sh ORTAM +.Bl -tag -width Ds +.It Ev BADWOLF_L10N +dil_ÜLKE biçiminde iki nokta üst üste ile ayrılan bir liste; burada dil +ISO-639'da ve ÜLKE ISO-3166'da yer tanımlandığı gibidir. Örneğin: +.Ic BADWOLF_L10N="tr_TR:fr_FR:de_DE" . +Bu değişken ayarlanmadığında, yazım +etkinleştirilmez. Gelecekte daha genel bir değişken adının kullanılması da +amaçlanmaktadır. +.Pp +Desteklenen sözlüklerin listesini görmek için +.Ic enchant-lsmod-2 -list-dicts +komutunu, enchant 2.0 öncesi için +.Ic enchant-lsmod -list-dicts +komutunu çalıştırın +.El +.Sh DOSYALAR +Aşağıdaki yollar, XDG Temel Dizin Tanımlamasını doğru şekilde desteklemek +için +.Xr sh 1 +sözdizimini kullanmaktadır, sisteminizde nerede olduğunu +görmek için +.Xr echo 1 +komutunu kullanabilirsiniz. +.Pp +.Bl -tag -width Ds -compact +.It Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json +WebKit'e özgü içerik filtresi dosyası, istenmeyen içeriğin (reklamlar, +dırdırcı yazılımlar, ...) engellenmesini sağlar. Biçim hakkında bazı +tanıtıcı bilgiler için şuraya bakın: +.Lk https://webkit.org/blog/3476/content-blockers-first-look/ +.Lk https://webkit.org/blog/4062/targeting-domains-with-content-blockers/ +.Lk https://developer.apple.com/documentation/safariservices/creating_a_content_blocker +.Pp +AblockPlus tarzı filtreler kullanan bir dönüştürücü için şunu deneyin: +.Lk https://gitlab.com/eyeo/adblockplus/abp2blocklist +.Pp +Kullanıma hazır (düzenli olarak güncellemeniz gereken) bir dosya için şunu +deneyin: +.Lk https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json +.It Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters +Burası derlenen filtrelerin depolandığı yerdir, içindeki dosya(lar) otomatik +olarak oluşturulur ve bu nedenle düzenlenmemelidir. Burada yalnızca koruma +kısıtlaması/erişim denetimi amacıyla açıklanmaktadır. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel +XBEL (XML Bookmark Exchange Language) file, known to be currently supported +by: +.Xr elinks 1 , +.Xr konqueror 1 , +.Xr kbookmarkeditor 1 . +.Pp +You can do a symbolic link from their path, but you might prefer to use +.Lk https://www.w3.org/TR/xinclude/ XInclude +which is natively supported by +.Nm +to automatically merge multiple XBEL +files. +.Pp +Also the bookmark entries aren't re-sorted, so you might want to put your +most frequently used ones at the top of the file. +.Pp +Bu biçim hakkında daha fazla bilgi için: +.Lk http://pyxml.sourceforge.net/topics/xbel/ +.Pp +Örnek bir XBEL dosyası için: +.Lk https://hacktivis.me/bookmarks.xbel +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/ +Bu dizin şunları içerir +.Lk https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebExtension.html WebKitWebExtensions +şuraya yüklenecek: +.Nm . Not: Bunlar Firefox veya Chrome tarafından desteklenen JavaScript tabanlı Web Uzantıları değil, WebKitGTK API'sini kullanan paylaşılan nesnelerdeki yerel kodlardır. +.Pp +Faydalı uzantı örnekleri şurada bulunabilir: +.Lk https://hacktivis.me/git/badwolf-extensions +.It Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css +.Nm +arayüzünü biçimlendirmek için CSS dosyaları (sırasıyla sistem ve +kullanıcı düzeyinde). Bkz: +.Lk https://docs.gtk.org/gtk3/css-properties.html +kullanılabilir özellikler için. +.Pp +Görünümlerinizi test etmek için +.Nm +başlatılırken +.Ev GTK_DEBUG=interactive +ortam değişkenini kullanmanız ve CSS sekmesine +gitmeniz tavsiye edilir. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/ +Directory containing JS userscripts (ending in +.Ic .js ) +ran at the start +of page loads, nesting down into iframes, useful to override website +behaviors or add missing features to websites. +.Pp +Please note that for now unlike GreaseMonkey-style userscripts, they are +always run, regardless of the hostname / URLs. +.El +.Sh YAZARLAR +.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me +.Sh HATALAR +Katkılarınızı veya biletlerinizi şuraya gönderebilirsiniz +.Lk https://sr.ht/~lanodan/badwolf/ +yamalar için +.Xr git-send-email 1 +ile. diff --git a/badwolf/badwolf.vi.1 b/badwolf/badwolf.vi.1 new file mode 100755 index 0000000..9adc2a9 --- /dev/null +++ b/badwolf/badwolf.vi.1 @@ -0,0 +1,165 @@ +.\" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +.\" Copyright © 2019-2023 Badwolf Authors +.\" SPDX-License-Identifier: BSD-3-Clause +.Dd 2022-07-13 +.Dt BADWOLF 1 +.Os +.Sh NAME +.Nm badwolf +.Nd trình duyệt web tối giản và tôn trọng quyền riêng tư sử dụng WebKitGTK +.Sh TÓM TẮT +.Nm +.Op Ar tuỳ chọn webkit/gtk +.Op Ar URLs hoặc đường dẫn +.Sh MIÊU TẢ +.Nm +là một trình duyệt web tối giản và tôn trọng quyền riêng tư của người dùng. Nó được xây dựng sử dụng WebKitGTK và vì vậy nhận các tuỳ chọn và biến môi trường của WebKitGTK (và các thư viện phụ thuộc), tuy nhiên có vẻ không có trang manpages cho những tuỳ chọn này. +.Pp +Tuỳ chỉnh thời điểm chạy dành riêng cho +.Nm +sẽ có thể được thêm vào trong lần phát hành tới. +.Sh PHÍM TẮT +Phần sau liệt kê các phím tắt và tác dụng, mỗi mục bắt đầu bằng bộ phận được chọn hoặc. +.Aq tất cả +nếu nó có tác dụng với toàn bộ cửa sổ, sau đó là phím tắt để kích hoạt. +.Bl -tag -width Ds +.It trên trang web Ctrl-Lăn chuột +Phóng to/thu nhỏ trang web. +.It trên trang web Ctrl-0 +Đặt lại kích thước về 100%. +.It trên trang web Ctrl-Chuột chính, trên trang web Chuột giữa +Mở đường dẫn trong tab mới. (Ghi chú: JS có thể ghi đè sự kiện này) +.It tất cả Ctrl-t +Tạo tab mới (trong một phiên làm việc mới, tương tự như khi bấm nút) +.It trình duyệt Ctrl-F4, trình duyệt Alt-d +Đóng tab hiện tại +.It trình duyệt Ctrl-f +Kích hoạt chế độ tìm kiếm trong trang +.It trình duyệt Ctrl-l +Đi tới thanh đường dẫn (URL) +.It trình duyệt Ctrl-Shift-r / Ctrl-r, trình duyệt F5 +Tải lại trang ở tab hiện tại (có/không xoá bộ nhớ cache) +.It trình duyệt Esc +Dừng tải trangg ở tab hiện tại +.It trình duyệt F7 +Bật chế độ duyệt bằng con trỏ +.It trình duyệt F12 +Mở +Opens the web inspector. +.It trình duyệt Ctrl-[ / Ctrl-] +Mở trang trước/sau trong lịch sử của tab hiện tại +.It trình duyệt Ctrl-p +Mở hộp thoại để in trang hiện tại +.It tất cả Alt-trái / Alt-phải +Đi tới tab bên trái/phải +.It tất cả F1 +Hiển thị thông tin về trình duyệt +.It tất cả Alt-n +Với n là phím số: +Đi tới tab thứ n; đi tới tab cuối với n=0. +.El +.Ss MẶC ĐỊNH +Đây là danh sách không đầy đủ một số phím tắt mặc định của Webkit/GTK: +.Bl -tag -width Ds +.It tất cả Ctrl-PageUp / Ctrl-PageDown +Đi tới tab bên trái/phải +.It tìm kiếm Ctrl-g / Ctrl-Shift-g +Đi tới vị trí kết quả tìm kiếm tiếp theo/trước đó. +.It tìm kiếm Escape +Thoát chế độ tìm kiếm +.It vùng văn bản Ctrl-; +Chèn biểu tượng cảm xúc +.El +.Sh BIẾN MÔI TRƯỜNG +.Bl -tag -width Ds +.It Ev BADWOLF_L10N +Danh sách theo format lang_COUNTRY với lang là mã ngôn ngữ theo ISO-639 và COUNTRY là mã nước theo ISO-3166, ngắt bằng dấu chấm phẩy. +Ví dụ, +.Ic BADWOLF_L10N="en_GB:fr_FR:de_DE" . +Khi biến này không được cài, chức năng sửa lỗi chính tả không hoạt động. +Trong tương lại, dự định sẽ có một tên biến chung hơn. +.Pp +Để liệt kê danh sách từ điển được hỗ trợ, chạy lệnh: +.Ic enchant-lsmod-2 -list-dicts +hoặc trước enchant 2.0: +.Ic enchant-lsmod -list-dicts +.El +.Sh FILE +Các đường dẫn sau sử dụng cú pháp của +.Xr sh 1 +để hỗ trợ Quy chuẩn Thư mục Căn bản XDG đúng cách, bạn có thể dùng lệnh +.Xr echo 1 +để kiểm tra các thư mục này ở đâu trên hệ thống của mình. +.Pp +.Bl -tag -width Ds -compact +.It Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json +File chứa các bộ lọc nội dung riêng cho WebKit, cho phép bạn chặn nội dung không mong muốn (quảng cáo, làm phiền, ...) +Dưới đây là một số nguồn (bằng tiếng Anh) để biết thêm về định dạng file này: +.Lk https://webkit.org/blog/3476/content-blockers-first-look/ +.Lk https://webkit.org/blog/4062/targeting-domains-with-content-blockers/ +.Lk https://developer.apple.com/documentation/safariservices/creating_a_content_blocker +.Pp +Để chuyển từ bộ lọc kiểu AblockPlus-style filters, có thể thử: +.Lk https://gitlab.com/eyeo/adblockplus/abp2blocklist +.Pp +Dưới đây là một số nguồn bộ lọc có sẵn (cần cập nhật thường xuyên): +.Lk https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json +.It Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters +Đây là nơi các bộ lọc sau khi được phiên dịch, các file trong thư mục này được tự động tạo ra và không nên được chỉnh sửa. +Vị trí thư mục này được ghi chép lại để giúp cho mục đích cách ly và quản lý truy cập. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel +File chứa dấu trang theo định dạng XBEL (XML Bookmark Exchange Language), được hộ trợ bởi các trình duyệt: +.Xr elinks 1 , +.Xr konqueror 1 , +.Xr kbookmarkeditor 1 . +.Pp +Bạn có thể tạo đường dẫn mềm tới file dấu trang của chúng, nhưng bạn có thể muốn sử dụng +.Lk https://www.w3.org/TR/xinclude/ XInclude +được hỗ trợ bởi +.Nm +để tự động kết hợp nhiều file XBEL. +.Pp +Các dấu trang không được sắp xếp lại nên bạn có thể muốn đặt những trang được truy cập thường xuyên lên đầu. +.Pp +Để biết thêm thông tin chi tiết về định dạng file, xem trang (bằng tiếng Anh): +.Lk http://pyxml.sourceforge.net/topics/xbel/ +.Pp +File XBEL mẫu: +.Lk https://hacktivis.me/bookmarks.xbel +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/ +Thư mục chứa +.Lk https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebExtension.html WebKitWebExtensions +để tải cho +.Nm . Ghi chú: Đây không phải các tiện ích mở rộng sử dụng JavaScript như được hỗ trợ bởi Firefox hay Chrome, mà là các thư viện chia sẻ sử dụng API của WebKitGTK. +.Pp +Bạn có thể xem một số tiện ích hữu dụng tại: +.Lk https://hacktivis.me/git/badwolf-extensions +.It Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css +File CSS (ở mức độ hệ thống và người dùng, theo thứ tự trên) để tuỳ chỉnh giao diện của +.Nm . +Xem trang +.Lk https://docs.gtk.org/gtk3/css-properties.html +(tiếng Anh) để biết các thuộc tính có thể sử dụng. +.Pp +Để kiểm tra tuỳ chỉnh CSS, bạn nên bật chế độ debug bằng cách đặt biến môi trường +.Ev GTK_DEBUG=interactive +khi bật trình duyệt +.Nm +và đến tab CSS. +.It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/ +Thư mục chứa script JS của người dùng (kết thúc bằng đuôi +.Ic .js ) +để chạy khi trang cũng như các iframes bắt đầu tải, +hữu ích khi muốn ghi đè các hành vi không mong muốn hoặc thêm tính năng cho trang web. +.Pp +Lưu ý rằng hiện nay, không như script kiểu GreaseMonkey, tất cả đều được chạy, không kể đến URL hay máy chủ được truy cập. +.El +.Sh TÁC GIẢ +.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me +.Sh BÁO LỖI +Bạn có thể đóng góp hoặc báo lỗi tại +.Lk https://sr.ht/~lanodan/badwolf/ +với lệnh +.Xr git-send-email 1 +đối với code. diff --git a/badwolf/bookmarks.c b/badwolf/bookmarks.c new file mode 100755 index 0000000..81102cd --- /dev/null +++ b/badwolf/bookmarks.c @@ -0,0 +1,125 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "bookmarks.h" + +#include "badwolf.h" +#include "config.h" + +#include /* _() and other internationalization/localization helpers */ +#include /* g_fprintf() */ +#include +#include +#include +#include /* access() */ + +static gboolean +location_completion_matches(GtkEntryCompletion *completion, + const gchar *key, + GtkTreeIter *iter, + gpointer UNUSED(user_data)) +{ + gchar *buffer; + gchar *pattern; + gboolean result; + + pattern = g_strdup_printf("*%s*", key); + + gtk_tree_model_get(gtk_entry_completion_get_model(completion), iter, 0, &buffer, -1); + result = g_pattern_match_simple(pattern, buffer); + + g_free(buffer); + g_free(pattern); + return result; +} + +void +bookmarks_completion_setup(GtkEntryCompletion *location_completion, GtkTreeModel *tree_model) +{ + gtk_entry_completion_set_model(location_completion, tree_model); + gtk_entry_completion_set_text_column(location_completion, 0); + gtk_entry_completion_set_match_func(location_completion, location_completion_matches, NULL, NULL); + gtk_entry_completion_set_inline_selection(location_completion, BADWOLF_LOCATION_INLINE_SELECTION); +} + +static void +location_completion_cleanup(xmlXPathObjectPtr xpathObj, xmlXPathContextPtr xpathCtx, xmlDocPtr doc) +{ + if(xpathObj != NULL) xmlXPathFreeObject(xpathObj); + if(xpathCtx != NULL) xmlXPathFreeContext(xpathCtx); + if(doc != NULL) xmlFreeDoc(doc); +} + +static void +load_xpath_results(GtkListStore *list_store, xmlNodeSetPtr nodes) +{ + GtkTreeIter iter; + int size; + + size = (nodes) ? nodes->nodeNr : 0; + + g_fprintf(stderr, _("Bookmarks: Found %d bookmarks.\n"), size); + for(int i = 0; i < size; i++) + if(nodes->nodeTab[i]) + { + gtk_list_store_append(list_store, &iter); + gtk_list_store_set( + list_store, &iter, 0, (char *)xmlXPathCastNodeToString(nodes->nodeTab[i]), -1); + } +} + +GtkTreeModel * +bookmarks_completion_init() +{ + xmlDocPtr doc = NULL; + xmlXPathContextPtr xpathCtx = NULL; + xmlXPathObjectPtr xpathObj = NULL; + + const xmlChar *xpathExpr = (const xmlChar *)"//bookmark/@href"; + char *filename = g_build_filename(g_get_user_data_dir(), "badwolf", "bookmarks.xbel", NULL); + GtkListStore *list_store = gtk_list_store_new(1, G_TYPE_STRING); + + /* flawfinder: ignore, just a presence check */ + if(access(filename, R_OK) != 0) + { + g_fprintf(stderr, _("Bookmarks: No loadable file found at %s\n"), filename); + goto failure; + } + + g_fprintf(stderr, _("Bookmarks: loading at %s\n"), filename); + doc = xmlParseFile(filename); + if(doc == NULL) + { + g_fprintf(stderr, _("Bookmarks: unable to parse file \"%s\"\n"), filename); + goto failure; + } + + xmlXIncludeProcess(doc); + + xpathCtx = xmlXPathNewContext(doc); + if(xpathCtx == NULL) + { + g_fprintf(stderr, _("Bookmarks: unable to create new XPath context\n")); + goto failure; + } + + xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); + if(xpathObj == NULL) + { + g_fprintf(stderr, _("Bookmarks: unable to evaluate XPath expression \"%s\"\n"), xpathExpr); + goto failure; + } + + load_xpath_results(list_store, xpathObj->nodesetval); + + location_completion_cleanup(xpathObj, xpathCtx, doc); + + g_fprintf(stderr, _("Bookmarks: Done.\n")); + + return GTK_TREE_MODEL(list_store); + +failure: + location_completion_cleanup(xpathObj, xpathCtx, doc); + g_free(filename); + return NULL; +} diff --git a/badwolf/bookmarks.h b/badwolf/bookmarks.h new file mode 100755 index 0000000..75e4ff3 --- /dev/null +++ b/badwolf/bookmarks.h @@ -0,0 +1,6 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include +GtkTreeModel *bookmarks_completion_init(); +void bookmarks_completion_setup(GtkEntryCompletion *location_completion, GtkTreeModel *tree_model); diff --git a/badwolf/bookmarks.o b/badwolf/bookmarks.o new file mode 100755 index 0000000000000000000000000000000000000000..fec325c5e56f4fb01a5dc1130514805bc60d77c6 GIT binary patch literal 26968 zcmb`vc|2877w~`0GDitT2$jqg5;A2dAtB1l6*6URlBq!oQ5q;Thf1PSDpD#W8WEus znn+5M`kj5P-E*G()cbq?c=zXX&pG>h)?Rz9tI$VI68duuSPTzVw?amMOO_Q$B!*W$GLS%al%*jAg36LdvbN!#{}9=4&}?Om`H& zWztQNl)ja2#;#*(g{K-ZmRY9!z>PG&{5iTyb-8n{E!81L*U%_e_9M&u{M3Y}CZi)p zhVgP^Cu2ur2S+pz%l{gPF1B*#L?o(tm(qw1s3E|aYerP{I#O(zatkv~R&@Z6{W2G- zkG0%fCA@hPB@R_hFfNtlP0N%wmMOKk&y)d{;Z`ZPEU8w>2B=laZ5FeJbCxNb3apdc z&`HXb);krczL4W#(3JaF0()2jRLwdymUqeK-@?g?6tVJA*ZfU4Z>$xzrZ(jb7_<3( zoP%ZcD~^SlU#xffDu^JzTcuj?E=tnZU_@$Ir@Y2NWYJW84VI>{fNMTrov)@uK%G@m zEwA;w&ry|@sT&k{p;LVY*1?~#jX4bLBMienN;Ol^{gWQTo4b*tlWtmCrnI0OF?KU{ zH}aSNQ4(wODUv5X0NcHzqX5k70tbo@`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~{&!0!=!KJW(w$IsKJ1h)nGc7m?}-c4}4zU4K+@p^Q8eIR#%3YH|! zN6ed`y)5jJEM4A#;2BU4BRJN>P>Wa_9O>mv?IXj-_Wt-NoEhY$#`^858v5xgL(QA| zL91GLD5@ZFO*QIA$n>f%RYh%lnch*WJOV=eLK$%E zsfC4yhB3n<*FxV+>Ziit=qJ4YkBTg%2gQnhFGs44(1t2_{yJ9s&wU=((c=kCWsNX^ zJ@1UMgC;a-rV4uPLH(d-Dk?C|XFUfHr#~an`CBAFkSa))UR03T}^|x0vJp@!p6!@wfJ}$SG9mVr~Dk!Q;p6QU0@z@d+#nej9}6F~+2rEp_5= z{%=toYZ0bCwnzR)Q-9nZ``?pdf9roxggQZ$8f@rT^-p`KGSKtoZ|yI^-?y*+|FloS z?Xg1GN5KoW2Ehq+j5zB2-^Oq0Hr5cgN8?AXB*&jgF;XXLc?|j|^MaH;f!kxns4-Pq zpnVt7fDmIGreyzSe=OL~3wea>M^jzg9>?!I#ZVV`eI<3sD){eF9w_Lvg4<)W(DUhU z?ImQ!8ku52&_T9u#O>ic-mRQEb_9Rk$M}!0vD&B98GQUlh&l*?_H>4hN!ebCp&` +// SPDX-License-Identifier: BSD-3-Clause + +#include "bookmarks.h" + +#include +#include +#include /* setenv */ + +static void +bookmarks_completion_init_test(void) +{ + GtkTreeModel *result; + + char *filename = g_build_filename(g_get_current_dir(), "bookmarks_test.fixtures/full/", NULL); + g_assert_true(setenv("XDG_DATA_HOME", filename, 1) == 0); + + result = bookmarks_completion_init(); + + g_assert_true(result != NULL); + g_free(filename); + g_assert_true(unsetenv("XDG_DATA_HOME") == 0); +} + +int +main(int argc, char *argv[]) +{ + g_test_init(&argc, &argv, NULL); + + g_test_add_func("/bookmarks_completion_init/test", bookmarks_completion_init_test); + + return g_test_run(); +} diff --git a/badwolf/bookmarks_test.fixtures/full/badwolf/bookmarks.xbel b/badwolf/bookmarks_test.fixtures/full/badwolf/bookmarks.xbel new file mode 100755 index 0000000..8bbba33 --- /dev/null +++ b/badwolf/bookmarks_test.fixtures/full/badwolf/bookmarks.xbel @@ -0,0 +1,20 @@ + + + + + + + + Operating Systems + + 9Front + Fork of Plan 9, a Unix successor by Bell Labs + + + LitePubProfile of ActivityPub used by Pleroma et al. + + diff --git a/badwolf/build.ninja b/badwolf/build.ninja new file mode 100755 index 0000000..ddc9223 --- /dev/null +++ b/badwolf/build.ninja @@ -0,0 +1,62 @@ +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause + +# Written by hand, config.ninja is the generated one + +rule po2mo + command = mkdir -p "$$(dirname $out)" && msgfmt -o $out $in + +rule translate_manpage + command = po4a-translate --format man -M utf-8 --master badwolf.1 --po $in --localized $out + +rule scour + command = mkdir -p "$$(dirname $out)" && scour --no-line-breaks --enable-id-stripping --remove-metadata $in $out + +rule gen_icon + command = mkdir -p "$$(dirname $out)" && inkscape -w $width -h $height $in -o $out + +rule run_tests + command = for test in $in; do ./$$test || exit 1; done + +rule install + command = sh -e ./install.sh + +include config.ninja + +build po/manpage.pot: xgettext_man badwolf.1 | po/pot_license.ed +build icons/hicolor/scalable/apps/badwolf.svg: scour badwolf.svg + +build uri_test: cc_exe uri_test.c uri.o +build fmt_test: cc_exe fmt_test.c fmt.o +build bookmarks_test: cc_exe bookmarks_test.c bookmarks.o +build test: run_tests uri_test fmt_test bookmarks_test + +rule list_authors + command = git log --use-mailmap --format='format:%aN <%aE>' --date='format:%Y' | sort | uniq >$out +build AUTHORS: list_authors | .git + +rule format + command = clang-format -style=file -assume-filename=.clang-format -i *.c *.h +build format: format + +rule mandoc + command = $MANDOC -Tlint -Wunsupp,error,warning ./badwolf.1 && $MANDOC -Tlint -Wunsupp,error ./badwolf.*.1 +build lint_mandoc: mandoc + +rule shellcheck + command = $SHELLCHECK ./configure +build lint_shellcheck: shellcheck | ./configure + +rule flawfinder + command = $FLAWFINDER . +build lint_flawfinder: flawfinder + +rule reuse + command = $REUSE lint +build lint_reuse: reuse + +rule true + command = true + +build lint: true | lint_mandoc lint_shellcheck lint_flawfinder lint_reuse +build all: phony badwolf diff --git a/badwolf/config.h b/badwolf/config.h new file mode 100755 index 0000000..cf0aaf6 --- /dev/null +++ b/badwolf/config.h @@ -0,0 +1,112 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef CONFIG_H_INCLUDED +#define CONFIG_H_INCLUDED +/* BADWOLF_TAB_POSITION: Position of the tab listing, can be one of: + * - GTK_POS_TOP + * - GTK_POS_BOTTOM + * - GTK_POS_RIGHT + * - GTK_POS_LEFT + * + * See https://docs.gtk.org/gtk3/enum.PositionType.html + */ +#define BADWOLF_TAB_POSITION GTK_POS_TOP + +/* BADWOLF_TAB_LABEL_CHARWIDTH: Amount of characters the tab label text fits + * Quite conflicts with BADWOLF_TAB_BOX_WIDTH, recommended to only define one + */ +#define BADWOLF_TAB_LABEL_CHARWIDTH 26 + +/* BADWOLF_TAB_BOX_WIDTH: Requested width (in pixels) for the whole tab + * Quite conflicts with BADWOLF_TAB_LABEL_CHARWIDTH, recommended to only define one + */ +//#define BADWOLF_TAB_BOX_WIDTH 120 + +// BADWOLF_TAB_HEXPAND: Should the tab try to fill the available horizontal space? +#define BADWOLF_TAB_HEXPAND FALSE + +/* BADWOLF_TAB_LABEL_ELLIPSIZE: pango ellipsize mode of the tab label text, can be one of: + * - PANGO_ELLIPSIZE_NONE + * - PANGO_ELLIPSIZE_START + * - PANGO_ELLIPSIZE_MIDDLE + * - PANGO_ELLIPSIZE_END + * + * See https://docs.gtk.org/Pango/enum.EllipsizeMode.html + */ +#define BADWOLF_TAB_LABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE + +// BADWOLF_BOX_PADDING: Amount of padding between browser’s box (tab child) elements +#define BADWOLF_BOX_PADDING 0 + +// BADWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements +#define BADWOLF_TOOLBAR_PADDING 0 + +// BADWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements +#define BADWOLF_TOOLBAR_SEPARATOR_PADDING 4 + +// BADWOLF_STATUSBAR_PADDING: Amount of padding between statusbar elements +#define BADWOLF_STATUSBAR_PADDING 0 + +// BADWOLF_DOWNLOAD_PADDING: Amount of padding between download list row-elements +#define BADWOLF_DOWNLOAD_PADDING 5 + +/* BADWOLF_DEFAULT_WIDTH / BADWOLF_DEFAULT_HEIGHT: + * Used to define the default width/height of the window, + * useful for floating Window Managers, probably useless in tiling ones + * + * See https://docs.gtk.org/gtk3/method.Window.set_default_size.html + */ +#define BADWOLF_DEFAULT_WIDTH 800 +#define BADWOLF_DEFAULT_HEIGHT 600 + +/* BADWOLF_WEBKIT_SETTINGS: + * Used when creating a new view with webkit_settings_new_with_settings the usage is: + * setting-name, setting-value, setting-name, …, NULL + * + * See: https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html#properties + */ +// clang-format off +#define BADWOLF_WEBKIT_SETTINGS \ + "default-charset", "utf-8", \ + "enable-caret-browsing", TRUE, \ + "enable-developer-extras", TRUE, \ + "enable-dns-prefetching", FALSE, \ + "enable-hyperlink-auditing", FALSE, \ + "enable-java", FALSE, \ + "enable-javascript-markup", TRUE, \ + "enable-javascript", TRUE, \ + "enable-plugins", FALSE, \ + "javascript-can-access-clipboard", FALSE, \ + "javascript-can-open-windows-automatically", FALSE, \ + "media-playback-requires-user-gesture", TRUE, \ + "minimum-font-size", 12, \ + "allow-top-navigation-to-data-urls", FALSE, \ + NULL +// clang-format on + +/* BADWOLF_STATUSLABEL_ELLIPSIZE: pango ellipsize mode of the status bar label text, can be one of: + * - PANGO_ELLIPSIZE_NONE + * - PANGO_ELLIPSIZE_START + * - PANGO_ELLIPSIZE_MIDDLE + * - PANGO_ELLIPSIZE_END + * + * See https://docs.gtk.org/Pango/enum.EllipsizeMode.html + */ +#define BADWOLF_STATUSLABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE + +/* BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE: pango ellipsize mode of the download destination path, + * can be one of: + * - PANGO_ELLIPSIZE_NONE + * - PANGO_ELLIPSIZE_START + * - PANGO_ELLIPSIZE_MIDDLE + * - PANGO_ELLIPSIZE_END + * + * See https://docs.gtk.org/Pango/enum.EllipsizeMode.html + */ +#define BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE + +// BADWOLF_LOCATION_INLINE_SELECTION: show selected completion as a selection in location entry +#define BADWOLF_LOCATION_INLINE_SELECTION TRUE + +#endif /* CONFIG_H_INCLUDED */ diff --git a/badwolf/config.ninja b/badwolf/config.ninja new file mode 100755 index 0000000..ae59862 --- /dev/null +++ b/badwolf/config.ninja @@ -0,0 +1,108 @@ +# Autogenerated by ./configure +rule gen_config + command = ./configure "" + generator = 1 + +build config.ninja: gen_config configure + +PREFIX = /usr/local +PKGCONFIG = pkg-config +MSGFMT = msgfmt +INKSCAPE = inkscape +CC = cc +CFLAGS = -g -O2 -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla +LDFLAGS = +ED = ed +MANDOC = mandoc +XGETTEXT = xgettext +MSGMERGE = msgmerge +SHELLCHECK = true +FLAWFINDER = true +REUSE = true + +DEPS_cflags = -pthread -I/usr/include/libxml2 -I/usr/include/webkitgtk-4.1 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libsoup-3.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/webkitgtk-4.1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include +DEPS_libs = -lxml2 -lwebkit2gtk-4.1 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsoup-3.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgio-2.0 -ljavascriptcoregtk-4.1 -lgobject-2.0 -lglib-2.0 + +GETTEXT_OPTS = --copyright-holder="Badwolf Authors " --package-name="Badwolf" --package-version="1.3.0" --msgid-bugs-address="contact+badwolf-msgid@hacktivis.me" + +rule xgettext + command = $XGETTEXT --keyword=_ --language=C --from-code=UTF-8 -o $out --add-comments --sort-output --foreign-user --no-location --no-wrap $GETTEXT_OPTS $in && ed -s $out +# SPDX-License-Identifier: BSD-3-Clause + +VERSION=1.3.0 +VERSION_FULL=${VERSION}$(./version.sh) +DEPS="gtk+-3.0 libxml-2.0" + +SRCS="bookmarks.c userscripts.c fmt.c fmt_test.c uri.c uri_test.c keybindings.c downloads.c badwolf.c" +OBJS="bookmarks.o userscripts.o fmt.o uri.o keybindings.o downloads.o badwolf.o" +OBJS_test="fmt_test.o uri_test.o bookmarks_test.o" +EXE=badwolf +EXE_test="fmt_test uri_test bookmarks_test" +DOCS="usr.bin.badwolf README.md KnowledgeBase.md interface.md" + +TRANS="fr pt_BR tr de vi" +TRANS_MAN="de fr tr vi" + +lint_targets="" + +min_webkitgtk=2.32.0 +min_glib_guri=2.66.0 + +arg0="$0" +args="$@" + +usage() { +cat </dev/null ; required + +printf 'Checking %s command existance ...' "${CC}" +command -v "${CC}" >/dev/null ; required + +printf 'Checking %s command existance ...' "${ED}" +if command -v "${ED}" >/dev/null ; is_ok +then + : +else + echo 'Warning: Fixing copyright in po/*.pot files via ed(1) disabled' + ED="false" +fi + +printf 'Checking %s command existance ...' "${MANDOC}" +if command -v "${MANDOC}" >/dev/null ; is_ok +then + lint_targets="${lint_targets} lint_mandoc" +else + echo 'Warning: manpage linting via mandoc(1) disabled' + MANDOC="true" +fi + +printf 'Checking %s command existance ...' "${XGETTEXT}" +if command -v "${XGETTEXT}" >/dev/null ; is_ok +then + if [ "${XGETTEXT}" != "true" ] + then + # This is due to NetBSD base system having a very old version of gettext (0.16) + printf 'Checking if %s --help lists --package-name= option ...' "${XGETTEXT}" + if "${XGETTEXT}" --help 2>&1 | grep -q package-name=; is_ok + then + : + else + echo 'Warning: translation updates disabled, you may want to set XGETTEXT' + XGETTEXT="true" + fi + else + echo 'Warning: translation updates disabled' + fi +else + echo 'Warning: translation updates disabled' + XGETTEXT="true" +fi + +printf 'Checking %s command existance ...' "${MSGMERGE}" +if command -v "${MSGMERGE}" >/dev/null ; is_ok +then + : +else + echo 'Warning: translation updates disabled' + MSGMERGE="true" +fi + +printf 'Checking %s command existance ...' "${SHELLCHECK}" +if command -v "${SHELLCHECK}" >/dev/null ; is_ok +then + lint_targets="${lint_targets} lint_shellcheck" +else + echo 'Warning: shell linting via shellcheck(1) disabled' + SHELLCHECK="true" +fi + +printf 'Checking %s command existance ...' "${FLAWFINDER}" +if command -v "${FLAWFINDER}" >/dev/null ; is_ok +then + lint_targets="${lint_targets} lint_flawfinder" +else + echo 'Warning: C analysis via flawfinder(1) disabled' + FLAWFINDER="true" +fi + +printf 'Checking %s command existance ...' "${REUSE}" +if command -v "${REUSE}" >/dev/null ; is_ok +then + lint_targets="${lint_targets} lint_reuse" +else + echo 'Warning: License linting via reuse(1) disabled' + REUSE="true" +fi + +echo + +# pkg-config +for dep in ${DEPS} +do + pkg_config_check --exists "$dep" || exit 1 +done + +case "${WITH_WEBKITGTK}n" in + 4.1n) + pkg_config_check --atleast-version="${min_webkitgtk}" webkit2gtk-4.1 || exit 1 + DEPS="${DEPS} webkit2gtk-4.1" + ;; + 4.0n) + pkg_config_check --atleast-version="${min_webkitgtk}" webkit2gtk-4.0 || exit 1 + DEPS="${DEPS} webkit2gtk-4.0" + ;; + n) + echo "notice: Packagers should consider setting the ABI version (4.0 or 4.1) in WITH_WEBKITGTK" >&2 + if pkg_config_check --atleast-version="${min_webkitgtk}" webkit2gtk-4.1 + then + DEPS="${DEPS} webkit2gtk-4.1" + else + pkg_config_check --atleast-version="${min_webkitgtk}" webkit2gtk-4.0 || exit 1 + DEPS="${DEPS} webkit2gtk-4.0" + fi + ;; + *) + echo "error: invalid webkit2gtk version in WITH_WEBKITGTK environment variable, must be 4.0 or 4.1" >&2 + exit 1 + ;; +esac + +case "${WITH_URI_PARSER}n" in + gurin) + echo "URI parser selected: GUri from glib-2.0" + pkg_config_check --atleast-version="${min_glib_guri}" glib-2.0 || exit 1 + DEPS="${DEPS} glib-2.0" + ;; + libsoup2n) + echo "URI parser selected: libsoup-2.4" + pkg_config_check libsoup-2.4 || exit 1 + DEPS="${DEPS} libsoup-2.4" + CFLAGS="${CFLAGS} -DUSE_LIBSOUP2" + + if echo "${DEPS}" | grep -q 'webkit2gtk-4.1' + then + echo 'warning: libsoup2 selected while WebKitGTK with libsoup3 API is used' >&2 + fi + ;; + n) + echo "notice: Packagers should consider setting the URI parsing library (guri or libsoup2) in WITH_URI_PARSER" >&2 + + if echo "${DEPS}" | grep -q 'webkit2gtk-4.0' + then + pkg_config_check libsoup-2.4 || exit 1 + echo "URI parser selected: libsoup-2.4" + DEPS="${DEPS} libsoup-2.4" + CFLAGS="${CFLAGS} -DUSE_LIBSOUP2" + else + pkg_config_check --atleast-version="${min_glib_guri}" glib-2.0 || exit 1 + echo "URI parser selected: GUri from glib-2.0" + DEPS="${DEPS} glib-2.0" + fi + ;; + *) + echo "error: invalid uri provider in WITH_URI_PARSER environment variable, must be guri or libsoup2" >&2 + ;; +esac + +printf 'Using pkg-config to get CFLAGS for %s ...' "${DEPS}" +get_cflags() { "${PKGCONFIG}" --cflags "${DEPS}"; } +DEPS_cflags="$(get_cflags)" +required + +printf 'Using pkg-config to get LIBS for %s ...' "${DEPS}" +get_libs() { "${PKGCONFIG}" --libs "${DEPS}"; } +DEPS_libs="$(get_libs)" +required + +echo + +printf 'Writing to configure.h ...' +cat >configure.h <config.ninja <" --package-name="Badwolf" --package-version="${VERSION_FULL}" --msgid-bugs-address="contact+badwolf-msgid@hacktivis.me" + +rule xgettext + command = \$XGETTEXT --keyword=_ --language=C --from-code=UTF-8 -o \$out --add-comments --sort-output --foreign-user --no-location --no-wrap \$GETTEXT_OPTS \$in && ed -s \$out >config.ninja + +for trans in ${TRANS}; do + echo "build po/${trans}.po: msgmerge po/messages.pot" + echo "build locale/${trans}/LC_MESSAGES/Badwolf.mo: po2mo po/${trans}.po" + all="${all} locale/${trans}/LC_MESSAGES/Badwolf.mo" +done >>config.ninja + +for man in ${TRANS_MAN}; do + echo "build po/${man}_man.po: xgettext_man badwolf.1" + echo "build badwolf.${man}.1: translate_manpage po/${man}_man.po" + bundled="${bundled} badwolf.${man}.1" + trans_man="${trans_man} badwolf.${man}.1" +done >>config.ninja + +for i in 24 32 48 64 128 256; do + echo "build icons/hicolor/${i}x${i}/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg + width = $i + height = $i" + bundled="${bundled} icons/hicolor/${i}x${i}" + icons_list="${icons_list} icons/hicolor/${i}x${i}/apps/badwolf.png" +done >>config.ninja + +cat >>config.ninja <install.sh < +doins() { + dir="\${DESTDIR}/\$1"; shift + mkdir -p "\${dir}/" || exit 1 + + echo "\$@ → \${dir}/" + cp -pr "\$@" "\${dir}/" +} +# newins

+newins() { + dir="\${DESTDIR}/\$1" + mkdir -p "\${dir}/" || exit 1 + + echo "\$2 → \${dir}/\$3" + cp -pr "\$2" "\${dir}/\$3" +} + +doins "${BINDIR}" ./badwolf +doins "${MANDIR}/man1" ./badwolf.1 +for man in ${TRANS_MAN}; do + newins "${MANDIR}/\${man}/man1" "./badwolf.\${man}.1" "badwolf.1" +done +doins "${DATADIR}" ./locale +doins "${DATADIR}" ./interface.css +doins "${APPSDIR}" badwolf.desktop +doins "${DOCDIR}" ${DOCS} +doins "${PREFIX}/share" icons + +printf "\nNote: An example AppArmor profile has been installed at '${DOCDIR}/usr.bin.badwolf'\n" +EOF + +is_ok + +echo 'Done, you can now run ninja or samu' diff --git a/badwolf/configure.h b/badwolf/configure.h new file mode 100755 index 0000000..c270b6d --- /dev/null +++ b/badwolf/configure.h @@ -0,0 +1,5 @@ +#define DATADIR "/usr/local/share/badwolf" +#define PACKAGE "Badwolf" +#define _XOPEN_SOURCE 700 +#define _POSIX_C_SOURCE 200809L +#define VERSION "1.3.0" diff --git a/badwolf/decisions.md b/badwolf/decisions.md new file mode 100755 index 0000000..6466e5a --- /dev/null +++ b/badwolf/decisions.md @@ -0,0 +1,77 @@ + + +# Decisions taken over the project lifetime +## What is this? +See +Basically, the idea is to have a file in your projects repo, where you record +the decisions you make over the course of the project's lifetime. +Rewriting history will not be done but Post-Scriptum notices will. + +## 2023-07-23 : Switch from Makefile to *.ninja +Problems: +- Makefile+config.mk pretty much reached it's limits with manpage translations as you can't just string substitute your way out when it's both prefix & suffix. +- meson/CMake/…: Still the same issues. With GNU autotools also becoming more and more problematic: , , + +Solution picked: Transform Makefile into a static build.ninja file, and make configure generate a config.ninja file with the dynamic variables, rules and targets written in. + +## 2021-09-07 : Move to a ./configure script +Problem: WebKitGTK gained a new ABI, changing 4.0 to 4.1 for libsoup3, which itself also meant some changes in badwolf + +Usual solutions: +- meson: It's intended usage of having a separated build directory would mean loosing the ability to provide commands to update translations files, icons, … +- CMake: Same kind of problem as meson, while being significantly more complex and massive +- GNU autotools: Not the kind of thing I would want to depend on, specially given it's automagic behavior +- waf, scons, …: Just problems on themselves +- Bazel: Just no. + +The one I picked: Custom POSIX Shell script. Slightly similar to what musl, ffmpeg, vis, … have been doing. + +## 2020-10-22 : Mark the context_id as A-Z instead of Hex +The way I did it at first was to use the hexadecimal representation, but as it starts from 0 there could be confusions with a shortcut hint for alt-n, there could still be confusion with some kind of tab numbering but with a bit of usage it's hopefully going to be obvious. + +## 2020-07-04 : Automatically switch to a user-created tab / Breaking the UI +I got pointed out that when creating a new tab the user has to needlessly switch to it while it could be done when they request it. +I also decided to still release it in a point release, so without bump of Major because while it does changes the behavior it doesn't break the associated meaning, while this would be a breaking change for an API I could take it as a minor adjustment in a user-interface. + +Note: This would be an API if user-interface interactions could be scripted (like in HaikuOS) but I'm not aware of people actually doing this one with GTK programs. + +## 2020-02-04 & 2020-02-09 : Use BSD extensions in the Makefile +The BSD extensions += and ?= for variable extension is used to avoid having to explicitly pass a list of variables to make, thus making build recipes simpler. +They are also compatible with GNU make so portability shouldn't have significantly dropped. +Which also meant dropping `.POSIX` into the file so `CC` wouldn't be set by default to `c99` (which isn't what I want, the codebase is in C11). + +## 2020-01-30 02:59 : Make window declaration static +This allows to avoid a quite useless memory allocation that would only be freed at the end of the program. + +## 2020-01-22 15:30 : Update copyright to Badwolf Authors +I don't want copyright assignment to me or any organisation, it should belong to every contributor, meaning that any copyright change will need to be accepted by them or their contribution would need to be replaced if need to be. + +## 2020-01-08 08:42:00Z : Start of the decisions.md file +From memory and git log: + +- Changelog is done when preparing for a release, it is copied into the git tag description. This means that there isn't a central file and isn't a changelog entry added with commits. +- OpenPGP is deprecated in favor of signify, reasons being security and portability. +- Prefer using lower and more standard/ubiquitous layers for implementations, one example is the about information with printf and Gtk Dialog rather than a custom scheme in WebKitGTK. + - using GLib instead of POSIX was done at first but the quality/behaviour of GLib (like `g_malloc()` calling `abort()` on errors) reverted this decision. +- WebKitGTK was picked because it is the only WebKit port which is maintained enough without a bus-factor (consider giving QtWebKit a hand too?). +- The `.clang-format` file was copied from the one living in my home directory: + - function declaration is at the start of the line to allow jumping to it with a simple editor + - braces on their own lines to allow for comments space + - "tabs for indentation and space for alignment" style is used for flexibility +- mdoc was picked over other formats for the manpage, as it is implemented in mandoc and GNU groff, much simpler to read/write and transform to other formats (like HTML or Markdown). +- Markdown was picked over other formats for informal documentation, it is a simple format supported by most forges, a format which is easier to write and parse could be considered +- Proprietary systems are not supported for their lack of auditability and transparency. +- C was picked because: + 1. I wanted to avoid being limited by binding completeness or model + 2. I think it is a good language which is fit for this purpose provided you are careful enough (such as using LLVM to it's full potential for checks) + 3. It is portable and doesn't introduces more dependencies than is already needed +- POSIX was picked for it's portability (only known one where it's absent is Windows but it's not going to be supported) +- Writing a portable (almost POSIX-only) Makefile with `pkg-config(1)` was picked over other build systems which tend to be over-complicated and rely on only one implementation. +- Originally the URL entry accepted only valid URLs, this was changed to a bit of heuristics for fixing it when it was entered by the user. +- No search entry is provided, this is to encourage users to avoid search engines as much as possible, support for SmartBookmarks with keywords (similar to DuckDuckGo/Searx !bangs) will be added after support for suggestions via bookmarks +- Bookmarks are first-class citizens as they are data explicitly controlled by the user +- No browsing history is provided, this is to encourage to use and improve bookmarks, it will be added later on with data retention limits, ability to wipe it and non-reachable from WebKit (and so the Wild Web). +- Javascript is turned off by default with a checkbox to enable it temporarily, Permissions Requests (microphone, geolocation, …) are all denied, something similar to uMatrix and NoScript will eventually be done to fix this diff --git a/badwolf/downloads.c b/badwolf/downloads.c new file mode 100755 index 0000000..53bb5ce --- /dev/null +++ b/badwolf/downloads.c @@ -0,0 +1,226 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "downloads.h" + +#include "badwolf.h" +#include "config.h" + +#include /* _() and other internationalization/localization helpers */ + +static void +download_stop_iconCb_clicked(GtkButton *UNUSED(stop_icon), gpointer user_data) +{ + WebKitDownload *webkit_download = (WebKitDownload *)user_data; + + webkit_download_cancel(webkit_download); +} + +void +download_format_elapsed(char *restrict formatted, + size_t formatted_size, + char *restrict format, + int total) +{ + /* flawfinder: ignore, format string only passed by ourselves */ + snprintf(formatted, + formatted_size, + format, + total / 3600, /* hours */ + (total % 3600) / 60, /* minutes */ + total % 60); /* seconds */ +} + +void +download_new_entry(WebKitDownload *webkit_download, struct Download *download) +{ + download->error = 0; + download->container = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BADWOLF_DOWNLOAD_PADDING); + download->progress = gtk_progress_bar_new(); + download->file_path = gtk_label_new(NULL); + download->status = gtk_label_new(_("Download starting…")); + download->icon = + gtk_image_new_from_icon_name("network-idle-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + download->stop_icon = gtk_button_new_from_icon_name("process-stop", GTK_ICON_SIZE_SMALL_TOOLBAR); + + gtk_progress_bar_set_show_text(GTK_PROGRESS_BAR(download->progress), TRUE); + gtk_label_set_ellipsize(GTK_LABEL(download->file_path), BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE); + + g_signal_connect( + download->stop_icon, "clicked", G_CALLBACK(download_stop_iconCb_clicked), webkit_download); + + gtk_box_pack_start(GTK_BOX(download->container), download->icon, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(download->container), download->progress, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(download->container), download->stop_icon, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(download->container), download->status, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(download->container), download->file_path, FALSE, FALSE, 0); + + gtk_list_box_insert(GTK_LIST_BOX(download->window->downloads_tab), download->container, -1); + + gtk_widget_show_all(download->container); +} + +void +downloadCb_created_destination(WebKitDownload *UNUSED(webkit_download), + gchar *destination, + gpointer user_data) +{ + char *markup; + struct Download *download = (struct Download *)user_data; + + markup = g_markup_printf_escaped( + "%s", destination, webkit_uri_for_display(destination)); + + gtk_label_set_markup(GTK_LABEL(download->file_path), markup); + g_free(markup); +} + +gboolean +downloadCb_decide_destination(WebKitDownload *webkit_download, + gchar *suggested_filename, + gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + gint chooser_response; + GtkWindow *parent_window = GTK_WINDOW(browser->window->main_window); + + GtkFileChooserNative *file_dialog = + gtk_file_chooser_native_new(NULL, parent_window, GTK_FILE_CHOOSER_ACTION_SAVE, NULL, NULL); + GtkFileChooser *file_chooser = GTK_FILE_CHOOSER(file_dialog); + + gtk_file_chooser_set_current_name(file_chooser, suggested_filename); + gtk_file_chooser_set_do_overwrite_confirmation(file_chooser, TRUE); + webkit_download_set_allow_overwrite(webkit_download, TRUE); + + chooser_response = gtk_native_dialog_run(GTK_NATIVE_DIALOG(file_dialog)); + + if(chooser_response == GTK_RESPONSE_ACCEPT) + webkit_download_set_destination(webkit_download, gtk_file_chooser_get_uri(file_chooser)); + else + webkit_download_cancel(webkit_download); + + g_object_unref(file_dialog); + + return FALSE; /* Let it propagate */ +} + +void +downloadCb_failed(WebKitDownload *webkit_download, GError *error, gpointer user_data) +{ + struct Download *download = (struct Download *)user_data; + /* flawfinder: ignore. proper buffer limits are used */ + char formatted[BUFSIZ]; + int total = (int)webkit_download_get_elapsed_time(webkit_download); + char *format; + + download->error = error; + + if(g_error_matches(error, WEBKIT_DOWNLOAD_ERROR, WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER)) + format = _("%02i:%02i:%02i Download cancelled"); + else + format = _("%02i:%02i:%02i Download error"); + + download_format_elapsed(formatted, sizeof(formatted), format, total); + + gtk_label_set_text(GTK_LABEL(download->status), formatted); + + gtk_image_set_from_icon_name( + GTK_IMAGE(download->icon), "network-error-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); +} + +void +downloadCb_finished(WebKitDownload *webkit_download, gpointer user_data) +{ + struct Download *download = (struct Download *)user_data; + /* flawfinder: ignore. proper buffer limits are used */ + char formatted[BUFSIZ]; + int total = (int)webkit_download_get_elapsed_time(webkit_download); + + gchar *format_size = g_format_size(webkit_download_get_received_data_length(webkit_download)); + + download_format_elapsed( + formatted, sizeof(formatted), _("%02i:%02i:%02i Download finished"), total); + + gtk_widget_destroy(download->stop_icon); + + if(download->error == 0) + { + gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(download->progress), 1); + gtk_progress_bar_set_text(GTK_PROGRESS_BAR(download->progress), format_size); + gtk_label_set_text(GTK_LABEL(download->status), formatted); + gtk_image_set_from_icon_name( + GTK_IMAGE(download->icon), "network-idle-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + } + + // TODO: Send notification +} + +void +downloadCb_received_data(WebKitDownload *webkit_download, + guint64 UNUSED(data_lenght), + gpointer user_data) +{ + struct Download *download = (struct Download *)user_data; + /* flawfinder: ignore. proper buffer limits are used */ + char formatted[BUFSIZ]; + int total = (int)webkit_download_get_elapsed_time(webkit_download); + + gchar *format_size = g_format_size(webkit_download_get_received_data_length(webkit_download)); + + download_format_elapsed(formatted, sizeof(formatted), _("%02i:%02i:%02i Downloading…"), total); + + gtk_image_set_from_icon_name( + GTK_IMAGE(download->icon), "network-receive-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_label_set_text(GTK_LABEL(download->status), formatted); + gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(download->progress), + webkit_download_get_estimated_progress(webkit_download)); + gtk_progress_bar_set_text(GTK_PROGRESS_BAR(download->progress), format_size); + + g_free(format_size); +} + +GtkWidget * +badwolf_downloads_tab_new() +{ + return gtk_list_box_new(); +} + +void +badwolf_downloads_tab_attach(struct Window *window) +{ + GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL); + gtk_widget_set_name(scrolled_window, "browser__scrollwin_downloads"); + gtk_container_add(GTK_CONTAINER(scrolled_window), window->downloads_tab); + gtk_notebook_insert_page(GTK_NOTEBOOK(window->notebook), scrolled_window, NULL, 0); + + gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(window->notebook), scrolled_window, TRUE); + + GtkWidget *tab_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_name(tab_box, "browser__tabbox"); + GtkWidget *icon = gtk_image_new_from_icon_name("emblem-downloads", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_widget_set_name(icon, "browser__tabbox__icon"); + GtkWidget *label = gtk_label_new(_("Badwolf Downloads")); + gtk_widget_set_name(label, "browser__tabbox__label"); + +#ifdef BADWOLF_TAB_BOX_WIDTH + gtk_widget_set_size_request(label, BADWOLF_TAB_BOX_WIDTH, -1); +#endif +#ifdef BADWOLF_TAB_LABEL_CHARWIDTH + gtk_label_set_width_chars(GTK_LABEL(label), BADWOLF_TAB_LABEL_CHARWIDTH); +#endif + gtk_widget_set_hexpand(tab_box, BADWOLF_TAB_HEXPAND); + + gtk_label_set_ellipsize(GTK_LABEL(label), BADWOLF_TAB_LABEL_ELLIPSIZE); + gtk_label_set_single_line_mode(GTK_LABEL(label), TRUE); + + gtk_box_pack_start(GTK_BOX(tab_box), icon, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(tab_box), label, TRUE, TRUE, 0); + + gtk_widget_set_tooltip_text(tab_box, _("Badwolf Downloads")); + gtk_notebook_set_tab_label(GTK_NOTEBOOK(window->notebook), scrolled_window, tab_box); + gtk_notebook_set_menu_label_text( + GTK_NOTEBOOK(window->notebook), scrolled_window, _("Badwolf Downloads")); + + gtk_widget_show_all(tab_box); +} diff --git a/badwolf/downloads.h b/badwolf/downloads.h new file mode 100755 index 0000000..d06cc67 --- /dev/null +++ b/badwolf/downloads.h @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "badwolf.h" + +#include + +struct Download +{ + struct Window *window; + + GtkWidget *container; + GtkWidget *icon; + GtkWidget *stop_icon; + GtkWidget *file_path; + GtkWidget *progress; + GtkWidget *status; + GError *error; +}; + +void download_new_entry(WebKitDownload *webkit_download, struct Download *download); +void +downloadCb_created_destination(WebKitDownload *download, gchar *destination, gpointer user_data); +gboolean downloadCb_decide_destination(WebKitDownload *download, + gchar *suggested_filename, + gpointer user_data); +void downloadCb_failed(WebKitDownload *webkit_download, GError *error, gpointer user_data); +void downloadCb_finished(WebKitDownload *download, gpointer user_data); +void downloadCb_received_data(WebKitDownload *download, guint64 data_lenght, gpointer user_data); +GtkWidget *badwolf_downloads_tab_new(); +void badwolf_downloads_tab_attach(struct Window *window); diff --git a/badwolf/downloads.o b/badwolf/downloads.o new file mode 100755 index 0000000000000000000000000000000000000000..52959aa07325c3ca37d6c99a2869ba4d9f6d98ff GIT binary patch literal 37096 zcmbuoc|4WR`}lwCL`WsAq?9E>h|*$TQb|aQbnGWP$C9PUQnIz6Rht%3QfOaL6s1T~ zDYPJkR7#8Vz2}^3bie17&mX_vJRZk=&-1?Knrp7PX71(8xotABGUesrVc^8Wn9ul| z!<4~L-1c{WA!m0XV?1LV!#uIC17#&-<2cmZrP3m?#yqxD*oswIUU+nedE(u@7Ns3> z20WGKtjff#TeljN{tz`#sx_w|Pig570j1i+GOtQ~r7H6~rGKboW5BAF6lXA$YRp|~ z%vq068S~Qjay(_F-(^dG3MiFnl-OKBM!rK;n#bOjx#f=Qw=+-tt?_5MdEysjgZUj( zT_kfufcnFgPBaqc>}dQkPc%~G>|Q}f%~Q0IBnQiZ=pD}X1~2FEJam{Uqy8@_$t{r- zp?CusMv2K_BF8C@b226xl_nY`=7}BVDWh)={P_d*!to$U^P~u2Ne22R_?!YeCA0(!dH-|&6C0g%@n5mD7@N{)0yt>YBYcLnJ3m`hjP^>Hkqe@ zJE*>Zs-on~6D!OUZ*jAfGV{dd|LQZawMgvcv=8@GlA$@LGtHB@p0!GBqqLYOg7dlV zY=(+Ia@-3UE{y&Dn?2S%@#Fu%)fy#^25WA)Z>NmFMJe%_}7z|hQBz^@&PM^k26{Y}gaH5y)XJd&OEgYR!wo`UeMnDyuh>9tI_6EvQO3Ya$DCW_qF)w{5XTtN!n5PAen$qtA z)WA`yp-Ov|=qr^Ouu9QD;SL4^rQ4KZD2vK*3iZoUg^ZP2tg+ci5$fiN-CRc`MMz%Z z1~(`6xiGQQJc-*_S2N`Y%X#AlMP#j?vF7+JuQU0=GRUr>jo;6N<$8{oi)}ZDK zt`px=PV6w|dCzg;Ps)jV|Hp~%3`&1({>&k~YowqYO@+}Ve-XP(%^X*0?U_7BSZ zw}U=pawH{Wqmdp1d#;BcV-F7zvljpB;hz7~!{uC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165 zdg8r6>h*|focGPCao&Qd<{T8nPz&@!86>WuM!ipzo~7P53R#yRHp(Ccu5Ql39@K02 z-2E7^&vbSUbPK^bZ$IkIra^3^`L8%Lkm>6|y=M_h1XAzS`;QEI%^nt@tiijSx9@TC zE`C1Li}TnFHT0T2HR`_ssB&Jy2zd|RU^VK+h5powJ2ybxZl2V88_}yp|NkdBN(FK` z{Tc;nU5Nfr39rxL=Kfy4;5>Rvi$ZiE2C%&g7ZCXOB{CF8^`L7)lu#ZebbW(33>$m_xLY&3hg_QKa%D;o}i7dG42LIw_ z;qptNJUn(9l*4|*^7sJG<1G`)4>}eE7ov%ZN_ZVQH}}{7IKPJ4`B(qp7kroKb0txK zp*nHBxc|^~6Q?cs09Tyh4_|b&;D!Px#267nl(!zsEzpT34q771qj~IK_2cLJGihbf zE?FL3XZ@@FB{AHB>f8+{UeS3Jm&ff#*HJ_hIVJqyIdB@3#~V_%2$#o-u^>D@okRpS zDR!2U|Cjwe*nSw;$X*HRgUe(4ODKkHQpX3VeU#+nI2%R{Jg4C1{+7q>xJMoMSNWdl z+!8OaASl4qV2rM_IOX9u-rQH>?!n^+j5)F>gUi3A?GFl3JIzp@&d@$ChdH|5LQN#X zjL`z+asOj^Y(LJ6Q3{bxvb>}+S3-t3K$b`A(Ertca$C9Od!QoJU+CT&m&g70uewnY zMKm!|$sY=!;e;ODk>y1wMuZqesC7SZA)!W`7*KumG=j?ftGr|)S4x^FKx7&J5301y Ab^rhX literal 0 HcmV?d00001 diff --git a/badwolf/fmt.c b/badwolf/fmt.c new file mode 100755 index 0000000..432dccf --- /dev/null +++ b/badwolf/fmt.c @@ -0,0 +1,31 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "fmt.h" + +/* flawfinder: ignore. `alpha_digits` is never modified */ +static const char alpha_digits[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; +void +fmt_context_id(uint64_t num, char *out) +{ + /* flawfinder: ignore. bound checks are done */ + char buf[BADWOLF_CTX_SIZ] = {0, 0, 0, 0, 0, 0, 0}; + int len = 0; + + buf[++len] = ' '; + buf[++len] = ':'; + + buf[++len] = alpha_digits[num % 26]; + num /= 26; + while(num > 0 && len < (BADWOLF_CTX_SIZ - 1)) + { + buf[++len] = alpha_digits[(num - 1) % 26]; + num /= 26; + } + + for(int i = 0; i < len; i++) + { + out[i] = buf[len - i]; + } +} diff --git a/badwolf/fmt.h b/badwolf/fmt.h new file mode 100755 index 0000000..558859c --- /dev/null +++ b/badwolf/fmt.h @@ -0,0 +1,7 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include // uint64_t + +#define BADWOLF_CTX_SIZ 7 +void fmt_context_id(uint64_t num, char *out); diff --git a/badwolf/fmt.o b/badwolf/fmt.o new file mode 100644 index 0000000000000000000000000000000000000000..d8c11bce9d94e456b5ff745a0696628471a45ecf GIT binary patch literal 4784 zcmbtYd010d7Qc@~jEE2xWl?Jo^b?7Jh)Zd$O$f^iMmh>w9kC%Rqz0lPSX^cV;{t*e zr3xa`V%2GD?FecW+fEG(3W!p~WyYyrXB^QA)v0R*>ge42axXld@t>LV^>NPmo$cOp zx7c;@ssuNR0)!|q8w_X!1)#=rK$bD03$`aLR=yH`1vKTL!yDw@ z$N7GR(22G`5Axo$7rLI}!#~QR>#D8t=c*zHOhVUpqp<)!%6As2;$i ziL^3lj%sf5Tfdn%KP7d+!nYSK{w-tf@3j^;o%BAhs#vE_PdB7@rUSQ?!jRT{_s$?6 zbAs1O!D){_23~de`&Bg6H&pI^+s(f-Ul5ymBtJY^Sbr(xv!NgN<;VF6qwRS+JjL;X zeT)8Hzz=Bj(3A!z8!IkfOP?pH)1|j*t8VZg#J*#a*!96XjxK&UXHH;hRq2@T%2F%O zIGS7kP5J98D;&GZDw`Zlw>IwI9B`(+pkt!!fO)rPM_Tj2z@GFH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PXJh7JQHvi>8XjOvg(Ef5(Yp?!mJ<{v%?z@$c?3*y3J=!0_puklhCi*gRy zJ5W!@g~&Y(A%@7gAo^@5Fs@``*pQFoFA_)0Ic@;`Omo#g0d~BN2Zs8G)`-ND{v|=o zRsBUc?ki|#6Nx9-A}F|u55x_vA&!`Hvupqn@Bvt)N}bIEf?t)0f2mfa96}6T!+s;s{6YCXrcg;8*rzz%p=s z>!A%Db?*5g7YbQFl7iDFa1|O*PHub@zK~ueftYjSFG1YZ`qkj|BkP3L&kueip5U%( yqf(iqKAtf8-GEYZG}~LD7lJn#^b-y@97k{@&5&koY2$& literal 0 HcmV?d00001 diff --git a/badwolf/fmt_test.c b/badwolf/fmt_test.c new file mode 100755 index 0000000..74e4d42 --- /dev/null +++ b/badwolf/fmt_test.c @@ -0,0 +1,58 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "fmt.h" + +#include +#include // PRIu64 +#include // UINT64_C + +static void +fmt_context_id_test(void) +{ + struct + { + const char *expect; + uint64_t context_id; + } cases[] = { + // + {"A: ", UINT64_C(0)}, + {"B: ", UINT64_C(1)}, + {"Y: ", UINT64_C(24)}, + {"Z: ", UINT64_C(25)}, + {"AA: ", UINT64_C(26)}, + {"AB: ", UINT64_C(27)}, + {"AZ: ", UINT64_C(51)}, + {"BA: ", UINT64_C(52)}, + {"BB: ", UINT64_C(53)}, + {"QKWW: ", UINT64_C(4294967296)}, // 2^32 + {"JFHI: ", UINT64_C(9223372036854775808)}, // 2^63 + {"TLPO: ", UINT64_C(18446744073709551614)}, // 2^64 -2 + {"TLPP: ", UINT64_C(18446744073709551615)}, // 2^64 -1 (aka UINT64_MAX) + }; + + for(size_t i = 0; i < sizeof(cases) / sizeof(cases[0]); i++) + { + g_info("fmt_context_id(%" PRIu64 ")", cases[i].context_id); + /* flawfinder: ignore. bound checks are done */ + char got[BADWOLF_CTX_SIZ] = {0, 0, 0, 0, 0, 0, 0}; + + fmt_context_id(cases[i].context_id, got); + + if(strncmp(got, cases[i].expect, BADWOLF_CTX_SIZ) != 0) + { + g_error("expected: \"%s\", got: \"%s\"", cases[i].expect, got); + } + } +} + +int +main(int argc, char *argv[]) +{ + g_test_init(&argc, &argv, NULL); + + g_test_add_func("/fmt_context_id/test", fmt_context_id_test); + + return g_test_run(); +} diff --git a/badwolf/icons/hicolor/128x128/apps/badwolf.png b/badwolf/icons/hicolor/128x128/apps/badwolf.png new file mode 100755 index 0000000000000000000000000000000000000000..0fa27e1296b2faf4bd61c5fb7d11d25c354fb648 GIT binary patch literal 8682 zcmbW71yh{87JwIDT#CCDcNTYdcQ4Y#oub9v9SVzUad(#@#a)XQEiMI$?B)9l_nnDM z-pt9wPM(vKXmwRNbQEF~004llATO=?o(BCFfQaw$kf`~@dxGpDZ{Q99kVXC%U=k0m zKff0edC2H{XgPyDyv*G`1H8Pv*leBb-7U>sKC?NySwk*_i2(pgfP%Dyws+2Xu8)h! zivPCQ(N-Jmr3e6XSn-Uq9RSa$8N;fT!OHukW<6uS-H=!=<1>A3!v<5XheB?kX6yb5 z$SIv)K}5@o>x0^6!{<_s(JGd;6d74s8I48B*HPZqW&>y_tk}%|m0Z5O4Sv39Ck=!_V4y103uLO^ML7>}JNAHx4mAd;c zh{s%32^?>paCI;>4wlTHh}#JW36AZcJUe{6JW3m@HaRe&v_W#gm(FhB)&>D@X@ocC zdg~_l#(0%r9ROcY>(ul(FE2tWY*f>)rHx8?V9XtITLVvlgC}BZL&qvzKmI5$Oe=pY za{Z46l_1sxM_30}hYz1(Eg=9S(hd04z5k~QhD?Q*vnP3LgMvDVaMV`pi~@A~?OQ4I zo@HIpWh(jp?#^XKn=oFfW#Xy;cpmwSi85 z9a7=9r{zr!rH!dVq?8K6wW3xywx&0D`g0W3`x>w&PZ98FF8a_hqmvfwel&f3?i>iI zsHotv3M8=)-@g()?Y$$iqv*yo*Kp6n!=faa*7xvijZ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XoYbgH^63r+|2bQruDcy^O6f|Bs!X-F)+0^2jdaW2#~op214yxr*Z8 zF2}p`;fd*RH3rjT;!G*q_$h!1SxfZnzTpr2OTcUWNcDtWgWJRIP{BHCqpv;H4O{7; zQlxVA;mD`71-pjB43lE%p3hH4*4l69ngv`iN6*|H%@*eO_6{CtHnb`3rxD_2H;Zl0 zfOOPdUE_4!D%X!iw0qGWYg$z$4!ZWA@4aF*$Y3Vb&!+hB8nd8-N=kOdBptHU$qe35 z-_9-)6P9WYy0N&n6Jc)Gi+#N~Uzm=7ZJ_*B}Lu@qs zJW4|c!>`4z8z00MKy-9;D4V&eNJ8$dI@`Th5K=1pwhawd{14kCu^V}Sf*BWt&~Urv z@^Yl%bF(mg?`VA%-JOfdFOHHfK=Zg%%q504aL|?y}f4WU3mJ2H+bz! z%gbe>r+lbhXfWc?PoKG*pPR5k{{C%M`KfULtY&$4(YS4fVU;QE^Wu2n!jzMMVuK?ssalY;(RtvqtnHg$b%oG_dE19x{2003kE-&+8`&v&x>3A90L-u>rXt)>`Yc$bb%$TC?s4RU>_A%C@RIo2mv z^R3|s?32)TK4LFgn7wH4U`Sy_p!su!PjCqmUWxCc)hxNO;~5qg z8G~ly=)p}n%>aA-3tjcT%>12)H}|gj)6eO8ML2|v9&=0o{rflA1KWnX{(!r^XGIpDAK%|;02E|YrE4WWh5QdW?$JpA literal 0 HcmV?d00001 diff --git a/badwolf/icons/hicolor/24x24/apps/badwolf.png b/badwolf/icons/hicolor/24x24/apps/badwolf.png new file mode 100755 index 0000000000000000000000000000000000000000..9befcf3daeec5a04ef65fdb4626444340217db1a GIT binary patch literal 1057 zcmV++1m63JP)@^7nRzA5q8nYU+lw)^pnE8Dmd-6{x2EaZn%NB`5oXL2ia%W|=wjUM|2Tu)1 zEf6477sN&~b#IDupM3aFll^|$_V!RH6!7_c?AyB!35*O6lQVMF*{>9ljzz9qpz%a= zLnDJ{2MPE!Hn+C%+sFk6fN;VrlNrB7{?2VOH%0bSh5n; zwuro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F zoIZYx_4nM%w)?kI)(gzfCi$MjgH|;uXLMx60K)>SQNso?uYPG5gLvlccVuw&YEtPG zpMLf!Kiav23y}zad-dhI8V%_}Rq6l5ULJkyG2AZKg5PyL$Jw)IIeqFhreWHXQZ`#b z+JK9#Ahy4_UxveBE>2I=f9FQBx=t|I#cvNBAai_-mbuCwz|+5pVq^lmKEgj7Dzx{`+B)$z%iYVplY~MJ@V+Bdb=fB%Mm}*Z2QI&-!juMZuvtxb*qSZ`{x*)e5z* zE<>>Z*$l~Z|K!BcqukmTX4j5k%&I|rHjW)%i(Ns}S9RZd$H?5=9KF50U`dYr;Q*7f zNg|UGtW>-OfmTgGsmS?bM@Up8kL-S!{_sXTZV#9i`h2cVh6UeWjRUb_`_Ci-e11QD z8~V6BbD7DpKi3cbH%o=Cb!;8p&AnT;ur?GTlg{wrhex#G6#EQY6N?SRB+tWr* zPY)NSA|(EC>{=4y+NqXvjg|`b^5~w&8QwX}#i=RYd+&V;Iej5E)V4JnMy?KwszJF} zV(l#4@ZE9;YkN21TNOfTKB@(sb6u!=j9Lx1+lANTMN?G@`2v}A zhEl%3!@G7j5}>Z7{N@EtXPGgh^!40^S+0_Zp1VG_Y`mfZzuU{?`F|1n>Iz7S)9J+L z^Aqs<3A6_|fA&jeW@gY9OmCmk5N|e_Txy<}Q0d%d+C7X7)t_hn`rX-a}qR;2JGu#hSTO{hDu>w*-&*kv6d9H7vDhpf z9UXWB%lnDSWHNZYUWBqV#IgyL%O&#pJi%aa*#rQ5-%{Y-P+49q7HMy9U*2M)NH&`z z5C|+yK)~E`30RheqNvMVPCRbAP0H)$l!PKBFJS*6e`|9(os`R^8z2zJ<#OTk`C5V_ b#S32piJjDUEd_8K00000NkvXXu0mjfbiCV& literal 0 HcmV?d00001 diff --git a/badwolf/icons/hicolor/48x48/apps/badwolf.png b/badwolf/icons/hicolor/48x48/apps/badwolf.png new file mode 100755 index 0000000000000000000000000000000000000000..8cd38e3cd98c643a6535301ad4959ec2ac788726 GIT bin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3PGiM%%BC|o><;`sKS{%k8k<a6*Zs7?Q#*Q36M6-YtRj3hJQsmL+f6A{xjL$Om3%IT$K@ulAwXWXk&ce9AQhI=3eV32 zEtM6pSA*FBh7Q6gJs+PK;p~MlTie@dsH?|nv2bm05Xs;5h$tDU!~>KzW)e7^PC}bP zNRrGzB*OTmQxzdwjZ{u!bJLKcntSfs$)->Ux66&9$Vf`M~@sq@^Af`SO9nd328xp4yU7ZP81#(VC>52H4wO&P-Ex)^z`%~%L)Ze zMMA=6vthT{Q4|?PR#0RGSym9jz^s_CTC9lD8(9gkSm5==zcaIGh9W~WH8rxir4>=o z86Ws)kw05-#i>y*??!c9 zBR&%)J`-Km>cTU_(*9eNjp+gmqj)l)7wgl>6eB~!$U>s0s~arUfN~p^DV}o7s|-Q` zA*1D0WFcWu%;ml-x6-$el^uF6c)2KQJQ^b&jbSreX>Do-VOoL83w3T*N~h8Q*zJxL z!C5_lWn^q@3?T$}g+fSX=bG=j7@&QF0OvY^JKpwbEuW z8NuJz-0Peuim3>qP*|6piHUIl{C?j`n;eoAYwo8AG5@*Eszs6{tX2#8yo%7$YcWxh riHQk>5cqsPZoR4(KetgVxu5+PqGBAMFE(ZI00000NkvXXu0mjfB4*L= literal 0 HcmV?d00001 diff --git a/badwolf/icons/hicolor/64x64/apps/badwolf.png b/badwolf/icons/hicolor/64x64/apps/badwolf.png new file mode 100755 index 0000000000000000000000000000000000000000..f15a58ace0cffdbdf88cd655133894e658a09207 GIT binary patch literal 3715 zcmV-}4t(*6P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H14iHI1 zK~#90?VEXQWJP|*KUMGbefhqx_Kc4?Y|o6yK+ulJvM{V*L0KRhB>@)xStVkXuu`=7 zCx1AR@&^)%qDUzJpzI={6+zk{AcC-2m>B{C3qxQo#x}N@!}qukyW4%f_bPw1-R^F; zj~RP#6!?y6x?a6{Rlo1I>Q}E`RT**^08RoaK>a@tDd5C1=REmu0`YP}3~0d1z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ze*XG~uAsS^dk6Cc<}>CNLl&Y7IGs)eP!R|a6An_>C)vE)ZwFg(sRCrv%#984;cx$w zYvDM-jt<-|7XhE2BZrTWSW4u2!#X`7C%~G?#PW}&NGvVk^?0x>sHv`I(bCC;XUZ78 z5s4dr72a^!N-_V{2=ASI4~NH3up@{jHM+aIsSE@d{c<$FN>w-(Xs)K75&=Y!5SD3@ zSV|G_`4B)&O)ZfOWTSI8L1r`TfN0q?!=L?*i(?b)-?wl1le~$}V346NE@5P|#WO)y zW1#@0u8>PJ4TEGNiQn%>3Q2uk9nq{Hvt<#sLPFj+*$v8AoV~{TpPZw!Bli*J^ZDrQ z?q+0om~<*#AV5R+x-L-o3Nf--(y0`FpC2g%b#?W`EgPxuOc}#AGV(@x%N7MwG8a|F z_pL;fPd+(AZGAIUl~p($4!ZVsF??w#x2>lXnyY?A08vJO;q_(D( zv~;o*nl2!*nZXoX--tj3L=h!qHxS3jaQ?GT@%XD~sB6G(v#}@G$?(t+M#ex?^*x|K z6x#++xF1;9KmuGYH|_21$mMOc@$qq{zWA6mi=`_fZUv>!mVItH&E=B!E~YP$~+lNPu)Q z#pUs@=i`c#eq~J#rWtLU0q#BDe3R)=YxesjHP+<`-q!jYsZz0jFE36U20?vYpvZSuq=~U zEJiFAyTMuu=g!u80k9Owr36}L9~R4EM8grn^YcgqRTY&~*R?Jiu5S?J#v%V+&xLq=_56X`?Y?>D z+Y(>{OiWB*S-EcC*|}$@izg9}V4Atb8IR}xpa7HSTN$mO(5Q2f*X; zY`eHya!_)1b{4g~@X*w>!vX-2NEiT@%Z0AnwpG?G5g?n*5|8IvslL7*cKOs0dtcjz-EPmv zQ>k0h$qL*+!*_#jARw(!KaLtc>cAcnEC(!002ovPDHLkV1kE@7>57= literal 0 HcmV?d00001 diff --git a/badwolf/icons/hicolor/scalable/apps/badwolf.svg b/badwolf/icons/hicolor/scalable/apps/badwolf.svg new file mode 100755 index 0000000..7d2500d --- /dev/null +++ b/badwolf/icons/hicolor/scalable/apps/badwolf.svg @@ -0,0 +1,2 @@ + + diff --git a/badwolf/icons_size.sh b/badwolf/icons_size.sh new file mode 100755 index 0000000..47f563f --- /dev/null +++ b/badwolf/icons_size.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause + +# Transforms an icon size from the Icon Theme Specification to rsvg-convert(1) options +#sed -r -e 's;^([^x]*)x([^@]*)$;-w \1 -h \2;' -e 's;^([^x]*)x([^@]*)@(.*)$;-w \1 -h \2 -z \3;' +sed -r 's;^([^x]*)x([^@]*)$;-w \1 -h \2;' diff --git a/badwolf/install b/badwolf/install new file mode 100755 index 0000000..655a53a --- /dev/null +++ b/badwolf/install @@ -0,0 +1,31 @@ +# Autogenerated by ./configure + +# doins +doins() { + dir="${DESTDIR}/$1"; shift + mkdir -p "${dir}/" || exit 1 + + echo "$@ → ${dir}/" + cp -pr "$@" "${dir}/" +} +# newins +newins() { + dir="${DESTDIR}/$1" + mkdir -p "${dir}/" || exit 1 + + echo "$2 → ${dir}/$3" + cp -pr "$2" "${dir}/$3" +} + +doins "/usr/local/bin" ./badwolf +doins "/usr/local/share/man/man1" ./badwolf.1 +for man in de fr tr vi; do + newins "/usr/local/share/man/${man}/man1" "./badwolf.${man}.1" "badwolf.1" +done +doins "/usr/local/share/badwolf" ./locale +doins "/usr/local/share/badwolf" ./interface.css +doins "/usr/local/share/applications" badwolf.desktop +doins "/usr/local/share/doc/badwolf-1.3.0" usr.bin.badwolf README.md KnowledgeBase.md interface.md +doins "/usr/local/share" icons + +printf "\nNote: An example AppArmor profile has been installed at '/usr/local/share/doc/badwolf-1.3.0/usr.bin.badwolf'\n" diff --git a/badwolf/install.sh b/badwolf/install.sh new file mode 100755 index 0000000..655a53a --- /dev/null +++ b/badwolf/install.sh @@ -0,0 +1,31 @@ +# Autogenerated by ./configure + +# doins +doins() { + dir="${DESTDIR}/$1"; shift + mkdir -p "${dir}/" || exit 1 + + echo "$@ → ${dir}/" + cp -pr "$@" "${dir}/" +} +# newins +newins() { + dir="${DESTDIR}/$1" + mkdir -p "${dir}/" || exit 1 + + echo "$2 → ${dir}/$3" + cp -pr "$2" "${dir}/$3" +} + +doins "/usr/local/bin" ./badwolf +doins "/usr/local/share/man/man1" ./badwolf.1 +for man in de fr tr vi; do + newins "/usr/local/share/man/${man}/man1" "./badwolf.${man}.1" "badwolf.1" +done +doins "/usr/local/share/badwolf" ./locale +doins "/usr/local/share/badwolf" ./interface.css +doins "/usr/local/share/applications" badwolf.desktop +doins "/usr/local/share/doc/badwolf-1.3.0" usr.bin.badwolf README.md KnowledgeBase.md interface.md +doins "/usr/local/share" icons + +printf "\nNote: An example AppArmor profile has been installed at '/usr/local/share/doc/badwolf-1.3.0/usr.bin.badwolf'\n" diff --git a/badwolf/interface.css b/badwolf/interface.css new file mode 100755 index 0000000..bdc67ac --- /dev/null +++ b/badwolf/interface.css @@ -0,0 +1,7 @@ +/* + * SPDX-FileCopyrightText: 2019-2022 Badwolf Authors + * SPDX-License-Identifier: BSD-3-Clause + */ + +#browser__location, #browser__statuslabel, #browser__tabbox__context_label { font-family: monospace; } +button:checked label { font-weight: bold; } diff --git a/badwolf/interface.md b/badwolf/interface.md new file mode 100755 index 0000000..382e23e --- /dev/null +++ b/badwolf/interface.md @@ -0,0 +1,51 @@ + + +# Badwolf +- A tablist with a new tab button at the end +- right-clicking on the tablist gives you the list in a context-menu format +- middle-clicking on the focused tab closes it +- Each tab contains a Browser View or the Downloads View + +## Tab Labels +- An A-Z represented number identifying the webkit process context +- An icon to indicate if a media is playing +- The title of the web view +- A close button + +## Browser View + +The Browser View contains the following items: +- Toolbar +- WebKit WebView +- Status Bar + +### Toolbar +- Backward navigation button followed by a smaller forward navigation button +- Separator +- Javascript-markup toggler marked "JS" followed by an image-loading toggler marked "IMG" +- Potentially some future elements +- Location entry linked to the WebKit WebView, with integrated progress indication also linked to the WebKit WebView +- Potentially some future elements +- Print button +- Potentially some future elements + +The element focused by default is the location entry. + +### Status bar +- Search entry linked to the WebKit WebView +- Potentially some future elements +- Label showing where the mouse is pointing +- Potentially some future elements + +## Downloads View + +The download view is a table contains the following items on each row corresponding to each download: +- Icon linked to the network status +- Progress bar, with integrated received-size indication +- (when downloading) Cancelling button +- Label about the current status +- Link to download destination +- Potentially some future elements diff --git a/badwolf/keybindings.c b/badwolf/keybindings.c new file mode 100755 index 0000000..e48634e --- /dev/null +++ b/badwolf/keybindings.c @@ -0,0 +1,237 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "keybindings.h" + +#include "badwolf.h" + +#include /* _() */ + + static gboolean +about_dialogCb_activate_link(GtkAboutDialog *about_dialog, gchar *uri, gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, uri, NULL), TRUE); + + gtk_window_close(GTK_WINDOW(about_dialog)); + + return TRUE; +} + + static void +badwolf_about_dialog(GtkWindow *main_window, gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + GtkWidget *about_dialog = gtk_about_dialog_new(); + + char *comments = NULL; + + comments = g_strdup_printf(_("Minimalist and privacy-oriented web browser based on WebKitGTK\n" + "Runtime WebKit version: %d.%d.%d"), + webkit_get_major_version(), + webkit_get_minor_version(), + webkit_get_micro_version()); + + gtk_window_set_transient_for(GTK_WINDOW(about_dialog), main_window); + gtk_window_set_destroy_with_parent(GTK_WINDOW(about_dialog), TRUE); + + gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about_dialog), + "SPDX License Identifiers: BSD-3-Clause AND CC-BY-SA-4.0"); + gtk_about_dialog_set_copyright( + GTK_ABOUT_DIALOG(about_dialog), + "2019-2021 Badwolf Authors "); + gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(about_dialog), homepage); + gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about_dialog), comments); + gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about_dialog), version); + gtk_about_dialog_set_logo_icon_name(GTK_ABOUT_DIALOG(about_dialog), "badwolf"); + + g_signal_connect(about_dialog, "activate-link", G_CALLBACK(about_dialogCb_activate_link), window); + + gtk_dialog_run(GTK_DIALOG(about_dialog)); + gtk_widget_destroy(about_dialog); +} + + static void +toggle_caret_browsing(WebKitWebView *webView) +{ + WebKitSettings *settings = webkit_web_view_get_settings(webView); + + webkit_settings_set_enable_caret_browsing(settings, + !webkit_settings_get_enable_caret_browsing(settings)); + + webkit_web_view_set_settings(webView, settings); +} + +/* commonCb_key_press_event: Global callback for keybindings + * + * Theses shortcuts should be avoided as much as possible: + * - Single key shortcuts (ie. backspace and space) + * - Triple key shortcuts (except for Ctrl+Shift) + * - Unix Terminal shortcuts (specially Ctrl-W) + * + * loosely follows https://developer.gnome.org/hig/guidelines/keyboard.html + */ + gboolean +commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client *browser) +{ + GtkNotebook *notebook = GTK_NOTEBOOK(window->notebook); + + if(((GdkEventKey *)event)->state & GDK_CONTROL_MASK) + { + if(browser != NULL) + { + switch(((GdkEventKey *)event)->keyval) + { + /*case GDK_KEY_F4:*/ + case GDK_KEY_q: + webkit_web_view_try_close(browser->webView); + return TRUE; + case GDK_KEY_w: + webkit_web_view_try_close(browser->webView); + return TRUE; + case GDK_KEY_r: + if(((GdkEventKey *)event)->state & GDK_SHIFT_MASK) + webkit_web_view_reload_bypass_cache(browser->webView); + else + webkit_web_view_reload(browser->webView); + + return TRUE; + case GDK_KEY_f: + gtk_widget_grab_focus(browser->search); + return TRUE; + case GDK_KEY_l: + gtk_widget_grab_focus(browser->location); + return TRUE; + case GDK_KEY_bracketleft: + webkit_web_view_go_back(browser->webView); + return TRUE; + case GDK_KEY_bracketright: + webkit_web_view_go_forward(browser->webView); + return TRUE; + case GDK_KEY_0: + webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(browser->webView), 1); + return TRUE; + case GDK_KEY_p: + webkit_print_operation_run_dialog(webkit_print_operation_new(browser->webView), + GTK_WINDOW(browser->window->main_window)); + return TRUE; + case GDK_KEY_Return: + if(((GdkEventKey *)event)->state & GDK_SHIFT_MASK) + badwolf_new_tab(notebook, new_browser(window, NULL, NULL), TRUE); + + } + } + else + { + if((((GdkEventKey *)event)->keyval >= GDK_KEY_0) && + (((GdkEventKey *)event)->keyval <= GDK_KEY_9)) + gtk_notebook_set_current_page(notebook, (gint)(((GdkEventKey *)event)->keyval - GDK_KEY_1)); + switch(((GdkEventKey *)event)->keyval) + { + case GDK_KEY_Page_Down: + gtk_notebook_next_page(notebook); + return TRUE; + case GDK_KEY_Page_Up: + gtk_notebook_prev_page(notebook); + return TRUE; + case GDK_KEY_t: + badwolf_new_tab(notebook, new_browser(window, NULL, NULL), TRUE); + return TRUE; + } + } + } + + if((((GdkEventKey *)event)->state & GDK_MOD1_MASK)) + { + if((browser != NULL) && (((GdkEventKey *)event)->keyval == GDK_KEY_d)) + { + webkit_web_view_try_close(browser->webView); + return TRUE; + } + + switch(((GdkEventKey *)event)->keyval) + { + case GDK_KEY_Left: + gtk_notebook_prev_page(notebook); + return TRUE; + case GDK_KEY_Right: + gtk_notebook_next_page(notebook); + return TRUE; + } + } + + if(browser != NULL) + { + switch(((GdkEventKey *)event)->keyval) + { + case GDK_KEY_F5: + webkit_web_view_reload(browser->webView); + return TRUE; + case GDK_KEY_Escape: + webkit_web_view_stop_loading(browser->webView); + return TRUE; + case GDK_KEY_F7: + toggle_caret_browsing(browser->webView); + return TRUE; + case GDK_KEY_F12: + webkit_web_inspector_show(webkit_web_view_get_inspector(browser->webView)); + return TRUE; + } + } + else + { + switch(((GdkEventKey *)event)->keyval) + { + case GDK_KEY_F1: + badwolf_about_dialog(GTK_WINDOW(window->main_window), window); + return TRUE; + } + } + + return FALSE; +} + + gboolean +WebViewCb_key_press_event(WebKitWebView *UNUSED(webView), GdkEvent *event, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + if(commonCb_key_press_event(browser->window, event, browser)) return TRUE; + + return FALSE; +} + + gboolean +boxCb_key_press_event(GtkWidget *UNUSED(widget), GdkEvent *event, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + if(commonCb_key_press_event(browser->window, event, browser)) return TRUE; + + return FALSE; +} + + gboolean +main_windowCb_key_press_event(GtkWidget *UNUSED(widget), GdkEvent *event, gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + + if(commonCb_key_press_event(window, event, NULL)) return TRUE; + + return FALSE; +} + + gboolean +tab_boxCb_button_release_event(GtkWidget *UNUSED(widget), GdkEvent *event, gpointer user_data) +{ + struct Client *browser = (struct Client *)user_data; + + if(((GdkEventButton *)event)->button == GDK_BUTTON_MIDDLE) + { + webkit_web_view_try_close(browser->webView); + return TRUE; + } + return FALSE; +} diff --git a/badwolf/keybindings.h b/badwolf/keybindings.h new file mode 100755 index 0000000..7c77d7c --- /dev/null +++ b/badwolf/keybindings.h @@ -0,0 +1,17 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef KEYBINDINGS_H_INCLUDED +#define KEYBINDINGS_H_INCLUDED +#include "badwolf.h" + +#include +#include + +gboolean boxCb_key_press_event(GtkWidget *widget, GdkEvent *event, gpointer user_data); +gboolean commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client *browser); +gboolean main_windowCb_key_press_event(GtkWidget *widget, GdkEvent *event, gpointer user_data); +gboolean WebViewCb_key_press_event(WebKitWebView *webView, GdkEvent *event, gpointer user_data); +gboolean tab_boxCb_button_release_event(GtkWidget *widget, GdkEvent *event, gpointer user_data); + +#endif /* KEYBINDINGS_H_INCLUDED */ diff --git a/badwolf/keybindings.o b/badwolf/keybindings.o new file mode 100755 index 0000000000000000000000000000000000000000..c7f8d8e50e6489e3ae7a085168b9bce139760b98 GIT binary patch literal 39896 zcmeIbd0b6V7x;Y}(4Z2j$Ph{cjUu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J__X$$=^{0P!J}?aGcJ;7#^QV9H{{NFCO=+R~0$G2EQaw1q|6wy(kBA)o zn3fKi9szJv)nuQL-}9MBW$AkO;5s}W9ey54b6A$)Dz%=$zT^*p6Izxt&89N6&i}XN z)u^(xPO{!nr^87e>Te_fj>LXqhaScMR-PLiO7;Up4Jk*CmQbE^%+a!vP+pn{f&wx; zAj?=uo&3%Jhv5NnIq0GNPwy*;{lx$DK7g(QwtLhWJI$wssYK-2x&Pz|r`N$@6A1u8 zJt#jObr>YZpx4*G+3&Cz6s=$%Y5VE9jFcz#hg0lt^{<5o8)e9Uq&!g{c>*pR}KzZ?R6gq&?I>oz8G1 zEPI2xHq3}(kd24(cK?U=ms0Y7vwt_(Pk!Hxwx51$i&R7Gr`KP)epPaTI;T?yyw7$R z?pxUOKjld~o>Le8Rz6;VUBa0Nf&x+v!5ySLTqlPvMfMrIeMImdUz75msVn6Cj}Ub- z2<15$eU4?hC_oPtw^_cWsuT_0zn T`_$jc`|e{)%|HcEmhpc9Xfl$Z literal 0 HcmV?d00001 diff --git a/badwolf/locale/de/LC_MESSAGES/Badwolf.mo b/badwolf/locale/de/LC_MESSAGES/Badwolf.mo new file mode 100755 index 0000000000000000000000000000000000000000..8d3836b065392cf728f065cc93beb467d682802b GIT binary patch literal 5337 zcmcJSOKe;Pp6O-@i+U%l!Esyx}={uMo$;Q{aceRggg4|NbKQ9(?~v zpT7b>itn$3C&9mg9|RwHhY(ZX8Ss8^3;Z_tW$>NgU%>Z)e+Q3(_uMDMXTS&hyaqmj z?=OKY-)mq4Jc7l~gNq>Va~p5(0)GZR0R9qWy?z6-9)AW|-uoZ~%k?P8-{-)Ofr}uo zYl9G7Y=dlyuYz^(>));yrHSp8mZ$Y-t-Pk+=>mZMR30wt#3Vss&2lx^27!D`!BKRaI!L#5GK(_xMK$t(o z2Criq!qwqndD%uR2kSO?*zS+u#qq|^nF=8;`yU0uAUqsfEGPSL@EpYl){*)@Km_pt zyjWhOMX(zX@{su{^R>+hRX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*$!Hk>|MGtsB5B9#y9SVa|5koz{S(UWc&OmMcU;^Xblp}V=kZY)wWRFyHApVp?Q zG%ms^v~VL)$1C_yzv0}f^uOKNBr>kgq|)W zM6l{a-xhj1V(muP>13<7VmMS>)eVMbMpLiEodR*tKJ4NjnX*~=h_55r@g-Mz+Tc{8 zv_u=|I1~_Ta4o_az27ePeq5HgdWO=z%SCTuLK}Beii$ho&(H-{RTdG8|9z_(J+ZhF Z5urX-{|#Nit-{wbZUD|dJ`|nde*lcFEt&uT literal 0 HcmV?d00001 diff --git a/badwolf/locale/fr/LC_MESSAGES/Badwolf.mo b/badwolf/locale/fr/LC_MESSAGES/Badwolf.mo new file mode 100755 index 0000000000000000000000000000000000000000..85eac2777a0fbd6a8135c2189be1acd2f73a03e3 GIT binary patch literal 6093 zcma)=UyNK;9mfxfh@+^0q7{WhW!cs;!|b-uGPQ->rG-kjEoBNQA~01lc;Z+sPVzX2T6=3B!(A!QRC-#?!7a2w%dhC z?|$drd(Q9t{{OzyzutD^cNL$*T%YFp;|)rk0>AZM{_y$PjY{1EUI9M?{sGkBTjl+2 z?^Ehl?%O3Uf_HP@1^0m&xCeXA8-gBzgO@e5FcZ-RG#x1hA>b1!%RJPwK7_NNCj@&btdd3}Tvk20RNIP~vw5ydQiE6o1}zTVeMiILG~0!K2{ML5bVHK=Jq4 z+m-qR_yWiym6!Kl2gRS4LH?=V@aJCeFQC{bNi+}a0Y%PfP~!F_P~vtG6uUi8{PQZf z0R9?$6ukN4g?~?hqIU*94*n37xcw760nQR6iC-U-c>EN+8~k&5|8G$Ixfdg3-SeR6 z^(si%+(+t6bSEV0JzNqO(NR8{>r-6fqZZc#T!h-y&LL28TjDA)koZ@hgM4XLHzi8G zix0)0&PU*3t~oE4~%K%18VoAMqpU;ObKD38k|ISGZi4XSmP#YcDAIhxx8v z?*YX>H*raR$cNN%xgc>7pFPM`|2!l&Gwu1HGybC=i#MV$Hoo>uK^{&iQ_B#D#j zzFiHXAYHru_8{v0?JGZ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QioB$r_d016_k8wfhr2IgVR1?W?hmpj2x=a(n-D)QBZAOwpfc)@L zP7^Yglm<#;(UaHJY|>~Dx~btJ?h-^%9@P&Iaq2$6YpTlx;8NS9~d21K`0|={| AH2?qr literal 0 HcmV?d00001 diff --git a/badwolf/locale/tr/LC_MESSAGES/Badwolf.mo b/badwolf/locale/tr/LC_MESSAGES/Badwolf.mo new file mode 100755 index 0000000000000000000000000000000000000000..ae1727de362e665036c76c2c4a5b7ec13c0c6b36 GIT binary patch literal 5027 zcmb7{O^jq!6~`Z6isgU`qM#rbv>jlkYPx#>hZ+Z%o*BNIp3F4D#OUPKd$+4D@4frV z_t8zYi7}dpY>XtBxa*y$(S+WxvE!y{5))%gG|>$)>R#i*g$Wyf=f0}0>Sh}8reFQv z$2sSo?|b?$w_N|DfOU-PPOdku34$}=q3ifz-F|%#+ymYL-UXfn6?kdF{{h$r{{UVFZ$db?K?)uMEAS@pJD}M8Ls0DeB`Eg% z9u&R*Hhz8=6g_YHNX@qZVp{MRD6TpSo&ui&9|gY$iau9B1-=V@3cRyX%RLSr;dvPp zdj{YG;4i@VnjrWy_ywNNpse__2g?562R|otp!nst;H}_aK?VLBd<47=P~=zO zaqy?0#QGgj_CIuU?e`Pl>pY(xKmQT@tk8jC*MC5vfB0i{96R7MJiiV;EOg)sc*!X2fhJfN^l)cMMQ8j2x)K^DE@AOEpP?A4g419^AHq&ZG(rw-+;G({{qGD*YO~J zzY$yl4}oI$3Ml#Y8Ypsq4T_)s0gAk9an^m{9iV()0vEtZMKr#g>| zHZPrNHD=#DkyS2IbCK#ysP=w;K2xH-?j%O7S^4n{x>R$;9zjBd3hKRID(AV&Ooh48 zrBTjosF%*`vZun#mFAUlkDw{JS=UJ=3^lQNrJtLku$fc$&K36_z|_}yF;;aV)w;<=NE@qL{;v_7K@aOH!%dY$?yx7aYXepGj9Pu}q6$r3+BF-BHW*@D zQRPNy)iGsha#fhH%56DN*_vm;E@#4$U0Ui=R;ko>d!^dYt`u$*5ZQ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^Rdu0`&*TW!eGmD@>f4nOmiYZ}P~gB)(db|9E0DtCq{* zG&xLWi-RL`Lh*rirgauG^&sIw`&RIzgfO&fCBdp#jovCsTR5%G;j-YF-Erlx6(x_w zy06RN0{P+FoXYBHg~8M}D{^?2ZfTm=zD_Xu@`a1b?>obcyIy3E?oJfr;pH%~lQ>G? z_6{=ph6_Ko(50kB`R;Vom(_1ChHuubgW{Qe-SOd92&RT8RelvMg@&@9aOz#@8jj(|k>89j UnvpG%!w0!n8)7JBdw|ye1wG&bCIA2c literal 0 HcmV?d00001 diff --git a/badwolf/locale/vi/LC_MESSAGES/Badwolf.mo b/badwolf/locale/vi/LC_MESSAGES/Badwolf.mo new file mode 100755 index 0000000000000000000000000000000000000000..473912e2d341bbe5c6e92a8ed90c2ea00f5d0e18 GIT binary patch literal 6521 zcmbuDYm6IL700Kg4_GLrEw2)ww`sR6P3&&A327YC$8H`?(@jF^v_Vis8EQ&EK?(IOfu1W{BaOB6y%BeH5m#TwKPjsjm0NPyrIl0iZRRY-iP_<#_G@HTJ~JP3Xc{C4*IXW$0z{|!!qlPE2L^WZ^n3FMV^(+4c;L*T98 z4d7j%_`e<$f4>NdUoj~5e?7ZD0gAm#pve6mBox+PKndAfp!oSVco(>8%(CtWr@#qt z9=sbo1IqhfgHzx;;1+NbPCf`Ofa1qbKn1=HejL03qs5*(!8PE6pv2)2crW-eIDeI8 z{SuUU9{R9ltp=;$XTfiPlE<^4%>N7U7VsZn5xn|F%i0F60~NRcO1{1aZUTP=iXYd1 zB#r9>AX8Z}couvXWQcVy!IODPpy)pUI$#}q4Ezna4qSC}nwJ@HGxz5}4gL+>5AH$u zCGa#zNUcqf0aLAM5Ea%wQ2cN~$@BBs^NXPH@QtS3K4z)sY7JfuiQVS>8!O*1gkNvNDi+lf|zUQh@2 z+DT10VUXy<$&jMKa6NC=n<9`7)`uIBj$UKh>Zm^F>v?o3=rL|uo)@ec4}ULDzXsh zWFd^^ienfQ*(TS0_QZ*e1!;=6`3cF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H3;JvqLY4_n(^&j9_?8xdVLhua zMv$;$iK?42$ii(b5f`5)Q-;8YQQA@w-qa+XLK190)eyNOsup$@N1_BhvpIIxFx_bi zH(_ss6@Mt2W-pq}+h;25kf2F?-<0m#Gj~|jSXRMGqVu|{k>n#yW6PB#s3vstyU3pX z(GGsirTm~6O_*Lvy?aSqJYteW-^gd<3i`8Bb837|;dkbka5H1YWo4b(#q+kIMdk^i zU2^_!3%AQ}h~DWBeC!g9*P_HxvD6@_lI zMQr%cVJ)V5pmvp%QGdcy96?DcMgCHvMpC5I(8cqn4sEC?Rr{3rQj_iQdoE+jae1*d z_^7kWc12ix+_Pr7^elGC*)0p(@|hO(**>OlzJ1&pnxwZVr+n_KWg|H>EHzQ;ijFzb zQu;#u4@^VV^h**Bm@PGerin{0N@|@~e8m!Lw2|T?QoZMr`%q5}=XTfm$Aoyv($PG8-hiB~bSc8s{TUzm26q<$Ju#uW& z`AQ4>nWhkn-u3g`@Zs--idk-1OrK|iKC+QFp9oSU%cm1r7Z<&?>C&>&7eh+q6%BkB z6@x7R1=v2ze`ln`N4-p=)=#O^Ice(eWKc_)neK-o>2GEqmM$SdTIp6IYY;bST%^%e zhnHQt;iY5J%6X>Af=EY{R%#ZSTn}1N%p@$`DbOL7ovaN@8r-m#?tE2?7W%9-y3^SX gg_bHs6{yZR62prViq&2^2FCO8LO9ax%xE0`3q%m&p8x;= literal 0 HcmV?d00001 diff --git a/badwolf/mo/.keep b/badwolf/mo/.keep new file mode 100755 index 0000000..e69de29 diff --git a/badwolf/po/de.po b/badwolf/po/de.po new file mode 100755 index 0000000..6fce56a --- /dev/null +++ b/badwolf/po/de.po @@ -0,0 +1,237 @@ +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.0.3+g1b10b33.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2023-07-31 14:04+0200\n" +"PO-Revision-Date: 2023-07-31 13:57+0200\n" +"Last-Translator: Ben K. \n" +"Language-Team: German\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.3.2\n" + +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i Herunterladen abgebrochen" + +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i Herunterladen fehlgeschlagen" + +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i Fertig Heruntergeladen" + +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i Lade herunter…" + +msgid "Badwolf Downloads" +msgstr "Heruntergeladene Dateien" + +msgid "Bookmarks: Done.\n" +msgstr "Lesezeichen: Erledigt. \n" + +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Lesezeichen: %d Lesezeichen gefunden. \n" + +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Lesezeichen: Keine ladbare Datei unter %s gefunden\n" + +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Lesezeichen: %s geladen\n" + +#, fuzzy +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Lesezeichen: Die Datei \"%s\" konnte nicht geparst werden\n" + +#, fuzzy, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "Lesezeichen: Die Datei \"%s\" konnte nicht geparst werden\n" + +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Lesezeichen: Die Datei \"%s\" konnte nicht geparst werden\n" + +#, fuzzy, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Ausführende WebKit-Version: %d.%d.%d\n" + +msgid "Continue" +msgstr "Weiter" + +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Das TLS-Zertifikat konnte nicht verifiziert werden, um eine bessere " +"Sicherheit der Verbindung sicherzustellen. Sie möchten vielleicht ihr Gerät " +"und ihr Netzwerk überprüfen. \n" + +msgid "Crashed" +msgstr "Abgestürtzt" + +msgid "Download starting…" +msgstr "Download startet…" + +msgid "Empty Title" +msgstr "Kein Titel" + +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "" +"Fehler: Es ist ein unbekannter Fehler beim überprüfen des Zertifikats " +"aufgetreten.\n" + +#, fuzzy +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Fehler: Das Zertifikat wird als unsicher angesehen.\n" + +#, fuzzy +msgid "Error: The certificate has been revoked.\n" +msgstr "" +"Fehler: Das Zertifikat ist abgelaufen. Bitte überprüfen Sie, ob die Uhr " +"ihres Systems richtig eingestellt ist.\n" + +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "" +"Fehler: Das Zertifikat ist abgelaufen. Bitte überprüfen Sie, ob die Uhr " +"ihres Systems richtig eingestellt ist.\n" + +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Fehler: Das Zertifikat wird als unsicher angesehen.\n" + +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "" +"Fehler: Das Zertifikat ist noch nicht gültig. Bitte überprüfen Sie, ob die " +"Uhr ihres Systems richtig eingestellt ist.\n" + +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "" +"Fehler: Die gegebene Identität passt nicht mit der Erwarteten zusammen.\n" + +#, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"Minimalistischer und Privatsphäre-orientierter Internetbrowser basierend of " +"WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" + +msgid "New tab" +msgstr "Neuer Reiter" + +msgid "Open new tab" +msgstr "Neuen Reiter öffnen" + +msgid "Out of Memory" +msgstr "Ihnen scheint der Arbeitsspeicher ausgegangen zu sein! (Out of Memory)" + +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Ausführende Badwolf-Version: %s\n" + +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Ausführende WebKit-Version: %d.%d.%d\n" + +#, c-format +msgid "TLS Error for %s." +msgstr "TLS-Fehler für %s." + +msgid "Temporarily Add Exception" +msgstr "Eine Ausnahme machen" + +msgid "Toggle javascript" +msgstr "JavaScript ein-/ausschalten" + +msgid "Toggle loading images automatically" +msgstr "Das automatische Laden von Bildern ein-/ausschalten" + +msgid "Unknown Crash" +msgstr "Unbekannter Absturz" + +msgid "_IMG" +msgstr "_IMG" + +msgid "_JS" +msgstr "_JS" + +#, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "badwolf: Suche nach Userscripts mit %s \n" + +#, c-format +msgid "badwolf: Error reading userscript: %s\n" +msgstr "badwolf: Fehler beim Leser von Userscript: %s\n" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "" +"badwolf: Kann Userscripts nicht auflisten: Arbeitsspeicher nicht " +"ausreichend\n" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "badwolf: Kann Userscripts nicht auslisten: Lesefehler\n" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "badwolf: Hinweis: %zd Userscripts gefunden\n" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "badwolf: Hinweis: Keine Userscripts gefunden\n" + +#, c-format +msgid "badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n" +msgstr "" +"badwolf: Hinweis: Userscripts werden geladen: %d erfolgreich, %d " +"fehlerhalft\n" + +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "" + +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "" +"badwolf: kompilieren von content-filters.json fehlgeschlagen, err: [%d] %s\n" + +#, fuzzy, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "" +"badwolf: kompilieren von content-filters.json fehlgeschlagen, err: [%d] %s\n" + +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "Inhaltsfilter-Datei wurde gesetzt auf: %s\n" + +msgid "search in current page" +msgstr "Die aktuelle Seite durchsuchen" + +msgid "the web process crashed.\n" +msgstr "Der Webprozess ist abgestürzt.\n" + +msgid "the web process exceeded the memory limit.\n" +msgstr "Der Webprozess hat das Arbeitsspeicherlimit überschritten.\n" + +msgid "the web process terminated for an unknown reason.\n" +msgstr "Der Webprozess wurde aus unbekannten Gründen beendet.\n" + +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +msgid "ø" +msgstr "ø" diff --git a/badwolf/po/de_man.po b/badwolf/po/de_man.po new file mode 100755 index 0000000..445b87c --- /dev/null +++ b/badwolf/po/de_man.po @@ -0,0 +1,607 @@ +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +# +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.2.0+geb77866.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2023-09-19 07:34+0200\n" +"PO-Revision-Date: 2023-07-31 13:36+0200\n" +"Last-Translator: \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.3.2\n" + +#. type: Dd +#: badwolf.1:4 +#, no-wrap +msgid "2022-07-13" +msgstr "2022-07-13" + +#. type: Dt +#: badwolf.1:5 +#, no-wrap +msgid "BADWOLF 1" +msgstr "BADWOLF 1" + +#. type: Sh +#: badwolf.1:7 +#, no-wrap +msgid "NAME" +msgstr "NAME" + +#. type: Plain text +#: badwolf.1:9 +msgid "E<.Nm badwolf>" +msgstr "E<.Nm badwolf>" + +#. type: Nd +#: badwolf.1:9 +#, no-wrap +msgid "minimalist and privacy-oriented web browser based on WebKitGTK" +msgstr "minimalistischer und privatsphäre-orientierter Webbrowser basierend auf WebKitGTK" + +#. type: Sh +#: badwolf.1:10 +#, no-wrap +msgid "SYNOPSIS" +msgstr "ÜBERSICHT" + +#. type: Plain text +#: badwolf.1:14 +msgid "E<.Nm> E<.Op Ar webkit/gtk options> E<.Op Ar URLs or paths>" +msgstr "E<.Nm> E<.Op Ar WebKit-/GTK-Optionen> E<.Op Ar URLs oder Pfade>" + +#. type: Sh +#: badwolf.1:14 +#, no-wrap +msgid "DESCRIPTION" +msgstr "BESCHREIBUNG" + +#. type: Plain text +#: badwolf.1:17 +msgid "" +"E<.Nm> is a minimalist browser that cares about privacy, it is based on " +"WebKitGTK and thus also accepts WebKitGTK (and dependencies) flags and " +"environment variables, unfortunately there doesn't seems to be manpages for " +"theses." +msgstr "" +"E<.Nm> ist ein minimalistischer Webbrowser, der die Privatssphäre seiner " +"Nutzer respektiert. Er basiert auf WebKitGTK und akzeptiert daher alle " +"Optionen und Umgebungsvariablen, die WebKitGTK (und Abhängigkeiten) auch " +"akzeptieren, leider gibt es dafür keine Manpages." + +#. type: Plain text +#: badwolf.1:21 +msgid "" +"Runtime configuration specific to E<.Nm> will probably get added at a later " +"release." +msgstr "" +"Laufzeitspezifische Konfigurationsmöglichkeiten für E<.Nm> werden " +"wahrscheinlich in einer späteren Version hinzugefügt." + +#. type: Sh +#: badwolf.1:21 +#, no-wrap +msgid "KEYBINDINGS" +msgstr "TASTENKOMBINATIONEN" + +#. type: Plain text +#: badwolf.1:25 +msgid "" +"The following section lists the keybinding by their action, each item is " +"described by the widget the focus is on or E<.Aq any> if it works for the " +"whole window, followed by the keybind it grabs." +msgstr "" +"Der folgende Abschnitt listet die unterstützten Tastenkombinationen und ihre " +"Funktionen auf. Vor jeder Tastenkombination steht der greifende Kontext." + +#. type: It +#: badwolf.1:26 +#, no-wrap +msgid "webview Ctrl-Scroll" +msgstr "webview Ctrl-Scroll" + +#. type: Plain text +#: badwolf.1:28 +msgid "Zooms the webpage in/out." +msgstr "Zoomt die Website rein/raus." + +#. type: It +#: badwolf.1:28 +#, no-wrap +msgid "webview Ctrl-0" +msgstr "webview Ctrl-0" + +#. type: Plain text +#: badwolf.1:30 +msgid "Resets webpage zoom to 100%." +msgstr "Setzt den Zoom auf 100% zurück." + +#. type: It +#: badwolf.1:30 +#, no-wrap +msgid "webview Ctrl-MousePrimary, webview MouseMiddle" +msgstr "webview Ctrl-MousePrimary, webview MouseMiddle" + +#. type: Plain text +#: badwolf.1:32 +msgid "" +"Opens the selected link in a new tab. (Note: JS still overrides the event)" +msgstr "" +"Öffnet den hervorgehobenen Link in einem neuen Tab. (Hinweis: Dieses " +"Verhalten kann mit Javascript manipuliert werden)" + +#. type: It +#: badwolf.1:32 +#, no-wrap +msgid "any Ctrl-t" +msgstr "any Ctrl-t" + +#. type: Plain text +#: badwolf.1:34 +msgid "Creates a new tab (in a new session, similar as pressing the button)" +msgstr "" +"Eröffnet einen neuen Tab in einer neuen Sitzung (ähnlich wie der \"Neuer " +"Tab\"-Knopf)" + +#. type: It +#: badwolf.1:34 +#, no-wrap +msgid "browser Ctrl-F4, browser Alt-d" +msgstr "browser Ctrl-F4, browser Alt-d" + +#. type: Plain text +#: badwolf.1:36 +msgid "Closes the current tab" +msgstr "Schließt den aktuellen Tab" + +#. type: It +#: badwolf.1:36 +#, no-wrap +msgid "browser Ctrl-f" +msgstr "browser Ctrl-f" + +#. type: Plain text +#: badwolf.1:38 +msgid "Focuses on the search entry" +msgstr "Hebt das Suchfeld hervor" + +#. type: It +#: badwolf.1:38 +#, no-wrap +msgid "browser Ctrl-l" +msgstr "browser Ctrl-l" + +#. type: Plain text +#: badwolf.1:40 +msgid "Focuses on the location(URL) entry" +msgstr "Hebt die Addresszeile hervor" + +#. type: It +#: badwolf.1:40 +#, no-wrap +msgid "browser Ctrl-Shift-r / Ctrl-r, browser F5" +msgstr "browser Ctrl-Shift-r / Ctrl-r, browser F5" + +#. type: Plain text +#: badwolf.1:42 +msgid "Reloads the content in the current tab (with/without clearing cache)" +msgstr "Lädt den aktuellen Tab neu (jeweils mit und ohne den Cache zu leeren)" + +#. type: It +#: badwolf.1:42 +#, no-wrap +msgid "browser Escape" +msgstr "browser Escape" + +#. type: Plain text +#: badwolf.1:44 +msgid "Stops loading the content in the current tab" +msgstr "Bricht das Laden ab" + +#. type: It +#: badwolf.1:44 +#, no-wrap +msgid "browser F7" +msgstr "browser F7" + +#. type: Plain text +#: badwolf.1:46 +msgid "Toggles caret browsing." +msgstr "Aktiviert den Tastaturmodus (Navigation mit dem Textcursor)" + +#. type: It +#: badwolf.1:46 +#, no-wrap +msgid "browser F12" +msgstr "browser F12" + +#. type: Plain text +#: badwolf.1:48 +msgid "Opens the web inspector." +msgstr "Öffnet die Entwickleroptionen" + +#. type: It +#: badwolf.1:48 +#, no-wrap +msgid "browser Ctrl-[ / Ctrl-]" +msgstr "browser Ctrl-[ / Ctrl-]" + +#. type: Plain text +#: badwolf.1:50 +msgid "Go back/forward in current tab's history" +msgstr "Zur vorherigen/nächsten Seite im Suchverlauf gehen" + +#. type: It +#: badwolf.1:50 +#, no-wrap +msgid "browser Ctrl-p" +msgstr "browser Ctrl-p" + +#. type: Plain text +#: badwolf.1:52 +msgid "Print the current page. (spawns a dialog)" +msgstr "Druckt die aktuelle Seite aus. (Eröffnet Dialogfenster)" + +#. type: It +#: badwolf.1:52 +#, no-wrap +msgid "any Alt-Left / Alt-Right" +msgstr "any Alt-Left / Alt-Right" + +#. type: Plain text +#: badwolf.1:54 badwolf.1:65 +msgid "Go to the previous/next tab" +msgstr "Wechseln zum vorherigen/nächsten Tab" + +#. type: It +#: badwolf.1:54 +#, no-wrap +msgid "any F1" +msgstr "any F1" + +#. type: Plain text +#: badwolf.1:56 +msgid "Shows the about dialog" +msgstr "Zeigt Informationen über das Programm" + +#. type: It +#: badwolf.1:56 +#, no-wrap +msgid "any Alt-n" +msgstr "any Alt-n" + +#. type: Plain text +#: badwolf.1:59 +msgid "" +"Where n is any numeric-row key. Go to the n-th tab, 0 goes to the last one." +msgstr "n ist eine Zahl. Wechseln zum Tab n. 0 wechselt zum letzten Tab." + +#. type: Ss +#: badwolf.1:60 +#, no-wrap +msgid "DEFAULT ONES" +msgstr "STANDARDTASTENKOMBINATIONEN" + +#. type: Plain text +#: badwolf.1:62 +msgid "Here is a incomplete list of the default Webkit/GTK keybindings:" +msgstr "" +"Im Folgenden befindet sich eine unvollständige Liste mit standartmäßigen " +"Webkit-/GTK-Tastenkombinationen:" + +#. type: It +#: badwolf.1:63 +#, no-wrap +msgid "any Ctrl-PageUp / Ctrl-PageDown" +msgstr "any Ctrl-PageUp / Ctrl-PageDown" + +#. type: It +#: badwolf.1:65 +#, no-wrap +msgid "search Ctrl-g / Ctrl-Shift-g" +msgstr "search Ctrl-g / Ctrl-Shift-g" + +#. type: Plain text +#: badwolf.1:67 +msgid "" +"When the search box is focused it goes to the Next/Previous search term." +msgstr "Zum nächsten/vorherigen Suchtreffer gehen" + +#. type: It +#: badwolf.1:67 +#, no-wrap +msgid "search Escape" +msgstr "search Escape" + +#. type: Plain text +#: badwolf.1:69 +msgid "Cancels current search" +msgstr "Bricht die Suche ab" + +#. type: It +#: badwolf.1:69 +#, no-wrap +msgid "textarea Ctrl-;" +msgstr "textarea Ctrl-;" + +#. type: Plain text +#: badwolf.1:71 +msgid "Insert Emoji" +msgstr "Emoji einfügen😚️" + +#. type: Sh +#: badwolf.1:72 +#, no-wrap +msgid "ENVIRONMENT" +msgstr "UMGEBUNGSVARIABLEN" + +#. type: It +#: badwolf.1:74 +#, no-wrap +msgid "Ev BADWOLF_L10N" +msgstr "Ev BADWOLF_L10N" + +#. type: Plain text +#: badwolf.1:80 +msgid "" +"A colon-separated list in the form lang_COUNTRY where lang is in ISO-639 and " +"COUNTRY in ISO-3166. For example E<.Ic BADWOLF_L10N=\"en_GB:fr_FR:" +"de_DE\">. When this variable isn't set, spelling isn't activated. A more " +"generic variable name is also intended to be used in the future." +msgstr "" +"Eine mit Doppelpunkten getrennte List im Format sprache_LAND wo die sprache " +"ISO-639 und das LAND ISO-3166 ist. Z.B.: E<.Ic BADWOLF_L10N=\"en_GB:fr_FR:" +"de_DE\">. Wenn diese Variable nicht gesetzt ist, gibt es keine " +"Rechtschreibprüfung. Der Variablenname könnte in der Zukunft durch einen " +"generischeren ersetzt werden." + +#. type: Plain text +#: badwolf.1:85 +msgid "" +"To get the list of supported dictionaries execute E<.Ic enchant-lsmod-2 -" +"list-dicts> or before enchant 2.0: E<.Ic enchant-lsmod -list-dicts>" +msgstr "" +"Um eine List mit installierten Sprächen zu bekommen, muss E<.Ic enchant-" +"lsmod-2 -list-dicts> ausgeführt werden. Bei Versionen vor enchant 2.0: E<.Ic " +"enchant-lsmod -list-dicts>" + +#. type: Sh +#: badwolf.1:86 +#, no-wrap +msgid "FILES" +msgstr "DATEIEN" + +#. type: Plain text +#: badwolf.1:92 +msgid "" +"The following paths are using E<.Xr sh 1> syntax to correctly support XDG " +"Base Directory Specification, you can use the E<.Xr echo 1> command to check " +"where it is on your system." +msgstr "" +"Die im Folgenden aufgelistetene Pfade benutzen E<.Xr sh 1>-Syntaxe, um der " +"XDG-Base-Directory-Specifation gerecht zu werden. Du kannst den Befehl E<.Xr " +"echo 1> benutzen, um zu gucken, wo das auf dem Computer ist." + +#. type: It +#: badwolf.1:94 +#, no-wrap +msgid "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" +msgstr "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" + +#. type: Plain text +#: badwolf.1:97 +msgid "" +"WebKit-specific content-filter file, this allows to block unwanted content " +"(ads, nagware, ...). For some introductory information about the format see:" +msgstr "" +"WebKit-spezifischer Inhaltsfilter-Datei, mit der unerwünschte Inhalte (z.B. " +"Werbung, Schadsoftware, ...) geblockt werden können. Für mehr Informationen, " +"siehe:" + +#. type: Plain text +#: badwolf.1:102 +msgid "For a converter using AblockPlus-style filters, try:" +msgstr "" +"Es gibt einen Übersetzer, der AdblockPlus-Filterlisten in Webkit-Blocklisten " +"übersetzen kann:" + +#. type: Plain text +#: badwolf.1:105 +msgid "For a ready-to-use file (that you should update periodically), try:" +msgstr "" +"Für eine fertige Datei (die regelmäßig aktualisiert werden sollte), siehe:" + +#. type: It +#: badwolf.1:106 +#, no-wrap +msgid "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" +msgstr "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" + +#. type: Plain text +#: badwolf.1:109 +msgid "" +"This is where the compiled filters are stored, the file(s) in it are " +"automatically generated and so shouldn't be edited. Documented here only " +"for sandboxing / access-control purposes." +msgstr "" +"Hier werden kompilierte Filter gespeichert. Diese Dateien werden automatisch " +"generiert und sollten deswegen nicht bearbeitet werden. Diese Datei wird " +"hier überhaupt nur dokumentiert, damit sie in Sandboxen/Zugriffskontrollen " +"eingearbeitet werden kann." + +#. type: It +#: badwolf.1:109 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" + +#. type: Plain text +#: badwolf.1:114 +msgid "" +"XBEL (XML Bookmark Exchange Language) file, known to be currently supported " +"by: E<.Xr elinks 1>, E<.Xr konqueror 1>, E<.Xr kbookmarkeditor 1>." +msgstr "" +"XBEL (XML Bookmark Exchange Language) Datei, wird momentan unterstützt von: " +"E<.Xr elinks 1>, E<.Xr konqueror 1>, E<.Xr kbookmarkeditor 1>." + +#. type: Plain text +#: badwolf.1:116 +msgid "You can do a symbolic link from their path, but you might prefer to use" +msgstr "" +"Du kannst einfach eine Verknüpfung zu deren Dateien erstellen, aber " +"vielleicht möchtest du lieber" + +#. type: Plain text +#: badwolf.1:120 +msgid "" +"which is natively supported by E<.Nm> to automatically merge multiple XBEL " +"files." +msgstr "" +"benutzen, welches von E<.Nm> systemeigen unterstützt wird und mehrer XBEL-" +"Dateien zusammenfügt." + +#. type: Plain text +#: badwolf.1:122 +msgid "" +"Also the bookmark entries aren't re-sorted, so you might want to put your " +"most frequently used ones at the top of the file." +msgstr "" +"Außerdem werden die Lesezeicheneinträge nicht neusortiert, deswegen ist es " +"eventuell gewünscht, die am häufigsten genutzen Einträge an den Anfang der " +"Datei zu schieben." + +#. type: Plain text +#: badwolf.1:124 +msgid "For more information about this format see:" +msgstr "Für weitere Informationen über dieses Format siehe:" + +#. type: Plain text +#: badwolf.1:127 +msgid "For an example XBEL file see:" +msgstr "Für eine Beispiel-XBEL-Datei siehe:" + +#. type: It +#: badwolf.1:128 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" + +#. type: Plain text +#: badwolf.1:130 +msgid "Directory containing the" +msgstr "Verzeichnis mit den" + +#. type: Plain text +#: badwolf.1:133 +msgid "" +"to be loaded into E<.Nm . Note: They aren't the JavaScript-based Web-" +"Extensions supported by Firefox or Chrome, but native code in shared objects " +"using the WebKitGTK API.>" +msgstr "" +"die in E<.Nm geladen werden sollen. Hinweis: Es handelt sich dabei nicht um " +"Javascript-basierte Erweitungen wie man sie von Firefox oder Chrome kennt, " +"sondern um systemeigenen Code aus Shared Objects der WebKitGTK API.>" + +#. type: Plain text +#: badwolf.1:135 +msgid "Examples of useful extensions may be found at:" +msgstr "Für Beispiele nützlicher Erweiterungen siehe:" + +#. type: It +#: badwolf.1:136 +#, no-wrap +msgid "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" +msgstr "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" + +#. type: It +#: badwolf.1:137 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" + +#. type: Plain text +#: badwolf.1:142 +msgid "" +"CSS files (respectively system and user-level) for styling E<.Nm> " +"interface. See" +msgstr "" +"CSS-Dateien (jeweils System und User-Ebene), um das Aussehen das Interfaces " +"anzupassen. Siehe" + +#. type: Plain text +#: badwolf.1:144 +msgid "for the properties being available." +msgstr "für die zur Verfügung stehen Eigenschaften." + +#. type: Plain text +#: badwolf.1:150 +msgid "" +"For testing your styles I would recommend using the E<.Ev " +"GTK_DEBUG=interactive> environment variable on launching E<.Nm> and going to " +"the CSS tab." +msgstr "" +"Für das Austesten eines Aussehens ist es zu empfehlen die Umgebungsvariable " +"E<.Ev GTK_DEBUG=interactive> biem Start zu setzen und dann in den CSS tab zu " +"gehen." + +#. type: It +#: badwolf.1:150 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/" + +#. type: Plain text +#: badwolf.1:156 +msgid "" +"Directory containing JS userscripts (ending in E<.Ic .js>) ran at the start " +"of page loads, nesting down into iframes, useful to override website " +"behaviors or add missing features to websites." +msgstr "" +"Verzeichnis, welches die JavaScript-Userscripts enthält (Dateiendung E<.Ic ." +"js>), die am Start des Ladens jeder Seite ausgeführt werden und sich auch in " +"iframes verschachteln. Nützlich um Website-Verhalten zu manipulieren oder " +"fehlende Funktionen zu ergänzen." + +#. type: Plain text +#: badwolf.1:159 +msgid "" +"Please note that for now unlike GreaseMonkey-style userscripts, they are " +"always run, regardless of the hostname / URLs." +msgstr "" +"Es ist anzumerken, dass — anders als bei GreaseMonkey-artigen Userscripts — " +"die E<.Nm>-Userscripts immer ausgeführt werden, unabhängig von Hostname/URLs." + +#. type: Sh +#: badwolf.1:160 +#, no-wrap +msgid "AUTHORS" +msgstr "AUTOREN." + +#. type: Plain text +#: badwolf.1:162 +msgid "E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>" +msgstr "" +"E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>, " +"Übersetzung von Ben Kaps" + +#. type: Sh +#: badwolf.1:162 +#, no-wrap +msgid "BUGS" +msgstr "BUGS" + +#. type: Plain text +#: badwolf.1:164 +msgid "You can submit contributions or tickets to" +msgstr "Verbesserungen oder Fehlerberichte können unter " + +#. type: Plain text +#: badwolf.1:167 +msgid "with E<.Xr git-send-email 1> for patches." +msgstr "mit E<.Xr git-send-email 1> für Patches eingereicht werden." diff --git a/badwolf/po/fr.po b/badwolf/po/fr.po new file mode 100755 index 0000000..463e5e0 --- /dev/null +++ b/badwolf/po/fr.po @@ -0,0 +1,221 @@ +# BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 0.3.0+gd88f2e7\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2023-07-16 04:25+0200\n" +"PO-Revision-Date: 2021-04-10 18:43+0200\n" +"Last-Translator: Haelwenn (lanodan) Monnier \n" +"Language-Team: French\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i Téléchargement annulé" + +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i Erreur du téléchargement" + +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i Téléchargement finit" + +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i Téléchargement en cours…" + +msgid "Badwolf Downloads" +msgstr "Téléchargements Badwolf" + +msgid "Bookmarks: Done.\n" +msgstr "Marque-Pages: Terminé.\n" + +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Marque-Pages: %d marque-pages trouvés.\n" + +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Marques-Pages: Aucun fichier chargeable trouvé à %s\n" + +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Marques-Pages: chargement à %s\n" + +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Marques-Pages: Échec à la création du contexte XPath\n" + +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "Marques-Pages: Échec à l'évaluation de l'expression XPath « %s »\n" + +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Marques-Pages: Ëchec au parsage du fichier « %s »\n" + +#, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Version WebKit à la compilation: %d.%d.%d\n" + +msgid "Continue" +msgstr "Continuer" + +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Impossibilité de vérifier le certificat TLS pour assurer une meilleure " +"sécurité de la connection. Pensez potentiellement à vérifier votre machine " +"et son réseau.\n" +"\n" + +msgid "Crashed" +msgstr "Crash" + +msgid "Download starting…" +msgstr "Démarrage du téléchargement" + +msgid "Empty Title" +msgstr "Titre Vide" + +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "" +"Erreur : Une erreur inconnue est apparue pendant la validation du " +"certificat.\n" + +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Erreur : L'autorité de certification (CA X509) est inconnue.\n" + +msgid "Error: The certificate has been revoked.\n" +msgstr "Erreur : Le certificat à été révoqué.\n" + +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "Erreur : Le certificat a expiré.\n" + +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Erreur : Le certificat est considéré comme non-sécurisé.\n" + +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "Erreur : Le certificat n'est pas encore valide.\n" + +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "Erreur : L'identité ne correspond pas à celle attendue.\n" + +#, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"Navigateur WebKitGTK+ minimaliste et orienté vie privée\n" +"Version WebKit au lancement: %d.%d.%d" + +msgid "New tab" +msgstr "Nouvel onglet" + +msgid "Open new tab" +msgstr "Ouvrir un nouvel onglet" + +msgid "Out of Memory" +msgstr "Manque de Mémoire" + +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Version de Badwolf: %s\n" + +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Version WebKit au lancement: %d.%d.%d\n" + +#, c-format +msgid "TLS Error for %s." +msgstr "Erreur TLS pour %s." + +msgid "Temporarily Add Exception" +msgstr "Ajouter Temporairement une Exception" + +msgid "Toggle javascript" +msgstr "(Dés)activer javascript" + +msgid "Toggle loading images automatically" +msgstr "(Dés)activer le chargement automatique des images" + +msgid "Unknown Crash" +msgstr "Crash inconnu" + +msgid "_IMG" +msgstr "_IMG" + +msgid "_JS" +msgstr "_JS" + +#, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "badwolf: Recherche de userscripts correspondant à %s\n" + +#, c-format +msgid "badwolf: Error reading userscript: %s\n" +msgstr "badwolf: Erreur de lecture d'usercript: %s\n" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "badwolf: Échec de listage des userscripts : Manque de mémoire\n" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "badwolf: Échec de listage des userscripts : Erreur de lecture\n" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "badwolf: Notice: %zd userscripts trouvés\n" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "badwolf: Notice: Aucun userscripts trouvés\n" + +#, c-format +msgid "badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n" +msgstr "badwolf: Notice: Chargement des userscripts: %d chargés, %d en erreur\n" + +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "badwolf: content-filter chargé, ajout à content-manager…\n" + +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "badwolf: échec de compilation de content-filters.json, err: [%d] %s\n" + +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: échec de chargement de content-filter, err: [%d] %s\n" + +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "Fichier content-filters configuré à: %s\n" + +msgid "search in current page" +msgstr "recherche dans la page courante" + +msgid "the web process crashed.\n" +msgstr "le processus web a cessé de fonctionner.\n" + +msgid "the web process exceeded the memory limit.\n" +msgstr "le processus web a dépassé la limitation de mémoire.\n" + +msgid "the web process terminated for an unknown reason.\n" +msgstr "le processus web s’est interrompu pour une raison inconnue.\n" + +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "Répertoire webkit-web-extension configuré à %s\n" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +msgid "ø" +msgstr "" diff --git a/badwolf/po/fr_man.po b/badwolf/po/fr_man.po new file mode 100755 index 0000000..4a86d39 --- /dev/null +++ b/badwolf/po/fr_man.po @@ -0,0 +1,606 @@ +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2023-03-17 08:18+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: Dd +#: badwolf.1:4 +#, no-wrap +msgid "2022-07-13" +msgstr "2022-07-13" + +#. type: Dt +#: badwolf.1:5 +#, no-wrap +msgid "BADWOLF 1" +msgstr "BADWOLF 1" + +#. type: Sh +#: badwolf.1:7 +#, no-wrap +msgid "NAME" +msgstr "NAME" + +#. type: Plain text +#: badwolf.1:9 +msgid "E<.Nm badwolf>" +msgstr "E<.Nm badwolf>" + +#. type: Nd +#: badwolf.1:9 +#, no-wrap +msgid "minimalist and privacy-oriented web browser based on WebKitGTK" +msgstr "navigateur minimaliste et orienté vie-privée basé sur WebKitGTK" + +#. type: Sh +#: badwolf.1:10 +#, no-wrap +msgid "SYNOPSIS" +msgstr "SYNOPSIS" + +#. type: Plain text +#: badwolf.1:14 +msgid "E<.Nm> E<.Op Ar webkit/gtk options> E<.Op Ar URLs or paths>" +msgstr "E<.Nm> E<.Op Ar options webkit/gtk> E<.Op Ar URLs or chemins>" + +#. type: Sh +#: badwolf.1:14 +#, no-wrap +msgid "DESCRIPTION" +msgstr "DESCRIPTION" + +#. type: Plain text +#: badwolf.1:17 +msgid "" +"E<.Nm> is a minimalist browser that cares about privacy, it is based on " +"WebKitGTK and thus also accepts WebKitGTK (and dependencies) flags and " +"environment variables, unfortunately there doesn't seems to be manpages for " +"theses." +msgstr "" +"E<.Nm> est un navigateur minimaliste qui prend soin de la vie privée, c'est " +"basé WebKitGTK et accept donc les options et variables d'environements de " +"WebKitGTK et ses dépendances, malheuresement il ne semble pas avoir de pages " +"de man pour celles-ci." + +#. type: Plain text +#: badwolf.1:21 +msgid "" +"Runtime configuration specific to E<.Nm> will probably get added at a later " +"release." +msgstr "" +"Une configuration dynamique spécifique à E<.Nm> sera sans doute rajoutée " +"dans une version suivante." + +#. type: Sh +#: badwolf.1:21 +#, no-wrap +msgid "KEYBINDINGS" +msgstr "RACCOURCIS" + +#. type: Plain text +#: badwolf.1:25 +msgid "" +"The following section lists the keybinding by their action, each item is " +"described by the widget the focus is on or E<.Aq any> if it works for the " +"whole window, followed by the keybind it grabs." +msgstr "" +"Cette section liste les raccourcis et leurs actions, chaque point est décris " +"avec le widget actif ou avec E<.Aq tout> quand il fonctionne sur la fenêtre " +"entière, suivit par le raccourcis." + +#. type: It +#: badwolf.1:26 +#, no-wrap +msgid "webview Ctrl-Scroll" +msgstr "vueweb Ctrl-Défilement" + +#. type: Plain text +#: badwolf.1:28 +msgid "Zooms the webpage in/out." +msgstr "(Dé)-Grossir le zoom de la page." + +#. type: It +#: badwolf.1:28 +#, no-wrap +msgid "webview Ctrl-0" +msgstr "vueweb Ctrl-0" + +#. type: Plain text +#: badwolf.1:30 +msgid "Resets webpage zoom to 100%." +msgstr "Remettre le zoom de la page à 100%." + +#. type: It +#: badwolf.1:30 +#, no-wrap +msgid "webview Ctrl-MousePrimary, webview MouseMiddle" +msgstr "vueweb Ctrl-SourisPremier, vueweb SourisMilieu" + +#. type: Plain text +#: badwolf.1:32 +msgid "" +"Opens the selected link in a new tab. (Note: JS still overrides the event)" +msgstr "" +"Ouvrir le lien sélectionné dans un nouvel onglet. (Note: JS modifie quand-" +"même l'action)" + +#. type: It +#: badwolf.1:32 +#, no-wrap +msgid "any Ctrl-t" +msgstr "tout Ctrl-t" + +#. type: Plain text +#: badwolf.1:34 +msgid "Creates a new tab (in a new session, similar as pressing the button)" +msgstr "" +"Créer un nouvel onglet (dans une nouvelle session, comme un apuis sur le " +"bouton dédié)" + +#. type: It +#: badwolf.1:34 +#, no-wrap +msgid "browser Ctrl-F4, browser Alt-d" +msgstr "navigateur Ctrl-F4, navigateur Alt-d" + +#. type: Plain text +#: badwolf.1:36 +msgid "Closes the current tab" +msgstr "Fermer l'onglet courant." + +#. type: It +#: badwolf.1:36 +#, no-wrap +msgid "browser Ctrl-f" +msgstr "navigateur Ctrl-f" + +#. type: Plain text +#: badwolf.1:38 +msgid "Focuses on the search entry" +msgstr "Aller dans le champ de recherche." + +#. type: It +#: badwolf.1:38 +#, no-wrap +msgid "browser Ctrl-l" +msgstr "navigateur Ctrl-l" + +#. type: Plain text +#: badwolf.1:40 +msgid "Focuses on the location(URL) entry" +msgstr "Aller dans la barre d'URL." + +#. type: It +#: badwolf.1:40 +#, no-wrap +msgid "browser Ctrl-Shift-r / Ctrl-r, browser F5" +msgstr "navigateur Ctrl-Maj-r / Ctrl-r, navigateur F5" + +#. type: Plain text +#: badwolf.1:42 +msgid "Reloads the content in the current tab (with/without clearing cache)" +msgstr "" +"Recharger le contenu dans l'onglet courant (avec/sans nettoyer le cache)." + +#. type: It +#: badwolf.1:42 +#, no-wrap +msgid "browser Escape" +msgstr "navigateur Échap" + +#. type: Plain text +#: badwolf.1:44 +msgid "Stops loading the content in the current tab" +msgstr "Arrêter le chargement dans l'onglet courant." + +#. type: It +#: badwolf.1:44 +#, no-wrap +msgid "browser F7" +msgstr "navigateur F7" + +#. type: Plain text +#: badwolf.1:46 +msgid "Toggles caret browsing." +msgstr "(Dé)-Activer la navigation par curseur." + +#. type: It +#: badwolf.1:46 +#, no-wrap +msgid "browser F12" +msgstr "navigateur F12" + +#. type: Plain text +#: badwolf.1:48 +msgid "Opens the web inspector." +msgstr "Ouvrir les outils de dévelopement." + +#. type: It +#: badwolf.1:48 +#, no-wrap +msgid "browser Ctrl-[ / Ctrl-]" +msgstr "navigateur Ctrl-[ / Ctrl-]" + +#. type: Plain text +#: badwolf.1:50 +msgid "Go back/forward in current tab's history" +msgstr "Naviguer dans l'historique courrant précédent/suivant." + +#. type: It +#: badwolf.1:50 +#, no-wrap +msgid "browser Ctrl-p" +msgstr "navigateur Ctrl-p" + +#. type: Plain text +#: badwolf.1:52 +msgid "Print the current page. (spawns a dialog)" +msgstr "Imprimer la page courante. (ouvre une nouvelle fenêtre)" + +#. type: It +#: badwolf.1:52 +#, no-wrap +msgid "any Alt-Left / Alt-Right" +msgstr "tout Alt-Gauche / Alt-Droite" + +#. type: Plain text +#: badwolf.1:54 badwolf.1:65 +msgid "Go to the previous/next tab" +msgstr "Aller à l'onglet précédent/suivant." + +#. type: It +#: badwolf.1:54 +#, no-wrap +msgid "any F1" +msgstr "tout F1" + +#. type: Plain text +#: badwolf.1:56 +msgid "Shows the about dialog" +msgstr "Montrer la fenêtre d'À Propos." + +#. type: It +#: badwolf.1:56 +#, no-wrap +msgid "any Alt-n" +msgstr "tout Alt-n" + +#. type: Plain text +#: badwolf.1:59 +msgid "" +"Where n is any numeric-row key. Go to the n-th tab, 0 goes to the last one." +msgstr "" +"Où n est n'importe quelle touche de la barre numérique.\n" +"Aller à l'onglet n, 0 va au dernier." + +#. type: Ss +#: badwolf.1:60 +#, no-wrap +msgid "DEFAULT ONES" +msgstr "PAR DÉFAULTS" + +#. type: Plain text +#: badwolf.1:62 +msgid "Here is a incomplete list of the default Webkit/GTK keybindings:" +msgstr "" +"Ceci est une liste incomplète des raccourcis par défaults dans WebKit/GTK:" + +#. type: It +#: badwolf.1:63 +#, no-wrap +msgid "any Ctrl-PageUp / Ctrl-PageDown" +msgstr "tout Ctrl-PageUp / Ctrl-PageDown" + +#. type: It +#: badwolf.1:65 +#, no-wrap +msgid "search Ctrl-g / Ctrl-Shift-g" +msgstr "recherche Ctrl-g / Ctrl-Maj-g" + +#. type: Plain text +#: badwolf.1:67 +msgid "" +"When the search box is focused it goes to the Next/Previous search term." +msgstr "" +"Quand le champ de recherche est actif, aller au résultat précédent/suivant." + +#. type: It +#: badwolf.1:67 +#, no-wrap +msgid "search Escape" +msgstr "recherche Échap" + +#. type: Plain text +#: badwolf.1:69 +msgid "Cancels current search" +msgstr "Annule la recherche actuelle." + +#. type: It +#: badwolf.1:69 +#, no-wrap +msgid "textarea Ctrl-;" +msgstr "champ-texte Ctrl-;" + +#. type: Plain text +#: badwolf.1:71 +msgid "Insert Emoji" +msgstr "Insérer un Émoji" + +#. type: Sh +#: badwolf.1:72 +#, no-wrap +msgid "ENVIRONMENT" +msgstr "ENVIRONMENT" + +#. type: It +#: badwolf.1:74 +#, no-wrap +msgid "Ev BADWOLF_L10N" +msgstr "Ev BADWOLF_L10N" + +#. type: Plain text +#: badwolf.1:80 +msgid "" +"A colon-separated list in the form lang_COUNTRY where lang is in ISO-639 and " +"COUNTRY in ISO-3166. For example E<.Ic BADWOLF_L10N=\"en_GB:fr_FR:" +"de_DE\">. When this variable isn't set, spelling isn't activated. A more " +"generic variable name is also intended to be used in the future." +msgstr "" +"Une liste séparé par des deux-points dans le format langue_PAYS où la langue " +"est en ISO-639 et le PAYS en ISO-3166.\n" +"Par example E<.Ic BADWOLF_L10N=\"en_GB:fr_FR:de_DE\">.\n" +"Quand cette variable n'est pas configuré, la correction orthographique est " +"désactivée.\n" +"Un nom plus générique est voulu pour le futur." + +#. type: Plain text +#: badwolf.1:85 +msgid "" +"To get the list of supported dictionaries execute E<.Ic enchant-lsmod-2 -" +"list-dicts> or before enchant 2.0: E<.Ic enchant-lsmod -list-dicts>" +msgstr "" +"Pour avoir la liste des dictionaires installés, executez: E<.Ic enchant-" +"lsmod-2 -list-dicts> ou avant enchant 2.0: E<.Ic enchant-lsmod -list-dicts>" + +#. type: Sh +#: badwolf.1:86 +#, no-wrap +msgid "FILES" +msgstr "FICHIERS" + +#. type: Plain text +#: badwolf.1:92 +msgid "" +"The following paths are using E<.Xr sh 1> syntax to correctly support XDG " +"Base Directory Specification, you can use the E<.Xr echo 1> command to check " +"where it is on your system." +msgstr "" +"Les chemins suivants utilisent la syntaxe de E<.Xr sh 1> pour correctement " +"supporter la XDG Base Directory Specification, vous pouver utiliser la " +"commande E<.Xr echo 1> pour vérifier où cela se trouve sur votre système." + +#. type: It +#: badwolf.1:94 +#, no-wrap +msgid "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" +msgstr "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" + +#. type: Plain text +#: badwolf.1:97 +msgid "" +"WebKit-specific content-filter file, this allows to block unwanted content " +"(ads, nagware, ...). For some introductory information about the format see:" +msgstr "" +"Fichier content-filter spécifique à WebKit, cela permet de blocker le " +"contenu indésirable (pubs, nagware, …).\n" +"Pour une introduction au format, voir (en anglais):" + +#. type: Plain text +#: badwolf.1:102 +msgid "For a converter using AblockPlus-style filters, try:" +msgstr "Pour un convertiseur de filtres compatibles AdBlockPlus, essayez:" + +#. type: Plain text +#: badwolf.1:105 +msgid "For a ready-to-use file (that you should update periodically), try:" +msgstr "" +"Pour un fichier prêt à l'usage (que vous devrez mettre à jour " +"périodiquement), essayez:" + +#. type: It +#: badwolf.1:106 +#, no-wrap +msgid "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" +msgstr "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" + +#. type: Plain text +#: badwolf.1:109 +msgid "" +"This is where the compiled filters are stored, the file(s) in it are " +"automatically generated and so shouldn't be edited. Documented here only " +"for sandboxing / access-control purposes." +msgstr "" +"Stockage des filtres compilés, les fichiers présents sont automatiquement " +"générés et ne doivent pas être édité.\n" +"Documenté ici seulement pour les isolations ou la gestion des contrôle " +"d'accès." + +#. type: It +#: badwolf.1:109 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" + +#. type: Plain text +#: badwolf.1:114 +msgid "" +"XBEL (XML Bookmark Exchange Language) file, known to be currently supported " +"by: E<.Xr elinks 1>, E<.Xr konqueror 1>, E<.Xr kbookmarkeditor 1>." +msgstr "" +"Fichier XBEL (XML Bookmark Exchange Language; Language XML d'Échange de " +"Marques-Pages), connu pour être supporté par: E<.Xr elinks 1>, E<.Xr " +"konqueror 1>, E<.Xr kbookmarkeditor 1>." + +#. type: Plain text +#: badwolf.1:116 +msgid "You can do a symbolic link from their path, but you might prefer to use" +msgstr "" +"Vous pouvez faire un lien symbolique depuis leur fichiers, mais vous pouvez " +"aussi utiliser" + +#. type: Plain text +#: badwolf.1:120 +msgid "" +"which is natively supported by E<.Nm> to automatically merge multiple XBEL " +"files." +msgstr "" +"qui est supporté nativement par E<.Nm> pour automatiquement fusionner " +"plusieurs fichiers XBEL." + +#. type: Plain text +#: badwolf.1:122 +msgid "" +"Also the bookmark entries aren't re-sorted, so you might want to put your " +"most frequently used ones at the top of the file." +msgstr "" +"Aussi les marques-pages ne sont pas re-triés, vous pouvez donc mettre les " +"plus fréquement utilisés au début du fichier." + +#. type: Plain text +#: badwolf.1:124 +msgid "For more information about this format see:" +msgstr "Pour plus d'information à propos du format, voir (en anglais):" + +#. type: Plain text +#: badwolf.1:127 +msgid "For an example XBEL file see:" +msgstr "Pour un example de fichier XBEL voir:" + +#. type: It +#: badwolf.1:128 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" + +#. type: Plain text +#: badwolf.1:130 +msgid "Directory containing the" +msgstr "Répertoire contenant les" + +#. type: Plain text +#: badwolf.1:133 +msgid "" +"to be loaded into E<.Nm . Note: They aren't the JavaScript-based Web-" +"Extensions supported by Firefox or Chrome, but native code in shared objects " +"using the WebKitGTK API.>" +msgstr "" +"pour être chargés dans E<.Nm . Note : Ce ne sont pas les Web-Extensions basé " +"sur JavaScript et supporté par Firefox ou Chrome, mais du code natif dans " +"des shared objects qui utilisent l'API WebKitGTK.>" + +#. type: Plain text +#: badwolf.1:135 +msgid "Examples of useful extensions may be found at:" +msgstr "Des examples de quelques extensions utiles peuvent être trouvés sur:" + +#. type: It +#: badwolf.1:136 +#, no-wrap +msgid "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" +msgstr "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" + +#. type: It +#: badwolf.1:137 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" + +#. type: Plain text +#: badwolf.1:142 +msgid "" +"CSS files (respectively system and user-level) for styling E<.Nm> " +"interface. See" +msgstr "" +"Fichiers CSS (respectivement système et utilisateur) pour changer le style " +"de l'interface de E<.Nm .>\n" +"Voir" + +#. type: Plain text +#: badwolf.1:144 +msgid "for the properties being available." +msgstr "pour la liste des propriétés disponibles." + +#. type: Plain text +#: badwolf.1:150 +msgid "" +"For testing your styles I would recommend using the E<.Ev " +"GTK_DEBUG=interactive> environment variable on launching E<.Nm> and going to " +"the CSS tab." +msgstr "" +"Pour tester les styles je recommende d'utiliser la variable d'environemnt E<." +"Ev GTK_DEBUG=interactive> et d'aller à l'onglet CSS." + +#. type: It +#: badwolf.1:150 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/" + +#. type: Plain text +#: badwolf.1:156 +msgid "" +"Directory containing JS userscripts (ending in E<.Ic .js>) ran at the start " +"of page loads, nesting down into iframes, useful to override website " +"behaviors or add missing features to websites." +msgstr "" +"Dossier contenant les userscripts JavaScript (finisant en E<.Ic .js>) lancés " +"à chaque chargement de page, descendant dans les iframes, utile pour changer " +"le comportement ou rajouter des fonctionalitées aux sites web." + +#. type: Plain text +#: badwolf.1:159 +msgid "" +"Please note that for now unlike GreaseMonkey-style userscripts, they are " +"always run, regardless of the hostname / URLs." +msgstr "" +"Veuillez noter que pour l'instant, contrairement aux userscripts à la " +"GreaseMonkey, ils sont toujours exécutés, sans filtrage de domaines / URLs." + +#. type: Sh +#: badwolf.1:160 +#, no-wrap +msgid "AUTHORS" +msgstr "AUTHORS" + +#. type: Plain text +#: badwolf.1:162 +msgid "E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>" +msgstr "E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>" + +#. type: Sh +#: badwolf.1:162 +#, no-wrap +msgid "BUGS" +msgstr "BUGS" + +#. type: Plain text +#: badwolf.1:164 +msgid "You can submit contributions or tickets to" +msgstr "Vous pouvez soumettre des contributions ou des tickets à" + +#. type: Plain text +#: badwolf.1:167 +msgid "with E<.Xr git-send-email 1> for patches." +msgstr "avec E<.Xr git-send-email 1> pour les modifications." diff --git a/badwolf/po/manpage.pot b/badwolf/po/manpage.pot new file mode 100755 index 0000000..1d5feb7 --- /dev/null +++ b/badwolf/po/manpage.pot @@ -0,0 +1,545 @@ +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.2.0+geb77866.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2023-03-17 08:18+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: Dd +#: badwolf.1:4 +#, no-wrap +msgid "2022-07-13" +msgstr "" + +#. type: Dt +#: badwolf.1:5 +#, no-wrap +msgid "BADWOLF 1" +msgstr "" + +#. type: Sh +#: badwolf.1:7 +#, no-wrap +msgid "NAME" +msgstr "" + +#. type: Plain text +#: badwolf.1:9 +msgid "E<.Nm badwolf>" +msgstr "" + +#. type: Nd +#: badwolf.1:9 +#, no-wrap +msgid "minimalist and privacy-oriented web browser based on WebKitGTK" +msgstr "" + +#. type: Sh +#: badwolf.1:10 +#, no-wrap +msgid "SYNOPSIS" +msgstr "" + +#. type: Plain text +#: badwolf.1:14 +msgid "E<.Nm> E<.Op Ar webkit/gtk options> E<.Op Ar URLs or paths>" +msgstr "" + +#. type: Sh +#: badwolf.1:14 +#, no-wrap +msgid "DESCRIPTION" +msgstr "" + +#. type: Plain text +#: badwolf.1:17 +msgid "" +"E<.Nm> is a minimalist browser that cares about privacy, it is based on " +"WebKitGTK and thus also accepts WebKitGTK (and dependencies) flags and " +"environment variables, unfortunately there doesn't seems to be manpages for " +"theses." +msgstr "" + +#. type: Plain text +#: badwolf.1:21 +msgid "" +"Runtime configuration specific to E<.Nm> will probably get added at a later " +"release." +msgstr "" + +#. type: Sh +#: badwolf.1:21 +#, no-wrap +msgid "KEYBINDINGS" +msgstr "" + +#. type: Plain text +#: badwolf.1:25 +msgid "" +"The following section lists the keybinding by their action, each item is " +"described by the widget the focus is on or E<.Aq any> if it works for the " +"whole window, followed by the keybind it grabs." +msgstr "" + +#. type: It +#: badwolf.1:26 +#, no-wrap +msgid "webview Ctrl-Scroll" +msgstr "" + +#. type: Plain text +#: badwolf.1:28 +msgid "Zooms the webpage in/out." +msgstr "" + +#. type: It +#: badwolf.1:28 +#, no-wrap +msgid "webview Ctrl-0" +msgstr "" + +#. type: Plain text +#: badwolf.1:30 +msgid "Resets webpage zoom to 100%." +msgstr "" + +#. type: It +#: badwolf.1:30 +#, no-wrap +msgid "webview Ctrl-MousePrimary, webview MouseMiddle" +msgstr "" + +#. type: Plain text +#: badwolf.1:32 +msgid "Opens the selected link in a new tab. (Note: JS still overrides the event)" +msgstr "" + +#. type: It +#: badwolf.1:32 +#, no-wrap +msgid "any Ctrl-t" +msgstr "" + +#. type: Plain text +#: badwolf.1:34 +msgid "Creates a new tab (in a new session, similar as pressing the button)" +msgstr "" + +#. type: It +#: badwolf.1:34 +#, no-wrap +msgid "browser Ctrl-F4, browser Alt-d" +msgstr "" + +#. type: Plain text +#: badwolf.1:36 +msgid "Closes the current tab" +msgstr "" + +#. type: It +#: badwolf.1:36 +#, no-wrap +msgid "browser Ctrl-f" +msgstr "" + +#. type: Plain text +#: badwolf.1:38 +msgid "Focuses on the search entry" +msgstr "" + +#. type: It +#: badwolf.1:38 +#, no-wrap +msgid "browser Ctrl-l" +msgstr "" + +#. type: Plain text +#: badwolf.1:40 +msgid "Focuses on the location(URL) entry" +msgstr "" + +#. type: It +#: badwolf.1:40 +#, no-wrap +msgid "browser Ctrl-Shift-r / Ctrl-r, browser F5" +msgstr "" + +#. type: Plain text +#: badwolf.1:42 +msgid "Reloads the content in the current tab (with/without clearing cache)" +msgstr "" + +#. type: It +#: badwolf.1:42 +#, no-wrap +msgid "browser Escape" +msgstr "" + +#. type: Plain text +#: badwolf.1:44 +msgid "Stops loading the content in the current tab" +msgstr "" + +#. type: It +#: badwolf.1:44 +#, no-wrap +msgid "browser F7" +msgstr "" + +#. type: Plain text +#: badwolf.1:46 +msgid "Toggles caret browsing." +msgstr "" + +#. type: It +#: badwolf.1:46 +#, no-wrap +msgid "browser F12" +msgstr "" + +#. type: Plain text +#: badwolf.1:48 +msgid "Opens the web inspector." +msgstr "" + +#. type: It +#: badwolf.1:48 +#, no-wrap +msgid "browser Ctrl-[ / Ctrl-]" +msgstr "" + +#. type: Plain text +#: badwolf.1:50 +msgid "Go back/forward in current tab's history" +msgstr "" + +#. type: It +#: badwolf.1:50 +#, no-wrap +msgid "browser Ctrl-p" +msgstr "" + +#. type: Plain text +#: badwolf.1:52 +msgid "Print the current page. (spawns a dialog)" +msgstr "" + +#. type: It +#: badwolf.1:52 +#, no-wrap +msgid "any Alt-Left / Alt-Right" +msgstr "" + +#. type: Plain text +#: badwolf.1:54 badwolf.1:65 +msgid "Go to the previous/next tab" +msgstr "" + +#. type: It +#: badwolf.1:54 +#, no-wrap +msgid "any F1" +msgstr "" + +#. type: Plain text +#: badwolf.1:56 +msgid "Shows the about dialog" +msgstr "" + +#. type: It +#: badwolf.1:56 +#, no-wrap +msgid "any Alt-n" +msgstr "" + +#. type: Plain text +#: badwolf.1:59 +msgid "Where n is any numeric-row key. Go to the n-th tab, 0 goes to the last one." +msgstr "" + +#. type: Ss +#: badwolf.1:60 +#, no-wrap +msgid "DEFAULT ONES" +msgstr "" + +#. type: Plain text +#: badwolf.1:62 +msgid "Here is a incomplete list of the default Webkit/GTK keybindings:" +msgstr "" + +#. type: It +#: badwolf.1:63 +#, no-wrap +msgid "any Ctrl-PageUp / Ctrl-PageDown" +msgstr "" + +#. type: It +#: badwolf.1:65 +#, no-wrap +msgid "search Ctrl-g / Ctrl-Shift-g" +msgstr "" + +#. type: Plain text +#: badwolf.1:67 +msgid "When the search box is focused it goes to the Next/Previous search term." +msgstr "" + +#. type: It +#: badwolf.1:67 +#, no-wrap +msgid "search Escape" +msgstr "" + +#. type: Plain text +#: badwolf.1:69 +msgid "Cancels current search" +msgstr "" + +#. type: It +#: badwolf.1:69 +#, no-wrap +msgid "textarea Ctrl-;" +msgstr "" + +#. type: Plain text +#: badwolf.1:71 +msgid "Insert Emoji" +msgstr "" + +#. type: Sh +#: badwolf.1:72 +#, no-wrap +msgid "ENVIRONMENT" +msgstr "" + +#. type: It +#: badwolf.1:74 +#, no-wrap +msgid "Ev BADWOLF_L10N" +msgstr "" + +#. type: Plain text +#: badwolf.1:80 +msgid "" +"A colon-separated list in the form lang_COUNTRY where lang is in ISO-639 and " +"COUNTRY in ISO-3166. For example E<.Ic " +"BADWOLF_L10N=\"en_GB:fr_FR:de_DE\">. When this variable isn't set, spelling " +"isn't activated. A more generic variable name is also intended to be used " +"in the future." +msgstr "" + +#. type: Plain text +#: badwolf.1:85 +msgid "" +"To get the list of supported dictionaries execute E<.Ic enchant-lsmod-2 " +"-list-dicts> or before enchant 2.0: E<.Ic enchant-lsmod -list-dicts>" +msgstr "" + +#. type: Sh +#: badwolf.1:86 +#, no-wrap +msgid "FILES" +msgstr "" + +#. type: Plain text +#: badwolf.1:92 +msgid "" +"The following paths are using E<.Xr sh 1> syntax to correctly support XDG " +"Base Directory Specification, you can use the E<.Xr echo 1> command to check " +"where it is on your system." +msgstr "" + +#. type: It +#: badwolf.1:94 +#, no-wrap +msgid "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" +msgstr "" + +#. type: Plain text +#: badwolf.1:97 +msgid "" +"WebKit-specific content-filter file, this allows to block unwanted content " +"(ads, nagware, ...). For some introductory information about the format " +"see:" +msgstr "" + +#. type: Plain text +#: badwolf.1:102 +msgid "For a converter using AblockPlus-style filters, try:" +msgstr "" + +#. type: Plain text +#: badwolf.1:105 +msgid "For a ready-to-use file (that you should update periodically), try:" +msgstr "" + +#. type: It +#: badwolf.1:106 +#, no-wrap +msgid "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" +msgstr "" + +#. type: Plain text +#: badwolf.1:109 +msgid "" +"This is where the compiled filters are stored, the file(s) in it are " +"automatically generated and so shouldn't be edited. Documented here only " +"for sandboxing / access-control purposes." +msgstr "" + +#. type: It +#: badwolf.1:109 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" +msgstr "" + +#. type: Plain text +#: badwolf.1:114 +msgid "" +"XBEL (XML Bookmark Exchange Language) file, known to be currently supported " +"by: E<.Xr elinks 1>, E<.Xr konqueror 1>, E<.Xr kbookmarkeditor 1>." +msgstr "" + +#. type: Plain text +#: badwolf.1:116 +msgid "You can do a symbolic link from their path, but you might prefer to use" +msgstr "" + +#. type: Plain text +#: badwolf.1:120 +msgid "" +"which is natively supported by E<.Nm> to automatically merge multiple XBEL " +"files." +msgstr "" + +#. type: Plain text +#: badwolf.1:122 +msgid "" +"Also the bookmark entries aren't re-sorted, so you might want to put your " +"most frequently used ones at the top of the file." +msgstr "" + +#. type: Plain text +#: badwolf.1:124 +msgid "For more information about this format see:" +msgstr "" + +#. type: Plain text +#: badwolf.1:127 +msgid "For an example XBEL file see:" +msgstr "" + +#. type: It +#: badwolf.1:128 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" +msgstr "" + +#. type: Plain text +#: badwolf.1:130 +msgid "Directory containing the" +msgstr "" + +#. type: Plain text +#: badwolf.1:133 +msgid "" +"to be loaded into E<.Nm . Note: They aren't the JavaScript-based " +"Web-Extensions supported by Firefox or Chrome, but native code in shared " +"objects using the WebKitGTK API.>" +msgstr "" + +#. type: Plain text +#: badwolf.1:135 +msgid "Examples of useful extensions may be found at:" +msgstr "" + +#. type: It +#: badwolf.1:136 +#, no-wrap +msgid "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" +msgstr "" + +#. type: It +#: badwolf.1:137 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" +msgstr "" + +#. type: Plain text +#: badwolf.1:142 +msgid "" +"CSS files (respectively system and user-level) for styling E<.Nm> " +"interface. See" +msgstr "" + +#. type: Plain text +#: badwolf.1:144 +msgid "for the properties being available." +msgstr "" + +#. type: Plain text +#: badwolf.1:150 +msgid "" +"For testing your styles I would recommend using the E<.Ev " +"GTK_DEBUG=interactive> environment variable on launching E<.Nm> and going to " +"the CSS tab." +msgstr "" + +#. type: It +#: badwolf.1:150 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/scripts/" +msgstr "" + +#. type: Plain text +#: badwolf.1:156 +msgid "" +"Directory containing JS userscripts (ending in E<.Ic .js>) ran at the start " +"of page loads, nesting down into iframes, useful to override website " +"behaviors or add missing features to websites." +msgstr "" + +#. type: Plain text +#: badwolf.1:159 +msgid "" +"Please note that for now unlike GreaseMonkey-style userscripts, they are " +"always run, regardless of the hostname / URLs." +msgstr "" + +#. type: Sh +#: badwolf.1:160 +#, no-wrap +msgid "AUTHORS" +msgstr "" + +#. type: Plain text +#: badwolf.1:162 +msgid "E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>" +msgstr "" + +#. type: Sh +#: badwolf.1:162 +#, no-wrap +msgid "BUGS" +msgstr "" + +#. type: Plain text +#: badwolf.1:164 +msgid "You can submit contributions or tickets to" +msgstr "" + +#. type: Plain text +#: badwolf.1:167 +msgid "with E<.Xr git-send-email 1> for patches." +msgstr "" diff --git a/badwolf/po/messages.pot b/badwolf/po/messages.pot new file mode 100755 index 0000000..6f6bf1e --- /dev/null +++ b/badwolf/po/messages.pot @@ -0,0 +1,214 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Badwolf Authors +# This file is distributed under the same license as the Badwolf package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.3.0\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2024-12-07 16:23-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "" + +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "" + +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "" + +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "" + +msgid "Badwolf Downloads" +msgstr "" + +msgid "Bookmarks: Done.\n" +msgstr "" + +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "" + +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "" + +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "" + +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "" + +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "" + +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "" + +#, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "" + +msgid "Continue" +msgstr "" + +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" + +msgid "Crashed" +msgstr "" + +msgid "Download starting…" +msgstr "" + +msgid "Empty Title" +msgstr "" + +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "" + +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "" + +msgid "Error: The certificate has been revoked.\n" +msgstr "" + +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "" + +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "" + +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "" + +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "" + +#, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" + +msgid "New tab" +msgstr "" + +msgid "Open new tab" +msgstr "" + +msgid "Out of Memory" +msgstr "" + +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "" + +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "" + +#, c-format +msgid "TLS Error for %s." +msgstr "" + +msgid "Temporarily Add Exception" +msgstr "" + +msgid "Toggle javascript" +msgstr "" + +msgid "Toggle loading images automatically" +msgstr "" + +msgid "Unknown Crash" +msgstr "" + +msgid "_IMG" +msgstr "" + +msgid "_JS" +msgstr "" + +#, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Error reading userscript: %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n" +msgstr "" + +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "" + +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "" + +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "" + +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "" + +msgid "search in current page" +msgstr "" + +msgid "the web process crashed.\n" +msgstr "" + +msgid "the web process exceeded the memory limit.\n" +msgstr "" + +msgid "the web process terminated for an unknown reason.\n" +msgstr "" + +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +msgid "ø" +msgstr "" diff --git a/badwolf/po/pot_license.ed b/badwolf/po/pot_license.ed new file mode 100755 index 0000000..e10e628 --- /dev/null +++ b/badwolf/po/pot_license.ed @@ -0,0 +1,8 @@ +1,/^#$/d +i +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +# +. +w +q diff --git a/badwolf/po/pt_BR.po b/badwolf/po/pt_BR.po new file mode 100755 index 0000000..1a0f5f6 --- /dev/null +++ b/badwolf/po/pt_BR.po @@ -0,0 +1,222 @@ +# BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 0.4.0+g607300e\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2024-04-14 00:15-0400\n" +"PO-Revision-Date: 2021-04-14 19:31-0300\n" +"Last-Translator: Pedro Lucas Porcellis \n" +"Language-Team: Brazilian Portuguese\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 2.4.1\n" + +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i Transferência Cancelada" + +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i Erro durante a transferência" + +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i Transferência Concluída" + +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i Baixando…" + +msgid "Badwolf Downloads" +msgstr "Transferências do Badwolf" + +msgid "Bookmarks: Done.\n" +msgstr "Favoritos: Feito.\n" + +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Favoritos: Encontrado %d favoritos.\n" + +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Favoritos: Nenhum arquivo carregável encontrado em %s\n" + +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Favoritos: carregando em %s\n" + +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Favoritos: não foi possível criar um novo contexto do XPath\n" + +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "Favoritos: não foi possivel compreender a expressão do XPath \"%s\"\n" + +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Favoritos: não foi possível ler o arquivo \"%s\"\n" + +#, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Versão do WebKit %d.%d.%d\n" + +msgid "Continue" +msgstr "Continuar" + +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Não foi possível verificar o certificado TLS para garantir uma melhor " +"segurança da conexão. Talvez você deva verificar a sua máquina e rede.\n" +"\n" + +msgid "Crashed" +msgstr "Erro" + +msgid "Download starting…" +msgstr "Transferência Iniciada…" + +msgid "Empty Title" +msgstr "" + +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "" +"Erro: Algum erro desconhecido ocorreu enquanto validava o certificado.\n" + +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Erro: A Autoridade de Certificados X509 é desconhecida.\n" + +msgid "Error: The certificate has been revoked.\n" +msgstr "Erro: O certificado foi revogado.\n" + +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "" +"Erro: O certificado foi expirado. Verifique o relógio do seu sistema.\n" + +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Erro: O certificado é considerado inseguro.\n" + +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "" +"Erro: O certificado não é válido ainda. Verifique o relógio do seu sistema.\n" + +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "Erro: A identidade não confere com a esperada.\n" + +#, fuzzy, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"Navegador orientado pela privacidade e minimalismo\n" +"Versão do WebKit: %d.%d.%d" + +msgid "New tab" +msgstr "Nova aba" + +msgid "Open new tab" +msgstr "Abrir uma Nova aba" + +msgid "Out of Memory" +msgstr "Sem memória" + +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Rodando versão %s do Badwolf\n" + +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Versão do WebKit: %d.%d.%d\n" + +#, c-format +msgid "TLS Error for %s." +msgstr "Erro TLS para %s." + +msgid "Temporarily Add Exception" +msgstr "Adicionar exceção temporária" + +msgid "Toggle javascript" +msgstr "Habilitar Javascript" + +msgid "Toggle loading images automatically" +msgstr "Habilitar carregamento de imagens automático" + +msgid "Unknown Crash" +msgstr "Erro desconhecido" + +msgid "_IMG" +msgstr "_IMG" + +msgid "_JS" +msgstr "_JS" + +#, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Error reading userscript: %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n" +msgstr "" + +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "badwolf: carregado content-filter, adicionando ao content-manager...\n" + +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "badwolf: falha ao compilar 'content-filters.json', erro: [%d] %s\n" + +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: falha ao carregar content-filter, erro: [%d] %s\n" + +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "arquivo de content-filters configurado para: %s\n" + +msgid "search in current page" +msgstr "buscar na página atual" + +msgid "the web process crashed.\n" +msgstr "o processo web travou.\n" + +msgid "the web process exceeded the memory limit.\n" +msgstr "o processo web excedeu o limite de memória.\n" + +msgid "the web process terminated for an unknown reason.\n" +msgstr "o processo web terminou por uma razão desconhecida.\n" + +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "diretório de extensões configurado para: %s\n" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +msgid "ø" +msgstr "" diff --git a/badwolf/po/tr.po b/badwolf/po/tr.po new file mode 100755 index 0000000..7b4447b --- /dev/null +++ b/badwolf/po/tr.po @@ -0,0 +1,220 @@ +# Turkish translations for Badwolf package. +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2024-04-14 00:15-0400\n" +"PO-Revision-Date: 2021-04-10 20:38+0300\n" +"Last-Translator: Oğuz Ersen \n" +"Language-Team: Turkish\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i İndirme iptal edildi" + +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i İndirme hatası" + +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i İndirme tamamlandı" + +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i İndiriliyor…" + +msgid "Badwolf Downloads" +msgstr "Badwolf İndirmeleri" + +msgid "Bookmarks: Done.\n" +msgstr "Yer imleri: Bitti.\n" + +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Yer imleri: %d yer imi bulundu.\n" + +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Yer imleri: %s konumunda yüklenebilir dosya bulunamadı\n" + +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Yer imleri: %s konumunda yükleniyor\n" + +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Yer imleri: yeni XPath içeriği oluşturulamadı\n" + +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "Yer imleri: \"%s\" XPath ifadesi değerlendirilemedi\n" + +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Yer imleri: \"%s\" dosyası ayrıştırılamadı\n" + +#, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Derleme zamanı WebKit sürümü: %d.%d.%d\n" + +msgid "Continue" +msgstr "Devam et" + +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Bağlantının güvenliğini daha iyi sağlamak için TLS sertifikası " +"doğrulanamadı. Makinenizi ve ağınızı doğrulamak isteyebilirsiniz.\n" +"\n" + +msgid "Crashed" +msgstr "Çöktü" + +msgid "Download starting…" +msgstr "İndirme başlatılıyor…" + +msgid "Empty Title" +msgstr "" + +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "Hata: Sertifika doğrulanırken bilinmeyen bir hata oluştu.\n" + +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Hata: X509 Sertifika Yetkilisi bilinmiyor.\n" + +msgid "Error: The certificate has been revoked.\n" +msgstr "Hata: Sertifika yürürlükten kaldırıldı.\n" + +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "" +"Hata: Sertifikanın süresi doldu. Sisteminizin saatini gözden geçirin.\n" + +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Hata: Sertifikanın güvensiz olduğu kabul ediliyor.\n" + +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "" +"Hata: Sertifika henüz geçerli değil. Sisteminizin saatini gözden geçirin.\n" + +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "Hata: Verilen kimlik beklenen ile eşleşmiyor.\n" + +#, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"WebKitGTK tabanlı sadelik ve gizlilik odaklı web tarayıcısı\n" +"Çalışma zamanı WebKit sürümü: %d.%d.%d" + +msgid "New tab" +msgstr "Yeni sekme" + +msgid "Open new tab" +msgstr "Yeni sekme aç" + +msgid "Out of Memory" +msgstr "Yetersiz Bellek" + +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Çalışan Badwolf sürümü: %s\n" + +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Çalışma zamanı WebKit sürümü: %d.%d.%d\n" + +#, c-format +msgid "TLS Error for %s." +msgstr "%s için TLS Hatası." + +msgid "Temporarily Add Exception" +msgstr "Geçici Olarak İstisna Ekle" + +msgid "Toggle javascript" +msgstr "Javascript'i aç/kapat" + +msgid "Toggle loading images automatically" +msgstr "Resimleri otomatik yüklemeyi aç/kapat" + +msgid "Unknown Crash" +msgstr "Bilinmeyen Çökme" + +msgid "_IMG" +msgstr "_RSM" + +msgid "_JS" +msgstr "_JS" + +#, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Error reading userscript: %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n" +msgstr "" + +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "badwolf: content-filter yüklendi, content-manager'e ekleniyor…\n" + +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "badwolf: content-filters.json derlenemedi, hata: [%d] %s\n" + +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: content-filter yüklenemedi, hata: [%d] %s\n" + +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "content-filters dosyası şuna ayarlandı: %s\n" + +msgid "search in current page" +msgstr "geçerli sayfada ara" + +msgid "the web process crashed.\n" +msgstr "web işlemi çöktü.\n" + +msgid "the web process exceeded the memory limit.\n" +msgstr "web işlemi bellek sınırını aştı.\n" + +msgid "the web process terminated for an unknown reason.\n" +msgstr "web işlemi bilinmeyen bir nedenle sona erdi.\n" + +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "webkit-web-extension dizini şuna ayarlandı: %s\n" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +msgid "ø" +msgstr "" diff --git a/badwolf/po/tr_man.po b/badwolf/po/tr_man.po new file mode 100755 index 0000000..0a2c57d --- /dev/null +++ b/badwolf/po/tr_man.po @@ -0,0 +1,530 @@ +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.2.0+g7057838a.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2022-07-13 10:35+0200\n" +"PO-Revision-Date: 2022-10-23 13:50+0300\n" +"Last-Translator: Oğuz Ersen \n" +"Language-Team: Turkish \n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#. type: Dd +#: badwolf.1:4 +#, no-wrap +msgid "2022-07-13" +msgstr "2022-07-13" + +#. type: Dt +#: badwolf.1:5 +#, no-wrap +msgid "BADWOLF 1" +msgstr "BADWOLF 1" + +#. type: Sh +#: badwolf.1:7 +#, no-wrap +msgid "NAME" +msgstr "AD" + +#. type: Plain text +#: badwolf.1:9 +msgid "E<.Nm badwolf>" +msgstr "E<.Nm badwolf>" + +#. type: Nd +#: badwolf.1:9 +#, no-wrap +msgid "minimalist and privacy-oriented web browser based on WebKitGTK" +msgstr "WebKitGTK tabanlı sade ve gizlilik odaklı web tarayıcısı" + +#. type: Sh +#: badwolf.1:10 +#, no-wrap +msgid "SYNOPSIS" +msgstr "ÖZET" + +#. type: Plain text +#: badwolf.1:14 +msgid "E<.Nm> E<.Op Ar webkit/gtk options> E<.Op Ar URLs or paths>" +msgstr "E<.Nm> E<.Op Ar webkit/gtk seçenekleri> E<.Op Ar URL veya yollar>" + +#. type: Sh +#: badwolf.1:14 +#, no-wrap +msgid "DESCRIPTION" +msgstr "AÇIKLAMA" + +#. type: Plain text +#: badwolf.1:17 +msgid "" +"E<.Nm> is a minimalist browser that cares about privacy, it is based on " +"WebKitGTK and thus also accepts WebKitGTK (and dependencies) flags and " +"environment variables, unfortunately there doesn't seems to be manpages for " +"theses." +msgstr "" +"E<.Nm> gizliliğe önem veren sade bir tarayıcıdır, WebKitGTK tabanlıdır ve bu " +"nedenle WebKitGTK (ve bağımlılıkları) seçeneklerini ve ortam değişkenlerini " +"de kabul eder, ne yazık ki bunlar için kılavuz sayfası yok gibi görünüyor." + +#. type: Plain text +#: badwolf.1:21 +msgid "" +"Runtime configuration specific to E<.Nm> will probably get added at a later " +"release." +msgstr "" +"E<.Nm>’e özgü çalışma zamanı yapılandırması muhtemelen daha sonraki bir " +"sürümde eklenecek." + +#. type: Sh +#: badwolf.1:21 +#, no-wrap +msgid "KEYBINDINGS" +msgstr "TUŞ ATAMALARI" + +#. type: Plain text +#: badwolf.1:25 +msgid "" +"The following section lists the keybinding by their action, each item is " +"described by the widget the focus is on or E<.Aq any> if it works for the " +"whole window, followed by the keybind it grabs." +msgstr "" +"Aşağıdaki bölüm tuş atamalarını eylemlerine göre listeler, her öge odağın " +"üzerinde olduğu widget ile veya tüm pencere için çalışıyorsa E<.Aq tümü> " +"ile, ardından yakaladığı tuş ataması ile açıklanmaktadır." + +#. type: It +#: badwolf.1:26 +#, no-wrap +msgid "webview Ctrl-Scroll" +msgstr "web_görünümü Ctrl-Scroll" + +#. type: Plain text +#: badwolf.1:28 +msgid "Zooms the webpage in/out." +msgstr "Web sayfasını yakınlaştırır/uzaklaştırır." + +#. type: It +#: badwolf.1:28 +#, no-wrap +msgid "webview Ctrl-0" +msgstr "web_görünümü Ctrl-0" + +#. type: Plain text +#: badwolf.1:30 +msgid "Resets webpage zoom to 100%." +msgstr "Web sayfasının yakınlaştırmasını %100 olarak sıfırlar." + +#. type: It +#: badwolf.1:30 +#, no-wrap +msgid "any Ctrl-t" +msgstr "tümü Ctrl-t" + +#. type: Plain text +#: badwolf.1:32 +msgid "Creates a new tab (in a new session, similar as pressing the button)" +msgstr "" +"Yeni bir sekme oluşturur (yeni bir oturumda, düğmeye basmaya benzer şekilde)" + +#. type: It +#: badwolf.1:32 +#, no-wrap +msgid "browser Ctrl-F4, browser Alt-d" +msgstr "tarayıcı Ctrl-F4, tarayıcı Alt-d" + +#. type: Plain text +#: badwolf.1:34 +msgid "Closes the current tab" +msgstr "Geçerli sekmeyi kapatır" + +#. type: It +#: badwolf.1:34 +#, no-wrap +msgid "browser Ctrl-f" +msgstr "tarayıcı Ctrl-f" + +#. type: Plain text +#: badwolf.1:36 +msgid "Focuses on the search entry" +msgstr "Arama girişine odaklanır" + +#. type: It +#: badwolf.1:36 +#, no-wrap +msgid "browser Ctrl-l" +msgstr "tarayıcı Ctrl-l" + +#. type: Plain text +#: badwolf.1:38 +msgid "Focuses on the location(URL) entry" +msgstr "Konum (URL) girişine odaklanır" + +#. type: It +#: badwolf.1:38 +#, no-wrap +msgid "browser Ctrl-Shift-r / Ctrl-r, browser F5" +msgstr "tarayıcı Ctrl-Shift-r / Ctrl-r, tarayıcı F5" + +#. type: Plain text +#: badwolf.1:40 +msgid "Reloads the content in the current tab (with/without clearing cache)" +msgstr "" +"Geçerli sekmedeki içeriği yeniden yükler (önbelleği temizleyerek/önbelleği " +"temizlemeden)" + +#. type: It +#: badwolf.1:40 +#, no-wrap +msgid "browser Escape" +msgstr "tarayıcı Escape" + +#. type: Plain text +#: badwolf.1:42 +msgid "Stops loading the content in the current tab" +msgstr "Geçerli sekmedeki içeriğin yüklenmesini durdurur" + +#. type: It +#: badwolf.1:42 +#, no-wrap +msgid "browser F7" +msgstr "tarayıcı F7" + +#. type: Plain text +#: badwolf.1:44 +msgid "Toggles caret browsing." +msgstr "İmleç gezinmesini açar/kapatır." + +#. type: It +#: badwolf.1:44 +#, no-wrap +msgid "browser F12" +msgstr "tarayıcı F12" + +#. type: Plain text +#: badwolf.1:46 +msgid "Opens the web inspector." +msgstr "Web inceleyicisini açar." + +#. type: It +#: badwolf.1:46 +#, no-wrap +msgid "browser Ctrl-[ / Ctrl-]" +msgstr "tarayıcı Ctrl-[ / Ctrl-]" + +#. type: Plain text +#: badwolf.1:48 +msgid "Go back/forward in current tab's history" +msgstr "Geçerli sekmenin geçmişinde geri/ileri git" + +#. type: It +#: badwolf.1:48 +#, no-wrap +msgid "browser Ctrl-p" +msgstr "tarayıcı Ctrl-p" + +#. type: Plain text +#: badwolf.1:50 +msgid "Print the current page. (spawns a dialog)" +msgstr "Geçerli sayfayı yazdır. (bir iletişim kutusu açar)" + +#. type: It +#: badwolf.1:50 +#, no-wrap +msgid "any Alt-Left / Alt-Right" +msgstr "tümü Alt-Left / Alt-Right" + +#. type: Plain text +#: badwolf.1:52 badwolf.1:63 +msgid "Go to the previous/next tab" +msgstr "Önceki/sonraki sekmeye git" + +#. type: It +#: badwolf.1:52 +#, no-wrap +msgid "any F1" +msgstr "tümü F1" + +#. type: Plain text +#: badwolf.1:54 +msgid "Shows the about dialog" +msgstr "Hakkında iletişim kutusunu göster" + +#. type: It +#: badwolf.1:54 +#, no-wrap +msgid "any Alt-n" +msgstr "tümü Alt-n" + +#. type: Plain text +#: badwolf.1:57 +msgid "" +"Where n is any numeric-row key. Go to the n-th tab, 0 goes to the last one." +msgstr "" +"n herhangi bir sayısal satır tuşudur. n'inci sekmeye git, 0 son sekmeye " +"gider." + +#. type: Ss +#: badwolf.1:58 +#, no-wrap +msgid "DEFAULT ONES" +msgstr "ÖNTANIMLI OLANLAR" + +#. type: Plain text +#: badwolf.1:60 +msgid "Here is a incomplete list of the default Webkit/GTK keybindings:" +msgstr "Öntanımlı Webkit/GTK tuş atamalarının bir kısmının listesi:" + +#. type: It +#: badwolf.1:61 +#, no-wrap +msgid "any Ctrl-PageUp / Ctrl-PageDown" +msgstr "tümü Ctrl-PageUp / Ctrl-PageDown" + +#. type: It +#: badwolf.1:63 +#, no-wrap +msgid "search Ctrl-g / Ctrl-Shift-g" +msgstr "arama Ctrl-g / Ctrl-Shift-g" + +#. type: Plain text +#: badwolf.1:65 +msgid "" +"When the search box is focused it goes to the Next/Previous search term." +msgstr "Arama kutusuna odaklanıldığında Sonraki/Önceki arama terimine gider." + +#. type: It +#: badwolf.1:65 +#, no-wrap +msgid "search Escape" +msgstr "arama Escape" + +#. type: Plain text +#: badwolf.1:67 +msgid "Cancels current search" +msgstr "Geçerli aramayı iptal eder" + +#. type: Sh +#: badwolf.1:68 +#, no-wrap +msgid "ENVIRONMENT" +msgstr "ORTAM" + +#. type: It +#: badwolf.1:70 +#, no-wrap +msgid "Ev BADWOLF_L10N" +msgstr "Ev BADWOLF_L10N" + +#. type: Plain text +#: badwolf.1:76 +msgid "" +"A colon-separated list in the form lang_COUNTRY where lang is in ISO-639 and " +"COUNTRY in ISO-3166. For example E<.Ic BADWOLF_L10N=\"en_GB:fr_FR:" +"de_DE\">. When this variable isn't set, spelling isn't activated. A more " +"generic variable name is also intended to be used in the future." +msgstr "" +"dil_ÜLKE biçiminde iki nokta üst üste ile ayrılan bir liste; burada dil " +"ISO-639'da ve ÜLKE ISO-3166'da yer tanımlandığı gibidir. Örneğin: E<.Ic " +"BADWOLF_L10N=\"tr_TR:fr_FR:de_DE\">. Bu değişken ayarlanmadığında, yazım " +"etkinleştirilmez. Gelecekte daha genel bir değişken adının kullanılması da " +"amaçlanmaktadır." + +#. type: Plain text +#: badwolf.1:81 +msgid "" +"To get the list of supported dictionaries execute E<.Ic enchant-lsmod-2 -" +"list-dicts> or before enchant 2.0: E<.Ic enchant-lsmod -list-dicts>" +msgstr "" +"Desteklenen sözlüklerin listesini görmek için E<.Ic enchant-lsmod-2 -list-" +"dicts> komutunu, enchant 2.0 öncesi için E<.Ic enchant-lsmod -list-dicts> " +"komutunu çalıştırın" + +#. type: Sh +#: badwolf.1:82 +#, no-wrap +msgid "FILES" +msgstr "DOSYALAR" + +#. type: Plain text +#: badwolf.1:88 +msgid "" +"The following paths are using E<.Xr sh 1> syntax to correctly support XDG " +"Base Directory Specification, you can use the E<.Xr echo 1> command to check " +"where it is on your system." +msgstr "" +"Aşağıdaki yollar, XDG Temel Dizin Tanımlamasını doğru şekilde desteklemek " +"için E<.Xr sh 1> sözdizimini kullanmaktadır, sisteminizde nerede olduğunu " +"görmek için E<.Xr echo 1> komutunu kullanabilirsiniz." + +#. type: It +#: badwolf.1:90 +#, no-wrap +msgid "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" +msgstr "Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json" + +#. type: Plain text +#: badwolf.1:93 +msgid "" +"WebKit-specific content-filter file, this allows to block unwanted content " +"(ads, nagware, ...). For some introductory information about the format see:" +msgstr "" +"WebKit'e özgü içerik filtresi dosyası, istenmeyen içeriğin (reklamlar, " +"dırdırcı yazılımlar, ...) engellenmesini sağlar. Biçim hakkında bazı " +"tanıtıcı bilgiler için şuraya bakın:" + +#. type: Plain text +#: badwolf.1:98 +msgid "For a converter using AblockPlus-style filters, try:" +msgstr "AblockPlus tarzı filtreler kullanan bir dönüştürücü için şunu deneyin:" + +#. type: Plain text +#: badwolf.1:101 +msgid "For a ready-to-use file (that you should update periodically), try:" +msgstr "" +"Kullanıma hazır (düzenli olarak güncellemeniz gereken) bir dosya için şunu " +"deneyin:" + +#. type: It +#: badwolf.1:102 +#, no-wrap +msgid "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" +msgstr "Pa ${XDG_CACHE_HOME:-$HOME/.cache}/badwolf/filters" + +#. type: Plain text +#: badwolf.1:105 +msgid "" +"This is where the compiled filters are stored, the file(s) in it are " +"automatically generated and so shouldn't be edited. Documented here only " +"for sandboxing / access-control purposes." +msgstr "" +"Burası derlenen filtrelerin depolandığı yerdir, içindeki dosya(lar) otomatik " +"olarak oluşturulur ve bu nedenle düzenlenmemelidir. Burada yalnızca koruma " +"kısıtlaması/erişim denetimi amacıyla açıklanmaktadır." + +#. type: It +#: badwolf.1:105 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel" + +#. type: Plain text +#: badwolf.1:110 +msgid "" +"XBEL (XML Bookmark Exchange Language) file, known to be currently supported " +"by: E<.Xr elinks 1>, E<.Xr konqueror 1>, E<.Xr kbookmarkeditor 1 . Doing a " +"symbolic link from their path works fine but you might also want to use " +"XInclude to merge multiple XBEL files.>" +msgstr "" +"E<.Xr elinks 1>, E<.Xr konqueror 1>, E<.Xr kbookmarkeditor 1 . Yollarından " +"sembolik bir bağlantı yapmak çalışır, ancak birden fazla XBEL dosyasını " +"birleştirmek için XInclude kullanmak isteyebilirsiniz.> tarafından " +"desteklendiği bilinen XBEL (XML Bookmark Exchange Language) dosyası" + +#. type: Plain text +#: badwolf.1:112 +msgid "For more information about this format see:" +msgstr "Bu biçim hakkında daha fazla bilgi için:" + +#. type: Plain text +#: badwolf.1:115 +msgid "For an example XBEL file see:" +msgstr "Örnek bir XBEL dosyası için:" + +#. type: It +#: badwolf.1:116 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/webkit-web-extension/" + +#. type: Plain text +#: badwolf.1:118 +msgid "Directory containing the" +msgstr "Bu dizin şunları içerir" + +#. type: Plain text +#: badwolf.1:121 +msgid "" +"to be loaded into E<.Nm . Note: They aren't the JavaScript-based Web-" +"Extensions supported by Firefox or Chrome, but native code in shared objects " +"using the WebKitGTK API.>" +msgstr "" +"şuraya yüklenecek: E<.Nm . Not: Bunlar Firefox veya Chrome tarafından " +"desteklenen JavaScript tabanlı Web Uzantıları değil, WebKitGTK API'sini " +"kullanan paylaşılan nesnelerdeki yerel kodlardır.>" + +#. type: Plain text +#: badwolf.1:123 +msgid "Examples of useful extensions may be found at:" +msgstr "Faydalı uzantı örnekleri şurada bulunabilir:" + +#. type: It +#: badwolf.1:124 +#, no-wrap +msgid "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" +msgstr "Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css" + +#. type: It +#: badwolf.1:125 +#, no-wrap +msgid "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" +msgstr "Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css" + +#. type: Plain text +#: badwolf.1:130 +msgid "" +"CSS files (respectively system and user-level) for styling E<.Nm> " +"interface. See" +msgstr "" +"E<.Nm> arayüzünü biçimlendirmek için CSS dosyaları (sırasıyla sistem ve " +"kullanıcı düzeyinde). Bkz:" + +#. type: Plain text +#: badwolf.1:132 +msgid "for the properties being available." +msgstr "kullanılabilir özellikler için." + +#. type: Plain text +#: badwolf.1:138 +msgid "" +"For testing your styles I would recommend using the E<.Ev " +"GTK_DEBUG=interactive> environment variable on launching E<.Nm> and going to " +"the CSS tab." +msgstr "" +"Görünümlerinizi test etmek için E<.Nm> başlatılırken E<.Ev " +"GTK_DEBUG=interactive> ortam değişkenini kullanmanız ve CSS sekmesine " +"gitmeniz tavsiye edilir." + +#. type: Sh +#: badwolf.1:139 +#, no-wrap +msgid "AUTHORS" +msgstr "YAZARLAR" + +#. type: Plain text +#: badwolf.1:141 +msgid "E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>" +msgstr "E<.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me>" + +#. type: Sh +#: badwolf.1:141 +#, no-wrap +msgid "BUGS" +msgstr "HATALAR" + +#. type: Plain text +#: badwolf.1:143 +msgid "You can submit contributions or tickets to" +msgstr "Katkılarınızı veya biletlerinizi şuraya gönderebilirsiniz" + +#. type: Plain text +#: badwolf.1:146 +msgid "with E<.Xr git-send-email 1> for patches." +msgstr "yamalar için E<.Xr git-send-email 1> ile." diff --git a/badwolf/po/vi.po b/badwolf/po/vi.po new file mode 100755 index 0000000..ce6a66d --- /dev/null +++ b/badwolf/po/vi.po @@ -0,0 +1,221 @@ +# Vietnamese translations for Badwolf package +# Bản dịch Tiếng Việt dành cho gói Badwolf. +# SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.0.3+gedbbb27.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2023-07-17 21:08+0700\n" +"PO-Revision-Date: 2021-09-29 10:51+0700\n" +"Last-Translator: Ngô Ngọc Đức Huy \n" +"Language-Team: Vietnamese\n" +"Language: vi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i Đã huỷ tải xuống" + +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i Lỗi tải xuống" + +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i Đã tải xong" + +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i Đang tải…" + +msgid "Badwolf Downloads" +msgstr "Các tệp tin đã tải từ Badwolf" + +msgid "Bookmarks: Done.\n" +msgstr "Dấu trang: Xong.\n" + +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Dấu trang: Đã tìm thấy %d dấu trang.\n" + +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Dấu trang: Không có tệp tin nào được tìm thấy tại %s\n" + +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Dấu trang: đang tải ở %s\n" + +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Dấu trang: không thể tạo context XPath mới\n" + +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "Dấu trang: không thể tính biểu thức XPath \"%s\"\n" + +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Dấu trang: không thể đọc tệp tin \"%s\"\n" + +#, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Phiên bản WebKit tại thời điểm dựng: %d.%d.%d\n" + +msgid "Continue" +msgstr "Tiếp tục" + +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Không thể xác thực chứng thực TLS để đảm bảo tính bảo mật của kết nối này." +"Bạn có thể muống xác thực máy của bạn và mạng.\n" + +msgid "Crashed" +msgstr "Gặp sự cố" + +msgid "Download starting…" +msgstr "Bắt đầu tải xuống…" + +msgid "Empty Title" +msgstr "Tiêu đề trống" + +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "" +"Lỗi: Có một lỗi không xác định đã xảy ra khi đang hợp lệ hoá chứng thực.\n" + +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Lỗi: Nhà cung cấp Chứng thực X509 không được biết đến.\n" + +msgid "Error: The certificate has been revoked.\n" +msgstr "Lỗi: Chứng thực đã bị vô hiệu hoá.\n" + +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "Lỗi: Chứng thực đã hết hạn. Hãy kiểm tra đồng hồ hệ thống của bạn.\n" + +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Lỗi: Chứng thực được cho là không bảo mật.\n" + +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "" +"Lỗi: Chứng thực chưa có hiệu lực. Hãy kiểm tra đồng hồ hệ thống của bạn.\n" + +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "Lỗi: Danh tính nhận được không trùng khớp với danh tính mong đợi.\n" + +#, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"Trình duyệt web tối giản và hướng đến sự riêng tư dựa trên WebKitGTK\n" +"Phiên bản WebKit tại thời điểm chạy: %d.%d.%d" + +msgid "New tab" +msgstr "Tab mới" + +msgid "Open new tab" +msgstr "Mở tab mới" + +msgid "Out of Memory" +msgstr "Đầy bộ nhớ" + +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Phiên bản Badwolf đang chạy: %s\n" + +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Phiên bản WebKit tại thời điểm chạy: %d.%d.%d\n" + +#, c-format +msgid "TLS Error for %s." +msgstr "Lỗi TLS cho %s." + +msgid "Temporarily Add Exception" +msgstr "Tạm thời thêm ngoại lệ" + +msgid "Toggle javascript" +msgstr "Bật/tắt javascript" + +msgid "Toggle loading images automatically" +msgstr "Bật/tắt tự động tải ảnh" + +msgid "Unknown Crash" +msgstr "Gặp sự cố không xác định" + +msgid "_IMG" +msgstr "_IMG" + +msgid "_JS" +msgstr "_JS" + +#, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "badwolf: Đang kiểm tra script người dùng khớp với %s\n" + +#, c-format +msgid "badwolf: Error reading userscript: %s\n" +msgstr "badwolf: Lỗi khi đọc script người dùng: %s\n" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "badwolf: Không thể liệt kê script người dùng: Đầy bộ nhớ\n" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "badwolf: Không thể liệt kê script người dùng: Lỗi khi đọc\n" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "badwolf: Ghi chú: Tìm được %zd script người dùng\n" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "badwolf: Ghi chú: Không tìm được script người dùng nào\n" + +#, c-format +msgid "badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n" +msgstr "badwolf: Ghi chú: Tải script người dùng: đã tải %d, không thể tải %d\n" + +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "" +"badwolf: đã tải bộ lọc nội dung, đang thêm vào trình quản lý nội dung…\n" + +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "badwolf: biên dịch content-filters.json thất bại, lỗi: [%d] %s\n" + +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: tải bộ lọc nội dung thất bại, lỗi: [%d] %s\n" + +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "tệp tin chứa bộ lọc nội dung đã được cài thành: %s\n" + +msgid "search in current page" +msgstr "tìm trong trang hiện tại" + +msgid "the web process crashed.\n" +msgstr "tiến trình web gặp sự cố.\n" + +msgid "the web process exceeded the memory limit.\n" +msgstr "tiến trình web dùng quá giới hạn bộ nhớ.\n" + +msgid "the web process terminated for an unknown reason.\n" +msgstr "tiến trình web đã kết thúc với lý do không xác định.\n" + +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "thư mục chứa tiện ích mở rộng webkit đực cài thành: %s\n" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +msgid "ø" +msgstr "" diff --git a/badwolf/uri.c b/badwolf/uri.c new file mode 100755 index 0000000..df9343a --- /dev/null +++ b/badwolf/uri.c @@ -0,0 +1,38 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "uri.h" + +#include /* g_strcmp0(), g_uri_parse_scheme(), g_strdup_printf */ +#include /* realpath(), free() */ +#include /* access() */ + +const gchar * +badwolf_ensure_uri_scheme(const gchar *text, gboolean try_file) +{ + const gchar *fallback = "file:///home/void/x/web/homepage.xhtml"; + char *path = NULL; + + if(g_strcmp0(text, "") <= 0) return fallback; + + if(g_uri_parse_scheme(text)) return text; + + if(try_file) + { + /* flawfinder: ignore. `path` is allocated by realpath itself */ + path = realpath(text, NULL); + gchar *f = NULL; + + if(path != NULL) + { + f = g_strdup_printf("file://%s", path); + + free(path); + + return f; + } + } + + return g_strdup_printf("http://%s", text); +} diff --git a/badwolf/uri.h b/badwolf/uri.h new file mode 100755 index 0000000..83d67d1 --- /dev/null +++ b/badwolf/uri.h @@ -0,0 +1,20 @@ +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef URI_H_INCLUDED +#define URI_H_INCLUDED +#include + +/* badwolf_ensure_uri_scheme: tries to add a scheme on a pseudo-URL missing a scheme + * - gchar text: pseudo-URL missing a scheme + * - gboolean try_file: when TRUE check try first if it can be a file:// path + * + * When `text` isn't exploitable (ie. NULL), returns "about:blank", + * when the URL seems to be valid, return it, + * if try_file is TRUE, check if it can be file:// path, + * some other checks might be added. + * In the end use the fallback (`http://` for now, might get configuration), + * might get some safeguard. + */ +const gchar *badwolf_ensure_uri_scheme(const gchar *text, gboolean try_file); +#endif /* URI_H_INCLUDED */ diff --git a/badwolf/uri.o b/badwolf/uri.o new file mode 100755 index 0000000000000000000000000000000000000000..632a68b9477c85fcd39a36e9554784319176a849 GIT binary patch literal 6968 zcmb`L3s}rq8^Hh5q(P@uUg@e`e5@{e;WzKqgj zgO6%r_AYMgptZFhO%p0tEp@1}S^k&x8cq4t2XRi(8!ws{r)I4DJ%4&z{b-Z8%R}4J zJ+3-cPYu4RAr${v@3(BlQkxYo{8Msf+0SipHg7f1wHi6WW|@g)*2LMSyjPq{KTJyV zFk84XbK%))o!WWU@zthN*t09=?U=L5)<;w$?RRQ(@Uf(OtH&KX*f6NLiJ!0a^l#qS z=Y?ChS$G|Kom6nR#HQz-_nU8)`=z^|TQEc-5TE6Z_w$+H6V@^HiLofadU;l$TqAwb z@l@+4Qn`zJ2b0!wbTL_%YOD}DsbIeMb&pC{!-DdpF(=>r{<`!(ev2j?eK)L^nz6a{ z62~K%MJ^9DwXEA`y-U6~tag9$NlED9#ZMc1U2+=G*EM2x?^V`CE#~Z>&ab*;vL)c? zgB0d%iDz9OS@S}VK4~wkQ(G{yIDJrl(cXEtKVGtC?DT<$q%QcX=-22Z3rK;b?B()`dKMu2YRxnRoBQHU2J}? z{QWXVzihDoi*r>@t)8T{JV}$=W6dlOJ_M>dg!aOOG17J|6OF$L~NmCxq z4KuFabo1^e$9v;!@2dYWy!z|r9Zo_?{U!ap#9knuHmz7L$dQue9YOfWySNA zTW-0>{M~=Vd)4!2PmL?7;D#tDC`in(I2s{GH?hVuOy5|h-Uzw%V6+s@>R$=fGg$kS z6F~Nd#TWAtl~ELC$6qi@3qTS%vhWc%JgLRTn`$) z+x4PJV#Qx)&J0amTY1Z|~Oe z7oTX{_&n8NXT{#24Dn%4?>m#{taCR`?Cams+b#D-dVl_jkpX#+zrX9b;PkL3o=#IM z-L_};4$LysE4ngc$EAC#vY5QyWyN}xM4ROUN4`EvWH*xUr*tt z!O+vF%%Hf>e3qy;_9yE~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qes5jTP> zkXu*rxADFyQl{zrrQ@%V_)ZU{k^!3y3HiHJX?>b&(*7+}L3H8+I$nZ9`L* t*pb|O!5`kebUgfRO27LMVw~~&Hx>*Pq2~{dNmubjxc}sSNm9`9{{pfxNb>*y literal 0 HcmV?d00001 diff --git a/badwolf/uri_test.c b/badwolf/uri_test.c new file mode 100755 index 0000000..5db020f --- /dev/null +++ b/badwolf/uri_test.c @@ -0,0 +1,67 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +// +// SPDX-License-Identifier: BSD-3-Clause + +#include "uri.h" + +#include +#include + +static void +badwolf_ensure_uri_scheme_test(void) +{ + const gchar *fallback = "/home/void/x/web/homepage.xhtml"; + + struct + { + const gchar *expect; + const gchar *text; + gboolean try_file; + } cases[] = { + // + {"http://uri.c", "http://uri.c", FALSE}, + {"http://uri.c", "http://uri.c", TRUE}, + {"file:///dev/null", "file:///dev/null", FALSE}, + {"file:///dev/null", "file:///dev/null", TRUE}, + {fallback, NULL, FALSE}, + {fallback, NULL, TRUE}, + {fallback, "", FALSE}, + {fallback, "", TRUE}, + {"http:///dev/null", "/dev/null", FALSE}, + {"file:///dev/null", "/dev/null", TRUE}, + {"http:///root", "/root", FALSE}, + {"file:///root", "/root", TRUE}, + {"http:///usr/../dev/null", "/usr/../dev/null", FALSE}, + {"file:///dev/null", "/usr/../dev/null", TRUE}, + {"http://example.org", "example.org", FALSE}, + {"http://example.org", "example.org", TRUE}, + {"http://", "http://", FALSE}, + {"http://", "http://", TRUE}, + {"http://badwolf.c", "badwolf.c", FALSE} // + }; + + for(size_t i = 0; i < sizeof(cases) / sizeof(cases[0]); i++) + { + g_info("badwolf_ensure_uri_scheme(\"%s\", %s)", + cases[i].text, + cases[i].try_file ? "TRUE" : "FALSE"); + + const gchar *got = badwolf_ensure_uri_scheme(cases[i].text, cases[i].try_file); + + if(g_strcmp0(got, cases[i].expect) != 0) + { + g_error("expected: \"%s\", got: \"%s\"", cases[i].expect, got); + } + } +} + +int +main(int argc, char *argv[]) +{ + g_test_init(&argc, &argv, NULL); + + g_test_add_func("/badwolf_ensure_uri_scheme/test", badwolf_ensure_uri_scheme_test); + + return g_test_run(); +} diff --git a/badwolf/userscripts.c b/badwolf/userscripts.c new file mode 100755 index 0000000..da524b4 --- /dev/null +++ b/badwolf/userscripts.c @@ -0,0 +1,76 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include "userscripts.h" + +#include "badwolf.h" +#include "config.h" + +#include +#include /* _() and other internationalization/localization helpers */ +#include + +void +load_userscripts(WebKitUserContentManager *content_manager) +{ + glob_t scripts_path_glob; + gchar *scripts_path = g_build_filename(g_get_user_data_dir(), "badwolf", "scripts", "*.js", NULL); + unsigned int loaded = 0, failed = 0; + + fprintf(stderr, _("badwolf: Checking for userscripts matching %s\n"), scripts_path); + + switch(glob(scripts_path, GLOB_NOSORT, NULL, &scripts_path_glob)) + { + case 0: + fprintf(stderr, _("badwolf: Notice: Found %zd userscripts\n"), scripts_path_glob.gl_pathc); + break; + case GLOB_NOMATCH: + fprintf(stderr, _("badwolf: Notice: No userscripts found\n")); + goto clean; + break; + case GLOB_NOSPACE: + fprintf(stderr, _("badwolf: Failed to list userscripts: Out of Memory\n")); + goto clean; + break; + case GLOB_ABORTED: + fprintf(stderr, _("badwolf: Failed to list userscripts: Read Error\n")); + goto clean; + break; + } + + for(size_t i = 0; i < scripts_path_glob.gl_pathc; i++) + { + char *filename = scripts_path_glob.gl_pathv[i]; + gchar *contents; + GError *err = NULL; + + if(g_file_get_contents(filename, &contents, NULL, &err) && err == NULL) + { + + WebKitUserScript *userscript = + webkit_user_script_new(contents, + WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES, + WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START, + NULL, + NULL); + webkit_user_content_manager_add_script(content_manager, userscript); + loaded++; + } + else + { + fprintf(stderr, _("badwolf: Error reading userscript: %s\n"), err->message); + g_error_free(err); + failed++; + } + } + + fprintf(stderr, + _("badwolf: Notice: Userscript loading: %d loaded, %d failed to load\n"), + loaded, + failed); + +clean: + g_free(scripts_path); + globfree(&scripts_path_glob); +} diff --git a/badwolf/userscripts.h b/badwolf/userscripts.h new file mode 100755 index 0000000..2697c1a --- /dev/null +++ b/badwolf/userscripts.h @@ -0,0 +1,7 @@ +// BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +// SPDX-FileCopyrightText: 2019-2023 Badwolf Authors +// SPDX-License-Identifier: BSD-3-Clause + +#include + +void load_userscripts(WebKitUserContentManager *content_manager); diff --git a/badwolf/userscripts.o b/badwolf/userscripts.o new file mode 100755 index 0000000000000000000000000000000000000000..6706a2af01c5e4c7c843ae7be807eb4241e6e94a GIT binary patch literal 14776 zcmb`Nd0b6R_`pxy+rDq4sEZ=0w9!KQc6-|-ij=z5ZBsYhN>oS-Dp3@YBx?$9ROGc( zXnFM}L}d$aNL0M`Z2ivMJHs*f{qg(!o=^9jdA{?^GtbPNGjqbM4>;GJ~0wq9Gf?%%N*)@icpl6$TAY zK?w(g24=1lNHKGjc&DruX6{Uof))m&e+lujdC)oQ60aOH#{$^6W<5L)B4cJ#kY-%&f-qbY7mlhA6L4`UgRojLoF|nuN>-nT!%LMfIKjK_DU8V3g_~b544N zxhc>kGly(T2y;5WWipw0q)+DBOB={~7yH}z+4$Qmu?e^+qn=6vtTI~sR%UvNhCU&a z;X;-&xZ|1|uc76d8>PW87;3TC7!Qg(cac#iTys{4@&Yv&O>Yu_-NQ`3C_oL>HERTm zmYI{Hp~W|u?Wdt17YKqi1%30MYt}F`XHE~3tVRn|!?Vh400vs|dCbg)gd9+sK@N|> z-v-wW-cf2Jhmx7q%qx*jMk&Aq&bj-@IDZ@}o<)wU#(0~or*OE)VdBLI$7hzsUMEQ^mL zf>I;(4cr0?tgb;i*( z5ze*Dc^ghnycT)%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d;szQjHf~#PVo#O^geTy!hxTB=;t2B zPeCpSUsh4Q=zUKDax`A(K2@P`&<|svA2p22Lp~MblOdmu@rjV@Lk?6Be+u~n;*Rm_ zd`$RI{D3BcJq{qD6b|Clh5jQkJ`M6Xj9WsUi19g)r$7!=5GT4%3ot$&WRg-s@dM&q z!lMLngu+3be?b3L7HWUux355N*n8Ja*KKTO@N#Vd0eeYNSIS32<(x9I#jAuh$fN}JER)%q5H~TKrQNAsj7$Rq{v8PMLFkH2xWue2EBXg&$VxCivZ z#<(Bkkr)qwJO<;@kjG;j-R~X@m&5n9HqGID3%`YqnRG~vPS3y#l;bN+!&w$a|1o{vmI3>Ki2Wegs_7W!U7^V zp)rIWKg|jX;BLgx3lmwXknnvou zG11ZFw>d(O6BEzYBmc2Lm-mqk>S3G&y=B~(Wo&NzN?12Locz8Az7YOD34`h;p9whr!|MNa(l6kH0!4mX8c>Y1$>{s=N!{;gV z-G?;e2`Z0t@crdiiDE?}afhzP-2AKw84U9?A#%>H`hQc~e+We~gGVn2(lnKa?uYRi^;VUHP zm52H0lq=6qq4yfZQ8{$(CNoeP*?{vNSf0v28n^8y8MvnBU;}6OLLG9;j1Tjh` zfKR;qRak#GGK6Qm{6~`iYW!pk`32B8f$;-#2`Z2Huj&RRO<~6c!tn$4V}4N{+@{zN flZ1SZ2ganRVjYI5y#E>aRe3EKzZg~kQ;Gip+oHTl literal 0 HcmV?d00001 diff --git a/badwolf/usr.bin.badwolf b/badwolf/usr.bin.badwolf new file mode 100755 index 0000000..861ee9f --- /dev/null +++ b/badwolf/usr.bin.badwolf @@ -0,0 +1,81 @@ +# BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +# Copyright © 2019-2021 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause +# +# Made on Gentoo Linux with PREFIX=/usr +#include + +/usr/bin/badwolf { + #include + #include + #include + #include + #include + + /usr/bin/badwolf mr, + /usr/bin/bwrap Cx, + /usr/libexec/webkit2gtk-4.0/WebKitNetworkProcess Cx, + /usr/libexec/webkit2gtk-4.0/WebKitWebProcess Cx, + + owner @{PROC}/@{pid}/cmdline r, + owner @{PROC}/@{pid}/fd/ r, + + owner @{HOME}/.local/share/badwolf/ r, + owner @{HOME}/.local/share/badwolf/** r, + + deny @{HOME}/.local/share/webkitgtk/** rwmlk, + + / r, + /** r, + + #include + + profile /usr/libexec/webkit2gtk-4.0/WebKitNetworkProcess { + #include + #include + #include + #include + + network inet stream, + network inet6 stream, + + /usr/libexec/webkit2gtk-4.0/WebKitNetworkProcess mr, + /** r, + owner /** w, + } + + profile /usr/libexec/webkit2gtk-4.0/WebKitWebProcess { + #include + #include + #include + #include + #include + #include + #include + #include + + /usr/libexec/webkit2gtk-4.0/WebKitWebProcess mr, + + owner @{PROC}/@{pid}/cmdline r, + owner @{PROC}/@{pid}/fd/ r, + + /etc/passwd r, + /etc/group r, + /etc/nsswitch.conf r, + /dev/ r, + + owner @{HOME}/.local/share/badwolf/webkit-web-extension/ r, + owner @{HOME}/.local/share/badwolf/webkit-web-extension/** mr, + } + + profile /usr/bin/bwrap { + #include + + deny capability sys_admin, + + /usr/bin/bwrap mr, + @{PROC}/sys/kernel/overflowuid r, + @{PROC}/sys/kernel/overflowgid r, + owner @{PROC}/@{pid}/fd/ r, + } +} diff --git a/badwolf/version.sh b/badwolf/version.sh new file mode 100755 index 0000000..00eeeeb --- /dev/null +++ b/badwolf/version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# SPDX-FileCopyrightText: 2019-2022 Badwolf Authors +# SPDX-License-Identifier: BSD-3-Clause + +if command -v git 2>/dev/null >/dev/null +then + hash=$(git --git-dir="$(dirname $0)/.git" rev-parse --short HEAD 2>/dev/null) + branch=$(git --git-dir="$(dirname $0)/.git" rev-parse --abbrev-ref HEAD 2>/dev/null | sed -r 's/.*[^0-9A-Za-z-]([0-9A-Za-z-]*)$/\1/g') + + if [ -n "$hash" ] || [ -n "$branch" ] + then + printf '+g%s.%s' "$hash" "$branch" + fi +fi +echo diff --git a/bar/README.md b/bar/README.md new file mode 100644 index 0000000..7023fb9 --- /dev/null +++ b/bar/README.md @@ -0,0 +1,11 @@ +# Vilyaem's Shellscript Status Bar + +This is a status bar for dwm. It has the following features: + +* Date +* Verse of the Day/Now +* Current Weather +* Crypto Prices +* Disk Usage +* Battery Capacity +* CPU Loads diff --git a/bar/bar b/bar/bar new file mode 100755 index 0000000..6546922 --- /dev/null +++ b/bar/bar @@ -0,0 +1,53 @@ +#!/bin/sh +############################################ +# Description - DWM Status Bar in POSIX +# Author - Vilyaem +############################################ + +#On Busybox, having a big hosts file lags out for ~40 seconds, so we use raw IP addresses. +WTTR="5.9.243.187" +RATESX="5.9.243.188" + +while true; do + +cl +#WEATHER=$(curl -s wttr.in/Detroit | awk '/°F/ {print $4}' | sed 's/\x1b\[[0-9;]*m//g' | tr -cd '0-9()+-') +#WOW=$(curl -s https://rate.sx/WOW@1h | awk '/avg/ {print $2}') +#VOTD=$(w3m -dump https://www.votd.mobi/ | awk '/:/' | sed -n '1p') +DATE="$(date -I)$(printf " " ; date | awk '{print $1 " " $4}')" # Current Date +WEATHER=$(curl -s "$WTTR/Detroit?format=1") # Current Weather +XMR=$(curl -s "$RATESX/XMR@1h" | awk '/avg/ {print $2}' | sed 's/\x1b\[[0-9;]*m//g') # XMR Crypto Price +CPU=$(mpstat -A | sed -n '5,8p' | awk '{print $3}' | tr '\n' ' ') # CPU Loads +DSK=$(df -h /dev/sda3 | awk '/sda3/ {print $4" "$5}') # Disk Usage +BAT=$(cat /sys/class/power_supply/BAT0/capacity) # Battery Capacity +VOTD=$( # Local Random Scripture Verse + BOOK=$(kjv -l | awk '{ if (length($1) > 3) print $1}' | shuf -n 1) ; \ + printf "%s" $BOOK ; \ + NUM=$(kjv "$(echo "$BOOK")" \ + | awk '{print $1}' \ + | awk '/[0-9]:[0-9]/' \ + | shuf -n 1); printf " %s" $NUM) \ + +# Handle when I plug in a monitor. +# Get the status of the VGA1 display +VGA_STATUS=$(xrandr | grep "VGA1 connected") +# Check if VGA1 is connected +if [[ -n "$VGA_STATUS" ]]; then + # Set VGA1 as the primary display + xrandr --output VGA1 --primary --auto --output LVDS1 --off + #printf "VGA1 is now set as the primary display.\n" +else + #printf "VGA1 is not connected.\n" + xrandr -s 1280x720 --output LVDS1 --primary --auto --output VGA1 --off +fi + +BAR="☦️[⌚$DATE][📖$VOTD][$WEATHER][💰$XMR][💿$DSK][🔋$BAT][$CPU]" +# non-unicode BAR="+[D:$DATE][V:$VOTD][W:$WEATHER][XMR:$XMR][DSK:$DSK][B:$BAT][$CPU]" + +printf "%s\n", "$BAR" + +xsetroot -name "$BAR" + +sleep 32 +#sleep 0 +done diff --git a/cl/c.sh b/cl/c.sh new file mode 100755 index 0000000..2309fd4 --- /dev/null +++ b/cl/c.sh @@ -0,0 +1,7 @@ +#!/bin/sh +cl +rm cl +#cc -O3 -std=c89 -Wall cl.c -o cl +cc cl.s -o cl -nostdlib -no-pie || exit 1 +cp cl /usr/bin/ +#gdb -ex run cl diff --git a/cl/cl b/cl/cl new file mode 100755 index 0000000000000000000000000000000000000000..f803a7c3bf871893e44e1f17868867d03f045ccb GIT binary patch literal 4800 zcmeHLyGjE=6usFzg+QVx2x}pj!p6lSN(zx})I~(Fuu8FPvcW`R0@(?uP5c-OKR~S% zG==*K7B-gY#4pgfGk4ZxF^#3ng~^$F&dko{Y&B=FbFgb95}?X}ZNM&Dv;`%90qj}P z5?6sF*pPv=SeyEh_{^qGVxAtY5QDhfO$OzZo~JO z$D!i`Si!{^^J*MfPhwNeI$hSVPC9+7)^D}_wU!SSYn-!*_xfvN@{L(O_&*h;atxJk zs2qc2kz=SiqQwV#jvq>t@|SXzC_fg;j8Li=xs#QX%alN|Mngfqlb8^Js6 YUyT?!iJy +void main(void){puts("\x1b[H\x1b[J");} diff --git a/cl/cl.s b/cl/cl.s new file mode 100644 index 0000000..893f07b --- /dev/null +++ b/cl/cl.s @@ -0,0 +1,25 @@ +#Clear the screen +#By vilyaem + +# you cant have this with libc +.global _start +# you need this with libc +#.global main + +str: +.asciz "\x1b[H\x1b[J" +_start: + +#lea str, %rdi +#mov $0, %rax +#call puts + +mov $1, %rax +mov $1, %rdi +mov $str, %rsi +mov $6, %rdx +syscall + +mov $60, %rax +mov $0, %rdi +syscall diff --git a/dmenu/LICENSE b/dmenu/LICENSE new file mode 100755 index 0000000..2a64b28 --- /dev/null +++ b/dmenu/LICENSE @@ -0,0 +1,30 @@ +MIT/X Consortium License + +© 2006-2019 Anselm R Garbe +© 2006-2008 Sander van Dijk +© 2006-2007 Michał Janeczek +© 2007 Kris Maglione +© 2009 Gottox +© 2009 Markus Schnalke +© 2009 Evan Gates +© 2010-2012 Connor Lane Smith +© 2014-2022 Hiltjo Posthuma +© 2015-2019 Quentin Rameau + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/dmenu/Makefile b/dmenu/Makefile new file mode 100755 index 0000000..a03a95c --- /dev/null +++ b/dmenu/Makefile @@ -0,0 +1,64 @@ +# dmenu - dynamic menu +# See LICENSE file for copyright and license details. + +include config.mk + +SRC = drw.c dmenu.c stest.c util.c +OBJ = $(SRC:.c=.o) + +all: options dmenu stest + +options: + @echo dmenu build options: + @echo "CFLAGS = $(CFLAGS)" + @echo "LDFLAGS = $(LDFLAGS)" + @echo "CC = $(CC)" + +.c.o: + $(CC) -c $(CFLAGS) $< + +config.h: + cp config.def.h $@ + +$(OBJ): arg.h config.h config.mk drw.h + +dmenu: dmenu.o drw.o util.o + $(CC) -o $@ dmenu.o drw.o util.o $(LDFLAGS) + +stest: stest.o + $(CC) -o $@ stest.o $(LDFLAGS) + +clean: + rm -f dmenu stest $(OBJ) dmenu-$(VERSION).tar.gz + +dist: clean + mkdir -p dmenu-$(VERSION) + cp LICENSE Makefile README arg.h config.def.h config.mk dmenu.1\ + drw.h util.h dmenu_path dmenu_run stest.1 $(SRC)\ + dmenu-$(VERSION) + tar -cf dmenu-$(VERSION).tar dmenu-$(VERSION) + gzip dmenu-$(VERSION).tar + rm -rf dmenu-$(VERSION) + +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f dmenu dmenu_path dmenu_run stest $(DESTDIR)$(PREFIX)/bin + chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu + chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_path + chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_run + chmod 755 $(DESTDIR)$(PREFIX)/bin/stest + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + sed "s/VERSION/$(VERSION)/g" < dmenu.1 > $(DESTDIR)$(MANPREFIX)/man1/dmenu.1 + sed "s/VERSION/$(VERSION)/g" < stest.1 > $(DESTDIR)$(MANPREFIX)/man1/stest.1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/dmenu.1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/stest.1 + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/dmenu\ + $(DESTDIR)$(PREFIX)/bin/dmenu_path\ + $(DESTDIR)$(PREFIX)/bin/dmenu_run\ + $(DESTDIR)$(PREFIX)/bin/stest\ + $(DESTDIR)$(MANPREFIX)/man1/dmenu.1\ + $(DESTDIR)$(MANPREFIX)/man1/stest.1 + +.PHONY: all options clean dist install uninstall diff --git a/dmenu/README b/dmenu/README new file mode 100755 index 0000000..a8fcdfe --- /dev/null +++ b/dmenu/README @@ -0,0 +1,24 @@ +dmenu - dynamic menu +==================== +dmenu is an efficient dynamic menu for X. + + +Requirements +------------ +In order to build dmenu you need the Xlib header files. + + +Installation +------------ +Edit config.mk to match your local setup (dmenu is installed into +the /usr/local namespace by default). + +Afterwards enter the following command to build and install dmenu +(if necessary as root): + + make clean install + + +Running dmenu +------------- +See the man page for details. diff --git a/dmenu/arg.h b/dmenu/arg.h new file mode 100755 index 0000000..e94e02b --- /dev/null +++ b/dmenu/arg.h @@ -0,0 +1,49 @@ +/* + * Copy me if you can. + * by 20h + */ + +#ifndef ARG_H__ +#define ARG_H__ + +extern char *argv0; + +/* use main(int argc, char *argv[]) */ +#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\ + argv[0] && argv[0][0] == '-'\ + && argv[0][1];\ + argc--, argv++) {\ + char argc_;\ + char **argv_;\ + int brk_;\ + if (argv[0][1] == '-' && argv[0][2] == '\0') {\ + argv++;\ + argc--;\ + break;\ + }\ + for (brk_ = 0, argv[0]++, argv_ = argv;\ + argv[0][0] && !brk_;\ + argv[0]++) {\ + if (argv_ != argv)\ + break;\ + argc_ = argv[0][0];\ + switch (argc_) + +#define ARGEND }\ + } + +#define ARGC() argc_ + +#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\ + ((x), abort(), (char *)0) :\ + (brk_ = 1, (argv[0][1] != '\0')?\ + (&argv[0][1]) :\ + (argc--, argv++, argv[0]))) + +#define ARGF() ((argv[0][1] == '\0' && argv[1] == NULL)?\ + (char *)0 :\ + (brk_ = 1, (argv[0][1] != '\0')?\ + (&argv[0][1]) :\ + (argc--, argv++, argv[0]))) + +#endif diff --git a/dmenu/config.def.h b/dmenu/config.def.h new file mode 100755 index 0000000..1edb647 --- /dev/null +++ b/dmenu/config.def.h @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +/* Default settings; can be overriden by command line. */ + +static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +/* -fn option overrides fonts[0]; default X11 font or font set */ +static const char *fonts[] = { + "monospace:size=10" +}; +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#eeeeee", "#005577" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; +/* -l option; if nonzero, dmenu uses vertical list with given number of lines */ +static unsigned int lines = 0; + +/* + * Characters not considered part of a word while deleting words + * for example: " /?\"&[]" + */ +static const char worddelimiters[] = " "; diff --git a/dmenu/config.h b/dmenu/config.h new file mode 100755 index 0000000..61d187d --- /dev/null +++ b/dmenu/config.h @@ -0,0 +1,25 @@ +/* See LICENSE file for copyright and license details. */ +/* Default settings; can be overriden by command line. */ + +static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +/* -fn option overrides fonts[0]; default X11 font or font set */ +static const char *fonts[] = { + /*"monospace:size=10"*/ + "TerminessNerdFont:pixelsize=16:antialias=true:autohint=true" + // "Terminus:pixelsize=16:antialias=true:autohint=true" +}; +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#000000", "#b4daf2" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; +/* -l option; if nonzero, dmenu uses vertical list with given number of lines */ +static unsigned int lines = 0; + +/* + * Characters not considered part of a word while deleting words + * for example: " /?\"&[]" + */ +static const char worddelimiters[] = " "; diff --git a/dmenu/config.mk b/dmenu/config.mk new file mode 100755 index 0000000..566348b --- /dev/null +++ b/dmenu/config.mk @@ -0,0 +1,32 @@ +# dmenu version +VERSION = 5.2 + +# paths +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man + +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + +# Xinerama, comment if you don't want it +XINERAMALIBS = -lXinerama +XINERAMAFLAGS = -DXINERAMA + +# freetype +FREETYPELIBS = -lfontconfig -lXft +FREETYPEINC = /usr/include/freetype2 +# OpenBSD (uncomment) +#FREETYPEINC = $(X11INC)/freetype2 +#MANPREFIX = ${PREFIX}/man + +# includes and libs +INCS = -I$(X11INC) -I$(FREETYPEINC) +LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) + +# flags +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS) +CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS) +LDFLAGS = $(LIBS) + +# compiler and linker +CC = cc diff --git a/dmenu/dmenu b/dmenu/dmenu new file mode 100755 index 0000000000000000000000000000000000000000..0a69dafcaa5a91f977761add1832646f325c7f8b GIT binary patch literal 43304 zcmeHweS8$v`R{C!g@BL^3K|h)#YGb#F+qX}5Y3WJn1uxb2@nAdn`8rv$!@wk3yDRE zZi0?Wlv=d5wH8~;&zIKHH;XUDKoDuw8c`A7XjH^mBNSf>QLDM%=bSTPvSohve(wF_ zem?gyu=||nd!F;0=RD^*XU?3N*=#KJlqFd#l71vh*GR-|yP6}#B4f=%A^}n?6-XoT zJwduy8Uj9rVLZQ>6Xf#aP|{$UD)3}bDwjctGthAymUOCHNR-N%9VbKqol5CklFC^r zX{Rq7cJ@6$hfU?YPL1VQeXE3g0&Py?xK54b$TxS~%<~iJ7G{hjb!PH>y&SoV%H1!@ zB~rWar%rW$l8y8!5dKW0cI44vXWx>PSguNxOQbF#uT!dnj*5?zy8oT}%0;=AKCUN` z&Z3UOp;NuSMJPvp`CmOmw@ZsfeTn|p`DWoyor>zED;xYZ)2Ch8P?z1{4@8=?n+v9A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Px_-$Hh7LRX9(Z1hbN?AX4-Y&}Nv>f}K#v@%Y zI{h#3#_~<#x>u*Vy}Aya*XfRg^7?hNPB%``OLD5$tD{dQlpnZpy_idg@YBUvUkxxw zJc|$6ulJv{3Je{q*tfJiq5XCa4}4R68O!VU>vTGcG7U%K_&b0+WBL2*xv)<4{?}FL ze$)APkx0Ww4Eurmuln-0;Y6nlF8`u#_p+J$39 z7!Sm+-j9!?EVW-RzjGrP96HVA?7+8PuTH;3jn%Di-NfyDCk2O+5b#CGcC^?hnx3(3-9qzO%A`2|r% zq*U=-=6JC5Op)Gheg38Kq1(<&@bBXLI8Dld9zkFdl5?JYf E02-BHK>z>% literal 0 HcmV?d00001 diff --git a/dmenu/dmenu.1 b/dmenu/dmenu.1 new file mode 100755 index 0000000..323f93c --- /dev/null +++ b/dmenu/dmenu.1 @@ -0,0 +1,194 @@ +.TH DMENU 1 dmenu\-VERSION +.SH NAME +dmenu \- dynamic menu +.SH SYNOPSIS +.B dmenu +.RB [ \-bfiv ] +.RB [ \-l +.IR lines ] +.RB [ \-m +.IR monitor ] +.RB [ \-p +.IR prompt ] +.RB [ \-fn +.IR font ] +.RB [ \-nb +.IR color ] +.RB [ \-nf +.IR color ] +.RB [ \-sb +.IR color ] +.RB [ \-sf +.IR color ] +.RB [ \-w +.IR windowid ] +.P +.BR dmenu_run " ..." +.SH DESCRIPTION +.B dmenu +is a dynamic menu for X, which reads a list of newline\-separated items from +stdin. When the user selects an item and presses Return, their choice is printed +to stdout and dmenu terminates. Entering text will narrow the items to those +matching the tokens in the input. +.P +.B dmenu_run +is a script used by +.IR dwm (1) +which lists programs in the user's $PATH and runs the result in their $SHELL. +.SH OPTIONS +.TP +.B \-b +dmenu appears at the bottom of the screen. +.TP +.B \-f +dmenu grabs the keyboard before reading stdin if not reading from a tty. This +is faster, but will lock up X until stdin reaches end\-of\-file. +.TP +.B \-i +dmenu matches menu items case insensitively. +.TP +.BI \-l " lines" +dmenu lists items vertically, with the given number of lines. +.TP +.BI \-m " monitor" +dmenu is displayed on the monitor number supplied. Monitor numbers are starting +from 0. +.TP +.BI \-p " prompt" +defines the prompt to be displayed to the left of the input field. +.TP +.BI \-fn " font" +defines the font or font set used. +.TP +.BI \-nb " color" +defines the normal background color. +.IR #RGB , +.IR #RRGGBB , +and X color names are supported. +.TP +.BI \-nf " color" +defines the normal foreground color. +.TP +.BI \-sb " color" +defines the selected background color. +.TP +.BI \-sf " color" +defines the selected foreground color. +.TP +.B \-v +prints version information to stdout, then exits. +.TP +.BI \-w " windowid" +embed into windowid. +.SH USAGE +dmenu is completely controlled by the keyboard. Items are selected using the +arrow keys, page up, page down, home, and end. +.TP +.B Tab +Copy the selected item to the input field. +.TP +.B Return +Confirm selection. Prints the selected item to stdout and exits, returning +success. +.TP +.B Ctrl-Return +Confirm selection. Prints the selected item to stdout and continues. +.TP +.B Shift\-Return +Confirm input. Prints the input text to stdout and exits, returning success. +.TP +.B Escape +Exit without selecting an item, returning failure. +.TP +.B Ctrl-Left +Move cursor to the start of the current word +.TP +.B Ctrl-Right +Move cursor to the end of the current word +.TP +.B C\-a +Home +.TP +.B C\-b +Left +.TP +.B C\-c +Escape +.TP +.B C\-d +Delete +.TP +.B C\-e +End +.TP +.B C\-f +Right +.TP +.B C\-g +Escape +.TP +.B C\-h +Backspace +.TP +.B C\-i +Tab +.TP +.B C\-j +Return +.TP +.B C\-J +Shift-Return +.TP +.B C\-k +Delete line right +.TP +.B C\-m +Return +.TP +.B C\-M +Shift-Return +.TP +.B C\-n +Down +.TP +.B C\-p +Up +.TP +.B C\-u +Delete line left +.TP +.B C\-w +Delete word left +.TP +.B C\-y +Paste from primary X selection +.TP +.B C\-Y +Paste from X clipboard +.TP +.B M\-b +Move cursor to the start of the current word +.TP +.B M\-f +Move cursor to the end of the current word +.TP +.B M\-g +Home +.TP +.B M\-G +End +.TP +.B M\-h +Up +.TP +.B M\-j +Page down +.TP +.B M\-k +Page up +.TP +.B M\-l +Down +.SH SEE ALSO +.IR dwm (1), +.IR stest (1) diff --git a/dmenu/dmenu.c b/dmenu/dmenu.c new file mode 100755 index 0000000..40f93e0 --- /dev/null +++ b/dmenu/dmenu.c @@ -0,0 +1,796 @@ +/* See LICENSE file for copyright and license details. */ +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#ifdef XINERAMA +#include +#endif +#include + +#include "drw.h" +#include "util.h" + +/* macros */ +#define INTERSECT(x,y,w,h,r) (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \ + * MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) +#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) + +/* enums */ +enum { SchemeNorm, SchemeSel, SchemeOut, SchemeLast }; /* color schemes */ + +struct item { + char *text; + struct item *left, *right; + int out; +}; + +static char text[BUFSIZ] = ""; +static char *embed; +static int bh, mw, mh; +static int inputw = 0, promptw; +static int lrpad; /* sum of left and right padding */ +static size_t cursor; +static struct item *items = NULL; +static struct item *matches, *matchend; +static struct item *prev, *curr, *next, *sel; +static int mon = -1, screen; + +static Atom clip, utf8; +static Display *dpy; +static Window root, parentwin, win; +static XIC xic; + +static Drw *drw; +static Clr *scheme[SchemeLast]; + +#include "config.h" + +static int (*fstrncmp)(const char *, const char *, size_t) = strncmp; +static char *(*fstrstr)(const char *, const char *) = strstr; + +static unsigned int +textw_clamp(const char *str, unsigned int n) +{ + unsigned int w = drw_fontset_getwidth_clamp(drw, str, n) + lrpad; + return MIN(w, n); +} + +static void +appenditem(struct item *item, struct item **list, struct item **last) +{ + if (*last) + (*last)->right = item; + else + *list = item; + + item->left = *last; + item->right = NULL; + *last = item; +} + +static void +calcoffsets(void) +{ + int i, n; + + if (lines > 0) + n = lines * bh; + else + n = mw - (promptw + inputw + TEXTW("<") + TEXTW(">")); + /* calculate which items will begin the next page and previous page */ + for (i = 0, next = curr; next; next = next->right) + if ((i += (lines > 0) ? bh : textw_clamp(next->text, n)) > n) + break; + for (i = 0, prev = curr; prev && prev->left; prev = prev->left) + if ((i += (lines > 0) ? bh : textw_clamp(prev->left->text, n)) > n) + break; +} + +static void +cleanup(void) +{ + size_t i; + + XUngrabKey(dpy, AnyKey, AnyModifier, root); + for (i = 0; i < SchemeLast; i++) + free(scheme[i]); + for (i = 0; items && items[i].text; ++i) + free(items[i].text); + free(items); + drw_free(drw); + XSync(dpy, False); + XCloseDisplay(dpy); +} + +static char * +cistrstr(const char *h, const char *n) +{ + size_t i; + + if (!n[0]) + return (char *)h; + + for (; *h; ++h) { + for (i = 0; n[i] && tolower((unsigned char)n[i]) == + tolower((unsigned char)h[i]); ++i) + ; + if (n[i] == '\0') + return (char *)h; + } + return NULL; +} + +static int +drawitem(struct item *item, int x, int y, int w) +{ + if (item == sel) + drw_setscheme(drw, scheme[SchemeSel]); + else if (item->out) + drw_setscheme(drw, scheme[SchemeOut]); + else + drw_setscheme(drw, scheme[SchemeNorm]); + + return drw_text(drw, x, y, w, bh, lrpad / 2, item->text, 0); +} + +static void +drawmenu(void) +{ + unsigned int curpos; + struct item *item; + int x = 0, y = 0, w; + + drw_setscheme(drw, scheme[SchemeNorm]); + drw_rect(drw, 0, 0, mw, mh, 1, 1); + + if (prompt && *prompt) { + drw_setscheme(drw, scheme[SchemeSel]); + x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0); + } + /* draw input field */ + w = (lines > 0 || !matches) ? mw - x : inputw; + drw_setscheme(drw, scheme[SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); + + curpos = TEXTW(text) - TEXTW(&text[cursor]); + if ((curpos += lrpad / 2 - 1) < w) { + drw_setscheme(drw, scheme[SchemeNorm]); + drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0); + } + + if (lines > 0) { + /* draw vertical list */ + for (item = curr; item != next; item = item->right) + drawitem(item, x, y += bh, mw - x); + } else if (matches) { + /* draw horizontal list */ + x += inputw; + w = TEXTW("<"); + if (curr->left) { + drw_setscheme(drw, scheme[SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, "<", 0); + } + x += w; + for (item = curr; item != next; item = item->right) + x = drawitem(item, x, 0, textw_clamp(item->text, mw - x - TEXTW(">"))); + if (next) { + w = TEXTW(">"); + drw_setscheme(drw, scheme[SchemeNorm]); + drw_text(drw, mw - w, 0, w, bh, lrpad / 2, ">", 0); + } + } + drw_map(drw, win, 0, 0, mw, mh); +} + +static void +grabfocus(void) +{ + struct timespec ts = { .tv_sec = 0, .tv_nsec = 10000000 }; + Window focuswin; + int i, revertwin; + + for (i = 0; i < 100; ++i) { + XGetInputFocus(dpy, &focuswin, &revertwin); + if (focuswin == win) + return; + XSetInputFocus(dpy, win, RevertToParent, CurrentTime); + nanosleep(&ts, NULL); + } + die("cannot grab focus"); +} + +static void +grabkeyboard(void) +{ + struct timespec ts = { .tv_sec = 0, .tv_nsec = 1000000 }; + int i; + + if (embed) + return; + /* try to grab keyboard, we may have to wait for another process to ungrab */ + for (i = 0; i < 1000; i++) { + if (XGrabKeyboard(dpy, DefaultRootWindow(dpy), True, GrabModeAsync, + GrabModeAsync, CurrentTime) == GrabSuccess) + return; + nanosleep(&ts, NULL); + } + die("cannot grab keyboard"); +} + +static void +match(void) +{ + static char **tokv = NULL; + static int tokn = 0; + + char buf[sizeof text], *s; + int i, tokc = 0; + size_t len, textsize; + struct item *item, *lprefix, *lsubstr, *prefixend, *substrend; + + strcpy(buf, text); + /* separate input text into tokens to be matched individually */ + for (s = strtok(buf, " "); s; tokv[tokc - 1] = s, s = strtok(NULL, " ")) + if (++tokc > tokn && !(tokv = realloc(tokv, ++tokn * sizeof *tokv))) + die("cannot realloc %zu bytes:", tokn * sizeof *tokv); + len = tokc ? strlen(tokv[0]) : 0; + + matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; + textsize = strlen(text) + 1; + for (item = items; item && item->text; item++) { + for (i = 0; i < tokc; i++) + if (!fstrstr(item->text, tokv[i])) + break; + if (i != tokc) /* not all tokens match */ + continue; + /* exact matches go first, then prefixes, then substrings */ + if (!tokc || !fstrncmp(text, item->text, textsize)) + appenditem(item, &matches, &matchend); + else if (!fstrncmp(tokv[0], item->text, len)) + appenditem(item, &lprefix, &prefixend); + else + appenditem(item, &lsubstr, &substrend); + } + if (lprefix) { + if (matches) { + matchend->right = lprefix; + lprefix->left = matchend; + } else + matches = lprefix; + matchend = prefixend; + } + if (lsubstr) { + if (matches) { + matchend->right = lsubstr; + lsubstr->left = matchend; + } else + matches = lsubstr; + matchend = substrend; + } + curr = sel = matches; + calcoffsets(); +} + +static void +insert(const char *str, ssize_t n) +{ + if (strlen(text) + n > sizeof text - 1) + return; + /* move existing text out of the way, insert new text, and update cursor */ + memmove(&text[cursor + n], &text[cursor], sizeof text - cursor - MAX(n, 0)); + if (n > 0) + memcpy(&text[cursor], str, n); + cursor += n; + match(); +} + +static size_t +nextrune(int inc) +{ + ssize_t n; + + /* return location of next utf8 rune in the given direction (+1 or -1) */ + for (n = cursor + inc; n + inc >= 0 && (text[n] & 0xc0) == 0x80; n += inc) + ; + return n; +} + +static void +movewordedge(int dir) +{ + if (dir < 0) { /* move cursor to the start of the word*/ + while (cursor > 0 && strchr(worddelimiters, text[nextrune(-1)])) + cursor = nextrune(-1); + while (cursor > 0 && !strchr(worddelimiters, text[nextrune(-1)])) + cursor = nextrune(-1); + } else { /* move cursor to the end of the word */ + while (text[cursor] && strchr(worddelimiters, text[cursor])) + cursor = nextrune(+1); + while (text[cursor] && !strchr(worddelimiters, text[cursor])) + cursor = nextrune(+1); + } +} + +static void +keypress(XKeyEvent *ev) +{ + char buf[64]; + int len; + KeySym ksym = NoSymbol; + Status status; + + len = XmbLookupString(xic, ev, buf, sizeof buf, &ksym, &status); + switch (status) { + default: /* XLookupNone, XBufferOverflow */ + return; + case XLookupChars: /* composed string from input method */ + goto insert; + case XLookupKeySym: + case XLookupBoth: /* a KeySym and a string are returned: use keysym */ + break; + } + + if (ev->state & ControlMask) { + switch(ksym) { + case XK_a: ksym = XK_Home; break; + case XK_b: ksym = XK_Left; break; + case XK_c: ksym = XK_Escape; break; + case XK_d: ksym = XK_Delete; break; + case XK_e: ksym = XK_End; break; + case XK_f: ksym = XK_Right; break; + case XK_g: ksym = XK_Escape; break; + case XK_h: ksym = XK_BackSpace; break; + case XK_i: ksym = XK_Tab; break; + case XK_j: /* fallthrough */ + case XK_J: /* fallthrough */ + case XK_m: /* fallthrough */ + case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break; + case XK_n: ksym = XK_Down; break; + case XK_p: ksym = XK_Up; break; + + case XK_k: /* delete right */ + text[cursor] = '\0'; + match(); + break; + case XK_u: /* delete left */ + insert(NULL, 0 - cursor); + break; + case XK_w: /* delete word */ + while (cursor > 0 && strchr(worddelimiters, text[nextrune(-1)])) + insert(NULL, nextrune(-1) - cursor); + while (cursor > 0 && !strchr(worddelimiters, text[nextrune(-1)])) + insert(NULL, nextrune(-1) - cursor); + break; + case XK_y: /* paste selection */ + case XK_Y: + XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, + utf8, utf8, win, CurrentTime); + return; + case XK_Left: + case XK_KP_Left: + movewordedge(-1); + goto draw; + case XK_Right: + case XK_KP_Right: + movewordedge(+1); + goto draw; + case XK_Return: + case XK_KP_Enter: + break; + case XK_bracketleft: + cleanup(); + exit(1); + default: + return; + } + } else if (ev->state & Mod1Mask) { + switch(ksym) { + case XK_b: + movewordedge(-1); + goto draw; + case XK_f: + movewordedge(+1); + goto draw; + case XK_g: ksym = XK_Home; break; + case XK_G: ksym = XK_End; break; + case XK_h: ksym = XK_Up; break; + case XK_j: ksym = XK_Next; break; + case XK_k: ksym = XK_Prior; break; + case XK_l: ksym = XK_Down; break; + default: + return; + } + } + + switch(ksym) { + default: +insert: + if (!iscntrl((unsigned char)*buf)) + insert(buf, len); + break; + case XK_Delete: + case XK_KP_Delete: + if (text[cursor] == '\0') + return; + cursor = nextrune(+1); + /* fallthrough */ + case XK_BackSpace: + if (cursor == 0) + return; + insert(NULL, nextrune(-1) - cursor); + break; + case XK_End: + case XK_KP_End: + if (text[cursor] != '\0') { + cursor = strlen(text); + break; + } + if (next) { + /* jump to end of list and position items in reverse */ + curr = matchend; + calcoffsets(); + curr = prev; + calcoffsets(); + while (next && (curr = curr->right)) + calcoffsets(); + } + sel = matchend; + break; + case XK_Escape: + cleanup(); + exit(1); + case XK_Home: + case XK_KP_Home: + if (sel == matches) { + cursor = 0; + break; + } + sel = curr = matches; + calcoffsets(); + break; + case XK_Left: + case XK_KP_Left: + if (cursor > 0 && (!sel || !sel->left || lines > 0)) { + cursor = nextrune(-1); + break; + } + if (lines > 0) + return; + /* fallthrough */ + case XK_Up: + case XK_KP_Up: + if (sel && sel->left && (sel = sel->left)->right == curr) { + curr = prev; + calcoffsets(); + } + break; + case XK_Next: + case XK_KP_Next: + if (!next) + return; + sel = curr = next; + calcoffsets(); + break; + case XK_Prior: + case XK_KP_Prior: + if (!prev) + return; + sel = curr = prev; + calcoffsets(); + break; + case XK_Return: + case XK_KP_Enter: + puts((sel && !(ev->state & ShiftMask)) ? sel->text : text); + if (!(ev->state & ControlMask)) { + cleanup(); + exit(0); + } + if (sel) + sel->out = 1; + break; + case XK_Right: + case XK_KP_Right: + if (text[cursor] != '\0') { + cursor = nextrune(+1); + break; + } + if (lines > 0) + return; + /* fallthrough */ + case XK_Down: + case XK_KP_Down: + if (sel && sel->right && (sel = sel->right) == next) { + curr = next; + calcoffsets(); + } + break; + case XK_Tab: + if (!sel) + return; + cursor = strnlen(sel->text, sizeof text - 1); + memcpy(text, sel->text, cursor); + text[cursor] = '\0'; + match(); + break; + } + +draw: + drawmenu(); +} + +static void +paste(void) +{ + char *p, *q; + int di; + unsigned long dl; + Atom da; + + /* we have been given the current selection, now insert it into input */ + if (XGetWindowProperty(dpy, win, utf8, 0, (sizeof text / 4) + 1, False, + utf8, &da, &di, &dl, &dl, (unsigned char **)&p) + == Success && p) { + insert(p, (q = strchr(p, '\n')) ? q - p : (ssize_t)strlen(p)); + XFree(p); + } + drawmenu(); +} + +static void +readstdin(void) +{ + char *line = NULL; + size_t i, itemsiz = 0, linesiz = 0; + ssize_t len; + + /* read each line from stdin and add it to the item list */ + for (i = 0; (len = getline(&line, &linesiz, stdin)) != -1; i++) { + if (i + 1 >= itemsiz) { + itemsiz += 256; + if (!(items = realloc(items, itemsiz * sizeof(*items)))) + die("cannot realloc %zu bytes:", itemsiz * sizeof(*items)); + } + if (line[len - 1] == '\n') + line[len - 1] = '\0'; + if (!(items[i].text = strdup(line))) + die("strdup:"); + + items[i].out = 0; + } + free(line); + if (items) + items[i].text = NULL; + lines = MIN(lines, i); +} + +static void +run(void) +{ + XEvent ev; + + while (!XNextEvent(dpy, &ev)) { + if (XFilterEvent(&ev, win)) + continue; + switch(ev.type) { + case DestroyNotify: + if (ev.xdestroywindow.window != win) + break; + cleanup(); + exit(1); + case Expose: + if (ev.xexpose.count == 0) + drw_map(drw, win, 0, 0, mw, mh); + break; + case FocusIn: + /* regrab focus from parent window */ + if (ev.xfocus.window != win) + grabfocus(); + break; + case KeyPress: + keypress(&ev.xkey); + break; + case SelectionNotify: + if (ev.xselection.property == utf8) + paste(); + break; + case VisibilityNotify: + if (ev.xvisibility.state != VisibilityUnobscured) + XRaiseWindow(dpy, win); + break; + } + } +} + +static void +setup(void) +{ + int x, y, i, j; + unsigned int du; + XSetWindowAttributes swa; + XIM xim; + Window w, dw, *dws; + XWindowAttributes wa; + XClassHint ch = {"dmenu", "dmenu"}; +#ifdef XINERAMA + XineramaScreenInfo *info; + Window pw; + int a, di, n, area = 0; +#endif + /* init appearance */ + for (j = 0; j < SchemeLast; j++) + scheme[j] = drw_scm_create(drw, colors[j], 2); + + clip = XInternAtom(dpy, "CLIPBOARD", False); + utf8 = XInternAtom(dpy, "UTF8_STRING", False); + + /* calculate menu geometry */ + bh = drw->fonts->h + 2; + lines = MAX(lines, 0); + mh = (lines + 1) * bh; +#ifdef XINERAMA + i = 0; + if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { + XGetInputFocus(dpy, &w, &di); + if (mon >= 0 && mon < n) + i = mon; + else if (w != root && w != PointerRoot && w != None) { + /* find top-level window containing current input focus */ + do { + if (XQueryTree(dpy, (pw = w), &dw, &w, &dws, &du) && dws) + XFree(dws); + } while (w != root && w != pw); + /* find xinerama screen with which the window intersects most */ + if (XGetWindowAttributes(dpy, pw, &wa)) + for (j = 0; j < n; j++) + if ((a = INTERSECT(wa.x, wa.y, wa.width, wa.height, info[j])) > area) { + area = a; + i = j; + } + } + /* no focused window is on screen, so use pointer location instead */ + if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x, &y, &di, &di, &du)) + for (i = 0; i < n; i++) + if (INTERSECT(x, y, 1, 1, info[i]) != 0) + break; + + x = info[i].x_org; + y = info[i].y_org + (topbar ? 0 : info[i].height - mh); + mw = info[i].width; + XFree(info); + } else +#endif + { + if (!XGetWindowAttributes(dpy, parentwin, &wa)) + die("could not get embedding window attributes: 0x%lx", + parentwin); + x = 0; + y = topbar ? 0 : wa.height - mh; + mw = wa.width; + } + promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0; + inputw = mw / 3; /* input width: ~33% of monitor width */ + match(); + + /* create menu window */ + swa.override_redirect = True; + swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; + swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; + win = XCreateWindow(dpy, root, x, y, mw, mh, 0, + CopyFromParent, CopyFromParent, CopyFromParent, + CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); + XSetClassHint(dpy, win, &ch); + + + /* input methods */ + if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL) + die("XOpenIM failed: could not open input device"); + + xic = XCreateIC(xim, XNInputStyle, XIMPreeditNothing | XIMStatusNothing, + XNClientWindow, win, XNFocusWindow, win, NULL); + + XMapRaised(dpy, win); + if (embed) { + XReparentWindow(dpy, win, parentwin, x, y); + XSelectInput(dpy, parentwin, FocusChangeMask | SubstructureNotifyMask); + if (XQueryTree(dpy, parentwin, &dw, &w, &dws, &du) && dws) { + for (i = 0; i < du && dws[i] != win; ++i) + XSelectInput(dpy, dws[i], FocusChangeMask); + XFree(dws); + } + grabfocus(); + } + drw_resize(drw, mw, mh); + drawmenu(); +} + +static void +usage(void) +{ + die("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" + " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]"); +} + +int +main(int argc, char *argv[]) +{ + XWindowAttributes wa; + int i, fast = 0; + + for (i = 1; i < argc; i++) + /* these options take no arguments */ + if (!strcmp(argv[i], "-v")) { /* prints version information */ + puts("dmenu-"VERSION); + exit(0); + } else if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */ + topbar = 0; + else if (!strcmp(argv[i], "-f")) /* grabs keyboard before reading stdin */ + fast = 1; + else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */ + fstrncmp = strncasecmp; + fstrstr = cistrstr; + } else if (i + 1 == argc) + usage(); + /* these options take one argument */ + else if (!strcmp(argv[i], "-l")) /* number of lines in vertical list */ + lines = atoi(argv[++i]); + else if (!strcmp(argv[i], "-m")) + mon = atoi(argv[++i]); + else if (!strcmp(argv[i], "-p")) /* adds prompt to left of input field */ + prompt = argv[++i]; + else if (!strcmp(argv[i], "-fn")) /* font or font set */ + fonts[0] = argv[++i]; + else if (!strcmp(argv[i], "-nb")) /* normal background color */ + colors[SchemeNorm][ColBg] = argv[++i]; + else if (!strcmp(argv[i], "-nf")) /* normal foreground color */ + colors[SchemeNorm][ColFg] = argv[++i]; + else if (!strcmp(argv[i], "-sb")) /* selected background color */ + colors[SchemeSel][ColBg] = argv[++i]; + else if (!strcmp(argv[i], "-sf")) /* selected foreground color */ + colors[SchemeSel][ColFg] = argv[++i]; + else if (!strcmp(argv[i], "-w")) /* embedding window id */ + embed = argv[++i]; + else + usage(); + + if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) + fputs("warning: no locale support\n", stderr); + if (!(dpy = XOpenDisplay(NULL))) + die("cannot open display"); + screen = DefaultScreen(dpy); + root = RootWindow(dpy, screen); + if (!embed || !(parentwin = strtol(embed, NULL, 0))) + parentwin = root; + if (!XGetWindowAttributes(dpy, parentwin, &wa)) + die("could not get embedding window attributes: 0x%lx", + parentwin); + drw = drw_create(dpy, screen, root, wa.width, wa.height); + if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) + die("no fonts could be loaded."); + lrpad = drw->fonts->h; + +#ifdef __OpenBSD__ + if (pledge("stdio rpath", NULL) == -1) + die("pledge"); +#endif + + if (fast && !isatty(0)) { + grabkeyboard(); + readstdin(); + } else { + readstdin(); + grabkeyboard(); + } + setup(); + run(); + + return 1; /* unreachable */ +} diff --git a/dmenu/dmenu.o b/dmenu/dmenu.o new file mode 100644 index 0000000000000000000000000000000000000000..d6e203d5860a28663caae49ee5a4c2bd3167631f GIT binary patch literal 31824 zcmeI5dwf*I`S4F}7%}b!3nf~ttFCP#mu3TM!o_A`11GvbAVDIxut_!$%&o~T7mFI3 z1U!aVt(R&`TiRM{mDXOYKQC0mRjgVm+Lj8XRH?GY;;luz=6#--=h;jiaz1@OpZE9Y zJND$9`OY)XJoC()nK_doy{RNTGc_f};*erpX${1fT2}U&f#+iNSZs~5Mp}0FD2&-P z{dP}=dP@1oPT6lef3{OTT07GFbf%qh>gIp+LekA2w!_cZG23}(SMZvWKyPqCu%aYz zY(aV8klpcCcGyYxhkF|QnPDg7&t%2U8)4_famZ-d&K|qtRKK_LZjAKr3KzZBT3CAX zZnW3#o`xc`o!3iuyq*zuPErnSQde)>3(W3OLOQ8C-Ea4Va{Jp0hsV?QqV~UqyDvi} zcK1}jz2l!5TCU??zS5KvrOq%Lv}6rdp|l51I*Mq?(D@&gG+)-gUfa;2=tbNFLLY-Whz(&WB)<4OEs*K9nBw;e~%u+ui8F?M%Lwlb=#H#R14(stffvHs`c zPf%?Fz1rxG-8qYw?kacQbKbX|&!`NQl%^~#ItWHD-i6J!pn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AFF|$9TJpcW$N^}4OWO((_{^3!<`R{nK zzgeFDUKiJ!Iq%ypK>&d{@2i^U7BG$f4i?*s4A+6lFrjT-V=Pi_O@Mz*tnVxNsWsXV znV|mt`Gnd?EMiTlZi9cP-`b236c51P3z(1;0upJB!Ji+{NQ+TKH9fw!@T_d@O$wk;?y0qF#N2ba#@}euq-o-g9ysV z{Jfqz>NBMW-aDoNctE=f7|@;bFUJmI1g<~dOCSxOrT=_Y)j71{SWPtWdpJb@x_LaL-YIR;CUHbGCwX`W#0j0m0gBE dE$iQCoDpRG@iTv@{L6830>V~(Oa7Gk{|_qGEmHsh literal 0 HcmV?d00001 diff --git a/dmenu/dmenu_path b/dmenu/dmenu_path new file mode 100755 index 0000000..3a7cda7 --- /dev/null +++ b/dmenu/dmenu_path @@ -0,0 +1,13 @@ +#!/bin/sh + +cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" +cache="$cachedir/dmenu_run" + +[ ! -e "$cachedir" ] && mkdir -p "$cachedir" + +IFS=: +if stest -dqr -n "$cache" $PATH; then + stest -flx $PATH | sort -u | tee "$cache" +else + cat "$cache" +fi diff --git a/dmenu/dmenu_run b/dmenu/dmenu_run new file mode 100755 index 0000000..834ede5 --- /dev/null +++ b/dmenu/dmenu_run @@ -0,0 +1,2 @@ +#!/bin/sh +dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & diff --git a/dmenu/drw.c b/dmenu/drw.c new file mode 100755 index 0000000..78a2b27 --- /dev/null +++ b/dmenu/drw.c @@ -0,0 +1,451 @@ +/* See LICENSE file for copyright and license details. */ +#include +#include +#include +#include +#include + +#include "drw.h" +#include "util.h" + +#define UTF_INVALID 0xFFFD +#define UTF_SIZ 4 + +static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; +static const unsigned char utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; +static const long utfmin[UTF_SIZ + 1] = { 0, 0, 0x80, 0x800, 0x10000}; +static const long utfmax[UTF_SIZ + 1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; + +static long +utf8decodebyte(const char c, size_t *i) +{ + for (*i = 0; *i < (UTF_SIZ + 1); ++(*i)) + if (((unsigned char)c & utfmask[*i]) == utfbyte[*i]) + return (unsigned char)c & ~utfmask[*i]; + return 0; +} + +static size_t +utf8validate(long *u, size_t i) +{ + if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF)) + *u = UTF_INVALID; + for (i = 1; *u > utfmax[i]; ++i) + ; + return i; +} + +static size_t +utf8decode(const char *c, long *u, size_t clen) +{ + size_t i, j, len, type; + long udecoded; + + *u = UTF_INVALID; + if (!clen) + return 0; + udecoded = utf8decodebyte(c[0], &len); + if (!BETWEEN(len, 1, UTF_SIZ)) + return 1; + for (i = 1, j = 1; i < clen && j < len; ++i, ++j) { + udecoded = (udecoded << 6) | utf8decodebyte(c[i], &type); + if (type) + return j; + } + if (j < len) + return 0; + *u = udecoded; + utf8validate(u, len); + + return len; +} + +Drw * +drw_create(Display *dpy, int screen, Window root, unsigned int w, unsigned int h) +{ + Drw *drw = ecalloc(1, sizeof(Drw)); + + drw->dpy = dpy; + drw->screen = screen; + drw->root = root; + drw->w = w; + drw->h = h; + drw->drawable = XCreatePixmap(dpy, root, w, h, DefaultDepth(dpy, screen)); + drw->gc = XCreateGC(dpy, root, 0, NULL); + XSetLineAttributes(dpy, drw->gc, 1, LineSolid, CapButt, JoinMiter); + + return drw; +} + +void +drw_resize(Drw *drw, unsigned int w, unsigned int h) +{ + if (!drw) + return; + + drw->w = w; + drw->h = h; + if (drw->drawable) + XFreePixmap(drw->dpy, drw->drawable); + drw->drawable = XCreatePixmap(drw->dpy, drw->root, w, h, DefaultDepth(drw->dpy, drw->screen)); +} + +void +drw_free(Drw *drw) +{ + XFreePixmap(drw->dpy, drw->drawable); + XFreeGC(drw->dpy, drw->gc); + drw_fontset_free(drw->fonts); + free(drw); +} + +/* This function is an implementation detail. Library users should use + * drw_fontset_create instead. + */ +static Fnt * +xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) +{ + Fnt *font; + XftFont *xfont = NULL; + FcPattern *pattern = NULL; + + if (fontname) { + /* Using the pattern found at font->xfont->pattern does not yield the + * same substitution results as using the pattern returned by + * FcNameParse; using the latter results in the desired fallback + * behaviour whereas the former just results in missing-character + * rectangles being drawn, at least with some fonts. */ + if (!(xfont = XftFontOpenName(drw->dpy, drw->screen, fontname))) { + fprintf(stderr, "error, cannot load font from name: '%s'\n", fontname); + return NULL; + } + if (!(pattern = FcNameParse((FcChar8 *) fontname))) { + fprintf(stderr, "error, cannot parse font name to pattern: '%s'\n", fontname); + XftFontClose(drw->dpy, xfont); + return NULL; + } + } else if (fontpattern) { + if (!(xfont = XftFontOpenPattern(drw->dpy, fontpattern))) { + fprintf(stderr, "error, cannot load font from pattern.\n"); + return NULL; + } + } else { + die("no font specified."); + } + + font = ecalloc(1, sizeof(Fnt)); + font->xfont = xfont; + font->pattern = pattern; + font->h = xfont->ascent + xfont->descent; + font->dpy = drw->dpy; + + return font; +} + +static void +xfont_free(Fnt *font) +{ + if (!font) + return; + if (font->pattern) + FcPatternDestroy(font->pattern); + XftFontClose(font->dpy, font->xfont); + free(font); +} + +Fnt* +drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount) +{ + Fnt *cur, *ret = NULL; + size_t i; + + if (!drw || !fonts) + return NULL; + + for (i = 1; i <= fontcount; i++) { + if ((cur = xfont_create(drw, fonts[fontcount - i], NULL))) { + cur->next = ret; + ret = cur; + } + } + return (drw->fonts = ret); +} + +void +drw_fontset_free(Fnt *font) +{ + if (font) { + drw_fontset_free(font->next); + xfont_free(font); + } +} + +void +drw_clr_create(Drw *drw, Clr *dest, const char *clrname) +{ + if (!drw || !dest || !clrname) + return; + + if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen), + DefaultColormap(drw->dpy, drw->screen), + clrname, dest)) + die("error, cannot allocate color '%s'", clrname); +} + +/* Wrapper to create color schemes. The caller has to call free(3) on the + * returned color scheme when done using it. */ +Clr * +drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount) +{ + size_t i; + Clr *ret; + + /* need at least two colors for a scheme */ + if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(XftColor)))) + return NULL; + + for (i = 0; i < clrcount; i++) + drw_clr_create(drw, &ret[i], clrnames[i]); + return ret; +} + +void +drw_setfontset(Drw *drw, Fnt *set) +{ + if (drw) + drw->fonts = set; +} + +void +drw_setscheme(Drw *drw, Clr *scm) +{ + if (drw) + drw->scheme = scm; +} + +void +drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert) +{ + if (!drw || !drw->scheme) + return; + XSetForeground(drw->dpy, drw->gc, invert ? drw->scheme[ColBg].pixel : drw->scheme[ColFg].pixel); + if (filled) + XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); + else + XDrawRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w - 1, h - 1); +} + +int +drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert) +{ + int ty, ellipsis_x = 0; + unsigned int tmpw, ew, ellipsis_w = 0, ellipsis_len, hash, h0, h1; + XftDraw *d = NULL; + Fnt *usedfont, *curfont, *nextfont; + int utf8strlen, utf8charlen, render = x || y || w || h; + long utf8codepoint = 0; + const char *utf8str; + FcCharSet *fccharset; + FcPattern *fcpattern; + FcPattern *match; + XftResult result; + int charexists = 0, overflow = 0; + /* keep track of a couple codepoints for which we have no match. */ + static unsigned int nomatches[128], ellipsis_width; + + if (!drw || (render && (!drw->scheme || !w)) || !text || !drw->fonts) + return 0; + + if (!render) { + w = invert ? invert : ~invert; + } else { + XSetForeground(drw->dpy, drw->gc, drw->scheme[invert ? ColFg : ColBg].pixel); + XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); + d = XftDrawCreate(drw->dpy, drw->drawable, + DefaultVisual(drw->dpy, drw->screen), + DefaultColormap(drw->dpy, drw->screen)); + x += lpad; + w -= lpad; + } + + usedfont = drw->fonts; + if (!ellipsis_width && render) + ellipsis_width = drw_fontset_getwidth(drw, "..."); + while (1) { + ew = ellipsis_len = utf8strlen = 0; + utf8str = text; + nextfont = NULL; + while (*text) { + utf8charlen = utf8decode(text, &utf8codepoint, UTF_SIZ); + for (curfont = drw->fonts; curfont; curfont = curfont->next) { + charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); + if (charexists) { + drw_font_getexts(curfont, text, utf8charlen, &tmpw, NULL); + if (ew + ellipsis_width <= w) { + /* keep track where the ellipsis still fits */ + ellipsis_x = x + ew; + ellipsis_w = w - ew; + ellipsis_len = utf8strlen; + } + + if (ew + tmpw > w) { + overflow = 1; + /* called from drw_fontset_getwidth_clamp(): + * it wants the width AFTER the overflow + */ + if (!render) + x += tmpw; + else + utf8strlen = ellipsis_len; + } else if (curfont == usedfont) { + utf8strlen += utf8charlen; + text += utf8charlen; + ew += tmpw; + } else { + nextfont = curfont; + } + break; + } + } + + if (overflow || !charexists || nextfont) + break; + else + charexists = 0; + } + + if (utf8strlen) { + if (render) { + ty = y + (h - usedfont->h) / 2 + usedfont->xfont->ascent; + XftDrawStringUtf8(d, &drw->scheme[invert ? ColBg : ColFg], + usedfont->xfont, x, ty, (XftChar8 *)utf8str, utf8strlen); + } + x += ew; + w -= ew; + } + if (render && overflow) + drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert); + + if (!*text || overflow) { + break; + } else if (nextfont) { + charexists = 0; + usedfont = nextfont; + } else { + /* Regardless of whether or not a fallback font is found, the + * character must be drawn. */ + charexists = 1; + + hash = (unsigned int)utf8codepoint; + hash = ((hash >> 16) ^ hash) * 0x21F0AAAD; + hash = ((hash >> 15) ^ hash) * 0xD35A2D97; + h0 = ((hash >> 15) ^ hash) % LENGTH(nomatches); + h1 = (hash >> 17) % LENGTH(nomatches); + /* avoid expensive XftFontMatch call when we know we won't find a match */ + if (nomatches[h0] == utf8codepoint || nomatches[h1] == utf8codepoint) + goto no_match; + + fccharset = FcCharSetCreate(); + FcCharSetAddChar(fccharset, utf8codepoint); + + if (!drw->fonts->pattern) { + /* Refer to the comment in xfont_create for more information. */ + die("the first font in the cache must be loaded from a font string."); + } + + fcpattern = FcPatternDuplicate(drw->fonts->pattern); + FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset); + FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue); + + FcConfigSubstitute(NULL, fcpattern, FcMatchPattern); + FcDefaultSubstitute(fcpattern); + match = XftFontMatch(drw->dpy, drw->screen, fcpattern, &result); + + FcCharSetDestroy(fccharset); + FcPatternDestroy(fcpattern); + + if (match) { + usedfont = xfont_create(drw, NULL, match); + if (usedfont && XftCharExists(drw->dpy, usedfont->xfont, utf8codepoint)) { + for (curfont = drw->fonts; curfont->next; curfont = curfont->next) + ; /* NOP */ + curfont->next = usedfont; + } else { + xfont_free(usedfont); + nomatches[nomatches[h0] ? h1 : h0] = utf8codepoint; +no_match: + usedfont = drw->fonts; + } + } + } + } + if (d) + XftDrawDestroy(d); + + return x + (render ? w : 0); +} + +void +drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h) +{ + if (!drw) + return; + + XCopyArea(drw->dpy, drw->drawable, win, drw->gc, x, y, w, h, x, y); + XSync(drw->dpy, False); +} + +unsigned int +drw_fontset_getwidth(Drw *drw, const char *text) +{ + if (!drw || !drw->fonts || !text) + return 0; + return drw_text(drw, 0, 0, 0, 0, 0, text, 0); +} + +unsigned int +drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n) +{ + unsigned int tmp = 0; + if (drw && drw->fonts && text && n) + tmp = drw_text(drw, 0, 0, 0, 0, 0, text, n); + return MIN(n, tmp); +} + +void +drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h) +{ + XGlyphInfo ext; + + if (!font || !text) + return; + + XftTextExtentsUtf8(font->dpy, font->xfont, (XftChar8 *)text, len, &ext); + if (w) + *w = ext.xOff; + if (h) + *h = font->h; +} + +Cur * +drw_cur_create(Drw *drw, int shape) +{ + Cur *cur; + + if (!drw || !(cur = ecalloc(1, sizeof(Cur)))) + return NULL; + + cur->cursor = XCreateFontCursor(drw->dpy, shape); + + return cur; +} + +void +drw_cur_free(Drw *drw, Cur *cursor) +{ + if (!cursor) + return; + + XFreeCursor(drw->dpy, cursor->cursor); + free(cursor); +} diff --git a/dmenu/drw.h b/dmenu/drw.h new file mode 100755 index 0000000..fd7631b --- /dev/null +++ b/dmenu/drw.h @@ -0,0 +1,58 @@ +/* See LICENSE file for copyright and license details. */ + +typedef struct { + Cursor cursor; +} Cur; + +typedef struct Fnt { + Display *dpy; + unsigned int h; + XftFont *xfont; + FcPattern *pattern; + struct Fnt *next; +} Fnt; + +enum { ColFg, ColBg }; /* Clr scheme index */ +typedef XftColor Clr; + +typedef struct { + unsigned int w, h; + Display *dpy; + int screen; + Window root; + Drawable drawable; + GC gc; + Clr *scheme; + Fnt *fonts; +} Drw; + +/* Drawable abstraction */ +Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h); +void drw_resize(Drw *drw, unsigned int w, unsigned int h); +void drw_free(Drw *drw); + +/* Fnt abstraction */ +Fnt *drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount); +void drw_fontset_free(Fnt* set); +unsigned int drw_fontset_getwidth(Drw *drw, const char *text); +unsigned int drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n); +void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h); + +/* Colorscheme abstraction */ +void drw_clr_create(Drw *drw, Clr *dest, const char *clrname); +Clr *drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount); + +/* Cursor abstraction */ +Cur *drw_cur_create(Drw *drw, int shape); +void drw_cur_free(Drw *drw, Cur *cursor); + +/* Drawing context manipulation */ +void drw_setfontset(Drw *drw, Fnt *set); +void drw_setscheme(Drw *drw, Clr *scm); + +/* Drawing functions */ +void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert); +int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert); + +/* Map functions */ +void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); diff --git a/dmenu/drw.o b/dmenu/drw.o new file mode 100644 index 0000000000000000000000000000000000000000..59bfd109691032f98f9faeda496ad29b75d874dc GIT binary patch literal 10872 zcmbtae{fsXm4337L?%HpG=NFAAgBPRB*sbuIKfao`^kO^a$;g9aS~`E%W|wDTOR3& zIDwte%4YZW#VoTE+D`Y6%}hJ9KW59)oo<(Qm!QN+NElc`fG!NPEoC9tm_W*gknp40 z@7#BQl@{;TdT9f`gPAm*DSuQQ1i*j>n;R-QJP+8mJgf7Pv;eW6E2zT z$_aCI=ZyivJ*#ih*?;OAW9(JEJH|eL zhV0yECO_DK%HSnn+(=y zun{kp;{12RCrs8F44>lAuSh!-L^)b-vSa#F1cguV=B*}sZQFhNz50FnxAg6NF!$)) zI(ua!`ah8<~g zNU(x*Phi*>^G3aUW0zTcpPUpJT>>MZGcbA?71(Dn_DXzw)vxuZxp8MYR=*$k?pbJy z*_$qyW2dYfoXLA--63fMO6FK8#-1%KG3`4+*39u+DGQgl0aHIFi2axOM>2)3IR&VL zIQs(^o=#(a$GKKsKUfcCe6Dyke9B~_yY=>@@A+2-i7QD!}~T2oE{oy=_8Fv&mj{Ci*<}Q2f*r_&#;9Hpaf7 zURq-8yvaU1SPQ+5fnz0WMKt_&oSnYgUVJ*vK8%%*n1@b#xg$-_G0uvue&4j=*xYMy z5Y!&26M@Ua7TjG;Go?lubF|1dc6Hg^p$Lz=@1jrBZf~Roi(Vhl**UC6gB^{s7ZGOj zG058KYSTurDIScDl`(bPqrijKH7pZ~MA`54ZBfh-R>8~?;_JNpLUepx8BMf4z|^?N=_#@SJ>toS~LunWI$#>b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{Xii@iG(Uc-X96XM-O$V3n3Ni z=4F%$NZmrI!04Vz1)%G=8^Rq-mqx1I1gX5IQt5z34Rr_ZwNwa%Cvjxl2n>N5ag&a5 z4i{=d@d@FH#*C0>G@A5G#BtdrZX79thLU029t#H*(F#U~EFOvk$Ux;LB8KqDntPD-jK;tkp-Ftoq2h_h{g$I*$9CNT@9rOi{&TP;7nlLbGGTZb1j4AKOpdu6b zC{JGpLwg^#=lu>-90HSx>(6>j{{m9lOEJ&;DW*QtT=r3U{S_>-$WTn#p7(Q1FDXSX z-`f6fD*JAw$NNL3yq_d{ika2^Nnlhj_FsCws^={4JE0+Rqzz-B-HB%{_Wb<;Q{G3jfwlcVQ1;w^!lg77 zy-Tr7toElMp!l(Ut$W0^>|e9k|Gmr9WZFi~%M!V54n*Ws8j{EVuz(|Gd`QBlUHmpeN zOj7z}d#1mKq}-mrkI5_hhf0=ahV7UxfN{A!?=vPkOnt5=yJ0)#7sHq^u7ApBN>Xgk z149|O6lJnhm9Nwp7Hq$|gqRtsE2VO3DMHF;l*0)%f35>sZT+D6!F890>cdG7CZvTH XA(v}P>D|4${VLjkBdxL+SXlA@yGO~d literal 0 HcmV?d00001 diff --git a/dmenu/stest.1 b/dmenu/stest.1 new file mode 100755 index 0000000..2667d8a --- /dev/null +++ b/dmenu/stest.1 @@ -0,0 +1,90 @@ +.TH STEST 1 dmenu\-VERSION +.SH NAME +stest \- filter a list of files by properties +.SH SYNOPSIS +.B stest +.RB [ -abcdefghlpqrsuwx ] +.RB [ -n +.IR file ] +.RB [ -o +.IR file ] +.RI [ file ...] +.SH DESCRIPTION +.B stest +takes a list of files and filters by the files' properties, analogous to +.IR test (1). +Files which pass all tests are printed to stdout. If no files are given, stest +reads files from stdin. +.SH OPTIONS +.TP +.B \-a +Test hidden files. +.TP +.B \-b +Test that files are block specials. +.TP +.B \-c +Test that files are character specials. +.TP +.B \-d +Test that files are directories. +.TP +.B \-e +Test that files exist. +.TP +.B \-f +Test that files are regular files. +.TP +.B \-g +Test that files have their set-group-ID flag set. +.TP +.B \-h +Test that files are symbolic links. +.TP +.B \-l +Test the contents of a directory given as an argument. +.TP +.BI \-n " file" +Test that files are newer than +.IR file . +.TP +.BI \-o " file" +Test that files are older than +.IR file . +.TP +.B \-p +Test that files are named pipes. +.TP +.B \-q +No files are printed, only the exit status is returned. +.TP +.B \-r +Test that files are readable. +.TP +.B \-s +Test that files are not empty. +.TP +.B \-u +Test that files have their set-user-ID flag set. +.TP +.B \-v +Invert the sense of tests, only failing files pass. +.TP +.B \-w +Test that files are writable. +.TP +.B \-x +Test that files are executable. +.SH EXIT STATUS +.TP +.B 0 +At least one file passed all tests. +.TP +.B 1 +No files passed all tests. +.TP +.B 2 +An error occurred. +.SH SEE ALSO +.IR dmenu (1), +.IR test (1) diff --git a/dmenu/stest.c b/dmenu/stest.c new file mode 100755 index 0000000..e27d3a5 --- /dev/null +++ b/dmenu/stest.c @@ -0,0 +1,109 @@ +/* See LICENSE file for copyright and license details. */ +#include + +#include +#include +#include +#include +#include +#include + +#include "arg.h" +char *argv0; + +#define FLAG(x) (flag[(x)-'a']) + +static void test(const char *, const char *); +static void usage(void); + +static int match = 0; +static int flag[26]; +static struct stat old, new; + +static void +test(const char *path, const char *name) +{ + struct stat st, ln; + + if ((!stat(path, &st) && (FLAG('a') || name[0] != '.') /* hidden files */ + && (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */ + && (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */ + && (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */ + && (!FLAG('e') || access(path, F_OK) == 0) /* exists */ + && (!FLAG('f') || S_ISREG(st.st_mode)) /* regular file */ + && (!FLAG('g') || st.st_mode & S_ISGID) /* set-group-id flag */ + && (!FLAG('h') || (!lstat(path, &ln) && S_ISLNK(ln.st_mode))) /* symbolic link */ + && (!FLAG('n') || st.st_mtime > new.st_mtime) /* newer than file */ + && (!FLAG('o') || st.st_mtime < old.st_mtime) /* older than file */ + && (!FLAG('p') || S_ISFIFO(st.st_mode)) /* named pipe */ + && (!FLAG('r') || access(path, R_OK) == 0) /* readable */ + && (!FLAG('s') || st.st_size > 0) /* not empty */ + && (!FLAG('u') || st.st_mode & S_ISUID) /* set-user-id flag */ + && (!FLAG('w') || access(path, W_OK) == 0) /* writable */ + && (!FLAG('x') || access(path, X_OK) == 0)) != FLAG('v')) { /* executable */ + if (FLAG('q')) + exit(0); + match = 1; + puts(name); + } +} + +static void +usage(void) +{ + fprintf(stderr, "usage: %s [-abcdefghlpqrsuvwx] " + "[-n file] [-o file] [file...]\n", argv0); + exit(2); /* like test(1) return > 1 on error */ +} + +int +main(int argc, char *argv[]) +{ + struct dirent *d; + char path[PATH_MAX], *line = NULL, *file; + size_t linesiz = 0; + ssize_t n; + DIR *dir; + int r; + + ARGBEGIN { + case 'n': /* newer than file */ + case 'o': /* older than file */ + file = EARGF(usage()); + if (!(FLAG(ARGC()) = !stat(file, (ARGC() == 'n' ? &new : &old)))) + perror(file); + break; + default: + /* miscellaneous operators */ + if (strchr("abcdefghlpqrsuvwx", ARGC())) + FLAG(ARGC()) = 1; + else + usage(); /* unknown flag */ + } ARGEND; + + if (!argc) { + /* read list from stdin */ + while ((n = getline(&line, &linesiz, stdin)) > 0) { + if (line[n - 1] == '\n') + line[n - 1] = '\0'; + test(line, line); + } + free(line); + } else { + for (; argc; argc--, argv++) { + if (FLAG('l') && (dir = opendir(*argv))) { + /* test directory contents */ + while ((d = readdir(dir))) { + r = snprintf(path, sizeof path, "%s/%s", + *argv, d->d_name); + if (r >= 0 && (size_t)r < sizeof path) + test(path, d->d_name); + } + closedir(dir); + } else { + test(*argv, *argv); + } + } + } + return match ? 0 : 1; +} diff --git a/dmenu/stest.o b/dmenu/stest.o new file mode 100644 index 0000000000000000000000000000000000000000..0700d9b8f52684dca89c58cec6129b3f9161df7d GIT binary patch literal 4952 zcmbuCeQaCR6~K?}G%*Q%Fa2Ok2Lr1(kV?&4+|e!V)+tWh^0K;9Ldp-58>F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L+M0t*Y8++~c5;e3BlNQkjmE8P782RX!#yxDo1ISE6JX6x+mJ{mty~ULIXhv) zY~IeH?Q|MuQ9YAIyKHibig9FGA0-WUa(FmB~~lXHg}WX7{)N z6p^oV^fi1wrZ+H38+D=(r&A@kcn=Y$GbcEmClc~Uc_aAk1W|~u!$3IK}A*D)9I`32i=Quq&;-!A!)^KgrzUuOO7 zl0N;x5c|^N&Zd@!2U)*I;_|sTEpc)w{9KSY<@t-;{++_b-TnvW6bJddhzphYr|}W~ zgFG)9^G1oUWls7X65k`~ua$U0;^a%5=P8NP*%#xAb3pz-Bk?2BxHn7uNr}^1g`eXR z|E$EHl{nqiLSN(;&5`2yE!Mjv>E9;l|CKrE%j^260bfH(tV{mSvR;TFityvL0Pf<7 z;NtsZRN~?t>mnofjTt*J1_r*d#_vQ{c#*w(xa#(2U`fH8(Qf|1QogVZAiUL&hY zND^5)KMO`OGc#kQ(JGy>E#vO54R>Q#@*&o>rVdSH6EhZ1=>IH2Xip(gzj*qPkqmJB zyq2dc>QqurP|oz>Bg-;<@S*fj&`~ItX&mvrLpe<1eTR8_?-B2}po}Z}c>6>XwqlKZ z@-VCXB->w53_`0KUWLBjNM)PCh5daB7w$y4o9)&3UE}e^cav}<>_oc{EA`@6rhuWe zvma{G7;60XBO{;UJ%&|RZlcQ{CFK6re#H2qr2i12Uef~D&h|2+x~lsyGj+Rq+5VK` zK+Ip@6jti3{|)-6K{36;&7W4R3wx12G#_ +#include +#include +#include + +#include "util.h" + +void +die(const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + + if (fmt[0] && fmt[strlen(fmt)-1] == ':') { + fputc(' ', stderr); + perror(NULL); + } else { + fputc('\n', stderr); + } + + exit(1); +} + +void * +ecalloc(size_t nmemb, size_t size) +{ + void *p; + + if (!(p = calloc(nmemb, size))) + die("calloc:"); + return p; +} diff --git a/dmenu/util.h b/dmenu/util.h new file mode 100755 index 0000000..c0a50d4 --- /dev/null +++ b/dmenu/util.h @@ -0,0 +1,9 @@ +/* See LICENSE file for copyright and license details. */ + +#define MAX(A, B) ((A) > (B) ? (A) : (B)) +#define MIN(A, B) ((A) < (B) ? (A) : (B)) +#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) +#define LENGTH(X) (sizeof (X) / sizeof (X)[0]) + +void die(const char *fmt, ...); +void *ecalloc(size_t nmemb, size_t size); diff --git a/dmenu/util.o b/dmenu/util.o new file mode 100644 index 0000000000000000000000000000000000000000..04ef62bd873819e6d950e2a9fdef20a8e866ae30 GIT binary patch literal 2080 zcmbW1O=uHQ5XUEJwXvp6{Ww(GLxhJU&@M?)D5*+pqg_josue#D>NefbXujBNB#L0g zdI%-ZgBQVrphpiP9)$)x=uPi}_97_tP)`aL;>_Fk+Q)Wt>A+^@{pLUO-tJ`g!RhoF zzt0EKd~g!BR+0j&c5cN<9wwm&f^bo<|I;7-T1BMSZ8oacXIN6NrOrl zuznrehxJB^#Xh81e*iP+2V-23Vv!%DT^PfvV-(p#di@(6Fu)V~5=IO6J6ehAft4`k zIgPitTkBrwmS}~Z1*hko!pF^OP;c;)aB%H?#>nSOnFPS(#6%(-Ntv@bqZp2lXd_x| zIDRxLLhM6!&~f0qcL990KHosFE3k~4^dlb>xu4`u_4YmTPxY>g+^EPM61mI00YSVS zox2l$x4g0)9us!D?b;^qL9$=b^Rpq_hgaV=wR0a{{BRq6qz%{FaGIu9e|-M@obr79 zIUyTsqlc=U%WE0X(i1V5%b8HI=S<6jJK3_8E81CHTY0kx*>cs+Kp9gd3(Q*12Gbch z_9ZJg4*clp>20(edn!1+HoF!6LU6bKjiT>T^dA*YGm`y3DSVH@zbIVQe^)sDyJep> zg$EV>M{qi4hr%}mr~9Hy_6ZA4db*??7lGt*KA=_Z7Hne{y=^&uUPhLgH#FO<*`UoC zwgK8~r2?8&q6Nw0S{$@YsZcPBC@Gd~Q=2?@X}Dq=ncJwNYIFWZ)-npFJjRZF7%S;r zq8X}|6bnBk6>}|N0CV)5l8T1HBt2BLfGD7uP)IW)qwfLP5xj^CIU#Q2?u`U@<00hK zbEoxjtfihKc&R4$m**?Kg&khm%6-~!! Xp_pj5N$5N6RbLb5pWjqEfxG@c?o0qq literal 0 HcmV?d00001 diff --git a/nhkd/CHANGES b/nhkd/CHANGES new file mode 100755 index 0000000..ebe6a52 --- /dev/null +++ b/nhkd/CHANGES @@ -0,0 +1,16 @@ +Release history for nhkd + +v22.01 2022-01-15 + [Fixed] + - Reset handler of SIGCHLD to SIG_DFL before launching new processes. + On some systems, the handler was retained as SIG_IGN (even after + exec()), so the programs we launched were missing SIGCHLD signals, + which, in turn, can lead to all kinds of bizarre errors. + +v20.06 2020-06-20 + [Fixed] + - Minor: Some tabs sneaked into the source code, because this project + is based on dwm. They have been replaced by four spaces. + +v20.05 2020-05-24 + - This is the initial release of nhkd. diff --git a/nhkd/LICENSE b/nhkd/LICENSE new file mode 100755 index 0000000..c6779d2 --- /dev/null +++ b/nhkd/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020, 2022 Peter Hofmann + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/nhkd/Makefile b/nhkd/Makefile new file mode 100755 index 0000000..cdcdda7 --- /dev/null +++ b/nhkd/Makefile @@ -0,0 +1,31 @@ +CFLAGS += -std=c11 -Wall -Wextra -O3 `pkg-config --cflags x11` +LDLIBS += `pkg-config --libs x11` + +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 + +prefix = /usr/local +exec_prefix = $(prefix) +bindir = $(exec_prefix)/bin +datarootdir = $(prefix)/share +mandir = $(datarootdir)/man +man1dir = $(mandir)/man1 + +.PHONY: all clean install installdirs + +all: nhkd + +nhkd: nhkd.c config.h + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) + + +clean: + rm -f nhkd + +install: nhkd installdirs + $(INSTALL_PROGRAM) nhkd $(DESTDIR)$(bindir)/nhkd + $(INSTALL_DATA) nhkd.1 $(DESTDIR)$(man1dir)/nhkd.1 + +installdirs: + mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) diff --git a/nhkd/README b/nhkd/README new file mode 100755 index 0000000..428796b --- /dev/null +++ b/nhkd/README @@ -0,0 +1,51 @@ + _ _ _ + _ __ | |__ | | ____| | + | '_ \| '_ \| |/ / _` | + | | | | | | | < (_| | + |_| |_|_| |_|_|\_\__,_| + https://uninformativ.de/git/nhkd + https://uninformativ.de/bugs.html + + +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +nano hot key daemon (nhkd) is a very simple hotkey daemon for X11 with +limited functionality. + +It is partially based on code from dwm: + + http://dwm.suckless.org/ + +If you're looking for a more powerful alternative, have a look at sxhkd: + + https://github.com/baskerville/sxhkd + + +Installation +------------ + +The following C libraries are required: + + - libx11 + +nhkd expects to be run on a POSIX-ish operating system. + +You must customize the program by creating your own config.h based on +config.h.example. In any case, config.h must exist in order to build the +program. + +To build the program and install it to /usr/local: + + $ make + # make install + + +Running +------- + +Run it from your ~/.xinitrc: + + while sleep 0.25; do nhkd; done & + +The loop ensures that you can easily restart the daemon by killing it. diff --git a/nhkd/c.sh b/nhkd/c.sh new file mode 100755 index 0000000..64ba1cf --- /dev/null +++ b/nhkd/c.sh @@ -0,0 +1,5 @@ +#!/bin/sh +cl +doas make install +doas pkill nhkd +nhkd & diff --git a/nhkd/config.h b/nhkd/config.h new file mode 100755 index 0000000..69be4d7 --- /dev/null +++ b/nhkd/config.h @@ -0,0 +1,50 @@ + +bool debug_print_spawned_command = false; + +/*this causes warnings when blank*/ +struct MouseEvent mouse_events[] = { +}; + +struct KeyEvent key_events[] = { + + /*Stuff goes here*/ + { KeyPress, Mod4Mask, 0x1005ff70, "st -e sh ~/x/w/autoupload.sh" }, /*Sun "Props" Key*/ + { KeyPress, Mod4Mask, 0x1005ff71, "system-config-printer" }, /*Sun "Front" Key*/ + { KeyPress, Mod4Mask, 0x1008ff11, "amixer set Master 10%-" }, /*Sun "SndDcrs" Key*/ + { KeyPress, Mod4Mask, 0x1008ff12, "amixer set Master 0%" }, /*Sun "Mute" Key*/ + { KeyPress, Mod4Mask, 0x1008ff13, "amixer set Master 10%+" }, /*Sun "SndIncrs" Key*/ + { KeyPress, Mod4Mask, 0x1008ff57, "xdotool key Ctrl-c" }, /*Sun "Copy" Key*/ + { KeyPress, Mod4Mask, 0x1008ff58, "xdotool key Ctrl-x" }, /*Sun "Cut" Key*/ + { KeyPress, Mod4Mask, 0x1008ff6b, "st -e pmake" }, /*Sun "Open" Key*/ + { KeyPress, Mod4Mask, 0x1008ff6d, "xdotool key Shift-Insert" }, /*Sun "Paste" Key*/ + { KeyPress, Mod4Mask, 0xff65, "beep" }, /*Sun "Undo" Key*/ + { KeyPress, Mod4Mask, 0xff66, "st -e sh ~/x/wiki/c.sh" }, /*Sun "Again" Key*/ + { KeyPress, Mod4Mask, 0xff68, "st -e fzf" }, /*Sun "Find" Key*/ + { KeyPress, Mod4Mask, 0xff69, "beep" }, /*Sun "Stop" Key*/ + { KeyPress, Mod4Mask, 0xff6a, "st -e sh ~/x/wiki/edit.sh" }, /*Sun "Help" Key*/ + + { KeyPress, Mod4Mask, XK_0, "amixer set Master 10%-" }, + { KeyPress, Mod4Mask, XK_8, "amixer set Master 0%" }, + { KeyPress, Mod4Mask, XK_9, "amixer set Master 10%+" }, + { KeyPress, Mod4Mask, XK_comma, "firefox" }, + { KeyPress, Mod4Mask, XK_period, "thunderbird" }, + { KeyPress, Mod4Mask, XK_g, "gajim" }, + { KeyPress, Mod4Mask, XK_apostrophe, "pgrep tmux && st -e tmux a ; pgrep tmux || st -e tmuxinator start work" }, + { KeyPress, Mod4Mask, XK_semicolon, "cd ~/m/vilyaemkenyaz/ && scrot" }, + { KeyPress, Mod4Mask, XK_a, "st -e abook --datafile ~/.local/share/abook/addressbook" }, + { KeyPress, Mod4Mask, XK_c, "st -e python" }, + { KeyPress, Mod4Mask, XK_d, "st -e kjv" }, + { KeyPress, Mod4Mask, XK_h, "maim -s ~/m/vilyaemkenyaz/maim-$(date -I).png" }, + { KeyPress, Mod4Mask, XK_i, "gimp" }, + { KeyPress, Mod4Mask, XK_k, "cd ~/w && xwallpaper --stretch $(\ls ~/w/ | dmenu -l 30)" }, + { KeyPress, Mod4Mask, XK_l, "kbmaster" }, + { KeyPress, Mod4Mask, XK_m, "soymoji" }, + { KeyPress, Mod4Mask, XK_o, "st -e pmake" }, + { KeyPress, Mod4Mask, XK_p, "st -e newsraft" }, + { KeyPress, Mod4Mask, XK_q, "st -e vifm" }, + { KeyPress, Mod4Mask, XK_r, "bookpicker" }, + { KeyPress, Mod4Mask, XK_u, "bookmark ~/x/links.txt" }, + { KeyPress, Mod4Mask, XK_w, "cd ~/w && xwallpaper --stretch $(\ls ~/w/ | shuf -n 1)" }, + { KeyPress, Mod4Mask, XK_x, "st -e links ~/x/web/vilyaem/homepage/index.html" }, + { KeyPress, Mod4Mask, XK_y, "st -e top" }, +}; diff --git a/nhkd/nhkd b/nhkd/nhkd new file mode 100755 index 0000000000000000000000000000000000000000..7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^v`LR)VP zZto6tU*AQCu)1!!KDfPS3#@P^G1P6c)a<%Zg|_wX=nVFTc5L0cvwK%)SFp3UJM@PK zv9g0WnU#bC&*7*JIj@8>N`LHF7@gw60$)}|(&Gv%hM81m46bnI$vFl^ja9ict?(ps z39J)gZ7e&2gH%>HsdI@`E^CF7sZlyCg;Q0I59g#+xe|0}3Z;ZBI#!nDvt0|M2sPHD z_`ubIgJ68H%cH&UFk2{+O@)TT$p{X*RXTna>e&I;kytW>%0>_^*BP+|j{9*+ZNXtS zr+EW8+s69hd|MfqKOi@MXf9$6c-L$hx$L8kG;?Zfj1?_Q;x-Ec0A)E`84oC+EE1m+>XX_T&RXD=u z)R!;n!lQNzO!YX>r}!4Y&dI$65IV^~DvZ@#6~JY%!vmmp#-YQK!#O`IlU4z&zFL8y zWG;}-V7)wJkGr6OTny)lV-bdeojuKTpU~>VVJs;JBI8LqhN!8XaU}b!j6R8|)tCuE zma*btQsi7ZZmR%|Z52Q^Foa7NuyJZq1@v$UWKw$Y1gv4c8w^L_L^#LPxh*&rl1B+x zw;x1ZQZ{);<>)M803AUEs1MPh%>RBmA1>(GipP>pjkwQJ5-Rgd4(jMip6JE+TaG`m z-^BJp4anR{?&pGSM8<93&-Ox_M3L!I58valm+uv!hDYCPe>3DKF;^t@m-#cH^4%@- zXWsgUVNY{sVtf*G89v>m-#)RGQTI~d)xn)Y~RTaWxi0T z%rBBX#msB}d0-e|8D1Kru=Rap!NL#6O4k`bN zy-?cd@3xou`6AmNC|f!iu@kxs#%}uq9gg0CR)-#viaD$@m +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +Display *dpy; +Window root; +int screen; +unsigned int numlockmask = 0; +unsigned int mouse_now_button = 0, mouse_now_state = 0; +uint32_t mouse_motion_counter = 0; +int (*xerrorxlib)(Display *, XErrorEvent *); + + +enum MouseInfo +{ + AppendMouseInfo, + IgnoreMouseInfo, +}; + +struct MouseEvent +{ + int event_type; + unsigned int modifier; + unsigned int button; + enum MouseInfo mouse_info; + char *command; +}; + +struct KeyEvent +{ + int event_type; + unsigned int modifier; + KeySym keysym; + char *command; +}; + + +#include "config.h" + + +int +xerror(Display *dpy, XErrorEvent *ee) +{ + if ((ee->request_code == X_GrabButton && ee->error_code == BadAccess) || + (ee->request_code == X_GrabKey && ee->error_code == BadAccess)) + return 0; + + return xerrorxlib(dpy, ee); +} + +void +spawn(char *command) +{ + if (debug_print_spawned_command) + fprintf(stderr, "nhkd: spawn [%s]\n", command); + + if (fork() == 0) + { + if (fork() == 0) + { + close(ConnectionNumber(dpy)); + setsid(); + + /* Quoting from "man 3p exec": + * + * "If the SIGCHLD signal is set to be ignored by the + * calling process image, it is unspecified whether the + * SIGCHLD signal is set to be ignored or to the default + * action in the new process image." + * + * To avoid this undefined behaviour, we reset the handler + * now. Yes, this has caused real issues, at least on some + * systems (e.g., programs that we launched were expecting + * to get SIGCHLD for other programs that *they* launched, + * but those signals never happened, and so all kinds of + * crazy stuff went down, like Python just assuming an exit + * code of 0). */ + signal(SIGCHLD, SIG_DFL); + + execl("/bin/sh", "sh", "-c", command, (char *)NULL); + exit(EXIT_FAILURE); + } + else + exit(EXIT_SUCCESS); + } +} + +void +updatenumlockmask(void) +{ + size_t i, j, max_keypermod; + XModifierKeymap *modmap; + + modmap = XGetModifierMapping(dpy); + if (modmap == NULL || modmap->max_keypermod < 0) + return; + + max_keypermod = modmap->max_keypermod; + + numlockmask = 0; + for (i = 0; i < 8; i++) + { + for (j = 0; j < max_keypermod; j++) + { + if (modmap->modifiermap[i * max_keypermod + j] == + XKeysymToKeycode(dpy, XK_Num_Lock)) + { + numlockmask = (1 << i); + } + } + } + XFreeModifiermap(modmap); +} + +void +grabkeys(void) +{ + KeyCode code; + size_t ia, im; + unsigned int mousemask = ButtonPressMask | ButtonReleaseMask | + PointerMotionMask; + + XUngrabKey(dpy, AnyKey, AnyModifier, root); + + /* New scope to be able to create "modifiers" with updated + * "numlockmask". */ + updatenumlockmask(); + { + unsigned int modifiers[] = { + 0, LockMask, numlockmask, numlockmask | LockMask + }; + + for (ia = 0; ia < sizeof mouse_events / sizeof (struct MouseEvent); ia++) + { + for (im = 0; im < sizeof modifiers / sizeof modifiers[0]; im++) + { + XGrabButton(dpy, mouse_events[ia].button, + mouse_events[ia].modifier | modifiers[im], root, + False, mousemask, GrabModeAsync, GrabModeAsync, + None, None); + } + } + + for (ia = 0; ia < sizeof key_events / sizeof (struct KeyEvent); ia++) + { + if ((code = XKeysymToKeycode(dpy, key_events[ia].keysym))) + { + for (im = 0; im < sizeof modifiers / sizeof modifiers[0]; im++) + { + XGrabKey(dpy, code, key_events[ia].modifier | modifiers[im], + root, True, GrabModeAsync, GrabModeAsync); + } + } + } + } +} + +unsigned long +cleanmask(unsigned long mask) +{ + return mask & ~(numlockmask | LockMask) & + (ShiftMask | ControlMask | Mod1Mask | Mod2Mask | Mod3Mask | + Mod4Mask | Mod5Mask); +} + +void +keyboard(XEvent *e) +{ + size_t ia; + KeySym keysym; + XKeyEvent *ev = &e->xkey; + + keysym = XkbKeycodeToKeysym(dpy, ev->keycode, 0, 0); + for (ia = 0; ia < sizeof key_events / sizeof (struct KeyEvent); ia++) + { + if (key_events[ia].event_type == e->type && + key_events[ia].keysym == keysym && + cleanmask(key_events[ia].modifier) == cleanmask(ev->state)) + { + spawn(key_events[ia].command); + } + } +} + +void +mouse_button(XEvent *e) +{ + size_t ia; + XButtonEvent *ev = &e->xbutton; + int x, y; + char cmd_buf[8192] = "", *cmd_use; + + mouse_now_button = ev->button; + mouse_now_state = ev->state; + mouse_motion_counter = 0; + + x = ev->x_root; + y = ev->y_root; + + for (ia = 0; ia < sizeof mouse_events / sizeof (struct MouseEvent); ia++) + { + if (mouse_events[ia].event_type == e->type && + mouse_events[ia].button == mouse_now_button && + cleanmask(mouse_events[ia].modifier) == cleanmask(mouse_now_state)) + { + if (mouse_events[ia].mouse_info == AppendMouseInfo) + { + snprintf(cmd_buf, sizeof cmd_buf, "%s %d %d %lu", + mouse_events[ia].command, x, y, ev->subwindow); + cmd_use = cmd_buf; + } + else + cmd_use = mouse_events[ia].command; + spawn(cmd_use); + } + } +} + +void +mouse_motion(XEvent *e) +{ + size_t ia; + XMotionEvent *ev = &e->xmotion; + int x, y; + char cmd_buf[8192] = "", *cmd_use; + + x = ev->x_root; + y = ev->y_root; + mouse_motion_counter++; + + for (ia = 0; ia < sizeof mouse_events / sizeof (struct MouseEvent); ia++) + { + if (mouse_events[ia].event_type == e->type && + mouse_events[ia].button == mouse_now_button && + cleanmask(mouse_events[ia].modifier) == cleanmask(mouse_now_state)) + { + if (mouse_events[ia].mouse_info == AppendMouseInfo) + { + snprintf(cmd_buf, sizeof cmd_buf, "%s %d %d %lu %"PRIu32, + mouse_events[ia].command, + x, y, ev->subwindow, mouse_motion_counter); + cmd_use = cmd_buf; + } + else + cmd_use = mouse_events[ia].command; + spawn(cmd_use); + } + } +} + +int +main(int argc, char **argv) +{ + int di = 0, xkbmajor = XkbMajorVersion, xkbminor = XkbMinorVersion; + XEvent ev; + + (void)argc; + (void)argv; + + signal(SIGCHLD, SIG_IGN); + + dpy = XOpenDisplay(NULL); + if (!dpy) + { + fprintf(stderr, "nhkd: Cannot open display\n"); + exit(EXIT_FAILURE); + } + + screen = DefaultScreen(dpy); + root = RootWindow(dpy, screen); + /*xerrorxlib = XSetErrorHandler(xError);*/ + + if (!XkbQueryExtension(dpy, &di, &di, &di, &xkbmajor, &xkbminor)) + { + fprintf(stderr, "nhkd: XKB not available. Please report this! " + "What does your setup look like?\n"); + exit(EXIT_FAILURE); + } + + grabkeys(); + + while(1) + { + XNextEvent(dpy, &ev); + switch (ev.type) + { + case ButtonPress: + case ButtonRelease: + mouse_button(&ev); + break; + case MotionNotify: + mouse_motion(&ev); + break; + case KeyPress: + case KeyRelease: + keyboard(&ev); + break; + case MappingNotify: + grabkeys(); + break; + } + } +} diff --git a/nhkd/tags b/nhkd/tags new file mode 100644 index 0000000..d884137 --- /dev/null +++ b/nhkd/tags @@ -0,0 +1,137 @@ +!_TAG_EXTRA_DESCRIPTION anonymous /Include tags for non-named objects like lambda/ +!_TAG_EXTRA_DESCRIPTION fileScope /Include tags of file scope/ +!_TAG_EXTRA_DESCRIPTION pseudo /Include pseudo tags/ +!_TAG_EXTRA_DESCRIPTION subparser /Include tags generated by subparsers/ +!_TAG_FIELD_DESCRIPTION epoch /the last modified time of the input file (only for F\/file kind tag)/ +!_TAG_FIELD_DESCRIPTION file /File-restricted scoping/ +!_TAG_FIELD_DESCRIPTION input /input file/ +!_TAG_FIELD_DESCRIPTION name /tag name/ +!_TAG_FIELD_DESCRIPTION pattern /pattern/ +!_TAG_FIELD_DESCRIPTION typeref /Type and name of a variable or typedef/ +!_TAG_FIELD_DESCRIPTION!C++ name /aliased names/ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_KIND_DESCRIPTION!C d,macro /macro definitions/ +!_TAG_KIND_DESCRIPTION!C e,enumerator /enumerators (values inside an enumeration)/ +!_TAG_KIND_DESCRIPTION!C f,function /function definitions/ +!_TAG_KIND_DESCRIPTION!C g,enum /enumeration names/ +!_TAG_KIND_DESCRIPTION!C h,header /included header files/ +!_TAG_KIND_DESCRIPTION!C m,member /struct, and union members/ +!_TAG_KIND_DESCRIPTION!C s,struct /structure names/ +!_TAG_KIND_DESCRIPTION!C t,typedef /typedefs/ +!_TAG_KIND_DESCRIPTION!C u,union /union names/ +!_TAG_KIND_DESCRIPTION!C v,variable /variable definitions/ +!_TAG_KIND_DESCRIPTION!C++ M,module /modules/ +!_TAG_KIND_DESCRIPTION!C++ P,partition /partitions/ +!_TAG_KIND_DESCRIPTION!C++ c,class /classes/ +!_TAG_KIND_DESCRIPTION!C++ d,macro /macro definitions/ +!_TAG_KIND_DESCRIPTION!C++ e,enumerator /enumerators (values inside an enumeration)/ +!_TAG_KIND_DESCRIPTION!C++ f,function /function definitions/ +!_TAG_KIND_DESCRIPTION!C++ g,enum /enumeration names/ +!_TAG_KIND_DESCRIPTION!C++ h,header /included header files/ +!_TAG_KIND_DESCRIPTION!C++ m,member /class, struct, and union members/ +!_TAG_KIND_DESCRIPTION!C++ n,namespace /namespaces/ +!_TAG_KIND_DESCRIPTION!C++ s,struct /structure names/ +!_TAG_KIND_DESCRIPTION!C++ t,typedef /typedefs/ +!_TAG_KIND_DESCRIPTION!C++ u,union /union names/ +!_TAG_KIND_DESCRIPTION!C++ v,variable /variable definitions/ +!_TAG_KIND_DESCRIPTION!Make I,makefile /makefiles/ +!_TAG_KIND_DESCRIPTION!Make m,macro /macros/ +!_TAG_KIND_DESCRIPTION!Make t,target /targets/ +!_TAG_KIND_DESCRIPTION!Man S,subsection /sub sections/ +!_TAG_KIND_DESCRIPTION!Man s,section /sections/ +!_TAG_KIND_DESCRIPTION!Man t,title /titles/ +!_TAG_KIND_DESCRIPTION!Sh a,alias /aliases/ +!_TAG_KIND_DESCRIPTION!Sh f,function /functions/ +!_TAG_KIND_DESCRIPTION!Sh h,heredoc /label for here document/ +!_TAG_KIND_DESCRIPTION!Sh s,script /script files/ +!_TAG_OUTPUT_EXCMD mixed /number, pattern, mixed, or combineV2/ +!_TAG_OUTPUT_FILESEP slash /slash or backslash/ +!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ +!_TAG_OUTPUT_VERSION 0.0 /current.age/ +!_TAG_PARSER_VERSION!C 1.1 /current.age/ +!_TAG_PARSER_VERSION!C++ 1.1 /current.age/ +!_TAG_PARSER_VERSION!Make 0.0 /current.age/ +!_TAG_PARSER_VERSION!Man 0.0 /current.age/ +!_TAG_PARSER_VERSION!Sh 0.0 /current.age/ +!_TAG_PATTERN_LENGTH_LIMIT 96 /0 for no limit/ +!_TAG_PROC_CWD /root/repos/nhkd/ // +!_TAG_PROGRAM_AUTHOR Universal Ctags Team // +!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ +!_TAG_PROGRAM_URL https://ctags.io/ /official site/ +!_TAG_PROGRAM_VERSION 6.1.0 // +!_TAG_ROLE_DESCRIPTION!C!function foreigndecl /declared in foreign languages/ +!_TAG_ROLE_DESCRIPTION!C!header local /local header/ +!_TAG_ROLE_DESCRIPTION!C!header system /system header/ +!_TAG_ROLE_DESCRIPTION!C!macro undef /undefined/ +!_TAG_ROLE_DESCRIPTION!C!struct foreigndecl /declared in foreign languages/ +!_TAG_ROLE_DESCRIPTION!C++!header exported /exported with "exported imported ..."/ +!_TAG_ROLE_DESCRIPTION!C++!header imported /imported with "imported ..."/ +!_TAG_ROLE_DESCRIPTION!C++!header local /local header/ +!_TAG_ROLE_DESCRIPTION!C++!header system /system header/ +!_TAG_ROLE_DESCRIPTION!C++!macro undef /undefined/ +!_TAG_ROLE_DESCRIPTION!C++!module imported /imported with "imported ..."/ +!_TAG_ROLE_DESCRIPTION!C++!module partOwner /used for specifying a partition/ +!_TAG_ROLE_DESCRIPTION!C++!partition imported /imported with "imported ..."/ +!_TAG_ROLE_DESCRIPTION!Make!makefile included /included/ +!_TAG_ROLE_DESCRIPTION!Make!makefile optional /optionally included/ +!_TAG_ROLE_DESCRIPTION!Sh!heredoc endmarker /end marker/ +!_TAG_ROLE_DESCRIPTION!Sh!script loaded /loaded/ +AppendMouseInfo nhkd.c /^ AppendMouseInfo,$/;" e enum:MouseInfo file: +CONFIGURATION nhkd.1 /^.SH CONFIGURATION$/;" s title:nhkd +DESCRIPTION nhkd.1 /^.SH DESCRIPTION$/;" s title:nhkd +ENVIRONMENT nhkd.1 /^.SH ENVIRONMENT$/;" s title:nhkd +HISTORY nhkd.1 /^.SH HISTORY$/;" s title:nhkd +INSTALL Makefile /^INSTALL = install$/;" m +INSTALL_DATA Makefile /^INSTALL_DATA = $(INSTALL) -m 644$/;" m +INSTALL_PROGRAM Makefile /^INSTALL_PROGRAM = $(INSTALL)$/;" m +IgnoreMouseInfo nhkd.c /^ IgnoreMouseInfo,$/;" e enum:MouseInfo file: +KeyEvent nhkd.c /^struct KeyEvent$/;" s file: +LICENSE nhkd.1 /^.SH LICENSE$/;" s title:nhkd +MouseEvent nhkd.c /^struct MouseEvent$/;" s file: +MouseInfo nhkd.c /^enum MouseInfo$/;" g file: +NAME nhkd.1 /^.SH NAME$/;" s title:nhkd +OPTIONS nhkd.1 /^.SH OPTIONS$/;" s title:nhkd +SEE ALSO nhkd.1 /^.SH "SEE ALSO"$/;" s title:nhkd +SYNOPSIS nhkd.1 /^.SH SYNOPSIS$/;" s title:nhkd +all Makefile /^all: nhkd$/;" t +bindir Makefile /^bindir = $(exec_prefix)\/bin$/;" m +button nhkd.c /^ unsigned int button;$/;" m struct:MouseEvent typeref:typename:unsigned int file: +clean Makefile /^clean:$/;" t +cleanmask nhkd.c /^cleanmask(unsigned long mask)$/;" f typeref:typename:unsigned long +command nhkd.c /^ char *command;$/;" m struct:KeyEvent typeref:typename:char * file: +command nhkd.c /^ char *command;$/;" m struct:MouseEvent typeref:typename:char * file: +datarootdir Makefile /^datarootdir = $(prefix)\/share$/;" m +debug_print_spawned_command config.h /^bool debug_print_spawned_command = false;$/;" v typeref:typename:bool +dpy nhkd.c /^Display *dpy;$/;" v typeref:typename:Display * +event_type nhkd.c /^ int event_type;$/;" m struct:KeyEvent typeref:typename:int file: +event_type nhkd.c /^ int event_type;$/;" m struct:MouseEvent typeref:typename:int file: +exec_prefix Makefile /^exec_prefix = $(prefix)$/;" m +grabkeys nhkd.c /^grabkeys(void)$/;" f typeref:typename:void +install Makefile /^install: nhkd installdirs$/;" t +installdirs Makefile /^installdirs:$/;" t +key_events config.h /^struct KeyEvent key_events[] = {$/;" v typeref:struct:KeyEvent[] +keyboard nhkd.c /^keyboard(XEvent *e)$/;" f typeref:typename:void +keysym nhkd.c /^ KeySym keysym;$/;" m struct:KeyEvent typeref:typename:KeySym file: +main nhkd.c /^main(int argc, char **argv)$/;" f typeref:typename:int +man1dir Makefile /^man1dir = $(mandir)\/man1$/;" m +mandir Makefile /^mandir = $(datarootdir)\/man$/;" m +modifier nhkd.c /^ unsigned int modifier;$/;" m struct:KeyEvent typeref:typename:unsigned int file: +modifier nhkd.c /^ unsigned int modifier;$/;" m struct:MouseEvent typeref:typename:unsigned int file: +mouse_button nhkd.c /^mouse_button(XEvent *e)$/;" f typeref:typename:void +mouse_events config.h /^struct MouseEvent mouse_events[] = {$/;" v typeref:struct:MouseEvent[] +mouse_info nhkd.c /^ enum MouseInfo mouse_info;$/;" m struct:MouseEvent typeref:enum:MouseInfo file: +mouse_motion nhkd.c /^mouse_motion(XEvent *e)$/;" f typeref:typename:void +mouse_motion_counter nhkd.c /^uint32_t mouse_motion_counter = 0;$/;" v typeref:typename:uint32_t +mouse_now_button nhkd.c /^unsigned int mouse_now_button = 0, mouse_now_state = 0;$/;" v typeref:typename:unsigned int +mouse_now_state nhkd.c /^unsigned int mouse_now_button = 0, mouse_now_state = 0;$/;" v typeref:typename:unsigned int +nhkd Makefile /^nhkd: nhkd.c config.h$/;" t +nhkd nhkd.1 /^.TH nhkd 1 "2020-05-20" "nhkd" "User Commands"$/;" t +numlockmask nhkd.c /^unsigned int numlockmask = 0;$/;" v typeref:typename:unsigned int +prefix Makefile /^prefix = \/usr\/local$/;" m +root nhkd.c /^Window root;$/;" v typeref:typename:Window +screen nhkd.c /^int screen;$/;" v typeref:typename:int +spawn nhkd.c /^spawn(char *command)$/;" f typeref:typename:void +updatenumlockmask nhkd.c /^updatenumlockmask(void)$/;" f typeref:typename:void +xerror nhkd.c /^xerror(Display *dpy, XErrorEvent *ee)$/;" f typeref:typename:int +xerrorxlib nhkd.c /^int (*xerrorxlib)(Display *, XErrorEvent *);$/;" v typeref:typename:int (*)(Display *,XErrorEvent *) diff --git a/sxiv b/sxiv new file mode 160000 index 0000000..b1e742e --- /dev/null +++ b/sxiv @@ -0,0 +1 @@ +Subproject commit b1e742e36572621655f65c7f90533fa3f357fdda diff --git a/vildwm/LICENSE b/vildwm/LICENSE new file mode 100755 index 0000000..995172f --- /dev/null +++ b/vildwm/LICENSE @@ -0,0 +1,38 @@ +MIT/X Consortium License + +© 2006-2019 Anselm R Garbe +© 2006-2009 Jukka Salmi +© 2006-2007 Sander van Dijk +© 2007-2011 Peter Hartlich +© 2007-2009 Szabolcs Nagy +© 2007-2009 Christof Musik +© 2007-2009 Premysl Hruby +© 2007-2008 Enno Gottox Boland +© 2008 Martin Hurton +© 2008 Neale Pickett +© 2009 Mate Nagy +© 2010-2016 Hiltjo Posthuma +© 2010-2012 Connor Lane Smith +© 2011 Christoph Lohmann <20h@r-36.net> +© 2015-2016 Quentin Rameau +© 2015-2016 Eric Pruitt +© 2016-2017 Markus Teich +© 2020-2022 Chris Down + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/vildwm/Makefile b/vildwm/Makefile new file mode 100755 index 0000000..77bcbc0 --- /dev/null +++ b/vildwm/Makefile @@ -0,0 +1,51 @@ +# dwm - dynamic window manager +# See LICENSE file for copyright and license details. + +include config.mk + +SRC = drw.c dwm.c util.c +OBJ = ${SRC:.c=.o} + +all: options dwm + +options: + @echo dwm build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + +.c.o: + ${CC} -c ${CFLAGS} $< + +${OBJ}: config.h config.mk + +config.h: + cp config.def.h $@ + +dwm: ${OBJ} + ${CC} -o $@ ${OBJ} ${LDFLAGS} + +clean: + rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz + +dist: clean + mkdir -p dwm-${VERSION} + cp -R LICENSE Makefile README config.def.h config.mk\ + dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION} + tar -cf dwm-${VERSION}.tar dwm-${VERSION} + gzip dwm-${VERSION}.tar + rm -rf dwm-${VERSION} + +install: all + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f dwm ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/dwm + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 + chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 + +uninstall: + rm -f ${DESTDIR}${PREFIX}/bin/dwm\ + ${DESTDIR}${MANPREFIX}/man1/dwm.1 + +.PHONY: all options clean dist install uninstall diff --git a/vildwm/README b/vildwm/README new file mode 100755 index 0000000..95d4fd0 --- /dev/null +++ b/vildwm/README @@ -0,0 +1,48 @@ +dwm - dynamic window manager +============================ +dwm is an extremely fast, small, and dynamic window manager for X. + + +Requirements +------------ +In order to build dwm you need the Xlib header files. + + +Installation +------------ +Edit config.mk to match your local setup (dwm is installed into +the /usr/local namespace by default). + +Afterwards enter the following command to build and install dwm (if +necessary as root): + + make clean install + + +Running dwm +----------- +Add the following line to your .xinitrc to start dwm using startx: + + exec dwm + +In order to connect dwm to a specific display, make sure that +the DISPLAY environment variable is set correctly, e.g.: + + DISPLAY=foo.bar:1 exec dwm + +(This will start dwm on display :1 of the host foo.bar.) + +In order to display status info in the bar, you can do something +like this in your .xinitrc: + + while xsetroot -name "`date` `uptime | sed 's/.*,//'`" + do + sleep 1 + done & + exec dwm + + +Configuration +------------- +The configuration of dwm is done by creating a custom config.h +and (re)compiling the source code. diff --git a/vildwm/config.def.h b/vildwm/config.def.h new file mode 100755 index 0000000..b7faaa5 --- /dev/null +++ b/vildwm/config.def.h @@ -0,0 +1,126 @@ +/* See LICENSE file for copyright and license details. */ + +/* appearance */ +static const unsigned int borderpx = 2; /* border pixel of windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "monospace:size=10" }; +static const char dmenufont[] = "monospace:size=10"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const char col_gray3[] = "#bbbbbb"; +static const char col_gray4[] = "#eeeeee"; +static const char col_cyan[] = "#b4daf2"; +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSel] = { col_gray4, col_cyan, col_cyan }, +}; + +/* tagging */ +static const char *tags[] = { "1", "2", "3"}; + +static const Rule rules[] = { + /* xprop(1): + * WM_CLASS(STRING) = instance, class + * WM_NAME(STRING) = title + */ + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Firefox", NULL, NULL, 0, 0, -1 }, +}; + +/* layout(s) */ +static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const int nmaster = 1; /* number of clients in master area */ +static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ + +#include "fibonacci.c" +static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + { "[@]", spiral }, + { "[\\]", dwindle }, + { "|M|", centeredmaster }, + { ">M>", centeredfloatingmaster }, +}; + +/* key definitions */ +#define MODKEY Mod1Mask +#define TAGKEYS(KEY,TAG) \ + { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ + { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, + +/* helper for spawning shell commands in the pre dwm-5.0 fashion */ +#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } + +/* commands */ +static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "st", NULL }; +//static const char *basedplayer[] = { "st /Videos/basedplayer.sh", NULL }; + +static const Key keys[] = { + /* modifier key function argument */ + + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_i, incnmaster, {.i = +1 } }, + { MODKEY, XK_d, incnmaster, {.i = -1 } }, + { MODKEY, XK_h, setmfact, {.f = -0.05} }, + { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY, XK_Return, zoom, {0} }, + { MODKEY, XK_Tab, view, {0} }, + { MODKEY|ShiftMask, XK_c, killclient, {0} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_r, setlayout, {.v = &layouts[3]} }, + { MODKEY|ShiftMask, XK_x, setlayout, {.v = &layouts[4]} }, + { MODKEY|ShiftMask, XK_y, setlayout, {.v = &layouts[5]} }, + { MODKEY|ShiftMask, XK_z, setlayout, {.v = &layouts[6]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + TAGKEYS( XK_1, 0) + TAGKEYS( XK_2, 1) + TAGKEYS( XK_3, 2) + TAGKEYS( XK_4, 3) + TAGKEYS( XK_5, 4) + TAGKEYS( XK_6, 5) +-f v4l2 -video_size 320x180 -framerate 25 -i /dev/video0 \ + TAGKEYS( XK_7, 6) + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) + { MODKEY|ShiftMask, XK_q, quit, {0} }, +}; + +/* button definitions */ +/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ +static const Button buttons[] = { + /* click event mask button function argument */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, +}; + diff --git a/vildwm/config.def.h.orig b/vildwm/config.def.h.orig new file mode 100755 index 0000000..2052061 --- /dev/null +++ b/vildwm/config.def.h.orig @@ -0,0 +1,126 @@ +/* See LICENSE file for copyright and license details. */ + +/* appearance */ +static const unsigned int borderpx = 2; /* border pixel of windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "monospace:size=10" }; +static const char dmenufont[] = "monospace:size=10"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const char col_gray3[] = "#bbbbbb"; +static const char col_gray4[] = "#eeeeee"; +static const char col_cyan[] = "#b4daf2"; +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSel] = { col_gray4, col_cyan, col_cyan }, +}; + +/* tagging */ +static const char *tags[] = { "1", "2", "3"}; + +static const Rule rules[] = { + /* xprop(1): + * WM_CLASS(STRING) = instance, class + * WM_NAME(STRING) = title + */ + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Firefox", NULL, NULL, 0, 0, -1 }, +}; + +/* layout(s) */ +static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const int nmaster = 1; /* number of clients in master area */ +static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ + +#include "fibonacci.c" +static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + { "[@]", spiral }, + { "[\\]", dwindle }, +}; + +/* key definitions */ +#define MODKEY Mod1Mask +#define TAGKEYS(KEY,TAG) \ + { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ + { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, + +/* helper for spawning shell commands in the pre dwm-5.0 fashion */ +#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } + +/* commands */ +static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "st", NULL }; +//static const char *basedplayer[] = { "st /Videos/basedplayer.sh", NULL }; + +static const Key keys[] = { + /* modifier key function argument */ + //( MODKEY|ShiftMask, XK_b, spawn, {.v = basedplayer } }, + { MODKEY|ShiftMask, XK_b, spawn, SHCMD("st /Videos/basedplayer.sh") + { MODKEY, XK_p, spawn, SHCMD("st /Videos/basedplayer.sh")//{.v = dmenucmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_b, togglebar, {0} }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_i, incnmaster, {.i = +1 } }, + { MODKEY, XK_d, incnmaster, {.i = -1 } }, + { MODKEY, XK_h, setmfact, {.f = -0.05} }, + { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY, XK_Return, zoom, {0} }, + { MODKEY, XK_Tab, view, {0} }, + { MODKEY|ShiftMask, XK_c, killclient, {0} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_r, setlayout, {.v = &layouts[3]} }, + { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + TAGKEYS( XK_1, 0) + TAGKEYS( XK_2, 1) + TAGKEYS( XK_3, 2) + TAGKEYS( XK_4, 3) + TAGKEYS( XK_5, 4) + TAGKEYS( XK_6, 5) +-f v4l2 -video_size 320x180 -framerate 25 -i /dev/video0 \ + TAGKEYS( XK_7, 6) + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) + { MODKEY|ShiftMask, XK_q, quit, {0} }, +}; + +/* button definitions */ +/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ +static const Button buttons[] = { + /* click event mask button function argument */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, +}; + diff --git a/vildwm/config.def.h.rej b/vildwm/config.def.h.rej new file mode 100755 index 0000000..9447525 --- /dev/null +++ b/vildwm/config.def.h.rej @@ -0,0 +1,20 @@ +--- config.def.h ++++ config.def.h +@@ -39,6 +39,8 @@ static const Layout layouts[] = { + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, ++ { "|M|", centeredmaster }, ++ { ">M>", centeredfloatingmaster }, + }; + + /* key definitions */ +@@ -74,6 +76,8 @@ static Key keys[] = { + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, ++ { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, ++ { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, diff --git a/vildwm/config.h b/vildwm/config.h new file mode 100755 index 0000000..4168b97 --- /dev/null +++ b/vildwm/config.h @@ -0,0 +1,137 @@ +/* See LICENSE file for copyright and license details. */ + +#include "fibonacci.c" + +/* appearance */ +static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 0; /* 0 means bottom bar */ +static const char *fonts[] = { + // "Terminus:pixelsize=14:antialias=true:autohint=true" + "TerminessNerdFont:pixelsize=16:antialias=true:autohint=true" + /*"NotoColorEmoji:pixelsize=10:antialias=true:autohint=true"*/ +}; +static const char dmenufont[] = "monospace:size=10"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const char col_gray3[] = "#bbbbbb"; +static const char col_gray4[] = "#000000"; +static const char col_cyan[] = "#b4daf2"; +static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSel] = { col_gray4, col_cyan, col_cyan }, +}; + +/* tagging */ +/*static const char *tags[] = { "1", "2", "3"};*/ +static const char *tags[] = {"☦️", "📎", "📝"}; + +static const Rule rules[] = { + /* xprop(1): + * WM_CLASS(STRING) = instance, class + * WM_NAME(STRING) = title + */ + /* class instance title tags mask isfloating isterminal noswallow monitor */ + { NULL, NULL, "st", 0, 0, 1, 0, -1 }, + { "ffplay", NULL, NULL, 0, 0, 0, 0, -1 }, + { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */ + { "gdb", NULL, NULL, 0, 0, 0, 1, -1 }, /* gdb */ +}; + +/* layout(s) */ +static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const int nmaster = 1; /* number of clients in master area */ +static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ + +static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + { "|M|", centeredmaster}, + { ">M>", centeredfloatingmaster}, + { "[@]", spiral}, + { "[V]", dwindle}, +}; + +/* key definitions */ +#define MODKEY Mod1Mask +#define TAGKEYS(KEY,TAG) \ +{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \ +{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ +{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ +{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, + +/* helper for spawning shell commands in the pre dwm-5.0 fashion */ +#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } + +/* commands */ +static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "st", NULL }; + +static const Key keys[] = { + /* modifier key function argument */ + { MODKEY|ShiftMask, XK_b, spawn, SHCMD("basedplayer") }, + { MODKEY|ShiftMask, XK_o, spawn, SHCMD("bookmarker") }, + // End of my personal keys + { MODKEY, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_b, togglebar, {0} }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_i, incnmaster, {.i = +1 } }, + { MODKEY, XK_d, incnmaster, {.i = -1 } }, + { MODKEY, XK_h, setmfact, {.f = -0.05} }, + { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY, XK_Return, zoom, {0} }, + { MODKEY, XK_Tab, view, {0} }, + { MODKEY|ShiftMask, XK_c, killclient, {0} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, + { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_r, setlayout, {.v = &layouts[5]} }, + { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[6]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + TAGKEYS( XK_1, 0) + TAGKEYS( XK_2, 1) + TAGKEYS( XK_3, 2) + TAGKEYS( XK_4, 3) + TAGKEYS( XK_5, 4) + TAGKEYS( XK_6, 5) + TAGKEYS( XK_7, 6) + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) + { MODKEY|ShiftMask, XK_q, quit, {0} }, +}; + +/* button definitions */ +/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ +static const Button buttons[] = { + /* click event mask button function argument */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, +}; + diff --git a/vildwm/config.mk b/vildwm/config.mk new file mode 100755 index 0000000..1c9d2e3 --- /dev/null +++ b/vildwm/config.mk @@ -0,0 +1,40 @@ +# dwm version +VERSION = 6.4 + +# Customize below to fit your system + +# paths +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man + +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + +# Xinerama, comment if you don't want it +XINERAMALIBS = -lXinerama +XINERAMAFLAGS = -DXINERAMA + +# freetype +FREETYPELIBS = -lfontconfig -lXft +FREETYPEINC = /usr/include/freetype2 +# OpenBSD (uncomment) +#FREETYPEINC = ${X11INC}/freetype2 +#MANPREFIX = ${PREFIX}/man +#KVMLIB = -lkvm + +# includes and libs +INCS = -I${X11INC} -I${FREETYPEINC} +LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-res ${KVMLIB} + +# flags +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} +CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} +LDFLAGS = ${LIBS} + +# Solaris +#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +#LDFLAGS = ${LIBS} + +# compiler and linker +CC = cc diff --git a/vildwm/config.mk.orig b/vildwm/config.mk.orig new file mode 100755 index 0000000..ba64d3d --- /dev/null +++ b/vildwm/config.mk.orig @@ -0,0 +1,39 @@ +# dwm version +VERSION = 6.4 + +# Customize below to fit your system + +# paths +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man + +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + +# Xinerama, comment if you don't want it +XINERAMALIBS = -lXinerama +XINERAMAFLAGS = -DXINERAMA + +# freetype +FREETYPELIBS = -lfontconfig -lXft +FREETYPEINC = /usr/include/freetype2 +# OpenBSD (uncomment) +#FREETYPEINC = ${X11INC}/freetype2 +#MANPREFIX = ${PREFIX}/man + +# includes and libs +INCS = -I${X11INC} -I${FREETYPEINC} +LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} + +# flags +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} +CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} +LDFLAGS = ${LIBS} + +# Solaris +#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +#LDFLAGS = ${LIBS} + +# compiler and linker +CC = cc diff --git a/vildwm/drw.c b/vildwm/drw.c new file mode 100755 index 0000000..a58a2b4 --- /dev/null +++ b/vildwm/drw.c @@ -0,0 +1,450 @@ +/* See LICENSE file for copyright and license details. */ +#include +#include +#include +#include +#include + +#include "drw.h" +#include "util.h" + +#define UTF_INVALID 0xFFFD +#define UTF_SIZ 4 + +static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; +static const unsigned char utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; +static const long utfmin[UTF_SIZ + 1] = { 0, 0, 0x80, 0x800, 0x10000}; +static const long utfmax[UTF_SIZ + 1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; + +static long +utf8decodebyte(const char c, size_t *i) +{ + for (*i = 0; *i < (UTF_SIZ + 1); ++(*i)) + if (((unsigned char)c & utfmask[*i]) == utfbyte[*i]) + return (unsigned char)c & ~utfmask[*i]; + return 0; +} + +static size_t +utf8validate(long *u, size_t i) +{ + if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF)) + *u = UTF_INVALID; + for (i = 1; *u > utfmax[i]; ++i) + ; + return i; +} + +static size_t +utf8decode(const char *c, long *u, size_t clen) +{ + size_t i, j, len, type; + long udecoded; + + *u = UTF_INVALID; + if (!clen) + return 0; + udecoded = utf8decodebyte(c[0], &len); + if (!BETWEEN(len, 1, UTF_SIZ)) + return 1; + for (i = 1, j = 1; i < clen && j < len; ++i, ++j) { + udecoded = (udecoded << 6) | utf8decodebyte(c[i], &type); + if (type) + return j; + } + if (j < len) + return 0; + *u = udecoded; + utf8validate(u, len); + + return len; +} + +Drw * +drw_create(Display *dpy, int screen, Window root, unsigned int w, unsigned int h) +{ + Drw *drw = ecalloc(1, sizeof(Drw)); + + drw->dpy = dpy; + drw->screen = screen; + drw->root = root; + drw->w = w; + drw->h = h; + drw->drawable = XCreatePixmap(dpy, root, w, h, DefaultDepth(dpy, screen)); + drw->gc = XCreateGC(dpy, root, 0, NULL); + XSetLineAttributes(dpy, drw->gc, 1, LineSolid, CapButt, JoinMiter); + + return drw; +} + +void +drw_resize(Drw *drw, unsigned int w, unsigned int h) +{ + if (!drw) + return; + + drw->w = w; + drw->h = h; + if (drw->drawable) + XFreePixmap(drw->dpy, drw->drawable); + drw->drawable = XCreatePixmap(drw->dpy, drw->root, w, h, DefaultDepth(drw->dpy, drw->screen)); +} + +void +drw_free(Drw *drw) +{ + XFreePixmap(drw->dpy, drw->drawable); + XFreeGC(drw->dpy, drw->gc); + drw_fontset_free(drw->fonts); + free(drw); +} + +/* This function is an implementation detail. Library users should use + * drw_fontset_create instead. + */ +static Fnt * +xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) +{ + Fnt *font; + XftFont *xfont = NULL; + FcPattern *pattern = NULL; + + if (fontname) { + /* Using the pattern found at font->xfont->pattern does not yield the + * same substitution results as using the pattern returned by + * FcNameParse; using the latter results in the desired fallback + * behaviour whereas the former just results in missing-character + * rectangles being drawn, at least with some fonts. */ + if (!(xfont = XftFontOpenName(drw->dpy, drw->screen, fontname))) { + fprintf(stderr, "error, cannot load font from name: '%s'\n", fontname); + return NULL; + } + if (!(pattern = FcNameParse((FcChar8 *) fontname))) { + fprintf(stderr, "error, cannot parse font name to pattern: '%s'\n", fontname); + XftFontClose(drw->dpy, xfont); + return NULL; + } + } else if (fontpattern) { + if (!(xfont = XftFontOpenPattern(drw->dpy, fontpattern))) { + fprintf(stderr, "error, cannot load font from pattern.\n"); + return NULL; + } + } else { + die("no font specified."); + } + + font = ecalloc(1, sizeof(Fnt)); + font->xfont = xfont; + font->pattern = pattern; + font->h = xfont->ascent + xfont->descent; + font->dpy = drw->dpy; + + return font; +} + +static void +xfont_free(Fnt *font) +{ + if (!font) + return; + if (font->pattern) + FcPatternDestroy(font->pattern); + XftFontClose(font->dpy, font->xfont); + free(font); +} + +Fnt* +drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount) +{ + Fnt *cur, *ret = NULL; + size_t i; + + if (!drw || !fonts) + return NULL; + + for (i = 1; i <= fontcount; i++) { + if ((cur = xfont_create(drw, fonts[fontcount - i], NULL))) { + cur->next = ret; + ret = cur; + } + } + return (drw->fonts = ret); +} + +void +drw_fontset_free(Fnt *font) +{ + if (font) { + drw_fontset_free(font->next); + xfont_free(font); + } +} + +void +drw_clr_create(Drw *drw, Clr *dest, const char *clrname) +{ + if (!drw || !dest || !clrname) + return; + + if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen), + DefaultColormap(drw->dpy, drw->screen), + clrname, dest)) + die("error, cannot allocate color '%s'", clrname); +} + +/* Wrapper to create color schemes. The caller has to call free(3) on the + * returned color scheme when done using it. */ +Clr * +drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount) +{ + size_t i; + Clr *ret; + + /* need at least two colors for a scheme */ + if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(XftColor)))) + return NULL; + + for (i = 0; i < clrcount; i++) + drw_clr_create(drw, &ret[i], clrnames[i]); + return ret; +} + +void +drw_setfontset(Drw *drw, Fnt *set) +{ + if (drw) + drw->fonts = set; +} + +void +drw_setscheme(Drw *drw, Clr *scm) +{ + if (drw) + drw->scheme = scm; +} + +void +drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert) +{ + if (!drw || !drw->scheme) + return; + XSetForeground(drw->dpy, drw->gc, invert ? drw->scheme[ColBg].pixel : drw->scheme[ColFg].pixel); + if (filled) + XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); + else + XDrawRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w - 1, h - 1); +} + +int +drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert) +{ + int i, ty, ellipsis_x = 0; + unsigned int tmpw, ew, ellipsis_w = 0, ellipsis_len; + XftDraw *d = NULL; + Fnt *usedfont, *curfont, *nextfont; + int utf8strlen, utf8charlen, render = x || y || w || h; + long utf8codepoint = 0; + const char *utf8str; + FcCharSet *fccharset; + FcPattern *fcpattern; + FcPattern *match; + XftResult result; + int charexists = 0, overflow = 0; + /* keep track of a couple codepoints for which we have no match. */ + enum { nomatches_len = 64 }; + static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches; + static unsigned int ellipsis_width = 0; + + if (!drw || (render && (!drw->scheme || !w)) || !text || !drw->fonts) + return 0; + + if (!render) { + w = invert ? invert : ~invert; + } else { + XSetForeground(drw->dpy, drw->gc, drw->scheme[invert ? ColFg : ColBg].pixel); + XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); + d = XftDrawCreate(drw->dpy, drw->drawable, + DefaultVisual(drw->dpy, drw->screen), + DefaultColormap(drw->dpy, drw->screen)); + x += lpad; + w -= lpad; + } + + usedfont = drw->fonts; + if (!ellipsis_width && render) + ellipsis_width = drw_fontset_getwidth(drw, "..."); + while (1) { + ew = ellipsis_len = utf8strlen = 0; + utf8str = text; + nextfont = NULL; + while (*text) { + utf8charlen = utf8decode(text, &utf8codepoint, UTF_SIZ); + for (curfont = drw->fonts; curfont; curfont = curfont->next) { + charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); + if (charexists) { + drw_font_getexts(curfont, text, utf8charlen, &tmpw, NULL); + if (ew + ellipsis_width <= w) { + /* keep track where the ellipsis still fits */ + ellipsis_x = x + ew; + ellipsis_w = w - ew; + ellipsis_len = utf8strlen; + } + + if (ew + tmpw > w) { + overflow = 1; + /* called from drw_fontset_getwidth_clamp(): + * it wants the width AFTER the overflow + */ + if (!render) + x += tmpw; + else + utf8strlen = ellipsis_len; + } else if (curfont == usedfont) { + utf8strlen += utf8charlen; + text += utf8charlen; + ew += tmpw; + } else { + nextfont = curfont; + } + break; + } + } + + if (overflow || !charexists || nextfont) + break; + else + charexists = 0; + } + + if (utf8strlen) { + if (render) { + ty = y + (h - usedfont->h) / 2 + usedfont->xfont->ascent; + XftDrawStringUtf8(d, &drw->scheme[invert ? ColBg : ColFg], + usedfont->xfont, x, ty, (XftChar8 *)utf8str, utf8strlen); + } + x += ew; + w -= ew; + } + if (render && overflow) + drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert); + + if (!*text || overflow) { + break; + } else if (nextfont) { + charexists = 0; + usedfont = nextfont; + } else { + /* Regardless of whether or not a fallback font is found, the + * character must be drawn. */ + charexists = 1; + + for (i = 0; i < nomatches_len; ++i) { + /* avoid calling XftFontMatch if we know we won't find a match */ + if (utf8codepoint == nomatches.codepoint[i]) + goto no_match; + } + + fccharset = FcCharSetCreate(); + FcCharSetAddChar(fccharset, utf8codepoint); + + if (!drw->fonts->pattern) { + /* Refer to the comment in xfont_create for more information. */ + die("the first font in the cache must be loaded from a font string."); + } + + fcpattern = FcPatternDuplicate(drw->fonts->pattern); + FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset); + FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue); + + FcConfigSubstitute(NULL, fcpattern, FcMatchPattern); + FcDefaultSubstitute(fcpattern); + match = XftFontMatch(drw->dpy, drw->screen, fcpattern, &result); + + FcCharSetDestroy(fccharset); + FcPatternDestroy(fcpattern); + + if (match) { + usedfont = xfont_create(drw, NULL, match); + if (usedfont && XftCharExists(drw->dpy, usedfont->xfont, utf8codepoint)) { + for (curfont = drw->fonts; curfont->next; curfont = curfont->next) + ; /* NOP */ + curfont->next = usedfont; + } else { + xfont_free(usedfont); + nomatches.codepoint[++nomatches.idx % nomatches_len] = utf8codepoint; +no_match: + usedfont = drw->fonts; + } + } + } + } + if (d) + XftDrawDestroy(d); + + return x + (render ? w : 0); +} + +void +drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h) +{ + if (!drw) + return; + + XCopyArea(drw->dpy, drw->drawable, win, drw->gc, x, y, w, h, x, y); + XSync(drw->dpy, False); +} + +unsigned int +drw_fontset_getwidth(Drw *drw, const char *text) +{ + if (!drw || !drw->fonts || !text) + return 0; + return drw_text(drw, 0, 0, 0, 0, 0, text, 0); +} + +unsigned int +drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n) +{ + unsigned int tmp = 0; + if (drw && drw->fonts && text && n) + tmp = drw_text(drw, 0, 0, 0, 0, 0, text, n); + return MIN(n, tmp); +} + +void +drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h) +{ + XGlyphInfo ext; + + if (!font || !text) + return; + + XftTextExtentsUtf8(font->dpy, font->xfont, (XftChar8 *)text, len, &ext); + if (w) + *w = ext.xOff; + if (h) + *h = font->h; +} + +Cur * +drw_cur_create(Drw *drw, int shape) +{ + Cur *cur; + + if (!drw || !(cur = ecalloc(1, sizeof(Cur)))) + return NULL; + + cur->cursor = XCreateFontCursor(drw->dpy, shape); + + return cur; +} + +void +drw_cur_free(Drw *drw, Cur *cursor) +{ + if (!cursor) + return; + + XFreeCursor(drw->dpy, cursor->cursor); + free(cursor); +} diff --git a/vildwm/drw.h b/vildwm/drw.h new file mode 100755 index 0000000..6471431 --- /dev/null +++ b/vildwm/drw.h @@ -0,0 +1,58 @@ +/* See LICENSE file for copyright and license details. */ + +typedef struct { + Cursor cursor; +} Cur; + +typedef struct Fnt { + Display *dpy; + unsigned int h; + XftFont *xfont; + FcPattern *pattern; + struct Fnt *next; +} Fnt; + +enum { ColFg, ColBg, ColBorder }; /* Clr scheme index */ +typedef XftColor Clr; + +typedef struct { + unsigned int w, h; + Display *dpy; + int screen; + Window root; + Drawable drawable; + GC gc; + Clr *scheme; + Fnt *fonts; +} Drw; + +/* Drawable abstraction */ +Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h); +void drw_resize(Drw *drw, unsigned int w, unsigned int h); +void drw_free(Drw *drw); + +/* Fnt abstraction */ +Fnt *drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount); +void drw_fontset_free(Fnt* set); +unsigned int drw_fontset_getwidth(Drw *drw, const char *text); +unsigned int drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n); +void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h); + +/* Colorscheme abstraction */ +void drw_clr_create(Drw *drw, Clr *dest, const char *clrname); +Clr *drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount); + +/* Cursor abstraction */ +Cur *drw_cur_create(Drw *drw, int shape); +void drw_cur_free(Drw *drw, Cur *cursor); + +/* Drawing context manipulation */ +void drw_setfontset(Drw *drw, Fnt *set); +void drw_setscheme(Drw *drw, Clr *scm); + +/* Drawing functions */ +void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert); +int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert); + +/* Map functions */ +void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); diff --git a/vildwm/drw.o b/vildwm/drw.o new file mode 100644 index 0000000000000000000000000000000000000000..932b4784e7290e8918b21f53abcca953b2bf9cd6 GIT binary patch literal 10888 zcmbtae{fUBonKip$lyo{g+zfXD5(-m1Byin5riaq_LKcYWH8tU^CJaWma&R#d8DV< z5N@EA&CT{GNAO`k7|z_F|{<0IQ9Y+;jGqqHjY%{KZ8 zPKrLF8T~%G-k}X$)2m>LPR6Dg&p5S2y+@^gpnrsUdbK0xrfT-T!9mpshfE@{0%ecD zv|-L|N^4t-R=9{xau3c1BS5Bm@J?*d&!Y6r*zl6yD!*aIU20l((fzF}AT4UFyRHqL z(X-%8rj@q(g$>ZshKf;oB0pO*9s^>c4L^)ku*eJ;{Q*MszqCK&$+t|(fC^&t3&uQ_ zg7^+IsjPpv286L#v2O5;Mw>nG@fwc%QKx(Q1cgRbZlq$YcPRF|X|q!^VqmV(0tyCz zPxERNs&1b~k4H<#qlL@P(W#|UNu%3CV->+mTHzQ_T(HFEE}m#UW`l-#wd+=?G-AU2 zJ}E%C8k~(uXFMY!!V?iZ4=iuE4-~<-?gK}ir}K4~yN|_;)ezW5Pn2HK=-U|8sQsHL zBt~D;jOJ#|=nFHML&ZFp|2ys>Grc#B@GxuitQqKQsG)Gv=Ke0KSQ(|aP)l8uUeoA@ zhdm(IG;pY>FNy@;i_!B>8Z*zw=!enLG405C2Xmxmdx=p+mtE8haBTK1a1e++=H-dY z(iUj@L*uPlk#o4n+FDwSR)3h~-M2ueW;E8~f(5NlEA%R?MwK3q(AOZ%robdUV|LAe zWRpA?87e{Om`4Hk>2qn?ACAyJDVrh?BUlCFONg!W(yNi-RV5h0^#PR1#)&vGg7%3% zGkFP*t8>j-WsO2lDa{H!tr<_kdi@9$nqI<1S2*SiUgNt7`f?R6%qVUouh7?lx-CYJ zGhu~`Fok~jJP{jK{pSAAH1wWc<$h81S1Z)v*M=_XQ;d2ijSvv)5ldC2MP*&pNxoje zO@)gCuz(g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$Mx&xhY zJx&50xf}^(GuT1$Ail87E(s(uJw0$;Cjt2TQZmrEs%=qDk0-VR0ZK`B!>bJ+GXLM= z0|DrAe$0)F3-i`jc)p4O9v;ypc=y9p504{eGCw(|cU0;aMJ literal 0 HcmV?d00001 diff --git a/vildwm/dwm b/vildwm/dwm new file mode 100755 index 0000000000000000000000000000000000000000..77a3e135204632eea5dbd97e81149f7ce1d82bc1 GIT binary patch literal 72944 zcmeFad3+RA7C%~@q#|hWir`iH{y8t0b3*kkX~o!zIFgD$MDjo;!t!C3n>BhHLjgJkLtF?63s-d2a)J5qUzEttp(52~9 z4|RP~8R;)a(`RgGQ^ldp)K6@>A}w8P=+^l4kn*5U!M9@B|C{`LTDoIzs&Zn(*R*oz zp`PC)q$9ojKmBOU&P~?xi`BnQuT51Y>Y;9D!zwH0+%bGuW!aF*imE{UkoufEhTJiH zXkGQt+gJiB7v(`Vl{aAum(akq5T>W6=QR9Lbtr!2jTbJy(SPs6XL}tOxB02GhKsxZ z`hqTl(hv`Qh+k{sPWll%5f9aWCI5SR>`7P?{^--@|8T*E|2(xM*YoMI{SOrNbDWm- zZlf|7zMn*VaKL7o*@j!(Zkj__?9^3`E4Bh z={S0r8plqC#gQ{JPI=nm;IGHg=Vz$)q z9H;z39DDmJPWj)6BgYzte`Flo7pGpXIORDTC*Ol{^tm7o|Jpcq(lbsuJL0szb8{U2oH+R|j+5{2iC3^|}#div1jbeyrSeT=CIg#_VEvUoPj{U*aEX{IPff@GBw5rSa?g zPi}U8;rQ8Q{#yUMiaOC>TR1+qvbxG&STd*5&&{4aZ$Wj{>^iZeR-8RsWxXV0QJ!C% zR#8<}y@(gZ+KM>=(O<_E6#yJBR8)z0CWi68+G?@7w7OD_8(R%owbg;DGOlQBt>0gO zlvVS*CFA!<%_Np0EqlA0PMqXB(e-+Z_)t1chRU>PEEmt(9YC%bjT0E|3d`aE?8k5^!C)QRk)?*45SCvwHCo9Ta z2$5Zx=GOX4P>70p$kVE%RgbF5>OZEs7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Xp~D(ml`-7u90wdw@z+PV$yZ z(@OsUOzN-trT621D$>S;IR0Gg0lFo>g#)LO6%D%>V|4p{opR>mfPR`uaV!vb8wnwB-9L1lq~(^IDI0pb&`_T5pZtGQPCzPSX7y et9BM8Y>sC7e literal 0 HcmV?d00001 diff --git a/vildwm/dwm-centeredmaster-6.1.diff b/vildwm/dwm-centeredmaster-6.1.diff new file mode 100755 index 0000000..6926892 --- /dev/null +++ b/vildwm/dwm-centeredmaster-6.1.diff @@ -0,0 +1,142 @@ +diff --git a/config.def.h b/config.def.h +index 7054c06..527b214 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -39,6 +39,8 @@ static const Layout layouts[] = { + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, ++ { "|M|", centeredmaster }, ++ { ">M>", centeredfloatingmaster }, + }; + + /* key definitions */ +@@ -74,6 +76,8 @@ static Key keys[] = { + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, ++ { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, ++ { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, +diff --git a/dwm.c b/dwm.c +index 0362114..1e81412 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -233,6 +233,8 @@ static int xerror(Display *dpy, XErrorEvent *ee); + static int xerrordummy(Display *dpy, XErrorEvent *ee); + static int xerrorstart(Display *dpy, XErrorEvent *ee); + static void zoom(const Arg *arg); ++static void centeredmaster(Monitor *m); ++static void centeredfloatingmaster(Monitor *m); + + /* variables */ + static const char broken[] = "broken"; +@@ -2139,3 +2141,106 @@ main(int argc, char *argv[]) + XCloseDisplay(dpy); + return EXIT_SUCCESS; + } ++ ++void ++centeredmaster(Monitor *m) ++{ ++ unsigned int i, n, h, mw, mx, my, oty, ety, tw; ++ Client *c; ++ ++ /* count number of clients in the selected monitor */ ++ for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); ++ if (n == 0) ++ return; ++ ++ /* initialize areas */ ++ mw = m->ww; ++ mx = 0; ++ my = 0; ++ tw = mw; ++ ++ if (n > m->nmaster) { ++ /* go mfact box in the center if more than nmaster clients */ ++ mw = m->nmaster ? m->ww * m->mfact : 0; ++ tw = m->ww - mw; ++ ++ if (n - m->nmaster > 1) { ++ /* only one client */ ++ mx = (m->ww - mw) / 2; ++ tw = (m->ww - mw) / 2; ++ } ++ } ++ ++ oty = 0; ++ ety = 0; ++ for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) ++ if (i < m->nmaster) { ++ /* nmaster clients are stacked vertically, in the center ++ * of the screen */ ++ h = (m->wh - my) / (MIN(n, m->nmaster) - i); ++ resize(c, m->wx + mx, m->wy + my, mw - (2*c->bw), ++ h - (2*c->bw), 0); ++ my += HEIGHT(c); ++ } else { ++ /* stack clients are stacked vertically */ ++ if ((i - m->nmaster) % 2 ) { ++ h = (m->wh - ety) / ( (1 + n - i) / 2); ++ resize(c, m->wx, m->wy + ety, tw - (2*c->bw), ++ h - (2*c->bw), 0); ++ ety += HEIGHT(c); ++ } else { ++ h = (m->wh - oty) / ((1 + n - i) / 2); ++ resize(c, m->wx + mx + mw, m->wy + oty, ++ tw - (2*c->bw), h - (2*c->bw), 0); ++ oty += HEIGHT(c); ++ } ++ } ++} ++ ++void ++centeredfloatingmaster(Monitor *m) ++{ ++ unsigned int i, n, w, mh, mw, mx, mxo, my, myo, tx; ++ Client *c; ++ ++ /* count number of clients in the selected monitor */ ++ for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); ++ if (n == 0) ++ return; ++ ++ /* initialize nmaster area */ ++ if (n > m->nmaster) { ++ /* go mfact box in the center if more than nmaster clients */ ++ if (m->ww > m->wh) { ++ mw = m->nmaster ? m->ww * m->mfact : 0; ++ mh = m->nmaster ? m->wh * 0.9 : 0; ++ } else { ++ mh = m->nmaster ? m->wh * m->mfact : 0; ++ mw = m->nmaster ? m->ww * 0.9 : 0; ++ } ++ mx = mxo = (m->ww - mw) / 2; ++ my = myo = (m->wh - mh) / 2; ++ } else { ++ /* go fullscreen if all clients are in the master area */ ++ mh = m->wh; ++ mw = m->ww; ++ mx = mxo = 0; ++ my = myo = 0; ++ } ++ ++ for(i = tx = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) ++ if (i < m->nmaster) { ++ /* nmaster clients are stacked horizontally, in the center ++ * of the screen */ ++ w = (mw + mxo - mx) / (MIN(n, m->nmaster) - i); ++ resize(c, m->wx + mx, m->wy + my, w - (2*c->bw), ++ mh - (2*c->bw), 0); ++ mx += WIDTH(c); ++ } else { ++ /* stack clients are stacked horizontally */ ++ w = (m->ww - tx) / (n - i); ++ resize(c, m->wx + tx, m->wy, w - (2*c->bw), ++ m->wh - (2*c->bw), 0); ++ tx += WIDTH(c); ++ } ++} diff --git a/vildwm/dwm-fibonacci-20200418-c82db69.diff b/vildwm/dwm-fibonacci-20200418-c82db69.diff new file mode 100755 index 0000000..81bba7a --- /dev/null +++ b/vildwm/dwm-fibonacci-20200418-c82db69.diff @@ -0,0 +1,114 @@ +From ec9f55b6005cfa3b025b3d700c61af3ce539d057 Mon Sep 17 00:00:00 2001 +From: Niki Yoshiuchi +Date: Sat, 18 Apr 2020 09:55:26 -0700 +Subject: [PATCH] Adding the fibonacci layout patch + +--- + config.def.h | 5 ++++ + fibonacci.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 71 insertions(+) + create mode 100644 fibonacci.c + +diff --git a/config.def.h b/config.def.h +index 1c0b587..5708487 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -36,11 +36,14 @@ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] + static const int nmaster = 1; /* number of clients in master area */ + static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ + ++#include "fibonacci.c" + static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, ++ { "[@]", spiral }, ++ { "[\\]", dwindle }, + }; + + /* key definitions */ +@@ -76,6 +79,8 @@ static Key keys[] = { + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, ++ { MODKEY, XK_r, setlayout, {.v = &layouts[3]} }, ++ { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, +diff --git a/fibonacci.c b/fibonacci.c +new file mode 100644 +index 0000000..fce0a57 +--- /dev/null ++++ b/fibonacci.c +@@ -0,0 +1,66 @@ ++void ++fibonacci(Monitor *mon, int s) { ++ unsigned int i, n, nx, ny, nw, nh; ++ Client *c; ++ ++ for(n = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next), n++); ++ if(n == 0) ++ return; ++ ++ nx = mon->wx; ++ ny = 0; ++ nw = mon->ww; ++ nh = mon->wh; ++ ++ for(i = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next)) { ++ if((i % 2 && nh / 2 > 2 * c->bw) ++ || (!(i % 2) && nw / 2 > 2 * c->bw)) { ++ if(i < n - 1) { ++ if(i % 2) ++ nh /= 2; ++ else ++ nw /= 2; ++ if((i % 4) == 2 && !s) ++ nx += nw; ++ else if((i % 4) == 3 && !s) ++ ny += nh; ++ } ++ if((i % 4) == 0) { ++ if(s) ++ ny += nh; ++ else ++ ny -= nh; ++ } ++ else if((i % 4) == 1) ++ nx += nw; ++ else if((i % 4) == 2) ++ ny += nh; ++ else if((i % 4) == 3) { ++ if(s) ++ nx += nw; ++ else ++ nx -= nw; ++ } ++ if(i == 0) ++ { ++ if(n != 1) ++ nw = mon->ww * mon->mfact; ++ ny = mon->wy; ++ } ++ else if(i == 1) ++ nw = mon->ww - nw; ++ i++; ++ } ++ resize(c, nx, ny, nw - 2 * c->bw, nh - 2 * c->bw, False); ++ } ++} ++ ++void ++dwindle(Monitor *mon) { ++ fibonacci(mon, 1); ++} ++ ++void ++spiral(Monitor *mon) { ++ fibonacci(mon, 0); ++} +-- +2.20.1 + diff --git a/vildwm/dwm-swallow-6.3.diff b/vildwm/dwm-swallow-6.3.diff new file mode 100755 index 0000000..47586a0 --- /dev/null +++ b/vildwm/dwm-swallow-6.3.diff @@ -0,0 +1,412 @@ +From 0cf9a007511f7dfd7dd94171b172562ebac9b6d5 Mon Sep 17 00:00:00 2001 +From: Tom Schwindl +Date: Sat, 10 Sep 2022 12:51:09 +0200 +Subject: [PATCH] 6.3 swallow patch + +--- + config.def.h | 9 +- + config.mk | 3 +- + dwm.c | 235 +++++++++++++++++++++++++++++++++++++++++++++++++-- + 3 files changed, 237 insertions(+), 10 deletions(-) + +diff --git a/config.def.h b/config.def.h +index 061ad662f82a..0b2b8ffd30d5 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -3,6 +3,7 @@ + /* appearance */ + static const unsigned int borderpx = 1; /* border pixel of windows */ + static const unsigned int snap = 32; /* snap pixel */ ++static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ + static const int showbar = 1; /* 0 means no bar */ + static const int topbar = 1; /* 0 means bottom bar */ + static const char *fonts[] = { "monospace:size=10" }; +@@ -26,9 +27,11 @@ static const Rule rules[] = { + * WM_CLASS(STRING) = instance, class + * WM_NAME(STRING) = title + */ +- /* class instance title tags mask isfloating monitor */ +- { "Gimp", NULL, NULL, 0, 1, -1 }, +- { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, ++ /* class instance title tags mask isfloating isterminal noswallow monitor */ ++ { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, ++ { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 }, ++ { "St", NULL, NULL, 0, 0, 1, 0, -1 }, ++ { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */ + }; + + /* layout(s) */ +diff --git a/config.mk b/config.mk +index 81c493ef4aff..52d1ebf30bec 100644 +--- a/config.mk ++++ b/config.mk +@@ -20,10 +20,11 @@ FREETYPEINC = /usr/include/freetype2 + # OpenBSD (uncomment) + #FREETYPEINC = ${X11INC}/freetype2 + #MANPREFIX = ${PREFIX}/man ++#KVMLIB = -lkvm + + # includes and libs + INCS = -I${X11INC} -I${FREETYPEINC} +-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ++LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-res ${KVMLIB} + + # flags + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +diff --git a/dwm.c b/dwm.c +index e5efb6a22806..e68294b6b679 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -40,6 +40,12 @@ + #include + #endif /* XINERAMA */ + #include ++#include ++#include ++#ifdef __OpenBSD__ ++#include ++#include ++#endif /* __OpenBSD */ + + #include "drw.h" + #include "util.h" +@@ -92,9 +98,11 @@ struct Client { + int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; + int bw, oldbw; + unsigned int tags; +- int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; ++ int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, isterminal, noswallow; ++ pid_t pid; + Client *next; + Client *snext; ++ Client *swallowing; + Monitor *mon; + Window win; + }; +@@ -138,6 +146,8 @@ typedef struct { + const char *title; + unsigned int tags; + int isfloating; ++ int isterminal; ++ int noswallow; + int monitor; + } Rule; + +@@ -235,6 +245,12 @@ static int xerrordummy(Display *dpy, XErrorEvent *ee); + static int xerrorstart(Display *dpy, XErrorEvent *ee); + static void zoom(const Arg *arg); + ++static pid_t getparentprocess(pid_t p); ++static int isdescprocess(pid_t p, pid_t c); ++static Client *swallowingclient(Window w); ++static Client *termforwin(const Client *c); ++static pid_t winpid(Window w); ++ + /* variables */ + static const char broken[] = "broken"; + static char stext[256]; +@@ -269,6 +285,8 @@ static Drw *drw; + static Monitor *mons, *selmon; + static Window root, wmcheckwin; + ++static xcb_connection_t *xcon; ++ + /* configuration, allows nested code to access above variables */ + #include "config.h" + +@@ -298,6 +316,8 @@ applyrules(Client *c) + && (!r->class || strstr(class, r->class)) + && (!r->instance || strstr(instance, r->instance))) + { ++ c->isterminal = r->isterminal; ++ c->noswallow = r->noswallow; + c->isfloating = r->isfloating; + c->tags |= r->tags; + for (m = mons; m && m->num != r->monitor; m = m->next); +@@ -416,6 +436,53 @@ attachstack(Client *c) + c->mon->stack = c; + } + ++void ++swallow(Client *p, Client *c) ++{ ++ ++ if (c->noswallow || c->isterminal) ++ return; ++ if (c->noswallow && !swallowfloating && c->isfloating) ++ return; ++ ++ detach(c); ++ detachstack(c); ++ ++ setclientstate(c, WithdrawnState); ++ XUnmapWindow(dpy, p->win); ++ ++ p->swallowing = c; ++ c->mon = p->mon; ++ ++ Window w = p->win; ++ p->win = c->win; ++ c->win = w; ++ updatetitle(p); ++ XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h); ++ arrange(p->mon); ++ configure(p); ++ updateclientlist(); ++} ++ ++void ++unswallow(Client *c) ++{ ++ c->win = c->swallowing->win; ++ ++ free(c->swallowing); ++ c->swallowing = NULL; ++ ++ /* unfullscreen the client */ ++ setfullscreen(c, 0); ++ updatetitle(c); ++ arrange(c->mon); ++ XMapWindow(dpy, c->win); ++ XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); ++ setclientstate(c, NormalState); ++ focus(NULL); ++ arrange(c->mon); ++} ++ + void + buttonpress(XEvent *e) + { +@@ -656,6 +723,9 @@ destroynotify(XEvent *e) + + if ((c = wintoclient(ev->window))) + unmanage(c, 1); ++ ++ else if ((c = swallowingclient(ev->window))) ++ unmanage(c->swallowing, 1); + } + + void +@@ -1022,12 +1092,13 @@ killclient(const Arg *arg) + void + manage(Window w, XWindowAttributes *wa) + { +- Client *c, *t = NULL; ++ Client *c, *t = NULL, *term = NULL; + Window trans = None; + XWindowChanges wc; + + c = ecalloc(1, sizeof(Client)); + c->win = w; ++ c->pid = winpid(w); + /* geometry */ + c->x = c->oldx = wa->x; + c->y = c->oldy = wa->y; +@@ -1042,6 +1113,7 @@ manage(Window w, XWindowAttributes *wa) + } else { + c->mon = selmon; + applyrules(c); ++ term = termforwin(c); + } + + if (c->x + WIDTH(c) > c->mon->wx + c->mon->ww) +@@ -1076,6 +1148,8 @@ manage(Window w, XWindowAttributes *wa) + c->mon->sel = c; + arrange(c->mon); + XMapWindow(dpy, c->win); ++ if (term) ++ swallow(term, c); + focus(NULL); + } + +@@ -1763,6 +1837,20 @@ unmanage(Client *c, int destroyed) + Monitor *m = c->mon; + XWindowChanges wc; + ++ if (c->swallowing) { ++ unswallow(c); ++ return; ++ } ++ ++ Client *s = swallowingclient(c->win); ++ if (s) { ++ free(s->swallowing); ++ s->swallowing = NULL; ++ arrange(m); ++ focus(NULL); ++ return; ++ } ++ + detach(c); + detachstack(c); + if (!destroyed) { +@@ -1778,9 +1866,12 @@ unmanage(Client *c, int destroyed) + XUngrabServer(dpy); + } + free(c); +- focus(NULL); +- updateclientlist(); +- arrange(m); ++ ++ if (!s) { ++ arrange(m); ++ focus(NULL); ++ updateclientlist(); ++ } + } + + void +@@ -2044,6 +2135,136 @@ view(const Arg *arg) + arrange(selmon); + } + ++pid_t ++winpid(Window w) ++{ ++ ++ pid_t result = 0; ++ ++#ifdef __linux__ ++ xcb_res_client_id_spec_t spec = {0}; ++ spec.client = w; ++ spec.mask = XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID; ++ ++ xcb_generic_error_t *e = NULL; ++ xcb_res_query_client_ids_cookie_t c = xcb_res_query_client_ids(xcon, 1, &spec); ++ xcb_res_query_client_ids_reply_t *r = xcb_res_query_client_ids_reply(xcon, c, &e); ++ ++ if (!r) ++ return (pid_t)0; ++ ++ xcb_res_client_id_value_iterator_t i = xcb_res_query_client_ids_ids_iterator(r); ++ for (; i.rem; xcb_res_client_id_value_next(&i)) { ++ spec = i.data->spec; ++ if (spec.mask & XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID) { ++ uint32_t *t = xcb_res_client_id_value_value(i.data); ++ result = *t; ++ break; ++ } ++ } ++ ++ free(r); ++ ++ if (result == (pid_t)-1) ++ result = 0; ++ ++#endif /* __linux__ */ ++ ++#ifdef __OpenBSD__ ++ Atom type; ++ int format; ++ unsigned long len, bytes; ++ unsigned char *prop; ++ pid_t ret; ++ ++ if (XGetWindowProperty(dpy, w, XInternAtom(dpy, "_NET_WM_PID", 0), 0, 1, False, AnyPropertyType, &type, &format, &len, &bytes, &prop) != Success || !prop) ++ return 0; ++ ++ ret = *(pid_t*)prop; ++ XFree(prop); ++ result = ret; ++ ++#endif /* __OpenBSD__ */ ++ return result; ++} ++ ++pid_t ++getparentprocess(pid_t p) ++{ ++ unsigned int v = 0; ++ ++#ifdef __linux__ ++ FILE *f; ++ char buf[256]; ++ snprintf(buf, sizeof(buf) - 1, "/proc/%u/stat", (unsigned)p); ++ ++ if (!(f = fopen(buf, "r"))) ++ return 0; ++ ++ fscanf(f, "%*u %*s %*c %u", &v); ++ fclose(f); ++#endif /* __linux__*/ ++ ++#ifdef __OpenBSD__ ++ int n; ++ kvm_t *kd; ++ struct kinfo_proc *kp; ++ ++ kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, NULL); ++ if (!kd) ++ return 0; ++ ++ kp = kvm_getprocs(kd, KERN_PROC_PID, p, sizeof(*kp), &n); ++ v = kp->p_ppid; ++#endif /* __OpenBSD__ */ ++ ++ return (pid_t)v; ++} ++ ++int ++isdescprocess(pid_t p, pid_t c) ++{ ++ while (p != c && c != 0) ++ c = getparentprocess(c); ++ ++ return (int)c; ++} ++ ++Client * ++termforwin(const Client *w) ++{ ++ Client *c; ++ Monitor *m; ++ ++ if (!w->pid || w->isterminal) ++ return NULL; ++ ++ for (m = mons; m; m = m->next) { ++ for (c = m->clients; c; c = c->next) { ++ if (c->isterminal && !c->swallowing && c->pid && isdescprocess(c->pid, w->pid)) ++ return c; ++ } ++ } ++ ++ return NULL; ++} ++ ++Client * ++swallowingclient(Window w) ++{ ++ Client *c; ++ Monitor *m; ++ ++ for (m = mons; m; m = m->next) { ++ for (c = m->clients; c; c = c->next) { ++ if (c->swallowing && c->swallowing->win == w) ++ return c; ++ } ++ } ++ ++ return NULL; ++} ++ + Client * + wintoclient(Window w) + { +@@ -2133,10 +2354,12 @@ main(int argc, char *argv[]) + fputs("warning: no locale support\n", stderr); + if (!(dpy = XOpenDisplay(NULL))) + die("dwm: cannot open display"); ++ if (!(xcon = XGetXCBConnection(dpy))) ++ die("dwm: cannot get xcb connection\n"); + checkotherwm(); + setup(); + #ifdef __OpenBSD__ +- if (pledge("stdio rpath proc exec", NULL) == -1) ++ if (pledge("stdio rpath proc exec ps", NULL) == -1) + die("pledge"); + #endif /* __OpenBSD__ */ + scan(); +-- +2.37.2 + diff --git a/vildwm/dwm.1 b/vildwm/dwm.1 new file mode 100755 index 0000000..ddc8321 --- /dev/null +++ b/vildwm/dwm.1 @@ -0,0 +1,176 @@ +.TH DWM 1 dwm\-VERSION +.SH NAME +dwm \- dynamic window manager +.SH SYNOPSIS +.B dwm +.RB [ \-v ] +.SH DESCRIPTION +dwm is a dynamic window manager for X. It manages windows in tiled, monocle +and floating layouts. Either layout can be applied dynamically, optimising the +environment for the application in use and the task performed. +.P +In tiled layouts windows are managed in a master and stacking area. The master +area on the left contains one window by default, and the stacking area on the +right contains all other windows. The number of master area windows can be +adjusted from zero to an arbitrary number. In monocle layout all windows are +maximised to the screen size. In floating layout windows can be resized and +moved freely. Dialog windows are always managed floating, regardless of the +layout applied. +.P +Windows are grouped by tags. Each window can be tagged with one or multiple +tags. Selecting certain tags displays all windows with these tags. +.P +Each screen contains a small status bar which displays all available tags, the +layout, the title of the focused window, and the text read from the root window +name property, if the screen is focused. A floating window is indicated with an +empty square and a maximised floating window is indicated with a filled square +before the windows title. The selected tags are indicated with a different +color. The tags of the focused window are indicated with a filled square in the +top left corner. The tags which are applied to one or more windows are +indicated with an empty square in the top left corner. +.P +dwm draws a small border around windows to indicate the focus state. +.SH OPTIONS +.TP +.B \-v +prints version information to stderr, then exits. +.SH USAGE +.SS Status bar +.TP +.B X root window name +is read and displayed in the status text area. It can be set with the +.BR xsetroot (1) +command. +.TP +.B Button1 +click on a tag label to display all windows with that tag, click on the layout +label toggles between tiled and floating layout. +.TP +.B Button3 +click on a tag label adds/removes all windows with that tag to/from the view. +.TP +.B Mod1\-Button1 +click on a tag label applies that tag to the focused window. +.TP +.B Mod1\-Button3 +click on a tag label adds/removes that tag to/from the focused window. +.SS Keyboard commands +.TP +.B Mod1\-Shift\-Return +Start +.BR st(1). +.TP +.B Mod1\-p +Spawn +.BR dmenu(1) +for launching other programs. +.TP +.B Mod1\-, +Focus previous screen, if any. +.TP +.B Mod1\-. +Focus next screen, if any. +.TP +.B Mod1\-Shift\-, +Send focused window to previous screen, if any. +.TP +.B Mod1\-Shift\-. +Send focused window to next screen, if any. +.TP +.B Mod1\-b +Toggles bar on and off. +.TP +.B Mod1\-t +Sets tiled layout. +.TP +.B Mod1\-f +Sets floating layout. +.TP +.B Mod1\-m +Sets monocle layout. +.TP +.B Mod1\-space +Toggles between current and previous layout. +.TP +.B Mod1\-j +Focus next window. +.TP +.B Mod1\-k +Focus previous window. +.TP +.B Mod1\-i +Increase number of windows in master area. +.TP +.B Mod1\-d +Decrease number of windows in master area. +.TP +.B Mod1\-l +Increase master area size. +.TP +.B Mod1\-h +Decrease master area size. +.TP +.B Mod1\-Return +Zooms/cycles focused window to/from master area (tiled layouts only). +.TP +.B Mod1\-Shift\-c +Close focused window. +.TP +.B Mod1\-Shift\-space +Toggle focused window between tiled and floating state. +.TP +.B Mod1\-Tab +Toggles to the previously selected tags. +.TP +.B Mod1\-Shift\-[1..n] +Apply nth tag to focused window. +.TP +.B Mod1\-Shift\-0 +Apply all tags to focused window. +.TP +.B Mod1\-Control\-Shift\-[1..n] +Add/remove nth tag to/from focused window. +.TP +.B Mod1\-[1..n] +View all windows with nth tag. +.TP +.B Mod1\-0 +View all windows with any tag. +.TP +.B Mod1\-Control\-[1..n] +Add/remove all windows with nth tag to/from the view. +.TP +.B Mod1\-Shift\-q +Quit dwm. +.SS Mouse commands +.TP +.B Mod1\-Button1 +Move focused window while dragging. Tiled windows will be toggled to the floating state. +.TP +.B Mod1\-Button2 +Toggles focused window between floating and tiled state. +.TP +.B Mod1\-Button3 +Resize focused window while dragging. Tiled windows will be toggled to the floating state. +.SH CUSTOMIZATION +dwm is customized by creating a custom config.h and (re)compiling the source +code. This keeps it fast, secure and simple. +.SH SEE ALSO +.BR dmenu (1), +.BR st (1) +.SH ISSUES +Java applications which use the XToolkit/XAWT backend may draw grey windows +only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early +JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds +are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the +environment variable +.BR AWT_TOOLKIT=MToolkit +(to use the older Motif backend instead) or running +.B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D +or +.B wmname LG3D +(to pretend that a non-reparenting window manager is running that the +XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable +.BR _JAVA_AWT_WM_NONREPARENTING=1 . +.SH BUGS +Send all bug reports with a patch to hackers@suckless.org. diff --git a/vildwm/dwm.c b/vildwm/dwm.c new file mode 100755 index 0000000..8a7aec3 --- /dev/null +++ b/vildwm/dwm.c @@ -0,0 +1,2494 @@ +/* See LICENSE file for copyright and license details. + * + * dynamic window manager is designed like any other X client as well. It is + * driven through handling X events. In contrast to other X clients, a window + * manager selects for SubstructureRedirectMask on the root window, to receive + * events about window (dis-)appearance. Only one X connection at a time is + * allowed to select for this event mask. + * + * The event handlers of dwm are organized in an array which is accessed + * whenever a new event has been fetched. This allows event dispatching + * in O(1) time. + * + * Each child of the root window is called a client, except windows which have + * set the override_redirect flag. Clients are organized in a linked client + * list on each monitor, the focus history is remembered through a stack list + * on each monitor. Each client contains a bit array to indicate the tags of a + * client. + * + * Keys and tagging rules are organized as arrays and defined in config.h. + * + * To understand everything else, start reading main(). + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef XINERAMA +#include +#endif /* XINERAMA */ +#include +#include +#include +#ifdef __OpenBSD__ +#include +#include +#endif /* __OpenBSD */ + +#include "drw.h" +#include "util.h" + +/* macros */ +#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) +#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) +#define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \ + * MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy))) +#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) +#define LENGTH(X) (sizeof X / sizeof X[0]) +#define MOUSEMASK (BUTTONMASK|PointerMotionMask) +#define WIDTH(X) ((X)->w + 2 * (X)->bw) +#define HEIGHT(X) ((X)->h + 2 * (X)->bw) +#define TAGMASK ((1 << LENGTH(tags)) - 1) +#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) + +/* enums */ +enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ +enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { NetSupported, NetWMName, NetWMState, NetWMCheck, + NetWMFullscreen, NetActiveWindow, NetWMWindowType, + NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ +enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */ +enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, + ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ + +typedef union { + int i; + unsigned int ui; + float f; + const void *v; +} Arg; + +typedef struct { + unsigned int click; + unsigned int mask; + unsigned int button; + void (*func)(const Arg *arg); + const Arg arg; +} Button; + +typedef struct Monitor Monitor; +typedef struct Client Client; +struct Client { + char name[256]; + float mina, maxa; + int x, y, w, h; + int oldx, oldy, oldw, oldh; + int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; + int bw, oldbw; + unsigned int tags; + int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, isterminal, noswallow; + pid_t pid; + Client *next; + Client *snext; + Client *swallowing; + Monitor *mon; + Window win; +}; + +typedef struct { + unsigned int mod; + KeySym keysym; + void (*func)(const Arg *); + const Arg arg; +} Key; + +typedef struct { + const char *symbol; + void (*arrange)(Monitor *); +} Layout; + +struct Monitor { + char ltsymbol[16]; + float mfact; + int nmaster; + int num; + int by; /* bar geometry */ + int mx, my, mw, mh; /* screen size */ + int wx, wy, ww, wh; /* window area */ + unsigned int seltags; + unsigned int sellt; + unsigned int tagset[2]; + int showbar; + int topbar; + Client *clients; + Client *sel; + Client *stack; + Monitor *next; + Window barwin; + const Layout *lt[2]; +}; + +typedef struct { + const char *class; + const char *instance; + const char *title; + unsigned int tags; + int isfloating; + int isterminal; + int noswallow; + int monitor; +} Rule; + +/* function declarations */ +static void applyrules(Client *c); +static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); +static void arrange(Monitor *m); +static void arrangemon(Monitor *m); +static void attach(Client *c); +static void attachstack(Client *c); +static void buttonpress(XEvent *e); +static void checkotherwm(void); +static void cleanup(void); +static void cleanupmon(Monitor *mon); +static void clientmessage(XEvent *e); +static void configure(Client *c); +static void configurenotify(XEvent *e); +static void configurerequest(XEvent *e); +static Monitor *createmon(void); +static void destroynotify(XEvent *e); +static void detach(Client *c); +static void detachstack(Client *c); +static Monitor *dirtomon(int dir); +static void drawbar(Monitor *m); +static void drawbars(void); +static void enternotify(XEvent *e); +static void expose(XEvent *e); +static void focus(Client *c); +static void focusin(XEvent *e); +static void focusmon(const Arg *arg); +static void focusstack(const Arg *arg); +static Atom getatomprop(Client *c, Atom prop); +static int getrootptr(int *x, int *y); +static long getstate(Window w); +static int gettextprop(Window w, Atom atom, char *text, unsigned int size); +static void grabbuttons(Client *c, int focused); +static void grabkeys(void); +static void incnmaster(const Arg *arg); +static void keypress(XEvent *e); +static void killclient(const Arg *arg); +static void manage(Window w, XWindowAttributes *wa); +static void mappingnotify(XEvent *e); +static void maprequest(XEvent *e); +static void monocle(Monitor *m); +static void motionnotify(XEvent *e); +static void movemouse(const Arg *arg); +static Client *nexttiled(Client *c); +static void pop(Client *c); +static void propertynotify(XEvent *e); +static void quit(const Arg *arg); +static Monitor *recttomon(int x, int y, int w, int h); +static void resize(Client *c, int x, int y, int w, int h, int interact); +static void resizeclient(Client *c, int x, int y, int w, int h); +static void resizemouse(const Arg *arg); +static void restack(Monitor *m); +static void run(void); +static void scan(void); +static int sendevent(Client *c, Atom proto); +static void sendmon(Client *c, Monitor *m); +static void setclientstate(Client *c, long state); +static void setfocus(Client *c); +static void setfullscreen(Client *c, int fullscreen); +static void setlayout(const Arg *arg); +static void setmfact(const Arg *arg); +static void setup(void); +static void seturgent(Client *c, int urg); +static void showhide(Client *c); +static void spawn(const Arg *arg); +static void tag(const Arg *arg); +static void tagmon(const Arg *arg); +static void tile(Monitor *m); +static void togglebar(const Arg *arg); +static void togglefloating(const Arg *arg); +static void toggletag(const Arg *arg); +static void toggleview(const Arg *arg); +static void unfocus(Client *c, int setfocus); +static void unmanage(Client *c, int destroyed); +static void unmapnotify(XEvent *e); +static void updatebarpos(Monitor *m); +static void updatebars(void); +static void updateclientlist(void); +static int updategeom(void); +static void updatenumlockmask(void); +static void updatesizehints(Client *c); +static void updatestatus(void); +static void updatetitle(Client *c); +static void updatewindowtype(Client *c); +static void updatewmhints(Client *c); +static void view(const Arg *arg); +static Client *wintoclient(Window w); +static Monitor *wintomon(Window w); +static int xerror(Display *dpy, XErrorEvent *ee); +static int xerrordummy(Display *dpy, XErrorEvent *ee); +static int xerrorstart(Display *dpy, XErrorEvent *ee); +static void zoom(const Arg *arg); +static void centeredmaster(Monitor *m); +static void centeredfloatingmaster(Monitor *m); + +static pid_t getparentprocess(pid_t p); +static int isdescprocess(pid_t p, pid_t c); +static Client *swallowingclient(Window w); +static Client *termforwin(const Client *c); +static pid_t winpid(Window w); + +/* variables */ +static const char broken[] = "broken"; +static char stext[256]; +static int screen; +static int sw, sh; /* X display screen geometry width, height */ +static int bh; /* bar height */ +static int lrpad; /* sum of left and right padding for text */ +static int (*xerrorxlib)(Display *, XErrorEvent *); +static unsigned int numlockmask = 0; +static void (*handler[LASTEvent]) (XEvent *) = { + [ButtonPress] = buttonpress, + [ClientMessage] = clientmessage, + [ConfigureRequest] = configurerequest, + [ConfigureNotify] = configurenotify, + [DestroyNotify] = destroynotify, + [EnterNotify] = enternotify, + [Expose] = expose, + [FocusIn] = focusin, + [KeyPress] = keypress, + [MappingNotify] = mappingnotify, + [MapRequest] = maprequest, + [MotionNotify] = motionnotify, + [PropertyNotify] = propertynotify, + [UnmapNotify] = unmapnotify +}; +static Atom wmatom[WMLast], netatom[NetLast]; +static int running = 1; +static Cur *cursor[CurLast]; +static Clr **scheme; +static Display *dpy; +static Drw *drw; +static Monitor *mons, *selmon; +static Window root, wmcheckwin; + +static xcb_connection_t *xcon; + +/* configuration, allows nested code to access above variables */ +#include "config.h" + +/* compile-time check if all tags fit into an unsigned int bit array. */ +struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; + +/* function implementations */ +void +applyrules(Client *c) +{ + const char *class, *instance; + unsigned int i; + const Rule *r; + Monitor *m; + XClassHint ch = { NULL, NULL }; + + /* rule matching */ + c->isfloating = 0; + c->tags = 0; + XGetClassHint(dpy, c->win, &ch); + class = ch.res_class ? ch.res_class : broken; + instance = ch.res_name ? ch.res_name : broken; + + for (i = 0; i < LENGTH(rules); i++) { + r = &rules[i]; + if ((!r->title || strstr(c->name, r->title)) + && (!r->class || strstr(class, r->class)) + && (!r->instance || strstr(instance, r->instance))) + { + c->isterminal = r->isterminal; + c->noswallow = r->noswallow; + c->isfloating = r->isfloating; + c->tags |= r->tags; + for (m = mons; m && m->num != r->monitor; m = m->next); + if (m) + c->mon = m; + } + } + if (ch.res_class) + XFree(ch.res_class); + if (ch.res_name) + XFree(ch.res_name); + c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags]; +} + +int +applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact) +{ + int baseismin; + Monitor *m = c->mon; + + /* set minimum possible */ + *w = MAX(1, *w); + *h = MAX(1, *h); + if (interact) { + if (*x > sw) + *x = sw - WIDTH(c); + if (*y > sh) + *y = sh - HEIGHT(c); + if (*x + *w + 2 * c->bw < 0) + *x = 0; + if (*y + *h + 2 * c->bw < 0) + *y = 0; + } else { + if (*x >= m->wx + m->ww) + *x = m->wx + m->ww - WIDTH(c); + if (*y >= m->wy + m->wh) + *y = m->wy + m->wh - HEIGHT(c); + if (*x + *w + 2 * c->bw <= m->wx) + *x = m->wx; + if (*y + *h + 2 * c->bw <= m->wy) + *y = m->wy; + } + if (*h < bh) + *h = bh; + if (*w < bh) + *w = bh; + if (resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) { + if (!c->hintsvalid) + updatesizehints(c); + /* see last two sentences in ICCCM 4.1.2.3 */ + baseismin = c->basew == c->minw && c->baseh == c->minh; + if (!baseismin) { /* temporarily remove base dimensions */ + *w -= c->basew; + *h -= c->baseh; + } + /* adjust for aspect limits */ + if (c->mina > 0 && c->maxa > 0) { + if (c->maxa < (float)*w / *h) + *w = *h * c->maxa + 0.5; + else if (c->mina < (float)*h / *w) + *h = *w * c->mina + 0.5; + } + if (baseismin) { /* increment calculation requires this */ + *w -= c->basew; + *h -= c->baseh; + } + /* adjust for increment value */ + if (c->incw) + *w -= *w % c->incw; + if (c->inch) + *h -= *h % c->inch; + /* restore base dimensions */ + *w = MAX(*w + c->basew, c->minw); + *h = MAX(*h + c->baseh, c->minh); + if (c->maxw) + *w = MIN(*w, c->maxw); + if (c->maxh) + *h = MIN(*h, c->maxh); + } + return *x != c->x || *y != c->y || *w != c->w || *h != c->h; +} + +void +arrange(Monitor *m) +{ + if (m) + showhide(m->stack); + else for (m = mons; m; m = m->next) + showhide(m->stack); + if (m) { + arrangemon(m); + restack(m); + } else for (m = mons; m; m = m->next) + arrangemon(m); +} + +void +arrangemon(Monitor *m) +{ + strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol); + if (m->lt[m->sellt]->arrange) + m->lt[m->sellt]->arrange(m); +} + +void +attach(Client *c) +{ + c->next = c->mon->clients; + c->mon->clients = c; +} + +void +attachstack(Client *c) +{ + c->snext = c->mon->stack; + c->mon->stack = c; +} + +void +swallow(Client *p, Client *c) +{ + + if (c->noswallow || c->isterminal) + return; + if (c->noswallow && !swallowfloating && c->isfloating) + return; + + detach(c); + detachstack(c); + + setclientstate(c, WithdrawnState); + XUnmapWindow(dpy, p->win); + + p->swallowing = c; + c->mon = p->mon; + + Window w = p->win; + p->win = c->win; + c->win = w; + updatetitle(p); + XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h); + arrange(p->mon); + configure(p); + updateclientlist(); +} + +void +unswallow(Client *c) +{ + c->win = c->swallowing->win; + + free(c->swallowing); + c->swallowing = NULL; + + /* unfullscreen the client */ + setfullscreen(c, 0); + updatetitle(c); + arrange(c->mon); + XMapWindow(dpy, c->win); + XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); + setclientstate(c, NormalState); + focus(NULL); + arrange(c->mon); +} + +void +buttonpress(XEvent *e) +{ + unsigned int i, x, click; + Arg arg = {0}; + Client *c; + Monitor *m; + XButtonPressedEvent *ev = &e->xbutton; + + click = ClkRootWin; + /* focus monitor if necessary */ + if ((m = wintomon(ev->window)) && m != selmon) { + unfocus(selmon->sel, 1); + selmon = m; + focus(NULL); + } + if (ev->window == selmon->barwin) { + i = x = 0; + do + x += TEXTW(tags[i]); + while (ev->x >= x && ++i < LENGTH(tags)); + if (i < LENGTH(tags)) { + click = ClkTagBar; + arg.ui = 1 << i; + } else if (ev->x < x + TEXTW(selmon->ltsymbol)) + click = ClkLtSymbol; + else if (ev->x > selmon->ww - (int)TEXTW(stext)) + click = ClkStatusText; + else + click = ClkWinTitle; + } else if ((c = wintoclient(ev->window))) { + focus(c); + restack(selmon); + XAllowEvents(dpy, ReplayPointer, CurrentTime); + click = ClkClientWin; + } + for (i = 0; i < LENGTH(buttons); i++) + if (click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button + && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state)) + buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg); +} + +void +checkotherwm(void) +{ + xerrorxlib = XSetErrorHandler(xerrorstart); + /* this causes an error if some other window manager is running */ + XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask); + XSync(dpy, False); + XSetErrorHandler(xerror); + XSync(dpy, False); +} + +void +cleanup(void) +{ + Arg a = {.ui = ~0}; + Layout foo = { "", NULL }; + Monitor *m; + size_t i; + + view(&a); + selmon->lt[selmon->sellt] = &foo; + for (m = mons; m; m = m->next) + while (m->stack) + unmanage(m->stack, 0); + XUngrabKey(dpy, AnyKey, AnyModifier, root); + while (mons) + cleanupmon(mons); + for (i = 0; i < CurLast; i++) + drw_cur_free(drw, cursor[i]); + for (i = 0; i < LENGTH(colors); i++) + free(scheme[i]); + free(scheme); + XDestroyWindow(dpy, wmcheckwin); + drw_free(drw); + XSync(dpy, False); + XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); + XDeleteProperty(dpy, root, netatom[NetActiveWindow]); +} + +void +cleanupmon(Monitor *mon) +{ + Monitor *m; + + if (mon == mons) + mons = mons->next; + else { + for (m = mons; m && m->next != mon; m = m->next); + m->next = mon->next; + } + XUnmapWindow(dpy, mon->barwin); + XDestroyWindow(dpy, mon->barwin); + free(mon); +} + +void +clientmessage(XEvent *e) +{ + XClientMessageEvent *cme = &e->xclient; + Client *c = wintoclient(cme->window); + + if (!c) + return; + if (cme->message_type == netatom[NetWMState]) { + if (cme->data.l[1] == netatom[NetWMFullscreen] + || cme->data.l[2] == netatom[NetWMFullscreen]) + setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */ + || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen))); + } else if (cme->message_type == netatom[NetActiveWindow]) { + if (c != selmon->sel && !c->isurgent) + seturgent(c, 1); + } +} + +void +configure(Client *c) +{ + XConfigureEvent ce; + + ce.type = ConfigureNotify; + ce.display = dpy; + ce.event = c->win; + ce.window = c->win; + ce.x = c->x; + ce.y = c->y; + ce.width = c->w; + ce.height = c->h; + ce.border_width = c->bw; + ce.above = None; + ce.override_redirect = False; + XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce); +} + +void +configurenotify(XEvent *e) +{ + Monitor *m; + Client *c; + XConfigureEvent *ev = &e->xconfigure; + int dirty; + + /* TODO: updategeom handling sucks, needs to be simplified */ + if (ev->window == root) { + dirty = (sw != ev->width || sh != ev->height); + sw = ev->width; + sh = ev->height; + if (updategeom() || dirty) { + drw_resize(drw, sw, bh); + updatebars(); + for (m = mons; m; m = m->next) { + for (c = m->clients; c; c = c->next) + if (c->isfullscreen) + resizeclient(c, m->mx, m->my, m->mw, m->mh); + XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); + } + focus(NULL); + arrange(NULL); + } + } +} + +void +configurerequest(XEvent *e) +{ + Client *c; + Monitor *m; + XConfigureRequestEvent *ev = &e->xconfigurerequest; + XWindowChanges wc; + + if ((c = wintoclient(ev->window))) { + if (ev->value_mask & CWBorderWidth) + c->bw = ev->border_width; + else if (c->isfloating || !selmon->lt[selmon->sellt]->arrange) { + m = c->mon; + if (ev->value_mask & CWX) { + c->oldx = c->x; + c->x = m->mx + ev->x; + } + if (ev->value_mask & CWY) { + c->oldy = c->y; + c->y = m->my + ev->y; + } + if (ev->value_mask & CWWidth) { + c->oldw = c->w; + c->w = ev->width; + } + if (ev->value_mask & CWHeight) { + c->oldh = c->h; + c->h = ev->height; + } + if ((c->x + c->w) > m->mx + m->mw && c->isfloating) + c->x = m->mx + (m->mw / 2 - WIDTH(c) / 2); /* center in x direction */ + if ((c->y + c->h) > m->my + m->mh && c->isfloating) + c->y = m->my + (m->mh / 2 - HEIGHT(c) / 2); /* center in y direction */ + if ((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight))) + configure(c); + if (ISVISIBLE(c)) + XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); + } else + configure(c); + } else { + wc.x = ev->x; + wc.y = ev->y; + wc.width = ev->width; + wc.height = ev->height; + wc.border_width = ev->border_width; + wc.sibling = ev->above; + wc.stack_mode = ev->detail; + XConfigureWindow(dpy, ev->window, ev->value_mask, &wc); + } + XSync(dpy, False); +} + +Monitor * +createmon(void) +{ + Monitor *m; + + m = ecalloc(1, sizeof(Monitor)); + m->tagset[0] = m->tagset[1] = 1; + m->mfact = mfact; + m->nmaster = nmaster; + m->showbar = showbar; + m->topbar = topbar; + m->lt[0] = &layouts[0]; + m->lt[1] = &layouts[1 % LENGTH(layouts)]; + strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol); + return m; +} + +void +destroynotify(XEvent *e) +{ + Client *c; + XDestroyWindowEvent *ev = &e->xdestroywindow; + + if ((c = wintoclient(ev->window))) + unmanage(c, 1); + + else if ((c = swallowingclient(ev->window))) + unmanage(c->swallowing, 1); +} + +void +detach(Client *c) +{ + Client **tc; + + for (tc = &c->mon->clients; *tc && *tc != c; tc = &(*tc)->next); + *tc = c->next; +} + +void +detachstack(Client *c) +{ + Client **tc, *t; + + for (tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext); + *tc = c->snext; + + if (c == c->mon->sel) { + for (t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext); + c->mon->sel = t; + } +} + +Monitor * +dirtomon(int dir) +{ + Monitor *m = NULL; + + if (dir > 0) { + if (!(m = selmon->next)) + m = mons; + } else if (selmon == mons) + for (m = mons; m->next; m = m->next); + else + for (m = mons; m->next != selmon; m = m->next); + return m; +} + +void +drawbar(Monitor *m) +{ + int x, w, tw = 0; + int boxs = drw->fonts->h / 9; + int boxw = drw->fonts->h / 6 + 2; + unsigned int i, occ = 0, urg = 0; + Client *c; + + if (!m->showbar) + return; + + /* draw status first so it can be overdrawn by tags later */ + if (m == selmon) { /* status is only drawn on selected monitor */ + drw_setscheme(drw, scheme[SchemeNorm]); + tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ + drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0); + } + + for (c = m->clients; c; c = c->next) { + occ |= c->tags; + if (c->isurgent) + urg |= c->tags; + } + x = 0; + for (i = 0; i < LENGTH(tags); i++) { + w = TEXTW(tags[i]); + drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + if (occ & 1 << i) + drw_rect(drw, x + boxs, boxs, boxw, boxw, + m == selmon && selmon->sel && selmon->sel->tags & 1 << i, + urg & 1 << i); + x += w; + } + w = TEXTW(m->ltsymbol); + drw_setscheme(drw, scheme[SchemeNorm]); + x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); + + if ((w = m->ww - tw - x) > bh) { + if (m->sel) { + drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); + if (m->sel->isfloating) + drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); + } else { + drw_setscheme(drw, scheme[SchemeNorm]); + drw_rect(drw, x, 0, w, bh, 1, 1); + } + } + drw_map(drw, m->barwin, 0, 0, m->ww, bh); +} + +void +drawbars(void) +{ + Monitor *m; + + for (m = mons; m; m = m->next) + drawbar(m); +} + +void +enternotify(XEvent *e) +{ + Client *c; + Monitor *m; + XCrossingEvent *ev = &e->xcrossing; + + if ((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root) + return; + c = wintoclient(ev->window); + m = c ? c->mon : wintomon(ev->window); + if (m != selmon) { + unfocus(selmon->sel, 1); + selmon = m; + } else if (!c || c == selmon->sel) + return; + focus(c); +} + +void +expose(XEvent *e) +{ + Monitor *m; + XExposeEvent *ev = &e->xexpose; + + if (ev->count == 0 && (m = wintomon(ev->window))) + drawbar(m); +} + +void +focus(Client *c) +{ + if (!c || !ISVISIBLE(c)) + for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); + if (selmon->sel && selmon->sel != c) + unfocus(selmon->sel, 0); + if (c) { + if (c->mon != selmon) + selmon = c->mon; + if (c->isurgent) + seturgent(c, 0); + detachstack(c); + attachstack(c); + grabbuttons(c, 1); + XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); + setfocus(c); + } else { + XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + XDeleteProperty(dpy, root, netatom[NetActiveWindow]); + } + selmon->sel = c; + drawbars(); +} + +/* there are some broken focus acquiring clients needing extra handling */ +void +focusin(XEvent *e) +{ + XFocusChangeEvent *ev = &e->xfocus; + + if (selmon->sel && ev->window != selmon->sel->win) + setfocus(selmon->sel); +} + +void +focusmon(const Arg *arg) +{ + Monitor *m; + + if (!mons->next) + return; + if ((m = dirtomon(arg->i)) == selmon) + return; + unfocus(selmon->sel, 0); + selmon = m; + focus(NULL); +} + +void +focusstack(const Arg *arg) +{ + Client *c = NULL, *i; + + if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) + return; + if (arg->i > 0) { + for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); + if (!c) + for (c = selmon->clients; c && !ISVISIBLE(c); c = c->next); + } else { + for (i = selmon->clients; i != selmon->sel; i = i->next) + if (ISVISIBLE(i)) + c = i; + if (!c) + for (; i; i = i->next) + if (ISVISIBLE(i)) + c = i; + } + if (c) { + focus(c); + restack(selmon); + } +} + +Atom +getatomprop(Client *c, Atom prop) +{ + int di; + unsigned long dl; + unsigned char *p = NULL; + Atom da, atom = None; + + if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM, + &da, &di, &dl, &dl, &p) == Success && p) { + atom = *(Atom *)p; + XFree(p); + } + return atom; +} + +int +getrootptr(int *x, int *y) +{ + int di; + unsigned int dui; + Window dummy; + + return XQueryPointer(dpy, root, &dummy, &dummy, x, y, &di, &di, &dui); +} + +long +getstate(Window w) +{ + int format; + long result = -1; + unsigned char *p = NULL; + unsigned long n, extra; + Atom real; + + if (XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState], + &real, &format, &n, &extra, (unsigned char **)&p) != Success) + return -1; + if (n != 0) + result = *p; + XFree(p); + return result; +} + +int +gettextprop(Window w, Atom atom, char *text, unsigned int size) +{ + char **list = NULL; + int n; + XTextProperty name; + + if (!text || size == 0) + return 0; + text[0] = '\0'; + if (!XGetTextProperty(dpy, w, &name, atom) || !name.nitems) + return 0; + if (name.encoding == XA_STRING) { + strncpy(text, (char *)name.value, size - 1); + } else if (XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success && n > 0 && *list) { + strncpy(text, *list, size - 1); + XFreeStringList(list); + } + text[size - 1] = '\0'; + XFree(name.value); + return 1; +} + +void +grabbuttons(Client *c, int focused) +{ + updatenumlockmask(); + { + unsigned int i, j; + unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; + XUngrabButton(dpy, AnyButton, AnyModifier, c->win); + if (!focused) + XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, + BUTTONMASK, GrabModeSync, GrabModeSync, None, None); + for (i = 0; i < LENGTH(buttons); i++) + if (buttons[i].click == ClkClientWin) + for (j = 0; j < LENGTH(modifiers); j++) + XGrabButton(dpy, buttons[i].button, + buttons[i].mask | modifiers[j], + c->win, False, BUTTONMASK, + GrabModeAsync, GrabModeSync, None, None); + } +} + +void +grabkeys(void) +{ + updatenumlockmask(); + { + unsigned int i, j, k; + unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; + int start, end, skip; + KeySym *syms; + + XUngrabKey(dpy, AnyKey, AnyModifier, root); + XDisplayKeycodes(dpy, &start, &end); + syms = XGetKeyboardMapping(dpy, start, end - start + 1, &skip); + if (!syms) + return; + for (k = start; k <= end; k++) + for (i = 0; i < LENGTH(keys); i++) + /* skip modifier codes, we do that ourselves */ + if (keys[i].keysym == syms[(k - start) * skip]) + for (j = 0; j < LENGTH(modifiers); j++) + XGrabKey(dpy, k, + keys[i].mod | modifiers[j], + root, True, + GrabModeAsync, GrabModeAsync); + XFree(syms); + } +} + +void +incnmaster(const Arg *arg) +{ + selmon->nmaster = MAX(selmon->nmaster + arg->i, 0); + arrange(selmon); +} + +#ifdef XINERAMA +static int +isuniquegeom(XineramaScreenInfo *unique, size_t n, XineramaScreenInfo *info) +{ + while (n--) + if (unique[n].x_org == info->x_org && unique[n].y_org == info->y_org + && unique[n].width == info->width && unique[n].height == info->height) + return 0; + return 1; +} +#endif /* XINERAMA */ + +void +keypress(XEvent *e) +{ + unsigned int i; + KeySym keysym; + XKeyEvent *ev; + + ev = &e->xkey; + keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); + for (i = 0; i < LENGTH(keys); i++) + if (keysym == keys[i].keysym + && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state) + && keys[i].func) + keys[i].func(&(keys[i].arg)); +} + +void +killclient(const Arg *arg) +{ + if (!selmon->sel) + return; + if (!sendevent(selmon->sel, wmatom[WMDelete])) { + XGrabServer(dpy); + XSetErrorHandler(xerrordummy); + XSetCloseDownMode(dpy, DestroyAll); + XKillClient(dpy, selmon->sel->win); + XSync(dpy, False); + XSetErrorHandler(xerror); + XUngrabServer(dpy); + } +} + +void +manage(Window w, XWindowAttributes *wa) +{ + Client *c, *t = NULL, *term = NULL; + Window trans = None; + XWindowChanges wc; + + c = ecalloc(1, sizeof(Client)); + c->win = w; + c->pid = winpid(w); + /* geometry */ + c->x = c->oldx = wa->x; + c->y = c->oldy = wa->y; + c->w = c->oldw = wa->width; + c->h = c->oldh = wa->height; + c->oldbw = wa->border_width; + + updatetitle(c); + if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) { + c->mon = t->mon; + c->tags = t->tags; + } else { + c->mon = selmon; + applyrules(c); + term = termforwin(c); + } + + if (c->x + WIDTH(c) > c->mon->wx + c->mon->ww) + c->x = c->mon->wx + c->mon->ww - WIDTH(c); + if (c->y + HEIGHT(c) > c->mon->wy + c->mon->wh) + c->y = c->mon->wy + c->mon->wh - HEIGHT(c); + c->x = MAX(c->x, c->mon->wx); + c->y = MAX(c->y, c->mon->wy); + c->bw = borderpx; + + wc.border_width = c->bw; + XConfigureWindow(dpy, w, CWBorderWidth, &wc); + XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel); + configure(c); /* propagates border_width, if size doesn't change */ + updatewindowtype(c); + updatesizehints(c); + updatewmhints(c); + XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); + grabbuttons(c, 0); + if (!c->isfloating) + c->isfloating = c->oldstate = trans != None || c->isfixed; + if (c->isfloating) + XRaiseWindow(dpy, c->win); + attach(c); + attachstack(c); + XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend, + (unsigned char *) &(c->win), 1); + XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ + setclientstate(c, NormalState); + if (c->mon == selmon) + unfocus(selmon->sel, 0); + c->mon->sel = c; + arrange(c->mon); + XMapWindow(dpy, c->win); + if (term) + swallow(term, c); + focus(NULL); +} + +void +mappingnotify(XEvent *e) +{ + XMappingEvent *ev = &e->xmapping; + + XRefreshKeyboardMapping(ev); + if (ev->request == MappingKeyboard) + grabkeys(); +} + +void +maprequest(XEvent *e) +{ + static XWindowAttributes wa; + XMapRequestEvent *ev = &e->xmaprequest; + + if (!XGetWindowAttributes(dpy, ev->window, &wa) || wa.override_redirect) + return; + if (!wintoclient(ev->window)) + manage(ev->window, &wa); +} + +void +monocle(Monitor *m) +{ + unsigned int n = 0; + Client *c; + + for (c = m->clients; c; c = c->next) + if (ISVISIBLE(c)) + n++; + if (n > 0) /* override layout symbol */ + snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); + for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) + resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); +} + +void +motionnotify(XEvent *e) +{ + static Monitor *mon = NULL; + Monitor *m; + XMotionEvent *ev = &e->xmotion; + + if (ev->window != root) + return; + if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) { + unfocus(selmon->sel, 1); + selmon = m; + focus(NULL); + } + mon = m; +} + +void +movemouse(const Arg *arg) +{ + int x, y, ocx, ocy, nx, ny; + Client *c; + Monitor *m; + XEvent ev; + Time lasttime = 0; + + if (!(c = selmon->sel)) + return; + if (c->isfullscreen) /* no support moving fullscreen windows by mouse */ + return; + restack(selmon); + ocx = c->x; + ocy = c->y; + if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, + None, cursor[CurMove]->cursor, CurrentTime) != GrabSuccess) + return; + if (!getrootptr(&x, &y)) + return; + do { + XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); + switch(ev.type) { + case ConfigureRequest: + case Expose: + case MapRequest: + handler[ev.type](&ev); + break; + case MotionNotify: + if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + continue; + lasttime = ev.xmotion.time; + + nx = ocx + (ev.xmotion.x - x); + ny = ocy + (ev.xmotion.y - y); + if (abs(selmon->wx - nx) < snap) + nx = selmon->wx; + else if (abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap) + nx = selmon->wx + selmon->ww - WIDTH(c); + if (abs(selmon->wy - ny) < snap) + ny = selmon->wy; + else if (abs((selmon->wy + selmon->wh) - (ny + HEIGHT(c))) < snap) + ny = selmon->wy + selmon->wh - HEIGHT(c); + if (!c->isfloating && selmon->lt[selmon->sellt]->arrange + && (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) + togglefloating(NULL); + if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) + resize(c, nx, ny, c->w, c->h, 1); + break; + } + } while (ev.type != ButtonRelease); + XUngrabPointer(dpy, CurrentTime); + if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { + sendmon(c, m); + selmon = m; + focus(NULL); + } +} + +Client * +nexttiled(Client *c) +{ + for (; c && (c->isfloating || !ISVISIBLE(c)); c = c->next); + return c; +} + +void +pop(Client *c) +{ + detach(c); + attach(c); + focus(c); + arrange(c->mon); +} + +void +propertynotify(XEvent *e) +{ + Client *c; + Window trans; + XPropertyEvent *ev = &e->xproperty; + + if ((ev->window == root) && (ev->atom == XA_WM_NAME)) + updatestatus(); + else if (ev->state == PropertyDelete) + return; /* ignore */ + else if ((c = wintoclient(ev->window))) { + switch(ev->atom) { + default: break; + case XA_WM_TRANSIENT_FOR: + if (!c->isfloating && (XGetTransientForHint(dpy, c->win, &trans)) && + (c->isfloating = (wintoclient(trans)) != NULL)) + arrange(c->mon); + break; + case XA_WM_NORMAL_HINTS: + c->hintsvalid = 0; + break; + case XA_WM_HINTS: + updatewmhints(c); + drawbars(); + break; + } + if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { + updatetitle(c); + if (c == c->mon->sel) + drawbar(c->mon); + } + if (ev->atom == netatom[NetWMWindowType]) + updatewindowtype(c); + } +} + +void +quit(const Arg *arg) +{ + running = 0; +} + +Monitor * +recttomon(int x, int y, int w, int h) +{ + Monitor *m, *r = selmon; + int a, area = 0; + + for (m = mons; m; m = m->next) + if ((a = INTERSECT(x, y, w, h, m)) > area) { + area = a; + r = m; + } + return r; +} + +void +resize(Client *c, int x, int y, int w, int h, int interact) +{ + if (applysizehints(c, &x, &y, &w, &h, interact)) + resizeclient(c, x, y, w, h); +} + +void +resizeclient(Client *c, int x, int y, int w, int h) +{ + XWindowChanges wc; + + c->oldx = c->x; c->x = wc.x = x; + c->oldy = c->y; c->y = wc.y = y; + c->oldw = c->w; c->w = wc.width = w; + c->oldh = c->h; c->h = wc.height = h; + wc.border_width = c->bw; + XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); + configure(c); + XSync(dpy, False); +} + +void +resizemouse(const Arg *arg) +{ + int ocx, ocy, nw, nh; + Client *c; + Monitor *m; + XEvent ev; + Time lasttime = 0; + + if (!(c = selmon->sel)) + return; + if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */ + return; + restack(selmon); + ocx = c->x; + ocy = c->y; + if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, + None, cursor[CurResize]->cursor, CurrentTime) != GrabSuccess) + return; + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); + do { + XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); + switch(ev.type) { + case ConfigureRequest: + case Expose: + case MapRequest: + handler[ev.type](&ev); + break; + case MotionNotify: + if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + continue; + lasttime = ev.xmotion.time; + + nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); + nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); + if (c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww + && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) + { + if (!c->isfloating && selmon->lt[selmon->sellt]->arrange + && (abs(nw - c->w) > snap || abs(nh - c->h) > snap)) + togglefloating(NULL); + } + if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) + resize(c, c->x, c->y, nw, nh, 1); + break; + } + } while (ev.type != ButtonRelease); + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); + XUngrabPointer(dpy, CurrentTime); + while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); + if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { + sendmon(c, m); + selmon = m; + focus(NULL); + } +} + +void +restack(Monitor *m) +{ + Client *c; + XEvent ev; + XWindowChanges wc; + + drawbar(m); + if (!m->sel) + return; + if (m->sel->isfloating || !m->lt[m->sellt]->arrange) + XRaiseWindow(dpy, m->sel->win); + if (m->lt[m->sellt]->arrange) { + wc.stack_mode = Below; + wc.sibling = m->barwin; + for (c = m->stack; c; c = c->snext) + if (!c->isfloating && ISVISIBLE(c)) { + XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc); + wc.sibling = c->win; + } + } + XSync(dpy, False); + while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); +} + +void +run(void) +{ + XEvent ev; + /* main event loop */ + XSync(dpy, False); + while (running && !XNextEvent(dpy, &ev)) + if (handler[ev.type]) + handler[ev.type](&ev); /* call handler */ +} + +void +scan(void) +{ + unsigned int i, num; + Window d1, d2, *wins = NULL; + XWindowAttributes wa; + + if (XQueryTree(dpy, root, &d1, &d2, &wins, &num)) { + for (i = 0; i < num; i++) { + if (!XGetWindowAttributes(dpy, wins[i], &wa) + || wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) + continue; + if (wa.map_state == IsViewable || getstate(wins[i]) == IconicState) + manage(wins[i], &wa); + } + for (i = 0; i < num; i++) { /* now the transients */ + if (!XGetWindowAttributes(dpy, wins[i], &wa)) + continue; + if (XGetTransientForHint(dpy, wins[i], &d1) + && (wa.map_state == IsViewable || getstate(wins[i]) == IconicState)) + manage(wins[i], &wa); + } + if (wins) + XFree(wins); + } +} + +void +sendmon(Client *c, Monitor *m) +{ + if (c->mon == m) + return; + unfocus(c, 1); + detach(c); + detachstack(c); + c->mon = m; + c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ + attach(c); + attachstack(c); + focus(NULL); + arrange(NULL); +} + +void +setclientstate(Client *c, long state) +{ + long data[] = { state, None }; + + XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, + PropModeReplace, (unsigned char *)data, 2); +} + +int +sendevent(Client *c, Atom proto) +{ + int n; + Atom *protocols; + int exists = 0; + XEvent ev; + + if (XGetWMProtocols(dpy, c->win, &protocols, &n)) { + while (!exists && n--) + exists = protocols[n] == proto; + XFree(protocols); + } + if (exists) { + ev.type = ClientMessage; + ev.xclient.window = c->win; + ev.xclient.message_type = wmatom[WMProtocols]; + ev.xclient.format = 32; + ev.xclient.data.l[0] = proto; + ev.xclient.data.l[1] = CurrentTime; + XSendEvent(dpy, c->win, False, NoEventMask, &ev); + } + return exists; +} + +void +setfocus(Client *c) +{ + if (!c->neverfocus) { + XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); + XChangeProperty(dpy, root, netatom[NetActiveWindow], + XA_WINDOW, 32, PropModeReplace, + (unsigned char *) &(c->win), 1); + } + sendevent(c, wmatom[WMTakeFocus]); +} + +void +setfullscreen(Client *c, int fullscreen) +{ + if (fullscreen && !c->isfullscreen) { + XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, + PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); + c->isfullscreen = 1; + c->oldstate = c->isfloating; + c->oldbw = c->bw; + c->bw = 0; + c->isfloating = 1; + resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); + XRaiseWindow(dpy, c->win); + } else if (!fullscreen && c->isfullscreen){ + XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, + PropModeReplace, (unsigned char*)0, 0); + c->isfullscreen = 0; + c->isfloating = c->oldstate; + c->bw = c->oldbw; + c->x = c->oldx; + c->y = c->oldy; + c->w = c->oldw; + c->h = c->oldh; + resizeclient(c, c->x, c->y, c->w, c->h); + arrange(c->mon); + } +} + +void +setlayout(const Arg *arg) +{ + if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt]) + selmon->sellt ^= 1; + if (arg && arg->v) + selmon->lt[selmon->sellt] = (Layout *)arg->v; + strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol); + if (selmon->sel) + arrange(selmon); + else + drawbar(selmon); +} + +/* arg > 1.0 will set mfact absolutely */ +void +setmfact(const Arg *arg) +{ + float f; + + if (!arg || !selmon->lt[selmon->sellt]->arrange) + return; + f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0; + if (f < 0.05 || f > 0.95) + return; + selmon->mfact = f; + arrange(selmon); +} + +void +setup(void) +{ + int i; + XSetWindowAttributes wa; + Atom utf8string; + struct sigaction sa; + + /* do not transform children into zombies when they terminate */ + sigemptyset(&sa.sa_mask); + sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT | SA_RESTART; + sa.sa_handler = SIG_IGN; + sigaction(SIGCHLD, &sa, NULL); + + /* clean up any zombies (inherited from .xinitrc etc) immediately */ + while (waitpid(-1, NULL, WNOHANG) > 0); + + /* init screen */ + screen = DefaultScreen(dpy); + sw = DisplayWidth(dpy, screen); + sh = DisplayHeight(dpy, screen); + root = RootWindow(dpy, screen); + drw = drw_create(dpy, screen, root, sw, sh); + if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) + die("no fonts could be loaded."); + lrpad = drw->fonts->h; + bh = drw->fonts->h + 2; + updategeom(); + /* init atoms */ + utf8string = XInternAtom(dpy, "UTF8_STRING", False); + wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); + wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); + wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False); + wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False); + netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); + netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); + netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); + netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False); + netatom[NetWMCheck] = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False); + netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False); + netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False); + netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False); + netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False); + /* init cursors */ + cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr); + cursor[CurResize] = drw_cur_create(drw, XC_sizing); + cursor[CurMove] = drw_cur_create(drw, XC_fleur); + /* init appearance */ + scheme = ecalloc(LENGTH(colors), sizeof(Clr *)); + for (i = 0; i < LENGTH(colors); i++) + scheme[i] = drw_scm_create(drw, colors[i], 3); + /* init bars */ + updatebars(); + updatestatus(); + /* supporting window for NetWMCheck */ + wmcheckwin = XCreateSimpleWindow(dpy, root, 0, 0, 1, 1, 0, 0, 0); + XChangeProperty(dpy, wmcheckwin, netatom[NetWMCheck], XA_WINDOW, 32, + PropModeReplace, (unsigned char *) &wmcheckwin, 1); + XChangeProperty(dpy, wmcheckwin, netatom[NetWMName], utf8string, 8, + PropModeReplace, (unsigned char *) "dwm", 3); + XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32, + PropModeReplace, (unsigned char *) &wmcheckwin, 1); + /* EWMH support per view */ + XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, + PropModeReplace, (unsigned char *) netatom, NetLast); + XDeleteProperty(dpy, root, netatom[NetClientList]); + /* select events */ + wa.cursor = cursor[CurNormal]->cursor; + wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask + |ButtonPressMask|PointerMotionMask|EnterWindowMask + |LeaveWindowMask|StructureNotifyMask|PropertyChangeMask; + XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa); + XSelectInput(dpy, root, wa.event_mask); + grabkeys(); + focus(NULL); +} + +void +seturgent(Client *c, int urg) +{ + XWMHints *wmh; + + c->isurgent = urg; + if (!(wmh = XGetWMHints(dpy, c->win))) + return; + wmh->flags = urg ? (wmh->flags | XUrgencyHint) : (wmh->flags & ~XUrgencyHint); + XSetWMHints(dpy, c->win, wmh); + XFree(wmh); +} + +void +showhide(Client *c) +{ + if (!c) + return; + if (ISVISIBLE(c)) { + /* show clients top down */ + XMoveWindow(dpy, c->win, c->x, c->y); + if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen) + resize(c, c->x, c->y, c->w, c->h, 0); + showhide(c->snext); + } else { + /* hide clients bottom up */ + showhide(c->snext); + XMoveWindow(dpy, c->win, WIDTH(c) * -2, c->y); + } +} + +void +spawn(const Arg *arg) +{ + struct sigaction sa; + + if (arg->v == dmenucmd) + dmenumon[0] = '0' + selmon->num; + if (fork() == 0) { + if (dpy) + close(ConnectionNumber(dpy)); + setsid(); + + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; + sa.sa_handler = SIG_DFL; + sigaction(SIGCHLD, &sa, NULL); + + execvp(((char **)arg->v)[0], (char **)arg->v); + die("dwm: execvp '%s' failed:", ((char **)arg->v)[0]); + } +} + +void +tag(const Arg *arg) +{ + if (selmon->sel && arg->ui & TAGMASK) { + selmon->sel->tags = arg->ui & TAGMASK; + focus(NULL); + arrange(selmon); + } +} + +void +tagmon(const Arg *arg) +{ + if (!selmon->sel || !mons->next) + return; + sendmon(selmon->sel, dirtomon(arg->i)); +} + +void +tile(Monitor *m) +{ + unsigned int i, n, h, mw, my, ty; + Client *c; + + for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); + if (n == 0) + return; + + if (n > m->nmaster) + mw = m->nmaster ? m->ww * m->mfact : 0; + else + mw = m->ww; + for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) + if (i < m->nmaster) { + h = (m->wh - my) / (MIN(n, m->nmaster) - i); + resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); + if (my + HEIGHT(c) < m->wh) + my += HEIGHT(c); + } else { + h = (m->wh - ty) / (n - i); + resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); + if (ty + HEIGHT(c) < m->wh) + ty += HEIGHT(c); + } +} + +void +togglebar(const Arg *arg) +{ + selmon->showbar = !selmon->showbar; + updatebarpos(selmon); + XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh); + arrange(selmon); +} + +void +togglefloating(const Arg *arg) +{ + if (!selmon->sel) + return; + if (selmon->sel->isfullscreen) /* no support for fullscreen windows */ + return; + selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed; + if (selmon->sel->isfloating) + resize(selmon->sel, selmon->sel->x, selmon->sel->y, + selmon->sel->w, selmon->sel->h, 0); + arrange(selmon); +} + +void +toggletag(const Arg *arg) +{ + unsigned int newtags; + + if (!selmon->sel) + return; + newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); + if (newtags) { + selmon->sel->tags = newtags; + focus(NULL); + arrange(selmon); + } +} + +void +toggleview(const Arg *arg) +{ + unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); + + if (newtagset) { + selmon->tagset[selmon->seltags] = newtagset; + focus(NULL); + arrange(selmon); + } +} + +void +unfocus(Client *c, int setfocus) +{ + if (!c) + return; + grabbuttons(c, 0); + XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel); + if (setfocus) { + XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + XDeleteProperty(dpy, root, netatom[NetActiveWindow]); + } +} + +void +unmanage(Client *c, int destroyed) +{ + Monitor *m = c->mon; + XWindowChanges wc; + + if (c->swallowing) { + unswallow(c); + return; + } + + Client *s = swallowingclient(c->win); + if (s) { + free(s->swallowing); + s->swallowing = NULL; + arrange(m); + focus(NULL); + return; + } + + detach(c); + detachstack(c); + if (!destroyed) { + wc.border_width = c->oldbw; + XGrabServer(dpy); /* avoid race conditions */ + XSetErrorHandler(xerrordummy); + XSelectInput(dpy, c->win, NoEventMask); + XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */ + XUngrabButton(dpy, AnyButton, AnyModifier, c->win); + setclientstate(c, WithdrawnState); + XSync(dpy, False); + XSetErrorHandler(xerror); + XUngrabServer(dpy); + } + free(c); + + if (!s) { + arrange(m); + focus(NULL); + updateclientlist(); + } +} + +void +unmapnotify(XEvent *e) +{ + Client *c; + XUnmapEvent *ev = &e->xunmap; + + if ((c = wintoclient(ev->window))) { + if (ev->send_event) + setclientstate(c, WithdrawnState); + else + unmanage(c, 0); + } +} + +void +updatebars(void) +{ + Monitor *m; + XSetWindowAttributes wa = { + .override_redirect = True, + .background_pixmap = ParentRelative, + .event_mask = ButtonPressMask|ExposureMask + }; + XClassHint ch = {"dwm", "dwm"}; + for (m = mons; m; m = m->next) { + if (m->barwin) + continue; + m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen), + CopyFromParent, DefaultVisual(dpy, screen), + CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); + XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); + XMapRaised(dpy, m->barwin); + XSetClassHint(dpy, m->barwin, &ch); + } +} + +void +updatebarpos(Monitor *m) +{ + m->wy = m->my; + m->wh = m->mh; + if (m->showbar) { + m->wh -= bh; + m->by = m->topbar ? m->wy : m->wy + m->wh; + m->wy = m->topbar ? m->wy + bh : m->wy; + } else + m->by = -bh; +} + +void +updateclientlist() +{ + Client *c; + Monitor *m; + + XDeleteProperty(dpy, root, netatom[NetClientList]); + for (m = mons; m; m = m->next) + for (c = m->clients; c; c = c->next) + XChangeProperty(dpy, root, netatom[NetClientList], + XA_WINDOW, 32, PropModeAppend, + (unsigned char *) &(c->win), 1); +} + +int +updategeom(void) +{ + int dirty = 0; + +#ifdef XINERAMA + if (XineramaIsActive(dpy)) { + int i, j, n, nn; + Client *c; + Monitor *m; + XineramaScreenInfo *info = XineramaQueryScreens(dpy, &nn); + XineramaScreenInfo *unique = NULL; + + for (n = 0, m = mons; m; m = m->next, n++); + /* only consider unique geometries as separate screens */ + unique = ecalloc(nn, sizeof(XineramaScreenInfo)); + for (i = 0, j = 0; i < nn; i++) + if (isuniquegeom(unique, j, &info[i])) + memcpy(&unique[j++], &info[i], sizeof(XineramaScreenInfo)); + XFree(info); + nn = j; + + /* new monitors if nn > n */ + for (i = n; i < nn; i++) { + for (m = mons; m && m->next; m = m->next); + if (m) + m->next = createmon(); + else + mons = createmon(); + } + for (i = 0, m = mons; i < nn && m; m = m->next, i++) + if (i >= n + || unique[i].x_org != m->mx || unique[i].y_org != m->my + || unique[i].width != m->mw || unique[i].height != m->mh) + { + dirty = 1; + m->num = i; + m->mx = m->wx = unique[i].x_org; + m->my = m->wy = unique[i].y_org; + m->mw = m->ww = unique[i].width; + m->mh = m->wh = unique[i].height; + updatebarpos(m); + } + /* removed monitors if n > nn */ + for (i = nn; i < n; i++) { + for (m = mons; m && m->next; m = m->next); + while ((c = m->clients)) { + dirty = 1; + m->clients = c->next; + detachstack(c); + c->mon = mons; + attach(c); + attachstack(c); + } + if (m == selmon) + selmon = mons; + cleanupmon(m); + } + free(unique); + } else +#endif /* XINERAMA */ + { /* default monitor setup */ + if (!mons) + mons = createmon(); + if (mons->mw != sw || mons->mh != sh) { + dirty = 1; + mons->mw = mons->ww = sw; + mons->mh = mons->wh = sh; + updatebarpos(mons); + } + } + if (dirty) { + selmon = mons; + selmon = wintomon(root); + } + return dirty; +} + +void +updatenumlockmask(void) +{ + unsigned int i, j; + XModifierKeymap *modmap; + + numlockmask = 0; + modmap = XGetModifierMapping(dpy); + for (i = 0; i < 8; i++) + for (j = 0; j < modmap->max_keypermod; j++) + if (modmap->modifiermap[i * modmap->max_keypermod + j] + == XKeysymToKeycode(dpy, XK_Num_Lock)) + numlockmask = (1 << i); + XFreeModifiermap(modmap); +} + +void +updatesizehints(Client *c) +{ + long msize; + XSizeHints size; + + if (!XGetWMNormalHints(dpy, c->win, &size, &msize)) + /* size is uninitialized, ensure that size.flags aren't used */ + size.flags = PSize; + if (size.flags & PBaseSize) { + c->basew = size.base_width; + c->baseh = size.base_height; + } else if (size.flags & PMinSize) { + c->basew = size.min_width; + c->baseh = size.min_height; + } else + c->basew = c->baseh = 0; + if (size.flags & PResizeInc) { + c->incw = size.width_inc; + c->inch = size.height_inc; + } else + c->incw = c->inch = 0; + if (size.flags & PMaxSize) { + c->maxw = size.max_width; + c->maxh = size.max_height; + } else + c->maxw = c->maxh = 0; + if (size.flags & PMinSize) { + c->minw = size.min_width; + c->minh = size.min_height; + } else if (size.flags & PBaseSize) { + c->minw = size.base_width; + c->minh = size.base_height; + } else + c->minw = c->minh = 0; + if (size.flags & PAspect) { + c->mina = (float)size.min_aspect.y / size.min_aspect.x; + c->maxa = (float)size.max_aspect.x / size.max_aspect.y; + } else + c->maxa = c->mina = 0.0; + c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh); + c->hintsvalid = 1; +} + +void +updatestatus(void) +{ + if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) + strcpy(stext, "dwm-"VERSION); + drawbar(selmon); +} + +void +updatetitle(Client *c) +{ + if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name)) + gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); + if (c->name[0] == '\0') /* hack to mark broken clients */ + strcpy(c->name, broken); +} + +void +updatewindowtype(Client *c) +{ + Atom state = getatomprop(c, netatom[NetWMState]); + Atom wtype = getatomprop(c, netatom[NetWMWindowType]); + + if (state == netatom[NetWMFullscreen]) + setfullscreen(c, 1); + if (wtype == netatom[NetWMWindowTypeDialog]) + c->isfloating = 1; +} + +void +updatewmhints(Client *c) +{ + XWMHints *wmh; + + if ((wmh = XGetWMHints(dpy, c->win))) { + if (c == selmon->sel && wmh->flags & XUrgencyHint) { + wmh->flags &= ~XUrgencyHint; + XSetWMHints(dpy, c->win, wmh); + } else + c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0; + if (wmh->flags & InputHint) + c->neverfocus = !wmh->input; + else + c->neverfocus = 0; + XFree(wmh); + } +} + +void +view(const Arg *arg) +{ + if ((arg->ui & TAGMASK) == selmon->tagset[selmon->seltags]) + return; + selmon->seltags ^= 1; /* toggle sel tagset */ + if (arg->ui & TAGMASK) + selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; + focus(NULL); + arrange(selmon); +} + +pid_t +winpid(Window w) +{ + + pid_t result = 0; + +#ifdef __linux__ + xcb_res_client_id_spec_t spec = {0}; + spec.client = w; + spec.mask = XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID; + + xcb_generic_error_t *e = NULL; + xcb_res_query_client_ids_cookie_t c = xcb_res_query_client_ids(xcon, 1, &spec); + xcb_res_query_client_ids_reply_t *r = xcb_res_query_client_ids_reply(xcon, c, &e); + + if (!r) + return (pid_t)0; + + xcb_res_client_id_value_iterator_t i = xcb_res_query_client_ids_ids_iterator(r); + for (; i.rem; xcb_res_client_id_value_next(&i)) { + spec = i.data->spec; + if (spec.mask & XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID) { + uint32_t *t = xcb_res_client_id_value_value(i.data); + result = *t; + break; + } + } + + free(r); + + if (result == (pid_t)-1) + result = 0; + +#endif /* __linux__ */ + +#ifdef __OpenBSD__ + Atom type; + int format; + unsigned long len, bytes; + unsigned char *prop; + pid_t ret; + + if (XGetWindowProperty(dpy, w, XInternAtom(dpy, "_NET_WM_PID", 0), 0, 1, False, AnyPropertyType, &type, &format, &len, &bytes, &prop) != Success || !prop) + return 0; + + ret = *(pid_t*)prop; + XFree(prop); + result = ret; + +#endif /* __OpenBSD__ */ + return result; +} + +pid_t +getparentprocess(pid_t p) +{ + unsigned int v = 0; + +#ifdef __linux__ + FILE *f; + char buf[256]; + snprintf(buf, sizeof(buf) - 1, "/proc/%u/stat", (unsigned)p); + + if (!(f = fopen(buf, "r"))) + return 0; + + fscanf(f, "%*u %*s %*c %u", &v); + fclose(f); +#endif /* __linux__*/ + +#ifdef __OpenBSD__ + int n; + kvm_t *kd; + struct kinfo_proc *kp; + + kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, NULL); + if (!kd) + return 0; + + kp = kvm_getprocs(kd, KERN_PROC_PID, p, sizeof(*kp), &n); + v = kp->p_ppid; +#endif /* __OpenBSD__ */ + + return (pid_t)v; +} + +int +isdescprocess(pid_t p, pid_t c) +{ + while (p != c && c != 0) + c = getparentprocess(c); + + return (int)c; +} + +Client * +termforwin(const Client *w) +{ + Client *c; + Monitor *m; + + if (!w->pid || w->isterminal) + return NULL; + + for (m = mons; m; m = m->next) { + for (c = m->clients; c; c = c->next) { + if (c->isterminal && !c->swallowing && c->pid && isdescprocess(c->pid, w->pid)) + return c; + } + } + + return NULL; +} + +Client * +swallowingclient(Window w) +{ + Client *c; + Monitor *m; + + for (m = mons; m; m = m->next) { + for (c = m->clients; c; c = c->next) { + if (c->swallowing && c->swallowing->win == w) + return c; + } + } + + return NULL; +} + +Client * +wintoclient(Window w) +{ + Client *c; + Monitor *m; + + for (m = mons; m; m = m->next) + for (c = m->clients; c; c = c->next) + if (c->win == w) + return c; + return NULL; +} + +Monitor * +wintomon(Window w) +{ + int x, y; + Client *c; + Monitor *m; + + if (w == root && getrootptr(&x, &y)) + return recttomon(x, y, 1, 1); + for (m = mons; m; m = m->next) + if (w == m->barwin) + return m; + if ((c = wintoclient(w))) + return c->mon; + return selmon; +} + +/* There's no way to check accesses to destroyed windows, thus those cases are + * ignored (especially on UnmapNotify's). Other types of errors call Xlibs + * default error handler, which may call exit. */ +int +xerror(Display *dpy, XErrorEvent *ee) +{ + if (ee->error_code == BadWindow + || (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch) + || (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable) + || (ee->request_code == X_PolyFillRectangle && ee->error_code == BadDrawable) + || (ee->request_code == X_PolySegment && ee->error_code == BadDrawable) + || (ee->request_code == X_ConfigureWindow && ee->error_code == BadMatch) + || (ee->request_code == X_GrabButton && ee->error_code == BadAccess) + || (ee->request_code == X_GrabKey && ee->error_code == BadAccess) + || (ee->request_code == X_CopyArea && ee->error_code == BadDrawable)) + return 0; + fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n", + ee->request_code, ee->error_code); + return xerrorxlib(dpy, ee); /* may call exit */ +} + +int +xerrordummy(Display *dpy, XErrorEvent *ee) +{ + return 0; +} + +/* Startup Error handler to check if another window manager + * is already running. */ +int +xerrorstart(Display *dpy, XErrorEvent *ee) +{ + die("dwm: another window manager is already running"); + return -1; +} + +void +zoom(const Arg *arg) +{ + Client *c = selmon->sel; + + if (!selmon->lt[selmon->sellt]->arrange || !c || c->isfloating) + return; + if (c == nexttiled(selmon->clients) && !(c = nexttiled(c->next))) + return; + pop(c); +} + +int +main(int argc, char *argv[]) +{ + if (argc == 2 && !strcmp("-v", argv[1])) + die("dwm-"VERSION); + else if (argc != 1) + die("usage: dwm [-v]"); + if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) + fputs("warning: no locale support\n", stderr); + if (!(dpy = XOpenDisplay(NULL))) + die("dwm: cannot open display"); + if (!(xcon = XGetXCBConnection(dpy))) + die("dwm: cannot get xcb connection\n"); + checkotherwm(); + setup(); +#ifdef __OpenBSD__ + if (pledge("stdio rpath proc exec ps", NULL) == -1) + die("pledge"); +#endif /* __OpenBSD__ */ + scan(); + run(); + cleanup(); + XCloseDisplay(dpy); + return EXIT_SUCCESS; +} + +void +centeredmaster(Monitor *m) +{ + unsigned int i, n, h, mw, mx, my, oty, ety, tw; + Client *c; + + /* count number of clients in the selected monitor */ + for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); + if (n == 0) + return; + + /* initialize areas */ + mw = m->ww; + mx = 0; + my = 0; + tw = mw; + + if (n > m->nmaster) { + /* go mfact box in the center if more than nmaster clients */ + mw = m->nmaster ? m->ww * m->mfact : 0; + tw = m->ww - mw; + + if (n - m->nmaster > 1) { + /* only one client */ + mx = (m->ww - mw) / 2; + tw = (m->ww - mw) / 2; + } + } + + oty = 0; + ety = 0; + for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) + if (i < m->nmaster) { + /* nmaster clients are stacked vertically, in the center + * of the screen */ + h = (m->wh - my) / (MIN(n, m->nmaster) - i); + resize(c, m->wx + mx, m->wy + my, mw - (2*c->bw), + h - (2*c->bw), 0); + my += HEIGHT(c); + } else { + /* stack clients are stacked vertically */ + if ((i - m->nmaster) % 2 ) { + h = (m->wh - ety) / ( (1 + n - i) / 2); + resize(c, m->wx, m->wy + ety, tw - (2*c->bw), + h - (2*c->bw), 0); + ety += HEIGHT(c); + } else { + h = (m->wh - oty) / ((1 + n - i) / 2); + resize(c, m->wx + mx + mw, m->wy + oty, + tw - (2*c->bw), h - (2*c->bw), 0); + oty += HEIGHT(c); + } + } +} + +void +centeredfloatingmaster(Monitor *m) +{ + unsigned int i, n, w, mh, mw, mx, mxo, my, myo, tx; + Client *c; + + /* count number of clients in the selected monitor */ + for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); + if (n == 0) + return; + + /* initialize nmaster area */ + if (n > m->nmaster) { + /* go mfact box in the center if more than nmaster clients */ + if (m->ww > m->wh) { + mw = m->nmaster ? m->ww * m->mfact : 0; + mh = m->nmaster ? m->wh * 0.9 : 0; + } else { + mh = m->nmaster ? m->wh * m->mfact : 0; + mw = m->nmaster ? m->ww * 0.9 : 0; + } + mx = mxo = (m->ww - mw) / 2; + my = myo = (m->wh - mh) / 2; + } else { + /* go fullscreen if all clients are in the master area */ + mh = m->wh; + mw = m->ww; + mx = mxo = 0; + my = myo = 0; + } + + for(i = tx = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) + if (i < m->nmaster) { + /* nmaster clients are stacked horizontally, in the center + * of the screen */ + w = (mw + mxo - mx) / (MIN(n, m->nmaster) - i); + resize(c, m->wx + mx, m->wy + my, w - (2*c->bw), + mh - (2*c->bw), 0); + mx += WIDTH(c); + } else { + /* stack clients are stacked horizontally */ + w = (m->ww - tx) / (n - i); + resize(c, m->wx + tx, m->wy, w - (2*c->bw), + m->wh - (2*c->bw), 0); + tx += WIDTH(c); + } +} + diff --git a/vildwm/dwm.c.orig b/vildwm/dwm.c.orig new file mode 100755 index 0000000..9593de0 --- /dev/null +++ b/vildwm/dwm.c.orig @@ -0,0 +1,2388 @@ +/* See LICENSE file for copyright and license details. + * + * dynamic window manager is designed like any other X client as well. It is + * driven through handling X events. In contrast to other X clients, a window + * manager selects for SubstructureRedirectMask on the root window, to receive + * events about window (dis-)appearance. Only one X connection at a time is + * allowed to select for this event mask. + * + * The event handlers of dwm are organized in an array which is accessed + * whenever a new event has been fetched. This allows event dispatching + * in O(1) time. + * + * Each child of the root window is called a client, except windows which have + * set the override_redirect flag. Clients are organized in a linked client + * list on each monitor, the focus history is remembered through a stack list + * on each monitor. Each client contains a bit array to indicate the tags of a + * client. + * + * Keys and tagging rules are organized as arrays and defined in config.h. + * + * To understand everything else, start reading main(). + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef XINERAMA +#include +#endif /* XINERAMA */ +#include +#include +#include +#ifdef __OpenBSD__ +#include +#include +#endif /* __OpenBSD */ + +#include "drw.h" +#include "util.h" + +/* macros */ +#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) +#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) +#define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \ + * MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy))) +#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) +#define LENGTH(X) (sizeof X / sizeof X[0]) +#define MOUSEMASK (BUTTONMASK|PointerMotionMask) +#define WIDTH(X) ((X)->w + 2 * (X)->bw) +#define HEIGHT(X) ((X)->h + 2 * (X)->bw) +#define TAGMASK ((1 << LENGTH(tags)) - 1) +#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) + +/* enums */ +enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ +enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { NetSupported, NetWMName, NetWMState, NetWMCheck, + NetWMFullscreen, NetActiveWindow, NetWMWindowType, + NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ +enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */ +enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, + ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ + +typedef union { + int i; + unsigned int ui; + float f; + const void *v; +} Arg; + +typedef struct { + unsigned int click; + unsigned int mask; + unsigned int button; + void (*func)(const Arg *arg); + const Arg arg; +} Button; + +typedef struct Monitor Monitor; +typedef struct Client Client; +struct Client { + char name[256]; + float mina, maxa; + int x, y, w, h; + int oldx, oldy, oldw, oldh; + int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; + int bw, oldbw; + unsigned int tags; + int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, isterminal, noswallow; + pid_t pid; + Client *next; + Client *snext; + Client *swallowing; + Monitor *mon; + Window win; +}; + +typedef struct { + unsigned int mod; + KeySym keysym; + void (*func)(const Arg *); + const Arg arg; +} Key; + +typedef struct { + const char *symbol; + void (*arrange)(Monitor *); +} Layout; + +struct Monitor { + char ltsymbol[16]; + float mfact; + int nmaster; + int num; + int by; /* bar geometry */ + int mx, my, mw, mh; /* screen size */ + int wx, wy, ww, wh; /* window area */ + unsigned int seltags; + unsigned int sellt; + unsigned int tagset[2]; + int showbar; + int topbar; + Client *clients; + Client *sel; + Client *stack; + Monitor *next; + Window barwin; + const Layout *lt[2]; +}; + +typedef struct { + const char *class; + const char *instance; + const char *title; + unsigned int tags; + int isfloating; + int isterminal; + int noswallow; + int monitor; +} Rule; + +/* function declarations */ +static void applyrules(Client *c); +static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); +static void arrange(Monitor *m); +static void arrangemon(Monitor *m); +static void attach(Client *c); +static void attachstack(Client *c); +static void buttonpress(XEvent *e); +static void checkotherwm(void); +static void cleanup(void); +static void cleanupmon(Monitor *mon); +static void clientmessage(XEvent *e); +static void configure(Client *c); +static void configurenotify(XEvent *e); +static void configurerequest(XEvent *e); +static Monitor *createmon(void); +static void destroynotify(XEvent *e); +static void detach(Client *c); +static void detachstack(Client *c); +static Monitor *dirtomon(int dir); +static void drawbar(Monitor *m); +static void drawbars(void); +static void enternotify(XEvent *e); +static void expose(XEvent *e); +static void focus(Client *c); +static void focusin(XEvent *e); +static void focusmon(const Arg *arg); +static void focusstack(const Arg *arg); +static Atom getatomprop(Client *c, Atom prop); +static int getrootptr(int *x, int *y); +static long getstate(Window w); +static int gettextprop(Window w, Atom atom, char *text, unsigned int size); +static void grabbuttons(Client *c, int focused); +static void grabkeys(void); +static void incnmaster(const Arg *arg); +static void keypress(XEvent *e); +static void killclient(const Arg *arg); +static void manage(Window w, XWindowAttributes *wa); +static void mappingnotify(XEvent *e); +static void maprequest(XEvent *e); +static void monocle(Monitor *m); +static void motionnotify(XEvent *e); +static void movemouse(const Arg *arg); +static Client *nexttiled(Client *c); +static void pop(Client *c); +static void propertynotify(XEvent *e); +static void quit(const Arg *arg); +static Monitor *recttomon(int x, int y, int w, int h); +static void resize(Client *c, int x, int y, int w, int h, int interact); +static void resizeclient(Client *c, int x, int y, int w, int h); +static void resizemouse(const Arg *arg); +static void restack(Monitor *m); +static void run(void); +static void scan(void); +static int sendevent(Client *c, Atom proto); +static void sendmon(Client *c, Monitor *m); +static void setclientstate(Client *c, long state); +static void setfocus(Client *c); +static void setfullscreen(Client *c, int fullscreen); +static void setlayout(const Arg *arg); +static void setmfact(const Arg *arg); +static void setup(void); +static void seturgent(Client *c, int urg); +static void showhide(Client *c); +static void spawn(const Arg *arg); +static void tag(const Arg *arg); +static void tagmon(const Arg *arg); +static void tile(Monitor *m); +static void togglebar(const Arg *arg); +static void togglefloating(const Arg *arg); +static void toggletag(const Arg *arg); +static void toggleview(const Arg *arg); +static void unfocus(Client *c, int setfocus); +static void unmanage(Client *c, int destroyed); +static void unmapnotify(XEvent *e); +static void updatebarpos(Monitor *m); +static void updatebars(void); +static void updateclientlist(void); +static int updategeom(void); +static void updatenumlockmask(void); +static void updatesizehints(Client *c); +static void updatestatus(void); +static void updatetitle(Client *c); +static void updatewindowtype(Client *c); +static void updatewmhints(Client *c); +static void view(const Arg *arg); +static Client *wintoclient(Window w); +static Monitor *wintomon(Window w); +static int xerror(Display *dpy, XErrorEvent *ee); +static int xerrordummy(Display *dpy, XErrorEvent *ee); +static int xerrorstart(Display *dpy, XErrorEvent *ee); +static void zoom(const Arg *arg); + +static pid_t getparentprocess(pid_t p); +static int isdescprocess(pid_t p, pid_t c); +static Client *swallowingclient(Window w); +static Client *termforwin(const Client *c); +static pid_t winpid(Window w); + +/* variables */ +static const char broken[] = "broken"; +static char stext[256]; +static int screen; +static int sw, sh; /* X display screen geometry width, height */ +static int bh; /* bar height */ +static int lrpad; /* sum of left and right padding for text */ +static int (*xerrorxlib)(Display *, XErrorEvent *); +static unsigned int numlockmask = 0; +static void (*handler[LASTEvent]) (XEvent *) = { + [ButtonPress] = buttonpress, + [ClientMessage] = clientmessage, + [ConfigureRequest] = configurerequest, + [ConfigureNotify] = configurenotify, + [DestroyNotify] = destroynotify, + [EnterNotify] = enternotify, + [Expose] = expose, + [FocusIn] = focusin, + [KeyPress] = keypress, + [MappingNotify] = mappingnotify, + [MapRequest] = maprequest, + [MotionNotify] = motionnotify, + [PropertyNotify] = propertynotify, + [UnmapNotify] = unmapnotify +}; +static Atom wmatom[WMLast], netatom[NetLast]; +static int running = 1; +static Cur *cursor[CurLast]; +static Clr **scheme; +static Display *dpy; +static Drw *drw; +static Monitor *mons, *selmon; +static Window root, wmcheckwin; + +static xcb_connection_t *xcon; + +/* configuration, allows nested code to access above variables */ +#include "config.h" + +/* compile-time check if all tags fit into an unsigned int bit array. */ +struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; + +/* function implementations */ +void +applyrules(Client *c) +{ + const char *class, *instance; + unsigned int i; + const Rule *r; + Monitor *m; + XClassHint ch = { NULL, NULL }; + + /* rule matching */ + c->isfloating = 0; + c->tags = 0; + XGetClassHint(dpy, c->win, &ch); + class = ch.res_class ? ch.res_class : broken; + instance = ch.res_name ? ch.res_name : broken; + + for (i = 0; i < LENGTH(rules); i++) { + r = &rules[i]; + if ((!r->title || strstr(c->name, r->title)) + && (!r->class || strstr(class, r->class)) + && (!r->instance || strstr(instance, r->instance))) + { + c->isterminal = r->isterminal; + c->noswallow = r->noswallow; + c->isfloating = r->isfloating; + c->tags |= r->tags; + for (m = mons; m && m->num != r->monitor; m = m->next); + if (m) + c->mon = m; + } + } + if (ch.res_class) + XFree(ch.res_class); + if (ch.res_name) + XFree(ch.res_name); + c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags]; +} + +int +applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact) +{ + int baseismin; + Monitor *m = c->mon; + + /* set minimum possible */ + *w = MAX(1, *w); + *h = MAX(1, *h); + if (interact) { + if (*x > sw) + *x = sw - WIDTH(c); + if (*y > sh) + *y = sh - HEIGHT(c); + if (*x + *w + 2 * c->bw < 0) + *x = 0; + if (*y + *h + 2 * c->bw < 0) + *y = 0; + } else { + if (*x >= m->wx + m->ww) + *x = m->wx + m->ww - WIDTH(c); + if (*y >= m->wy + m->wh) + *y = m->wy + m->wh - HEIGHT(c); + if (*x + *w + 2 * c->bw <= m->wx) + *x = m->wx; + if (*y + *h + 2 * c->bw <= m->wy) + *y = m->wy; + } + if (*h < bh) + *h = bh; + if (*w < bh) + *w = bh; + if (resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) { + if (!c->hintsvalid) + updatesizehints(c); + /* see last two sentences in ICCCM 4.1.2.3 */ + baseismin = c->basew == c->minw && c->baseh == c->minh; + if (!baseismin) { /* temporarily remove base dimensions */ + *w -= c->basew; + *h -= c->baseh; + } + /* adjust for aspect limits */ + if (c->mina > 0 && c->maxa > 0) { + if (c->maxa < (float)*w / *h) + *w = *h * c->maxa + 0.5; + else if (c->mina < (float)*h / *w) + *h = *w * c->mina + 0.5; + } + if (baseismin) { /* increment calculation requires this */ + *w -= c->basew; + *h -= c->baseh; + } + /* adjust for increment value */ + if (c->incw) + *w -= *w % c->incw; + if (c->inch) + *h -= *h % c->inch; + /* restore base dimensions */ + *w = MAX(*w + c->basew, c->minw); + *h = MAX(*h + c->baseh, c->minh); + if (c->maxw) + *w = MIN(*w, c->maxw); + if (c->maxh) + *h = MIN(*h, c->maxh); + } + return *x != c->x || *y != c->y || *w != c->w || *h != c->h; +} + +void +arrange(Monitor *m) +{ + if (m) + showhide(m->stack); + else for (m = mons; m; m = m->next) + showhide(m->stack); + if (m) { + arrangemon(m); + restack(m); + } else for (m = mons; m; m = m->next) + arrangemon(m); +} + +void +arrangemon(Monitor *m) +{ + strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol); + if (m->lt[m->sellt]->arrange) + m->lt[m->sellt]->arrange(m); +} + +void +attach(Client *c) +{ + c->next = c->mon->clients; + c->mon->clients = c; +} + +void +attachstack(Client *c) +{ + c->snext = c->mon->stack; + c->mon->stack = c; +} + +void +swallow(Client *p, Client *c) +{ + + if (c->noswallow || c->isterminal) + return; + if (c->noswallow && !swallowfloating && c->isfloating) + return; + + detach(c); + detachstack(c); + + setclientstate(c, WithdrawnState); + XUnmapWindow(dpy, p->win); + + p->swallowing = c; + c->mon = p->mon; + + Window w = p->win; + p->win = c->win; + c->win = w; + updatetitle(p); + XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h); + arrange(p->mon); + configure(p); + updateclientlist(); +} + +void +unswallow(Client *c) +{ + c->win = c->swallowing->win; + + free(c->swallowing); + c->swallowing = NULL; + + /* unfullscreen the client */ + setfullscreen(c, 0); + updatetitle(c); + arrange(c->mon); + XMapWindow(dpy, c->win); + XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); + setclientstate(c, NormalState); + focus(NULL); + arrange(c->mon); +} + +void +buttonpress(XEvent *e) +{ + unsigned int i, x, click; + Arg arg = {0}; + Client *c; + Monitor *m; + XButtonPressedEvent *ev = &e->xbutton; + + click = ClkRootWin; + /* focus monitor if necessary */ + if ((m = wintomon(ev->window)) && m != selmon) { + unfocus(selmon->sel, 1); + selmon = m; + focus(NULL); + } + if (ev->window == selmon->barwin) { + i = x = 0; + do + x += TEXTW(tags[i]); + while (ev->x >= x && ++i < LENGTH(tags)); + if (i < LENGTH(tags)) { + click = ClkTagBar; + arg.ui = 1 << i; + } else if (ev->x < x + TEXTW(selmon->ltsymbol)) + click = ClkLtSymbol; + else if (ev->x > selmon->ww - (int)TEXTW(stext)) + click = ClkStatusText; + else + click = ClkWinTitle; + } else if ((c = wintoclient(ev->window))) { + focus(c); + restack(selmon); + XAllowEvents(dpy, ReplayPointer, CurrentTime); + click = ClkClientWin; + } + for (i = 0; i < LENGTH(buttons); i++) + if (click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button + && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state)) + buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg); +} + +void +checkotherwm(void) +{ + xerrorxlib = XSetErrorHandler(xerrorstart); + /* this causes an error if some other window manager is running */ + XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask); + XSync(dpy, False); + XSetErrorHandler(xerror); + XSync(dpy, False); +} + +void +cleanup(void) +{ + Arg a = {.ui = ~0}; + Layout foo = { "", NULL }; + Monitor *m; + size_t i; + + view(&a); + selmon->lt[selmon->sellt] = &foo; + for (m = mons; m; m = m->next) + while (m->stack) + unmanage(m->stack, 0); + XUngrabKey(dpy, AnyKey, AnyModifier, root); + while (mons) + cleanupmon(mons); + for (i = 0; i < CurLast; i++) + drw_cur_free(drw, cursor[i]); + for (i = 0; i < LENGTH(colors); i++) + free(scheme[i]); + free(scheme); + XDestroyWindow(dpy, wmcheckwin); + drw_free(drw); + XSync(dpy, False); + XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); + XDeleteProperty(dpy, root, netatom[NetActiveWindow]); +} + +void +cleanupmon(Monitor *mon) +{ + Monitor *m; + + if (mon == mons) + mons = mons->next; + else { + for (m = mons; m && m->next != mon; m = m->next); + m->next = mon->next; + } + XUnmapWindow(dpy, mon->barwin); + XDestroyWindow(dpy, mon->barwin); + free(mon); +} + +void +clientmessage(XEvent *e) +{ + XClientMessageEvent *cme = &e->xclient; + Client *c = wintoclient(cme->window); + + if (!c) + return; + if (cme->message_type == netatom[NetWMState]) { + if (cme->data.l[1] == netatom[NetWMFullscreen] + || cme->data.l[2] == netatom[NetWMFullscreen]) + setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */ + || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen))); + } else if (cme->message_type == netatom[NetActiveWindow]) { + if (c != selmon->sel && !c->isurgent) + seturgent(c, 1); + } +} + +void +configure(Client *c) +{ + XConfigureEvent ce; + + ce.type = ConfigureNotify; + ce.display = dpy; + ce.event = c->win; + ce.window = c->win; + ce.x = c->x; + ce.y = c->y; + ce.width = c->w; + ce.height = c->h; + ce.border_width = c->bw; + ce.above = None; + ce.override_redirect = False; + XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce); +} + +void +configurenotify(XEvent *e) +{ + Monitor *m; + Client *c; + XConfigureEvent *ev = &e->xconfigure; + int dirty; + + /* TODO: updategeom handling sucks, needs to be simplified */ + if (ev->window == root) { + dirty = (sw != ev->width || sh != ev->height); + sw = ev->width; + sh = ev->height; + if (updategeom() || dirty) { + drw_resize(drw, sw, bh); + updatebars(); + for (m = mons; m; m = m->next) { + for (c = m->clients; c; c = c->next) + if (c->isfullscreen) + resizeclient(c, m->mx, m->my, m->mw, m->mh); + XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); + } + focus(NULL); + arrange(NULL); + } + } +} + +void +configurerequest(XEvent *e) +{ + Client *c; + Monitor *m; + XConfigureRequestEvent *ev = &e->xconfigurerequest; + XWindowChanges wc; + + if ((c = wintoclient(ev->window))) { + if (ev->value_mask & CWBorderWidth) + c->bw = ev->border_width; + else if (c->isfloating || !selmon->lt[selmon->sellt]->arrange) { + m = c->mon; + if (ev->value_mask & CWX) { + c->oldx = c->x; + c->x = m->mx + ev->x; + } + if (ev->value_mask & CWY) { + c->oldy = c->y; + c->y = m->my + ev->y; + } + if (ev->value_mask & CWWidth) { + c->oldw = c->w; + c->w = ev->width; + } + if (ev->value_mask & CWHeight) { + c->oldh = c->h; + c->h = ev->height; + } + if ((c->x + c->w) > m->mx + m->mw && c->isfloating) + c->x = m->mx + (m->mw / 2 - WIDTH(c) / 2); /* center in x direction */ + if ((c->y + c->h) > m->my + m->mh && c->isfloating) + c->y = m->my + (m->mh / 2 - HEIGHT(c) / 2); /* center in y direction */ + if ((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight))) + configure(c); + if (ISVISIBLE(c)) + XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); + } else + configure(c); + } else { + wc.x = ev->x; + wc.y = ev->y; + wc.width = ev->width; + wc.height = ev->height; + wc.border_width = ev->border_width; + wc.sibling = ev->above; + wc.stack_mode = ev->detail; + XConfigureWindow(dpy, ev->window, ev->value_mask, &wc); + } + XSync(dpy, False); +} + +Monitor * +createmon(void) +{ + Monitor *m; + + m = ecalloc(1, sizeof(Monitor)); + m->tagset[0] = m->tagset[1] = 1; + m->mfact = mfact; + m->nmaster = nmaster; + m->showbar = showbar; + m->topbar = topbar; + m->lt[0] = &layouts[0]; + m->lt[1] = &layouts[1 % LENGTH(layouts)]; + strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol); + return m; +} + +void +destroynotify(XEvent *e) +{ + Client *c; + XDestroyWindowEvent *ev = &e->xdestroywindow; + + if ((c = wintoclient(ev->window))) + unmanage(c, 1); + + else if ((c = swallowingclient(ev->window))) + unmanage(c->swallowing, 1); +} + +void +detach(Client *c) +{ + Client **tc; + + for (tc = &c->mon->clients; *tc && *tc != c; tc = &(*tc)->next); + *tc = c->next; +} + +void +detachstack(Client *c) +{ + Client **tc, *t; + + for (tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext); + *tc = c->snext; + + if (c == c->mon->sel) { + for (t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext); + c->mon->sel = t; + } +} + +Monitor * +dirtomon(int dir) +{ + Monitor *m = NULL; + + if (dir > 0) { + if (!(m = selmon->next)) + m = mons; + } else if (selmon == mons) + for (m = mons; m->next; m = m->next); + else + for (m = mons; m->next != selmon; m = m->next); + return m; +} + +void +drawbar(Monitor *m) +{ + int x, w, tw = 0; + int boxs = drw->fonts->h / 9; + int boxw = drw->fonts->h / 6 + 2; + unsigned int i, occ = 0, urg = 0; + Client *c; + + if (!m->showbar) + return; + + /* draw status first so it can be overdrawn by tags later */ + if (m == selmon) { /* status is only drawn on selected monitor */ + drw_setscheme(drw, scheme[SchemeNorm]); + tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ + drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0); + } + + for (c = m->clients; c; c = c->next) { + occ |= c->tags; + if (c->isurgent) + urg |= c->tags; + } + x = 0; + for (i = 0; i < LENGTH(tags); i++) { + w = TEXTW(tags[i]); + drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + if (occ & 1 << i) + drw_rect(drw, x + boxs, boxs, boxw, boxw, + m == selmon && selmon->sel && selmon->sel->tags & 1 << i, + urg & 1 << i); + x += w; + } + w = TEXTW(m->ltsymbol); + drw_setscheme(drw, scheme[SchemeNorm]); + x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); + + if ((w = m->ww - tw - x) > bh) { + if (m->sel) { + drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); + if (m->sel->isfloating) + drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); + } else { + drw_setscheme(drw, scheme[SchemeNorm]); + drw_rect(drw, x, 0, w, bh, 1, 1); + } + } + drw_map(drw, m->barwin, 0, 0, m->ww, bh); +} + +void +drawbars(void) +{ + Monitor *m; + + for (m = mons; m; m = m->next) + drawbar(m); +} + +void +enternotify(XEvent *e) +{ + Client *c; + Monitor *m; + XCrossingEvent *ev = &e->xcrossing; + + if ((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root) + return; + c = wintoclient(ev->window); + m = c ? c->mon : wintomon(ev->window); + if (m != selmon) { + unfocus(selmon->sel, 1); + selmon = m; + } else if (!c || c == selmon->sel) + return; + focus(c); +} + +void +expose(XEvent *e) +{ + Monitor *m; + XExposeEvent *ev = &e->xexpose; + + if (ev->count == 0 && (m = wintomon(ev->window))) + drawbar(m); +} + +void +focus(Client *c) +{ + if (!c || !ISVISIBLE(c)) + for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); + if (selmon->sel && selmon->sel != c) + unfocus(selmon->sel, 0); + if (c) { + if (c->mon != selmon) + selmon = c->mon; + if (c->isurgent) + seturgent(c, 0); + detachstack(c); + attachstack(c); + grabbuttons(c, 1); + XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); + setfocus(c); + } else { + XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + XDeleteProperty(dpy, root, netatom[NetActiveWindow]); + } + selmon->sel = c; + drawbars(); +} + +/* there are some broken focus acquiring clients needing extra handling */ +void +focusin(XEvent *e) +{ + XFocusChangeEvent *ev = &e->xfocus; + + if (selmon->sel && ev->window != selmon->sel->win) + setfocus(selmon->sel); +} + +void +focusmon(const Arg *arg) +{ + Monitor *m; + + if (!mons->next) + return; + if ((m = dirtomon(arg->i)) == selmon) + return; + unfocus(selmon->sel, 0); + selmon = m; + focus(NULL); +} + +void +focusstack(const Arg *arg) +{ + Client *c = NULL, *i; + + if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) + return; + if (arg->i > 0) { + for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); + if (!c) + for (c = selmon->clients; c && !ISVISIBLE(c); c = c->next); + } else { + for (i = selmon->clients; i != selmon->sel; i = i->next) + if (ISVISIBLE(i)) + c = i; + if (!c) + for (; i; i = i->next) + if (ISVISIBLE(i)) + c = i; + } + if (c) { + focus(c); + restack(selmon); + } +} + +Atom +getatomprop(Client *c, Atom prop) +{ + int di; + unsigned long dl; + unsigned char *p = NULL; + Atom da, atom = None; + + if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM, + &da, &di, &dl, &dl, &p) == Success && p) { + atom = *(Atom *)p; + XFree(p); + } + return atom; +} + +int +getrootptr(int *x, int *y) +{ + int di; + unsigned int dui; + Window dummy; + + return XQueryPointer(dpy, root, &dummy, &dummy, x, y, &di, &di, &dui); +} + +long +getstate(Window w) +{ + int format; + long result = -1; + unsigned char *p = NULL; + unsigned long n, extra; + Atom real; + + if (XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState], + &real, &format, &n, &extra, (unsigned char **)&p) != Success) + return -1; + if (n != 0) + result = *p; + XFree(p); + return result; +} + +int +gettextprop(Window w, Atom atom, char *text, unsigned int size) +{ + char **list = NULL; + int n; + XTextProperty name; + + if (!text || size == 0) + return 0; + text[0] = '\0'; + if (!XGetTextProperty(dpy, w, &name, atom) || !name.nitems) + return 0; + if (name.encoding == XA_STRING) { + strncpy(text, (char *)name.value, size - 1); + } else if (XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success && n > 0 && *list) { + strncpy(text, *list, size - 1); + XFreeStringList(list); + } + text[size - 1] = '\0'; + XFree(name.value); + return 1; +} + +void +grabbuttons(Client *c, int focused) +{ + updatenumlockmask(); + { + unsigned int i, j; + unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; + XUngrabButton(dpy, AnyButton, AnyModifier, c->win); + if (!focused) + XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, + BUTTONMASK, GrabModeSync, GrabModeSync, None, None); + for (i = 0; i < LENGTH(buttons); i++) + if (buttons[i].click == ClkClientWin) + for (j = 0; j < LENGTH(modifiers); j++) + XGrabButton(dpy, buttons[i].button, + buttons[i].mask | modifiers[j], + c->win, False, BUTTONMASK, + GrabModeAsync, GrabModeSync, None, None); + } +} + +void +grabkeys(void) +{ + updatenumlockmask(); + { + unsigned int i, j, k; + unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; + int start, end, skip; + KeySym *syms; + + XUngrabKey(dpy, AnyKey, AnyModifier, root); + XDisplayKeycodes(dpy, &start, &end); + syms = XGetKeyboardMapping(dpy, start, end - start + 1, &skip); + if (!syms) + return; + for (k = start; k <= end; k++) + for (i = 0; i < LENGTH(keys); i++) + /* skip modifier codes, we do that ourselves */ + if (keys[i].keysym == syms[(k - start) * skip]) + for (j = 0; j < LENGTH(modifiers); j++) + XGrabKey(dpy, k, + keys[i].mod | modifiers[j], + root, True, + GrabModeAsync, GrabModeAsync); + XFree(syms); + } +} + +void +incnmaster(const Arg *arg) +{ + selmon->nmaster = MAX(selmon->nmaster + arg->i, 0); + arrange(selmon); +} + +#ifdef XINERAMA +static int +isuniquegeom(XineramaScreenInfo *unique, size_t n, XineramaScreenInfo *info) +{ + while (n--) + if (unique[n].x_org == info->x_org && unique[n].y_org == info->y_org + && unique[n].width == info->width && unique[n].height == info->height) + return 0; + return 1; +} +#endif /* XINERAMA */ + +void +keypress(XEvent *e) +{ + unsigned int i; + KeySym keysym; + XKeyEvent *ev; + + ev = &e->xkey; + keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); + for (i = 0; i < LENGTH(keys); i++) + if (keysym == keys[i].keysym + && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state) + && keys[i].func) + keys[i].func(&(keys[i].arg)); +} + +void +killclient(const Arg *arg) +{ + if (!selmon->sel) + return; + if (!sendevent(selmon->sel, wmatom[WMDelete])) { + XGrabServer(dpy); + XSetErrorHandler(xerrordummy); + XSetCloseDownMode(dpy, DestroyAll); + XKillClient(dpy, selmon->sel->win); + XSync(dpy, False); + XSetErrorHandler(xerror); + XUngrabServer(dpy); + } +} + +void +manage(Window w, XWindowAttributes *wa) +{ + Client *c, *t = NULL, *term = NULL; + Window trans = None; + XWindowChanges wc; + + c = ecalloc(1, sizeof(Client)); + c->win = w; + c->pid = winpid(w); + /* geometry */ + c->x = c->oldx = wa->x; + c->y = c->oldy = wa->y; + c->w = c->oldw = wa->width; + c->h = c->oldh = wa->height; + c->oldbw = wa->border_width; + + updatetitle(c); + if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) { + c->mon = t->mon; + c->tags = t->tags; + } else { + c->mon = selmon; + applyrules(c); + term = termforwin(c); + } + + if (c->x + WIDTH(c) > c->mon->wx + c->mon->ww) + c->x = c->mon->wx + c->mon->ww - WIDTH(c); + if (c->y + HEIGHT(c) > c->mon->wy + c->mon->wh) + c->y = c->mon->wy + c->mon->wh - HEIGHT(c); + c->x = MAX(c->x, c->mon->wx); + c->y = MAX(c->y, c->mon->wy); + c->bw = borderpx; + + wc.border_width = c->bw; + XConfigureWindow(dpy, w, CWBorderWidth, &wc); + XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel); + configure(c); /* propagates border_width, if size doesn't change */ + updatewindowtype(c); + updatesizehints(c); + updatewmhints(c); + XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); + grabbuttons(c, 0); + if (!c->isfloating) + c->isfloating = c->oldstate = trans != None || c->isfixed; + if (c->isfloating) + XRaiseWindow(dpy, c->win); + attach(c); + attachstack(c); + XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend, + (unsigned char *) &(c->win), 1); + XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ + setclientstate(c, NormalState); + if (c->mon == selmon) + unfocus(selmon->sel, 0); + c->mon->sel = c; + arrange(c->mon); + XMapWindow(dpy, c->win); + if (term) + swallow(term, c); + focus(NULL); +} + +void +mappingnotify(XEvent *e) +{ + XMappingEvent *ev = &e->xmapping; + + XRefreshKeyboardMapping(ev); + if (ev->request == MappingKeyboard) + grabkeys(); +} + +void +maprequest(XEvent *e) +{ + static XWindowAttributes wa; + XMapRequestEvent *ev = &e->xmaprequest; + + if (!XGetWindowAttributes(dpy, ev->window, &wa) || wa.override_redirect) + return; + if (!wintoclient(ev->window)) + manage(ev->window, &wa); +} + +void +monocle(Monitor *m) +{ + unsigned int n = 0; + Client *c; + + for (c = m->clients; c; c = c->next) + if (ISVISIBLE(c)) + n++; + if (n > 0) /* override layout symbol */ + snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); + for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) + resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); +} + +void +motionnotify(XEvent *e) +{ + static Monitor *mon = NULL; + Monitor *m; + XMotionEvent *ev = &e->xmotion; + + if (ev->window != root) + return; + if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) { + unfocus(selmon->sel, 1); + selmon = m; + focus(NULL); + } + mon = m; +} + +void +movemouse(const Arg *arg) +{ + int x, y, ocx, ocy, nx, ny; + Client *c; + Monitor *m; + XEvent ev; + Time lasttime = 0; + + if (!(c = selmon->sel)) + return; + if (c->isfullscreen) /* no support moving fullscreen windows by mouse */ + return; + restack(selmon); + ocx = c->x; + ocy = c->y; + if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, + None, cursor[CurMove]->cursor, CurrentTime) != GrabSuccess) + return; + if (!getrootptr(&x, &y)) + return; + do { + XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); + switch(ev.type) { + case ConfigureRequest: + case Expose: + case MapRequest: + handler[ev.type](&ev); + break; + case MotionNotify: + if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + continue; + lasttime = ev.xmotion.time; + + nx = ocx + (ev.xmotion.x - x); + ny = ocy + (ev.xmotion.y - y); + if (abs(selmon->wx - nx) < snap) + nx = selmon->wx; + else if (abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap) + nx = selmon->wx + selmon->ww - WIDTH(c); + if (abs(selmon->wy - ny) < snap) + ny = selmon->wy; + else if (abs((selmon->wy + selmon->wh) - (ny + HEIGHT(c))) < snap) + ny = selmon->wy + selmon->wh - HEIGHT(c); + if (!c->isfloating && selmon->lt[selmon->sellt]->arrange + && (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) + togglefloating(NULL); + if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) + resize(c, nx, ny, c->w, c->h, 1); + break; + } + } while (ev.type != ButtonRelease); + XUngrabPointer(dpy, CurrentTime); + if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { + sendmon(c, m); + selmon = m; + focus(NULL); + } +} + +Client * +nexttiled(Client *c) +{ + for (; c && (c->isfloating || !ISVISIBLE(c)); c = c->next); + return c; +} + +void +pop(Client *c) +{ + detach(c); + attach(c); + focus(c); + arrange(c->mon); +} + +void +propertynotify(XEvent *e) +{ + Client *c; + Window trans; + XPropertyEvent *ev = &e->xproperty; + + if ((ev->window == root) && (ev->atom == XA_WM_NAME)) + updatestatus(); + else if (ev->state == PropertyDelete) + return; /* ignore */ + else if ((c = wintoclient(ev->window))) { + switch(ev->atom) { + default: break; + case XA_WM_TRANSIENT_FOR: + if (!c->isfloating && (XGetTransientForHint(dpy, c->win, &trans)) && + (c->isfloating = (wintoclient(trans)) != NULL)) + arrange(c->mon); + break; + case XA_WM_NORMAL_HINTS: + c->hintsvalid = 0; + break; + case XA_WM_HINTS: + updatewmhints(c); + drawbars(); + break; + } + if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { + updatetitle(c); + if (c == c->mon->sel) + drawbar(c->mon); + } + if (ev->atom == netatom[NetWMWindowType]) + updatewindowtype(c); + } +} + +void +quit(const Arg *arg) +{ + running = 0; +} + +Monitor * +recttomon(int x, int y, int w, int h) +{ + Monitor *m, *r = selmon; + int a, area = 0; + + for (m = mons; m; m = m->next) + if ((a = INTERSECT(x, y, w, h, m)) > area) { + area = a; + r = m; + } + return r; +} + +void +resize(Client *c, int x, int y, int w, int h, int interact) +{ + if (applysizehints(c, &x, &y, &w, &h, interact)) + resizeclient(c, x, y, w, h); +} + +void +resizeclient(Client *c, int x, int y, int w, int h) +{ + XWindowChanges wc; + + c->oldx = c->x; c->x = wc.x = x; + c->oldy = c->y; c->y = wc.y = y; + c->oldw = c->w; c->w = wc.width = w; + c->oldh = c->h; c->h = wc.height = h; + wc.border_width = c->bw; + XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); + configure(c); + XSync(dpy, False); +} + +void +resizemouse(const Arg *arg) +{ + int ocx, ocy, nw, nh; + Client *c; + Monitor *m; + XEvent ev; + Time lasttime = 0; + + if (!(c = selmon->sel)) + return; + if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */ + return; + restack(selmon); + ocx = c->x; + ocy = c->y; + if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, + None, cursor[CurResize]->cursor, CurrentTime) != GrabSuccess) + return; + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); + do { + XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); + switch(ev.type) { + case ConfigureRequest: + case Expose: + case MapRequest: + handler[ev.type](&ev); + break; + case MotionNotify: + if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + continue; + lasttime = ev.xmotion.time; + + nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); + nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); + if (c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww + && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) + { + if (!c->isfloating && selmon->lt[selmon->sellt]->arrange + && (abs(nw - c->w) > snap || abs(nh - c->h) > snap)) + togglefloating(NULL); + } + if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) + resize(c, c->x, c->y, nw, nh, 1); + break; + } + } while (ev.type != ButtonRelease); + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); + XUngrabPointer(dpy, CurrentTime); + while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); + if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { + sendmon(c, m); + selmon = m; + focus(NULL); + } +} + +void +restack(Monitor *m) +{ + Client *c; + XEvent ev; + XWindowChanges wc; + + drawbar(m); + if (!m->sel) + return; + if (m->sel->isfloating || !m->lt[m->sellt]->arrange) + XRaiseWindow(dpy, m->sel->win); + if (m->lt[m->sellt]->arrange) { + wc.stack_mode = Below; + wc.sibling = m->barwin; + for (c = m->stack; c; c = c->snext) + if (!c->isfloating && ISVISIBLE(c)) { + XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc); + wc.sibling = c->win; + } + } + XSync(dpy, False); + while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); +} + +void +run(void) +{ + XEvent ev; + /* main event loop */ + XSync(dpy, False); + while (running && !XNextEvent(dpy, &ev)) + if (handler[ev.type]) + handler[ev.type](&ev); /* call handler */ +} + +void +scan(void) +{ + unsigned int i, num; + Window d1, d2, *wins = NULL; + XWindowAttributes wa; + + if (XQueryTree(dpy, root, &d1, &d2, &wins, &num)) { + for (i = 0; i < num; i++) { + if (!XGetWindowAttributes(dpy, wins[i], &wa) + || wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) + continue; + if (wa.map_state == IsViewable || getstate(wins[i]) == IconicState) + manage(wins[i], &wa); + } + for (i = 0; i < num; i++) { /* now the transients */ + if (!XGetWindowAttributes(dpy, wins[i], &wa)) + continue; + if (XGetTransientForHint(dpy, wins[i], &d1) + && (wa.map_state == IsViewable || getstate(wins[i]) == IconicState)) + manage(wins[i], &wa); + } + if (wins) + XFree(wins); + } +} + +void +sendmon(Client *c, Monitor *m) +{ + if (c->mon == m) + return; + unfocus(c, 1); + detach(c); + detachstack(c); + c->mon = m; + c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ + attach(c); + attachstack(c); + focus(NULL); + arrange(NULL); +} + +void +setclientstate(Client *c, long state) +{ + long data[] = { state, None }; + + XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, + PropModeReplace, (unsigned char *)data, 2); +} + +int +sendevent(Client *c, Atom proto) +{ + int n; + Atom *protocols; + int exists = 0; + XEvent ev; + + if (XGetWMProtocols(dpy, c->win, &protocols, &n)) { + while (!exists && n--) + exists = protocols[n] == proto; + XFree(protocols); + } + if (exists) { + ev.type = ClientMessage; + ev.xclient.window = c->win; + ev.xclient.message_type = wmatom[WMProtocols]; + ev.xclient.format = 32; + ev.xclient.data.l[0] = proto; + ev.xclient.data.l[1] = CurrentTime; + XSendEvent(dpy, c->win, False, NoEventMask, &ev); + } + return exists; +} + +void +setfocus(Client *c) +{ + if (!c->neverfocus) { + XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); + XChangeProperty(dpy, root, netatom[NetActiveWindow], + XA_WINDOW, 32, PropModeReplace, + (unsigned char *) &(c->win), 1); + } + sendevent(c, wmatom[WMTakeFocus]); +} + +void +setfullscreen(Client *c, int fullscreen) +{ + if (fullscreen && !c->isfullscreen) { + XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, + PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); + c->isfullscreen = 1; + c->oldstate = c->isfloating; + c->oldbw = c->bw; + c->bw = 0; + c->isfloating = 1; + resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); + XRaiseWindow(dpy, c->win); + } else if (!fullscreen && c->isfullscreen){ + XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, + PropModeReplace, (unsigned char*)0, 0); + c->isfullscreen = 0; + c->isfloating = c->oldstate; + c->bw = c->oldbw; + c->x = c->oldx; + c->y = c->oldy; + c->w = c->oldw; + c->h = c->oldh; + resizeclient(c, c->x, c->y, c->w, c->h); + arrange(c->mon); + } +} + +void +setlayout(const Arg *arg) +{ + if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt]) + selmon->sellt ^= 1; + if (arg && arg->v) + selmon->lt[selmon->sellt] = (Layout *)arg->v; + strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol); + if (selmon->sel) + arrange(selmon); + else + drawbar(selmon); +} + +/* arg > 1.0 will set mfact absolutely */ +void +setmfact(const Arg *arg) +{ + float f; + + if (!arg || !selmon->lt[selmon->sellt]->arrange) + return; + f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0; + if (f < 0.05 || f > 0.95) + return; + selmon->mfact = f; + arrange(selmon); +} + +void +setup(void) +{ + int i; + XSetWindowAttributes wa; + Atom utf8string; + struct sigaction sa; + + /* do not transform children into zombies when they terminate */ + sigemptyset(&sa.sa_mask); + sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT | SA_RESTART; + sa.sa_handler = SIG_IGN; + sigaction(SIGCHLD, &sa, NULL); + + /* clean up any zombies (inherited from .xinitrc etc) immediately */ + while (waitpid(-1, NULL, WNOHANG) > 0); + + /* init screen */ + screen = DefaultScreen(dpy); + sw = DisplayWidth(dpy, screen); + sh = DisplayHeight(dpy, screen); + root = RootWindow(dpy, screen); + drw = drw_create(dpy, screen, root, sw, sh); + if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) + die("no fonts could be loaded."); + lrpad = drw->fonts->h; + bh = drw->fonts->h + 2; + updategeom(); + /* init atoms */ + utf8string = XInternAtom(dpy, "UTF8_STRING", False); + wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); + wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); + wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False); + wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False); + netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); + netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); + netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); + netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False); + netatom[NetWMCheck] = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False); + netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False); + netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False); + netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False); + netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False); + /* init cursors */ + cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr); + cursor[CurResize] = drw_cur_create(drw, XC_sizing); + cursor[CurMove] = drw_cur_create(drw, XC_fleur); + /* init appearance */ + scheme = ecalloc(LENGTH(colors), sizeof(Clr *)); + for (i = 0; i < LENGTH(colors); i++) + scheme[i] = drw_scm_create(drw, colors[i], 3); + /* init bars */ + updatebars(); + updatestatus(); + /* supporting window for NetWMCheck */ + wmcheckwin = XCreateSimpleWindow(dpy, root, 0, 0, 1, 1, 0, 0, 0); + XChangeProperty(dpy, wmcheckwin, netatom[NetWMCheck], XA_WINDOW, 32, + PropModeReplace, (unsigned char *) &wmcheckwin, 1); + XChangeProperty(dpy, wmcheckwin, netatom[NetWMName], utf8string, 8, + PropModeReplace, (unsigned char *) "dwm", 3); + XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32, + PropModeReplace, (unsigned char *) &wmcheckwin, 1); + /* EWMH support per view */ + XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, + PropModeReplace, (unsigned char *) netatom, NetLast); + XDeleteProperty(dpy, root, netatom[NetClientList]); + /* select events */ + wa.cursor = cursor[CurNormal]->cursor; + wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask + |ButtonPressMask|PointerMotionMask|EnterWindowMask + |LeaveWindowMask|StructureNotifyMask|PropertyChangeMask; + XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa); + XSelectInput(dpy, root, wa.event_mask); + grabkeys(); + focus(NULL); +} + +void +seturgent(Client *c, int urg) +{ + XWMHints *wmh; + + c->isurgent = urg; + if (!(wmh = XGetWMHints(dpy, c->win))) + return; + wmh->flags = urg ? (wmh->flags | XUrgencyHint) : (wmh->flags & ~XUrgencyHint); + XSetWMHints(dpy, c->win, wmh); + XFree(wmh); +} + +void +showhide(Client *c) +{ + if (!c) + return; + if (ISVISIBLE(c)) { + /* show clients top down */ + XMoveWindow(dpy, c->win, c->x, c->y); + if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen) + resize(c, c->x, c->y, c->w, c->h, 0); + showhide(c->snext); + } else { + /* hide clients bottom up */ + showhide(c->snext); + XMoveWindow(dpy, c->win, WIDTH(c) * -2, c->y); + } +} + +void +spawn(const Arg *arg) +{ + struct sigaction sa; + + if (arg->v == dmenucmd) + dmenumon[0] = '0' + selmon->num; + if (fork() == 0) { + if (dpy) + close(ConnectionNumber(dpy)); + setsid(); + + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; + sa.sa_handler = SIG_DFL; + sigaction(SIGCHLD, &sa, NULL); + + execvp(((char **)arg->v)[0], (char **)arg->v); + die("dwm: execvp '%s' failed:", ((char **)arg->v)[0]); + } +} + +void +tag(const Arg *arg) +{ + if (selmon->sel && arg->ui & TAGMASK) { + selmon->sel->tags = arg->ui & TAGMASK; + focus(NULL); + arrange(selmon); + } +} + +void +tagmon(const Arg *arg) +{ + if (!selmon->sel || !mons->next) + return; + sendmon(selmon->sel, dirtomon(arg->i)); +} + +void +tile(Monitor *m) +{ + unsigned int i, n, h, mw, my, ty; + Client *c; + + for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); + if (n == 0) + return; + + if (n > m->nmaster) + mw = m->nmaster ? m->ww * m->mfact : 0; + else + mw = m->ww; + for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) + if (i < m->nmaster) { + h = (m->wh - my) / (MIN(n, m->nmaster) - i); + resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); + if (my + HEIGHT(c) < m->wh) + my += HEIGHT(c); + } else { + h = (m->wh - ty) / (n - i); + resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); + if (ty + HEIGHT(c) < m->wh) + ty += HEIGHT(c); + } +} + +void +togglebar(const Arg *arg) +{ + selmon->showbar = !selmon->showbar; + updatebarpos(selmon); + XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh); + arrange(selmon); +} + +void +togglefloating(const Arg *arg) +{ + if (!selmon->sel) + return; + if (selmon->sel->isfullscreen) /* no support for fullscreen windows */ + return; + selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed; + if (selmon->sel->isfloating) + resize(selmon->sel, selmon->sel->x, selmon->sel->y, + selmon->sel->w, selmon->sel->h, 0); + arrange(selmon); +} + +void +toggletag(const Arg *arg) +{ + unsigned int newtags; + + if (!selmon->sel) + return; + newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); + if (newtags) { + selmon->sel->tags = newtags; + focus(NULL); + arrange(selmon); + } +} + +void +toggleview(const Arg *arg) +{ + unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); + + if (newtagset) { + selmon->tagset[selmon->seltags] = newtagset; + focus(NULL); + arrange(selmon); + } +} + +void +unfocus(Client *c, int setfocus) +{ + if (!c) + return; + grabbuttons(c, 0); + XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel); + if (setfocus) { + XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + XDeleteProperty(dpy, root, netatom[NetActiveWindow]); + } +} + +void +unmanage(Client *c, int destroyed) +{ + Monitor *m = c->mon; + XWindowChanges wc; + + if (c->swallowing) { + unswallow(c); + return; + } + + Client *s = swallowingclient(c->win); + if (s) { + free(s->swallowing); + s->swallowing = NULL; + arrange(m); + focus(NULL); + return; + } + + detach(c); + detachstack(c); + if (!destroyed) { + wc.border_width = c->oldbw; + XGrabServer(dpy); /* avoid race conditions */ + XSetErrorHandler(xerrordummy); + XSelectInput(dpy, c->win, NoEventMask); + XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */ + XUngrabButton(dpy, AnyButton, AnyModifier, c->win); + setclientstate(c, WithdrawnState); + XSync(dpy, False); + XSetErrorHandler(xerror); + XUngrabServer(dpy); + } + free(c); + + if (!s) { + arrange(m); + focus(NULL); + updateclientlist(); + } +} + +void +unmapnotify(XEvent *e) +{ + Client *c; + XUnmapEvent *ev = &e->xunmap; + + if ((c = wintoclient(ev->window))) { + if (ev->send_event) + setclientstate(c, WithdrawnState); + else + unmanage(c, 0); + } +} + +void +updatebars(void) +{ + Monitor *m; + XSetWindowAttributes wa = { + .override_redirect = True, + .background_pixmap = ParentRelative, + .event_mask = ButtonPressMask|ExposureMask + }; + XClassHint ch = {"dwm", "dwm"}; + for (m = mons; m; m = m->next) { + if (m->barwin) + continue; + m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen), + CopyFromParent, DefaultVisual(dpy, screen), + CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); + XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); + XMapRaised(dpy, m->barwin); + XSetClassHint(dpy, m->barwin, &ch); + } +} + +void +updatebarpos(Monitor *m) +{ + m->wy = m->my; + m->wh = m->mh; + if (m->showbar) { + m->wh -= bh; + m->by = m->topbar ? m->wy : m->wy + m->wh; + m->wy = m->topbar ? m->wy + bh : m->wy; + } else + m->by = -bh; +} + +void +updateclientlist() +{ + Client *c; + Monitor *m; + + XDeleteProperty(dpy, root, netatom[NetClientList]); + for (m = mons; m; m = m->next) + for (c = m->clients; c; c = c->next) + XChangeProperty(dpy, root, netatom[NetClientList], + XA_WINDOW, 32, PropModeAppend, + (unsigned char *) &(c->win), 1); +} + +int +updategeom(void) +{ + int dirty = 0; + +#ifdef XINERAMA + if (XineramaIsActive(dpy)) { + int i, j, n, nn; + Client *c; + Monitor *m; + XineramaScreenInfo *info = XineramaQueryScreens(dpy, &nn); + XineramaScreenInfo *unique = NULL; + + for (n = 0, m = mons; m; m = m->next, n++); + /* only consider unique geometries as separate screens */ + unique = ecalloc(nn, sizeof(XineramaScreenInfo)); + for (i = 0, j = 0; i < nn; i++) + if (isuniquegeom(unique, j, &info[i])) + memcpy(&unique[j++], &info[i], sizeof(XineramaScreenInfo)); + XFree(info); + nn = j; + + /* new monitors if nn > n */ + for (i = n; i < nn; i++) { + for (m = mons; m && m->next; m = m->next); + if (m) + m->next = createmon(); + else + mons = createmon(); + } + for (i = 0, m = mons; i < nn && m; m = m->next, i++) + if (i >= n + || unique[i].x_org != m->mx || unique[i].y_org != m->my + || unique[i].width != m->mw || unique[i].height != m->mh) + { + dirty = 1; + m->num = i; + m->mx = m->wx = unique[i].x_org; + m->my = m->wy = unique[i].y_org; + m->mw = m->ww = unique[i].width; + m->mh = m->wh = unique[i].height; + updatebarpos(m); + } + /* removed monitors if n > nn */ + for (i = nn; i < n; i++) { + for (m = mons; m && m->next; m = m->next); + while ((c = m->clients)) { + dirty = 1; + m->clients = c->next; + detachstack(c); + c->mon = mons; + attach(c); + attachstack(c); + } + if (m == selmon) + selmon = mons; + cleanupmon(m); + } + free(unique); + } else +#endif /* XINERAMA */ + { /* default monitor setup */ + if (!mons) + mons = createmon(); + if (mons->mw != sw || mons->mh != sh) { + dirty = 1; + mons->mw = mons->ww = sw; + mons->mh = mons->wh = sh; + updatebarpos(mons); + } + } + if (dirty) { + selmon = mons; + selmon = wintomon(root); + } + return dirty; +} + +void +updatenumlockmask(void) +{ + unsigned int i, j; + XModifierKeymap *modmap; + + numlockmask = 0; + modmap = XGetModifierMapping(dpy); + for (i = 0; i < 8; i++) + for (j = 0; j < modmap->max_keypermod; j++) + if (modmap->modifiermap[i * modmap->max_keypermod + j] + == XKeysymToKeycode(dpy, XK_Num_Lock)) + numlockmask = (1 << i); + XFreeModifiermap(modmap); +} + +void +updatesizehints(Client *c) +{ + long msize; + XSizeHints size; + + if (!XGetWMNormalHints(dpy, c->win, &size, &msize)) + /* size is uninitialized, ensure that size.flags aren't used */ + size.flags = PSize; + if (size.flags & PBaseSize) { + c->basew = size.base_width; + c->baseh = size.base_height; + } else if (size.flags & PMinSize) { + c->basew = size.min_width; + c->baseh = size.min_height; + } else + c->basew = c->baseh = 0; + if (size.flags & PResizeInc) { + c->incw = size.width_inc; + c->inch = size.height_inc; + } else + c->incw = c->inch = 0; + if (size.flags & PMaxSize) { + c->maxw = size.max_width; + c->maxh = size.max_height; + } else + c->maxw = c->maxh = 0; + if (size.flags & PMinSize) { + c->minw = size.min_width; + c->minh = size.min_height; + } else if (size.flags & PBaseSize) { + c->minw = size.base_width; + c->minh = size.base_height; + } else + c->minw = c->minh = 0; + if (size.flags & PAspect) { + c->mina = (float)size.min_aspect.y / size.min_aspect.x; + c->maxa = (float)size.max_aspect.x / size.max_aspect.y; + } else + c->maxa = c->mina = 0.0; + c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh); + c->hintsvalid = 1; +} + +void +updatestatus(void) +{ + if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) + strcpy(stext, "dwm-"VERSION); + drawbar(selmon); +} + +void +updatetitle(Client *c) +{ + if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name)) + gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); + if (c->name[0] == '\0') /* hack to mark broken clients */ + strcpy(c->name, broken); +} + +void +updatewindowtype(Client *c) +{ + Atom state = getatomprop(c, netatom[NetWMState]); + Atom wtype = getatomprop(c, netatom[NetWMWindowType]); + + if (state == netatom[NetWMFullscreen]) + setfullscreen(c, 1); + if (wtype == netatom[NetWMWindowTypeDialog]) + c->isfloating = 1; +} + +void +updatewmhints(Client *c) +{ + XWMHints *wmh; + + if ((wmh = XGetWMHints(dpy, c->win))) { + if (c == selmon->sel && wmh->flags & XUrgencyHint) { + wmh->flags &= ~XUrgencyHint; + XSetWMHints(dpy, c->win, wmh); + } else + c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0; + if (wmh->flags & InputHint) + c->neverfocus = !wmh->input; + else + c->neverfocus = 0; + XFree(wmh); + } +} + +void +view(const Arg *arg) +{ + if ((arg->ui & TAGMASK) == selmon->tagset[selmon->seltags]) + return; + selmon->seltags ^= 1; /* toggle sel tagset */ + if (arg->ui & TAGMASK) + selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; + focus(NULL); + arrange(selmon); +} + +pid_t +winpid(Window w) +{ + + pid_t result = 0; + +#ifdef __linux__ + xcb_res_client_id_spec_t spec = {0}; + spec.client = w; + spec.mask = XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID; + + xcb_generic_error_t *e = NULL; + xcb_res_query_client_ids_cookie_t c = xcb_res_query_client_ids(xcon, 1, &spec); + xcb_res_query_client_ids_reply_t *r = xcb_res_query_client_ids_reply(xcon, c, &e); + + if (!r) + return (pid_t)0; + + xcb_res_client_id_value_iterator_t i = xcb_res_query_client_ids_ids_iterator(r); + for (; i.rem; xcb_res_client_id_value_next(&i)) { + spec = i.data->spec; + if (spec.mask & XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID) { + uint32_t *t = xcb_res_client_id_value_value(i.data); + result = *t; + break; + } + } + + free(r); + + if (result == (pid_t)-1) + result = 0; + +#endif /* __linux__ */ + +#ifdef __OpenBSD__ + Atom type; + int format; + unsigned long len, bytes; + unsigned char *prop; + pid_t ret; + + if (XGetWindowProperty(dpy, w, XInternAtom(dpy, "_NET_WM_PID", 0), 0, 1, False, AnyPropertyType, &type, &format, &len, &bytes, &prop) != Success || !prop) + return 0; + + ret = *(pid_t*)prop; + XFree(prop); + result = ret; + +#endif /* __OpenBSD__ */ + return result; +} + +pid_t +getparentprocess(pid_t p) +{ + unsigned int v = 0; + +#ifdef __linux__ + FILE *f; + char buf[256]; + snprintf(buf, sizeof(buf) - 1, "/proc/%u/stat", (unsigned)p); + + if (!(f = fopen(buf, "r"))) + return 0; + + fscanf(f, "%*u %*s %*c %u", &v); + fclose(f); +#endif /* __linux__*/ + +#ifdef __OpenBSD__ + int n; + kvm_t *kd; + struct kinfo_proc *kp; + + kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, NULL); + if (!kd) + return 0; + + kp = kvm_getprocs(kd, KERN_PROC_PID, p, sizeof(*kp), &n); + v = kp->p_ppid; +#endif /* __OpenBSD__ */ + + return (pid_t)v; +} + +int +isdescprocess(pid_t p, pid_t c) +{ + while (p != c && c != 0) + c = getparentprocess(c); + + return (int)c; +} + +Client * +termforwin(const Client *w) +{ + Client *c; + Monitor *m; + + if (!w->pid || w->isterminal) + return NULL; + + for (m = mons; m; m = m->next) { + for (c = m->clients; c; c = c->next) { + if (c->isterminal && !c->swallowing && c->pid && isdescprocess(c->pid, w->pid)) + return c; + } + } + + return NULL; +} + +Client * +swallowingclient(Window w) +{ + Client *c; + Monitor *m; + + for (m = mons; m; m = m->next) { + for (c = m->clients; c; c = c->next) { + if (c->swallowing && c->swallowing->win == w) + return c; + } + } + + return NULL; +} + +Client * +wintoclient(Window w) +{ + Client *c; + Monitor *m; + + for (m = mons; m; m = m->next) + for (c = m->clients; c; c = c->next) + if (c->win == w) + return c; + return NULL; +} + +Monitor * +wintomon(Window w) +{ + int x, y; + Client *c; + Monitor *m; + + if (w == root && getrootptr(&x, &y)) + return recttomon(x, y, 1, 1); + for (m = mons; m; m = m->next) + if (w == m->barwin) + return m; + if ((c = wintoclient(w))) + return c->mon; + return selmon; +} + +/* There's no way to check accesses to destroyed windows, thus those cases are + * ignored (especially on UnmapNotify's). Other types of errors call Xlibs + * default error handler, which may call exit. */ +int +xerror(Display *dpy, XErrorEvent *ee) +{ + if (ee->error_code == BadWindow + || (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch) + || (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable) + || (ee->request_code == X_PolyFillRectangle && ee->error_code == BadDrawable) + || (ee->request_code == X_PolySegment && ee->error_code == BadDrawable) + || (ee->request_code == X_ConfigureWindow && ee->error_code == BadMatch) + || (ee->request_code == X_GrabButton && ee->error_code == BadAccess) + || (ee->request_code == X_GrabKey && ee->error_code == BadAccess) + || (ee->request_code == X_CopyArea && ee->error_code == BadDrawable)) + return 0; + fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n", + ee->request_code, ee->error_code); + return xerrorxlib(dpy, ee); /* may call exit */ +} + +int +xerrordummy(Display *dpy, XErrorEvent *ee) +{ + return 0; +} + +/* Startup Error handler to check if another window manager + * is already running. */ +int +xerrorstart(Display *dpy, XErrorEvent *ee) +{ + die("dwm: another window manager is already running"); + return -1; +} + +void +zoom(const Arg *arg) +{ + Client *c = selmon->sel; + + if (!selmon->lt[selmon->sellt]->arrange || !c || c->isfloating) + return; + if (c == nexttiled(selmon->clients) && !(c = nexttiled(c->next))) + return; + pop(c); +} + +int +main(int argc, char *argv[]) +{ + if (argc == 2 && !strcmp("-v", argv[1])) + die("dwm-"VERSION); + else if (argc != 1) + die("usage: dwm [-v]"); + if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) + fputs("warning: no locale support\n", stderr); + if (!(dpy = XOpenDisplay(NULL))) + die("dwm: cannot open display"); + if (!(xcon = XGetXCBConnection(dpy))) + die("dwm: cannot get xcb connection\n"); + checkotherwm(); + setup(); +#ifdef __OpenBSD__ + if (pledge("stdio rpath proc exec ps", NULL) == -1) + die("pledge"); +#endif /* __OpenBSD__ */ + scan(); + run(); + cleanup(); + XCloseDisplay(dpy); + return EXIT_SUCCESS; +} diff --git a/vildwm/dwm.c.rej b/vildwm/dwm.c.rej new file mode 100755 index 0000000..20852aa --- /dev/null +++ b/vildwm/dwm.c.rej @@ -0,0 +1,118 @@ +--- dwm.c ++++ dwm.c +@@ -233,6 +233,8 @@ static int xerror(Display *dpy, XErrorEvent *ee); + static int xerrordummy(Display *dpy, XErrorEvent *ee); + static int xerrorstart(Display *dpy, XErrorEvent *ee); + static void zoom(const Arg *arg); ++static void centeredmaster(Monitor *m); ++static void centeredfloatingmaster(Monitor *m); + + /* variables */ + static const char broken[] = "broken"; +@@ -2139,3 +2141,106 @@ main(int argc, char *argv[]) + XCloseDisplay(dpy); + return EXIT_SUCCESS; + } ++ ++void ++centeredmaster(Monitor *m) ++{ ++ unsigned int i, n, h, mw, mx, my, oty, ety, tw; ++ Client *c; ++ ++ /* count number of clients in the selected monitor */ ++ for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); ++ if (n == 0) ++ return; ++ ++ /* initialize areas */ ++ mw = m->ww; ++ mx = 0; ++ my = 0; ++ tw = mw; ++ ++ if (n > m->nmaster) { ++ /* go mfact box in the center if more than nmaster clients */ ++ mw = m->nmaster ? m->ww * m->mfact : 0; ++ tw = m->ww - mw; ++ ++ if (n - m->nmaster > 1) { ++ /* only one client */ ++ mx = (m->ww - mw) / 2; ++ tw = (m->ww - mw) / 2; ++ } ++ } ++ ++ oty = 0; ++ ety = 0; ++ for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) ++ if (i < m->nmaster) { ++ /* nmaster clients are stacked vertically, in the center ++ * of the screen */ ++ h = (m->wh - my) / (MIN(n, m->nmaster) - i); ++ resize(c, m->wx + mx, m->wy + my, mw - (2*c->bw), ++ h - (2*c->bw), 0); ++ my += HEIGHT(c); ++ } else { ++ /* stack clients are stacked vertically */ ++ if ((i - m->nmaster) % 2 ) { ++ h = (m->wh - ety) / ( (1 + n - i) / 2); ++ resize(c, m->wx, m->wy + ety, tw - (2*c->bw), ++ h - (2*c->bw), 0); ++ ety += HEIGHT(c); ++ } else { ++ h = (m->wh - oty) / ((1 + n - i) / 2); ++ resize(c, m->wx + mx + mw, m->wy + oty, ++ tw - (2*c->bw), h - (2*c->bw), 0); ++ oty += HEIGHT(c); ++ } ++ } ++} ++ ++void ++centeredfloatingmaster(Monitor *m) ++{ ++ unsigned int i, n, w, mh, mw, mx, mxo, my, myo, tx; ++ Client *c; ++ ++ /* count number of clients in the selected monitor */ ++ for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); ++ if (n == 0) ++ return; ++ ++ /* initialize nmaster area */ ++ if (n > m->nmaster) { ++ /* go mfact box in the center if more than nmaster clients */ ++ if (m->ww > m->wh) { ++ mw = m->nmaster ? m->ww * m->mfact : 0; ++ mh = m->nmaster ? m->wh * 0.9 : 0; ++ } else { ++ mh = m->nmaster ? m->wh * m->mfact : 0; ++ mw = m->nmaster ? m->ww * 0.9 : 0; ++ } ++ mx = mxo = (m->ww - mw) / 2; ++ my = myo = (m->wh - mh) / 2; ++ } else { ++ /* go fullscreen if all clients are in the master area */ ++ mh = m->wh; ++ mw = m->ww; ++ mx = mxo = 0; ++ my = myo = 0; ++ } ++ ++ for(i = tx = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) ++ if (i < m->nmaster) { ++ /* nmaster clients are stacked horizontally, in the center ++ * of the screen */ ++ w = (mw + mxo - mx) / (MIN(n, m->nmaster) - i); ++ resize(c, m->wx + mx, m->wy + my, w - (2*c->bw), ++ mh - (2*c->bw), 0); ++ mx += WIDTH(c); ++ } else { ++ /* stack clients are stacked horizontally */ ++ w = (m->ww - tx) / (n - i); ++ resize(c, m->wx + tx, m->wy, w - (2*c->bw), ++ m->wh - (2*c->bw), 0); ++ tx += WIDTH(c); ++ } ++} diff --git a/vildwm/dwm.o b/vildwm/dwm.o new file mode 100644 index 0000000000000000000000000000000000000000..9b1b2bf155f77cb4a4b1d3cf355147e9739666ba GIT binary patch literal 62016 zcmeFadw5mF)d#$D0RqA~v5iVw)T2gC6fjY=L{W3#1a>q)fB+Fx2uUE3ki_I1E?y9O zK-t|!Y1P(N+uGK)_SIJUdczwA!qs}gJKoV(?TJCf8=$r3`>mO^PKJ@)_kEx5`TqEx z=iP8}_WsS9HEY(aS+izl@3XHes~De|k>SXZ;hf|2T?y(qoxA(aOVw$qbGUPu;GKk@y9l}9p^Qec~-C1 zdFV^!QP*CETXNal#Bi5#fcep`znVDsmzMe!e{+vpU4@IpK$NBOz3zHr=XSZ?exfZ% zuDcMaPMngJDBZ5VM&&-Q)UW!nd)ykz9e=y4xYO%LHS3CcPgM9v(&@BV$KWGee+Zoy zzZT8-)LpebKHZ;E`j?$xHcSrc1jU`=I_Vc>Ry}!GDd27!fE4-bvp_#*o!d>-Td;}_6 zO%*r_m0be~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)J#ro|Nqoo&HAVE zX{fNvUjdAYu$sv!oedC2x&BK3m3fl@t8qg4Ib0RkS;P4w|Igqe5C+VC7(Epzj7|Rr zsD6;&kO7PjqZa`sLHZ4l6#>~>aM%x03j#2DH4+;v0VS?L^&^Xc*f4!C@dHpX^zgd@ z)o+0oU@(8f^zQ~Tu*F}%V~C0cPz|8?11*Vy>4)`4LGD4f8>CYp2ShS36hPOXhydAZ sff!vssF{P2_JLvzZ9oDD0-^Obgoo*WkejgS|L_{3;}lFIltvFf0Byq(WB>pF literal 0 HcmV?d00001 diff --git a/vildwm/dwm.png b/vildwm/dwm.png new file mode 100755 index 0000000000000000000000000000000000000000..b1f9ba7e5f4cc7350ee2392ebcea5fcbe00fb49b GIT binary patch literal 373 zcmeAS@N?(olHy`uVBq!ia0vp^2Y@($g9*gC@m3f}u_bxCyDx`7I;J! zGca%iWx0hJ8D`Cq01C2~c>21sUt<^MF=V?Ztt9{yk}YwKC~?lu%}vcKVQ?-=O)N=G zQ7F$W$xsN%NL6t6^bL5QqM8R(c+=CxF{I+w+q;fj4F)_6j>`Z3pZ>_($QEQ&92OXP z%lpEKGwG8$G-U1H{@Y%;mx-mNK|p|siBVAj$Z~Mt-~h6K0!}~{PyozQ07(f5fTdVi zm=-zT`NweeJ#%S&{fequZGmkDDC*%x$$Sa*fAP=$`nJkhx1Y~k<8b2;Hq)FOdV=P$ q&oWzoxz_&nv&n0)xBzV8k*jsxheTIy&cCY600f?{elF{r5}E*x)opSB literal 0 HcmV?d00001 diff --git a/vildwm/dwmcenter.diff b/vildwm/dwmcenter.diff new file mode 100755 index 0000000..6926892 --- /dev/null +++ b/vildwm/dwmcenter.diff @@ -0,0 +1,142 @@ +diff --git a/config.def.h b/config.def.h +index 7054c06..527b214 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -39,6 +39,8 @@ static const Layout layouts[] = { + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, ++ { "|M|", centeredmaster }, ++ { ">M>", centeredfloatingmaster }, + }; + + /* key definitions */ +@@ -74,6 +76,8 @@ static Key keys[] = { + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, ++ { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, ++ { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, +diff --git a/dwm.c b/dwm.c +index 0362114..1e81412 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -233,6 +233,8 @@ static int xerror(Display *dpy, XErrorEvent *ee); + static int xerrordummy(Display *dpy, XErrorEvent *ee); + static int xerrorstart(Display *dpy, XErrorEvent *ee); + static void zoom(const Arg *arg); ++static void centeredmaster(Monitor *m); ++static void centeredfloatingmaster(Monitor *m); + + /* variables */ + static const char broken[] = "broken"; +@@ -2139,3 +2141,106 @@ main(int argc, char *argv[]) + XCloseDisplay(dpy); + return EXIT_SUCCESS; + } ++ ++void ++centeredmaster(Monitor *m) ++{ ++ unsigned int i, n, h, mw, mx, my, oty, ety, tw; ++ Client *c; ++ ++ /* count number of clients in the selected monitor */ ++ for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); ++ if (n == 0) ++ return; ++ ++ /* initialize areas */ ++ mw = m->ww; ++ mx = 0; ++ my = 0; ++ tw = mw; ++ ++ if (n > m->nmaster) { ++ /* go mfact box in the center if more than nmaster clients */ ++ mw = m->nmaster ? m->ww * m->mfact : 0; ++ tw = m->ww - mw; ++ ++ if (n - m->nmaster > 1) { ++ /* only one client */ ++ mx = (m->ww - mw) / 2; ++ tw = (m->ww - mw) / 2; ++ } ++ } ++ ++ oty = 0; ++ ety = 0; ++ for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) ++ if (i < m->nmaster) { ++ /* nmaster clients are stacked vertically, in the center ++ * of the screen */ ++ h = (m->wh - my) / (MIN(n, m->nmaster) - i); ++ resize(c, m->wx + mx, m->wy + my, mw - (2*c->bw), ++ h - (2*c->bw), 0); ++ my += HEIGHT(c); ++ } else { ++ /* stack clients are stacked vertically */ ++ if ((i - m->nmaster) % 2 ) { ++ h = (m->wh - ety) / ( (1 + n - i) / 2); ++ resize(c, m->wx, m->wy + ety, tw - (2*c->bw), ++ h - (2*c->bw), 0); ++ ety += HEIGHT(c); ++ } else { ++ h = (m->wh - oty) / ((1 + n - i) / 2); ++ resize(c, m->wx + mx + mw, m->wy + oty, ++ tw - (2*c->bw), h - (2*c->bw), 0); ++ oty += HEIGHT(c); ++ } ++ } ++} ++ ++void ++centeredfloatingmaster(Monitor *m) ++{ ++ unsigned int i, n, w, mh, mw, mx, mxo, my, myo, tx; ++ Client *c; ++ ++ /* count number of clients in the selected monitor */ ++ for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); ++ if (n == 0) ++ return; ++ ++ /* initialize nmaster area */ ++ if (n > m->nmaster) { ++ /* go mfact box in the center if more than nmaster clients */ ++ if (m->ww > m->wh) { ++ mw = m->nmaster ? m->ww * m->mfact : 0; ++ mh = m->nmaster ? m->wh * 0.9 : 0; ++ } else { ++ mh = m->nmaster ? m->wh * m->mfact : 0; ++ mw = m->nmaster ? m->ww * 0.9 : 0; ++ } ++ mx = mxo = (m->ww - mw) / 2; ++ my = myo = (m->wh - mh) / 2; ++ } else { ++ /* go fullscreen if all clients are in the master area */ ++ mh = m->wh; ++ mw = m->ww; ++ mx = mxo = 0; ++ my = myo = 0; ++ } ++ ++ for(i = tx = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) ++ if (i < m->nmaster) { ++ /* nmaster clients are stacked horizontally, in the center ++ * of the screen */ ++ w = (mw + mxo - mx) / (MIN(n, m->nmaster) - i); ++ resize(c, m->wx + mx, m->wy + my, w - (2*c->bw), ++ mh - (2*c->bw), 0); ++ mx += WIDTH(c); ++ } else { ++ /* stack clients are stacked horizontally */ ++ w = (m->ww - tx) / (n - i); ++ resize(c, m->wx + tx, m->wy, w - (2*c->bw), ++ m->wh - (2*c->bw), 0); ++ tx += WIDTH(c); ++ } ++} diff --git a/vildwm/dwmfib.diff b/vildwm/dwmfib.diff new file mode 100755 index 0000000..81bba7a --- /dev/null +++ b/vildwm/dwmfib.diff @@ -0,0 +1,114 @@ +From ec9f55b6005cfa3b025b3d700c61af3ce539d057 Mon Sep 17 00:00:00 2001 +From: Niki Yoshiuchi +Date: Sat, 18 Apr 2020 09:55:26 -0700 +Subject: [PATCH] Adding the fibonacci layout patch + +--- + config.def.h | 5 ++++ + fibonacci.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 71 insertions(+) + create mode 100644 fibonacci.c + +diff --git a/config.def.h b/config.def.h +index 1c0b587..5708487 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -36,11 +36,14 @@ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] + static const int nmaster = 1; /* number of clients in master area */ + static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ + ++#include "fibonacci.c" + static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, ++ { "[@]", spiral }, ++ { "[\\]", dwindle }, + }; + + /* key definitions */ +@@ -76,6 +79,8 @@ static Key keys[] = { + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, ++ { MODKEY, XK_r, setlayout, {.v = &layouts[3]} }, ++ { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, +diff --git a/fibonacci.c b/fibonacci.c +new file mode 100644 +index 0000000..fce0a57 +--- /dev/null ++++ b/fibonacci.c +@@ -0,0 +1,66 @@ ++void ++fibonacci(Monitor *mon, int s) { ++ unsigned int i, n, nx, ny, nw, nh; ++ Client *c; ++ ++ for(n = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next), n++); ++ if(n == 0) ++ return; ++ ++ nx = mon->wx; ++ ny = 0; ++ nw = mon->ww; ++ nh = mon->wh; ++ ++ for(i = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next)) { ++ if((i % 2 && nh / 2 > 2 * c->bw) ++ || (!(i % 2) && nw / 2 > 2 * c->bw)) { ++ if(i < n - 1) { ++ if(i % 2) ++ nh /= 2; ++ else ++ nw /= 2; ++ if((i % 4) == 2 && !s) ++ nx += nw; ++ else if((i % 4) == 3 && !s) ++ ny += nh; ++ } ++ if((i % 4) == 0) { ++ if(s) ++ ny += nh; ++ else ++ ny -= nh; ++ } ++ else if((i % 4) == 1) ++ nx += nw; ++ else if((i % 4) == 2) ++ ny += nh; ++ else if((i % 4) == 3) { ++ if(s) ++ nx += nw; ++ else ++ nx -= nw; ++ } ++ if(i == 0) ++ { ++ if(n != 1) ++ nw = mon->ww * mon->mfact; ++ ny = mon->wy; ++ } ++ else if(i == 1) ++ nw = mon->ww - nw; ++ i++; ++ } ++ resize(c, nx, ny, nw - 2 * c->bw, nh - 2 * c->bw, False); ++ } ++} ++ ++void ++dwindle(Monitor *mon) { ++ fibonacci(mon, 1); ++} ++ ++void ++spiral(Monitor *mon) { ++ fibonacci(mon, 0); ++} +-- +2.20.1 + diff --git a/vildwm/fibonacci.c b/vildwm/fibonacci.c new file mode 100755 index 0000000..fce0a57 --- /dev/null +++ b/vildwm/fibonacci.c @@ -0,0 +1,66 @@ +void +fibonacci(Monitor *mon, int s) { + unsigned int i, n, nx, ny, nw, nh; + Client *c; + + for(n = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next), n++); + if(n == 0) + return; + + nx = mon->wx; + ny = 0; + nw = mon->ww; + nh = mon->wh; + + for(i = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next)) { + if((i % 2 && nh / 2 > 2 * c->bw) + || (!(i % 2) && nw / 2 > 2 * c->bw)) { + if(i < n - 1) { + if(i % 2) + nh /= 2; + else + nw /= 2; + if((i % 4) == 2 && !s) + nx += nw; + else if((i % 4) == 3 && !s) + ny += nh; + } + if((i % 4) == 0) { + if(s) + ny += nh; + else + ny -= nh; + } + else if((i % 4) == 1) + nx += nw; + else if((i % 4) == 2) + ny += nh; + else if((i % 4) == 3) { + if(s) + nx += nw; + else + nx -= nw; + } + if(i == 0) + { + if(n != 1) + nw = mon->ww * mon->mfact; + ny = mon->wy; + } + else if(i == 1) + nw = mon->ww - nw; + i++; + } + resize(c, nx, ny, nw - 2 * c->bw, nh - 2 * c->bw, False); + } +} + +void +dwindle(Monitor *mon) { + fibonacci(mon, 1); +} + +void +spiral(Monitor *mon) { + fibonacci(mon, 0); +} diff --git a/vildwm/transient.c b/vildwm/transient.c new file mode 100755 index 0000000..040adb5 --- /dev/null +++ b/vildwm/transient.c @@ -0,0 +1,42 @@ +/* cc transient.c -o transient -lX11 */ + +#include +#include +#include +#include + +int main(void) { + Display *d; + Window r, f, t = None; + XSizeHints h; + XEvent e; + + d = XOpenDisplay(NULL); + if (!d) + exit(1); + r = DefaultRootWindow(d); + + f = XCreateSimpleWindow(d, r, 100, 100, 400, 400, 0, 0, 0); + h.min_width = h.max_width = h.min_height = h.max_height = 400; + h.flags = PMinSize | PMaxSize; + XSetWMNormalHints(d, f, &h); + XStoreName(d, f, "floating"); + XMapWindow(d, f); + + XSelectInput(d, f, ExposureMask); + while (1) { + XNextEvent(d, &e); + + if (t == None) { + sleep(5); + t = XCreateSimpleWindow(d, r, 50, 50, 100, 100, 0, 0, 0); + XSetTransientForHint(d, t, f); + XStoreName(d, t, "transient"); + XMapWindow(d, t); + XSelectInput(d, t, ExposureMask); + } + } + + XCloseDisplay(d); + exit(0); +} diff --git a/vildwm/util.c b/vildwm/util.c new file mode 100755 index 0000000..96b82c9 --- /dev/null +++ b/vildwm/util.c @@ -0,0 +1,36 @@ +/* See LICENSE file for copyright and license details. */ +#include +#include +#include +#include + +#include "util.h" + +void +die(const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + + if (fmt[0] && fmt[strlen(fmt)-1] == ':') { + fputc(' ', stderr); + perror(NULL); + } else { + fputc('\n', stderr); + } + + exit(1); +} + +void * +ecalloc(size_t nmemb, size_t size) +{ + void *p; + + if (!(p = calloc(nmemb, size))) + die("calloc:"); + return p; +} diff --git a/vildwm/util.h b/vildwm/util.h new file mode 100755 index 0000000..f633b51 --- /dev/null +++ b/vildwm/util.h @@ -0,0 +1,8 @@ +/* See LICENSE file for copyright and license details. */ + +#define MAX(A, B) ((A) > (B) ? (A) : (B)) +#define MIN(A, B) ((A) < (B) ? (A) : (B)) +#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) + +void die(const char *fmt, ...); +void *ecalloc(size_t nmemb, size_t size); diff --git a/vildwm/util.o b/vildwm/util.o new file mode 100644 index 0000000000000000000000000000000000000000..04ef62bd873819e6d950e2a9fdef20a8e866ae30 GIT binary patch literal 2080 zcmbW1O=uHQ5XUEJwXvp6{Ww(GLxhJU&@M?)D5*+pqg_josue#D>NefbXujBNB#L0g zdI%-ZgBQVrphpiP9)$)x=uPi}_97_tP)`aL;>_Fk+Q)Wt>A+^@{pLUO-tJ`g!RhoF zzt0EKd~g!BR+0j&c5cN<9wwm&f^bo<|I;7-T1BMSZ8oacXIN6NrOrl zuznrehxJB^#Xh81e*iP+2V-23Vv!%DT^PfvV-(p#di@(6Fu)V~5=IO6J6ehAft4`k zIgPitTkBrwmS}~Z1*hko!pF^OP;c;)aB%H?#>nSOnFPS(#6%(-Ntv@bqZp2lXd_x| zIDRxLLhM6!&~f0qcL990KHosFE3k~4^dlb>xu4`u_4YmTPxY>g+^EPM61mI00YSVS zox2l$x4g0)9us!D?b;^qL9$=b^Rpq_hgaV=wR0a{{BRq6qz%{FaGIu9e|-M@obr79 zIUyTsqlc=U%WE0X(i1V5%b8HI=S<6jJK3_8E81CHTY0kx*>cs+Kp9gd3(Q*12Gbch z_9ZJg4*clp>20(edn!1+HoF!6LU6bKjiT>T^dA*YGm`y3DSVH@zbIVQe^)sDyJep> zg$EV>M{qi4hr%}mr~9Hy_6ZA4db*??7lGt*KA=_Z7Hne{y=^&uUPhLgH#FO<*`UoC zwgK8~r2?8&q6Nw0S{$@YsZcPBC@Gd~Q=2?@X}Dq=ncJwNYIFWZ)-npFJjRZF7%S;r zq8X}|6bnBk6>}|N0CV)5l8T1HBt2BLfGD7uP)IW)qwfLP5xj^CIU#Q2?u`U@<00hK zbEoxjtfihKc&R4$m**?Kg&khm%6-~!! Xp_pj5N$5N6RbLb5pWjqEfxG@c?o0qq literal 0 HcmV?d00001 diff --git a/vilst/LICENSE b/vilst/LICENSE new file mode 100755 index 0000000..3cbf420 --- /dev/null +++ b/vilst/LICENSE @@ -0,0 +1,34 @@ +MIT/X Consortium License + +© 2014-2022 Hiltjo Posthuma +© 2018 Devin J. Pohly +© 2014-2017 Quentin Rameau +© 2009-2012 Aurélien APTEL +© 2008-2017 Anselm R Garbe +© 2012-2017 Roberto E. Vargas Caballero +© 2012-2016 Christoph Lohmann <20h at r-36 dot net> +© 2013 Eon S. Jeon +© 2013 Alexander Sedov +© 2013 Mark Edgar +© 2013-2014 Eric Pruitt +© 2013 Michael Forney +© 2013-2014 Markus Teich +© 2014-2015 Laslo Hunhold + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/vilst/Makefile b/vilst/Makefile new file mode 100755 index 0000000..5f84b2d --- /dev/null +++ b/vilst/Makefile @@ -0,0 +1,54 @@ +# st - simple terminal +# See LICENSE file for copyright and license details. +.POSIX: + +include config.mk + +SRC = st.c x.c $(LIGATURES_C) $(SIXEL_C) +OBJ = $(SRC:.c=.o) + +all: st + +config.h: + cp config.def.h config.h + +.c.o: + $(CC) $(STCFLAGS) -c $< + +st.o: config.h st.h win.h +x.o: arg.h config.h st.h win.h $(LIGATURES_H) + +$(OBJ): config.h config.mk + +st: $(OBJ) + $(CC) -o $@ $(OBJ) $(STLDFLAGS) + +clean: + rm -f st $(OBJ) st-$(VERSION).tar.gz + +dist: clean + mkdir -p st-$(VERSION) + cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\ + config.def.h st.info st.1 arg.h st.h win.h $(LIGATURES_H) $(SRC)\ + st-$(VERSION) + tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz + rm -rf st-$(VERSION) + +install: st + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f st $(DESTDIR)$(PREFIX)/bin + chmod 755 $(DESTDIR)$(PREFIX)/bin/st + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1 + #tic -sx st.info + mkdir -p $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch + test -f ${DESTDIR}${PREFIX}/share/applications/st.desktop || cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch + @echo Please see the README file regarding the terminfo entry of st. + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/st + rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 + rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop # desktop-entry patch + +.PHONY: all clean dist install uninstall diff --git a/vilst/README b/vilst/README new file mode 100755 index 0000000..10e2b3e --- /dev/null +++ b/vilst/README @@ -0,0 +1,17 @@ +vilst + + + +This my personal build of the st terminal emulator. + + Features + + * Sixel images + * Scrolling + * Flash on bell + * Alpha + + Dependencies + + * sixel lib + * imlib2 diff --git a/vilst/arg.h b/vilst/arg.h new file mode 100644 index 0000000..a22e019 --- /dev/null +++ b/vilst/arg.h @@ -0,0 +1,50 @@ +/* + * Copy me if you can. + * by 20h + */ + +#ifndef ARG_H__ +#define ARG_H__ + +extern char *argv0; + +/* use main(int argc, char *argv[]) */ +#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\ + argv[0] && argv[0][0] == '-'\ + && argv[0][1];\ + argc--, argv++) {\ + char argc_;\ + char **argv_;\ + int brk_;\ + if (argv[0][1] == '-' && argv[0][2] == '\0') {\ + argv++;\ + argc--;\ + break;\ + }\ + int i_;\ + for (i_ = 1, brk_ = 0, argv_ = argv;\ + argv[0][i_] && !brk_;\ + i_++) {\ + if (argv_ != argv)\ + break;\ + argc_ = argv[0][i_];\ + switch (argc_) + +#define ARGEND }\ + } + +#define ARGC() argc_ + +#define EARGF(x) ((argv[0][i_+1] == '\0' && argv[1] == NULL)?\ + ((x), abort(), (char *)0) :\ + (brk_ = 1, (argv[0][i_+1] != '\0')?\ + (&argv[0][i_+1]) :\ + (argc--, argv++, argv[0]))) + +#define ARGF() ((argv[0][i_+1] == '\0' && argv[1] == NULL)?\ + (char *)0 :\ + (brk_ = 1, (argv[0][i_+1] != '\0')?\ + (&argv[0][i_+1]) :\ + (argc--, argv++, argv[0]))) + +#endif diff --git a/vilst/config.def.h b/vilst/config.def.h new file mode 100644 index 0000000..81f7a95 --- /dev/null +++ b/vilst/config.def.h @@ -0,0 +1,493 @@ +/* See LICENSE file for copyright and license details. */ + +/* + * appearance + * + * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html + */ +static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; + +static int borderpx = 2; + +/* + * What program is execed by st depends of these precedence rules: + * 1: program passed with -e + * 2: scroll and/or utmp + * 3: SHELL environment variable + * 4: value of shell in /etc/passwd + * 5: value of shell in config.h + */ +static char *shell = "/bin/sh"; +char *utmp = NULL; +/* scroll program: to enable use a string like "scroll" */ +char *scroll = NULL; +char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400"; + +/* identification sequence returned in DA and DECID */ +char *vtiden = "\033[?62;4c"; /* VT200 family (62) with sixel (4) */ + +/* sixel rgb byte order: LSBFirst or MSBFirst */ +int const sixelbyteorder = LSBFirst; + +/* Kerning / character bounding-box multipliers */ +static float cwscale = 1.0; +static float chscale = 1.0; + +/* + * word delimiter string + * + * More advanced example: L" `'\"()[]{}" + */ +wchar_t *worddelimiters = L" "; + +/* selection timeouts (in milliseconds) */ +static unsigned int doubleclicktimeout = 300; +static unsigned int tripleclicktimeout = 600; + +/* alt screens */ +int allowaltscreen = 1; + +/* allow certain non-interactive (insecure) window operations such as: + setting the clipboard text */ +int allowwindowops = 0; + +/* + * draw latency range in ms - from new content/keypress/etc until drawing. + * within this range, st draws when content stops arriving (idle). mostly it's + * near minlatency, but it waits longer for slow updates to avoid partial draw. + * low minlatency will tear/flicker more, as it can "detect" idle too early. + */ +static double minlatency = 2; +static double maxlatency = 33; + +/* + * blinking timeout (set to 0 to disable blinking) for the terminal blinking + * attribute. + */ +static unsigned int blinktimeout = 800; + +/* + * thickness of underline and bar cursors + */ +static unsigned int cursorthickness = 2; + +/* + * bell volume. It must be a value between -100 and 100. Use 0 for disabling + * it + */ +static int bellvolume = 0; + +/* default TERM value */ +char *termname = "st-256color"; + +/* + * spaces per tab + * + * When you are changing this value, don't forget to adapt the »it« value in + * the st.info and appropriately install the st.info in the environment where + * you use this st version. + * + * it#$tabspaces, + * + * Secondly make sure your kernel is not expanding tabs. When running `stty + * -a` »tab0« should appear. You can tell the terminal to not expand tabs by + * running following command: + * + * stty tabs + */ +unsigned int tabspaces = 8; + +/* bg opacity */ +float alpha = 0.8; + +/* Terminal colors (16 first used in escape sequence) */ +static const char *colorname[] = { + /* 8 normal colors */ + "black", + "red3", + "green3", + "yellow3", + "blue2", + "magenta3", + "cyan3", + "gray90", + + /* 8 bright colors */ + "gray50", + "red", + "green", + "yellow", + "#5c5cff", + "magenta", + "cyan", + "white", + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#add8e6", /* 256 -> cursor */ + "#555555", /* 257 -> rev cursor*/ + "#000000", /* 258 -> bg */ + "#e5e5e5", /* 259 -> fg */ +}; + +/* + * Default colors (colorname index) + * foreground, background, cursor, reverse cursor + */ +unsigned int defaultbg = 258; +unsigned int defaultfg = 259; +unsigned int defaultcs = 256; +unsigned int defaultrcs = 257; + +/* + * Default shape of cursor + * 2: Block ("█") + * 4: Underline ("_") + * 6: Bar ("|") + * 7: Snowman ("☃") + */ +static unsigned int cursorshape = 2; + +/* + * Default columns and rows numbers + */ + +static unsigned int cols = 80; +static unsigned int rows = 24; + +/* + * Default colour and shape of the mouse cursor + */ +static unsigned int mouseshape = XC_xterm; +static unsigned int mousefg = 7; +static unsigned int mousebg = 0; + +/* + * Color used to display font attributes when fontconfig selected a font which + * doesn't match the ones requested. + */ +static unsigned int defaultattr = 11; + +/* + * Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set). + * Note that if you want to use ShiftMask with selmasks, set this to an other + * modifier, set to 0 to not use it. + */ +static uint forcemousemod = ShiftMask; + +/* + * Internal mouse shortcuts. + * Beware that overloading Button1 will disable the selection. + */ +static MouseShortcut mshortcuts[] = { + /* mask button function argument release screen */ + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { ShiftMask, Button4, kscrollup, {.i = 1}, 0, S_PRI}, + { ShiftMask, Button5, kscrolldown, {.i = 1}, 0, S_PRI}, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, +}; + +/* Internal keyboard shortcuts. */ +#define MODKEY Mod1Mask +#define TERMMOD (ControlMask|ShiftMask) + +static char *openurlcmd[] = { "/bin/sh", "-c", + "xurls | dmenu -l 10 -w $WINDOWID | xargs -r open", + "externalpipe", NULL }; + +static char *setbgcolorcmd[] = { "/bin/sh", "-c", + "printf '\033]11;#008000\007'", + "externalpipein", NULL }; + +static Shortcut shortcuts[] = { + /* mask keysym function argument screen */ + { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, + { ControlMask, XK_Print, toggleprinter, {.i = 0} }, + { ShiftMask, XK_Print, printscreen, {.i = 0} }, + { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, + { TERMMOD, XK_Prior, zoom, {.f = +1} }, + { TERMMOD, XK_Next, zoom, {.f = -1} }, + { TERMMOD, XK_Home, zoomreset, {.f = 0} }, + { TERMMOD, XK_C, clipcopy, {.i = 0} }, + { TERMMOD, XK_V, clippaste, {.i = 0} }, + { TERMMOD, XK_O, changealpha, {.f = +0.05} }, + { TERMMOD, XK_P, changealpha, {.f = -0.05} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1}, S_PRI }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1}, S_PRI }, + { TERMMOD, XK_Y, selpaste, {.i = 0} }, + { ShiftMask, XK_Insert, selpaste, {.i = 0} }, + { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, +}; + +/* + * Special keys (change & recompile st.info accordingly) + * + * Mask value: + * * Use XK_ANY_MOD to match the key no matter modifiers state + * * Use XK_NO_MOD to match the key alone (no modifiers) + * appkey value: + * * 0: no value + * * > 0: keypad application mode enabled + * * = 2: term.numlock = 1 + * * < 0: keypad application mode disabled + * appcursor value: + * * 0: no value + * * > 0: cursor application mode enabled + * * < 0: cursor application mode disabled + * + * Be careful with the order of the definitions because st searches in + * this table sequentially, so any XK_ANY_MOD must be in the last + * position for a key. + */ + +/* + * If you want keys other than the X11 function keys (0xFD00 - 0xFFFF) + * to be mapped below, add them to this array. + */ +static KeySym mappedkeys[] = { -1 }; + +/* + * State bits to ignore when matching key or button events. By default, + * numlock (Mod2Mask) and keyboard layout (XK_SWITCH_MOD) are ignored. + */ +static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; + +/* + * This is the huge key array which defines all compatibility to the Linux + * world. Please decide about changes wisely. + */ +static Key key[] = { + /* keysym mask string appkey appcursor */ + { XK_KP_Home, ShiftMask, "\033[2J", 0, -1}, + { XK_KP_Home, ShiftMask, "\033[1;2H", 0, +1}, + { XK_KP_Home, XK_ANY_MOD, "\033[H", 0, -1}, + { XK_KP_Home, XK_ANY_MOD, "\033[1~", 0, +1}, + { XK_KP_Up, XK_ANY_MOD, "\033Ox", +1, 0}, + { XK_KP_Up, XK_ANY_MOD, "\033[A", 0, -1}, + { XK_KP_Up, XK_ANY_MOD, "\033OA", 0, +1}, + { XK_KP_Down, XK_ANY_MOD, "\033Or", +1, 0}, + { XK_KP_Down, XK_ANY_MOD, "\033[B", 0, -1}, + { XK_KP_Down, XK_ANY_MOD, "\033OB", 0, +1}, + { XK_KP_Left, XK_ANY_MOD, "\033Ot", +1, 0}, + { XK_KP_Left, XK_ANY_MOD, "\033[D", 0, -1}, + { XK_KP_Left, XK_ANY_MOD, "\033OD", 0, +1}, + { XK_KP_Right, XK_ANY_MOD, "\033Ov", +1, 0}, + { XK_KP_Right, XK_ANY_MOD, "\033[C", 0, -1}, + { XK_KP_Right, XK_ANY_MOD, "\033OC", 0, +1}, + { XK_KP_Prior, ShiftMask, "\033[5;2~", 0, 0}, + { XK_KP_Prior, XK_ANY_MOD, "\033[5~", 0, 0}, + { XK_KP_Begin, XK_ANY_MOD, "\033[E", 0, 0}, + { XK_KP_End, ControlMask, "\033[J", -1, 0}, + { XK_KP_End, ControlMask, "\033[1;5F", +1, 0}, + { XK_KP_End, ShiftMask, "\033[K", -1, 0}, + { XK_KP_End, ShiftMask, "\033[1;2F", +1, 0}, + { XK_KP_End, XK_ANY_MOD, "\033[4~", 0, 0}, + { XK_KP_Next, ShiftMask, "\033[6;2~", 0, 0}, + { XK_KP_Next, XK_ANY_MOD, "\033[6~", 0, 0}, + { XK_KP_Insert, ShiftMask, "\033[2;2~", +1, 0}, + { XK_KP_Insert, ShiftMask, "\033[4l", -1, 0}, + { XK_KP_Insert, ControlMask, "\033[L", -1, 0}, + { XK_KP_Insert, ControlMask, "\033[2;5~", +1, 0}, + { XK_KP_Insert, XK_ANY_MOD, "\033[4h", -1, 0}, + { XK_KP_Insert, XK_ANY_MOD, "\033[2~", +1, 0}, + { XK_KP_Delete, ControlMask, "\033[M", -1, 0}, + { XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0}, + { XK_KP_Delete, ShiftMask, "\033[2K", -1, 0}, + { XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0}, + { XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0}, + { XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0}, + { XK_KP_Enter, XK_ANY_MOD, "\033OM", +2, 0}, + { XK_KP_Enter, XK_ANY_MOD, "\r", -1, 0}, + { XK_KP_Subtract, XK_ANY_MOD, "\033Om", +2, 0}, + { XK_KP_Decimal, XK_ANY_MOD, "\033On", +2, 0}, + { XK_KP_Divide, XK_ANY_MOD, "\033Oo", +2, 0}, + { XK_KP_0, XK_ANY_MOD, "\033Op", +2, 0}, + { XK_KP_1, XK_ANY_MOD, "\033Oq", +2, 0}, + { XK_KP_2, XK_ANY_MOD, "\033Or", +2, 0}, + { XK_KP_3, XK_ANY_MOD, "\033Os", +2, 0}, + { XK_KP_4, XK_ANY_MOD, "\033Ot", +2, 0}, + { XK_KP_5, XK_ANY_MOD, "\033Ou", +2, 0}, + { XK_KP_6, XK_ANY_MOD, "\033Ov", +2, 0}, + { XK_KP_7, XK_ANY_MOD, "\033Ow", +2, 0}, + { XK_KP_8, XK_ANY_MOD, "\033Ox", +2, 0}, + { XK_KP_9, XK_ANY_MOD, "\033Oy", +2, 0}, + { XK_Up, ShiftMask, "\033[1;2A", 0, 0}, + { XK_Up, Mod1Mask, "\033[1;3A", 0, 0}, + { XK_Up, ShiftMask|Mod1Mask,"\033[1;4A", 0, 0}, + { XK_Up, ControlMask, "\033[1;5A", 0, 0}, + { XK_Up, ShiftMask|ControlMask,"\033[1;6A", 0, 0}, + { XK_Up, ControlMask|Mod1Mask,"\033[1;7A", 0, 0}, + { XK_Up,ShiftMask|ControlMask|Mod1Mask,"\033[1;8A", 0, 0}, + { XK_Up, XK_ANY_MOD, "\033[A", 0, -1}, + { XK_Up, XK_ANY_MOD, "\033OA", 0, +1}, + { XK_Down, ShiftMask, "\033[1;2B", 0, 0}, + { XK_Down, Mod1Mask, "\033[1;3B", 0, 0}, + { XK_Down, ShiftMask|Mod1Mask,"\033[1;4B", 0, 0}, + { XK_Down, ControlMask, "\033[1;5B", 0, 0}, + { XK_Down, ShiftMask|ControlMask,"\033[1;6B", 0, 0}, + { XK_Down, ControlMask|Mod1Mask,"\033[1;7B", 0, 0}, + { XK_Down,ShiftMask|ControlMask|Mod1Mask,"\033[1;8B",0, 0}, + { XK_Down, XK_ANY_MOD, "\033[B", 0, -1}, + { XK_Down, XK_ANY_MOD, "\033OB", 0, +1}, + { XK_Left, ShiftMask, "\033[1;2D", 0, 0}, + { XK_Left, Mod1Mask, "\033[1;3D", 0, 0}, + { XK_Left, ShiftMask|Mod1Mask,"\033[1;4D", 0, 0}, + { XK_Left, ControlMask, "\033[1;5D", 0, 0}, + { XK_Left, ShiftMask|ControlMask,"\033[1;6D", 0, 0}, + { XK_Left, ControlMask|Mod1Mask,"\033[1;7D", 0, 0}, + { XK_Left,ShiftMask|ControlMask|Mod1Mask,"\033[1;8D",0, 0}, + { XK_Left, XK_ANY_MOD, "\033[D", 0, -1}, + { XK_Left, XK_ANY_MOD, "\033OD", 0, +1}, + { XK_Right, ShiftMask, "\033[1;2C", 0, 0}, + { XK_Right, Mod1Mask, "\033[1;3C", 0, 0}, + { XK_Right, ShiftMask|Mod1Mask,"\033[1;4C", 0, 0}, + { XK_Right, ControlMask, "\033[1;5C", 0, 0}, + { XK_Right, ShiftMask|ControlMask,"\033[1;6C", 0, 0}, + { XK_Right, ControlMask|Mod1Mask,"\033[1;7C", 0, 0}, + { XK_Right,ShiftMask|ControlMask|Mod1Mask,"\033[1;8C",0, 0}, + { XK_Right, XK_ANY_MOD, "\033[C", 0, -1}, + { XK_Right, XK_ANY_MOD, "\033OC", 0, +1}, + { XK_ISO_Left_Tab, ShiftMask, "\033[Z", 0, 0}, + { XK_Return, Mod1Mask, "\033\r", 0, 0}, + { XK_Return, XK_ANY_MOD, "\r", 0, 0}, + { XK_Insert, ShiftMask, "\033[4l", -1, 0}, + { XK_Insert, ShiftMask, "\033[2;2~", +1, 0}, + { XK_Insert, ControlMask, "\033[L", -1, 0}, + { XK_Insert, ControlMask, "\033[2;5~", +1, 0}, + { XK_Insert, XK_ANY_MOD, "\033[4h", -1, 0}, + { XK_Insert, XK_ANY_MOD, "\033[2~", +1, 0}, + { XK_Delete, ControlMask, "\033[M", -1, 0}, + { XK_Delete, ControlMask, "\033[3;5~", +1, 0}, + { XK_Delete, ShiftMask, "\033[2K", -1, 0}, + { XK_Delete, ShiftMask, "\033[3;2~", +1, 0}, + { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0}, + { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0}, + { XK_BackSpace, XK_NO_MOD, "\177", 0, 0}, + { XK_BackSpace, Mod1Mask, "\033\177", 0, 0}, + { XK_Home, ShiftMask, "\033[2J", 0, -1}, + { XK_Home, ShiftMask, "\033[1;2H", 0, +1}, + { XK_Home, XK_ANY_MOD, "\033[H", 0, -1}, + { XK_Home, XK_ANY_MOD, "\033[1~", 0, +1}, + { XK_End, ControlMask, "\033[J", -1, 0}, + { XK_End, ControlMask, "\033[1;5F", +1, 0}, + { XK_End, ShiftMask, "\033[K", -1, 0}, + { XK_End, ShiftMask, "\033[1;2F", +1, 0}, + { XK_End, XK_ANY_MOD, "\033[4~", 0, 0}, + { XK_Prior, ControlMask, "\033[5;5~", 0, 0}, + { XK_Prior, ShiftMask, "\033[5;2~", 0, 0}, + { XK_Prior, XK_ANY_MOD, "\033[5~", 0, 0}, + { XK_Next, ControlMask, "\033[6;5~", 0, 0}, + { XK_Next, ShiftMask, "\033[6;2~", 0, 0}, + { XK_Next, XK_ANY_MOD, "\033[6~", 0, 0}, + { XK_F1, XK_NO_MOD, "\033OP" , 0, 0}, + { XK_F1, /* F13 */ ShiftMask, "\033[1;2P", 0, 0}, + { XK_F1, /* F25 */ ControlMask, "\033[1;5P", 0, 0}, + { XK_F1, /* F37 */ Mod4Mask, "\033[1;6P", 0, 0}, + { XK_F1, /* F49 */ Mod1Mask, "\033[1;3P", 0, 0}, + { XK_F1, /* F61 */ Mod3Mask, "\033[1;4P", 0, 0}, + { XK_F2, XK_NO_MOD, "\033OQ" , 0, 0}, + { XK_F2, /* F14 */ ShiftMask, "\033[1;2Q", 0, 0}, + { XK_F2, /* F26 */ ControlMask, "\033[1;5Q", 0, 0}, + { XK_F2, /* F38 */ Mod4Mask, "\033[1;6Q", 0, 0}, + { XK_F2, /* F50 */ Mod1Mask, "\033[1;3Q", 0, 0}, + { XK_F2, /* F62 */ Mod3Mask, "\033[1;4Q", 0, 0}, + { XK_F3, XK_NO_MOD, "\033OR" , 0, 0}, + { XK_F3, /* F15 */ ShiftMask, "\033[1;2R", 0, 0}, + { XK_F3, /* F27 */ ControlMask, "\033[1;5R", 0, 0}, + { XK_F3, /* F39 */ Mod4Mask, "\033[1;6R", 0, 0}, + { XK_F3, /* F51 */ Mod1Mask, "\033[1;3R", 0, 0}, + { XK_F3, /* F63 */ Mod3Mask, "\033[1;4R", 0, 0}, + { XK_F4, XK_NO_MOD, "\033OS" , 0, 0}, + { XK_F4, /* F16 */ ShiftMask, "\033[1;2S", 0, 0}, + { XK_F4, /* F28 */ ControlMask, "\033[1;5S", 0, 0}, + { XK_F4, /* F40 */ Mod4Mask, "\033[1;6S", 0, 0}, + { XK_F4, /* F52 */ Mod1Mask, "\033[1;3S", 0, 0}, + { XK_F5, XK_NO_MOD, "\033[15~", 0, 0}, + { XK_F5, /* F17 */ ShiftMask, "\033[15;2~", 0, 0}, + { XK_F5, /* F29 */ ControlMask, "\033[15;5~", 0, 0}, + { XK_F5, /* F41 */ Mod4Mask, "\033[15;6~", 0, 0}, + { XK_F5, /* F53 */ Mod1Mask, "\033[15;3~", 0, 0}, + { XK_F6, XK_NO_MOD, "\033[17~", 0, 0}, + { XK_F6, /* F18 */ ShiftMask, "\033[17;2~", 0, 0}, + { XK_F6, /* F30 */ ControlMask, "\033[17;5~", 0, 0}, + { XK_F6, /* F42 */ Mod4Mask, "\033[17;6~", 0, 0}, + { XK_F6, /* F54 */ Mod1Mask, "\033[17;3~", 0, 0}, + { XK_F7, XK_NO_MOD, "\033[18~", 0, 0}, + { XK_F7, /* F19 */ ShiftMask, "\033[18;2~", 0, 0}, + { XK_F7, /* F31 */ ControlMask, "\033[18;5~", 0, 0}, + { XK_F7, /* F43 */ Mod4Mask, "\033[18;6~", 0, 0}, + { XK_F7, /* F55 */ Mod1Mask, "\033[18;3~", 0, 0}, + { XK_F8, XK_NO_MOD, "\033[19~", 0, 0}, + { XK_F8, /* F20 */ ShiftMask, "\033[19;2~", 0, 0}, + { XK_F8, /* F32 */ ControlMask, "\033[19;5~", 0, 0}, + { XK_F8, /* F44 */ Mod4Mask, "\033[19;6~", 0, 0}, + { XK_F8, /* F56 */ Mod1Mask, "\033[19;3~", 0, 0}, + { XK_F9, XK_NO_MOD, "\033[20~", 0, 0}, + { XK_F9, /* F21 */ ShiftMask, "\033[20;2~", 0, 0}, + { XK_F9, /* F33 */ ControlMask, "\033[20;5~", 0, 0}, + { XK_F9, /* F45 */ Mod4Mask, "\033[20;6~", 0, 0}, + { XK_F9, /* F57 */ Mod1Mask, "\033[20;3~", 0, 0}, + { XK_F10, XK_NO_MOD, "\033[21~", 0, 0}, + { XK_F10, /* F22 */ ShiftMask, "\033[21;2~", 0, 0}, + { XK_F10, /* F34 */ ControlMask, "\033[21;5~", 0, 0}, + { XK_F10, /* F46 */ Mod4Mask, "\033[21;6~", 0, 0}, + { XK_F10, /* F58 */ Mod1Mask, "\033[21;3~", 0, 0}, + { XK_F11, XK_NO_MOD, "\033[23~", 0, 0}, + { XK_F11, /* F23 */ ShiftMask, "\033[23;2~", 0, 0}, + { XK_F11, /* F35 */ ControlMask, "\033[23;5~", 0, 0}, + { XK_F11, /* F47 */ Mod4Mask, "\033[23;6~", 0, 0}, + { XK_F11, /* F59 */ Mod1Mask, "\033[23;3~", 0, 0}, + { XK_F12, XK_NO_MOD, "\033[24~", 0, 0}, + { XK_F12, /* F24 */ ShiftMask, "\033[24;2~", 0, 0}, + { XK_F12, /* F36 */ ControlMask, "\033[24;5~", 0, 0}, + { XK_F12, /* F48 */ Mod4Mask, "\033[24;6~", 0, 0}, + { XK_F12, /* F60 */ Mod1Mask, "\033[24;3~", 0, 0}, + { XK_F13, XK_NO_MOD, "\033[1;2P", 0, 0}, + { XK_F14, XK_NO_MOD, "\033[1;2Q", 0, 0}, + { XK_F15, XK_NO_MOD, "\033[1;2R", 0, 0}, + { XK_F16, XK_NO_MOD, "\033[1;2S", 0, 0}, + { XK_F17, XK_NO_MOD, "\033[15;2~", 0, 0}, + { XK_F18, XK_NO_MOD, "\033[17;2~", 0, 0}, + { XK_F19, XK_NO_MOD, "\033[18;2~", 0, 0}, + { XK_F20, XK_NO_MOD, "\033[19;2~", 0, 0}, + { XK_F21, XK_NO_MOD, "\033[20;2~", 0, 0}, + { XK_F22, XK_NO_MOD, "\033[21;2~", 0, 0}, + { XK_F23, XK_NO_MOD, "\033[23;2~", 0, 0}, + { XK_F24, XK_NO_MOD, "\033[24;2~", 0, 0}, + { XK_F25, XK_NO_MOD, "\033[1;5P", 0, 0}, + { XK_F26, XK_NO_MOD, "\033[1;5Q", 0, 0}, + { XK_F27, XK_NO_MOD, "\033[1;5R", 0, 0}, + { XK_F28, XK_NO_MOD, "\033[1;5S", 0, 0}, + { XK_F29, XK_NO_MOD, "\033[15;5~", 0, 0}, + { XK_F30, XK_NO_MOD, "\033[17;5~", 0, 0}, + { XK_F31, XK_NO_MOD, "\033[18;5~", 0, 0}, + { XK_F32, XK_NO_MOD, "\033[19;5~", 0, 0}, + { XK_F33, XK_NO_MOD, "\033[20;5~", 0, 0}, + { XK_F34, XK_NO_MOD, "\033[21;5~", 0, 0}, + { XK_F35, XK_NO_MOD, "\033[23;5~", 0, 0}, +}; + +/* + * Selection types' masks. + * Use the same masks as usual. + * Button1Mask is always unset, to make masks match between ButtonPress. + * ButtonRelease and MotionNotify. + * If no match is found, regular selection is used. + */ +static uint selmasks[] = { + [SEL_RECTANGULAR] = Mod1Mask, +}; + +/* + * Printable characters in ASCII, used to estimate the advance width + * of single wide characters. + */ +static char ascii_printable[] = + " !\"#$%&'()*+,-./0123456789:;<=>?" + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" + "`abcdefghijklmnopqrstuvwxyz{|}~"; + diff --git a/vilst/config.h b/vilst/config.h new file mode 100644 index 0000000..04616c0 --- /dev/null +++ b/vilst/config.h @@ -0,0 +1,497 @@ +/* See LICENSE file for copyright and license details. */ + +/* + * appearance + * + * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html + */ +static char *font = "TerminessNerdFont:pixelsize=16:antialias=true:autohint=true"; +/*static char *font = "FixedSysExcelsior:pixelsize=12:antialias=true:autohint=true";*/ +/*static char *font = "TerminessNerdFont:pixelsize=14:antialias=true:autohint=true";*/ +// static char *font = "Terminus:pixelsize=14:antialias=true:autohint=true"; + +static int borderpx = 2; + +/* + * What program is execed by st depends of these precedence rules: + * 1: program passed with -e + * 2: scroll and/or utmp + * 3: SHELL environment variable + * 4: value of shell in /etc/passwd + * 5: value of shell in config.h + */ +static char *shell = "/bin/sh"; +char *utmp = NULL; +/* scroll program: to enable use a string like "scroll" */ +char *scroll = NULL; +char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400"; + +/* identification sequence returned in DA and DECID */ +char *vtiden = "\033[?62;4c"; /* VT200 family (62) with sixel (4) */ + +/* sixel rgb byte order: LSBFirst or MSBFirst */ +int const sixelbyteorder = LSBFirst; + +/* Kerning / character bounding-box multipliers */ +static float cwscale = 1.0; +static float chscale = 1.0; + +/* + * word delimiter string + * + * More advanced example: L" `'\"()[]{}" + */ +wchar_t *worddelimiters = L" "; + +/* selection timeouts (in milliseconds) */ +static unsigned int doubleclicktimeout = 300; +static unsigned int tripleclicktimeout = 600; + +/* alt screens */ +int allowaltscreen = 1; + +/* allow certain non-interactive (insecure) window operations such as: + setting the clipboard text */ +int allowwindowops = 0; + +/* + * draw latency range in ms - from new content/keypress/etc until drawing. + * within this range, st draws when content stops arriving (idle). mostly it's + * near minlatency, but it waits longer for slow updates to avoid partial draw. + * low minlatency will tear/flicker more, as it can "detect" idle too early. + */ +static double minlatency = 2; +static double maxlatency = 33; + +/* + * blinking timeout (set to 0 to disable blinking) for the terminal blinking + * attribute. + */ +static unsigned int blinktimeout = 800; + +/* + * thickness of underline and bar cursors + */ +static unsigned int cursorthickness = 2; + +/* + * bell volume. It must be a value between -100 and 100. Use 0 for disabling + * it + */ +static int bellvolume = 0; + +/* default TERM value */ +char *termname = "st-256color"; + +/* + * spaces per tab + * + * When you are changing this value, don't forget to adapt the »it« value in + * the st.info and appropriately install the st.info in the environment where + * you use this st version. + * + * it#$tabspaces, + * + * Secondly make sure your kernel is not expanding tabs. When running `stty + * -a` »tab0« should appear. You can tell the terminal to not expand tabs by + * running following command: + * + * stty tabs + */ +unsigned int tabspaces = 8; + +/* bg opacity */ +float alpha = 0.8; + +/* Terminal colors (16 first used in escape sequence) */ +/*static const char *colorname[] = {*/ +static const char *colorname[] = { + + [0] = "#3f3f3f", /* hard contrast: #1d2021 / soft contrast: #32302f */ + [1] = "#705050", /* red */ + [2] = "#60b48a", /* green */ + [3] = "#dfaf8f", /* yellow */ + [4] = "#9ab8d7", /* blue */ + [5] = "#dc8cc3", /* magenta */ + [6] = "#8cd0d3", /* cyan */ + [7] = "#e5e5e5", /* white */ + + /* 8 bright colors */ + [8] = "#dca3a3", /* black */ + [9] = "#72d5a3", /* red */ + [10] = "#f0dfaf", /* green */ + [11] = "#94bff3", /* yellow */ + [12] = "#ec93d3", /* blue */ + [13] = "#93e0e3", /* magenta */ + [14] = "#93e0e3", /* cyan */ + [15] = "#fffff2", /* white */ + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#add8e6", /* 256 -> cursor */ + "#555555", /* 257 -> rev cursor*/ + "#000000", /* 258 -> bg */ + "#e5e5e5", /* 259 -> fg */ +}; + +/* + * Default colors (colorname index) + * foreground, background, cursor, reverse cursor + */ +unsigned int defaultbg = 258; +unsigned int defaultfg = 259; +unsigned int defaultcs = 256; +unsigned int defaultrcs = 257; + +/* + * Default shape of cursor + * 2: Block ("█") + * 4: Underline ("_") + * 6: Bar ("|") + * 7: Snowman ("☃") + */ +static unsigned int cursorshape = 2; + +/* + * Default columns and rows numbers + */ + +static unsigned int cols = 80; +static unsigned int rows = 24; + +/* + * Default colour and shape of the mouse cursor + */ +static unsigned int mouseshape = XC_xterm; +static unsigned int mousefg = 7; +static unsigned int mousebg = 0; + +/* + * Color used to display font attributes when fontconfig selected a font which + * doesn't match the ones requested. + */ +static unsigned int defaultattr = 11; + +/* + * Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set). + * Note that if you want to use ShiftMask with selmasks, set this to an other + * modifier, set to 0 to not use it. + */ +static uint forcemousemod = ShiftMask; + +/* + * Internal mouse shortcuts. + * Beware that overloading Button1 will disable the selection. + */ +static MouseShortcut mshortcuts[] = { + /* mask button function argument release screen */ + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { ShiftMask, Button4, kscrollup, {.i = 1}, 0, S_PRI}, + { ShiftMask, Button5, kscrolldown, {.i = 1}, 0, S_PRI}, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, +}; + +/* Internal keyboard shortcuts. */ +#define MODKEY Mod1Mask +#define TERMMOD (ControlMask|ShiftMask) + +static char *openurlcmd[] = { "/bin/sh", "-c", + "xurls | dmenu -l 10 -w $WINDOWID | xargs -r open", + "externalpipe", NULL }; + +static char *setbgcolorcmd[] = { "/bin/sh", "-c", + "printf '\033]11;#008000\007'", + "externalpipein", NULL }; + +static Shortcut shortcuts[] = { + /* mask keysym function argument screen */ + { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, + { ControlMask, XK_Print, toggleprinter, {.i = 0} }, + { ShiftMask, XK_Print, printscreen, {.i = 0} }, + { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, + { TERMMOD, XK_Prior, zoom, {.f = +1} }, + { TERMMOD, XK_Next, zoom, {.f = -1} }, + { TERMMOD, XK_Home, zoomreset, {.f = 0} }, + { TERMMOD, XK_C, clipcopy, {.i = 0} }, + { TERMMOD, XK_V, clippaste, {.i = 0} }, + { TERMMOD, XK_O, changealpha, {.f = +0.05} }, + { TERMMOD, XK_P, changealpha, {.f = -0.05} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1}, S_PRI }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1}, S_PRI }, + { TERMMOD, XK_Y, selpaste, {.i = 0} }, + { ShiftMask, XK_Insert, selpaste, {.i = 0} }, + { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, +}; + +/* + * Special keys (change & recompile st.info accordingly) + * + * Mask value: + * * Use XK_ANY_MOD to match the key no matter modifiers state + * * Use XK_NO_MOD to match the key alone (no modifiers) + * appkey value: + * * 0: no value + * * > 0: keypad application mode enabled + * * = 2: term.numlock = 1 + * * < 0: keypad application mode disabled + * appcursor value: + * * 0: no value + * * > 0: cursor application mode enabled + * * < 0: cursor application mode disabled + * + * Be careful with the order of the definitions because st searches in + * this table sequentially, so any XK_ANY_MOD must be in the last + * position for a key. + */ + +/* + * If you want keys other than the X11 function keys (0xFD00 - 0xFFFF) + * to be mapped below, add them to this array. + */ +static KeySym mappedkeys[] = { -1 }; + +/* + * State bits to ignore when matching key or button events. By default, + * numlock (Mod2Mask) and keyboard layout (XK_SWITCH_MOD) are ignored. + */ +static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; + +/* + * This is the huge key array which defines all compatibility to the Linux + * world. Please decide about changes wisely. + */ +static Key key[] = { + /* keysym mask string appkey appcursor */ + { XK_KP_Home, ShiftMask, "\033[2J", 0, -1}, + { XK_KP_Home, ShiftMask, "\033[1;2H", 0, +1}, + { XK_KP_Home, XK_ANY_MOD, "\033[H", 0, -1}, + { XK_KP_Home, XK_ANY_MOD, "\033[1~", 0, +1}, + { XK_KP_Up, XK_ANY_MOD, "\033Ox", +1, 0}, + { XK_KP_Up, XK_ANY_MOD, "\033[A", 0, -1}, + { XK_KP_Up, XK_ANY_MOD, "\033OA", 0, +1}, + { XK_KP_Down, XK_ANY_MOD, "\033Or", +1, 0}, + { XK_KP_Down, XK_ANY_MOD, "\033[B", 0, -1}, + { XK_KP_Down, XK_ANY_MOD, "\033OB", 0, +1}, + { XK_KP_Left, XK_ANY_MOD, "\033Ot", +1, 0}, + { XK_KP_Left, XK_ANY_MOD, "\033[D", 0, -1}, + { XK_KP_Left, XK_ANY_MOD, "\033OD", 0, +1}, + { XK_KP_Right, XK_ANY_MOD, "\033Ov", +1, 0}, + { XK_KP_Right, XK_ANY_MOD, "\033[C", 0, -1}, + { XK_KP_Right, XK_ANY_MOD, "\033OC", 0, +1}, + { XK_KP_Prior, ShiftMask, "\033[5;2~", 0, 0}, + { XK_KP_Prior, XK_ANY_MOD, "\033[5~", 0, 0}, + { XK_KP_Begin, XK_ANY_MOD, "\033[E", 0, 0}, + { XK_KP_End, ControlMask, "\033[J", -1, 0}, + { XK_KP_End, ControlMask, "\033[1;5F", +1, 0}, + { XK_KP_End, ShiftMask, "\033[K", -1, 0}, + { XK_KP_End, ShiftMask, "\033[1;2F", +1, 0}, + { XK_KP_End, XK_ANY_MOD, "\033[4~", 0, 0}, + { XK_KP_Next, ShiftMask, "\033[6;2~", 0, 0}, + { XK_KP_Next, XK_ANY_MOD, "\033[6~", 0, 0}, + { XK_KP_Insert, ShiftMask, "\033[2;2~", +1, 0}, + { XK_KP_Insert, ShiftMask, "\033[4l", -1, 0}, + { XK_KP_Insert, ControlMask, "\033[L", -1, 0}, + { XK_KP_Insert, ControlMask, "\033[2;5~", +1, 0}, + { XK_KP_Insert, XK_ANY_MOD, "\033[4h", -1, 0}, + { XK_KP_Insert, XK_ANY_MOD, "\033[2~", +1, 0}, + { XK_KP_Delete, ControlMask, "\033[M", -1, 0}, + { XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0}, + { XK_KP_Delete, ShiftMask, "\033[2K", -1, 0}, + { XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0}, + { XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0}, + { XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0}, + { XK_KP_Enter, XK_ANY_MOD, "\033OM", +2, 0}, + { XK_KP_Enter, XK_ANY_MOD, "\r", -1, 0}, + { XK_KP_Subtract, XK_ANY_MOD, "\033Om", +2, 0}, + { XK_KP_Decimal, XK_ANY_MOD, "\033On", +2, 0}, + { XK_KP_Divide, XK_ANY_MOD, "\033Oo", +2, 0}, + { XK_KP_0, XK_ANY_MOD, "\033Op", +2, 0}, + { XK_KP_1, XK_ANY_MOD, "\033Oq", +2, 0}, + { XK_KP_2, XK_ANY_MOD, "\033Or", +2, 0}, + { XK_KP_3, XK_ANY_MOD, "\033Os", +2, 0}, + { XK_KP_4, XK_ANY_MOD, "\033Ot", +2, 0}, + { XK_KP_5, XK_ANY_MOD, "\033Ou", +2, 0}, + { XK_KP_6, XK_ANY_MOD, "\033Ov", +2, 0}, + { XK_KP_7, XK_ANY_MOD, "\033Ow", +2, 0}, + { XK_KP_8, XK_ANY_MOD, "\033Ox", +2, 0}, + { XK_KP_9, XK_ANY_MOD, "\033Oy", +2, 0}, + { XK_Up, ShiftMask, "\033[1;2A", 0, 0}, + { XK_Up, Mod1Mask, "\033[1;3A", 0, 0}, + { XK_Up, ShiftMask|Mod1Mask,"\033[1;4A", 0, 0}, + { XK_Up, ControlMask, "\033[1;5A", 0, 0}, + { XK_Up, ShiftMask|ControlMask,"\033[1;6A", 0, 0}, + { XK_Up, ControlMask|Mod1Mask,"\033[1;7A", 0, 0}, + { XK_Up,ShiftMask|ControlMask|Mod1Mask,"\033[1;8A", 0, 0}, + { XK_Up, XK_ANY_MOD, "\033[A", 0, -1}, + { XK_Up, XK_ANY_MOD, "\033OA", 0, +1}, + { XK_Down, ShiftMask, "\033[1;2B", 0, 0}, + { XK_Down, Mod1Mask, "\033[1;3B", 0, 0}, + { XK_Down, ShiftMask|Mod1Mask,"\033[1;4B", 0, 0}, + { XK_Down, ControlMask, "\033[1;5B", 0, 0}, + { XK_Down, ShiftMask|ControlMask,"\033[1;6B", 0, 0}, + { XK_Down, ControlMask|Mod1Mask,"\033[1;7B", 0, 0}, + { XK_Down,ShiftMask|ControlMask|Mod1Mask,"\033[1;8B",0, 0}, + { XK_Down, XK_ANY_MOD, "\033[B", 0, -1}, + { XK_Down, XK_ANY_MOD, "\033OB", 0, +1}, + { XK_Left, ShiftMask, "\033[1;2D", 0, 0}, + { XK_Left, Mod1Mask, "\033[1;3D", 0, 0}, + { XK_Left, ShiftMask|Mod1Mask,"\033[1;4D", 0, 0}, + { XK_Left, ControlMask, "\033[1;5D", 0, 0}, + { XK_Left, ShiftMask|ControlMask,"\033[1;6D", 0, 0}, + { XK_Left, ControlMask|Mod1Mask,"\033[1;7D", 0, 0}, + { XK_Left,ShiftMask|ControlMask|Mod1Mask,"\033[1;8D",0, 0}, + { XK_Left, XK_ANY_MOD, "\033[D", 0, -1}, + { XK_Left, XK_ANY_MOD, "\033OD", 0, +1}, + { XK_Right, ShiftMask, "\033[1;2C", 0, 0}, + { XK_Right, Mod1Mask, "\033[1;3C", 0, 0}, + { XK_Right, ShiftMask|Mod1Mask,"\033[1;4C", 0, 0}, + { XK_Right, ControlMask, "\033[1;5C", 0, 0}, + { XK_Right, ShiftMask|ControlMask,"\033[1;6C", 0, 0}, + { XK_Right, ControlMask|Mod1Mask,"\033[1;7C", 0, 0}, + { XK_Right,ShiftMask|ControlMask|Mod1Mask,"\033[1;8C",0, 0}, + { XK_Right, XK_ANY_MOD, "\033[C", 0, -1}, + { XK_Right, XK_ANY_MOD, "\033OC", 0, +1}, + { XK_ISO_Left_Tab, ShiftMask, "\033[Z", 0, 0}, + { XK_Return, Mod1Mask, "\033\r", 0, 0}, + { XK_Return, XK_ANY_MOD, "\r", 0, 0}, + { XK_Insert, ShiftMask, "\033[4l", -1, 0}, + { XK_Insert, ShiftMask, "\033[2;2~", +1, 0}, + { XK_Insert, ControlMask, "\033[L", -1, 0}, + { XK_Insert, ControlMask, "\033[2;5~", +1, 0}, + { XK_Insert, XK_ANY_MOD, "\033[4h", -1, 0}, + { XK_Insert, XK_ANY_MOD, "\033[2~", +1, 0}, + { XK_Delete, ControlMask, "\033[M", -1, 0}, + { XK_Delete, ControlMask, "\033[3;5~", +1, 0}, + { XK_Delete, ShiftMask, "\033[2K", -1, 0}, + { XK_Delete, ShiftMask, "\033[3;2~", +1, 0}, + { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0}, + { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0}, + { XK_BackSpace, XK_NO_MOD, "\177", 0, 0}, + { XK_BackSpace, Mod1Mask, "\033\177", 0, 0}, + { XK_Home, ShiftMask, "\033[2J", 0, -1}, + { XK_Home, ShiftMask, "\033[1;2H", 0, +1}, + { XK_Home, XK_ANY_MOD, "\033[H", 0, -1}, + { XK_Home, XK_ANY_MOD, "\033[1~", 0, +1}, + { XK_End, ControlMask, "\033[J", -1, 0}, + { XK_End, ControlMask, "\033[1;5F", +1, 0}, + { XK_End, ShiftMask, "\033[K", -1, 0}, + { XK_End, ShiftMask, "\033[1;2F", +1, 0}, + { XK_End, XK_ANY_MOD, "\033[4~", 0, 0}, + { XK_Prior, ControlMask, "\033[5;5~", 0, 0}, + { XK_Prior, ShiftMask, "\033[5;2~", 0, 0}, + { XK_Prior, XK_ANY_MOD, "\033[5~", 0, 0}, + { XK_Next, ControlMask, "\033[6;5~", 0, 0}, + { XK_Next, ShiftMask, "\033[6;2~", 0, 0}, + { XK_Next, XK_ANY_MOD, "\033[6~", 0, 0}, + { XK_F1, XK_NO_MOD, "\033OP" , 0, 0}, + { XK_F1, /* F13 */ ShiftMask, "\033[1;2P", 0, 0}, + { XK_F1, /* F25 */ ControlMask, "\033[1;5P", 0, 0}, + { XK_F1, /* F37 */ Mod4Mask, "\033[1;6P", 0, 0}, + { XK_F1, /* F49 */ Mod1Mask, "\033[1;3P", 0, 0}, + { XK_F1, /* F61 */ Mod3Mask, "\033[1;4P", 0, 0}, + { XK_F2, XK_NO_MOD, "\033OQ" , 0, 0}, + { XK_F2, /* F14 */ ShiftMask, "\033[1;2Q", 0, 0}, + { XK_F2, /* F26 */ ControlMask, "\033[1;5Q", 0, 0}, + { XK_F2, /* F38 */ Mod4Mask, "\033[1;6Q", 0, 0}, + { XK_F2, /* F50 */ Mod1Mask, "\033[1;3Q", 0, 0}, + { XK_F2, /* F62 */ Mod3Mask, "\033[1;4Q", 0, 0}, + { XK_F3, XK_NO_MOD, "\033OR" , 0, 0}, + { XK_F3, /* F15 */ ShiftMask, "\033[1;2R", 0, 0}, + { XK_F3, /* F27 */ ControlMask, "\033[1;5R", 0, 0}, + { XK_F3, /* F39 */ Mod4Mask, "\033[1;6R", 0, 0}, + { XK_F3, /* F51 */ Mod1Mask, "\033[1;3R", 0, 0}, + { XK_F3, /* F63 */ Mod3Mask, "\033[1;4R", 0, 0}, + { XK_F4, XK_NO_MOD, "\033OS" , 0, 0}, + { XK_F4, /* F16 */ ShiftMask, "\033[1;2S", 0, 0}, + { XK_F4, /* F28 */ ControlMask, "\033[1;5S", 0, 0}, + { XK_F4, /* F40 */ Mod4Mask, "\033[1;6S", 0, 0}, + { XK_F4, /* F52 */ Mod1Mask, "\033[1;3S", 0, 0}, + { XK_F5, XK_NO_MOD, "\033[15~", 0, 0}, + { XK_F5, /* F17 */ ShiftMask, "\033[15;2~", 0, 0}, + { XK_F5, /* F29 */ ControlMask, "\033[15;5~", 0, 0}, + { XK_F5, /* F41 */ Mod4Mask, "\033[15;6~", 0, 0}, + { XK_F5, /* F53 */ Mod1Mask, "\033[15;3~", 0, 0}, + { XK_F6, XK_NO_MOD, "\033[17~", 0, 0}, + { XK_F6, /* F18 */ ShiftMask, "\033[17;2~", 0, 0}, + { XK_F6, /* F30 */ ControlMask, "\033[17;5~", 0, 0}, + { XK_F6, /* F42 */ Mod4Mask, "\033[17;6~", 0, 0}, + { XK_F6, /* F54 */ Mod1Mask, "\033[17;3~", 0, 0}, + { XK_F7, XK_NO_MOD, "\033[18~", 0, 0}, + { XK_F7, /* F19 */ ShiftMask, "\033[18;2~", 0, 0}, + { XK_F7, /* F31 */ ControlMask, "\033[18;5~", 0, 0}, + { XK_F7, /* F43 */ Mod4Mask, "\033[18;6~", 0, 0}, + { XK_F7, /* F55 */ Mod1Mask, "\033[18;3~", 0, 0}, + { XK_F8, XK_NO_MOD, "\033[19~", 0, 0}, + { XK_F8, /* F20 */ ShiftMask, "\033[19;2~", 0, 0}, + { XK_F8, /* F32 */ ControlMask, "\033[19;5~", 0, 0}, + { XK_F8, /* F44 */ Mod4Mask, "\033[19;6~", 0, 0}, + { XK_F8, /* F56 */ Mod1Mask, "\033[19;3~", 0, 0}, + { XK_F9, XK_NO_MOD, "\033[20~", 0, 0}, + { XK_F9, /* F21 */ ShiftMask, "\033[20;2~", 0, 0}, + { XK_F9, /* F33 */ ControlMask, "\033[20;5~", 0, 0}, + { XK_F9, /* F45 */ Mod4Mask, "\033[20;6~", 0, 0}, + { XK_F9, /* F57 */ Mod1Mask, "\033[20;3~", 0, 0}, + { XK_F10, XK_NO_MOD, "\033[21~", 0, 0}, + { XK_F10, /* F22 */ ShiftMask, "\033[21;2~", 0, 0}, + { XK_F10, /* F34 */ ControlMask, "\033[21;5~", 0, 0}, + { XK_F10, /* F46 */ Mod4Mask, "\033[21;6~", 0, 0}, + { XK_F10, /* F58 */ Mod1Mask, "\033[21;3~", 0, 0}, + { XK_F11, XK_NO_MOD, "\033[23~", 0, 0}, + { XK_F11, /* F23 */ ShiftMask, "\033[23;2~", 0, 0}, + { XK_F11, /* F35 */ ControlMask, "\033[23;5~", 0, 0}, + { XK_F11, /* F47 */ Mod4Mask, "\033[23;6~", 0, 0}, + { XK_F11, /* F59 */ Mod1Mask, "\033[23;3~", 0, 0}, + { XK_F12, XK_NO_MOD, "\033[24~", 0, 0}, + { XK_F12, /* F24 */ ShiftMask, "\033[24;2~", 0, 0}, + { XK_F12, /* F36 */ ControlMask, "\033[24;5~", 0, 0}, + { XK_F12, /* F48 */ Mod4Mask, "\033[24;6~", 0, 0}, + { XK_F12, /* F60 */ Mod1Mask, "\033[24;3~", 0, 0}, + { XK_F13, XK_NO_MOD, "\033[1;2P", 0, 0}, + { XK_F14, XK_NO_MOD, "\033[1;2Q", 0, 0}, + { XK_F15, XK_NO_MOD, "\033[1;2R", 0, 0}, + { XK_F16, XK_NO_MOD, "\033[1;2S", 0, 0}, + { XK_F17, XK_NO_MOD, "\033[15;2~", 0, 0}, + { XK_F18, XK_NO_MOD, "\033[17;2~", 0, 0}, + { XK_F19, XK_NO_MOD, "\033[18;2~", 0, 0}, + { XK_F20, XK_NO_MOD, "\033[19;2~", 0, 0}, + { XK_F21, XK_NO_MOD, "\033[20;2~", 0, 0}, + { XK_F22, XK_NO_MOD, "\033[21;2~", 0, 0}, + { XK_F23, XK_NO_MOD, "\033[23;2~", 0, 0}, + { XK_F24, XK_NO_MOD, "\033[24;2~", 0, 0}, + { XK_F25, XK_NO_MOD, "\033[1;5P", 0, 0}, + { XK_F26, XK_NO_MOD, "\033[1;5Q", 0, 0}, + { XK_F27, XK_NO_MOD, "\033[1;5R", 0, 0}, + { XK_F28, XK_NO_MOD, "\033[1;5S", 0, 0}, + { XK_F29, XK_NO_MOD, "\033[15;5~", 0, 0}, + { XK_F30, XK_NO_MOD, "\033[17;5~", 0, 0}, + { XK_F31, XK_NO_MOD, "\033[18;5~", 0, 0}, + { XK_F32, XK_NO_MOD, "\033[19;5~", 0, 0}, + { XK_F33, XK_NO_MOD, "\033[20;5~", 0, 0}, + { XK_F34, XK_NO_MOD, "\033[21;5~", 0, 0}, + { XK_F35, XK_NO_MOD, "\033[23;5~", 0, 0}, +}; + +/* + * Selection types' masks. + * Use the same masks as usual. + * Button1Mask is always unset, to make masks match between ButtonPress. + * ButtonRelease and MotionNotify. + * If no match is found, regular selection is used. + */ +static uint selmasks[] = { + [SEL_RECTANGULAR] = Mod1Mask, +}; + +/* + * Printable characters in ASCII, used to estimate the advance width + * of single wide characters. + */ +static char ascii_printable[] = + " !\"#$%&'()*+,-./0123456789:;<=>?" + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" + "`abcdefghijklmnopqrstuvwxyz{|}~"; + diff --git a/vilst/config.mk b/vilst/config.mk new file mode 100755 index 0000000..6f85767 --- /dev/null +++ b/vilst/config.mk @@ -0,0 +1,60 @@ +# st version +VERSION = 0.9.2 + +# Customize below to fit your system + +# paths +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man +ICONPREFIX = $(PREFIX)/share/pixmaps +ICONNAME = st.png + +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + +PKG_CONFIG = pkg-config + +# Uncomment this for the alpha patch / ALPHA_PATCH +XRENDER = `$(PKG_CONFIG) --libs xrender` + +# Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH +#XCURSOR = `$(PKG_CONFIG) --libs xcursor` + +# Uncomment the lines below for the ligatures patch / LIGATURES_PATCH +#LIGATURES_C = hb.c +#LIGATURES_H = hb.h +#LIGATURES_INC = `$(PKG_CONFIG) --cflags harfbuzz` +#LIGATURES_LIBS = `$(PKG_CONFIG) --libs harfbuzz` + +# Uncomment this for the SIXEL patch / SIXEL_PATCH +SIXEL_C = sixel.c sixel_hls.c +SIXEL_LIBS = `$(PKG_CONFIG) --libs imlib2` + +# Uncomment for the netwmicon patch / NETWMICON_PATCH +#NETWMICON_LIBS = `$(PKG_CONFIG) --libs gdlib` + +# includes and libs, uncomment harfbuzz for the ligatures patch +INCS = -I$(X11INC) \ + `$(PKG_CONFIG) --cflags fontconfig` \ + `$(PKG_CONFIG) --cflags freetype2` \ + $(LIGATURES_INC) +LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft ${SIXEL_LIBS} ${XRENDER} ${XCURSOR}\ + `$(PKG_CONFIG) --libs fontconfig` \ + `$(PKG_CONFIG) --libs freetype2` \ + $(LIGATURES_LIBS) \ + $(NETWMICON_LIBS) + +# flags +STCPPFLAGS = -DVERSION=\"$(VERSION)\" -DICON=\"$(ICONPREFIX)/$(ICONNAME)\" -D_XOPEN_SOURCE=600 +STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) -O3 +STLDFLAGS = $(LIBS) $(LDFLAGS) + +# OpenBSD: +#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE +#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \ +# `pkg-config --libs fontconfig` \ +# `pkg-config --libs freetype2` +#MANPREFIX = ${PREFIX}/man + +# compiler and linker +# CC = c99 diff --git a/vilst/hb.c b/vilst/hb.c new file mode 100644 index 0000000..ae3dcc3 --- /dev/null +++ b/vilst/hb.c @@ -0,0 +1,139 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +#include "st.h" +#include "hb.h" + +#define FEATURE(c1,c2,c3,c4) { .tag = HB_TAG(c1,c2,c3,c4), .value = 1, .start = HB_FEATURE_GLOBAL_START, .end = HB_FEATURE_GLOBAL_END } +#define BUFFER_STEP 256 + +hb_font_t *hbfindfont(XftFont *match); + +typedef struct { + XftFont *match; + hb_font_t *font; +} HbFontMatch; + +typedef struct { + size_t capacity; + HbFontMatch *fonts; +} HbFontCache; + +static HbFontCache hbfontcache = { 0, NULL }; + +typedef struct { + size_t capacity; + Rune *runes; +} RuneBuffer; + +static RuneBuffer hbrunebuffer = { 0, NULL }; +static hb_buffer_t *hbbuffer; + +/* + * Poplulate the array with a list of font features, wrapped in FEATURE macro, + * e. g. + * FEATURE('c', 'a', 'l', 't'), FEATURE('d', 'l', 'i', 'g') + */ +hb_feature_t features[] = { }; + +void +hbcreatebuffer(void) +{ + hbbuffer = hb_buffer_create(); +} + +void +hbdestroybuffer(void) +{ + hb_buffer_destroy(hbbuffer); +} + +void +hbunloadfonts(void) +{ + for (int i = 0; i < hbfontcache.capacity; i++) { + hb_font_destroy(hbfontcache.fonts[i].font); + XftUnlockFace(hbfontcache.fonts[i].match); + } + + if (hbfontcache.fonts != NULL) { + free(hbfontcache.fonts); + hbfontcache.fonts = NULL; + } + hbfontcache.capacity = 0; +} + +hb_font_t * +hbfindfont(XftFont *match) +{ + for (int i = 0; i < hbfontcache.capacity; i++) { + if (hbfontcache.fonts[i].match == match) + return hbfontcache.fonts[i].font; + } + + /* Font not found in cache, caching it now. */ + hbfontcache.fonts = realloc(hbfontcache.fonts, sizeof(HbFontMatch) * (hbfontcache.capacity + 1)); + FT_Face face = XftLockFace(match); + hb_font_t *font = hb_ft_font_create(face, NULL); + if (font == NULL) + die("Failed to load Harfbuzz font."); + + hbfontcache.fonts[hbfontcache.capacity].match = match; + hbfontcache.fonts[hbfontcache.capacity].font = font; + hbfontcache.capacity += 1; + + return font; +} + +void +hbtransform(HbTransformData *data, XftFont *xfont, const Glyph *glyphs, int start, int length) +{ + uint32_t mode; + unsigned int glyph_count; + int rune_idx, glyph_idx, end = start + length; + hb_buffer_t *buffer = hbbuffer; + + hb_font_t *font = hbfindfont(xfont); + if (font == NULL) { + data->count = 0; + return; + } + + hb_buffer_reset(buffer); + hb_buffer_set_direction(buffer, HB_DIRECTION_LTR); + hb_buffer_set_cluster_level(buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); + + /* Resize the buffer if required length is larger. */ + if (hbrunebuffer.capacity < length) { + hbrunebuffer.capacity = (length / BUFFER_STEP + 1) * BUFFER_STEP; + hbrunebuffer.runes = realloc(hbrunebuffer.runes, hbrunebuffer.capacity * sizeof(Rune)); + } + + /* Fill buffer with codepoints. */ + for (rune_idx = 0, glyph_idx = start; glyph_idx < end; glyph_idx++, rune_idx++) { + hbrunebuffer.runes[rune_idx] = glyphs[glyph_idx].u; + mode = glyphs[glyph_idx].mode; + if (mode & ATTR_WDUMMY) + hbrunebuffer.runes[rune_idx] = 0x0020; + } + hb_buffer_add_codepoints(buffer, hbrunebuffer.runes, length, 0, length); + + /* Shape the segment. */ + hb_shape(font, buffer, features, sizeof(features)/sizeof(hb_feature_t)); + + /* Get new glyph info. */ + hb_glyph_info_t *info = hb_buffer_get_glyph_infos(buffer, &glyph_count); + hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, &glyph_count); + + /* Fill the output. */ + data->buffer = buffer; + data->glyphs = info; + data->positions = pos; + data->count = glyph_count; +} diff --git a/vilst/patch/alpha.c b/vilst/patch/alpha.c new file mode 100644 index 0000000..eb71702 --- /dev/null +++ b/vilst/patch/alpha.c @@ -0,0 +1,19 @@ +float +clamp(float value, float lower, float upper) { + if (value < lower) + return lower; + if (value > upper) + return upper; + return value; +} + +void +changealpha(const Arg *arg) +{ + if ((alpha > 0 && arg->f < 0) || (alpha < 1 && arg->f > 0)) + alpha += arg->f; + alpha = clamp(alpha, 0.0, 1.0); + xloadcols(); + redraw(); +} + diff --git a/vilst/patch/alpha.h b/vilst/patch/alpha.h new file mode 100644 index 0000000..8381349 --- /dev/null +++ b/vilst/patch/alpha.h @@ -0,0 +1,2 @@ +static float clamp(float value, float lower, float upper); +static void changealpha(const Arg *); diff --git a/vilst/patch/keyboardselect_reflow.txt b/vilst/patch/keyboardselect_reflow.txt new file mode 100755 index 0000000..8dd6c49 --- /dev/null +++ b/vilst/patch/keyboardselect_reflow.txt @@ -0,0 +1,29 @@ +Shortcuts in keyboard selection mode: + +h, j, k, l: move cursor left/down/up/right (also with arrow keys) +H, M, L: move cursor to the top/middle/bottom of the screen +Home, End: move cursor to the top/bottom of the screen +Backspace or 0, $ or A: move cursor to the beginning/end of the line +^ or I: move cursor to the beginning of the indented line +!: move cursor to the middle of the row +_: move cursor to the right edge of the screen +*: move cursor to the center of the screen +w, W jump forward to the start of a word +e, E jump forward to the end of a word +b, B jump backward to the start of a word +g, G: go to the first/last line +z: center the screen on the cursor +PgUp or K, PgDown or J: scroll the page up/down +/, ?: activate input mode and search up/down +n, N: repeat last search and search forward/backward +f, F: jump forward/backward to the given character +t, T: jump forward/backward to before the given character +; or r repeat previous f, t, F or T movement and move forward +, or R repeat previous f, t, F or T movement and move backward +v: toggle selection mode +V: toggle line selection mode +s: toggle regular/rectangular selection type +y: yank (copy) selected text +0 - 9: set the quantifier +Return: quit keyboard_select, yank and keep the highlight of the selection +Escape, q: quit keyboard_select/exit input mode/exit selection mode/reset quantifier diff --git a/vilst/patch/scrollback.c b/vilst/patch/scrollback.c new file mode 100644 index 0000000..f6cc792 --- /dev/null +++ b/vilst/patch/scrollback.c @@ -0,0 +1,43 @@ +void +kscrolldown(const Arg* a) +{ + int n = a->i; + + if (n < 0) + n = term.row + n; + + if (n > term.scr) + n = term.scr; + + if (term.scr > 0) { + term.scr -= n; + selscroll(0, -n); + tfulldirt(); + } + + scroll_images(-1*n); + +} + +void +kscrollup(const Arg* a) +{ + int n = a->i; + if (n < 0) + n = term.row + n; + + if (term.scr + n > term.histn) + n = term.histn - term.scr; + + if (!n) + return; + + if (term.scr <= HISTSIZE-n) { + term.scr += n; + selscroll(0, n); + tfulldirt(); + } + + scroll_images(n); + +} diff --git a/vilst/patch/scrollback.h b/vilst/patch/scrollback.h new file mode 100644 index 0000000..a602db2 --- /dev/null +++ b/vilst/patch/scrollback.h @@ -0,0 +1,15 @@ +#define TLINE(y) ((y) < term.scr ? term.hist[((y) + term.histi - \ + term.scr + HISTSIZE + 1) % HISTSIZE] : \ + term.line[(y) - term.scr]) + +void kscrolldown(const Arg *); +void kscrollup(const Arg *); + +typedef struct { + uint b; + uint mask; + void (*func)(const Arg *); + const Arg arg; +} MouseKey; + +extern MouseKey mkeys[]; diff --git a/vilst/patch/st_embedder_x.c b/vilst/patch/st_embedder_x.c new file mode 100644 index 0000000..c73c389 --- /dev/null +++ b/vilst/patch/st_embedder_x.c @@ -0,0 +1,50 @@ +static Window embed; + +void +createnotify(XEvent *e) +{ + XWindowChanges wc; + + if (embed || e->xcreatewindow.override_redirect) + return; + + embed = e->xcreatewindow.window; + + XReparentWindow(xw.dpy, embed, xw.win, 0, 0); + XSelectInput(xw.dpy, embed, PropertyChangeMask | StructureNotifyMask | EnterWindowMask); + + XMapWindow(xw.dpy, embed); + sendxembed(XEMBED_EMBEDDED_NOTIFY, 0, xw.win, 0); + + wc.width = win.w; + wc.height = win.h; + XConfigureWindow(xw.dpy, embed, CWWidth | CWHeight, &wc); + + XSetInputFocus(xw.dpy, embed, RevertToParent, CurrentTime); +} + +void +destroynotify(XEvent *e) +{ + visibility(e); + if (embed == e->xdestroywindow.window) { + focus(e); + } +} + +void +sendxembed(long msg, long detail, long d1, long d2) +{ + XEvent e = { 0 }; + + e.xclient.window = embed; + e.xclient.type = ClientMessage; + e.xclient.message_type = xw.xembed; + e.xclient.format = 32; + e.xclient.data.l[0] = CurrentTime; + e.xclient.data.l[1] = msg; + e.xclient.data.l[2] = detail; + e.xclient.data.l[3] = d1; + e.xclient.data.l[4] = d2; + XSendEvent(xw.dpy, embed, False, NoEventMask, &e); +} diff --git a/vilst/patch/st_embedder_x.h b/vilst/patch/st_embedder_x.h new file mode 100644 index 0000000..f7ec67f --- /dev/null +++ b/vilst/patch/st_embedder_x.h @@ -0,0 +1,7 @@ +#define XEMBED_EMBEDDED_NOTIFY 0 +#define XEMBED_WINDOW_ACTIVATE 1 +#define XEMBED_FOCUS_CURRENT 0 + +static void createnotify(XEvent *e); +static void destroynotify(XEvent *e); +static void sendxembed(long msg, long detail, long d1, long d2); diff --git a/vilst/patch/st_include.c b/vilst/patch/st_include.c new file mode 100644 index 0000000..2b3960f --- /dev/null +++ b/vilst/patch/st_include.c @@ -0,0 +1,2 @@ +/* Patches */ +#include "scrollback.c" diff --git a/vilst/patch/st_include.h b/vilst/patch/st_include.h new file mode 100644 index 0000000..d10f6c9 --- /dev/null +++ b/vilst/patch/st_include.h @@ -0,0 +1,2 @@ +/* Patches */ +#include "scrollback.h" diff --git a/vilst/patch/utils.h b/vilst/patch/utils.h new file mode 100644 index 0000000..6cfca3e --- /dev/null +++ b/vilst/patch/utils.h @@ -0,0 +1,23 @@ +/// Dynamic memory-chunk, with (1) datatype size, (2/3) initialized / allocated chunk, (4) content +typedef struct { uint8_t const elSize; uint32_t init, alloc; char* content; } DynamicArray; +#define UTF8_ARRAY {4, 0, 0, NULL} + +static inline int p_alloc(DynamicArray *s, uint32_t amount) { + uint32_t const diff=s->init+s->elSize*amount-s->alloc, nas=s->alloc+max(diff,15)*s->elSize; + if (s->alloc < s->init + s->elSize * amount) { + char* tmp = realloc(s->content, nas); + if (!tmp) return 0; + s->alloc = nas, s->content = tmp; + } + return 1; +} +static inline char *view(DynamicArray * s, uint32_t i) { return s->content + i*s->elSize; } +static inline char *end(DynamicArray *s, uint32_t i) { return s->content +s->init-(i+1)*s->elSize; } +static inline uint32_t getU32(DynamicArray* s, uint32_t i, int b) { return *((uint32_t*) (b ?view(s,i) :end(s,i))); } +static char *expand(DynamicArray *s) { if (!p_alloc(s, 1)) return NULL; s->init += s->elSize; return end(s, 0); } +static inline void pop(DynamicArray* s) { s->init -= s->elSize; } +static inline void empty(DynamicArray* s) { s->init = 0; } +static inline int size(DynamicArray const * s) { return s->init / s->elSize; } +static inline void assign(DynamicArray* s, DynamicArray const *o) { + if (p_alloc(s, size(o))) memcpy(s->content, o->content, (s->init=o->init)); +} diff --git a/vilst/patch/x_include.c b/vilst/patch/x_include.c new file mode 100644 index 0000000..4cfe004 --- /dev/null +++ b/vilst/patch/x_include.c @@ -0,0 +1,3 @@ +/* Patches */ +#include "alpha.c" +#include "st_embedder_x.c" diff --git a/vilst/patch/x_include.h b/vilst/patch/x_include.h new file mode 100644 index 0000000..461ab0c --- /dev/null +++ b/vilst/patch/x_include.h @@ -0,0 +1,3 @@ +/* Patches */ +#include "alpha.h" +#include "st_embedder_x.h" diff --git a/vilst/sixel.c b/vilst/sixel.c new file mode 100644 index 0000000..236d5ec --- /dev/null +++ b/vilst/sixel.c @@ -0,0 +1,687 @@ +// sixel.c (part of mintty) +// originally written by kmiya@cluti (https://github.com/saitoha/sixel/blob/master/fromsixel.c) +// Licensed under the terms of the GNU General Public License v3 or later. + +#include +#include /* memcpy */ + +#include "st.h" +#include "win.h" +#include "sixel.h" +#include "sixel_hls.h" + +#define SIXEL_RGB(r, g, b) ((255 << 24) + ((r) << 16) + ((g) << 8) + (b)) +#define SIXEL_PALVAL(n,a,m) (((n) * (a) + ((m) / 2)) / (m)) +#define SIXEL_XRGB(r,g,b) SIXEL_RGB(SIXEL_PALVAL(r, 255, 100), SIXEL_PALVAL(g, 255, 100), SIXEL_PALVAL(b, 255, 100)) + +static sixel_color_t const sixel_default_color_table[] = { + SIXEL_XRGB( 0, 0, 0), /* 0 Black */ + SIXEL_XRGB(20, 20, 80), /* 1 Blue */ + SIXEL_XRGB(80, 13, 13), /* 2 Red */ + SIXEL_XRGB(20, 80, 20), /* 3 Green */ + SIXEL_XRGB(80, 20, 80), /* 4 Magenta */ + SIXEL_XRGB(20, 80, 80), /* 5 Cyan */ + SIXEL_XRGB(80, 80, 20), /* 6 Yellow */ + SIXEL_XRGB(53, 53, 53), /* 7 Gray 50% */ + SIXEL_XRGB(26, 26, 26), /* 8 Gray 25% */ + SIXEL_XRGB(33, 33, 60), /* 9 Blue* */ + SIXEL_XRGB(60, 26, 26), /* 10 Red* */ + SIXEL_XRGB(33, 60, 33), /* 11 Green* */ + SIXEL_XRGB(60, 33, 60), /* 12 Magenta* */ + SIXEL_XRGB(33, 60, 60), /* 13 Cyan* */ + SIXEL_XRGB(60, 60, 33), /* 14 Yellow* */ + SIXEL_XRGB(80, 80, 80), /* 15 Gray 75% */ +}; + +void +scroll_images(int n) { + ImageList *im, *next; + int top = tisaltscr() ? 0 : term.scr - HISTSIZE; + + for (im = term.images; im; im = next) { + next = im->next; + im->y += n; + + /* check if the current sixel has exceeded the maximum + * draw distance, and should therefore be deleted */ + if (im->y < top) { + //fprintf(stderr, "im@0x%08x exceeded maximum distance\n"); + delete_image(im); + } + } +} + +void +delete_image(ImageList *im) +{ + if (im->prev) + im->prev->next = im->next; + else + term.images = im->next; + if (im->next) + im->next->prev = im->prev; + if (im->pixmap) + XFreePixmap(xw.dpy, (Drawable)im->pixmap); + if (im->clipmask) + XFreePixmap(xw.dpy, (Drawable)im->clipmask); + free(im->pixels); + free(im); +} + +static int +set_default_color(sixel_image_t *image) +{ + int i; + int n; + int r; + int g; + int b; + + /* palette initialization */ + for (n = 1; n < 17; n++) { + image->palette[n] = sixel_default_color_table[n - 1]; + } + + /* colors 17-232 are a 6x6x6 color cube */ + for (r = 0; r < 6; r++) { + for (g = 0; g < 6; g++) { + for (b = 0; b < 6; b++) { + image->palette[n++] = SIXEL_RGB(r * 51, g * 51, b * 51); + } + } + } + + /* colors 233-256 are a grayscale ramp, intentionally leaving out */ + for (i = 0; i < 24; i++) { + image->palette[n++] = SIXEL_RGB(i * 11, i * 11, i * 11); + } + + for (; n < DECSIXEL_PALETTE_MAX; n++) { + image->palette[n] = SIXEL_RGB(255, 255, 255); + } + + return (0); +} + +static int +sixel_image_init( + sixel_image_t *image, + int width, + int height, + int fgcolor, + int bgcolor, + int use_private_register) +{ + int status = (-1); + size_t size; + + size = (size_t)(width * height) * sizeof(sixel_color_no_t); + image->width = width; + image->height = height; + image->data = (sixel_color_no_t *)malloc(size); + image->ncolors = 2; + image->use_private_register = use_private_register; + + if (image->data == NULL) { + status = (-1); + goto end; + } + memset(image->data, 0, size); + + image->palette[0] = bgcolor; + + if (image->use_private_register) + image->palette[1] = fgcolor; + + image->palette_modified = 0; + + status = (0); + +end: + return status; +} + +static int +image_buffer_resize( + sixel_image_t *image, + int width, + int height) +{ + int status = (-1); + size_t size; + sixel_color_no_t *alt_buffer; + int n; + int min_height; + + size = (size_t)(width * height) * sizeof(sixel_color_no_t); + alt_buffer = (sixel_color_no_t *)malloc(size); + if (alt_buffer == NULL) { + /* free source image */ + free(image->data); + image->data = NULL; + status = (-1); + goto end; + } + + min_height = height > image->height ? image->height: height; + if (width > image->width) { /* if width is extended */ + for (n = 0; n < min_height; ++n) { + /* copy from source image */ + memcpy(alt_buffer + width * n, + image->data + image->width * n, + (size_t)image->width * sizeof(sixel_color_no_t)); + /* fill extended area with background color */ + memset(alt_buffer + width * n + image->width, + 0, + (size_t)(width - image->width) * sizeof(sixel_color_no_t)); + } + } else { + for (n = 0; n < min_height; ++n) { + /* copy from source image */ + memcpy(alt_buffer + width * n, + image->data + image->width * n, + (size_t)width * sizeof(sixel_color_no_t)); + } + } + + if (height > image->height) { /* if height is extended */ + /* fill extended area with background color */ + memset(alt_buffer + width * image->height, + 0, + (size_t)(width * (height - image->height)) * sizeof(sixel_color_no_t)); + } + + /* free source image */ + free(image->data); + + image->data = alt_buffer; + image->width = width; + image->height = height; + + status = (0); + +end: + return status; +} + +static void +sixel_image_deinit(sixel_image_t *image) +{ + if (image->data) + free(image->data); + image->data = NULL; +} + +int +sixel_parser_init(sixel_state_t *st, + int transparent, + sixel_color_t fgcolor, sixel_color_t bgcolor, + unsigned char use_private_register, + int cell_width, int cell_height) +{ + int status = (-1); + + st->state = PS_DECSIXEL; + st->pos_x = 0; + st->pos_y = 0; + st->max_x = 0; + st->max_y = 0; + st->attributed_pan = 2; + st->attributed_pad = 1; + st->attributed_ph = 0; + st->attributed_pv = 0; + st->transparent = transparent; + st->repeat_count = 1; + st->color_index = 16; + st->grid_width = cell_width; + st->grid_height = cell_height; + st->nparams = 0; + st->param = 0; + + /* buffer initialization */ + status = sixel_image_init(&st->image, 1, 1, fgcolor, transparent ? 0 : bgcolor, use_private_register); + + return status; +} + +int +sixel_parser_set_default_color(sixel_state_t *st) +{ + return set_default_color(&st->image); +} + +int +sixel_parser_finalize(sixel_state_t *st, ImageList **newimages, int cx, int cy, int cw, int ch) +{ + sixel_image_t *image = &st->image; + int x, y; + sixel_color_no_t *src; + sixel_color_t *dst; + int color; + int w, h; + int i, j, cols, numimages; + ImageList *im, *next, *tail; + + if (!image->data) + return -1; + + if (++st->max_x < st->attributed_ph) + st->max_x = st->attributed_ph; + + if (++st->max_y < st->attributed_pv) + st->max_y = st->attributed_pv; + + if (image->use_private_register && image->ncolors > 2 && !image->palette_modified) { + if (set_default_color(image) < 0) + return -1; + } + + w = MIN(st->max_x, image->width); + h = MIN(st->max_y, image->height); + + if ((numimages = (h + ch-1) / ch) <= 0) + return -1; + + cols = (w + cw-1) / cw; + + *newimages = NULL, tail = NULL; + for (y = 0, i = 0; i < numimages; i++) { + if ((im = malloc(sizeof(ImageList)))) { + if (!tail) { + *newimages = tail = im; + im->prev = im->next = NULL; + } else { + tail->next = im; + im->prev = tail; + im->next = NULL; + tail = im; + } + im->x = cx; + im->y = cy + i; + im->cols = cols; + im->width = w; + im->height = MIN(h - ch * i, ch); + im->pixels = malloc(im->width * im->height * 4); + im->pixmap = NULL; + im->clipmask = NULL; + im->cw = cw; + im->ch = ch; + im->transparent = st->transparent; + } + if (!im || !im->pixels) { + for (im = *newimages; im; im = next) { + next = im->next; + if (im->pixels) + free(im->pixels); + free(im); + } + *newimages = NULL; + return -1; + } + dst = (sixel_color_t *)im->pixels; + for (j = 0; j < im->height && y < h; j++, y++) { + src = st->image.data + image->width * y; + for (x = 0; x < w; x++) + *dst++ = st->image.palette[*src++]; + } + } + + return numimages; +} + +/* convert sixel data into indexed pixel bytes and palette data */ +int +sixel_parser_parse(sixel_state_t *st, const unsigned char *p, size_t len) +{ + int n = 0; + int i; + int x; + int y; + int bits; + int sx; + int sy; + int c; + int pos; + int width; + const unsigned char *p0 = p, *p2 = p + len; + sixel_image_t *image = &st->image; + sixel_color_no_t *data, color_index; + + if (!image->data) + st->state = PS_ERROR; + + while (p < p2) { + switch (st->state) { + case PS_ESC: + goto end; + + case PS_DECSIXEL: + switch (*p) { + case '\x1b': + st->state = PS_ESC; + break; + case '"': + st->param = 0; + st->nparams = 0; + st->state = PS_DECGRA; + p++; + break; + case '!': + st->param = 0; + st->nparams = 0; + st->state = PS_DECGRI; + p++; + break; + case '#': + st->param = 0; + st->nparams = 0; + st->state = PS_DECGCI; + p++; + break; + case '$': + /* DECGCR Graphics Carriage Return */ + st->pos_x = 0; + p++; + break; + case '-': + /* DECGNL Graphics Next Line */ + st->pos_x = 0; + if (st->pos_y < DECSIXEL_HEIGHT_MAX - 5 - 6) + st->pos_y += 6; + else + st->pos_y = DECSIXEL_HEIGHT_MAX + 1; + p++; + break; + default: + if (*p >= '?' && *p <= '~') { /* sixel characters */ + if ((image->width < (st->pos_x + st->repeat_count) || image->height < (st->pos_y + 6)) + && image->width < DECSIXEL_WIDTH_MAX && image->height < DECSIXEL_HEIGHT_MAX) { + sx = image->width * 2; + sy = image->height * 2; + while (sx < (st->pos_x + st->repeat_count) || sy < (st->pos_y + 6)) { + sx *= 2; + sy *= 2; + } + + sx = MIN(sx, DECSIXEL_WIDTH_MAX); + sy = MIN(sy, DECSIXEL_HEIGHT_MAX); + + if (image_buffer_resize(image, sx, sy) < 0) { + perror("sixel_parser_parse() failed"); + st->state = PS_ERROR; + p++; + break; + } + } + + if (st->color_index > image->ncolors) + image->ncolors = st->color_index; + + if (st->pos_x + st->repeat_count > image->width) + st->repeat_count = image->width - st->pos_x; + + if (st->repeat_count > 0 && st->pos_y + 5 < image->height) { + bits = *p - '?'; + if (bits != 0) { + data = image->data + image->width * st->pos_y + st->pos_x; + width = image->width; + color_index = st->color_index; + if (st->repeat_count <= 1) { + if (bits & 0x01) + *data = color_index, n = 0; + data += width; + if (bits & 0x02) + *data = color_index, n = 1; + data += width; + if (bits & 0x04) + *data = color_index, n = 2; + data += width; + if (bits & 0x08) + *data = color_index, n = 3; + data += width; + if (bits & 0x10) + *data = color_index, n = 4; + if (bits & 0x20) + data[width] = color_index, n = 5; + if (st->max_x < st->pos_x) + st->max_x = st->pos_x; + } else { + /* st->repeat_count > 1 */ + for (i = 0; bits; bits >>= 1, i++, data += width) { + if (bits & 1) { + data[0] = color_index; + data[1] = color_index; + for (x = 2; x < st->repeat_count; x++) + data[x] = color_index; + n = i; + } + } + if (st->max_x < (st->pos_x + st->repeat_count - 1)) + st->max_x = st->pos_x + st->repeat_count - 1; + } + if (st->max_y < (st->pos_y + n)) + st->max_y = st->pos_y + n; + } + } + if (st->repeat_count > 0) + st->pos_x += st->repeat_count; + st->repeat_count = 1; + } + p++; + break; + } + break; + + case PS_DECGRA: + /* DECGRA Set Raster Attributes " Pan; Pad; Ph; Pv */ + switch (*p) { + case '\x1b': + st->state = PS_ESC; + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + st->param = st->param * 10 + *p - '0'; + st->param = MIN(st->param, DECSIXEL_PARAMVALUE_MAX); + p++; + break; + case ';': + if (st->nparams < DECSIXEL_PARAMS_MAX) + st->params[st->nparams++] = st->param; + st->param = 0; + p++; + break; + default: + if (st->nparams < DECSIXEL_PARAMS_MAX) + st->params[st->nparams++] = st->param; + if (st->nparams > 0) + st->attributed_pad = st->params[0]; + if (st->nparams > 1) + st->attributed_pan = st->params[1]; + if (st->nparams > 2 && st->params[2] > 0) + st->attributed_ph = st->params[2]; + if (st->nparams > 3 && st->params[3] > 0) + st->attributed_pv = st->params[3]; + + if (st->attributed_pan <= 0) + st->attributed_pan = 1; + if (st->attributed_pad <= 0) + st->attributed_pad = 1; + + if (image->width < st->attributed_ph || + image->height < st->attributed_pv) { + sx = MAX(image->width, st->attributed_ph); + sy = MAX(image->height, st->attributed_pv); + + /* the height of the image buffer must be divisible by 6 + * to avoid unnecessary resizing of the image buffer when + * parsing the last sixel line */ + sy = (sy + 5) / 6 * 6; + + sx = MIN(sx, DECSIXEL_WIDTH_MAX); + sy = MIN(sy, DECSIXEL_HEIGHT_MAX); + + if (image_buffer_resize(image, sx, sy) < 0) { + perror("sixel_parser_parse() failed"); + st->state = PS_ERROR; + break; + } + } + st->state = PS_DECSIXEL; + st->param = 0; + st->nparams = 0; + } + break; + + case PS_DECGRI: + /* DECGRI Graphics Repeat Introducer ! Pn Ch */ + switch (*p) { + case '\x1b': + st->state = PS_ESC; + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + st->param = st->param * 10 + *p - '0'; + st->param = MIN(st->param, DECSIXEL_PARAMVALUE_MAX); + p++; + break; + default: + st->repeat_count = MAX(st->param, 1); + st->state = PS_DECSIXEL; + st->param = 0; + st->nparams = 0; + break; + } + break; + + case PS_DECGCI: + /* DECGCI Graphics Color Introducer # Pc; Pu; Px; Py; Pz */ + switch (*p) { + case '\x1b': + st->state = PS_ESC; + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + st->param = st->param * 10 + *p - '0'; + st->param = MIN(st->param, DECSIXEL_PARAMVALUE_MAX); + p++; + break; + case ';': + if (st->nparams < DECSIXEL_PARAMS_MAX) + st->params[st->nparams++] = st->param; + st->param = 0; + p++; + break; + default: + st->state = PS_DECSIXEL; + if (st->nparams < DECSIXEL_PARAMS_MAX) + st->params[st->nparams++] = st->param; + st->param = 0; + + if (st->nparams > 0) { + st->color_index = 1 + st->params[0]; /* offset 1(background color) added */ + if (st->color_index < 0) + st->color_index = 0; + else if (st->color_index >= DECSIXEL_PALETTE_MAX) + st->color_index = DECSIXEL_PALETTE_MAX - 1; + } + + if (st->nparams > 4) { + st->image.palette_modified = 1; + if (st->params[1] == 1) { + /* HLS */ + st->params[2] = MIN(st->params[2], 360); + st->params[3] = MIN(st->params[3], 100); + st->params[4] = MIN(st->params[4], 100); + image->palette[st->color_index] + = hls_to_rgb(st->params[2], st->params[3], st->params[4]); + } else if (st->params[1] == 2) { + /* RGB */ + st->params[2] = MIN(st->params[2], 100); + st->params[3] = MIN(st->params[3], 100); + st->params[4] = MIN(st->params[4], 100); + image->palette[st->color_index] + = SIXEL_XRGB(st->params[2], st->params[3], st->params[4]); + } + } + break; + } + break; + + case PS_ERROR: + if (*p == '\x1b') { + st->state = PS_ESC; + goto end; + } + p++; + break; + default: + break; + } + } + +end: + return p - p0; +} + +void +sixel_parser_deinit(sixel_state_t *st) +{ + if (st) + sixel_image_deinit(&st->image); +} + +Pixmap +sixel_create_clipmask(char *pixels, int width, int height) +{ + char c, *clipdata, *dst; + int b, i, n, y, w; + int msb = (XBitmapBitOrder(xw.dpy) == MSBFirst); + sixel_color_t *src = (sixel_color_t *)pixels; + Pixmap clipmask; + + clipdata = dst = malloc((width+7)/8 * height); + if (!clipdata) + return (Pixmap)None; + + for (y = 0; y < height; y++) { + for (w = width; w > 0; w -= n) { + n = MIN(w, 8); + if (msb) { + for (b = 0x80, c = 0, i = 0; i < n; i++, b >>= 1) + c |= (*src++) ? b : 0; + } else { + for (b = 0x01, c = 0, i = 0; i < n; i++, b <<= 1) + c |= (*src++) ? b : 0; + } + *dst++ = c; + } + } + + clipmask = XCreateBitmapFromData(xw.dpy, xw.win, clipdata, width, height); + free(clipdata); + return clipmask; +} diff --git a/vilst/sixel.h b/vilst/sixel.h new file mode 100644 index 0000000..7d14f8a --- /dev/null +++ b/vilst/sixel.h @@ -0,0 +1,63 @@ +#ifndef SIXEL_H +#define SIXEL_H + +#define DECSIXEL_PARAMS_MAX 16 +#define DECSIXEL_PALETTE_MAX 1024 +#define DECSIXEL_PARAMVALUE_MAX 65535 +#define DECSIXEL_WIDTH_MAX 4096 +#define DECSIXEL_HEIGHT_MAX 4096 + +typedef unsigned short sixel_color_no_t; +typedef unsigned int sixel_color_t; + +typedef struct sixel_image_buffer { + sixel_color_no_t *data; + int width; + int height; + sixel_color_t palette[DECSIXEL_PALETTE_MAX]; + sixel_color_no_t ncolors; + int palette_modified; + int use_private_register; +} sixel_image_t; + +typedef enum parse_state { + PS_ESC = 1, /* ESC */ + PS_DECSIXEL = 2, /* DECSIXEL body part ", $, -, ? ... ~ */ + PS_DECGRA = 3, /* DECGRA Set Raster Attributes " Pan; Pad; Ph; Pv */ + PS_DECGRI = 4, /* DECGRI Graphics Repeat Introducer ! Pn Ch */ + PS_DECGCI = 5, /* DECGCI Graphics Color Introducer # Pc; Pu; Px; Py; Pz */ + PS_ERROR = 6, +} parse_state_t; + +typedef struct parser_context { + parse_state_t state; + int pos_x; + int pos_y; + int max_x; + int max_y; + int attributed_pan; + int attributed_pad; + int attributed_ph; + int attributed_pv; + int transparent; + int repeat_count; + int color_index; + int bgindex; + int grid_width; + int grid_height; + int param; + int nparams; + int params[DECSIXEL_PARAMS_MAX]; + sixel_image_t image; +} sixel_state_t; + +void scroll_images(int n); +void delete_image(ImageList *im); +int sixel_parser_init(sixel_state_t *st, int transparent, sixel_color_t fgcolor, sixel_color_t bgcolor, unsigned char use_private_register, int cell_width, int cell_height); +int sixel_parser_parse(sixel_state_t *st, const unsigned char *p, size_t len); +int sixel_parser_set_default_color(sixel_state_t *st); +int sixel_parser_finalize(sixel_state_t *st, ImageList **newimages, int cx, int cy, int cw, int ch); +void sixel_parser_deinit(sixel_state_t *st); +Pixmap sixel_create_clipmask(char *pixels, int width, int height); + +#endif diff --git a/vilst/sixel.o b/vilst/sixel.o new file mode 100644 index 0000000000000000000000000000000000000000..34c0b05e71874bd57ce2da6165923c733326e19d GIT binary patch literal 15376 zcmchde|S{YnaA%W1B?)J2aPsLT0%RvNsTm<1k7lvnPi6CzyzWM#T6IAkSVMQ&}2|3 z5V4a1?sJ()>yKqx+qHGwhwAnLYZvjy)(Id3>>z=5l?ukEroXjMzBYPD5Wtm=HLy40$!wyK-0>Ncyo-Ky@k zst2s%6tSR<*>cR$EoYs?N8nORef^tGd~$ZnLV}t?F*8dcdk4x2l6y zb;PQ=E?C=ZRZFaDwN+KD>U^uZ)T*wws++CqHmkbbs_wR`2dwIGt2$^^N35z#x3<@+ zmRQwltEyPl`BrtQRb6dS8#Z5DQw`gM_;w+_TZkVJ;>U&fpptGFLD9OB-t_(iNn+91 z>5Xl_&SGMZeX5xBo8xyhioB`l-C*oWEt>TqUe4 z4qb`8U#&(xC2EVOXwcXY0-jlc}fDl0X5($3&^tvz+Jur za^e}71mmZ=!|EX=Jg8_3JjG4gDyejj;y4rZ>Pi@qlmaW467J(sw>-I43aMum^&Lfh z&mT)WjEc1ukIQ?u(eZ(jSoc+lvw+8~IQ9m8U#vO|7m9o#PuaRPjoSK)>BWs|P|^aP z62BUB;aP-do;Rh$_Eq0|pMQb>KL0=Z7w#n|f2V{OcuJU`>&VabQYaCm39G2AABLWlCvPCG?55KVlN>!4kv~iYO+zR!%Z6HDP*VodqC&@hoHu*00-3DR- z_30<^82Te7!O%cttMYJ~%F0GD%4|Nc^~u&{?ETe>wuw@)C|eZO>0!(9>o}vehCIJ| zM0>>W=JQ7NR0b}#}CT!mvUjKQPZ^8WBB!D z<=I(en7s$%T zF7PZ0z5j;g1CsQbg2X2ElRbt@F5i>pXdK?*Oy_HjAYp^k8k!dy2X)6p(iuX$l`yv;xn}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xqp0O8qHR+fX3x8+E7}^qpBK=!bYY~kwWE#q&fotihAB0bZzrP# z)$&+|?>}aOx&BR^-hpUusWkzAuBOX8!qV}^leQJA$J}qsec_v&^XXw^#%~_Iyj>#j zVHr)Kbxvjez4l(%Qkir|7lT>9xlfsCX8qL#c5k$t(D zfj_r%`(hiXycEpm_k}o1;6Dery~rqT+L?SKXZHR#?Tc**rr)Oh!-!m}|C^^9Ifi*g z>VG<-OnY 100) { + r = 100; + } + if (g < 0) { + g = 0; + } else if (g > 100) { + g = 100; + } + if (b < 0) { + b = 0; + } else if (b > 100) { + b = 100; + } + return SIXEL_RGB(r * 255 / 100, g * 255 / 100, b * 255 / 100); +} diff --git a/vilst/sixel_hls.h b/vilst/sixel_hls.h new file mode 100644 index 0000000..6176589 --- /dev/null +++ b/vilst/sixel_hls.h @@ -0,0 +1,7 @@ +/* + * Primary color hues: + * blue: 0 degrees + * red: 120 degrees + * green: 240 degrees + */ +int hls_to_rgb(int hue, int lum, int sat); diff --git a/vilst/sixel_hls.o b/vilst/sixel_hls.o new file mode 100644 index 0000000000000000000000000000000000000000..0dfab399ff34d8a89205b4948c17d71be400787c GIT binary patch literal 2832 zcmbW1@oQUE6vyvtI~U#bWkX>wr9oG1qbCd8v`i443~QPuCM-=biP8yb zx3!K4gZ>G!pZp7)`h(=9ldhS_OH|ZNp$@@z`=K*Gl_|#WdGDO$^)*A-f&0$6pL@=| z=bn4-`{>Zo!(E!DL^SohYWIXHW#7}bqmCI>yHrrk*Y&wo^ppDfazhXH(Gc__q`}G! z{mJhd`kUV-_5NBze;w___euS!ihk|_dz@an<;0x03g3zuUqV>DblXgqFTScR=;v~ zW1D`Cpn2YjDV5E5&lyv*n=5)R^v17W!@e!r`xjFf{E|NC{epZhq5XjNEBfD{{fLGf2kg;` zK5j?KD6VOjY-me&qq=gD?G`mZ`e zINPZDh~VmU#gw>fg|=$u(Ow&ixm97ay;s~+*Gp&s>Dv(tEY#}}qlx7yap9o+Ny*yDcaE|0(D<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. +.TP +.BI \-n " name" +defines the window instance name (default $TERM). +.TP +.BI \-o " iofile" +writes all the I/O to +.I iofile. +This feature is useful when recording st sessions. A value of "-" means +standard output. +.TP +.BI \-T " title" +defines the window title (default 'st'). +.TP +.BI \-t " title" +defines the window title (default 'st'). +.TP +.BI \-w " windowid" +embeds st within the window identified by +.I windowid +.TP +.BI \-l " line" +use a tty +.I line +instead of a pseudo terminal. +.I line +should be a (pseudo-)serial device (e.g. /dev/ttyS0 on Linux for serial port +0). +When this flag is given +remaining arguments are used as flags for +.BR stty(1). +By default st initializes the serial line to 8 bits, no parity, 1 stop bit +and a 38400 baud rate. The speed is set by appending it as last argument +(e.g. 'st -l /dev/ttyS0 115200'). Arguments before the last one are +.BR stty(1) +flags. If you want to set odd parity on 115200 baud use for example 'st -l +/dev/ttyS0 parenb parodd 115200'. Set the number of bits by using for +example 'st -l /dev/ttyS0 cs7 115200'. See +.BR stty(1) +for more arguments and cases. +.TP +.B \-v +prints version information to stderr, then exits. +.TP +.BI \-e " command " [ " arguments " "... ]" +st executes +.I command +instead of the shell. If this is used it +.B must be the last option +on the command line, as in xterm / rxvt. +This option is only intended for compatibility, +and all the remaining arguments are used as a command +even without it. +.SH SHORTCUTS +.TP +.B Break +Send a break in the serial line. +Break key is obtained in PC keyboards +pressing at the same time control and pause. +.TP +.B Ctrl-Print Screen +Toggle if st should print to the +.I iofile. +.TP +.B Shift-Print Screen +Print the full screen to the +.I iofile. +.TP +.B Print Screen +Print the selection to the +.I iofile. +.TP +.B Ctrl-Shift-Page Up +Increase font size. +.TP +.B Ctrl-Shift-Page Down +Decrease font size. +.TP +.B Ctrl-Shift-Home +Reset to default font size. +.TP +.B Ctrl-Shift-y +Paste from primary selection (middle mouse button). +.TP +.B Ctrl-Shift-c +Copy the selected text to the clipboard selection. +.TP +.B Ctrl-Shift-v +Paste from the clipboard selection. +.SH CUSTOMIZATION +.B st +can be customized by creating a custom config.h and (re)compiling the source +code. This keeps it fast, secure and simple. +.SH AUTHORS +See the LICENSE file for the authors. +.SH LICENSE +See the LICENSE file for the terms of redistribution. +.SH SEE ALSO +.BR tabbed (1), +.BR utmp (1), +.BR stty (1), +.BR scroll (1) +.SH BUGS +See the TODO file in the distribution. + diff --git a/vilst/st.c b/vilst/st.c new file mode 100644 index 0000000..d7105ae --- /dev/null +++ b/vilst/st.c @@ -0,0 +1,3037 @@ +/* See LICENSE for license details. */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "st.h" +#include "win.h" + +#include "sixel.h" + +#if defined(__linux) + #include +#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) + #include +#elif defined(__FreeBSD__) || defined(__DragonFly__) + #include +#endif + +/* Arbitrary sizes */ +#define UTF_INVALID 0xFFFD +#define UTF_SIZ 4 +#define ESC_BUF_SIZ (128*UTF_SIZ) +#define ESC_ARG_SIZ 16 +#define STR_BUF_SIZ ESC_BUF_SIZ +#define STR_ARG_SIZ ESC_ARG_SIZ +#define STR_TERM_ST "\033\\" +#define STR_TERM_BEL "\007" + +/* macros */ +#define IS_SET(flag) ((term.mode & (flag)) != 0) +#define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) == 0x7f) +#define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f)) +#define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c)) +#define ISDELIM(u) (u && wcschr(worddelimiters, u)) + +enum term_mode { + MODE_WRAP = 1 << 0, + MODE_INSERT = 1 << 1, + MODE_ALTSCREEN = 1 << 2, + MODE_CRLF = 1 << 3, + MODE_ECHO = 1 << 4, + MODE_PRINT = 1 << 5, + MODE_UTF8 = 1 << 6, + MODE_SIXEL = 1 << 7, + MODE_SIXEL_CUR_RT = 1 << 8, + MODE_SIXEL_SDM = 1 << 9 +}; + +enum cursor_movement { + CURSOR_SAVE, + CURSOR_LOAD +}; + +enum cursor_state { + CURSOR_DEFAULT = 0, + CURSOR_WRAPNEXT = 1, + CURSOR_ORIGIN = 2 +}; + +enum charset { + CS_GRAPHIC0, + CS_GRAPHIC1, + CS_UK, + CS_USA, + CS_MULTI, + CS_GER, + CS_FIN +}; + +enum escape_state { + ESC_START = 1, + ESC_CSI = 2, + ESC_STR = 4, /* DCS, OSC, PM, APC */ + ESC_ALTCHARSET = 8, + ESC_STR_END = 16, /* a final string was encountered */ + ESC_TEST = 32, /* Enter in test mode */ + ESC_UTF8 = 64, + ESC_DCS =128, +}; + +typedef struct { + int mode; + int type; + int snap; + /* + * Selection variables: + * nb – normalized coordinates of the beginning of the selection + * ne – normalized coordinates of the end of the selection + * ob – original coordinates of the beginning of the selection + * oe – original coordinates of the end of the selection + */ + struct { + int x, y; + } nb, ne, ob, oe; + + int alt; +} Selection; + +/* CSI Escape sequence structs */ +/* ESC '[' [[ [] [;]] []] */ +typedef struct { + char buf[ESC_BUF_SIZ]; /* raw string */ + size_t len; /* raw string length */ + char priv; + int arg[ESC_ARG_SIZ]; + int narg; /* nb of args */ + char mode[2]; +} CSIEscape; + +/* STR Escape sequence structs */ +/* ESC type [[ [] [;]] ] ESC '\' */ +typedef struct { + char type; /* ESC type ... */ + char *buf; /* allocated raw string */ + size_t siz; /* allocation size */ + size_t len; /* raw string length */ + char *args[STR_ARG_SIZ]; + int narg; /* nb of args */ + char *term; /* terminator: ST or BEL */ +} STREscape; + +static void execsh(char *, char **); +static void stty(char **); +static void sigchld(int); +static void ttywriteraw(const char *, size_t); + +static void csidump(void); +static void csihandle(void); +static void dcshandle(void); +static void csiparse(void); +static void csireset(void); +static void osc_color_response(int, int, int); +static int eschandle(uchar); +static void strdump(void); +static void strhandle(void); +static void strparse(void); +static void strreset(void); + +static void tprinter(char *, size_t); +static void tdumpsel(void); +static void tdumpline(int); +static void tdump(void); +static void tclearregion(int, int, int, int); +static void tcursor(int); +static void tresetcursor(void); +static void tdeletechar(int); +static void tdeleteimages(void); +static void tdeleteline(int); +static void tinsertblank(int); +static void tinsertblankline(int); +static int tlinelen(int); +static void tmoveto(int, int); +static void tmoveato(int, int); +static void tnewline(int); +static void tputtab(int); +static void tputc(Rune); +static void treset(void); +static void tscrollup(int, int, int); +static void tscrolldown(int, int); +static void tsetattr(const int *, int); +static void tsetchar(Rune, const Glyph *, int, int); +static void tsetdirt(int, int); +static void tsetscroll(int, int); +static inline void tsetsixelattr(Line line, int x1, int x2); +static void tswapscreen(void); +static void tsetmode(int, int, const int *, int); +static int twrite(const char *, int, int); +static void tcontrolcode(uchar ); +static void tdectest(char ); +static void tdefutf8(char); +static int32_t tdefcolor(const int *, int *, int); +static void tdeftran(char); +static void tstrsequence(uchar); +static void selnormalize(void); +static void selscroll(int, int); +static void selsnap(int *, int *, int); + +static size_t utf8decode(const char *, Rune *, size_t); +static inline Rune utf8decodebyte(char, size_t *); +static inline char utf8encodebyte(Rune, size_t); +static inline size_t utf8validate(Rune *, size_t); + +static char *base64dec(const char *); +static char base64dec_getc(const char **); + +static ssize_t xwrite(int, const char *, size_t); + +/* Globals */ +static Selection sel; +static CSIEscape csiescseq; +static STREscape strescseq; +static int iofd = 1; +static int cmdfd; +static pid_t pid; +sixel_state_t sixel_st; + +static const uchar utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; +static const uchar utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; +static const Rune utfmin[UTF_SIZ + 1] = { 0, 0, 0x80, 0x800, 0x10000}; +static const Rune utfmax[UTF_SIZ + 1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; + +#include "patch/st_include.h" + +ssize_t +xwrite(int fd, const char *s, size_t len) +{ + size_t aux = len; + ssize_t r; + + while (len > 0) { + r = write(fd, s, len); + if (r < 0) + return r; + len -= r; + s += r; + } + + return aux; +} + +void * +xmalloc(size_t len) +{ + void *p; + + if (!(p = malloc(len))) + die("malloc: %s\n", strerror(errno)); + + return p; +} + +void * +xrealloc(void *p, size_t len) +{ + if ((p = realloc(p, len)) == NULL) + die("realloc: %s\n", strerror(errno)); + + return p; +} + +char * +xstrdup(const char *s) +{ + char *p; + if ((p = strdup(s)) == NULL) + die("strdup: %s\n", strerror(errno)); + + return p; +} + +size_t +utf8decode(const char *c, Rune *u, size_t clen) +{ + size_t i, len; + Rune udecoded; + + *u = UTF_INVALID; + if (!clen) + return 0; + udecoded = utf8decodebyte(c[0], &len); + if (!BETWEEN(len, 2, UTF_SIZ)) { + *u = (len == 1) ? udecoded : UTF_INVALID; + return 1; + } + clen = MIN(clen, len); + for (i = 1; i < clen; ++i) { + if ((c[i] & 0xC0) != 0x80) + return i; + udecoded = (udecoded << 6) | (c[i] & 0x3F); + } + if (i < len) + return 0; + *u = (!BETWEEN(udecoded, utfmin[len], utfmax[len]) || BETWEEN(udecoded, 0xD800, 0xDFFF)) + ? UTF_INVALID : udecoded; + + return len; +} + +Rune +utf8decodebyte(char c, size_t *i) +{ + for (*i = 0; *i < LEN(utfmask); ++(*i)) + if (((uchar)c & utfmask[*i]) == utfbyte[*i]) + return (uchar)c & ~utfmask[*i]; + + return 0; +} + +size_t +utf8encode(Rune u, char *c) +{ + size_t len, i; + + len = utf8validate(&u, 0); + if (len > UTF_SIZ) + return 0; + + for (i = len - 1; i != 0; --i) { + c[i] = utf8encodebyte(u, 0); + u >>= 6; + } + c[0] = utf8encodebyte(u, len); + + return len; +} + +char +utf8encodebyte(Rune u, size_t i) +{ + return utfbyte[i] | (u & ~utfmask[i]); +} + +size_t +utf8validate(Rune *u, size_t i) +{ + if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF)) + *u = UTF_INVALID; + for (i = 1; *u > utfmax[i]; ++i) + ; + + return i; +} + +char +base64dec_getc(const char **src) +{ + while (**src && !isprint((unsigned char)**src)) + (*src)++; + return **src ? *((*src)++) : '='; /* emulate padding if string ends */ +} + +char * +base64dec(const char *src) +{ + size_t in_len = strlen(src); + char *result, *dst; + static const char base64_digits[256] = { + [43] = 62, 0, 0, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + 0, 0, 0, -1, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, + 0, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 + }; + + if (in_len % 4) + in_len += 4 - (in_len % 4); + result = dst = xmalloc(in_len / 4 * 3 + 1); + while (*src) { + int a = base64_digits[(unsigned char) base64dec_getc(&src)]; + int b = base64_digits[(unsigned char) base64dec_getc(&src)]; + int c = base64_digits[(unsigned char) base64dec_getc(&src)]; + int d = base64_digits[(unsigned char) base64dec_getc(&src)]; + + /* invalid input. 'a' can be -1, e.g. if src is "\n" (c-str) */ + if (a == -1 || b == -1) + break; + + *dst++ = (a << 2) | ((b & 0x30) >> 4); + if (c == -1) + break; + *dst++ = ((b & 0x0f) << 4) | ((c & 0x3c) >> 2); + if (d == -1) + break; + *dst++ = ((c & 0x03) << 6) | d; + } + *dst = '\0'; + return result; +} + +void +selinit(void) +{ + sel.mode = SEL_IDLE; + sel.snap = 0; + sel.ob.x = -1; +} + +int +tlinelen(int y) +{ + int i = term.col; + + if (TLINE(y)[i - 1].mode & ATTR_WRAP) + return i; + + while (i > 0 && TLINE(y)[i - 1].u == ' ') + --i; + + return i; +} + +void +selstart(int col, int row, int snap) +{ + selclear(); + sel.mode = SEL_EMPTY; + sel.type = SEL_REGULAR; + sel.alt = IS_SET(MODE_ALTSCREEN); + sel.snap = snap; + sel.oe.x = sel.ob.x = col; + sel.oe.y = sel.ob.y = row; + selnormalize(); + + if (sel.snap != 0) + sel.mode = SEL_READY; + tsetdirt(sel.nb.y, sel.ne.y); +} + +void +selextend(int col, int row, int type, int done) +{ + int oldey, oldex, oldsby, oldsey, oldtype; + + if (sel.mode == SEL_IDLE) + return; + if (done && sel.mode == SEL_EMPTY) { + selclear(); + return; + } + + oldey = sel.oe.y; + oldex = sel.oe.x; + oldsby = sel.nb.y; + oldsey = sel.ne.y; + oldtype = sel.type; + + sel.oe.x = col; + sel.oe.y = row; + sel.type = type; + selnormalize(); + + if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type || sel.mode == SEL_EMPTY) + tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey)); + + sel.mode = done ? SEL_IDLE : SEL_READY; +} + +void +selnormalize(void) +{ + int i; + + if (sel.type == SEL_REGULAR && sel.ob.y != sel.oe.y) { + sel.nb.x = sel.ob.y < sel.oe.y ? sel.ob.x : sel.oe.x; + sel.ne.x = sel.ob.y < sel.oe.y ? sel.oe.x : sel.ob.x; + } else { + sel.nb.x = MIN(sel.ob.x, sel.oe.x); + sel.ne.x = MAX(sel.ob.x, sel.oe.x); + } + sel.nb.y = MIN(sel.ob.y, sel.oe.y); + sel.ne.y = MAX(sel.ob.y, sel.oe.y); + + selsnap(&sel.nb.x, &sel.nb.y, -1); + selsnap(&sel.ne.x, &sel.ne.y, +1); + + /* expand selection over line breaks */ + if (sel.type == SEL_RECTANGULAR) + return; + + i = tlinelen(sel.nb.y); + if (i < sel.nb.x) + sel.nb.x = i; + if (tlinelen(sel.ne.y) <= sel.ne.x) + sel.ne.x = term.col - 1; +} + +int +selected(int x, int y) +{ + if (sel.mode == SEL_EMPTY || sel.ob.x == -1 || + sel.alt != IS_SET(MODE_ALTSCREEN)) + return 0; + + if (sel.type == SEL_RECTANGULAR) + return BETWEEN(y, sel.nb.y, sel.ne.y) + && BETWEEN(x, sel.nb.x, sel.ne.x); + + return BETWEEN(y, sel.nb.y, sel.ne.y) + && (y != sel.nb.y || x >= sel.nb.x) + && (y != sel.ne.y || x <= sel.ne.x); +} + +void +selsnap(int *x, int *y, int direction) +{ + int newx, newy, xt, yt; + int delim, prevdelim; + const Glyph *gp, *prevgp; + + switch (sel.snap) { + case SNAP_WORD: + /* + * Snap around if the word wraps around at the end or + * beginning of a line. + */ + prevgp = &TLINE(*y)[*x]; + prevdelim = ISDELIM(prevgp->u); + for (;;) { + newx = *x + direction; + newy = *y; + if (!BETWEEN(newx, 0, term.col - 1)) { + newy += direction; + newx = (newx + term.col) % term.col; + if (!BETWEEN(newy, 0, term.row - 1)) + break; + + if (direction > 0) + yt = *y, xt = *x; + else + yt = newy, xt = newx; + if (!(TLINE(yt)[xt].mode & ATTR_WRAP)) + break; + } + + if (newx >= tlinelen(newy)) + break; + + gp = &TLINE(newy)[newx]; + delim = ISDELIM(gp->u); + if (!(gp->mode & ATTR_WDUMMY) && (delim != prevdelim + || (delim && gp->u != prevgp->u))) + break; + + *x = newx; + *y = newy; + prevgp = gp; + prevdelim = delim; + } + break; + case SNAP_LINE: + /* + * Snap around if the the previous line or the current one + * has set ATTR_WRAP at its end. Then the whole next or + * previous line will be selected. + */ + *x = (direction < 0) ? 0 : term.col - 1; + if (direction < 0) { + for (; *y > 0; *y += direction) { + if (!(TLINE(*y-1)[term.col-1].mode & ATTR_WRAP)) + { + break; + } + } + } else if (direction > 0) { + for (; *y < term.row-1; *y += direction) { + if (!(TLINE(*y)[term.col-1].mode & ATTR_WRAP)) + { + break; + } + } + } + break; + } +} + +char * +getsel(void) +{ + char *str, *ptr; + int y, bufsize, lastx, linelen; + const Glyph *gp, *last; + + if (sel.ob.x == -1) + return NULL; + + bufsize = (term.col+1) * (sel.ne.y-sel.nb.y+1) * UTF_SIZ; + ptr = str = xmalloc(bufsize); + + /* append every set & selected glyph to the selection */ + for (y = sel.nb.y; y <= sel.ne.y; y++) + { + if ((linelen = tlinelen(y)) == 0) { + *ptr++ = '\n'; + continue; + } + + if (sel.type == SEL_RECTANGULAR) { + gp = &TLINE(y)[sel.nb.x]; + lastx = sel.ne.x; + } else { + gp = &TLINE(y)[sel.nb.y == y ? sel.nb.x : 0]; + lastx = (sel.ne.y == y) ? sel.ne.x : term.col-1; + } + + last = &TLINE(y)[MIN(lastx, linelen-1)]; + while (last >= gp && last->u == ' ') + --last; + + for ( ; gp <= last; ++gp) { + if (gp->mode & ATTR_WDUMMY) + continue; + + ptr += utf8encode(gp->u, ptr); + } + + /* + * Copy and pasting of line endings is inconsistent + * in the inconsistent terminal and GUI world. + * The best solution seems like to produce '\n' when + * something is copied from st and convert '\n' to + * '\r', when something to be pasted is received by + * st. + * FIXME: Fix the computer world. + */ + if ((y < sel.ne.y || lastx >= linelen) + && (!(last->mode & ATTR_WRAP) || sel.type == SEL_RECTANGULAR)) + *ptr++ = '\n'; + } + *ptr = 0; + return str; +} + +void +selclear(void) +{ + if (sel.ob.x == -1) + return; + selremove(); + tsetdirt(sel.nb.y, sel.ne.y); +} + +void +selremove(void) +{ + sel.mode = SEL_IDLE; + sel.ob.x = -1; +} + +void +die(const char *errstr, ...) +{ + va_list ap; + + va_start(ap, errstr); + vfprintf(stderr, errstr, ap); + va_end(ap); + exit(1); +} + +void +execsh(char *cmd, char **args) +{ + char *sh, *prog, *arg; + const struct passwd *pw; + + errno = 0; + if ((pw = getpwuid(getuid())) == NULL) { + if (errno) + die("getpwuid: %s\n", strerror(errno)); + else + die("who are you?\n"); + } + + if ((sh = getenv("SHELL")) == NULL) + sh = (pw->pw_shell[0]) ? pw->pw_shell : cmd; + + if (args) { + prog = args[0]; + arg = NULL; + } else if (scroll) { + prog = scroll; + arg = utmp ? utmp : sh; + } else if (utmp) { + prog = utmp; + arg = NULL; + } else { + prog = sh; + arg = NULL; + } + DEFAULT(args, ((char *[]) {prog, arg, NULL})); + + unsetenv("COLUMNS"); + unsetenv("LINES"); + unsetenv("TERMCAP"); + setenv("LOGNAME", pw->pw_name, 1); + setenv("USER", pw->pw_name, 1); + setenv("SHELL", sh, 1); + setenv("HOME", pw->pw_dir, 1); + setenv("TERM", termname, 1); + setenv("COLORTERM", "truecolor", 1); + + signal(SIGCHLD, SIG_DFL); + signal(SIGHUP, SIG_DFL); + signal(SIGINT, SIG_DFL); + signal(SIGQUIT, SIG_DFL); + signal(SIGTERM, SIG_DFL); + signal(SIGALRM, SIG_DFL); + + execvp(prog, args); + _exit(1); +} + +void +sigchld(int a) +{ + int stat; + pid_t p; + + if ((p = waitpid(pid, &stat, WNOHANG)) < 0) + die("waiting for pid %hd failed: %s\n", pid, strerror(errno)); + + if (pid != p) + return; + + if (WIFEXITED(stat) && WEXITSTATUS(stat)) + die("child exited with status %d\n", WEXITSTATUS(stat)); + else if (WIFSIGNALED(stat)) + die("child terminated due to signal %d\n", WTERMSIG(stat)); + _exit(0); +} + +void +stty(char **args) +{ + char cmd[_POSIX_ARG_MAX], **p, *q, *s; + size_t n, siz; + + if ((n = strlen(stty_args)) > sizeof(cmd)-1) + die("incorrect stty parameters\n"); + memcpy(cmd, stty_args, n); + q = cmd + n; + siz = sizeof(cmd) - n; + for (p = args; p && (s = *p); ++p) { + if ((n = strlen(s)) > siz-1) + die("stty parameter length too long\n"); + *q++ = ' '; + memcpy(q, s, n); + q += n; + siz -= n + 1; + } + *q = '\0'; + if (system(cmd) != 0) + perror("Couldn't call stty"); +} + +int +ttynew(const char *line, char *cmd, const char *out, char **args) +{ + int m, s; + + if (out) { + term.mode |= MODE_PRINT; + iofd = (!strcmp(out, "-")) ? + 1 : open(out, O_WRONLY | O_CREAT, 0666); + if (iofd < 0) { + fprintf(stderr, "Error opening %s:%s\n", + out, strerror(errno)); + } + } + + if (line) { + if ((cmdfd = open(line, O_RDWR)) < 0) + die("open line '%s' failed: %s\n", + line, strerror(errno)); + dup2(cmdfd, 0); + stty(args); + return cmdfd; + } + + /* seems to work fine on linux, openbsd and freebsd */ + if (openpty(&m, &s, NULL, NULL, NULL) < 0) + die("openpty failed: %s\n", strerror(errno)); + + switch (pid = fork()) { + case -1: + die("fork failed: %s\n", strerror(errno)); + break; + case 0: + close(iofd); + close(m); + setsid(); /* create a new process group */ + dup2(s, 0); + dup2(s, 1); + dup2(s, 2); + if (ioctl(s, TIOCSCTTY, NULL) < 0) + die("ioctl TIOCSCTTY failed: %s\n", strerror(errno)); + if (s > 2) + close(s); +#ifdef __OpenBSD__ + if (pledge("stdio getpw proc exec", NULL) == -1) + die("pledge\n"); +#endif + execsh(cmd, args); + break; + default: +#ifdef __OpenBSD__ + if (pledge("stdio rpath tty proc", NULL) == -1) + die("pledge\n"); +#endif + close(s); + cmdfd = m; + signal(SIGCHLD, sigchld); + break; + } + return cmdfd; +} + +size_t +ttyread(void) +{ + static char buf[BUFSIZ]; + static int buflen = 0; + int ret, written; + + /* append read bytes to unprocessed bytes */ + ret = read(cmdfd, buf+buflen, LEN(buf)-buflen); + + switch (ret) { + case 0: + exit(0); + case -1: + die("couldn't read from shell: %s\n", strerror(errno)); + default: + buflen += ret; + written = twrite(buf, buflen, 0); + buflen -= written; + /* keep any incomplete UTF-8 byte sequence for the next call */ + if (buflen > 0) + memmove(buf, buf + written, buflen); + return ret; + } +} + +void +ttywrite(const char *s, size_t n, int may_echo) +{ + const char *next; + kscrolldown(&((Arg){ .i = term.scr })); + + if (may_echo && IS_SET(MODE_ECHO)) + twrite(s, n, 1); + + if (!IS_SET(MODE_CRLF)) { + ttywriteraw(s, n); + return; + } + + /* This is similar to how the kernel handles ONLCR for ttys */ + while (n > 0) { + if (*s == '\r') { + next = s + 1; + ttywriteraw("\r\n", 2); + } else { + next = memchr(s, '\r', n); + DEFAULT(next, s + n); + ttywriteraw(s, next - s); + } + n -= next - s; + s = next; + } +} + +void +ttywriteraw(const char *s, size_t n) +{ + fd_set wfd, rfd; + ssize_t r; + size_t lim = 256; + + /* + * Remember that we are using a pty, which might be a modem line. + * Writing too much will clog the line. That's why we are doing this + * dance. + * FIXME: Migrate the world to Plan 9. + */ + while (n > 0) { + FD_ZERO(&wfd); + FD_ZERO(&rfd); + FD_SET(cmdfd, &wfd); + FD_SET(cmdfd, &rfd); + + /* Check if we can write. */ + if (pselect(cmdfd+1, &rfd, &wfd, NULL, NULL, NULL) < 0) { + if (errno == EINTR) + continue; + die("select failed: %s\n", strerror(errno)); + } + if (FD_ISSET(cmdfd, &wfd)) { + /* + * Only write the bytes written by ttywrite() or the + * default of 256. This seems to be a reasonable value + * for a serial line. Bigger values might clog the I/O. + */ + if ((r = write(cmdfd, s, (n < lim)? n : lim)) < 0) + goto write_error; + if (r < n) { + /* + * We weren't able to write out everything. + * This means the buffer is getting full + * again. Empty it. + */ + if (n < lim) + lim = ttyread(); + n -= r; + s += r; + } else { + /* All bytes have been written. */ + break; + } + } + if (FD_ISSET(cmdfd, &rfd)) + lim = ttyread(); + } + return; + +write_error: + die("write error on tty: %s\n", strerror(errno)); +} + +void +ttyresize(int tw, int th) +{ + struct winsize w; + + w.ws_row = term.row; + w.ws_col = term.col; + w.ws_xpixel = tw; + w.ws_ypixel = th; + if (ioctl(cmdfd, TIOCSWINSZ, &w) < 0) + fprintf(stderr, "Couldn't set window size: %s\n", strerror(errno)); +} + +void +ttyhangup(void) +{ + /* Send SIGHUP to shell */ + kill(pid, SIGHUP); +} + +int +tattrset(int attr) +{ + int i, j; + + for (i = 0; i < term.row-1; i++) { + for (j = 0; j < term.col-1; j++) { + if (term.line[i][j].mode & attr) + return 1; + } + } + + return 0; +} + +int +tisaltscr(void) +{ + return IS_SET(MODE_ALTSCREEN); +} + +void +tsetdirt(int top, int bot) +{ + int i; + + LIMIT(top, 0, term.row-1); + LIMIT(bot, 0, term.row-1); + + for (i = top; i <= bot; i++) + term.dirty[i] = 1; +} + +void +tsetdirtattr(int attr) +{ + int i, j; + + for (i = 0; i < term.row-1; i++) { + for (j = 0; j < term.col-1; j++) { + if (term.line[i][j].mode & attr) { + tsetdirt(i, i); + break; + } + } + } +} + +void +tsetsixelattr(Line line, int x1, int x2) +{ + for (; x1 <= x2; x1++) + line[x1].mode |= ATTR_SIXEL; +} + +void +tfulldirt(void) +{ + tsetdirt(0, term.row-1); +} + +void +tcursor(int mode) +{ + static TCursor c[2]; + int alt = IS_SET(MODE_ALTSCREEN); + + if (mode == CURSOR_SAVE) { + c[alt] = term.c; + } else if (mode == CURSOR_LOAD) { + term.c = c[alt]; + tmoveto(c[alt].x, c[alt].y); + } +} + +void +tresetcursor(void) +{ + term.c = (TCursor){ { .mode = ATTR_NULL, .fg = defaultfg, .bg = defaultbg }, + .x = 0, .y = 0, .state = CURSOR_DEFAULT }; +} + +void +treset(void) +{ + uint i; + + tresetcursor(); + + memset(term.tabs, 0, term.col * sizeof(*term.tabs)); + for (i = tabspaces; i < term.col; i += tabspaces) + term.tabs[i] = 1; + term.top = 0; + term.bot = term.row - 1; + term.mode = MODE_WRAP|MODE_UTF8; + memset(term.trantbl, CS_USA, sizeof(term.trantbl)); + term.charset = 0; + + for (i = 0; i < 2; i++) { + tmoveto(0, 0); + tcursor(CURSOR_SAVE); + tclearregion(0, 0, term.col-1, term.row-1); + tdeleteimages(); + tswapscreen(); + } +} + +void +tnew(int col, int row) +{ + term = (Term){ .c = { .attr = { .fg = defaultfg, .bg = defaultbg } } }; + tresize(col, row); + treset(); +} + +void +tswapscreen(void) +{ + Line *tmp = term.line; + ImageList *im = term.images; + + term.line = term.alt; + term.alt = tmp; + term.images = term.images_alt; + term.images_alt = im; + term.mode ^= MODE_ALTSCREEN; + tfulldirt(); +} + +void +tscrolldown(int orig, int n) +{ + + int i; + Line temp; + int bot = term.bot; + int scr = IS_SET(MODE_ALTSCREEN) ? 0 : term.scr; + int itop = orig + scr, ibot = bot + scr; + ImageList *im, *next; + + LIMIT(n, 0, term.bot-orig+1); + + tsetdirt(orig, term.bot-n); + tclearregion(0, term.bot-n+1, term.col-1, term.bot); + + for (i = term.bot; i >= orig+n; i--) { + temp = term.line[i]; + term.line[i] = term.line[i-n]; + term.line[i-n] = temp; + } + + /* move images, if they are inside the scrolling region */ + for (im = term.images; im; im = next) { + next = im->next; + if (im->y >= itop && im->y <= ibot) { + im->y += n; + if (im->y > ibot) + delete_image(im); + } + } + + if (term.scr == 0) + selscroll(orig, n); +} + +void +tscrollup(int orig, int n, int copyhist) +{ + + int i; + Line temp; + int bot = term.bot; + int scr = IS_SET(MODE_ALTSCREEN) ? 0 : term.scr; + int itop = orig + scr, ibot = bot + scr; + ImageList *im, *next; + + LIMIT(n, 0, term.bot-orig+1); + + if (copyhist && !IS_SET(MODE_ALTSCREEN)) { + for (i = 0; i < n; i++) { + term.histi = (term.histi + 1) % HISTSIZE; + temp = term.hist[term.histi]; + term.hist[term.histi] = term.line[orig+i]; + term.line[orig+i] = temp; + } + term.histn = MIN(term.histn + n, HISTSIZE); + + if (term.scr > 0 && term.scr < HISTSIZE) + term.scr = MIN(term.scr + n, HISTSIZE-1); + } + + tclearregion(0, orig, term.col-1, orig+n-1); + tsetdirt(orig+n, term.bot); + + for (i = orig; i <= term.bot-n; i++) { + temp = term.line[i]; + term.line[i] = term.line[i+n]; + term.line[i+n] = temp; + } + + if (IS_SET(MODE_ALTSCREEN) || !copyhist || orig != 0) { + /* move images, if they are inside the scrolling region */ + for (im = term.images; im; im = next) { + next = im->next; + if (im->y >= itop && im->y <= ibot) { + im->y -= n; + if (im->y < itop) + delete_image(im); + } + } + } else { + /* move images, if they are inside the scrolling region or scrollback */ + for (im = term.images; im; im = next) { + next = im->next; + im->y -= scr; + if (im->y < 0) { + im->y -= n; + } else if (im->y >= orig && im->y <= bot) { + im->y -= n; + if (im->y < orig) + im->y -= orig; // move to scrollback + } + if (im->y < -HISTSIZE) + delete_image(im); + else + im->y += term.scr; + } + } + + if (term.scr == 0) + selscroll(orig, -n); +} + +void +selscroll(int orig, int n) +{ + if (sel.ob.x == -1 || sel.alt != IS_SET(MODE_ALTSCREEN)) + return; + + if (BETWEEN(sel.nb.y, orig, term.bot) != BETWEEN(sel.ne.y, orig, term.bot)) { + selclear(); + } else if (BETWEEN(sel.nb.y, orig, term.bot)) { + sel.ob.y += n; + sel.oe.y += n; + if (sel.ob.y < term.top || sel.ob.y > term.bot || + sel.oe.y < term.top || sel.oe.y > term.bot) { + selclear(); + } else { + selnormalize(); + } + } +} + +void +tnewline(int first_col) +{ + int y = term.c.y; + + if (y == term.bot) { + tscrollup(term.top, 1, 1); + } else { + y++; + } + tmoveto(first_col ? 0 : term.c.x, y); +} + +void +csiparse(void) +{ + char *p = csiescseq.buf, *np; + long int v; + int sep = ';'; /* colon or semi-colon, but not both */ + + csiescseq.narg = 0; + if (*p == '?') { + csiescseq.priv = 1; + p++; + } + + csiescseq.buf[csiescseq.len] = '\0'; + while (p < csiescseq.buf+csiescseq.len) { + np = NULL; + v = strtol(p, &np, 10); + if (np == p) + v = 0; + if (v == LONG_MAX || v == LONG_MIN) + v = -1; + csiescseq.arg[csiescseq.narg++] = v; + p = np; + if (sep == ';' && *p == ':') + sep = ':'; /* allow override to colon once */ + if (*p != sep || csiescseq.narg == ESC_ARG_SIZ) + break; + p++; + } + csiescseq.mode[0] = *p++; + csiescseq.mode[1] = (p < csiescseq.buf+csiescseq.len) ? *p : '\0'; +} + +/* for absolute user moves, when decom is set */ +void +tmoveato(int x, int y) +{ + tmoveto(x, y + ((term.c.state & CURSOR_ORIGIN) ? term.top: 0)); +} + +void +tmoveto(int x, int y) +{ + int miny, maxy; + + if (term.c.state & CURSOR_ORIGIN) { + miny = term.top; + maxy = term.bot; + } else { + miny = 0; + maxy = term.row - 1; + } + term.c.state &= ~CURSOR_WRAPNEXT; + term.c.x = LIMIT(x, 0, term.col-1); + term.c.y = LIMIT(y, miny, maxy); +} + +void +tsetchar(Rune u, const Glyph *attr, int x, int y) +{ + static const char *vt100_0[62] = { /* 0x41 - 0x7e */ + "↑", "↓", "→", "←", "█", "▚", "☃", /* A - G */ + 0, 0, 0, 0, 0, 0, 0, 0, /* H - O */ + 0, 0, 0, 0, 0, 0, 0, 0, /* P - W */ + 0, 0, 0, 0, 0, 0, 0, " ", /* X - _ */ + "◆", "▒", "␉", "␌", "␍", "␊", "°", "±", /* ` - g */ + "␤", "␋", "┘", "┐", "┌", "└", "┼", "⎺", /* h - o */ + "⎻", "─", "⎼", "⎽", "├", "┤", "┴", "┬", /* p - w */ + "│", "≤", "≥", "π", "≠", "£", "·", /* x - ~ */ + }; + + /* + * The table is proudly stolen from rxvt. + */ + if (term.trantbl[term.charset] == CS_GRAPHIC0 && + BETWEEN(u, 0x41, 0x7e) && vt100_0[u - 0x41]) + utf8decode(vt100_0[u - 0x41], &u, UTF_SIZ); + + if (term.line[y][x].mode & ATTR_WIDE) { + if (x+1 < term.col) { + term.line[y][x+1].u = ' '; + term.line[y][x+1].mode &= ~ATTR_WDUMMY; + } + } else if (term.line[y][x].mode & ATTR_WDUMMY) { + term.line[y][x-1].u = ' '; + term.line[y][x-1].mode &= ~ATTR_WIDE; + } + + term.dirty[y] = 1; + term.line[y][x] = *attr; + term.line[y][x].u = u; + +} + +void +tclearregion(int x1, int y1, int x2, int y2) +{ + int x, y, temp; + Glyph *gp; + + if (x1 > x2) + temp = x1, x1 = x2, x2 = temp; + if (y1 > y2) + temp = y1, y1 = y2, y2 = temp; + + LIMIT(x1, 0, term.col-1); + LIMIT(x2, 0, term.col-1); + LIMIT(y1, 0, term.row-1); + LIMIT(y2, 0, term.row-1); + + for (y = y1; y <= y2; y++) { + term.dirty[y] = 1; + for (x = x1; x <= x2; x++) { + gp = &term.line[y][x]; + if (selected(x, y)) + selclear(); + gp->fg = term.c.attr.fg; + gp->bg = term.c.attr.bg; + gp->mode = 0; + gp->u = ' '; + } + } +} + +void +tdeletechar(int n) +{ + int dst, src, size; + Glyph *line; + + LIMIT(n, 0, term.col - term.c.x); + + dst = term.c.x; + src = term.c.x + n; + size = term.col - src; + line = term.line[term.c.y]; + + memmove(&line[dst], &line[src], size * sizeof(Glyph)); + tclearregion(term.col-n, term.c.y, term.col-1, term.c.y); +} + +void +tinsertblank(int n) +{ + int dst, src, size; + Glyph *line; + + LIMIT(n, 0, term.col - term.c.x); + + dst = term.c.x + n; + src = term.c.x; + size = term.col - dst; + line = term.line[term.c.y]; + + memmove(&line[dst], &line[src], size * sizeof(Glyph)); + tclearregion(src, term.c.y, dst - 1, term.c.y); +} + +void +tinsertblankline(int n) +{ + if (BETWEEN(term.c.y, term.top, term.bot)) + tscrolldown(term.c.y, n); +} + +void +tdeleteimages(void) +{ + ImageList *im, *next; + + for (im = term.images; im; im = next) { + next = im->next; + delete_image(im); + } +} + +void +tdeleteline(int n) +{ + if (BETWEEN(term.c.y, term.top, term.bot)) { + tscrollup(term.c.y, n, 0); + } +} + +int32_t +tdefcolor(const int *attr, int *npar, int l) +{ + int32_t idx = -1; + uint r, g, b; + + switch (attr[*npar + 1]) { + case 2: /* direct color in RGB space */ + if (*npar + 4 >= l) { + fprintf(stderr, + "erresc(38): Incorrect number of parameters (%d)\n", + *npar); + break; + } + r = attr[*npar + 2]; + g = attr[*npar + 3]; + b = attr[*npar + 4]; + *npar += 4; + if (!BETWEEN(r, 0, 255) || !BETWEEN(g, 0, 255) || !BETWEEN(b, 0, 255)) + fprintf(stderr, "erresc: bad rgb color (%u,%u,%u)\n", + r, g, b); + else + idx = TRUECOLOR(r, g, b); + break; + case 5: /* indexed color */ + if (*npar + 2 >= l) { + fprintf(stderr, + "erresc(38): Incorrect number of parameters (%d)\n", + *npar); + break; + } + *npar += 2; + if (!BETWEEN(attr[*npar], 0, 255)) + fprintf(stderr, "erresc: bad fgcolor %d\n", attr[*npar]); + else + idx = attr[*npar]; + break; + case 0: /* implemented defined (only foreground) */ + case 1: /* transparent */ + case 3: /* direct color in CMY space */ + case 4: /* direct color in CMYK space */ + default: + fprintf(stderr, + "erresc(38): gfx attr %d unknown\n", attr[*npar]); + break; + } + + return idx; +} + +void +tsetattr(const int *attr, int l) +{ + int i; + int32_t idx; + + for (i = 0; i < l; i++) { + switch (attr[i]) { + case 0: + term.c.attr.mode &= ~( + ATTR_BOLD | + ATTR_FAINT | + ATTR_ITALIC | + ATTR_UNDERLINE | + ATTR_BLINK | + ATTR_REVERSE | + ATTR_INVISIBLE | + ATTR_STRUCK ); + term.c.attr.fg = defaultfg; + term.c.attr.bg = defaultbg; + break; + case 1: + term.c.attr.mode |= ATTR_BOLD; + break; + case 2: + term.c.attr.mode |= ATTR_FAINT; + break; + case 3: + term.c.attr.mode |= ATTR_ITALIC; + break; + case 4: + term.c.attr.mode |= ATTR_UNDERLINE; + break; + case 5: /* slow blink */ + /* FALLTHROUGH */ + case 6: /* rapid blink */ + term.c.attr.mode |= ATTR_BLINK; + break; + case 7: + term.c.attr.mode |= ATTR_REVERSE; + break; + case 8: + term.c.attr.mode |= ATTR_INVISIBLE; + break; + case 9: + term.c.attr.mode |= ATTR_STRUCK; + break; + case 22: + term.c.attr.mode &= ~(ATTR_BOLD | ATTR_FAINT); + break; + case 23: + term.c.attr.mode &= ~ATTR_ITALIC; + break; + case 24: + term.c.attr.mode &= ~ATTR_UNDERLINE; + break; + case 25: + term.c.attr.mode &= ~ATTR_BLINK; + break; + case 27: + term.c.attr.mode &= ~ATTR_REVERSE; + break; + case 28: + term.c.attr.mode &= ~ATTR_INVISIBLE; + break; + case 29: + term.c.attr.mode &= ~ATTR_STRUCK; + break; + case 38: + if ((idx = tdefcolor(attr, &i, l)) >= 0) + term.c.attr.fg = idx; + break; + case 39: + term.c.attr.fg = defaultfg; + break; + case 48: + if ((idx = tdefcolor(attr, &i, l)) >= 0) + term.c.attr.bg = idx; + break; + case 49: + term.c.attr.bg = defaultbg; + break; + default: + if (BETWEEN(attr[i], 30, 37)) { + term.c.attr.fg = attr[i] - 30; + } else if (BETWEEN(attr[i], 40, 47)) { + term.c.attr.bg = attr[i] - 40; + } else if (BETWEEN(attr[i], 90, 97)) { + term.c.attr.fg = attr[i] - 90 + 8; + } else if (BETWEEN(attr[i], 100, 107)) { + term.c.attr.bg = attr[i] - 100 + 8; + } else { + fprintf(stderr, + "erresc(default): gfx attr %d unknown\n", + attr[i]); + csidump(); + } + break; + } + } +} + +void +tsetscroll(int t, int b) +{ + int temp; + + LIMIT(t, 0, term.row-1); + LIMIT(b, 0, term.row-1); + if (t > b) { + temp = t; + t = b; + b = temp; + } + term.top = t; + term.bot = b; +} + +void +tsetmode(int priv, int set, const int *args, int narg) +{ + int alt; + const int *lim; + + for (lim = args + narg; args < lim; ++args) { + if (priv) { + switch (*args) { + case 1: /* DECCKM -- Cursor key */ + xsetmode(set, MODE_APPCURSOR); + break; + case 5: /* DECSCNM -- Reverse video */ + xsetmode(set, MODE_REVERSE); + break; + case 6: /* DECOM -- Origin */ + MODBIT(term.c.state, set, CURSOR_ORIGIN); + tmoveato(0, 0); + break; + case 7: /* DECAWM -- Auto wrap */ + MODBIT(term.mode, set, MODE_WRAP); + break; + case 0: /* Error (IGNORED) */ + case 2: /* DECANM -- ANSI/VT52 (IGNORED) */ + case 3: /* DECCOLM -- Column (IGNORED) */ + case 4: /* DECSCLM -- Scroll (IGNORED) */ + case 8: /* DECARM -- Auto repeat (IGNORED) */ + case 18: /* DECPFF -- Printer feed (IGNORED) */ + case 19: /* DECPEX -- Printer extent (IGNORED) */ + case 42: /* DECNRCM -- National characters (IGNORED) */ + case 12: /* att610 -- Start blinking cursor (IGNORED) */ + break; + case 25: /* DECTCEM -- Text Cursor Enable Mode */ + xsetmode(!set, MODE_HIDE); + break; + case 9: /* X10 mouse compatibility mode */ + xsetpointermotion(0); + xsetmode(0, MODE_MOUSE); + xsetmode(set, MODE_MOUSEX10); + break; + case 1000: /* 1000: report button press */ + xsetpointermotion(0); + xsetmode(0, MODE_MOUSE); + xsetmode(set, MODE_MOUSEBTN); + break; + case 1002: /* 1002: report motion on button press */ + xsetpointermotion(0); + xsetmode(0, MODE_MOUSE); + xsetmode(set, MODE_MOUSEMOTION); + break; + case 1003: /* 1003: enable all mouse motions */ + xsetpointermotion(set); + xsetmode(0, MODE_MOUSE); + xsetmode(set, MODE_MOUSEMANY); + break; + case 1004: /* 1004: send focus events to tty */ + xsetmode(set, MODE_FOCUS); + break; + case 1006: /* 1006: extended reporting mode */ + xsetmode(set, MODE_MOUSESGR); + break; + case 1034: + xsetmode(set, MODE_8BIT); + break; + case 1049: /* swap screen & set/restore cursor as xterm */ + if (!allowaltscreen) + break; + tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD); + /* FALLTHROUGH */ + case 47: /* swap screen */ + case 1047: + if (!allowaltscreen) + break; + alt = IS_SET(MODE_ALTSCREEN); + if (alt) { + tclearregion(0, 0, term.col-1, term.row-1); + } + if (set ^ alt) /* set is always 1 or 0 */ + tswapscreen(); + if (*args != 1049) + break; + /* FALLTHROUGH */ + case 1048: + tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD); + break; + case 2004: /* 2004: bracketed paste mode */ + xsetmode(set, MODE_BRCKTPASTE); + break; + /* Not implemented mouse modes. See comments there. */ + case 1001: /* mouse highlight mode; can hang the + terminal by design when implemented. */ + case 1005: /* UTF-8 mouse mode; will confuse + applications not supporting UTF-8 + and luit. */ + case 1015: /* urxvt mangled mouse mode; incompatible + and can be mistaken for other control + codes. */ + break; + case 80: /* DECSDM -- Sixel Display Mode */ + MODBIT(term.mode, set, MODE_SIXEL_SDM); + break; + case 8452: /* sixel scrolling leaves cursor to right of graphic */ + MODBIT(term.mode, set, MODE_SIXEL_CUR_RT); + break; + default: + fprintf(stderr, + "erresc: unknown private set/reset mode %d\n", + *args); + break; + } + } else { + switch (*args) { + case 0: /* Error (IGNORED) */ + break; + case 2: + xsetmode(set, MODE_KBDLOCK); + break; + case 4: /* IRM -- Insertion-replacement */ + MODBIT(term.mode, set, MODE_INSERT); + break; + case 12: /* SRM -- Send/Receive */ + MODBIT(term.mode, !set, MODE_ECHO); + break; + case 20: /* LNM -- Linefeed/new line */ + MODBIT(term.mode, set, MODE_CRLF); + break; + default: + fprintf(stderr, + "erresc: unknown set/reset mode %d\n", + *args); + break; + } + } + } +} + +void +csihandle(void) +{ + char buffer[40]; + int n = 0, len; + ImageList *im, *next; + int pi, pa; + int maxcol = term.col; + + switch (csiescseq.mode[0]) { + default: + unknown: + fprintf(stderr, "erresc: unknown csi "); + csidump(); + /* die(""); */ + break; + case '@': /* ICH -- Insert blank char */ + DEFAULT(csiescseq.arg[0], 1); + tinsertblank(csiescseq.arg[0]); + break; + case 'A': /* CUU -- Cursor Up */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(term.c.x, term.c.y-csiescseq.arg[0]); + break; + case 'B': /* CUD -- Cursor Down */ + case 'e': /* VPR --Cursor Down */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(term.c.x, term.c.y+csiescseq.arg[0]); + break; + case 'i': /* MC -- Media Copy */ + switch (csiescseq.arg[0]) { + case 0: + tdump(); + break; + case 1: + tdumpline(term.c.y); + break; + case 2: + tdumpsel(); + break; + case 4: + term.mode &= ~MODE_PRINT; + break; + case 5: + term.mode |= MODE_PRINT; + break; + } + break; + case 'c': /* DA -- Device Attributes */ + if (csiescseq.arg[0] == 0) + ttywrite(vtiden, strlen(vtiden), 0); + break; + case 'b': /* REP -- if last char is printable print it more times */ + LIMIT(csiescseq.arg[0], 1, 65535); + if (term.lastc) + while (csiescseq.arg[0]-- > 0) + tputc(term.lastc); + break; + case 'C': /* CUF -- Cursor Forward */ + case 'a': /* HPR -- Cursor Forward */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(term.c.x+csiescseq.arg[0], term.c.y); + break; + case 'D': /* CUB -- Cursor Backward */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(term.c.x-csiescseq.arg[0], term.c.y); + break; + case 'E': /* CNL -- Cursor Down and first col */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(0, term.c.y+csiescseq.arg[0]); + break; + case 'F': /* CPL -- Cursor Up and first col */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(0, term.c.y-csiescseq.arg[0]); + break; + case 'g': /* TBC -- Tabulation clear */ + switch (csiescseq.arg[0]) { + case 0: /* clear current tab stop */ + term.tabs[term.c.x] = 0; + break; + case 3: /* clear all the tabs */ + memset(term.tabs, 0, term.col * sizeof(*term.tabs)); + break; + default: + goto unknown; + } + break; + case 'G': /* CHA -- Move to */ + case '`': /* HPA */ + DEFAULT(csiescseq.arg[0], 1); + tmoveto(csiescseq.arg[0]-1, term.c.y); + break; + case 'H': /* CUP -- Move to */ + case 'f': /* HVP */ + DEFAULT(csiescseq.arg[0], 1); + DEFAULT(csiescseq.arg[1], 1); + tmoveato(csiescseq.arg[1]-1, csiescseq.arg[0]-1); + break; + case 'I': /* CHT -- Cursor Forward Tabulation tab stops */ + DEFAULT(csiescseq.arg[0], 1); + tputtab(csiescseq.arg[0]); + break; + case 'J': /* ED -- Clear screen */ + switch (csiescseq.arg[0]) { + case 0: /* below */ + tclearregion(term.c.x, term.c.y, maxcol-1, term.c.y); + if (term.c.y < term.row-1) + tclearregion(0, term.c.y+1, maxcol-1, term.row-1); + break; + case 1: /* above */ + if (term.c.y > 1) + tclearregion(0, 0, maxcol-1, term.c.y-1); + tclearregion(0, term.c.y, term.c.x, term.c.y); + break; + case 2: /* screen */ + if (!IS_SET(MODE_ALTSCREEN)) { + kscrolldown(&((Arg){ .i = term.scr })); + int n, m, bot = term.bot; + term.bot = term.row-1; + for (n = term.row-1; n >= 0; n--) { + for (m = 0; m < maxcol && term.line[n][m].u == ' ' && !term.line[n][m].mode; m++); + if (m < maxcol) { + tscrollup(0, n+1, 1); + break; + } + } + if (n < term.row-1) + tclearregion(0, 0, maxcol-1, term.row-n-2); + term.bot = bot; + break; + } + + tclearregion(0, 0, maxcol-1, term.row-1); + tdeleteimages(); + break; + case 3: /* scrollback */ + if (!IS_SET(MODE_ALTSCREEN)) { + term.scr = 0; + term.histi = 0; + term.histn = 0; + Glyph g=(Glyph){.bg=term.c.attr.bg, .fg=term.c.attr.fg, .u=' ', .mode=0}; + for (int i = 0; i < HISTSIZE; i++) { + for (int j = 0; j < maxcol; j++) + term.hist[i][j] = g; + } + } + for (im = term.images; im; im = next) { + next = im->next; + if (im->y < 0) + delete_image(im); + } + break; + case 6: /* sixels */ + tdeleteimages(); + tfulldirt(); + break; + default: + goto unknown; + } + break; + case 'K': /* EL -- Clear line */ + switch (csiescseq.arg[0]) { + case 0: /* right */ + tclearregion(term.c.x, term.c.y, maxcol-1, term.c.y); + break; + case 1: /* left */ + tclearregion(0, term.c.y, term.c.x, term.c.y); + break; + case 2: /* all */ + tclearregion(0, term.c.y, maxcol-1, term.c.y); + break; + } + break; + case 'S': /* SU -- Scroll line up ; XTSMGRAPHICS */ + if (csiescseq.priv) { + if (csiescseq.narg > 1) { + /* XTSMGRAPHICS */ + pi = csiescseq.arg[0]; + pa = csiescseq.arg[1]; + if (pi == 1 && (pa == 1 || pa == 2 || pa == 4)) { + /* number of sixel color registers */ + /* (read, reset and read the maximum value give the same response) */ + n = snprintf(buffer, sizeof buffer, "\033[?1;0;%dS", DECSIXEL_PALETTE_MAX); + ttywrite(buffer, n, 1); + break; + } else if (pi == 2 && (pa == 1 || pa == 2 || pa == 4)) { + /* sixel graphics geometry (in pixels) */ + /* (read, reset and read the maximum value give the same response) */ + n = snprintf(buffer, sizeof buffer, "\033[?2;0;%d;%dS", + MIN(term.col * win.cw, DECSIXEL_WIDTH_MAX), + MIN(term.row * win.ch, DECSIXEL_HEIGHT_MAX)); + ttywrite(buffer, n, 1); + break; + } + /* the number of color registers and sixel geometry can't be changed */ + n = snprintf(buffer, sizeof buffer, "\033[?%d;3;0S", pi); /* failure */ + ttywrite(buffer, n, 1); + } + goto unknown; + } + DEFAULT(csiescseq.arg[0], 1); + tscrollup(term.top, csiescseq.arg[0], 1); + break; + case 'T': /* SD -- Scroll line down */ + DEFAULT(csiescseq.arg[0], 1); + tscrolldown(term.top, csiescseq.arg[0]); + break; + case 'L': /* IL -- Insert blank lines */ + DEFAULT(csiescseq.arg[0], 1); + tinsertblankline(csiescseq.arg[0]); + break; + case 'l': /* RM -- Reset Mode */ + tsetmode(csiescseq.priv, 0, csiescseq.arg, csiescseq.narg); + break; + case 'M': /* DL -- Delete lines */ + DEFAULT(csiescseq.arg[0], 1); + tdeleteline(csiescseq.arg[0]); + break; + case 'X': /* ECH -- Erase char */ + DEFAULT(csiescseq.arg[0], 1); + tclearregion(term.c.x, term.c.y, + term.c.x + csiescseq.arg[0] - 1, term.c.y); + break; + case 'P': /* DCH -- Delete char */ + DEFAULT(csiescseq.arg[0], 1); + tdeletechar(csiescseq.arg[0]); + break; + case 'Z': /* CBT -- Cursor Backward Tabulation tab stops */ + DEFAULT(csiescseq.arg[0], 1); + tputtab(-csiescseq.arg[0]); + break; + case 'd': /* VPA -- Move to */ + DEFAULT(csiescseq.arg[0], 1); + tmoveato(term.c.x, csiescseq.arg[0]-1); + break; + case 'h': /* SM -- Set terminal mode */ + tsetmode(csiescseq.priv, 1, csiescseq.arg, csiescseq.narg); + break; + case 'm': /* SGR -- Terminal attribute (color) */ + tsetattr(csiescseq.arg, csiescseq.narg); + break; + case 'n': /* DSR -- Device Status Report */ + switch (csiescseq.arg[0]) { + case 5: /* Status Report "OK" `0n` */ + ttywrite("\033[0n", sizeof("\033[0n") - 1, 0); + break; + case 6: /* Report Cursor Position (CPR) ";R" */ + len = snprintf(buffer, sizeof(buffer), "\033[%i;%iR", + term.c.y+1, term.c.x+1); + ttywrite(buffer, len, 0); + break; + default: + goto unknown; + } + break; + case 'r': /* DECSTBM -- Set Scrolling Region */ + if (csiescseq.priv) { + goto unknown; + } else { + DEFAULT(csiescseq.arg[0], 1); + DEFAULT(csiescseq.arg[1], term.row); + tsetscroll(csiescseq.arg[0]-1, csiescseq.arg[1]-1); + tmoveato(0, 0); + } + break; + case 's': /* DECSC -- Save cursor position (ANSI.SYS) */ + tcursor(CURSOR_SAVE); + break; + case 't': /* title stack operations ; XTWINOPS */ + switch (csiescseq.arg[0]) { + case 14: /* text area size in pixels */ + if (csiescseq.narg > 1) + goto unknown; + n = snprintf(buffer, sizeof buffer, "\033[4;%d;%dt", + term.row * win.ch, term.col * win.cw); + ttywrite(buffer, n, 1); + break; + case 16: /* character cell size in pixels */ + n = snprintf(buffer, sizeof buffer, "\033[6;%d;%dt", win.ch, win.cw); + ttywrite(buffer, n, 1); + break; + case 18: /* size of the text area in characters */ + n = snprintf(buffer, sizeof buffer, "\033[8;%d;%dt", term.row, term.col); + ttywrite(buffer, n, 1); + break; + default: + goto unknown; + } + break; + case 'u': /* DECRC -- Restore cursor position (ANSI.SYS) */ + tcursor(CURSOR_LOAD); + break; + case ' ': + switch (csiescseq.mode[1]) { + case 'q': /* DECSCUSR -- Set Cursor Style */ + if (xsetcursor(csiescseq.arg[0])) + goto unknown; + break; + default: + goto unknown; + } + break; + } +} + +void +csidump(void) +{ + size_t i; + uint c; + + fprintf(stderr, "ESC["); + for (i = 0; i < csiescseq.len; i++) { + c = csiescseq.buf[i] & 0xff; + if (isprint(c)) { + putc(c, stderr); + } else if (c == '\n') { + fprintf(stderr, "(\\n)"); + } else if (c == '\r') { + fprintf(stderr, "(\\r)"); + } else if (c == 0x1b) { + fprintf(stderr, "(\\e)"); + } else { + fprintf(stderr, "(%02x)", c); + } + } + putc('\n', stderr); +} + +void +csireset(void) +{ + memset(&csiescseq, 0, sizeof(csiescseq)); +} + +void +osc_color_response(int num, int index, int is_osc4) +{ + int n; + char buf[32]; + unsigned char r, g, b; + + if (xgetcolor(is_osc4 ? num : index, &r, &g, &b)) { + fprintf(stderr, "erresc: failed to fetch %s color %d\n", + is_osc4 ? "osc4" : "osc", + is_osc4 ? num : index); + return; + } + + n = snprintf(buf, sizeof buf, "\033]%s%d;rgb:%02x%02x/%02x%02x/%02x%02x%s", + is_osc4 ? "4;" : "", num, r, r, g, g, b, b, strescseq.term); + if (n < 0 || n >= sizeof(buf)) { + fprintf(stderr, "error: %s while printing %s response\n", + n < 0 ? "snprintf failed" : "truncation occurred", + is_osc4 ? "osc4" : "osc"); + } else { + ttywrite(buf, n, 1); + } +} + +void +strhandle(void) +{ + char *p = NULL, *dec; + int j, narg, par; + const struct { int idx; char *str; } osc_table[] = { + { defaultfg, "foreground" }, + { defaultbg, "background" }, + { defaultcs, "cursor" } + }; + ImageList *im, *newimages, *next, *tail; + int i, x1, y1, x2, y2, numimages; + int cx, cy; + Line line; + int scr = IS_SET(MODE_ALTSCREEN) ? 0 : term.scr; + + term.esc &= ~(ESC_STR_END|ESC_STR); + strparse(); + par = (narg = strescseq.narg) ? atoi(strescseq.args[0]) : 0; + + switch (strescseq.type) { + case ']': /* OSC -- Operating System Command */ + switch (par) { + case 0: + if (narg > 1) { + xsettitle(strescseq.args[1]); + xseticontitle(strescseq.args[1]); + } + return; + case 1: + if (narg > 1) + xseticontitle(strescseq.args[1]); + return; + case 2: + if (narg > 1) + xsettitle(strescseq.args[1]); + return; + case 52: + if (narg > 2 && allowwindowops) { + dec = base64dec(strescseq.args[2]); + if (dec) { + xsetsel(dec); + xclipcopy(); + } else { + fprintf(stderr, "erresc: invalid base64\n"); + } + } + return; + case 8: /* Clear Hyperlinks */ + return; + case 10: + case 11: + case 12: + if (narg < 2) + break; + p = strescseq.args[1]; + if ((j = par - 10) < 0 || j >= LEN(osc_table)) + break; /* shouldn't be possible */ + + if (!strcmp(p, "?")) { + osc_color_response(par, osc_table[j].idx, 0); + } else if (xsetcolorname(osc_table[j].idx, p)) { + fprintf(stderr, "erresc: invalid %s color: %s\n", + osc_table[j].str, p); + } else { + tfulldirt(); + } + return; + case 4: /* color set */ + if (narg < 3) + break; + p = strescseq.args[2]; + /* FALLTHROUGH */ + case 104: /* color reset */ + j = (narg > 1) ? atoi(strescseq.args[1]) : -1; + + if (p && !strcmp(p, "?")) { + osc_color_response(j, 0, 1); + } else if (xsetcolorname(j, p)) { + if (par == 104 && narg <= 1) { + xloadcols(); + return; /* color reset without parameter */ + } + fprintf(stderr, "erresc: invalid color j=%d, p=%s\n", + j, p ? p : "(null)"); + } else { + /* + * TODO if defaultbg color is changed, borders + * are dirty + */ + tfulldirt(); + } + return; + } + break; + case 'k': /* old title set compatibility */ + xsettitle(strescseq.args[0]); + return; + case 'P': /* DCS -- Device Control String */ + if (IS_SET(MODE_SIXEL)) { + term.mode &= ~MODE_SIXEL; + if (!sixel_st.image.data) { + sixel_parser_deinit(&sixel_st); + return; + } + cx = IS_SET(MODE_SIXEL_SDM) ? 0 : term.c.x; + cy = IS_SET(MODE_SIXEL_SDM) ? 0 : term.c.y; + if ((numimages = sixel_parser_finalize(&sixel_st, &newimages, + cx, cy + scr, win.cw, win.ch)) <= 0) { + sixel_parser_deinit(&sixel_st); + perror("sixel_parser_finalize() failed"); + return; + } + sixel_parser_deinit(&sixel_st); + x1 = newimages->x; + y1 = newimages->y; + x2 = x1 + newimages->cols; + y2 = y1 + numimages; + if (newimages->transparent) { + for (tail = term.images; tail && tail->next; tail = tail->next); + } else { + for (tail = NULL, im = term.images; im; im = next) { + next = im->next; + if (im->x >= x1 && im->x + im->cols <= x2 && + im->y >= y1 && im->y <= y2) { + delete_image(im); + continue; + } + tail = im; + } + } + if (tail) { + tail->next = newimages; + newimages->prev = tail; + } else { + term.images = newimages; + } + x2 = MIN(x2, term.col) - 1; + if (IS_SET(MODE_SIXEL_SDM)) { + /* Sixel display mode: put the sixel in the upper left corner of + * the screen, disable scrolling (the sixel will be truncated if + * it is too long) and do not change the cursor position. */ + for (i = 0, im = newimages; im; im = next, i++) { + next = im->next; + if (i >= term.row) { + delete_image(im); + continue; + } + im->y = i + scr; + tsetsixelattr(term.line[i], x1, x2); + term.dirty[MIN(im->y, term.row-1)] = 1; + } + } else { + for (i = 0, im = newimages; im; im = next, i++) { + next = im->next; + scr = IS_SET(MODE_ALTSCREEN) ? 0 : term.scr; + im->y = term.c.y + scr; + tsetsixelattr(term.line[term.c.y], x1, x2); + term.dirty[MIN(im->y, term.row-1)] = 1; + if (i < numimages-1) { + im->next = NULL; + tnewline(0); + im->next = next; + } + } + /* if mode 8452 is set, sixel scrolling leaves cursor to right of graphic */ + if (IS_SET(MODE_SIXEL_CUR_RT)) + term.c.x = MIN(term.c.x + newimages->cols, term.col-1); + } + } + return; + case '_': /* APC -- Application Program Command */ + case '^': /* PM -- Privacy Message */ + return; + } + + fprintf(stderr, "erresc: unknown str "); + strdump(); +} + +void +strparse(void) +{ + int c; + char *p = strescseq.buf; + + strescseq.narg = 0; + strescseq.buf[strescseq.len] = '\0'; + + if (*p == '\0') + return; + + while (strescseq.narg < STR_ARG_SIZ) { + strescseq.args[strescseq.narg++] = p; + while ((c = *p) != ';' && c != '\0') + ++p; + if (c == '\0') + return; + *p++ = '\0'; + } +} + +void +strdump(void) +{ + size_t i; + uint c; + + fprintf(stderr, "ESC%c", strescseq.type); + for (i = 0; i < strescseq.len; i++) { + c = strescseq.buf[i] & 0xff; + if (c == '\0') { + putc('\n', stderr); + return; + } else if (isprint(c)) { + putc(c, stderr); + } else if (c == '\n') { + fprintf(stderr, "(\\n)"); + } else if (c == '\r') { + fprintf(stderr, "(\\r)"); + } else if (c == 0x1b) { + fprintf(stderr, "(\\e)"); + } else { + fprintf(stderr, "(%02x)", c); + } + } + fprintf(stderr, (strescseq.term[0] == 0x1b) ? "ESC\\\n" : "BEL\n"); +} + +void +strreset(void) +{ + strescseq = (STREscape){ + .buf = xrealloc(strescseq.buf, STR_BUF_SIZ), + .siz = STR_BUF_SIZ, + }; +} + +void +sendbreak(const Arg *arg) +{ + if (tcsendbreak(cmdfd, 0)) + perror("Error sending break"); +} + +void +tprinter(char *s, size_t len) +{ + if (iofd != -1 && xwrite(iofd, s, len) < 0) { + perror("Error writing to output file"); + close(iofd); + iofd = -1; + } +} + +void +toggleprinter(const Arg *arg) +{ + term.mode ^= MODE_PRINT; +} + +void +printscreen(const Arg *arg) +{ + tdump(); +} + +void +printsel(const Arg *arg) +{ + tdumpsel(); +} + +void +tdumpsel(void) +{ + char *ptr; + + if ((ptr = getsel())) { + tprinter(ptr, strlen(ptr)); + free(ptr); + } +} + +void +tdumpline(int n) +{ + char buf[UTF_SIZ]; + const Glyph *bp, *end; + + bp = &term.line[n][0]; + end = &bp[MIN(tlinelen(n), term.col) - 1]; + if (bp != end || bp->u != ' ') { + for ( ; bp <= end; ++bp) + tprinter(buf, utf8encode(bp->u, buf)); + } + tprinter("\n", 1); +} + +void +tdump(void) +{ + int i; + + for (i = 0; i < term.row; ++i) + tdumpline(i); +} + +void +tputtab(int n) +{ + uint x = term.c.x; + + if (n > 0) { + while (x < term.col && n--) + for (++x; x < term.col && !term.tabs[x]; ++x) + /* nothing */ ; + } else if (n < 0) { + while (x > 0 && n++) + for (--x; x > 0 && !term.tabs[x]; --x) + /* nothing */ ; + } + term.c.x = LIMIT(x, 0, term.col-1); +} + +void +tdefutf8(char ascii) +{ + if (ascii == 'G') + term.mode |= MODE_UTF8; + else if (ascii == '@') + term.mode &= ~MODE_UTF8; +} + +void +tdeftran(char ascii) +{ + static char cs[] = "0B"; + static int vcs[] = {CS_GRAPHIC0, CS_USA}; + char *p; + + if ((p = strchr(cs, ascii)) == NULL) { + fprintf(stderr, "esc unhandled charset: ESC ( %c\n", ascii); + } else { + term.trantbl[term.icharset] = vcs[p - cs]; + } +} + +void +tdectest(char c) +{ + int x, y; + + if (c == '8') { /* DEC screen alignment test. */ + for (x = 0; x < term.col; ++x) { + for (y = 0; y < term.row; ++y) + tsetchar('E', &term.c.attr, x, y); + } + } +} + +void +tstrsequence(uchar c) +{ + strreset(); + + switch (c) { + case 0x90: /* DCS -- Device Control String */ + c = 'P'; + term.esc |= ESC_DCS; + break; + case 0x9f: /* APC -- Application Program Command */ + c = '_'; + break; + case 0x9e: /* PM -- Privacy Message */ + c = '^'; + break; + case 0x9d: /* OSC -- Operating System Command */ + c = ']'; + break; + } + strescseq.type = c; + term.esc |= ESC_STR; +} + +void +tcontrolcode(uchar ascii) +{ + switch (ascii) { + case '\t': /* HT */ + tputtab(1); + return; + case '\b': /* BS */ + tmoveto(term.c.x-1, term.c.y); + return; + case '\r': /* CR */ + tmoveto(0, term.c.y); + return; + case '\f': /* LF */ + case '\v': /* VT */ + case '\n': /* LF */ + /* go to first col if the mode is set */ + tnewline(IS_SET(MODE_CRLF)); + return; + case '\a': /* BEL */ + if (term.esc & ESC_STR_END) { + /* backwards compatibility to xterm */ + strescseq.term = STR_TERM_BEL; + strhandle(); + } else { + xbell(); + } + break; + case '\033': /* ESC */ + csireset(); + term.esc &= ~(ESC_CSI|ESC_ALTCHARSET|ESC_TEST); + term.esc |= ESC_START; + return; + case '\016': /* SO (LS1 -- Locking shift 1) */ + case '\017': /* SI (LS0 -- Locking shift 0) */ + term.charset = 1 - (ascii - '\016'); + return; + case '\032': /* SUB */ + tsetchar('?', &term.c.attr, term.c.x, term.c.y); + /* FALLTHROUGH */ + case '\030': /* CAN */ + csireset(); + break; + case '\005': /* ENQ (IGNORED) */ + case '\000': /* NUL (IGNORED) */ + case '\021': /* XON (IGNORED) */ + case '\023': /* XOFF (IGNORED) */ + case 0177: /* DEL (IGNORED) */ + return; + case 0x80: /* TODO: PAD */ + case 0x81: /* TODO: HOP */ + case 0x82: /* TODO: BPH */ + case 0x83: /* TODO: NBH */ + case 0x84: /* TODO: IND */ + break; + case 0x85: /* NEL -- Next line */ + tnewline(1); /* always go to first col */ + break; + case 0x86: /* TODO: SSA */ + case 0x87: /* TODO: ESA */ + break; + case 0x88: /* HTS -- Horizontal tab stop */ + term.tabs[term.c.x] = 1; + break; + case 0x89: /* TODO: HTJ */ + case 0x8a: /* TODO: VTS */ + case 0x8b: /* TODO: PLD */ + case 0x8c: /* TODO: PLU */ + case 0x8d: /* TODO: RI */ + case 0x8e: /* TODO: SS2 */ + case 0x8f: /* TODO: SS3 */ + case 0x91: /* TODO: PU1 */ + case 0x92: /* TODO: PU2 */ + case 0x93: /* TODO: STS */ + case 0x94: /* TODO: CCH */ + case 0x95: /* TODO: MW */ + case 0x96: /* TODO: SPA */ + case 0x97: /* TODO: EPA */ + case 0x98: /* TODO: SOS */ + case 0x99: /* TODO: SGCI */ + break; + case 0x9a: /* DECID -- Identify Terminal */ + ttywrite(vtiden, strlen(vtiden), 0); + break; + case 0x9b: /* TODO: CSI */ + case 0x9c: /* TODO: ST */ + break; + case 0x90: /* DCS -- Device Control String */ + case 0x9d: /* OSC -- Operating System Command */ + case 0x9e: /* PM -- Privacy Message */ + case 0x9f: /* APC -- Application Program Command */ + tstrsequence(ascii); + return; + } + /* only CAN, SUB, \a and C1 chars interrupt a sequence */ + term.esc &= ~(ESC_STR_END|ESC_STR); +} + +void +dcshandle(void) +{ + int bgcolor, transparent; + unsigned char r, g, b, a = 255; + + switch (csiescseq.mode[0]) { + default: + unknown: + fprintf(stderr, "erresc: unknown csi "); + csidump(); + /* die(""); */ + break; + case 'q': /* DECSIXEL */ + transparent = (csiescseq.narg >= 2 && csiescseq.arg[1] == 1); + if (IS_TRUECOL(term.c.attr.bg)) { + r = term.c.attr.bg >> 16 & 255; + g = term.c.attr.bg >> 8 & 255; + b = term.c.attr.bg >> 0 & 255; + } else { + xgetcolor(term.c.attr.bg, &r, &g, &b); + if (term.c.attr.bg == defaultbg) + a = dc.col[defaultbg].pixel >> 24 & 255; + } + bgcolor = a << 24 | r << 16 | g << 8 | b; + if (sixel_parser_init(&sixel_st, transparent, (255 << 24), bgcolor, 1, win.cw, win.ch) != 0) + perror("sixel_parser_init() failed"); + term.mode |= MODE_SIXEL; + break; + } +} + +/* + * returns 1 when the sequence is finished and it hasn't to read + * more characters for this sequence, otherwise 0 + */ +int +eschandle(uchar ascii) +{ + switch (ascii) { + case '[': + term.esc |= ESC_CSI; + return 0; + case '#': + term.esc |= ESC_TEST; + return 0; + case '%': + term.esc |= ESC_UTF8; + return 0; + case 'P': /* DCS -- Device Control String */ + term.esc |= ESC_DCS; + case '_': /* APC -- Application Program Command */ + case '^': /* PM -- Privacy Message */ + case ']': /* OSC -- Operating System Command */ + case 'k': /* old title set compatibility */ + tstrsequence(ascii); + return 0; + case 'n': /* LS2 -- Locking shift 2 */ + case 'o': /* LS3 -- Locking shift 3 */ + term.charset = 2 + (ascii - 'n'); + break; + case '(': /* GZD4 -- set primary charset G0 */ + case ')': /* G1D4 -- set secondary charset G1 */ + case '*': /* G2D4 -- set tertiary charset G2 */ + case '+': /* G3D4 -- set quaternary charset G3 */ + term.icharset = ascii - '('; + term.esc |= ESC_ALTCHARSET; + return 0; + case 'D': /* IND -- Linefeed */ + if (term.c.y == term.bot) { + tscrollup(term.top, 1, 1); + } else { + tmoveto(term.c.x, term.c.y+1); + } + break; + case 'E': /* NEL -- Next line */ + tnewline(1); /* always go to first col */ + break; + case 'H': /* HTS -- Horizontal tab stop */ + term.tabs[term.c.x] = 1; + break; + case 'M': /* RI -- Reverse index */ + if (term.c.y == term.top) { + tscrolldown(term.top, 1); + } else { + tmoveto(term.c.x, term.c.y-1); + } + break; + case 'Z': /* DECID -- Identify Terminal */ + ttywrite(vtiden, strlen(vtiden), 0); + break; + case 'c': /* RIS -- Reset to initial state */ + treset(); + resettitle(); + xloadcols(); + xsetmode(0, MODE_HIDE); + if (!IS_SET(MODE_ALTSCREEN)) { + term.scr = 0; + term.histi = 0; + term.histn = 0; + } + break; + case '=': /* DECPAM -- Application keypad */ + xsetmode(1, MODE_APPKEYPAD); + break; + case '>': /* DECPNM -- Normal keypad */ + xsetmode(0, MODE_APPKEYPAD); + break; + case '7': /* DECSC -- Save Cursor */ + tcursor(CURSOR_SAVE); + break; + case '8': /* DECRC -- Restore Cursor */ + tcursor(CURSOR_LOAD); + break; + case '\\': /* ST -- String Terminator */ + if (term.esc & ESC_STR_END) { + strescseq.term = STR_TERM_ST; + strhandle(); + } + break; + default: + fprintf(stderr, "erresc: unknown sequence ESC 0x%02X '%c'\n", + (uchar) ascii, isprint(ascii)? ascii:'.'); + break; + } + return 1; +} + +void +tputc(Rune u) +{ + char c[UTF_SIZ]; + int control; + int width, len; + Glyph *gp; + + control = ISCONTROL(u); + if (u < 127 || !IS_SET(MODE_UTF8)) + { + c[0] = u; + width = len = 1; + } else { + len = utf8encode(u, c); + if (!control && (width = wcwidth(u)) == -1) + width = 1; + } + + if (IS_SET(MODE_PRINT)) + tprinter(c, len); + + /* + * STR sequence must be checked before anything else + * because it uses all following characters until it + * receives a ESC, a SUB, a ST or any other C1 control + * character. + */ + if (term.esc & ESC_STR) { + if (u == '\a' || u == 030 || u == 032 || u == 033 || + ISCONTROLC1(u)) { + term.esc &= ~(ESC_START|ESC_STR|ESC_DCS); + term.esc |= ESC_STR_END; + goto check_control_code; + } + + if (term.esc & ESC_DCS) + goto check_control_code; + + if (strescseq.len+len >= strescseq.siz) { + /* + * Here is a bug in terminals. If the user never sends + * some code to stop the str or esc command, then st + * will stop responding. But this is better than + * silently failing with unknown characters. At least + * then users will report back. + * + * In the case users ever get fixed, here is the code: + */ + /* + * term.esc = 0; + * strhandle(); + */ + if (strescseq.siz > (SIZE_MAX - UTF_SIZ) / 2) + return; + strescseq.siz *= 2; + strescseq.buf = xrealloc(strescseq.buf, strescseq.siz); + } + + memmove(&strescseq.buf[strescseq.len], c, len); + strescseq.len += len; + return; + } + +check_control_code: + /* + * Actions of control codes must be performed as soon they arrive + * because they can be embedded inside a control sequence, and + * they must not cause conflicts with sequences. + */ + if (control) { + /* in UTF-8 mode ignore handling C1 control characters */ + if (IS_SET(MODE_UTF8) && ISCONTROLC1(u)) + return; + tcontrolcode(u); + /* + * control codes are not shown ever + */ + if (!term.esc) + term.lastc = 0; + return; + } else if (term.esc & ESC_START) { + if (term.esc & ESC_CSI) { + csiescseq.buf[csiescseq.len++] = u; + if (BETWEEN(u, 0x40, 0x7E) + || csiescseq.len >= \ + sizeof(csiescseq.buf)-1) { + term.esc = 0; + csiparse(); + csihandle(); + } + return; + } else if (term.esc & ESC_DCS) { + csiescseq.buf[csiescseq.len++] = u; + if (BETWEEN(u, 0x40, 0x7E) + || csiescseq.len >= \ + sizeof(csiescseq.buf)-1) { + csiparse(); + dcshandle(); + } + return; + } else if (term.esc & ESC_UTF8) { + tdefutf8(u); + } else if (term.esc & ESC_ALTCHARSET) { + tdeftran(u); + } else if (term.esc & ESC_TEST) { + tdectest(u); + } else { + if (!eschandle(u)) + return; + /* sequence already finished */ + } + term.esc = 0; + /* + * All characters which form part of a sequence are not + * printed + */ + return; + } + + if (selected(term.c.x, term.c.y)) + selclear(); + + gp = &term.line[term.c.y][term.c.x]; + if (IS_SET(MODE_WRAP) && (term.c.state & CURSOR_WRAPNEXT)) { + gp->mode |= ATTR_WRAP; + tnewline(1); + gp = &term.line[term.c.y][term.c.x]; + } + + if (IS_SET(MODE_INSERT) && term.c.x+width < term.col) { + memmove(gp+width, gp, (term.col - term.c.x - width) * sizeof(Glyph)); + gp->mode &= ~ATTR_WIDE; + } + + if (term.c.x+width > term.col) { + if (IS_SET(MODE_WRAP)) + tnewline(1); + else + tmoveto(term.col - width, term.c.y); + gp = &term.line[term.c.y][term.c.x]; + } + + tsetchar(u, &term.c.attr, term.c.x, term.c.y); + term.lastc = u; + + if (width == 2) { + gp->mode |= ATTR_WIDE; + if (term.c.x+1 < term.col) { + if (gp[1].mode == ATTR_WIDE && term.c.x+2 < term.col) { + gp[2].u = ' '; + gp[2].mode &= ~ATTR_WDUMMY; + } + gp[1].u = '\0'; + gp[1].mode = ATTR_WDUMMY; + } + } + if (term.c.x+width < term.col) { + tmoveto(term.c.x+width, term.c.y); + } else { + term.c.state |= CURSOR_WRAPNEXT; + } +} + +int +twrite(const char *buf, int buflen, int show_ctrl) +{ + int charsize; + Rune u; + int n; + + for (n = 0; n < buflen; n += charsize) { + if (IS_SET(MODE_SIXEL) && sixel_st.state != PS_ESC) { + charsize = sixel_parser_parse(&sixel_st, (const unsigned char*)buf + n, buflen - n); + continue; + } else if (IS_SET(MODE_UTF8)) + { + /* process a complete utf8 char */ + charsize = utf8decode(buf + n, &u, buflen - n); + if (charsize == 0) + break; + } else { + u = buf[n] & 0xFF; + charsize = 1; + } + if (show_ctrl && ISCONTROL(u)) { + if (u & 0x80) { + u &= 0x7f; + tputc('^'); + tputc('['); + } else if (u != '\n' && u != '\r' && u != '\t') { + u ^= 0x40; + tputc('^'); + } + } + tputc(u); + } + return n; +} + +void +tresize(int col, int row) +{ + int i, j; + int minrow = MIN(row, term.row); + int mincol = MIN(col, term.col); + int *bp; + int x2; + Line line; + ImageList *im, *next; + + if (col < 1 || row < 1) { + fprintf(stderr, + "tresize: error resizing to %dx%d\n", col, row); + return; + } + + /* scroll both screens independently */ + if (row < term.row) { + tcursor(CURSOR_SAVE); + tsetscroll(0, term.row - 1); + for (i = 0; i < 2; i++) { + if (term.c.y >= row) { + tscrollup(0, term.c.y - row + 1, !IS_SET(MODE_ALTSCREEN)); + } + for (j = row; j < term.row; j++) + free(term.line[j]); + tswapscreen(); + tcursor(CURSOR_LOAD); + } + } + + /* resize to new height */ + term.line = xrealloc(term.line, row * sizeof(Line)); + term.alt = xrealloc(term.alt, row * sizeof(Line)); + term.dirty = xrealloc(term.dirty, row * sizeof(*term.dirty)); + term.tabs = xrealloc(term.tabs, col * sizeof(*term.tabs)); + + Glyph gc=(Glyph){.bg=term.c.attr.bg, .fg=term.c.attr.fg, .u=' ', .mode=0}; + for (i = 0; i < HISTSIZE; i++) { + term.hist[i] = xrealloc(term.hist[i], col * sizeof(Glyph)); + for (j = mincol; j < col; j++) + term.hist[i][j] = gc; + } + + /* resize each row to new width, zero-pad if needed */ + for (i = 0; i < minrow; i++) { + term.line[i] = xrealloc(term.line[i], col * sizeof(Glyph)); + term.alt[i] = xrealloc(term.alt[i], col * sizeof(Glyph)); + } + + /* allocate any new rows */ + for (/* i = minrow */; i < row; i++) { + term.line[i] = xmalloc(col * sizeof(Glyph)); + term.alt[i] = xmalloc(col * sizeof(Glyph)); + } + if (col > term.col) + { + bp = term.tabs + term.col; + memset(bp, 0, sizeof(*term.tabs) * (col - term.col)); + + while (--bp > term.tabs && !*bp) + /* nothing */ ; + for (bp += tabspaces; bp < term.tabs + col; bp += tabspaces) + *bp = 1; + } + + /* update terminal size */ + term.col = col; + term.row = row; + + /* reset scrolling region */ + tsetscroll(0, row-1); + /* Clearing both screens (it makes dirty all lines) */ + for (i = 0; i < 2; i++) { + tmoveto(term.c.x, term.c.y); /* make use of the LIMIT in tmoveto */ + tcursor(CURSOR_SAVE); + if (mincol < col && 0 < minrow) { + tclearregion(mincol, 0, col - 1, minrow - 1); + } + if (0 < col && minrow < row) { + tclearregion(0, minrow, col - 1, row - 1); + } + tswapscreen(); + tcursor(CURSOR_LOAD); + } + + /* expand images into new text cells */ + for (i = 0; i < 2; i++) { + for (im = term.images; im; im = next) { + next = im->next; + if (IS_SET(MODE_ALTSCREEN)) { + if (im->y < 0 || im->y >= term.row) { + delete_image(im); + continue; + } + line = term.line[im->y]; + } else { + if (im->y - term.scr < -HISTSIZE || im->y - term.scr >= term.row) { + delete_image(im); + continue; + } + line = TLINE(im->y); + } + x2 = MIN(im->x + im->cols, col) - 1; + if (mincol < col && x2 >= mincol && im->x < col) + tsetsixelattr(line, MAX(im->x, mincol), x2); + } + tswapscreen(); + } +} + +void +resettitle(void) +{ + xsettitle(NULL); +} + +void +drawregion(int x1, int y1, int x2, int y2) +{ + int y; + + for (y = y1; y < y2; y++) { + if (!term.dirty[y]) + continue; + + term.dirty[y] = 0; + xdrawline(TLINE(y), x1, y, x2); + } +} + +#include "patch/st_include.c" + +void +draw(void) +{ + int cx = term.c.x, ocx = term.ocx, ocy = term.ocy; + + if (!xstartdraw()) + return; + + /* adjust cursor position */ + LIMIT(term.ocx, 0, term.col-1); + LIMIT(term.ocy, 0, term.row-1); + if (term.line[term.ocy][term.ocx].mode & ATTR_WDUMMY) + term.ocx--; + if (term.line[term.c.y][cx].mode & ATTR_WDUMMY) + cx--; + + drawregion(0, 0, term.col, term.row); + + if (term.scr == 0) + xdrawcursor(cx, term.c.y, term.line[term.c.y][cx], + term.ocx, term.ocy, term.line[term.ocy][term.ocx]); + term.ocx = cx; + term.ocy = term.c.y; + xfinishdraw(); + if (ocx != term.ocx || ocy != term.ocy) + xximspot(term.ocx, term.ocy); +} + +void +redraw(void) +{ + tfulldirt(); + draw(); +} diff --git a/vilst/st.desktop b/vilst/st.desktop new file mode 100755 index 0000000..14a389a --- /dev/null +++ b/vilst/st.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=st +Comment=st is a simple terminal implementation for X +Exec=st +Icon=utilities-terminal +Terminal=false +Type=Application +Categories=System;TerminalEmulator; \ No newline at end of file diff --git a/vilst/st.h b/vilst/st.h new file mode 100644 index 0000000..70fdae6 --- /dev/null +++ b/vilst/st.h @@ -0,0 +1,301 @@ +/* See LICENSE for license details. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* macros */ +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) < (b) ? (b) : (a)) +#define LEN(a) (sizeof(a) / sizeof(a)[0]) +#define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) +#define DIVCEIL(n, d) (((n) + ((d) - 1)) / (d)) +#define DEFAULT(a, b) (a) = (a) ? (a) : (b) +#define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) +#define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || \ + (a).bg != (b).bg) +#define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + \ + (t1.tv_nsec-t2.tv_nsec)/1E6) +#define MODBIT(x, set, bit) ((set) ? ((x) |= (bit)) : ((x) &= ~(bit))) + +#define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b)) +#define IS_TRUECOL(x) (1 << 24 & (x)) +#define HISTSIZE 2000 + +enum glyph_attribute { + ATTR_NULL = 0, + ATTR_SET = 1 << 0, + ATTR_BOLD = 1 << 1, + ATTR_FAINT = 1 << 2, + ATTR_ITALIC = 1 << 3, + ATTR_UNDERLINE = 1 << 4, + ATTR_BLINK = 1 << 5, + ATTR_REVERSE = 1 << 6, + ATTR_INVISIBLE = 1 << 7, + ATTR_STRUCK = 1 << 8, + ATTR_WRAP = 1 << 9, + ATTR_WIDE = 1 << 10, + ATTR_WDUMMY = 1 << 11, + ATTR_SIXEL = 1 << 16, + ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, +}; + +typedef struct _ImageList { + struct _ImageList *next, *prev; + unsigned char *pixels; + void *pixmap; + void *clipmask; + int width; + int height; + int x; + int y; + int cols; + int cw; + int ch; + int transparent; +} ImageList; + +/* Used to control which screen(s) keybindings and mouse shortcuts apply to. */ +enum screen { + S_PRI = -1, /* primary screen */ + S_ALL = 0, /* both primary and alt screen */ + S_ALT = 1 /* alternate screen */ +}; + +enum selection_mode { + SEL_IDLE = 0, + SEL_EMPTY = 1, + SEL_READY = 2 +}; + +enum selection_type { + SEL_REGULAR = 1, + SEL_RECTANGULAR = 2 +}; + +enum selection_snap { + SNAP_WORD = 1, + SNAP_LINE = 2 +}; + +typedef unsigned char uchar; +typedef unsigned int uint; +typedef unsigned long ulong; +typedef unsigned short ushort; + +typedef uint_least32_t Rune; + +typedef XftDraw *Draw; +typedef XftColor Color; +typedef XftGlyphFontSpec GlyphFontSpec; + +#define Glyph Glyph_ +typedef struct { + Rune u; /* character code */ + uint32_t mode; /* attribute flags */ + uint32_t fg; /* foreground */ + uint32_t bg; /* background */ +} Glyph; + +typedef Glyph *Line; + +typedef struct { + Glyph attr; /* current char attributes */ + int x; + int y; + char state; +} TCursor; + +/* Internal representation of the screen */ +typedef struct { + int row; /* nb row */ + int col; /* nb col */ + Line *line; /* screen */ + Line *alt; /* alternate screen */ + Line hist[HISTSIZE]; /* history buffer */ + int histi; /* history index */ + int histn; /* number of history entries */ + int scr; /* scroll back */ + int *dirty; /* dirtyness of lines */ + TCursor c; /* cursor */ + int ocx; /* old cursor col */ + int ocy; /* old cursor row */ + int top; /* top scroll limit */ + int bot; /* bottom scroll limit */ + int mode; /* terminal mode flags */ + int esc; /* escape state flags */ + char trantbl[4]; /* charset table translation */ + int charset; /* current charset */ + int icharset; /* selected charset for sequence */ + int *tabs; + ImageList *images; /* sixel images */ + ImageList *images_alt; /* sixel images for alternate screen */ + Rune lastc; /* last printed char outside of sequence, 0 if control */ +} Term; + +typedef union { + int i; + uint ui; + float f; + const void *v; + const char *s; +} Arg; + +/* Purely graphic info */ +typedef struct { + int tw, th; /* tty width and height */ + int w, h; /* window width and height */ + int ch; /* char height */ + int cw; /* char width */ + int mode; /* window state/mode flags */ + int cursor; /* cursor style */ +} TermWindow; + +typedef struct { + Display *dpy; + Colormap cmap; + Window win; + Drawable buf; + GlyphFontSpec *specbuf; /* font spec buffer used for rendering */ + Atom xembed, wmdeletewin, netwmname, netwmiconname, netwmpid; + struct { + XIM xim; + XIC xic; + XPoint spot; + XVaNestedList spotlist; + } ime; + Draw draw; + Visual *vis; + XSetWindowAttributes attrs; + int scr; + int isfixed; /* is fixed geometry? */ + int depth; /* bit depth */ + int l, t; /* left and top offset */ + int gm; /* geometry mask */ +} XWindow; + +typedef struct { + Atom xtarget; + char *primary, *clipboard; + struct timespec tclick1; + struct timespec tclick2; +} XSelection; + +/* types used in config.h */ +typedef struct { + uint mod; + KeySym keysym; + void (*func)(const Arg *); + const Arg arg; + int screen; +} Shortcut; + +typedef struct { + uint mod; + uint button; + void (*func)(const Arg *); + const Arg arg; + uint release; + int screen; +} MouseShortcut; + +typedef struct { + KeySym k; + uint mask; + char *s; + /* three-valued logic variables: 0 indifferent, 1 on, -1 off */ + signed char appkey; /* application keypad */ + signed char appcursor; /* application cursor */ +} Key; + +/* Font structure */ +#define Font Font_ +typedef struct { + int height; + int width; + int ascent; + int descent; + int badslant; + int badweight; + short lbearing; + short rbearing; + XftFont *match; + FcFontSet *set; + FcPattern *pattern; +} Font; + +/* Drawing Context */ +typedef struct { + Color *col; + size_t collen; + Font font, bfont, ifont, ibfont; + GC gc; +} DC; + +void die(const char *, ...); +void redraw(void); +void draw(void); +void drawregion(int, int, int, int); +void tfulldirt(void); + +void printscreen(const Arg *); +void printsel(const Arg *); +void sendbreak(const Arg *); +void toggleprinter(const Arg *); + +int tattrset(int); +int tisaltscr(void); +void tnew(int, int); +void tresize(int, int); +void tsetdirtattr(int); +void ttyhangup(void); +int ttynew(const char *, char *, const char *, char **); +size_t ttyread(void); +void ttyresize(int, int); +void ttywrite(const char *, size_t, int); + +void resettitle(void); + +void selclear(void); +void selinit(void); +void selremove(void); +void selstart(int, int, int); +void selextend(int, int, int, int); +int selected(int, int); +char *getsel(void); + +size_t utf8encode(Rune, char *); + +void *xmalloc(size_t); +void *xrealloc(void *, size_t); +char *xstrdup(const char *); + +int xgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b); + +/* config.h globals */ +extern char *utmp; +extern char *scroll; +extern char *stty_args; +extern char *vtiden; +extern wchar_t *worddelimiters; +extern int allowaltscreen; +extern int allowwindowops; +extern char *termname; +extern unsigned int tabspaces; +extern unsigned int defaultfg; +extern unsigned int defaultbg; +extern unsigned int defaultcs; + +extern float alpha; + +extern DC dc; +extern XWindow xw; +extern XSelection xsel; +extern TermWindow win; +extern Term term; diff --git a/vilst/st.info b/vilst/st.info new file mode 100755 index 0000000..b286fb5 --- /dev/null +++ b/vilst/st.info @@ -0,0 +1,252 @@ +st-mono| simpleterm monocolor, +# undercurl patch / UNDERCURL_PATCH + Su, + acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, + am, + bce, + bel=^G, + blink=\E[5m, + bold=\E[1m, + cbt=\E[Z, + cvvis=\E[?25h, + civis=\E[?25l, + clear=\E[H\E[2J, + cnorm=\E[?12l\E[?25h, + colors#2, + cols#80, + cr=^M, + csr=\E[%i%p1%d;%p2%dr, + cub=\E[%p1%dD, + cub1=^H, + cud1=^J, + cud=\E[%p1%dB, + cuf1=\E[C, + cuf=\E[%p1%dC, + cup=\E[%i%p1%d;%p2%dH, + cuu1=\E[A, + cuu=\E[%p1%dA, + dch=\E[%p1%dP, + dch1=\E[P, + dim=\E[2m, + dl=\E[%p1%dM, + dl1=\E[M, + ech=\E[%p1%dX, + ed=\E[J, + el=\E[K, + el1=\E[1K, + enacs=\E)0, + E3=\E[3J, + flash=\E[?5h$<80/>\E[?5l, + fsl=^G, + home=\E[H, + hpa=\E[%i%p1%dG, + hs, + ht=^I, + hts=\EH, + ich=\E[%p1%d@, + il1=\E[L, + il=\E[%p1%dL, + ind=^J, + indn=\E[%p1%dS, + invis=\E[8m, + is2=\E[4l\E>\E[?1034l, + it#8, + kel=\E[1;2F, + ked=\E[1;5F, + ka1=\E[1~, + ka3=\E[5~, + kc1=\E[4~, + kc3=\E[6~, + kbs=\177, + kcbt=\E[Z, + kb2=\EOu, + kcub1=\EOD, + kcud1=\EOB, + kcuf1=\EOC, + kcuu1=\EOA, + kDC=\E[3;2~, + kent=\EOM, + kEND=\E[1;2F, + kIC=\E[2;2~, + kNXT=\E[6;2~, + kPRV=\E[5;2~, + kHOM=\E[1;2H, + kLFT=\E[1;2D, + kRIT=\E[1;2C, + kind=\E[1;2B, + kri=\E[1;2A, + kclr=\E[3;5~, + kdl1=\E[3;2~, + kdch1=\E[3~, + kich1=\E[2~, + kend=\E[4~, + kf1=\EOP, + kf2=\EOQ, + kf3=\EOR, + kf4=\EOS, + kf5=\E[15~, + kf6=\E[17~, + kf7=\E[18~, + kf8=\E[19~, + kf9=\E[20~, + kf10=\E[21~, + kf11=\E[23~, + kf12=\E[24~, + kf13=\E[1;2P, + kf14=\E[1;2Q, + kf15=\E[1;2R, + kf16=\E[1;2S, + kf17=\E[15;2~, + kf18=\E[17;2~, + kf19=\E[18;2~, + kf20=\E[19;2~, + kf21=\E[20;2~, + kf22=\E[21;2~, + kf23=\E[23;2~, + kf24=\E[24;2~, + kf25=\E[1;5P, + kf26=\E[1;5Q, + kf27=\E[1;5R, + kf28=\E[1;5S, + kf29=\E[15;5~, + kf30=\E[17;5~, + kf31=\E[18;5~, + kf32=\E[19;5~, + kf33=\E[20;5~, + kf34=\E[21;5~, + kf35=\E[23;5~, + kf36=\E[24;5~, + kf37=\E[1;6P, + kf38=\E[1;6Q, + kf39=\E[1;6R, + kf40=\E[1;6S, + kf41=\E[15;6~, + kf42=\E[17;6~, + kf43=\E[18;6~, + kf44=\E[19;6~, + kf45=\E[20;6~, + kf46=\E[21;6~, + kf47=\E[23;6~, + kf48=\E[24;6~, + kf49=\E[1;3P, + kf50=\E[1;3Q, + kf51=\E[1;3R, + kf52=\E[1;3S, + kf53=\E[15;3~, + kf54=\E[17;3~, + kf55=\E[18;3~, + kf56=\E[19;3~, + kf57=\E[20;3~, + kf58=\E[21;3~, + kf59=\E[23;3~, + kf60=\E[24;3~, + kf61=\E[1;4P, + kf62=\E[1;4Q, + kf63=\E[1;4R, + khome=\E[1~, + kil1=\E[2;5~, + krmir=\E[2;2~, + knp=\E[6~, + kmous=\E[M, + kpp=\E[5~, + lines#24, + mir, + msgr, + npc, + op=\E[39;49m, + pairs#64, + mc0=\E[i, + mc4=\E[4i, + mc5=\E[5i, + rc=\E8, + rev=\E[7m, + ri=\EM, + rin=\E[%p1%dT, + ritm=\E[23m, + rmacs=\E(B, +# CSI 22, 23 patch / CSI_22_23_PATCH +# rmcup=\E[?1049l, + rmcup=\E[?1049l\E[23;0;0t, + rmir=\E[4l, + rmkx=\E[?1l\E>, + rmso=\E[27m, + rmul=\E[24m, + rs1=\Ec, + rs2=\E[4l\E>\E[?1034l, + sc=\E7, + sitm=\E[3m, + sgr0=\E[0m, + smacs=\E(0, +# CSI 22, 23 patch / CSI_22_23_PATCH +# smcup=\E[?1049h, + smcup=\E[?1049h\E[22;0;0t, + smir=\E[4h, + smkx=\E[?1h\E=, + smso=\E[7m, + smul=\E[4m, + tbc=\E[3g, + tsl=\E]0;, + xenl, + vpa=\E[%i%p1%dd, +# XTerm extensions + rmxx=\E[29m, + smxx=\E[9m, + BE=\E[?2004h, + BD=\E[?2004l, + PS=\E[200~, + PE=\E[201~, +# disabled rep for now: causes some issues with older ncurses versions. +# rep=%p1%c\E[%p2%{1}%-%db, +# tmux extensions, see TERMINFO EXTENSIONS in tmux(1) + Tc, + Ms=\E]52;%p1%s;%p2%s\007, + Se=\E[2 q, + Ss=\E[%p1%d q, +# sync patch / SYNC_PATCH + Sync=\EP=%p1%ds\E\\, + +st| simpleterm, + use=st-mono, + colors#8, + setab=\E[4%p1%dm, + setaf=\E[3%p1%dm, + setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, + setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, + sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m, + +st-256color| simpleterm with 256 colors, + use=st, + ccc, + colors#256, + oc=\E]104\007, + pairs#32767, +# Nicked from xterm-256color + initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\, + setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, + setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, + +st-meta| simpleterm with meta key, + use=st, + km, + rmm=\E[?1034l, + smm=\E[?1034h, + rs2=\E[4l\E>\E[?1034h, + is2=\E[4l\E>\E[?1034h, + +st-meta-256color| simpleterm with meta key and 256 colors, + use=st-256color, + km, + rmm=\E[?1034l, + smm=\E[?1034h, + rs2=\E[4l\E>\E[?1034h, + is2=\E[4l\E>\E[?1034h, + +st-bs| simpleterm with backspace as backspace, + use=st, + kbs=\010, + kdch1=\177, + +st-bs-256color| simpleterm with backspace as backspace and 256colors, + use=st-256color, + kbs=\010, + kdch1=\177, diff --git a/vilst/st.o b/vilst/st.o new file mode 100644 index 0000000000000000000000000000000000000000..b7462c498f37fad9e0740abf7556ecc7775bfada GIT binary patch literal 116496 zcmeFa3wTu3xj#IU3=l}j3K})7SVkKvWmhy>=GffCSb!&93O1 zm6e~waHp(1Swo4Dckmthno<0tWHCAw zrd&$bLQM|jU7|*Zcq5yGhjBd^Pc3M(BRgbettvYXLL-0r>7A%u>vk|sX!XCU* z)>?pjEp*U9Y3)A&?wX;64i(k#uHN3l zhe3H&`OW;=?n4cl7^Kpyq7Qz%>GN!1q0gy?H^<^zGwv_V)7}EK=u@5i4)t4k^H$0d zPin>lyH9V%qoKYc7JeQ%PR#7nw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/null +++ b/vilst/win.h @@ -0,0 +1,42 @@ +/* See LICENSE for license details. */ + +enum win_mode { + MODE_VISIBLE = 1 << 0, + MODE_FOCUSED = 1 << 1, + MODE_APPKEYPAD = 1 << 2, + MODE_MOUSEBTN = 1 << 3, + MODE_MOUSEMOTION = 1 << 4, + MODE_REVERSE = 1 << 5, + MODE_KBDLOCK = 1 << 6, + MODE_HIDE = 1 << 7, + MODE_APPCURSOR = 1 << 8, + MODE_MOUSESGR = 1 << 9, + MODE_8BIT = 1 << 10, + MODE_BLINK = 1 << 11, + MODE_FBLINK = 1 << 12, + MODE_FOCUS = 1 << 13, + MODE_MOUSEX10 = 1 << 14, + MODE_MOUSEMANY = 1 << 15, + MODE_BRCKTPASTE = 1 << 16, + MODE_NUMLOCK = 1 << 17, + MODE_MOUSE = MODE_MOUSEBTN|MODE_MOUSEMOTION|MODE_MOUSEX10\ + |MODE_MOUSEMANY, + MODE_PLACEHOLDER = 1 << 18, +}; + +void xbell(void); +void xclipcopy(void); +void xdrawcursor(int, int, Glyph, int, int, Glyph); +void xdrawline(Line, int, int, int); +void xfinishdraw(void); +void xloadcols(void); +int xsetcolorname(int, const char *); +void xseticontitle(char *); +void xsettitle(char *); +int xsetcursor(int); +void xsetmode(int, unsigned int); +void xsetpointermotion(int); +void xsetsel(char *); +int xstartdraw(void); +void xximspot(int, int); +void xclearwin(void); diff --git a/vilst/x.c b/vilst/x.c new file mode 100644 index 0000000..6b208ca --- /dev/null +++ b/vilst/x.c @@ -0,0 +1,2254 @@ +/* See LICENSE for license details. */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +char *argv0; +#include "arg.h" +#include "st.h" +#include "win.h" + +#include +#include "sixel.h" + +/* X modifiers */ +#define XK_ANY_MOD UINT_MAX +#define XK_NO_MOD 0 +#define XK_SWITCH_MOD (1<<13|1<<14) + +/* function definitions used in config.h */ +static void clipcopy(const Arg *); +static void clippaste(const Arg *); +static void numlock(const Arg *); +static void selpaste(const Arg *); +static void ttysend(const Arg *); +static void zoom(const Arg *); +static void zoomabs(const Arg *); +static void zoomreset(const Arg *); + +#include "patch/st_include.h" +#include "patch/x_include.h" + +/* config.h for applying patches and the configuration. */ +#include "config.h" + +/* XEMBED messages */ +#define XEMBED_FOCUS_IN 4 +#define XEMBED_FOCUS_OUT 5 + +/* macros */ +#define IS_SET(flag) ((win.mode & (flag)) != 0) +#define TRUERED(x) (((x) & 0xff0000) >> 8) +#define TRUEGREEN(x) (((x) & 0xff00)) +#define TRUEBLUE(x) (((x) & 0xff) << 8) + +static inline ushort sixd_to_16bit(int); +static int xmakeglyphfontspecs(XftGlyphFontSpec *, const Glyph *, int, int, int); +static void xdrawglyphfontspecs(const XftGlyphFontSpec *, Glyph, int, int, int); +void xdrawglyph(Glyph, int, int); +static void xclear(int, int, int, int); +static int xgeommasktogravity(int); +static int ximopen(Display *); +static void ximinstantiate(Display *, XPointer, XPointer); +static void ximdestroy(XIM, XPointer, XPointer); +static int xicdestroy(XIC, XPointer, XPointer); +static void xinit(int, int); +static void cresize(int, int); +static void xresize(int, int); +static void xhints(void); +static int xloadcolor(int, const char *, Color *); +static int xloadfont(Font *, FcPattern *); +static void xloadfonts(const char *, double); +static void xunloadfont(Font *); +static void xunloadfonts(void); +static void xsetenv(void); +static void xseturgency(int); +static int evcol(XEvent *); +static int evrow(XEvent *); + +static void expose(XEvent *); +static void visibility(XEvent *); +static void unmap(XEvent *); +static void kpress(XEvent *); +static void cmessage(XEvent *); +static void resize(XEvent *); +static void focus(XEvent *); +static uint buttonmask(uint); +static void brelease(XEvent *); +static void bpress(XEvent *); +static void bmotion(XEvent *); +static void propnotify(XEvent *); +static void selnotify(XEvent *); +static void selclear_(XEvent *); +static void selrequest(XEvent *); +static void setsel(char *, Time); +static int mouseaction(XEvent *, uint); +static void mousesel(XEvent *, int); +static void mousereport(XEvent *); +static char *kmap(KeySym, uint); +static int match(uint, uint); + +static void run(void); +static void usage(void); + +static void (*handler[LASTEvent])(XEvent *) = { + [KeyPress] = kpress, + [ClientMessage] = cmessage, + [ConfigureNotify] = resize, + [VisibilityNotify] = visibility, + [UnmapNotify] = unmap, + [Expose] = expose, + [FocusIn] = focus, + [FocusOut] = focus, + [MotionNotify] = bmotion, + [ButtonPress] = bpress, + [ButtonRelease] = brelease, +/* + * Uncomment if you want the selection to disappear when you select something + * different in another window. + */ +/* [SelectionClear] = selclear_, */ + [SelectionNotify] = selnotify, +/* + * PropertyNotify is only turned on when there is some INCR transfer happening + * for the selection retrieval. + */ + [PropertyNotify] = propnotify, + [SelectionRequest] = selrequest, + [CreateNotify] = createnotify, + [DestroyNotify] = destroynotify, +}; + +/* Globals */ +Term term; +DC dc; +XWindow xw; +XSelection xsel; +TermWindow win; + +/* Font Ring Cache */ +enum { + FRC_NORMAL, + FRC_ITALIC, + FRC_BOLD, + FRC_ITALICBOLD +}; + +typedef struct { + XftFont *font; + int flags; + Rune unicodep; +} Fontcache; + +/* Fontcache is an array now. A new font will be appended to the array. */ +static Fontcache *frc = NULL; +static int frclen = 0; +static int frccap = 0; +static char *usedfont = NULL; +static double usedfontsize = 0; +static double defaultfontsize = 0; + +static char *opt_alpha = NULL; +static char *opt_class = NULL; +static char **opt_cmd = NULL; +static char *opt_embed = NULL; +static char *opt_font = NULL; +static char *opt_io = NULL; +static char *opt_line = NULL; +static char *opt_name = NULL; +static char *opt_title = NULL; + +static uint buttons; /* bit field of pressed buttons */ +static int bellon = 0; /* visual bell status */ + +#include "patch/x_include.c" + +void +clipcopy(const Arg *dummy) +{ + Atom clipboard; + + free(xsel.clipboard); + xsel.clipboard = NULL; + + if (xsel.primary != NULL) { + xsel.clipboard = xstrdup(xsel.primary); + clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); + XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime); + } +} + +void +clippaste(const Arg *dummy) +{ + Atom clipboard; + + clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); + XConvertSelection(xw.dpy, clipboard, xsel.xtarget, clipboard, + xw.win, CurrentTime); +} + +void +numlock(const Arg *dummy) +{ + win.mode ^= MODE_NUMLOCK; +} + +void +selpaste(const Arg *dummy) +{ + + XConvertSelection(xw.dpy, XA_PRIMARY, xsel.xtarget, XA_PRIMARY, + xw.win, CurrentTime); +} + +void +ttysend(const Arg *arg) +{ + ttywrite(arg->s, strlen(arg->s), 1); +} + +void +zoom(const Arg *arg) +{ + Arg larg; + + larg.f = usedfontsize + arg->f; + if (larg.f >= 1.0) + zoomabs(&larg); +} + +void +zoomabs(const Arg *arg) +{ + int i; + ImageList *im; + + xunloadfonts(); + xloadfonts(usedfont, arg->f); + + /* delete old pixmaps so that xfinishdraw() can create new scaled ones */ + for (im = term.images, i = 0; i < 2; i++, im = term.images_alt) { + for (; im; im = im->next) { + if (im->pixmap) + XFreePixmap(xw.dpy, (Drawable)im->pixmap); + if (im->clipmask) + XFreePixmap(xw.dpy, (Drawable)im->clipmask); + im->pixmap = NULL; + im->clipmask = NULL; + } + } + + cresize(0, 0); + redraw(); + xhints(); +} + +void +zoomreset(const Arg *arg) +{ + Arg larg; + + if (defaultfontsize > 0) { + larg.f = defaultfontsize; + zoomabs(&larg); + } +} + +int +evcol(XEvent *e) +{ + int x = e->xbutton.x - borderpx; + LIMIT(x, 0, win.tw - 1); + return x / win.cw; +} + +int +evrow(XEvent *e) +{ + int y = e->xbutton.y - borderpx; + LIMIT(y, 0, win.th - 1); + return y / win.ch; +} + +uint +buttonmask(uint button) +{ + return button == Button1 ? Button1Mask + : button == Button2 ? Button2Mask + : button == Button3 ? Button3Mask + : button == Button4 ? Button4Mask + : button == Button5 ? Button5Mask + : 0; +} + +int +mouseaction(XEvent *e, uint release) +{ + MouseShortcut *ms; + int screen = tisaltscr() ? S_ALT : S_PRI; + + /* ignore Buttonmask for Button - it's set on release */ + uint state = e->xbutton.state & ~buttonmask(e->xbutton.button); + + for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { + if (ms->release == release && + ms->button == e->xbutton.button && + (!ms->screen || (ms->screen == screen)) && + (match(ms->mod, state) || /* exact or forced */ + match(ms->mod, state & ~forcemousemod))) { + ms->func(&(ms->arg)); + return 1; + } + } + + return 0; +} + +void +mousesel(XEvent *e, int done) +{ + int type, seltype = SEL_REGULAR; + uint state = e->xbutton.state & ~(Button1Mask | forcemousemod); + + for (type = 1; type < LEN(selmasks); ++type) { + if (match(selmasks[type], state)) { + seltype = type; + break; + } + } + selextend(evcol(e), evrow(e), seltype, done); + if (done) + setsel(getsel(), e->xbutton.time); +} + +void +mousereport(XEvent *e) +{ + int len, btn, code; + int x = evcol(e), y = evrow(e); + int state = e->xbutton.state; + char buf[40]; + static int ox, oy; + + if (e->type == MotionNotify) { + if (x == ox && y == oy) + return; + if (!IS_SET(MODE_MOUSEMOTION) && !IS_SET(MODE_MOUSEMANY)) + return; + /* MODE_MOUSEMOTION: no reporting if no button is pressed */ + if (IS_SET(MODE_MOUSEMOTION) && buttons == 0) + return; + + /* Set btn to lowest-numbered pressed button, or 12 if no + * buttons are pressed. */ + for (btn = 1; btn <= 11 && !(buttons & (1<<(btn-1))); btn++) + ; + code = 32; + } else { + btn = e->xbutton.button; + /* Only buttons 1 through 11 can be encoded */ + if (btn < 1 || btn > 11) + return; + if (e->type == ButtonRelease) { + /* MODE_MOUSEX10: no button release reporting */ + if (IS_SET(MODE_MOUSEX10)) + return; + /* Don't send release events for the scroll wheel */ + if (btn == 4 || btn == 5) + return; + } + code = 0; + } + + ox = x; + oy = y; + + /* Encode btn into code. If no button is pressed for a motion event in + * MODE_MOUSEMANY, then encode it as a release. */ + if ((!IS_SET(MODE_MOUSESGR) && e->type == ButtonRelease) || btn == 12) + code += 3; + else if (btn >= 8) + code += 128 + btn - 8; + else if (btn >= 4) + code += 64 + btn - 4; + else + code += btn - 1; + + if (!IS_SET(MODE_MOUSEX10)) { + code += ((state & ShiftMask ) ? 4 : 0) + + ((state & Mod1Mask ) ? 8 : 0) /* meta key: alt */ + + ((state & ControlMask) ? 16 : 0); + } + + if (IS_SET(MODE_MOUSESGR)) { + len = snprintf(buf, sizeof(buf), "\033[<%d;%d;%d%c", + code, x+1, y+1, + e->type == ButtonRelease ? 'm' : 'M'); + } else if (x < 223 && y < 223) { + len = snprintf(buf, sizeof(buf), "\033[M%c%c%c", + 32+code, 32+x+1, 32+y+1); + } else { + return; + } + + ttywrite(buf, len, 0); +} + +void +bpress(XEvent *e) +{ + int btn = e->xbutton.button; + struct timespec now; + int snap; + + if (1 <= btn && btn <= 11) + buttons |= 1 << (btn-1); + + if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forcemousemod)) { + mousereport(e); + return; + } + + if (mouseaction(e, 0)) + return; + + if (btn == Button1) { + /* + * If the user clicks below predefined timeouts specific + * snapping behaviour is exposed. + */ + clock_gettime(CLOCK_MONOTONIC, &now); + if (TIMEDIFF(now, xsel.tclick2) <= tripleclicktimeout) { + snap = SNAP_LINE; + } else if (TIMEDIFF(now, xsel.tclick1) <= doubleclicktimeout) { + snap = SNAP_WORD; + } else { + snap = 0; + } + xsel.tclick2 = xsel.tclick1; + xsel.tclick1 = now; + + selstart(evcol(e), evrow(e), snap); + + } +} + +void +propnotify(XEvent *e) +{ + XPropertyEvent *xpev; + Atom clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); + + xpev = &e->xproperty; + if (xpev->state == PropertyNewValue && + (xpev->atom == XA_PRIMARY || + xpev->atom == clipboard)) { + selnotify(e); + } + +} + +void +selnotify(XEvent *e) +{ + ulong nitems, ofs, rem; + int format; + uchar *data, *last, *repl; + Atom type, incratom, property = None; + + incratom = XInternAtom(xw.dpy, "INCR", 0); + + ofs = 0; + if (e->type == SelectionNotify) + property = e->xselection.property; + else if (e->type == PropertyNotify) + property = e->xproperty.atom; + + if (property == None) + return; + + do { + if (XGetWindowProperty(xw.dpy, xw.win, property, ofs, + BUFSIZ/4, False, AnyPropertyType, + &type, &format, &nitems, &rem, + &data)) { + fprintf(stderr, "Clipboard allocation failed\n"); + return; + } + + if (e->type == PropertyNotify && nitems == 0 && rem == 0) + { + /* + * If there is some PropertyNotify with no data, then + * this is the signal of the selection owner that all + * data has been transferred. We won't need to receive + * PropertyNotify events anymore. + */ + MODBIT(xw.attrs.event_mask, 0, PropertyChangeMask); + XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, + &xw.attrs); + } + + if (type == incratom) { + /* + * Activate the PropertyNotify events so we receive + * when the selection owner does send us the next + * chunk of data. + */ + MODBIT(xw.attrs.event_mask, 1, PropertyChangeMask); + XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, + &xw.attrs); + + /* + * Deleting the property is the transfer start signal. + */ + XDeleteProperty(xw.dpy, xw.win, (int)property); + continue; + } + + /* + * As seen in getsel: + * Line endings are inconsistent in the terminal and GUI world + * copy and pasting. When receiving some selection data, + * replace all '\n' with '\r'. + * FIXME: Fix the computer world. + */ + repl = data; + last = data + nitems * format / 8; + while ((repl = memchr(repl, '\n', last - repl))) { + *repl++ = '\r'; + } + + if (IS_SET(MODE_BRCKTPASTE) && ofs == 0) + ttywrite("\033[200~", 6, 0); + ttywrite((char *)data, nitems * format / 8, 1); + if (IS_SET(MODE_BRCKTPASTE) && rem == 0) + ttywrite("\033[201~", 6, 0); + XFree(data); + /* number of 32-bit chunks returned */ + ofs += nitems * format / 32; + } while (rem > 0); + + /* + * Deleting the property again tells the selection owner to send the + * next data chunk in the property. + */ + XDeleteProperty(xw.dpy, xw.win, (int)property); +} + +void +xclipcopy(void) +{ + clipcopy(NULL); +} + +void +selclear_(XEvent *e) +{ + selclear(); +} + +void +selrequest(XEvent *e) +{ + XSelectionRequestEvent *xsre; + XSelectionEvent xev; + Atom xa_targets, string, clipboard; + char *seltext; + + xsre = (XSelectionRequestEvent *) e; + xev.type = SelectionNotify; + xev.requestor = xsre->requestor; + xev.selection = xsre->selection; + xev.target = xsre->target; + xev.time = xsre->time; + if (xsre->property == None) + xsre->property = xsre->target; + + /* reject */ + xev.property = None; + + xa_targets = XInternAtom(xw.dpy, "TARGETS", 0); + if (xsre->target == xa_targets) { + /* respond with the supported type */ + string = xsel.xtarget; + XChangeProperty(xsre->display, xsre->requestor, xsre->property, + XA_ATOM, 32, PropModeReplace, + (uchar *) &string, 1); + xev.property = xsre->property; + } else if (xsre->target == xsel.xtarget || xsre->target == XA_STRING) { + /* + * xith XA_STRING non ascii characters may be incorrect in the + * requestor. It is not our problem, use utf8. + */ + clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); + if (xsre->selection == XA_PRIMARY) { + seltext = xsel.primary; + } else if (xsre->selection == clipboard) { + seltext = xsel.clipboard; + } else { + fprintf(stderr, + "Unhandled clipboard selection 0x%lx\n", + xsre->selection); + return; + } + if (seltext != NULL) { + XChangeProperty(xsre->display, xsre->requestor, + xsre->property, xsre->target, + 8, PropModeReplace, + (uchar *)seltext, strlen(seltext)); + xev.property = xsre->property; + } + } + + /* all done, send a notification to the listener */ + if (!XSendEvent(xsre->display, xsre->requestor, 1, 0, (XEvent *) &xev)) + fprintf(stderr, "Error sending SelectionNotify event\n"); +} + +void +setsel(char *str, Time t) +{ + if (!str) + return; + + free(xsel.primary); + xsel.primary = str; + + XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t); + if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win) + selclear(); + +} + +void +xsetsel(char *str) +{ + setsel(str, CurrentTime); +} + +void +brelease(XEvent *e) +{ + int btn = e->xbutton.button; + + if (1 <= btn && btn <= 11) + buttons &= ~(1 << (btn-1)); + + if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forcemousemod)) { + mousereport(e); + return; + } + + if (mouseaction(e, 1)) + return; + + if (btn == Button1) { + mousesel(e, 1); + } + +} + +void +bmotion(XEvent *e) +{ + + if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forcemousemod)) { + mousereport(e); + return; + } + + mousesel(e, 0); +} + +void +cresize(int width, int height) +{ + int col, row; + + if (width != 0) + win.w = width; + if (height != 0) + win.h = height; + + col = (win.w - 2 * borderpx) / win.cw; + row = (win.h - 2 * borderpx) / win.ch; + col = MAX(2, col); + row = MAX(1, row); + + tresize(col, row); + xresize(col, row); + ttyresize(win.tw, win.th); +} + +void +xresize(int col, int row) +{ + win.tw = col * win.cw; + win.th = row * win.ch; + + XFreePixmap(xw.dpy, xw.buf); + xw.buf = XCreatePixmap(xw.dpy, xw.win, win.w, win.h, + xw.depth + ); + XftDrawChange(xw.draw, xw.buf); + xclear(0, 0, win.w, win.h); + + /* resize to new width */ + xw.specbuf = xrealloc(xw.specbuf, col * sizeof(GlyphFontSpec)); +} + +ushort +sixd_to_16bit(int x) +{ + return x == 0 ? 0 : 0x3737 + 0x2828 * x; +} + +int +xloadcolor(int i, const char *name, Color *ncolor) +{ + XRenderColor color = { .alpha = 0xffff }; + + if (!name) { + if (BETWEEN(i, 16, 255)) { /* 256 color */ + if (i < 6*6*6+16) { /* same colors as xterm */ + color.red = sixd_to_16bit( ((i-16)/36)%6 ); + color.green = sixd_to_16bit( ((i-16)/6) %6 ); + color.blue = sixd_to_16bit( ((i-16)/1) %6 ); + } else { /* greyscale */ + color.red = 0x0808 + 0x0a0a * (i - (6*6*6+16)); + color.green = color.blue = color.red; + } + return XftColorAllocValue(xw.dpy, xw.vis, + xw.cmap, &color, ncolor); + } else + name = colorname[i]; + } + + return XftColorAllocName(xw.dpy, xw.vis, xw.cmap, name, ncolor); +} + +void +xloadcols(void) +{ + int i; + static int loaded; + Color *cp; + + if (loaded) { + for (cp = dc.col; cp < &dc.col[dc.collen]; ++cp) + XftColorFree(xw.dpy, xw.vis, xw.cmap, cp); + } else { + dc.collen = MAX(LEN(colorname), 256); + dc.col = xmalloc(dc.collen * sizeof(Color)); + } + + for (i = 0; i < dc.collen; i++) + if (!xloadcolor(i, NULL, &dc.col[i])) { + if (colorname[i]) + die("could not allocate color '%s'\n", colorname[i]); + else + die("could not allocate color %d\n", i); + } + /* set alpha value of bg color */ + if (opt_alpha) + alpha = strtof(opt_alpha, NULL); + dc.col[defaultbg].color.alpha = (unsigned short)(0xffff * alpha); + dc.col[defaultbg].pixel &= 0x00FFFFFF; + dc.col[defaultbg].pixel |= (unsigned char)(0xff * alpha) << 24; + dc.col[defaultbg].color.red *= alpha; + dc.col[defaultbg].color.green *= alpha; + dc.col[defaultbg].color.blue *= alpha; + loaded = 1; +} + +int +xgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b) +{ + if (!BETWEEN(x, 0, dc.collen - 1)) + return 1; + + *r = dc.col[x].color.red >> 8; + *g = dc.col[x].color.green >> 8; + *b = dc.col[x].color.blue >> 8; + + return 0; +} + +int +xsetcolorname(int x, const char *name) +{ + Color ncolor; + + if (!BETWEEN(x, 0, dc.collen - 1)) + return 1; + + if (!xloadcolor(x, name, &ncolor)) + return 1; + + XftColorFree(xw.dpy, xw.vis, xw.cmap, &dc.col[x]); + dc.col[x] = ncolor; + + /* set alpha value of bg color */ + if (x == defaultbg) { + if (opt_alpha) + alpha = strtof(opt_alpha, NULL); + dc.col[defaultbg].color.alpha = (unsigned short)(0xffff * alpha); + dc.col[defaultbg].pixel &= 0x00FFFFFF; + dc.col[defaultbg].pixel |= (unsigned char)(0xff * alpha) << 24; + dc.col[defaultbg].color.red *= alpha; + dc.col[defaultbg].color.green *= alpha; + dc.col[defaultbg].color.blue *= alpha; + } + return 0; +} + +/* + * Absolute coordinates. + */ +void +xclear(int x1, int y1, int x2, int y2) +{ + XftDrawRect(xw.draw, + &dc.col[IS_SET(MODE_REVERSE)? defaultfg : defaultbg], + x1, y1, x2-x1, y2-y1); +} + +void +xclearwin(void) +{ + xclear(0, 0, win.w, win.h); +} + +void +xhints(void) +{ + XClassHint class = {opt_name ? opt_name : termname, + opt_class ? opt_class : termname}; + XWMHints wm = {.flags = InputHint, .input = 1}; + XSizeHints *sizeh; + + sizeh = XAllocSizeHints(); + + sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize; + sizeh->height = win.h; + sizeh->width = win.w; + sizeh->height_inc = win.ch; + sizeh->width_inc = win.cw; + sizeh->base_height = 2 * borderpx; + sizeh->base_width = 2 * borderpx; + sizeh->min_height = win.ch + 2 * borderpx; + sizeh->min_width = win.cw + 2 * borderpx; + if (xw.isfixed) { + sizeh->flags |= PMaxSize; + sizeh->min_width = sizeh->max_width = win.w; + sizeh->min_height = sizeh->max_height = win.h; + } + if (xw.gm & (XValue|YValue)) { + sizeh->flags |= USPosition | PWinGravity; + sizeh->x = xw.l; + sizeh->y = xw.t; + sizeh->win_gravity = xgeommasktogravity(xw.gm); + } + + XSetWMProperties(xw.dpy, xw.win, NULL, NULL, NULL, 0, sizeh, &wm, + &class); + XFree(sizeh); +} + +int +xgeommasktogravity(int mask) +{ + switch (mask & (XNegative|YNegative)) { + case 0: + return NorthWestGravity; + case XNegative: + return NorthEastGravity; + case YNegative: + return SouthWestGravity; + } + + return SouthEastGravity; +} + +int +ximopen(Display *dpy) +{ + XIMCallback imdestroy = { .client_data = NULL, .callback = ximdestroy }; + XICCallback icdestroy = { .client_data = NULL, .callback = xicdestroy }; + + xw.ime.xim = XOpenIM(xw.dpy, NULL, NULL, NULL); + if (xw.ime.xim == NULL) + return 0; + + if (XSetIMValues(xw.ime.xim, XNDestroyCallback, &imdestroy, NULL)) + fprintf(stderr, "XSetIMValues: " + "Could not set XNDestroyCallback.\n"); + + xw.ime.spotlist = XVaCreateNestedList(0, XNSpotLocation, &xw.ime.spot, + NULL); + + if (xw.ime.xic == NULL) { + xw.ime.xic = XCreateIC(xw.ime.xim, XNInputStyle, + XIMPreeditNothing | XIMStatusNothing, + XNClientWindow, xw.win, + XNDestroyCallback, &icdestroy, + NULL); + } + if (xw.ime.xic == NULL) + fprintf(stderr, "XCreateIC: Could not create input context.\n"); + + return 1; +} + +void +ximinstantiate(Display *dpy, XPointer client, XPointer call) +{ + if (ximopen(dpy)) + XUnregisterIMInstantiateCallback(xw.dpy, NULL, NULL, NULL, + ximinstantiate, NULL); +} + +void +ximdestroy(XIM xim, XPointer client, XPointer call) +{ + xw.ime.xim = NULL; + XRegisterIMInstantiateCallback(xw.dpy, NULL, NULL, NULL, + ximinstantiate, NULL); + XFree(xw.ime.spotlist); +} + +int +xicdestroy(XIC xim, XPointer client, XPointer call) +{ + xw.ime.xic = NULL; + return 1; +} + +int +xloadfont(Font *f, FcPattern *pattern) +{ + FcPattern *configured; + FcPattern *match; + FcResult result; + XGlyphInfo extents; + int wantattr, haveattr; + + /* + * Manually configure instead of calling XftMatchFont + * so that we can use the configured pattern for + * "missing glyph" lookups. + */ + configured = FcPatternDuplicate(pattern); + if (!configured) + return 1; + + FcConfigSubstitute(NULL, configured, FcMatchPattern); + XftDefaultSubstitute(xw.dpy, xw.scr, configured); + + match = FcFontMatch(NULL, configured, &result); + if (!match) { + FcPatternDestroy(configured); + return 1; + } + + if (!(f->match = XftFontOpenPattern(xw.dpy, match))) { + FcPatternDestroy(configured); + FcPatternDestroy(match); + return 1; + } + + if ((XftPatternGetInteger(pattern, "slant", 0, &wantattr) == + XftResultMatch)) { + /* + * Check if xft was unable to find a font with the appropriate + * slant but gave us one anyway. Try to mitigate. + */ + if ((XftPatternGetInteger(f->match->pattern, "slant", 0, + &haveattr) != XftResultMatch) || haveattr < wantattr) { + f->badslant = 1; + fputs("font slant does not match\n", stderr); + } + } + + if ((XftPatternGetInteger(pattern, "weight", 0, &wantattr) == + XftResultMatch)) { + if ((XftPatternGetInteger(f->match->pattern, "weight", 0, + &haveattr) != XftResultMatch) || haveattr != wantattr) { + f->badweight = 1; + fputs("font weight does not match\n", stderr); + } + } + + XftTextExtentsUtf8(xw.dpy, f->match, + (const FcChar8 *) ascii_printable, + strlen(ascii_printable), &extents); + + f->set = NULL; + f->pattern = configured; + + f->ascent = f->match->ascent; + f->descent = f->match->descent; + f->lbearing = 0; + f->rbearing = f->match->max_advance_width; + + f->height = f->ascent + f->descent; + f->width = DIVCEIL(extents.xOff, strlen(ascii_printable)); + + return 0; +} + +void +xloadfonts(const char *fontstr, double fontsize) +{ + FcPattern *pattern; + double fontval; + + if (fontstr[0] == '-') + pattern = XftXlfdParse(fontstr, False, False); + else + pattern = FcNameParse((const FcChar8 *)fontstr); + + if (!pattern) + die("can't open font %s\n", fontstr); + + if (fontsize > 1) { + FcPatternDel(pattern, FC_PIXEL_SIZE); + FcPatternDel(pattern, FC_SIZE); + FcPatternAddDouble(pattern, FC_PIXEL_SIZE, (double)fontsize); + usedfontsize = fontsize; + } else { + if (FcPatternGetDouble(pattern, FC_PIXEL_SIZE, 0, &fontval) == + FcResultMatch) { + usedfontsize = fontval; + } else if (FcPatternGetDouble(pattern, FC_SIZE, 0, &fontval) == + FcResultMatch) { + usedfontsize = -1; + } else { + /* + * Default font size is 12, if none given. This is to + * have a known usedfontsize value. + */ + FcPatternAddDouble(pattern, FC_PIXEL_SIZE, 12); + usedfontsize = 12; + } + defaultfontsize = usedfontsize; + } + + if (xloadfont(&dc.font, pattern)) + die("can't open font %s\n", fontstr); + + if (usedfontsize < 0) { + FcPatternGetDouble(dc.font.match->pattern, + FC_PIXEL_SIZE, 0, &fontval); + usedfontsize = fontval; + if (fontsize == 0) + defaultfontsize = fontval; + } + + /* Setting character width and height. */ + win.cw = ceilf(dc.font.width * cwscale); + win.ch = ceilf(dc.font.height * chscale); + + FcPatternDel(pattern, FC_SLANT); + FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC); + if (xloadfont(&dc.ifont, pattern)) + die("can't open font %s\n", fontstr); + + FcPatternDel(pattern, FC_WEIGHT); + FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD); + if (xloadfont(&dc.ibfont, pattern)) + die("can't open font %s\n", fontstr); + + FcPatternDel(pattern, FC_SLANT); + FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN); + if (xloadfont(&dc.bfont, pattern)) + die("can't open font %s\n", fontstr); + + FcPatternDestroy(pattern); +} + +void +xunloadfont(Font *f) +{ + XftFontClose(xw.dpy, f->match); + FcPatternDestroy(f->pattern); + if (f->set) + FcFontSetDestroy(f->set); +} + +void +xunloadfonts(void) +{ + + /* Free the loaded fonts in the font cache. */ + while (frclen > 0) + XftFontClose(xw.dpy, frc[--frclen].font); + + xunloadfont(&dc.font); + xunloadfont(&dc.bfont); + xunloadfont(&dc.ifont); + xunloadfont(&dc.ibfont); +} + +void +xinit(int cols, int rows) +{ + XGCValues gcvalues; + Cursor cursor; + Window parent; + pid_t thispid = getpid(); + XColor xmousefg, xmousebg; + XWindowAttributes attr; + XVisualInfo vis; + + if (!(xw.dpy = XOpenDisplay(NULL))) + die("can't open display\n"); + xw.scr = XDefaultScreen(xw.dpy); + + if (!(opt_embed && (parent = strtol(opt_embed, NULL, 0)))) { + parent = XRootWindow(xw.dpy, xw.scr); + xw.depth = 32; + } else { + XGetWindowAttributes(xw.dpy, parent, &attr); + xw.depth = attr.depth; + } + + XMatchVisualInfo(xw.dpy, xw.scr, xw.depth, TrueColor, &vis); + xw.vis = vis.visual; + + /* font */ + if (!FcInit()) + die("could not init fontconfig.\n"); + + usedfont = (opt_font == NULL)? font : opt_font; + xloadfonts(usedfont, 0); + + /* colors */ + xw.cmap = XCreateColormap(xw.dpy, parent, xw.vis, None); + xloadcols(); + + /* adjust fixed window geometry */ + win.w = 2 * borderpx + cols * win.cw; + win.h = 2 * borderpx + rows * win.ch; + if (xw.gm & XNegative) + xw.l += DisplayWidth(xw.dpy, xw.scr) - win.w - 2; + if (xw.gm & YNegative) + xw.t += DisplayHeight(xw.dpy, xw.scr) - win.h - 2; + + /* Events */ + xw.attrs.background_pixel = dc.col[defaultbg].pixel; + xw.attrs.border_pixel = dc.col[defaultbg].pixel; + xw.attrs.bit_gravity = NorthWestGravity; + xw.attrs.event_mask = FocusChangeMask | KeyPressMask | KeyReleaseMask + | ExposureMask | VisibilityChangeMask | StructureNotifyMask + | ButtonMotionMask | ButtonPressMask | ButtonReleaseMask + | SubstructureNotifyMask | SubstructureRedirectMask + ; + xw.attrs.colormap = xw.cmap; + + xw.win = XCreateWindow(xw.dpy, parent, xw.l, xw.t, + win.w, win.h, 0, xw.depth, InputOutput, + xw.vis, CWBackPixel | CWBorderPixel | CWBitGravity + | CWEventMask | CWColormap, &xw.attrs); + + memset(&gcvalues, 0, sizeof(gcvalues)); + gcvalues.graphics_exposures = False; + + xw.buf = XCreatePixmap(xw.dpy, xw.win, win.w, win.h, xw.depth); + dc.gc = XCreateGC(xw.dpy, xw.buf, GCGraphicsExposures, &gcvalues); + XSetForeground(xw.dpy, dc.gc, dc.col[defaultbg].pixel); + XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, win.w, win.h); + + /* font spec buffer */ + xw.specbuf = xmalloc(cols * sizeof(GlyphFontSpec)); + + /* Xft rendering context */ + xw.draw = XftDrawCreate(xw.dpy, xw.buf, xw.vis, xw.cmap); + + /* input methods */ + if (!ximopen(xw.dpy)) { + XRegisterIMInstantiateCallback(xw.dpy, NULL, NULL, NULL, + ximinstantiate, NULL); + } + + /* white cursor, black outline */ + cursor = XCreateFontCursor(xw.dpy, mouseshape); + XDefineCursor(xw.dpy, xw.win, cursor); + + if (XParseColor(xw.dpy, xw.cmap, colorname[mousefg], &xmousefg) == 0) { + xmousefg.red = 0xffff; + xmousefg.green = 0xffff; + xmousefg.blue = 0xffff; + } + + if (XParseColor(xw.dpy, xw.cmap, colorname[mousebg], &xmousebg) == 0) { + xmousebg.red = 0x0000; + xmousebg.green = 0x0000; + xmousebg.blue = 0x0000; + } + + XRecolorCursor(xw.dpy, cursor, &xmousefg, &xmousebg); + + xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False); + xw.wmdeletewin = XInternAtom(xw.dpy, "WM_DELETE_WINDOW", False); + xw.netwmname = XInternAtom(xw.dpy, "_NET_WM_NAME", False); + xw.netwmiconname = XInternAtom(xw.dpy, "_NET_WM_ICON_NAME", False); + XSetWMProtocols(xw.dpy, xw.win, &xw.wmdeletewin, 1); + + xw.netwmpid = XInternAtom(xw.dpy, "_NET_WM_PID", False); + XChangeProperty(xw.dpy, xw.win, xw.netwmpid, XA_CARDINAL, 32, + PropModeReplace, (uchar *)&thispid, 1); + + win.mode = MODE_NUMLOCK; + resettitle(); + xhints(); + XMapWindow(xw.dpy, xw.win); + XSync(xw.dpy, False); + + clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1); + clock_gettime(CLOCK_MONOTONIC, &xsel.tclick2); + xsel.primary = NULL; + xsel.clipboard = NULL; + xsel.xtarget = XInternAtom(xw.dpy, "UTF8_STRING", 0); + if (xsel.xtarget == None) + xsel.xtarget = XA_STRING; + +} + +int +xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x, int y) +{ + float winx = borderpx + x * win.cw, winy = borderpx + y * win.ch, xp, yp; + ushort mode, prevmode = USHRT_MAX; + Font *font = &dc.font; + int frcflags = FRC_NORMAL; + float runewidth = win.cw * ((glyphs[0].mode & ATTR_WIDE) ? 2.0f : 1.0f); + Rune rune; + FT_UInt glyphidx; + FcResult fcres; + FcPattern *fcpattern, *fontpattern; + FcFontSet *fcsets[] = { NULL }; + FcCharSet *fccharset; + int i, f, numspecs = 0; + + for (i = 0, xp = winx, yp = winy + font->ascent; i < len; ++i) + { + /* Fetch rune and mode for current glyph. */ + rune = glyphs[i].u; + mode = glyphs[i].mode; + + /* Skip dummy wide-character spacing. */ + if (mode == ATTR_WDUMMY) + continue; + + /* Determine font for glyph if different from previous glyph. */ + if (prevmode != mode) { + prevmode = mode; + font = &dc.font; + frcflags = FRC_NORMAL; + runewidth = win.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); + if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD)) { + font = &dc.ibfont; + frcflags = FRC_ITALICBOLD; + } else if (mode & ATTR_ITALIC) { + font = &dc.ifont; + frcflags = FRC_ITALIC; + } else if (mode & ATTR_BOLD) { + font = &dc.bfont; + frcflags = FRC_BOLD; + } + yp = winy + font->ascent; + } + + /* Lookup character index with default font. */ + glyphidx = XftCharIndex(xw.dpy, font->match, rune); + if (glyphidx) { + specs[numspecs].font = font->match; + specs[numspecs].glyph = glyphidx; + specs[numspecs].x = (short)xp; + specs[numspecs].y = (short)yp; + xp += runewidth; + numspecs++; + continue; + } + + /* Fallback on font cache, search the font cache for match. */ + for (f = 0; f < frclen; f++) { + glyphidx = XftCharIndex(xw.dpy, frc[f].font, rune); + /* Everything correct. */ + if (glyphidx && frc[f].flags == frcflags) + break; + /* We got a default font for a not found glyph. */ + if (!glyphidx && frc[f].flags == frcflags + && frc[f].unicodep == rune) { + break; + } + } + + /* Nothing was found. Use fontconfig to find matching font. */ + if (f >= frclen) { + if (!font->set) + font->set = FcFontSort(0, font->pattern, 1, 0, &fcres); + fcsets[0] = font->set; + + /* + * Nothing was found in the cache. Now use + * some dozen of Fontconfig calls to get the + * font for one single character. + * + * Xft and fontconfig are design failures. + */ + fcpattern = FcPatternDuplicate(font->pattern); + fccharset = FcCharSetCreate(); + + FcCharSetAddChar(fccharset, rune); + FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset); + FcPatternAddBool(fcpattern, FC_SCALABLE, 1); + + FcConfigSubstitute(0, fcpattern, FcMatchPattern); + FcDefaultSubstitute(fcpattern); + + fontpattern = FcFontSetMatch(0, fcsets, 1, fcpattern, &fcres); + + /* Allocate memory for the new cache entry. */ + if (frclen >= frccap) { + frccap += 16; + frc = xrealloc(frc, frccap * sizeof(Fontcache)); + } + + frc[frclen].font = XftFontOpenPattern(xw.dpy, fontpattern); + if (!frc[frclen].font) + die("XftFontOpenPattern failed seeking fallback font: %s\n", + strerror(errno)); + frc[frclen].flags = frcflags; + frc[frclen].unicodep = rune; + + glyphidx = XftCharIndex(xw.dpy, frc[frclen].font, rune); + + f = frclen; + frclen++; + + FcPatternDestroy(fcpattern); + FcCharSetDestroy(fccharset); + } + + specs[numspecs].font = frc[f].font; + specs[numspecs].glyph = glyphidx; + specs[numspecs].x = (short)xp; + specs[numspecs].y = (short)yp; + xp += runewidth; + numspecs++; + } + + return numspecs; +} + +void +xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, int y +) { + int charlen = len * ((base.mode & ATTR_WIDE) ? 2 : 1); + int width = charlen * win.cw; + int winx = borderpx + x * win.cw, winy = borderpx + y * win.ch; + Color *fg, *bg, *temp, revfg, revbg, truefg, truebg; + XRenderColor colfg, colbg; + XRectangle r; + + /* Fallback on color display for attributes not supported by the font */ + if (base.mode & ATTR_ITALIC && base.mode & ATTR_BOLD) { + if (dc.ibfont.badslant || dc.ibfont.badweight) + base.fg = defaultattr; + } else if ((base.mode & ATTR_ITALIC && dc.ifont.badslant) || + (base.mode & ATTR_BOLD && dc.bfont.badweight)) { + base.fg = defaultattr; + } + + if (IS_TRUECOL(base.fg)) { + colfg.alpha = 0xffff; + colfg.red = TRUERED(base.fg); + colfg.green = TRUEGREEN(base.fg); + colfg.blue = TRUEBLUE(base.fg); + XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colfg, &truefg); + fg = &truefg; + } else { + fg = &dc.col[base.fg]; + } + + if (IS_TRUECOL(base.bg)) { + colbg.alpha = 0xffff; + colbg.green = TRUEGREEN(base.bg); + colbg.red = TRUERED(base.bg); + colbg.blue = TRUEBLUE(base.bg); + XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colbg, &truebg); + bg = &truebg; + } else { + bg = &dc.col[base.bg]; + } + + /* Change basic system colors [0-7] to bright system colors [8-15] */ + if ((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7)) + fg = &dc.col[base.fg + 8]; + + if (IS_SET(MODE_REVERSE)) { + if (fg == &dc.col[defaultfg]) { + fg = &dc.col[defaultbg]; + } else { + colfg.red = ~fg->color.red; + colfg.green = ~fg->color.green; + colfg.blue = ~fg->color.blue; + colfg.alpha = fg->color.alpha; + XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colfg, + &revfg); + fg = &revfg; + } + + if (bg == &dc.col[defaultbg]) { + bg = &dc.col[defaultfg]; + } else { + colbg.red = ~bg->color.red; + colbg.green = ~bg->color.green; + colbg.blue = ~bg->color.blue; + colbg.alpha = bg->color.alpha; + XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colbg, + &revbg); + bg = &revbg; + } + } + + if ((base.mode & ATTR_BOLD_FAINT) == ATTR_FAINT) { + colfg.red = fg->color.red / 2; + colfg.green = fg->color.green / 2; + colfg.blue = fg->color.blue / 2; + colfg.alpha = fg->color.alpha; + XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colfg, &revfg); + fg = &revfg; + } + + if (base.mode & ATTR_REVERSE) { + temp = fg; + fg = bg; + bg = temp; + } + + if (base.mode & ATTR_BLINK && win.mode & MODE_BLINK) + fg = bg; + + if (base.mode & ATTR_INVISIBLE) + fg = bg; + + /* Intelligent cleaning up of the borders. */ + if (x == 0) { + xclear(0, (y == 0)? 0 : winy, borderpx, + winy + win.ch + + ((winy + win.ch >= borderpx + win.th)? win.h : 0)); + } + if (winx + width >= borderpx + win.tw) { + xclear(winx + width, (y == 0)? 0 : winy, win.w, + ((winy + win.ch >= borderpx + win.th)? win.h : (winy + win.ch))); + } + if (y == 0) + xclear(winx, 0, winx + width, borderpx); + if (winy + win.ch >= borderpx + win.th) + xclear(winx, winy + win.ch, winx + width, win.h); + + /* Clean up the region we want to draw to. */ + + XftDrawRect(xw.draw, bg, winx, winy, width, win.ch); + + /* Set the clip region because Xft is sometimes dirty. */ + r.x = 0; + r.y = 0; + r.height = win.ch; + r.width = width; + XftDrawSetClipRectangles(xw.draw, winx, winy, &r, 1); + + /* Render the glyphs. */ + XftDrawGlyphFontSpec(xw.draw, fg, specs, len); + + /* Render underline and strikethrough. */ + if (base.mode & ATTR_UNDERLINE) { + XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent * chscale + 1, + width, 1); + } + + if (base.mode & ATTR_STRUCK) { + XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent * chscale / 3, + width, 1); + } + + /* Reset clip to none. */ + XftDrawSetClip(xw.draw, 0); +} + +void +xdrawglyph(Glyph g, int x, int y) +{ + int numspecs; + XftGlyphFontSpec *specs = xw.specbuf; + + numspecs = xmakeglyphfontspecs(specs, &g, 1, x, y); + xdrawglyphfontspecs(specs, g, numspecs, x, y + ); +} + +void +xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) +{ + Color drawcol; + + /* remove the old cursor */ + if (selected(ox, oy)) + og.mode ^= ATTR_REVERSE; + + xdrawglyph(og, ox, oy); + + if (IS_SET(MODE_HIDE)) + return; + + /* + * Select the right color for the right mode. + */ + g.mode &= ATTR_BOLD|ATTR_ITALIC|ATTR_UNDERLINE|ATTR_STRUCK|ATTR_WIDE + ; + + if (IS_SET(MODE_REVERSE)) { + g.mode |= ATTR_REVERSE; + g.bg = defaultfg; + if (selected(cx, cy)) { + drawcol = dc.col[defaultcs]; + g.fg = defaultrcs; + } else { + drawcol = dc.col[defaultrcs]; + g.fg = defaultcs; + } + } else { + if (selected(cx, cy)) { + g.fg = defaultfg; + g.bg = defaultrcs; + } else { + g.fg = defaultbg; + g.bg = defaultcs; + } + + drawcol = dc.col[g.bg]; + } + + /* draw the new one */ + if (IS_SET(MODE_FOCUSED)) { + switch (win.cursor) { + case 7: /* st extension */ + g.u = 0x2603; /* snowman (U+2603) */ + /* FALLTHROUGH */ + case 0: /* Blinking block */ + case 1: /* Blinking block (default) */ + case 2: /* Steady block */ + xdrawglyph(g, cx, cy); + break; + case 3: /* Blinking underline */ + case 4: /* Steady underline */ + XftDrawRect(xw.draw, &drawcol, + borderpx + cx * win.cw, + borderpx + (cy + 1) * win.ch - \ + cursorthickness, + win.cw, cursorthickness); + break; + case 5: /* Blinking bar */ + case 6: /* Steady bar */ + XftDrawRect(xw.draw, &drawcol, + borderpx + cx * win.cw, + borderpx + cy * win.ch, + cursorthickness, win.ch); + break; + } + } else { + XftDrawRect(xw.draw, &drawcol, + borderpx + cx * win.cw, + borderpx + cy * win.ch, + win.cw - 1, 1); + XftDrawRect(xw.draw, &drawcol, + borderpx + cx * win.cw, + borderpx + cy * win.ch, + 1, win.ch - 1); + XftDrawRect(xw.draw, &drawcol, + borderpx + (cx + 1) * win.cw - 1, + borderpx + cy * win.ch, + 1, win.ch - 1); + XftDrawRect(xw.draw, &drawcol, + borderpx + cx * win.cw, + borderpx + (cy + 1) * win.ch - 1, + win.cw, 1); + } +} + +void +xsetenv(void) +{ + char buf[sizeof(long) * 8 + 1]; + + snprintf(buf, sizeof(buf), "%lu", xw.win); + setenv("WINDOWID", buf, 1); +} + +void +xseticontitle(char *p) +{ + XTextProperty prop; + DEFAULT(p, opt_title); + + if (p[0] == '\0') + p = opt_title; + + if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, + &prop) != Success) + return; + XSetWMIconName(xw.dpy, xw.win, &prop); + XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmiconname); + XFree(prop.value); +} + +void +xsettitle(char *p) +{ + XTextProperty prop; + DEFAULT(p, opt_title); + + if (p[0] == '\0') + p = opt_title; + + if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, + &prop) != Success) + return; + XSetWMName(xw.dpy, xw.win, &prop); + XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmname); + XFree(prop.value); +} + +int +xstartdraw(void) +{ + return IS_SET(MODE_VISIBLE); +} + +void +xdrawline(Line line, int x1, int y1, int x2) +{ + int i, x, ox, numspecs; + Glyph base, new; + + XftGlyphFontSpec *specs = xw.specbuf; + + numspecs = xmakeglyphfontspecs(specs, &line[x1], x2 - x1, x1, y1); + i = ox = 0; + for (x = x1; x < x2 && i < numspecs; x++) { + new = line[x]; + if (new.mode == ATTR_WDUMMY) + continue; + if (selected(x, y1)) + new.mode ^= ATTR_REVERSE; + if (i > 0 && ATTRCMP(base, new)) { + xdrawglyphfontspecs(specs, base, i, ox, y1); + specs += i; + numspecs -= i; + i = 0; + } + if (i == 0) { + ox = x; + base = new; + } + i++; + } + if (i > 0) + xdrawglyphfontspecs(specs, base, i, ox, y1); + +} + +void +xfinishdraw(void) +{ + ImageList *im, *next; + Imlib_Image origin, scaled; + XGCValues gcvalues; + GC gc = NULL; + int width, height; + int del, desty, mode, x1, x2, xend; + int bw = borderpx, bh = borderpx; + Line line; + + for (im = term.images; im; im = next) { + next = im->next; + + /* do not draw or process the image, if it is not visible */ + if (im->x >= term.col || im->y >= term.row || im->y < 0) + continue; + + /* scale the image */ + width = MAX(im->width * win.cw / im->cw, 1); + height = MAX(im->height * win.ch / im->ch, 1); + if (!im->pixmap) { + im->pixmap = (void *)XCreatePixmap(xw.dpy, xw.win, width, height, + xw.depth + ); + if (!im->pixmap) + continue; + if (win.cw == im->cw && win.ch == im->ch) { + XImage ximage = { + .format = ZPixmap, + .data = (char *)im->pixels, + .width = im->width, + .height = im->height, + .xoffset = 0, + .byte_order = sixelbyteorder, + .bitmap_bit_order = MSBFirst, + .bits_per_pixel = 32, + .bytes_per_line = im->width * 4, + .bitmap_unit = 32, + .bitmap_pad = 32, + .depth = xw.depth + }; + XPutImage(xw.dpy, (Drawable)im->pixmap, dc.gc, &ximage, 0, 0, 0, 0, width, height); + if (im->transparent) + im->clipmask = (void *)sixel_create_clipmask((char *)im->pixels, width, height); + } else { + origin = imlib_create_image_using_data(im->width, im->height, (DATA32 *)im->pixels); + if (!origin) + continue; + imlib_context_set_image(origin); + imlib_image_set_has_alpha(1); + imlib_context_set_anti_alias(im->transparent ? 0 : 1); /* anti-aliasing messes up the clip mask */ + scaled = imlib_create_cropped_scaled_image(0, 0, im->width, im->height, width, height); + imlib_free_image_and_decache(); + if (!scaled) + continue; + imlib_context_set_image(scaled); + imlib_image_set_has_alpha(1); + XImage ximage = { + .format = ZPixmap, + .data = (char *)imlib_image_get_data_for_reading_only(), + .width = width, + .height = height, + .xoffset = 0, + .byte_order = sixelbyteorder, + .bitmap_bit_order = MSBFirst, + .bits_per_pixel = 32, + .bytes_per_line = width * 4, + .bitmap_unit = 32, + .bitmap_pad = 32, + .depth = xw.depth + }; + XPutImage(xw.dpy, (Drawable)im->pixmap, dc.gc, &ximage, 0, 0, 0, 0, width, height); + if (im->transparent) + im->clipmask = (void *)sixel_create_clipmask((char *)imlib_image_get_data_for_reading_only(), width, height); + imlib_free_image_and_decache(); + } + } + + /* create GC */ + if (!gc) { + memset(&gcvalues, 0, sizeof(gcvalues)); + gcvalues.graphics_exposures = False; + gc = XCreateGC(xw.dpy, xw.win, GCGraphicsExposures, &gcvalues); + } + + /* set the clip mask */ + desty = bh + im->y * win.ch; + if (im->clipmask) { + XSetClipMask(xw.dpy, gc, (Drawable)im->clipmask); + XSetClipOrigin(xw.dpy, gc, bw + im->x * win.cw, desty); + } + + /* draw only the parts of the image that are not erased */ + line = TLINE(im->y) + im->x; + xend = MIN(im->x + im->cols, term.col); + for (del = 1, x1 = im->x; x1 < xend; x1 = x2) { + mode = line->mode & ATTR_SIXEL; + for (x2 = x1 + 1; x2 < xend; x2++) { + if (((++line)->mode & ATTR_SIXEL) != mode) + break; + } + if (mode) { + XCopyArea(xw.dpy, (Drawable)im->pixmap, xw.buf, gc, + (x1 - im->x) * win.cw, 0, + MIN((x2 - x1) * win.cw, width - (x1 - im->x) * win.cw), height, + bw + x1 * win.cw, desty); + del = 0; + } + } + if (im->clipmask) + XSetClipMask(xw.dpy, gc, None); + + /* if all the parts are erased, we can delete the entire image */ + if (del && im->x + im->cols <= term.col) + delete_image(im); + } + if (gc) + XFreeGC(xw.dpy, gc); + + XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, win.w, win.h, 0, 0); + XSetForeground(xw.dpy, dc.gc, dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg].pixel); +} + +void +xximspot(int x, int y) +{ + if (xw.ime.xic == NULL) + return; + + xw.ime.spot.x = borderpx + x * win.cw; + xw.ime.spot.y = borderpx + (y + 1) * win.ch; + + XSetICValues(xw.ime.xic, XNPreeditAttributes, xw.ime.spotlist, NULL); +} + +void +expose(XEvent *ev) +{ + redraw(); +} + +void +visibility(XEvent *ev) +{ + XVisibilityEvent *e = &ev->xvisibility; + + MODBIT(win.mode, e->state != VisibilityFullyObscured, MODE_VISIBLE); +} + +void +unmap(XEvent *ev) +{ + if (embed == ev->xunmap.window) { + embed = 0; + XRaiseWindow(xw.dpy, xw.win); + XSetInputFocus(xw.dpy, xw.win, RevertToParent, CurrentTime); + } + win.mode &= ~MODE_VISIBLE; +} + +void +xsetpointermotion(int set) +{ + MODBIT(xw.attrs.event_mask, set, PointerMotionMask); + XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs); +} + +void +xsetmode(int set, unsigned int flags) +{ + int mode = win.mode; + MODBIT(win.mode, set, flags); + if ((win.mode & MODE_REVERSE) != (mode & MODE_REVERSE)) + redraw(); +} + +int +xsetcursor(int cursor) +{ + if (!BETWEEN(cursor, 0, 7)) /* 7: st extension */ + return 1; + win.cursor = cursor; + return 0; +} + +void +xseturgency(int add) +{ + XWMHints *h = XGetWMHints(xw.dpy, xw.win); + + MODBIT(h->flags, add, XUrgencyHint); + XSetWMHints(xw.dpy, xw.win, h); + XFree(h); +} + +void +xbell(void) +{ + if (!(IS_SET(MODE_FOCUSED))) + xseturgency(1); + if (bellvolume) + XkbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL); + if (!bellon) /* turn visual bell on */ + bellon = 1; +} + +void +focus(XEvent *ev) +{ + XFocusChangeEvent *e = &ev->xfocus; + + if (embed && ev->type == FocusIn) { + XRaiseWindow(xw.dpy, embed); + XSetInputFocus(xw.dpy, embed, RevertToParent, CurrentTime); + sendxembed(XEMBED_FOCUS_IN, XEMBED_FOCUS_CURRENT, 0, 0); + sendxembed(XEMBED_WINDOW_ACTIVATE, 0, 0, 0); + } + + if (e->mode == NotifyGrab) + return; + + if (ev->type == FocusIn) { + if (xw.ime.xic) + XSetICFocus(xw.ime.xic); + win.mode |= MODE_FOCUSED; + xseturgency(0); + if (IS_SET(MODE_FOCUS)) + ttywrite("\033[I", 3, 0); + } else { + if (xw.ime.xic) + XUnsetICFocus(xw.ime.xic); + win.mode &= ~MODE_FOCUSED; + if (IS_SET(MODE_FOCUS)) + ttywrite("\033[O", 3, 0); + } +} + +int +match(uint mask, uint state) +{ + return mask == XK_ANY_MOD || mask == (state & ~ignoremod); +} + +char* +kmap(KeySym k, uint state) +{ + Key *kp; + int i; + + /* Check for mapped keys out of X11 function keys. */ + for (i = 0; i < LEN(mappedkeys); i++) { + if (mappedkeys[i] == k) + break; + } + if (i == LEN(mappedkeys)) { + if ((k & 0xFFFF) < 0xFD00) + return NULL; + } + + for (kp = key; kp < key + LEN(key); kp++) { + if (kp->k != k) + continue; + + if (!match(kp->mask, state)) + continue; + + if (IS_SET(MODE_APPKEYPAD) ? kp->appkey < 0 : kp->appkey > 0) + continue; + if (IS_SET(MODE_NUMLOCK) && kp->appkey == 2) + continue; + + if (IS_SET(MODE_APPCURSOR) ? kp->appcursor < 0 : kp->appcursor > 0) + continue; + + return kp->s; + } + + return NULL; +} + +void +kpress(XEvent *ev) +{ + XKeyEvent *e = &ev->xkey; + KeySym ksym = NoSymbol; + char buf[64], *customkey; + int len, screen; + Rune c; + Status status; + Shortcut *bp; + + if (IS_SET(MODE_KBDLOCK)) + return; + + if (xw.ime.xic) { + len = XmbLookupString(xw.ime.xic, e, buf, sizeof buf, &ksym, &status); + if (status == XBufferOverflow) + return; + } else { + len = XLookupString(e, buf, sizeof buf, &ksym, NULL); + } + + screen = tisaltscr() ? S_ALT : S_PRI; + + /* 1. shortcuts */ + for (bp = shortcuts; bp < shortcuts + LEN(shortcuts); bp++) { + if (ksym == bp->keysym && match(bp->mod, e->state) && + (!bp->screen || bp->screen == screen)) { + bp->func(&(bp->arg)); + return; + } + } + + /* 2. custom keys from config.h */ + if ((customkey = kmap(ksym, e->state))) { + ttywrite(customkey, strlen(customkey), 1); + return; + } + + /* 3. composed string from input method */ + if (len == 0) + return; + if (len == 1 && e->state & Mod1Mask) { + if (IS_SET(MODE_8BIT)) { + if (*buf < 0177) { + c = *buf | 0x80; + len = utf8encode(c, buf); + } + } else { + buf[1] = buf[0]; + buf[0] = '\033'; + len = 2; + } + } + ttywrite(buf, len, 1); +} + +void +cmessage(XEvent *e) +{ + /* + * See xembed specs + * http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html + */ + if (e->xclient.message_type == xw.xembed && e->xclient.format == 32) { + if (e->xclient.data.l[1] == XEMBED_FOCUS_IN) { + win.mode |= MODE_FOCUSED; + xseturgency(0); + } else if (e->xclient.data.l[1] == XEMBED_FOCUS_OUT) { + win.mode &= ~MODE_FOCUSED; + } + } else if (e->xclient.data.l[0] == xw.wmdeletewin) { + ttyhangup(); + exit(0); + } +} + +void +resize(XEvent *e) +{ + XWindowChanges wc; + + if (e->xconfigure.width == win.w && e->xconfigure.height == win.h) + return; + + if (embed) { + wc.width = e->xconfigure.width; + wc.height = e->xconfigure.height; + XConfigureWindow(xw.dpy, embed, CWWidth | CWHeight, &wc); + } + + cresize(e->xconfigure.width, e->xconfigure.height); +} + +void +run(void) +{ + XEvent ev; + int w = win.w, h = win.h; + fd_set rfd; + int xfd = XConnectionNumber(xw.dpy), ttyfd, xev, drawing; + struct timespec seltv, *tv, now, lastblink, trigger; + double timeout; + + /* Waiting for window mapping */ + do { + XNextEvent(xw.dpy, &ev); + /* + * This XFilterEvent call is required because of XOpenIM. It + * does filter out the key event and some client message for + * the input method too. + */ + if (XFilterEvent(&ev, None)) + continue; + if (ev.type == ConfigureNotify) { + w = ev.xconfigure.width; + h = ev.xconfigure.height; + } + } while (ev.type != MapNotify); + + ttyfd = ttynew(opt_line, shell, opt_io, opt_cmd); + cresize(w, h); + + for (timeout = -1, drawing = 0, lastblink = (struct timespec){0};;) { + FD_ZERO(&rfd); + FD_SET(ttyfd, &rfd); + FD_SET(xfd, &rfd); + + if (XPending(xw.dpy)) + timeout = 0; /* existing events might not set xfd */ + + seltv.tv_sec = timeout / 1E3; + seltv.tv_nsec = 1E6 * (timeout - 1E3 * seltv.tv_sec); + tv = timeout >= 0 ? &seltv : NULL; + + if (pselect(MAX(xfd, ttyfd)+1, &rfd, NULL, NULL, tv, NULL) < 0) { + if (errno == EINTR) + continue; + die("select failed: %s\n", strerror(errno)); + } + clock_gettime(CLOCK_MONOTONIC, &now); + + if (FD_ISSET(ttyfd, &rfd)) + ttyread(); + + xev = 0; + while (XPending(xw.dpy)) { + xev = 1; + XNextEvent(xw.dpy, &ev); + if (XFilterEvent(&ev, None)) + continue; + if (handler[ev.type]) + (handler[ev.type])(&ev); + } + + /* + * To reduce flicker and tearing, when new content or event + * triggers drawing, we first wait a bit to ensure we got + * everything, and if nothing new arrives - we draw. + * We start with trying to wait minlatency ms. If more content + * arrives sooner, we retry with shorter and shorter periods, + * and eventually draw even without idle after maxlatency ms. + * Typically this results in low latency while interacting, + * maximum latency intervals during `cat huge.txt`, and perfect + * sync with periodic updates from animations/key-repeats/etc. + */ + if (FD_ISSET(ttyfd, &rfd) || xev) + { + if (!drawing) { + trigger = now; + drawing = 1; + } + timeout = (maxlatency - TIMEDIFF(now, trigger)) \ + / maxlatency * minlatency; + if (timeout > 0) + continue; /* we have time, try to find idle */ + } + + /* idle detected or maxlatency exhausted -> draw */ + timeout = -1; + if (blinktimeout && tattrset(ATTR_BLINK)) + { + timeout = blinktimeout - TIMEDIFF(now, lastblink); + if (timeout <= 0) { + if (-timeout > blinktimeout) /* start visible */ + win.mode |= MODE_BLINK; + win.mode ^= MODE_BLINK; + tsetdirtattr(ATTR_BLINK); + lastblink = now; + timeout = blinktimeout; + } + } + + if (bellon) { + bellon++; + bellon %= 3; + MODBIT(win.mode, !IS_SET(MODE_REVERSE), MODE_REVERSE); + redraw(); + } + else + draw(); + XFlush(xw.dpy); + drawing = 0; + } +} + +void +usage(void) +{ + die("usage: %s [-aiv] [-c class]" + " [-f font] [-g geometry]" + " [-n name] [-o file]\n" + " [-T title] [-t title] [-w windowid]" + " [[-e] command [args ...]]\n" + " %s [-aiv] [-c class]" + " [-f font] [-g geometry]" + " [-n name] [-o file]\n" + " [-T title] [-t title] [-w windowid] -l line" + " [stty_args ...]\n", argv0, argv0); +} + +int +main(int argc, char *argv[]) +{ + xw.l = xw.t = 0; + xw.isfixed = False; + xsetcursor(cursorshape); + + ARGBEGIN { + case 'a': + allowaltscreen = 0; + break; + case 'A': + opt_alpha = EARGF(usage()); + break; + case 'c': + opt_class = EARGF(usage()); + break; + case 'e': + if (argc > 0) + --argc, ++argv; + goto run; + case 'f': + opt_font = EARGF(usage()); + break; + case 'g': + xw.gm = XParseGeometry(EARGF(usage()), + &xw.l, &xw.t, &cols, &rows); + break; + case 'i': + xw.isfixed = 1; + break; + case 'o': + opt_io = EARGF(usage()); + break; + case 'l': + opt_line = EARGF(usage()); + break; + case 'n': + opt_name = EARGF(usage()); + break; + case 't': + case 'T': + opt_title = EARGF(usage()); + break; + case 'w': + opt_embed = EARGF(usage()); + break; + case 'v': + die("%s " VERSION "\n", argv0); + break; + default: + usage(); + } ARGEND; + +run: + if (argc > 0) /* eat all remaining arguments */ + opt_cmd = argv; + + if (!opt_title) + opt_title = (opt_line || !opt_cmd) ? "st" : opt_cmd[0]; + + setlocale(LC_CTYPE, ""); + XSetLocaleModifiers(""); + + cols = MAX(cols, 1); + rows = MAX(rows, 1); + tnew(cols, rows); + xinit(cols, rows); + xsetenv(); + selinit(); + run(); + + return 0; +} diff --git a/vilst/x.o b/vilst/x.o new file mode 100644 index 0000000000000000000000000000000000000000..c8cd48930443ff9521ba5e45763a15cf20a13052 GIT binary patch literal 95168 zcmeFa3wTu3^)`Mc2^ucu1VtMa>!?Ew3Yb8EL{Kwi0%s(FNCHGbA>;zlkfg~(K&S>M zQBTJ~YHe%#(@O8wTCvrN;w=exZ8c)O-wK9G1g9$G)cx5 z^YnmWSUUzuz%U-B6kBR)#+j$L3Cuh_->||TrCN~-D7=sU@V%DIYVQsC^||V>>Ch&-qU6$FhKa|ALGGD4? z@6YZP!Jxg(qU76=TxrDKE-CE-uZY`?k`+bke8Y;QHnMjY*&h_yu_F7RAf)u;ke;CE zSkePi?2kup5-dhh9MVemk!EjEG~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