aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.chezmoiroot1
-rw-r--r--.config/BetterDiscord/themes/HorizontalServerList.theme.css20
-rw-r--r--.config/BetterDiscord/themes/flat.theme.css45
-rw-r--r--.config/fcitx5/conf/notifications.conf3
l---------.config/fzmp/conf1
-rw-r--r--.config/gdb/gdbinit2
-rw-r--r--.config/git/config##template35
-rw-r--r--.config/gtk-4.0/env5
l---------.config/jellyfin-mpv-shim/input.conf1
l---------.config/jellyfin-mpv-shim/scripts/copy-subs.lua1
l---------.config/khal/config.sh1
l---------.config/khard/config.sh1
-rw-r--r--.config/kitty/kitty.conf14
-rw-r--r--.config/latexmk/latexmkrc4
-rw-r--r--.config/mozc/user_dictionary.dbbin315 -> 0 bytes
-rw-r--r--.config/mpd/mpd.conf##default23
-rw-r--r--.config/mpd/mpd.conf##hostname.superesc59
-rw-r--r--.config/pam-gnupg##template2
-rw-r--r--.config/pipewire/pipewire.conf.d/50-bitrate.conf6
l---------.config/systemd/user/default.target.wants/goimapnotify@pipeframe.service1
l---------.config/systemd/user/default.target.wants/mpd.service1
l---------.config/systemd/user/default.target.wants/pipewire-pulse.service1
l---------.config/systemd/user/default.target.wants/pipewire.service1
l---------.config/systemd/user/pipewire.service.wants/wireplumber.service1
l---------.config/systemd/user/pipewire.service.wants/wireplumber@loek.service1
l---------.config/systemd/user/sockets.target.wants/pipewire-pulse.socket1
l---------.config/systemd/user/sockets.target.wants/pipewire.socket1
l---------.config/systemd/user/timers.target.wants/mbsync.timer1
-rw-r--r--.config/wgetrc##template1
-rw-r--r--.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf28
-rw-r--r--.config/yadm/config3
-rwxr-xr-x.config/yadm/hooks/post_pull2
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf6
-rw-r--r--.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf3
-rw-r--r--.local/share/Anki2/addons21/mode/__init__.py18
-rwxr-xr-x.local/share/bin/=2
-rwxr-xr-x.local/share/bin/brave8
-rwxr-xr-x.local/share/bin/fork2
-rwxr-xr-x.local/share/bin/labels2lrc13
-rwxr-xr-x.local/share/bin/mk53
l---------.local/share/bin/mode1
-rwxr-xr-x.local/share/bin/qrclip2
-rwxr-xr-x.local/share/bin/reload2
-rwxr-xr-x.local/share/bin/screenrecord8
l---------.local/share/bin/sh1
-rw-r--r--.local/share/gnupg/gpg-agent.conf2
-rwxr-xr-x.local/share/mode/reload.d/fcitx53
-rwxr-xr-x.local/share/mode/switch.d/wall2
l---------.local/share/mode/themes/dark1
l---------.local/share/mode/themes/light1
l---------.local/share/pass-extensions/dir.bash1
l---------.local/share/pass-extensions/dupes.bash1
-rwxr-xr-x.local/share/pass-extensions/exit.bash2
-rwxr-xr-x.local/share/pass-extensions/g.bash2
l---------.zshenv1
-rw-r--r--home/.chezmoiignore3
-rw-r--r--home/dot_config/BetterDiscord/data/stable/custom.css (renamed from .config/BetterDiscord/data/stable/custom.css)0
-rw-r--r--home/dot_config/BetterDiscord/data/stable/plugins.json (renamed from .config/BetterDiscord/data/stable/plugins.json)0
-rw-r--r--home/dot_config/BetterDiscord/data/stable/settings.json (renamed from .config/BetterDiscord/data/stable/settings.json)11
-rw-r--r--home/dot_config/BetterDiscord/data/stable/themes.json (renamed from .config/BetterDiscord/data/stable/themes.json)0
-rw-r--r--home/dot_config/BetterDiscord/themes/flat.theme.css580
-rw-r--r--home/dot_config/X11/base (renamed from .config/X11/base)0
-rw-r--r--home/dot_config/bat/config (renamed from .config/bat/config)0
-rw-r--r--home/dot_config/clangd/config.yaml (renamed from .config/clangd/config.yaml)4
-rw-r--r--home/dot_config/coc/extensions/package.json (renamed from .config/coc/extensions/package.json)15
-rw-r--r--home/dot_config/coc/extensions/run_once_bootstrap.sh.tmpl14
-rw-r--r--home/dot_config/dircolors (renamed from .config/dircolors)0
-rw-r--r--home/dot_config/dunst/base (renamed from .config/dunst/base)0
-rw-r--r--home/dot_config/fcitx5/conf/classicui.conf (renamed from .config/fcitx5/conf/classicui.conf)8
-rw-r--r--home/dot_config/fcitx5/conf/clipboard.conf8
-rw-r--r--home/dot_config/fcitx5/conf/imselector.conf (renamed from .config/fcitx5/conf/imselector.conf)0
-rw-r--r--home/dot_config/fcitx5/conf/mozc.conf (renamed from .config/fcitx5/conf/mozc.conf)0
-rw-r--r--home/dot_config/fcitx5/conf/private_notifications.conf3
-rw-r--r--home/dot_config/fcitx5/conf/quickphrase.conf10
-rw-r--r--home/dot_config/fcitx5/conf/xcb.conf5
-rw-r--r--home/dot_config/fcitx5/conf/xim.conf3
-rw-r--r--home/dot_config/fcitx5/config (renamed from .config/fcitx5/config)2
-rw-r--r--home/dot_config/fcitx5/private_profile (renamed from .config/fcitx5/profile)6
-rw-r--r--home/dot_config/firefox/chrome/userChrome.css (renamed from .config/firefox/chrome/userChrome.css)16
-rw-r--r--home/dot_config/firefox/user.js (renamed from .config/firefox/user.js)29
-rw-r--r--home/dot_config/flashfocus/flashfocus.yml (renamed from .config/flashfocus/flashfocus.yml)0
-rw-r--r--home/dot_config/fontconfig/conf.d/10-inter-features.conf (renamed from .config/fontconfig/conf.d/10-inter-features.conf)0
-rw-r--r--home/dot_config/fontconfig/conf.d/10-sub-pixel-rgb.conf (renamed from .config/fontconfig/conf.d/10-sub-pixel-rgb.conf)0
-rw-r--r--home/dot_config/fontconfig/fonts.conf (renamed from .config/fontconfig/fonts.conf)2
-rw-r--r--home/dot_config/foot/foot.ini.tmpl6
-rw-r--r--home/dot_config/fzmp/symlink_conf1
-rw-r--r--home/dot_config/gdb/gdbearlyinit (renamed from .config/gdb/gdbearlyinit)0
-rw-r--r--home/dot_config/gdb/gdbinit31
-rw-r--r--home/dot_config/gdb/gdbinit.py52
-rw-r--r--home/dot_config/git/config.tmpl63
-rw-r--r--home/dot_config/git/excludes2
-rw-r--r--home/dot_config/gtk-3.0/settings.ini (renamed from .config/gtk-3.0/settings.ini)0
-rw-r--r--home/dot_config/gtk-4.0/env6
-rw-r--r--home/dot_config/i3/config.tmpl (renamed from .config/i3/config##template)14
-rw-r--r--[-rwxr-xr-x]home/dot_config/i3/executable_autostart (renamed from .config/i3/autostart##template)10
-rw-r--r--home/dot_config/imapnotify/pipeframe.conf (renamed from .config/imapnotify/pipeframe.conf)0
-rw-r--r--home/dot_config/inputrc8
-rw-r--r--home/dot_config/jellyfin-mpv-shim/mpv.conf.tmpl (renamed from .config/jellyfin-mpv-shim/mpv.conf##template)3
-rw-r--r--home/dot_config/jellyfin-mpv-shim/scripts/set-lights.lua (renamed from .config/jellyfin-mpv-shim/scripts/set-lights.lua)0
-rw-r--r--home/dot_config/jellyfin-mpv-shim/scripts/symlink_copy-subs.lua1
-rw-r--r--home/dot_config/jellyfin-mpv-shim/symlink_input.conf1
-rw-r--r--home/dot_config/khal/base (renamed from .config/khal/base)0
-rw-r--r--[-rwxr-xr-x]home/dot_config/khal/executable_config_gen (renamed from .config/khal/config_gen)2
-rw-r--r--home/dot_config/khal/symlink_config.sh1
-rw-r--r--home/dot_config/khard/base (renamed from .config/khard/base)0
-rw-r--r--[-rwxr-xr-x]home/dot_config/khard/executable_config_gen (renamed from .config/khard/config_gen)2
-rw-r--r--home/dot_config/khard/symlink_config.sh1
-rw-r--r--home/dot_config/kicad/kicad_common22
-rw-r--r--home/dot_config/kitty/kitty.conf45
-rw-r--r--home/dot_config/kitty/symlink_kitty.app.icns1
-rw-r--r--home/dot_config/kwalletrc4
-rw-r--r--home/dot_config/latexmk/latexmkrc1
-rw-r--r--home/dot_config/lf/lfrc (renamed from .config/lf/lfrc)2
-rw-r--r--home/dot_config/mailcap (renamed from .config/mailcap)0
-rw-r--r--home/dot_config/mbsyncrc (renamed from .config/mbsyncrc)0
-rw-r--r--home/dot_config/mozc/config1.dbbin0 -> 2047 bytes
-rw-r--r--home/dot_config/mozc/dot_gitattributes1
-rw-r--r--home/dot_config/mozc/keymap.tsv (renamed from .config/mozc/keymap.tsv)0
-rw-r--r--home/dot_config/mozc/user_dictionary.dbbin0 -> 486 bytes
-rw-r--r--home/dot_config/mpcplus/fzmp.conf (renamed from .config/mpcplus/fzmp.conf)0
-rw-r--r--home/dot_config/mpd/mpd.conf.tmpl63
-rw-r--r--home/dot_config/mpv/input.conf (renamed from .config/mpv/input.conf)3
-rw-r--r--home/dot_config/mpv/mpv.conf (renamed from .config/mpv/mpv.conf)3
-rw-r--r--home/dot_config/mpv/scripts/copy-subs.lua (renamed from .config/mpv/scripts/copy-subs.lua)2
-rw-r--r--home/dot_config/ncmpcpp/bindings (renamed from .config/ncmpcpp/bindings)0
-rw-r--r--home/dot_config/ncmpcpp/config.tmpl (renamed from .config/ncmpcpp/config##template)22
-rw-r--r--home/dot_config/neomutt/neomuttrc (renamed from .config/neomutt/neomuttrc)2
-rw-r--r--home/dot_config/neovide/config.toml (renamed from .config/neovide/config.toml)0
-rw-r--r--home/dot_config/npm/npmrc.tmpl1
-rw-r--r--home/dot_config/nvim/coc-settings.json (renamed from .config/nvim/coc-settings.json)4
-rw-r--r--home/dot_config/nvim/color-tweaks.vim (renamed from .config/nvim/color-tweaks.vim)2
-rw-r--r--home/dot_config/nvim/ftplugin/tex.vim (renamed from .config/nvim/ftplugin/tex.vim)0
-rw-r--r--home/dot_config/nvim/init.vim (renamed from .config/nvim/init.vim)162
-rw-r--r--home/dot_config/nvim/mode.vim (renamed from .config/nvim/mode.vim)0
-rw-r--r--home/dot_config/nvim/run_once_bootstrap.sh.tmpl11
-rw-r--r--home/dot_config/pam-gnupg.tmpl4
-rw-r--r--home/dot_config/picom.conf (renamed from .config/picom.conf)39
-rw-r--r--home/dot_config/pip/user.conf6
-rw-r--r--home/dot_config/pipewire/pipewire.conf.d/50-bitrate.conf5
-rw-r--r--home/dot_config/poke/pokerc.conf7
-rw-r--r--home/dot_config/polybar/config.ini.tmpl (renamed from .config/polybar/config.ini##template)12
-rw-r--r--home/dot_config/private_homebrew/brew.env5
-rw-r--r--home/dot_config/private_user-dirs.dirs (renamed from .config/user-dirs.dirs)1
-rw-r--r--home/dot_config/ranger/rc.conf (renamed from .config/ranger/rc.conf)0
-rw-r--r--home/dot_config/rofi-pass/config (renamed from .config/rofi-pass/config)3
-rw-r--r--home/dot_config/rofi-pass/rofi.rasi (renamed from .config/rofi-pass/rofi.rasi)0
-rw-r--r--home/dot_config/rofi/config.rasi.tmpl (renamed from .config/rofi/config.rasi##template)5
-rw-r--r--home/dot_config/run_once_update_user_dirs.sh.tmpl9
-rw-r--r--home/dot_config/skhd/skhdrc8
-rw-r--r--[-rwxr-xr-x]home/dot_config/sxiv/exec/executable_image-info (renamed from .config/sxiv/exec/image-info)2
-rw-r--r--home/dot_config/systemd/user/default.target.wants/symlink_goimapnotify@pipeframe.service1
-rw-r--r--home/dot_config/systemd/user/default.target.wants/symlink_mpd.service1
-rw-r--r--home/dot_config/systemd/user/default.target.wants/symlink_pipewire-pulse.service1
-rw-r--r--home/dot_config/systemd/user/default.target.wants/symlink_pipewire.service1
-rw-r--r--home/dot_config/systemd/user/mbsync.service (renamed from .config/systemd/user/mbsync.service)0
-rw-r--r--home/dot_config/systemd/user/mbsync.timer (renamed from .config/systemd/user/mbsync.timer)0
-rw-r--r--home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber.service1
-rw-r--r--home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber@loek.service1
-rw-r--r--home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire-pulse.socket1
-rw-r--r--home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire.socket1
-rw-r--r--home/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer1
-rw-r--r--home/dot_config/todoman/config.py5
-rw-r--r--home/dot_config/vdirsyncer/config.sh.example (renamed from .config/vdirsyncer/config.sh.example)2
-rw-r--r--[-rwxr-xr-x]home/dot_config/vdirsyncer/executable_config_gen (renamed from .config/vdirsyncer/config_gen)2
-rw-r--r--home/dot_config/wgetrc.tmpl1
-rw-r--r--home/dot_config/winapps/winapps.conf15
-rw-r--r--home/dot_config/wireplumber/wireplumber.conf.d/50-bluez.conf5
-rw-r--r--home/dot_config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf30
-rw-r--r--home/dot_config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf (renamed from .config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf)0
-rw-r--r--home/dot_config/xbindkeys/main (renamed from .config/xbindkeys/main)11
-rw-r--r--home/dot_config/xsettingsd/xsettingsd.conf4
-rw-r--r--[-rwxr-xr-x]home/dot_config/yadm/executable_bootstrap (renamed from .config/yadm/bootstrap)12
-rw-r--r--[-rwxr-xr-x]home/dot_config/yadm/executable_install-arch (renamed from .config/yadm/install-arch)5
-rw-r--r--home/dot_config/yadm/lib/bootstrap (renamed from .config/yadm/lib/bootstrap)8
-rw-r--r--home/dot_config/yadm/packages-arch (renamed from .config/yadm/packages-arch)12
-rw-r--r--[-rwxr-xr-x]home/dot_config/yadm/root/executable_bootstrap (renamed from .config/yadm/root/bootstrap)14
-rw-r--r--home/dot_config/zathura/zathurarc (renamed from .config/zathura/zathurarc)9
-rw-r--r--home/dot_local/.chezmoiexternal.yaml.tmpl6
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/BottomBar.css (renamed from .local/share/Anki2/addons21/308574457/user_files/BottomBar.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/DeckBrowser.css (renamed from .local/share/Anki2/addons21/308574457/user_files/DeckBrowser.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/Editor.css (renamed from .local/share/Anki2/addons21/308574457/user_files/Editor.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/TopToolbar.css (renamed from .local/share/Anki2/addons21/308574457/user_files/TopToolbar.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/empty_CardLayout.css (renamed from .local/share/Anki2/addons21/308574457/user_files/CardLayout.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/empty_Overview.css (renamed from .local/share/Anki2/addons21/308574457/user_files/Overview.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/empty_Reviewer.css (renamed from .local/share/Anki2/addons21/308574457/user_files/Reviewer.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/empty_ReviewerBottomBar.css (renamed from .local/share/Anki2/addons21/308574457/user_files/ReviewerBottomBar.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/empty_legacy.css (renamed from .local/share/Anki2/addons21/308574457/user_files/legacy.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/308574457/user_files/global.css (renamed from .local/share/Anki2/addons21/308574457/user_files/global.css)0
-rw-r--r--home/dot_local/share/Anki2/addons21/mode/__init__.py26
-rw-r--r--home/dot_local/share/Anki2/gldriver61
-rw-r--r--home/dot_local/share/applications/addtorrent.desktop (renamed from .local/share/applications/addtorrent.desktop)0
-rw-r--r--home/dot_local/share/applications/discord.desktop (renamed from .local/share/applications/discord.desktop)0
-rw-r--r--home/dot_local/share/applications/mozc-dictionary.desktop11
-rw-r--r--home/dot_local/share/applications/mozc-settings.desktop11
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_16 (renamed from .local/share/bin/16)2
-rw-r--r--home/dot_local/share/bin/executable_=45
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_addtoqueue (renamed from .local/share/bin/addtoqueue)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_addtorrent (renamed from .local/share/bin/addtorrent)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_androidwifistore2pass (renamed from .local/share/bin/androidwifistore2pass)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_ansi2polybar (renamed from .local/share/bin/ansi2polybar)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_bgcol (renamed from .local/share/bin/bgcol)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_bootloader (renamed from .local/share/bin/bootloader)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_brightness (renamed from .local/share/bin/brightness)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_caffeine (renamed from .local/share/bin/caffeine)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_cc1080p30 (renamed from .local/share/bin/cc1080p30)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_cc720p60 (renamed from .local/share/bin/cc720p60)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_ccpreview (renamed from .local/share/bin/ccpreview)2
-rw-r--r--home/dot_local/share/bin/executable_clean3
-rwxr-xr-xhome/dot_local/share/bin/executable_copy.tmpl6
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_darkroom (renamed from .local/share/bin/darkroom)2
-rw-r--r--home/dot_local/share/bin/executable_dbg104
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_dbg_xprop (renamed from .local/share/bin/dbg_xprop)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_decsync2plain (renamed from .local/share/bin/decsync2plain)2
-rw-r--r--home/dot_local/share/bin/executable_delta4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_discord (renamed from .local/share/bin/discord)2
-rw-r--r--home/dot_local/share/bin/executable_dox-open31
-rw-r--r--home/dot_local/share/bin/executable_editor2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_extmon (renamed from .local/share/bin/extmon)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_fcitx5-temp-off (renamed from .local/share/bin/fcitx5-temp-off)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_fcitx5-temp-restore (renamed from .local/share/bin/fcitx5-temp-restore)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_ffmpeg-resize (renamed from .local/share/bin/ffmpeg-resize)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_folder2cd (renamed from .local/share/bin/folder2cd)2
-rw-r--r--home/dot_local/share/bin/executable_fontfix39
-rw-r--r--home/dot_local/share/bin/executable_fork.tmpl2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_fv (renamed from .local/share/bin/fv)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_gpg-git.tmpl (renamed from .local/share/bin/gpg-git)6
-rw-r--r--home/dot_local/share/bin/executable_helium-browser5
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_hide (renamed from .local/share/bin/hide)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_icalcat (renamed from .local/share/bin/icalcat)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_installbd (renamed from .local/share/bin/installbd)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_java (renamed from .local/share/bin/java)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_kbindicator (renamed from .local/share/bin/kbindicator)8
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_khal (renamed from .local/share/bin/khal)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_khard (renamed from .local/share/bin/khard)2
-rw-r--r--home/dot_local/share/bin/executable_labels2lrc30
-rw-r--r--home/dot_local/share/bin/executable_latex-doc4
-rw-r--r--home/dot_local/share/bin/executable_lf23
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_lights (renamed from .local/share/bin/lights)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_lock (renamed from .local/share/bin/lock)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_lorem (renamed from .local/share/bin/lorem)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_lrc2labels (renamed from .local/share/bin/lrc2labels)6
-rw-r--r--home/dot_local/share/bin/executable_lsjlink11
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_mbsync (renamed from .local/share/bin/mbsync)2
-rw-r--r--home/dot_local/share/bin/executable_mk87
-rw-r--r--home/dot_local/share/bin/executable_mktags61
-rw-r--r--home/dot_local/share/bin/executable_mozc-config-filter6
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_nginx-dev (renamed from .local/share/bin/nginx-dev)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_open (renamed from .local/share/bin/open)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_panic (renamed from .local/share/bin/panic)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_pause (renamed from .local/share/bin/pause)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_pdfsize (renamed from .local/share/bin/pdfsize)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_pew (renamed from .local/share/bin/pew)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_podcast2m3u (renamed from .local/share/bin/podcast2m3u)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_preview (renamed from .local/share/bin/preview)38
-rw-r--r--home/dot_local/share/bin/executable_prompt33
-rw-r--r--home/dot_local/share/bin/executable_qrclip.tmpl9
-rw-r--r--home/dot_local/share/bin/executable_reload2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_rofi (renamed from .local/share/bin/rofi)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_scene (renamed from .local/share/bin/scene)2
-rw-r--r--home/dot_local/share/bin/executable_screenrecord8
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_screenwatch (renamed from .local/share/bin/screenwatch)2
-rw-r--r--home/dot_local/share/bin/executable_sdk10_compiledb38
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_set-default (renamed from .local/share/bin/set-default)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_setwacom (renamed from .local/share/bin/setwacom)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_single2folder (renamed from .local/share/bin/single2folder)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_spec (renamed from .local/share/bin/spec)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_subrename (renamed from .local/share/bin/subrename)4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_time2tsv (renamed from .local/share/bin/time2tsv)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_timefmt (renamed from .local/share/bin/timefmt)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_timerep (renamed from .local/share/bin/timerep)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_timesum (renamed from .local/share/bin/timesum)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_toetsrooster2ical (renamed from .local/share/bin/toetsrooster2ical)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_vdirsyncer (renamed from .local/share/bin/vdirsyncer)2
-rw-r--r--home/dot_local/share/bin/executable_venvgen47
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_vodchat (renamed from .local/share/bin/vodchat)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_wacommode (renamed from .local/share/bin/wacommode)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_wacomshortcuts (renamed from .local/share/bin/wacomshortcuts)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_wacomtouch (renamed from .local/share/bin/wacomtouch)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_xbindkeys (renamed from .local/share/bin/xbindkeys)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/bin/executable_yt-vod (renamed from .local/share/bin/yt-vod)2
-rw-r--r--home/dot_local/share/bin/symlink_mode1
-rw-r--r--home/dot_local/share/bin/symlink_sh1
-rw-r--r--home/dot_local/share/fcitx5/themes/mode/base.conf (renamed from .local/share/fcitx5/themes/default/base.conf)6
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/executable_mode (renamed from .local/share/mode/mode)32
-rw-r--r--home/dot_local/share/mode/plug.d/10_lib (renamed from .local/share/mode/plug.d/10_lib)2
-rw-r--r--home/dot_local/share/mode/plug.d/20_export_colors (renamed from .local/share/mode/plug.d/20_export_colors)2
-rw-r--r--home/dot_local/share/mode/plug.d/20_export_mode (renamed from .local/share/mode/plug.d/20_export_mode)2
-rw-r--r--home/dot_local/share/mode/plug.d/20_export_vim_theme (renamed from .local/share/mode/plug.d/20_export_vim_theme)2
-rw-r--r--home/dot_local/share/mode/plug.d/50_accent (renamed from .local/share/mode/plug.d/50_accent)2
-rw-r--r--home/dot_local/share/mode/reload.d/brave (renamed from .local/share/mode/reload.d/brave)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/reload.d/executable_dunst (renamed from .local/share/mode/reload.d/dunst)2
-rw-r--r--home/dot_local/share/mode/reload.d/executable_fcitx53
-rw-r--r--home/dot_local/share/mode/reload.d/executable_i32
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/reload.d/executable_nvim (renamed from .local/share/mode/reload.d/nvim)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/reload.d/executable_polybar (renamed from .local/share/mode/reload.d/polybar)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/reload.d/executable_term (renamed from .local/share/mode/reload.d/term)2
-rw-r--r--home/dot_local/share/mode/reload.d/gtk (renamed from .local/share/mode/reload.d/gtk)2
-rw-r--r--home/dot_local/share/mode/run_once_bootstrap.sh.tmpl13
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_anki (renamed from .local/share/mode/switch.d/anki)3
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_chromium (renamed from .local/share/mode/switch.d/chromium)16
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_discord (renamed from .local/share/mode/switch.d/discord)4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_dunst (renamed from .local/share/mode/switch.d/dunst)4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_fcitx5 (renamed from .local/share/mode/switch.d/fcitx5)6
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_gtk (renamed from .local/share/mode/switch.d/gtk)2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_i314
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_kitty (renamed from .local/share/mode/switch.d/kitty)4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_mode (renamed from .local/share/mode/switch.d/mode)4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_polybar (renamed from .local/share/mode/switch.d/polybar)4
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_vim (renamed from .local/share/mode/switch.d/vim)4
-rw-r--r--home/dot_local/share/mode/switch.d/executable_wall2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_xrdb (renamed from .local/share/mode/switch.d/xrdb)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/mode/switch.d/executable_zathura (renamed from .local/share/mode/switch.d/zathura)8
-rw-r--r--home/dot_local/share/mode/themes/github-black (renamed from .local/share/mode/themes/github-black)2
-rw-r--r--home/dot_local/share/mode/themes/github-dark (renamed from .local/share/mode/themes/github-dark)2
-rw-r--r--home/dot_local/share/mode/themes/github-light (renamed from .local/share/mode/themes/github-light)2
-rw-r--r--home/dot_local/share/mode/themes/rose-pine-dawn (renamed from .local/share/mode/themes/rose-pine-dawn)2
-rw-r--r--home/dot_local/share/mode/themes/symlink_dark1
-rw-r--r--home/dot_local/share/mode/themes/symlink_light1
-rw-r--r--home/dot_local/share/mode/themes/xcode-dark (renamed from .local/share/mode/themes/xcode-dark)2
-rw-r--r--home/dot_local/share/oh-my-zsh/themes/loek.zsh-theme (renamed from .local/share/oh-my-zsh/themes/loek.zsh-theme)0
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/pass-extensions/executable_directory.bash (renamed from .local/share/pass-extensions/directory.bash)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/pass-extensions/executable_duplicates.bash (renamed from .local/share/pass-extensions/duplicates.bash)2
-rw-r--r--home/dot_local/share/pass-extensions/executable_exit.bash2
-rw-r--r--home/dot_local/share/pass-extensions/executable_g.bash2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/pass-extensions/executable_names.bash (renamed from .local/share/pass-extensions/names.bash)2
-rw-r--r--[-rwxr-xr-x]home/dot_local/share/pass-extensions/executable_treasure.bash (renamed from .local/share/pass-extensions/treasure.bash)2
-rw-r--r--home/dot_local/share/pass-extensions/symlink_dir.bash1
-rw-r--r--home/dot_local/share/pass-extensions/symlink_dupes.bash1
-rw-r--r--home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl7
-rw-r--r--home/dot_local/share/zsh/site-functions/_fork (renamed from .local/share/oh-my-zsh/completions/_fork)0
-rw-r--r--home/dot_profile (renamed from .profile)63
-rw-r--r--home/dot_zshrc (renamed from .zshrc)49
-rw-r--r--[-rwxr-xr-x]home/executable_dot_xinitrc (renamed from .xinitrc)2
-rw-r--r--home/private_Library/KeyBindings/DefaultKeyBinding.dict12
-rw-r--r--home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl30
-rw-r--r--home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist30
-rw-r--r--home/private_Library/private_Application Support/symlink_Anki21
-rw-r--r--home/private_Library/private_Preferences/.gitattributes1
-rw-r--r--home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist30
-rw-r--r--home/private_dot_ssh/private_config8
-rw-r--r--home/private_dot_ssh/run_once_bootstrap.sh8
-rw-r--r--home/symlink_dot_zshenv1
-rw-r--r--license2
-rw-r--r--readme.md69
-rw-r--r--root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh21
-rw-r--r--root/etc/X11/xorg.conf.d/00-keyboard.conf9
-rw-r--r--root/etc/X11/xorg.conf.d/40-trackpad.conf9
-rw-r--r--root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf (renamed from .config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf)0
-rw-r--r--root/etc/X11/xorg.conf.d/72-wacom-options.conf (renamed from .config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf)0
-rw-r--r--root/etc/X11/xorg.conf.d/90-libinput-logitech.conf8
-rw-r--r--root/etc/X11/xorg.conf.d/90-libinput-wacom.conf (renamed from .config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf)0
-rw-r--r--root/etc/X11/xorg.conf.d/90-wacom-overrides.conf (renamed from .config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf)0
-rw-r--r--root/etc/containers/empty_nodocker0
-rw-r--r--root/etc/default/earlyoom1
-rw-r--r--root/etc/kernel/cmdline1
-rw-r--r--root/etc/libinput/local-overrides.quirks4
-rw-r--r--root/etc/lightdm/executable_autorandr-change5
-rw-r--r--root/etc/lightdm/lightdm-gtk-greeter.conf8
-rw-r--r--root/etc/locale.conf (renamed from .config/yadm/root/etc/locale.conf)0
-rw-r--r--root/etc/locale.gen (renamed from .config/yadm/root/etc/locale.gen)0
-rw-r--r--root/etc/logid.cfg13
-rw-r--r--root/etc/sudoers.d/10-wheel-nopasswd (renamed from .config/yadm/root/etc/sudoers.d/10-wheel-nopasswd)0
-rw-r--r--root/etc/systemd/logind.conf.d/10-laptop-lid.conf4
-rw-r--r--root/etc/udev/hwdb.d/71-logitech-mx3.hwdb3
-rw-r--r--root/etc/udev/rules.d/90-backlight.rules1
-rw-r--r--root/etc/udev/rules.d/99-capture-card.rules3
-rw-r--r--root/etc/xdg/nvim/init.vim2
367 files changed, 2577 insertions, 770 deletions
diff --git a/.chezmoiroot b/.chezmoiroot
new file mode 100644
index 0000000..5e72f75
--- /dev/null
+++ b/.chezmoiroot
@@ -0,0 +1 @@
+home
diff --git a/.config/BetterDiscord/themes/HorizontalServerList.theme.css b/.config/BetterDiscord/themes/HorizontalServerList.theme.css
deleted file mode 100644
index 5b82210..0000000
--- a/.config/BetterDiscord/themes/HorizontalServerList.theme.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * @name Horizontal Server List
- * @author Gibbu#1211
- * @version 2.1.0
- * @invite ZHthyCw
- * @description Moves the server list from the left to the top of Discord. Compatible with Server Folders and most basic transparent themes
- * @source https://github.com/DiscordStyles/HorizontalServerList
- * @website https://www.gibbu.me
-*/
-
-@import url("https://discordstyles.github.io/HorizontalServerList/dist/HorizontalServerList.css");
-
-/* Bottom HorizontalServerList. Simply remove the comments surrounding the @import to enable it. */
-/* @import url("https://discordstyles.github.io/Addons/bottomhsl.css"); */
-
-:root {
- --HSL-server-icon-size: 40px; /* Size of the server icons | DEFAULT: 40px */
- --HSL-server-spacing: 10px; /* Spacing between each server icon | DEFAULT: 10px */
- --HSL-server-direction: column; /* Direct of the server list. | Options: column, column-reverse | DEFAULT: column */
-}
diff --git a/.config/BetterDiscord/themes/flat.theme.css b/.config/BetterDiscord/themes/flat.theme.css
deleted file mode 100644
index d1fa2fe..0000000
--- a/.config/BetterDiscord/themes/flat.theme.css
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * @name flat
- * @author lonkaars
- * @version 0
-*/
-
-/** this is a lazy theme, do not report bugs */
-
-/* debug colors:
-.theme-dark, .theme-light {
- --background-primary: #f0f;
- --background-secondary: #ff0;
- --background-secondary-alt: #ff8;
- --background-tertiary: #0f0;
- --text-primary: #000;
- --text-secondary: #00f;
- --accent: #0ff;
- --accent-alt: #8ff;
- --error: #f00;
- --error-alt: #f88;
-}
-*/
-
-:root, .theme-dark, .theme-light {
- --channeltextarea-background: var(--background-primary);
- --modal-background: var(--background-primary);
- --modal-footer-background: var(--background-secondary);
- --channels-default: var(--text-primary);
- --interactive-muted: var(--text-secondary);
- --interactive-normal: var(--text-primary);
- --channel-icon: var(--text-primary);
- --header-primary: var(--text-primary);
- --header-secondary: var(--text-secondary);
- --brand-experiment: var(--accent);
- --background-floating: var(--background-tertiary);
- --status-danger: var(--error);
- --brand-experiment-360: var(--accent-alt);
- --text-normal: var(--text-primary);
- --input-background: var(--background-tertiary);
- --button-danger-background: var(--error);
- --scrollbar-auto-thumb: var(--background-tertiary);
- --scrollbar-auto-track: var(--background-secondary);
- --background-modifier-selected: var(--background-tertiary);
-}
-
diff --git a/.config/fcitx5/conf/notifications.conf b/.config/fcitx5/conf/notifications.conf
deleted file mode 100644
index 32460db..0000000
--- a/.config/fcitx5/conf/notifications.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-# 隠す通知
-HiddenNotifications=
-
diff --git a/.config/fzmp/conf b/.config/fzmp/conf
deleted file mode 120000
index a51f36d..0000000
--- a/.config/fzmp/conf
+++ /dev/null
@@ -1 +0,0 @@
-../mpcplus/fzmp.conf \ No newline at end of file
diff --git a/.config/gdb/gdbinit b/.config/gdb/gdbinit
deleted file mode 100644
index 7e59573..0000000
--- a/.config/gdb/gdbinit
+++ /dev/null
@@ -1,2 +0,0 @@
-set disassembly-flavor intel
-set debuginfod enabled off
diff --git a/.config/git/config##template b/.config/git/config##template
deleted file mode 100644
index edae109..0000000
--- a/.config/git/config##template
+++ /dev/null
@@ -1,35 +0,0 @@
-[init]
- defaultBranch = master
-[core]
- quotepath = off
-[user]
- email = loek@pipeframe.xyz
- name = Loek Le Blansch
- signingkey = {{ env.GPG_ID_GIT }}
-[commit]
- gpgsign = true
-[gpg]
- program = {{ env.XDG_DATA_HOME }}/bin/gpg-git
-[credential]
- helper = cache --timeout 7200
- helper = store
-[color]
- ui = true
-[filter "lfs"]
- clean = git-lfs clean -- %f
- smudge = git-lfs smudge -- %f
- process = git-lfs filter-process
- required = true
-[pull]
- rebase = false
-[alias]
- adda = add -A
- a = add -A
- c = commit
- s = status
- ps = push
- psa = !git remote | xargs -L1 -P0 -- git push
- pl = pull
- l = log
- d = diff
- cloc = !git ls-files -z | xargs -0 cloc
diff --git a/.config/gtk-4.0/env b/.config/gtk-4.0/env
deleted file mode 100644
index 42b34f5..0000000
--- a/.config/gtk-4.0/env
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-export GTK_THEME="adw-gtk3"
-. "$XDG_CACHE_HOME/mode/state/theme"
-[ "$mode" = "dark" ] && GTK_THEME="$GTK_THEME:dark"
-export GTK_THEME
diff --git a/.config/jellyfin-mpv-shim/input.conf b/.config/jellyfin-mpv-shim/input.conf
deleted file mode 120000
index b614064..0000000
--- a/.config/jellyfin-mpv-shim/input.conf
+++ /dev/null
@@ -1 +0,0 @@
-../mpv/input.conf \ No newline at end of file
diff --git a/.config/jellyfin-mpv-shim/scripts/copy-subs.lua b/.config/jellyfin-mpv-shim/scripts/copy-subs.lua
deleted file mode 120000
index 32536ff..0000000
--- a/.config/jellyfin-mpv-shim/scripts/copy-subs.lua
+++ /dev/null
@@ -1 +0,0 @@
-../../mpv/scripts/copy-subs.lua \ No newline at end of file
diff --git a/.config/khal/config.sh b/.config/khal/config.sh
deleted file mode 120000
index ecf2581..0000000
--- a/.config/khal/config.sh
+++ /dev/null
@@ -1 +0,0 @@
-../vdirsyncer/config.sh \ No newline at end of file
diff --git a/.config/khard/config.sh b/.config/khard/config.sh
deleted file mode 120000
index ecf2581..0000000
--- a/.config/khard/config.sh
+++ /dev/null
@@ -1 +0,0 @@
-../vdirsyncer/config.sh \ No newline at end of file
diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf
deleted file mode 100644
index b3af114..0000000
--- a/.config/kitty/kitty.conf
+++ /dev/null
@@ -1,14 +0,0 @@
-font_size 7.5
-disable_ligatures never
-window_padding_width 10
-placement_strategy top-left
-cursor_shape block
-
-modify_font cell_width 95%
-modify_font cell_height 120%
-modify_font baseline -1
-
-copy_on_select yes
-
-include color.conf
-
diff --git a/.config/latexmk/latexmkrc b/.config/latexmk/latexmkrc
deleted file mode 100644
index ad6c178..0000000
--- a/.config/latexmk/latexmkrc
+++ /dev/null
@@ -1,4 +0,0 @@
-$pdflatex = "xelatex %O %S";
-$pdf_mode = 1;
-$dvi_mode = 0;
-$postscript_mode = 0;
diff --git a/.config/mozc/user_dictionary.db b/.config/mozc/user_dictionary.db
deleted file mode 100644
index 644c695..0000000
--- a/.config/mozc/user_dictionary.db
+++ /dev/null
Binary files differ
diff --git a/.config/mpd/mpd.conf##default b/.config/mpd/mpd.conf##default
deleted file mode 100644
index a374418..0000000
--- a/.config/mpd/mpd.conf##default
+++ /dev/null
@@ -1,23 +0,0 @@
-music_directory "https://media.pipeframe.xyz/music"
-playlist_directory "/mnt/mpd/playlists"
-
-pid_file "/mnt/mpd/mpd.pid"
-state_file "/mnt/mpd/mpdstate"
-
-bind_to_address "*"
-port "6600"
-restore_paused "yes"
-
-replaygain "track"
-replaygain_preamp "0"
-
-database {
- plugin "proxy"
- host "pipeframe.xyz"
-}
-
-audio_output {
- type "pulse"
- name "desktop output"
-}
-
diff --git a/.config/mpd/mpd.conf##hostname.superesc b/.config/mpd/mpd.conf##hostname.superesc
deleted file mode 100644
index 3d96a7f..0000000
--- a/.config/mpd/mpd.conf##hostname.superesc
+++ /dev/null
@@ -1,59 +0,0 @@
-music_directory "/mnt/e/mpd/music"
-playlist_directory "/mnt/e/mpd/playlists"
-
-pid_file "/mnt/e/mpd/mpd.pid"
-state_file "/mnt/e/mpd/mpdstate"
-db_file "/mnt/e/mpd/mpd.db"
-
-auto_update "yes"
-bind_to_address "*"
-port "6600"
-#bind_to_address "/mnt/e/mpd/socket"
-restore_paused "yes"
-
-user "loek"
-group "users"
-
-default_permissions "read,add,control,admin"
-
-replaygain "track"
-replaygain_preamp "0"
-
-# input {
-# plugin "curl"
-# }
-
-audio_output {
- type "pulse"
- name "desktop output"
-}
-
-audio_output {
- type "shout"
- name "icecast mpd stream"
- host "localhost"
- port "8000"
- mount "/mpd.ogg"
- user "source"
- password "sSJKfSicDF8"
- bitrate "320"
- format "48000:24:2"
- encoding "ogg"
- protocol "icecast2"
-}
-
-audio_output {
- type "fifo"
- name "cli-visualizer"
- path "/tmp/mpd.fifo"
- format "44100:16:2"
-}
-
-audio_output {
- type "fifo"
- name "snapfifo"
- path "/tmp/snapfifo"
- format "48000:16:2"
- mixer_type "software"
-}
-
diff --git a/.config/pam-gnupg##template b/.config/pam-gnupg##template
deleted file mode 100644
index 5ad4a0c..0000000
--- a/.config/pam-gnupg##template
+++ /dev/null
@@ -1,2 +0,0 @@
-{{ env.GNUPGHOME }}
-D8D22B94C13557BF2B5A0DCF4AF5A972E2FAF84F
diff --git a/.config/pipewire/pipewire.conf.d/50-bitrate.conf b/.config/pipewire/pipewire.conf.d/50-bitrate.conf
deleted file mode 100644
index f7c4a93..0000000
--- a/.config/pipewire/pipewire.conf.d/50-bitrate.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-context.properties = {
- default.clock.rate = 44100
- default.clock.allowed-rates = [ 44100, 48000, 96000 ]
- default.clock.min-quantum = 16
-}
-
diff --git a/.config/systemd/user/default.target.wants/goimapnotify@pipeframe.service b/.config/systemd/user/default.target.wants/goimapnotify@pipeframe.service
deleted file mode 120000
index 384e75e..0000000
--- a/.config/systemd/user/default.target.wants/goimapnotify@pipeframe.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/goimapnotify@.service \ No newline at end of file
diff --git a/.config/systemd/user/default.target.wants/mpd.service b/.config/systemd/user/default.target.wants/mpd.service
deleted file mode 120000
index 0524f66..0000000
--- a/.config/systemd/user/default.target.wants/mpd.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/mpd.service \ No newline at end of file
diff --git a/.config/systemd/user/default.target.wants/pipewire-pulse.service b/.config/systemd/user/default.target.wants/pipewire-pulse.service
deleted file mode 120000
index f631f69..0000000
--- a/.config/systemd/user/default.target.wants/pipewire-pulse.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/pipewire-pulse.service \ No newline at end of file
diff --git a/.config/systemd/user/default.target.wants/pipewire.service b/.config/systemd/user/default.target.wants/pipewire.service
deleted file mode 120000
index 47f171d..0000000
--- a/.config/systemd/user/default.target.wants/pipewire.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/pipewire.service \ No newline at end of file
diff --git a/.config/systemd/user/pipewire.service.wants/wireplumber.service b/.config/systemd/user/pipewire.service.wants/wireplumber.service
deleted file mode 120000
index a092a62..0000000
--- a/.config/systemd/user/pipewire.service.wants/wireplumber.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/wireplumber.service \ No newline at end of file
diff --git a/.config/systemd/user/pipewire.service.wants/wireplumber@loek.service b/.config/systemd/user/pipewire.service.wants/wireplumber@loek.service
deleted file mode 120000
index 157a49a..0000000
--- a/.config/systemd/user/pipewire.service.wants/wireplumber@loek.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/wireplumber@.service \ No newline at end of file
diff --git a/.config/systemd/user/sockets.target.wants/pipewire-pulse.socket b/.config/systemd/user/sockets.target.wants/pipewire-pulse.socket
deleted file mode 120000
index 45f6209..0000000
--- a/.config/systemd/user/sockets.target.wants/pipewire-pulse.socket
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/pipewire-pulse.socket \ No newline at end of file
diff --git a/.config/systemd/user/sockets.target.wants/pipewire.socket b/.config/systemd/user/sockets.target.wants/pipewire.socket
deleted file mode 120000
index d871d81..0000000
--- a/.config/systemd/user/sockets.target.wants/pipewire.socket
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/pipewire.socket \ No newline at end of file
diff --git a/.config/systemd/user/timers.target.wants/mbsync.timer b/.config/systemd/user/timers.target.wants/mbsync.timer
deleted file mode 120000
index 27dbac1..0000000
--- a/.config/systemd/user/timers.target.wants/mbsync.timer
+++ /dev/null
@@ -1 +0,0 @@
-/home/loek/.config/systemd/user/mbsync.timer \ No newline at end of file
diff --git a/.config/wgetrc##template b/.config/wgetrc##template
deleted file mode 100644
index 0a4a510..0000000
--- a/.config/wgetrc##template
+++ /dev/null
@@ -1 +0,0 @@
-hsts-file = {{ env.XDG_CACHE_HOME }}/wget-hsts
diff --git a/.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf b/.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf
deleted file mode 100644
index d4eebbf..0000000
--- a/.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf
+++ /dev/null
@@ -1,28 +0,0 @@
-monitor.alsa.rules = [
- {
- matches = [
- { node.name = "~alsa_input.*" }
- { node.name = "~alsa_output.*" }
- ]
- actions = {
- update-props = {
- session.suspend-timeout-seconds = 0
- }
- }
- }
-]
-
-monitor.bluez.rules = [
- {
- matches = [
- { node.name = "~bluez_input.*" }
- { node.name = "~bluez_output.*" }
- ]
- actions = {
- update-props = {
- session.suspend-timeout-seconds = 0
- }
- }
- }
-]
-
diff --git a/.config/yadm/config b/.config/yadm/config
deleted file mode 100644
index b2f0cbb..0000000
--- a/.config/yadm/config
+++ /dev/null
@@ -1,3 +0,0 @@
-[yadm]
- auto-private-dirs = false
- auto-alt = false
diff --git a/.config/yadm/hooks/post_pull b/.config/yadm/hooks/post_pull
deleted file mode 100755
index c40a06b..0000000
--- a/.config/yadm/hooks/post_pull
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-[ -n "$GPG_ID_PASSWORD_STORE" ] && pass git pull
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf b/.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf
deleted file mode 100644
index 6c7cfad..0000000
--- a/.config/yadm/root/etc/X11/xorg.conf.d/00-keyboard.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-Section "InputClass"
- Identifier "default keyboard repeat speed"
- MatchIsKeyboard "on"
- Option "AutoRepeat" "250 40"
-EndSection
-
diff --git a/.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf b/.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf
deleted file mode 100644
index 8dae65c..0000000
--- a/.config/yadm/root/etc/lightdm/lightdm-gtk-greeter.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-[greeter]
-theme-name=Skeuos-Blue-Dark
-indicators=~session;~power
diff --git a/.local/share/Anki2/addons21/mode/__init__.py b/.local/share/Anki2/addons21/mode/__init__.py
deleted file mode 100644
index 78d0d58..0000000
--- a/.local/share/Anki2/addons21/mode/__init__.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/python3
-from aqt import mw
-from aqt.utils import tr
-from aqt.theme import Theme
-from os import environ
-from pathlib import Path
-
-THEME_DARK = 2
-THEME_LIGHT = 1
-
-path = Path(environ['XDG_CACHE_HOME'], 'mode/state/mode')
-with path.open() as file:
- mode = file.read().strip()
- if mode == "dark":
- mw.set_theme(Theme(THEME_DARK))
- if mode == "light":
- mw.set_theme(Theme(THEME_LIGHT))
-
diff --git a/.local/share/bin/= b/.local/share/bin/=
deleted file mode 100755
index 59b9b45..0000000
--- a/.local/share/bin/=
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-python3 -c "from math import *; deg = pi / 180; print($*)"
diff --git a/.local/share/bin/brave b/.local/share/bin/brave
deleted file mode 100755
index 1dea360..0000000
--- a/.local/share/bin/brave
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-# the remote debugging is so brave can be hooked into by
-# ~/.local/share/mode/reload.d/brave. this is probaby bad for security if
-# you're not the only user on the system
-# --remote-debugging-port=9222 \
-/usr/bin/brave \
- --load-extension="$XDG_CACHE_HOME/mode/chromium" \
- "$@"
diff --git a/.local/share/bin/fork b/.local/share/bin/fork
deleted file mode 100755
index 63e7541..0000000
--- a/.local/share/bin/fork
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-(setsid "$@" > /dev/null 2> /dev/null &)
diff --git a/.local/share/bin/labels2lrc b/.local/share/bin/labels2lrc
deleted file mode 100755
index 1491dae..0000000
--- a/.local/share/bin/labels2lrc
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-cat "$@" |\
- awk '
-BEGIN { FS = "\t" }
-{
- seconds = $1
- minutes = int(seconds / 60)
- seconds = seconds % 60
- millis = (seconds * 100) % 100
- printf("[%02d:%02d.%02d]%s\n", minutes, seconds, millis, $3)
-}
-'
-
diff --git a/.local/share/bin/mk b/.local/share/bin/mk
deleted file mode 100755
index b7e2b41..0000000
--- a/.local/share/bin/mk
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-progname="$(basename "$0")"
-showmode() {
- mode=" ($1)"
- col=$(( $(tput cols) - $(echo "$mode" | wc -L) + 1 ))
- printf '\e[1A\e['$col'G\e[1;30m%s\e[0m\n' "$mode"
-}
-
-mode_west() {
- showmode 'west'
- [ -z "$*" ] && set -- build
- exec west "$@"
-}
-[ -e "west.yml" ] && mode_west "$@"
-
-mode_cmake() {
- showmode 'cmake'
- builddir="build"
-
- [ "$*" = "clean" ] && exec rm -rf "$builddir"
-
- export CMAKE_GENERATOR="Ninja"
-
- # re-run configuration if fresh or CMakeLists was changed
- if [ ! -e "$builddir/build.ninja" ] ||
- [ "CMakeLists.txt" -nt "$builddir/build.ninja" ] ; then
- cmake --log-level WARNING -B "$builddir"
- fi
-
- exec cmake --build "$builddir" -- "$@"
-}
-[ -e "CMakeLists.txt" ] && mode_cmake "$@"
-
-mode_make() {
- showmode 'make'
- exec make "$@"
-}
-[ -e "makefile" ] && mode_make "$@"
-[ -e "Makefile" ] && mode_make "$@"
-
-mode_latexmk() {
- showmode 'latexmk'
-
- [ "$*" = "clean" ] && exec latexmk -c
-
- exec latexmk "$@"
-}
-[ -e "latexmkrc" ] && mode_latexmk "$@"
-[ -e ".latexmkrc" ] && mode_latexmk "$@"
-
-echo "$progname: unable to determine project build system!" >&2
-exit 1
-
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
deleted file mode 120000
index 5a5c6d9..0000000
--- a/.local/share/bin/mode
+++ /dev/null
@@ -1 +0,0 @@
-../mode/mode \ No newline at end of file
diff --git a/.local/share/bin/qrclip b/.local/share/bin/qrclip
deleted file mode 100755
index 41bdab7..0000000
--- a/.local/share/bin/qrclip
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-maim -usb 4 -c 0,0,0 | zbarimg --raw --quiet -
diff --git a/.local/share/bin/reload b/.local/share/bin/reload
deleted file mode 100755
index 4b87658..0000000
--- a/.local/share/bin/reload
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-i3-msg exit
diff --git a/.local/share/bin/screenrecord b/.local/share/bin/screenrecord
deleted file mode 100755
index d595cc8..0000000
--- a/.local/share/bin/screenrecord
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-exec giph "$@" \
- --framerate=60 \
- --select \
- --bordersize=4 \
- --color=255,255,255 \
- "$(date +'%Y-%m-%d_%H-%M-%S.mp4')"
-
diff --git a/.local/share/bin/sh b/.local/share/bin/sh
deleted file mode 120000
index 3404ce4..0000000
--- a/.local/share/bin/sh
+++ /dev/null
@@ -1 +0,0 @@
-/usr/bin/dash \ No newline at end of file
diff --git a/.local/share/gnupg/gpg-agent.conf b/.local/share/gnupg/gpg-agent.conf
deleted file mode 100644
index b747e5e..0000000
--- a/.local/share/gnupg/gpg-agent.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-allow-preset-passphrase
-max-cache-ttl 604800
diff --git a/.local/share/mode/reload.d/fcitx5 b/.local/share/mode/reload.d/fcitx5
deleted file mode 100755
index cd27698..0000000
--- a/.local/share/mode/reload.d/fcitx5
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-fork fcitx5 -rd
-
diff --git a/.local/share/mode/switch.d/wall b/.local/share/mode/switch.d/wall
deleted file mode 100755
index c5ced92..0000000
--- a/.local/share/mode/switch.d/wall
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-bgcol "$bg"
diff --git a/.local/share/mode/themes/dark b/.local/share/mode/themes/dark
deleted file mode 120000
index 85ffa87..0000000
--- a/.local/share/mode/themes/dark
+++ /dev/null
@@ -1 +0,0 @@
-github-dark \ No newline at end of file
diff --git a/.local/share/mode/themes/light b/.local/share/mode/themes/light
deleted file mode 120000
index 7f41e3e..0000000
--- a/.local/share/mode/themes/light
+++ /dev/null
@@ -1 +0,0 @@
-github-light \ No newline at end of file
diff --git a/.local/share/pass-extensions/dir.bash b/.local/share/pass-extensions/dir.bash
deleted file mode 120000
index 395da23..0000000
--- a/.local/share/pass-extensions/dir.bash
+++ /dev/null
@@ -1 +0,0 @@
-directory.bash \ No newline at end of file
diff --git a/.local/share/pass-extensions/dupes.bash b/.local/share/pass-extensions/dupes.bash
deleted file mode 120000
index 4bbc733..0000000
--- a/.local/share/pass-extensions/dupes.bash
+++ /dev/null
@@ -1 +0,0 @@
-duplicates.bash \ No newline at end of file
diff --git a/.local/share/pass-extensions/exit.bash b/.local/share/pass-extensions/exit.bash
deleted file mode 100755
index 06bd986..0000000
--- a/.local/share/pass-extensions/exit.bash
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-exit 0
diff --git a/.local/share/pass-extensions/g.bash b/.local/share/pass-extensions/g.bash
deleted file mode 100755
index 4ab3ace..0000000
--- a/.local/share/pass-extensions/g.bash
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-exec pass git "$@"
diff --git a/.zshenv b/.zshenv
deleted file mode 120000
index aa7da3a..0000000
--- a/.zshenv
+++ /dev/null
@@ -1 +0,0 @@
-.profile \ No newline at end of file
diff --git a/home/.chezmoiignore b/home/.chezmoiignore
new file mode 100644
index 0000000..c7ea764
--- /dev/null
+++ b/home/.chezmoiignore
@@ -0,0 +1,3 @@
+{{- if ne .chezmoi.os "darwin" }}
+Library
+{{- end }}
diff --git a/.config/BetterDiscord/data/stable/custom.css b/home/dot_config/BetterDiscord/data/stable/custom.css
index c2a6d52..c2a6d52 100644
--- a/.config/BetterDiscord/data/stable/custom.css
+++ b/home/dot_config/BetterDiscord/data/stable/custom.css
diff --git a/.config/BetterDiscord/data/stable/plugins.json b/home/dot_config/BetterDiscord/data/stable/plugins.json
index 9e26dfe..9e26dfe 100644
--- a/.config/BetterDiscord/data/stable/plugins.json
+++ b/home/dot_config/BetterDiscord/data/stable/plugins.json
diff --git a/.config/BetterDiscord/data/stable/settings.json b/home/dot_config/BetterDiscord/data/stable/settings.json
index eb9ab27..bf9a764 100644
--- a/.config/BetterDiscord/data/stable/settings.json
+++ b/home/dot_config/BetterDiscord/data/stable/settings.json
@@ -3,8 +3,9 @@
"voiceDisconnect": false,
"showToasts": true,
"mediaKeys": false,
- "bdContextMenu": true,
- "themeAttributes": true
+ "themeAttributes": true,
+ "notificationPosition": "top-right",
+ "notificationEnabled": true
},
"addons": {
"addonErrors": true,
@@ -23,10 +24,13 @@
"openAction": "settings"
},
"editor": {
+ "theme": "system",
"lineNumbers": true,
"minimap": true,
"hover": true,
"quickSuggestions": true,
+ "insertSpaces": false,
+ "tabSize": 4,
"fontSize": 14,
"renderWhitespace": "selection"
},
@@ -43,6 +47,7 @@
"reactDevTools": false,
"inspectElement": false,
"devToolsWarning": false,
- "recovery": true
+ "recovery": true,
+ "canary": false
}
} \ No newline at end of file
diff --git a/.config/BetterDiscord/data/stable/themes.json b/home/dot_config/BetterDiscord/data/stable/themes.json
index 3afcd03..3afcd03 100644
--- a/.config/BetterDiscord/data/stable/themes.json
+++ b/home/dot_config/BetterDiscord/data/stable/themes.json
diff --git a/home/dot_config/BetterDiscord/themes/flat.theme.css b/home/dot_config/BetterDiscord/themes/flat.theme.css
new file mode 100644
index 0000000..fdac8d1
--- /dev/null
+++ b/home/dot_config/BetterDiscord/themes/flat.theme.css
@@ -0,0 +1,580 @@
+/**
+ * @name flat
+ * @author lonkaars
+ * @version 0
+*/
+
+/** this is a lazy theme, do not report bugs */
+
+.theme-darker {
+
+ --app-frame-border: var(--background-primary) !important;
+ --background-base-low: var(--background-primary) !important;
+ --background-base-lower: var(--background-primary) !important;
+ --background-base-lowest: var(--background-primary) !important;
+ --card-background-default: var(--background-primary) !important;
+ --chat-background-default: var(--background-primary) !important;
+ --background-surface-high: var(--background-primary) !important;
+
+ --background-mod-subtle: var(--background-secondary) !important;
+
+ --background-mod-muted: var(--background-tertiary) !important;
+ --background-mod-normal: var(--background-tertiary) !important;
+ --interactive-background-hover: var(--background-tertiary) !important;
+ --interactive-background-selected: var(--background-tertiary) !important;
+
+ --text-default: var(--text-primary) !important;
+
+ /* --ansi-black: #ff00ff !important; */
+ /* --ansi-blue: #ff00ff !important; */
+ /* --ansi-bright-black: #ff00ff !important; */
+ /* --ansi-bright-blue: #ff00ff !important; */
+ /* --ansi-bright-cyan: #ff00ff !important; */
+ /* --ansi-bright-green: #ff00ff !important; */
+ /* --ansi-bright-magenta: #ff00ff !important; */
+ /* --ansi-bright-red: #ff00ff !important; */
+ /* --ansi-bright-white: #ff00ff !important; */
+ /* --ansi-bright-yellow: #ff00ff !important; */
+ /* --ansi-cyan: #ff00ff !important; */
+ /* --ansi-green: #ff00ff !important; */
+ /* --ansi-magenta: #ff00ff !important; */
+ /* --ansi-red: #ff00ff !important; */
+ /* --ansi-white: #ff00ff !important; */
+ /* --ansi-yellow: #ff00ff !important; */
+ /* --app-frame-background: #ff00ff !important; */
+ /* --app-frame-border: #ff00ff !important; */
+ /* --app-message-embed-secondary-text: #ff00ff !important; */
+ /* --background-accent: #ff00ff !important; */
+ /* --background-brand: #ff00ff !important; */
+ /* --background-code-addition: #ff00ff !important; */
+ /* --background-code-deletion: #ff00ff !important; */
+ /* --background-code: #ff00ff !important; */
+ /* --background-feedback-critical: #ff00ff !important; */
+ /* --background-feedback-info: #ff00ff !important; */
+ /* --background-feedback-notification: #ff00ff !important; */
+ /* --background-feedback-positive: #ff00ff !important; */
+ /* --background-feedback-warning: #ff00ff !important; */
+ /* --background-scrim-lightbox: #ff00ff !important; */
+ /* --background-scrim: #ff00ff !important; */
+ /* --background-secondary-alt: #ff00ff !important; */
+ /* --background-surface-higher: #ff00ff !important; */
+ /* --background-surface-highest: #ff00ff !important; */
+ /* --background-tile-gradient-pink-end: #ff00ff !important; */
+ /* --background-tile-gradient-pink-start: #ff00ff !important; */
+ /* --background-voice-muted: #ff00ff !important; */
+ /* --badge-background-brand: #ff00ff !important; */
+ /* --badge-background-default: #ff00ff !important; */
+ /* --badge-common-background: #ff00ff !important; */
+ /* --badge-common-border: #ff00ff !important; */
+ /* --badge-common-text: #ff00ff !important; */
+ /* --badge-epic-background: #ff00ff !important; */
+ /* --badge-epic-border-gradient-end: #ff00ff !important; */
+ /* --badge-epic-border-gradient-start: #ff00ff !important; */
+ /* --badge-epic-text: #ff00ff !important; */
+ /* --badge-expressive-background-default: #ff00ff !important; */
+ /* --badge-expressive-text-default: #ff00ff !important; */
+ /* --badge-mythic-background: #ff00ff !important; */
+ /* --badge-mythic-border-gradient-end: #ff00ff !important; */
+ /* --badge-mythic-border-gradient-start: #ff00ff !important; */
+ /* --badge-mythic-text: #ff00ff !important; */
+ /* --badge-notification-background: #ff00ff !important; */
+ /* --badge-rare-background: #ff00ff !important; */
+ /* --badge-rare-border-gradient-end: #ff00ff !important; */
+ /* --badge-rare-border-gradient-start: #ff00ff !important; */
+ /* --badge-rare-text: #ff00ff !important; */
+ /* --badge-text-brand: #ff00ff !important; */
+ /* --badge-text-default: #ff00ff !important; */
+ /* --bg-surface-raised: #ff00ff !important; */
+ /* --border-feedback-critical: #ff00ff !important; */
+ /* --border-feedback-info: #ff00ff !important; */
+ /* --border-feedback-positive: #ff00ff !important; */
+ /* --border-feedback-warning: #ff00ff !important; */
+ /* --border-focus: #ff00ff !important; */
+ /* --border-muted: #ff00ff !important; */
+ /* --border-normal: #ff00ff !important; */
+ /* --border-strong: #ff00ff !important; */
+ /* --border-subtle: #ff00ff !important; */
+ /* --border-voice-muted: #ff00ff !important; */
+ /* --button-danger-background-disabled: #ff00ff !important; */
+ /* --button-outline-brand-background-hover: #ff00ff !important; */
+ /* --button-outline-brand-border-active: #ff00ff !important; */
+ /* --button-outline-primary-text: #ff00ff !important; */
+ /* --card-border-default: #ff00ff !important; */
+ /* --card-primary-pressed-bg: #ff00ff !important; */
+ /* --card-secondary-bg: #ff00ff !important; */
+ /* --card-secondary-pressed-bg: #ff00ff !important; */
+ /* --channel-background-default: #ff00ff !important; */
+ /* --channel-icon: #ff00ff !important; */
+ /* --channel-text-area-placeholder: #ff00ff !important; */
+ /* --channels-default: #ff00ff !important; */
+ /* --channeltextarea-background: #ff00ff !important; */
+ /* --chart-brand: #ff00ff !important; */
+ /* --chart-categorical-10: #ff00ff !important; */
+ /* --chart-categorical-1: #ff00ff !important; */
+ /* --chart-categorical-2: #ff00ff !important; */
+ /* --chart-categorical-3: #ff00ff !important; */
+ /* --chart-categorical-4: #ff00ff !important; */
+ /* --chart-categorical-5: #ff00ff !important; */
+ /* --chart-categorical-6: #ff00ff !important; */
+ /* --chart-categorical-7: #ff00ff !important; */
+ /* --chart-categorical-8: #ff00ff !important; */
+ /* --chart-categorical-9: #ff00ff !important; */
+ /* --chart-mono-1: #ff00ff !important; */
+ /* --chart-mono-2: #ff00ff !important; */
+ /* --chart-mono-3: #ff00ff !important; */
+ /* --chart-mono-4: #ff00ff !important; */
+ /* --chart-mono-5: #ff00ff !important; */
+ /* --chart-mono-6: #ff00ff !important; */
+ /* --chart-mono-7: #ff00ff !important; */
+ /* --chart-mono-text-1: #ff00ff !important; */
+ /* --chart-mono-text-2: #ff00ff !important; */
+ /* --chart-mono-text-3: #ff00ff !important; */
+ /* --chart-mono-text-4: #ff00ff !important; */
+ /* --chart-mono-text-5: #ff00ff !important; */
+ /* --chart-mono-text-6: #ff00ff !important; */
+ /* --chart-mono-text-7: #ff00ff !important; */
+ /* --chart-negative: #ff00ff !important; */
+ /* --chart-neutral: #ff00ff !important; */
+ /* --chart-positive: #ff00ff !important; */
+ /* --chat-background-default: #ff00ff !important; */
+ /* --chat-background: #ff00ff !important; */
+ /* --chat-border: #ff00ff !important; */
+ /* --chat-text-muted: #ff00ff !important; */
+ /* --checkbox-background-active: #ff00ff !important; */
+ /* --checkbox-background-default: #ff00ff !important; */
+ /* --checkbox-background-hover: #ff00ff !important; */
+ /* --checkbox-background-selected-default: #ff00ff !important; */
+ /* --checkbox-background-selected-hover: #ff00ff !important; */
+ /* --checkbox-border-active: #ff00ff !important; */
+ /* --checkbox-border-default: #ff00ff !important; */
+ /* --checkbox-border-hover: #ff00ff !important; */
+ /* --checkbox-border-selected-default: #ff00ff !important; */
+ /* --checkbox-border-selected-hover: #ff00ff !important; */
+ /* --checkbox-icon-active: #ff00ff !important; */
+ /* --chip-blurple-dark-background: #ff00ff !important; */
+ /* --chip-blurple-dark-text: #ff00ff !important; */
+ /* --chip-blurple-light-background: #ff00ff !important; */
+ /* --chip-blurple-light-text: #ff00ff !important; */
+ /* --chip-blurple-medium-background: #ff00ff !important; */
+ /* --chip-blurple-medium-text: #ff00ff !important; */
+ /* --chip-gray-dark-background: #ff00ff !important; */
+ /* --chip-gray-dark-text: #ff00ff !important; */
+ /* --chip-gray-light-background: #ff00ff !important; */
+ /* --chip-gray-light-text: #ff00ff !important; */
+ /* --chip-gray-medium-background: #ff00ff !important; */
+ /* --chip-gray-medium-text: #ff00ff !important; */
+ /* --chip-green-dark-background: #ff00ff !important; */
+ /* --chip-green-dark-text: #ff00ff !important; */
+ /* --chip-green-light-background: #ff00ff !important; */
+ /* --chip-green-light-text: #ff00ff !important; */
+ /* --chip-green-medium-background: #ff00ff !important; */
+ /* --chip-green-medium-text: #ff00ff !important; */
+ /* --chip-orange-dark-background: #ff00ff !important; */
+ /* --chip-orange-dark-text: #ff00ff !important; */
+ /* --chip-orange-light-background: #ff00ff !important; */
+ /* --chip-orange-light-text: #ff00ff !important; */
+ /* --chip-orange-medium-background: #ff00ff !important; */
+ /* --chip-orange-medium-text: #ff00ff !important; */
+ /* --chip-pink-dark-background: #ff00ff !important; */
+ /* --chip-pink-dark-text: #ff00ff !important; */
+ /* --chip-pink-light-background: #ff00ff !important; */
+ /* --chip-pink-light-text: #ff00ff !important; */
+ /* --chip-pink-medium-background: #ff00ff !important; */
+ /* --chip-pink-medium-text: #ff00ff !important; */
+ /* --chip-purple-dark-background: #ff00ff !important; */
+ /* --chip-purple-dark-text: #ff00ff !important; */
+ /* --chip-purple-light-background: #ff00ff !important; */
+ /* --chip-purple-light-text: #ff00ff !important; */
+ /* --chip-purple-medium-background: #ff00ff !important; */
+ /* --chip-purple-medium-text: #ff00ff !important; */
+ /* --chip-red-dark-background: #ff00ff !important; */
+ /* --chip-red-dark-text: #ff00ff !important; */
+ /* --chip-red-light-background: #ff00ff !important; */
+ /* --chip-red-light-text: #ff00ff !important; */
+ /* --chip-red-medium-background: #ff00ff !important; */
+ /* --chip-red-medium-text: #ff00ff !important; */
+ /* --chip-yellow-dark-background: #ff00ff !important; */
+ /* --chip-yellow-dark-text: #ff00ff !important; */
+ /* --chip-yellow-light-background: #ff00ff !important; */
+ /* --chip-yellow-light-text: #ff00ff !important; */
+ /* --chip-yellow-medium-background: #ff00ff !important; */
+ /* --chip-yellow-medium-text: #ff00ff !important; */
+ /* --collectibles-tab-gradient-center: #ff00ff !important; */
+ /* --collectibles-tab-gradient-inner: #ff00ff !important; */
+ /* --collectibles-tab-gradient-outer: #ff00ff !important; */
+ /* --content-inventory-media-seekbar-container: #ff00ff !important; */
+ /* --content-inventory-overlay-text-primary: #ff00ff !important; */
+ /* --content-inventory-overlay-text-secondary: #ff00ff !important; */
+ /* --context-menu-backdrop-background: #ff00ff !important; */
+ /* --control-brand-foreground-new: #ff00ff !important; */
+ /* --control-brand-foreground: #ff00ff !important; */
+ /* --control-connected-background-active: #ff00ff !important; */
+ /* --control-connected-background-default: #ff00ff !important; */
+ /* --control-connected-background-hover: #ff00ff !important; */
+ /* --control-connected-border-active: #ff00ff !important; */
+ /* --control-connected-border-default: #ff00ff !important; */
+ /* --control-connected-border-hover: #ff00ff !important; */
+ /* --control-connected-icon-active: #ff00ff !important; */
+ /* --control-connected-icon-default: #ff00ff !important; */
+ /* --control-connected-icon-hover: #ff00ff !important; */
+ /* --control-connected-text-active: #ff00ff !important; */
+ /* --control-connected-text-default: #ff00ff !important; */
+ /* --control-connected-text-hover: #ff00ff !important; */
+ /* --control-critical-primary-background-active: #ff00ff !important; */
+ /* --control-critical-primary-background-default: #ff00ff !important; */
+ /* --control-critical-primary-background-hover: #ff00ff !important; */
+ /* --control-critical-primary-border-active: #ff00ff !important; */
+ /* --control-critical-primary-border-default: #ff00ff !important; */
+ /* --control-critical-primary-border-hover: #ff00ff !important; */
+ /* --control-critical-primary-icon-active: #ff00ff !important; */
+ /* --control-critical-primary-icon-default: #ff00ff !important; */
+ /* --control-critical-primary-icon-hover: #ff00ff !important; */
+ /* --control-critical-primary-text-active: #ff00ff !important; */
+ /* --control-critical-primary-text-default: #ff00ff !important; */
+ /* --control-critical-primary-text-hover: #ff00ff !important; */
+ /* --control-critical-secondary-background-active: #ff00ff !important; */
+ /* --control-critical-secondary-background-default: #ff00ff !important; */
+ /* --control-critical-secondary-background-hover: #ff00ff !important; */
+ /* --control-critical-secondary-border-active: #ff00ff !important; */
+ /* --control-critical-secondary-border-default: #ff00ff !important; */
+ /* --control-critical-secondary-border-hover: #ff00ff !important; */
+ /* --control-critical-secondary-icon-active: #ff00ff !important; */
+ /* --control-critical-secondary-icon-default: #ff00ff !important; */
+ /* --control-critical-secondary-icon-hover: #ff00ff !important; */
+ /* --control-critical-secondary-text-active: #ff00ff !important; */
+ /* --control-critical-secondary-text-default: #ff00ff !important; */
+ /* --control-critical-secondary-text-hover: #ff00ff !important; */
+ /* --control-expressive-background-active: #ff00ff !important; */
+ /* --control-expressive-background-default: #ff00ff !important; */
+ /* --control-expressive-background-hover: #ff00ff !important; */
+ /* --control-expressive-border-active: #ff00ff !important; */
+ /* --control-expressive-border-default: #ff00ff !important; */
+ /* --control-expressive-border-hover: #ff00ff !important; */
+ /* --control-expressive-icon-active: #ff00ff !important; */
+ /* --control-expressive-icon-default: #ff00ff !important; */
+ /* --control-expressive-icon-hover: #ff00ff !important; */
+ /* --control-expressive-text-active: #ff00ff !important; */
+ /* --control-expressive-text-default: #ff00ff !important; */
+ /* --control-expressive-text-hover: #ff00ff !important; */
+ /* --control-icon-only-background-active: #ff00ff !important; */
+ /* --control-icon-only-background-hover: #ff00ff !important; */
+ /* --control-icon-only-border-active: #ff00ff !important; */
+ /* --control-icon-only-border-hover: #ff00ff !important; */
+ /* --control-icon-only-icon-active: #ff00ff !important; */
+ /* --control-icon-only-icon-default: #ff00ff !important; */
+ /* --control-icon-only-icon-hover: #ff00ff !important; */
+ /* --control-overlay-primary-background-active: #ff00ff !important; */
+ /* --control-overlay-primary-background-default: #ff00ff !important; */
+ /* --control-overlay-primary-background-hover: #ff00ff !important; */
+ /* --control-overlay-primary-border-active: #ff00ff !important; */
+ /* --control-overlay-primary-border-default: #ff00ff !important; */
+ /* --control-overlay-primary-border-hover: #ff00ff !important; */
+ /* --control-overlay-primary-icon-active: #ff00ff !important; */
+ /* --control-overlay-primary-icon-default: #ff00ff !important; */
+ /* --control-overlay-primary-icon-hover: #ff00ff !important; */
+ /* --control-overlay-primary-text-active: #ff00ff !important; */
+ /* --control-overlay-primary-text-default: #ff00ff !important; */
+ /* --control-overlay-primary-text-hover: #ff00ff !important; */
+ /* --control-overlay-secondary-background-active: #ff00ff !important; */
+ /* --control-overlay-secondary-background-default: #ff00ff !important; */
+ /* --control-overlay-secondary-background-hover: #ff00ff !important; */
+ /* --control-overlay-secondary-border-active: #ff00ff !important; */
+ /* --control-overlay-secondary-border-default: #ff00ff !important; */
+ /* --control-overlay-secondary-border-hover: #ff00ff !important; */
+ /* --control-overlay-secondary-icon-active: #ff00ff !important; */
+ /* --control-overlay-secondary-icon-default: #ff00ff !important; */
+ /* --control-overlay-secondary-icon-hover: #ff00ff !important; */
+ /* --control-overlay-secondary-text-active: #ff00ff !important; */
+ /* --control-overlay-secondary-text-default: #ff00ff !important; */
+ /* --control-overlay-secondary-text-hover: #ff00ff !important; */
+ /* --control-primary-background-active: #ff00ff !important; */
+ /* --control-primary-background-default: #ff00ff !important; */
+ /* --control-primary-background-hover: #ff00ff !important; */
+ /* --control-primary-border-active: #ff00ff !important; */
+ /* --control-primary-border-default: #ff00ff !important; */
+ /* --control-primary-border-hover: #ff00ff !important; */
+ /* --control-primary-icon-active: #ff00ff !important; */
+ /* --control-primary-icon-default: #ff00ff !important; */
+ /* --control-primary-icon-hover: #ff00ff !important; */
+ /* --control-primary-text-active: #ff00ff !important; */
+ /* --control-primary-text-default: #ff00ff !important; */
+ /* --control-primary-text-hover: #ff00ff !important; */
+ /* --control-secondary-background-active: #ff00ff !important; */
+ /* --control-secondary-background-default: #ff00ff !important; */
+ /* --control-secondary-background-hover: #ff00ff !important; */
+ /* --control-secondary-border-active: #ff00ff !important; */
+ /* --control-secondary-border-default: #ff00ff !important; */
+ /* --control-secondary-border-hover: #ff00ff !important; */
+ /* --control-secondary-icon-active: #ff00ff !important; */
+ /* --control-secondary-icon-default: #ff00ff !important; */
+ /* --control-secondary-icon-hover: #ff00ff !important; */
+ /* --control-secondary-text-active: #ff00ff !important; */
+ /* --control-secondary-text-default: #ff00ff !important; */
+ /* --control-secondary-text-hover: #ff00ff !important; */
+ /* --creator-revenue-icon-gradient-end: #ff00ff !important; */
+ /* --creator-revenue-icon-gradient-start: #ff00ff !important; */
+ /* --creator-revenue-info-box-background: #ff00ff !important; */
+ /* --creator-revenue-info-box-border: #ff00ff !important; */
+ /* --creator-revenue-locked-channel-icon: #ff00ff !important; */
+ /* --creator-revenue-progress-bar: #ff00ff !important; */
+ /* --datepicker-range-background-default: #ff00ff !important; */
+ /* --datepicker-range-background-hover: #ff00ff !important; */
+ /* --embed-background-alternate: #ff00ff !important; */
+ /* --embed-background: #ff00ff !important; */
+ /* --experimental-avatar-embed-bg: #ff00ff !important; */
+ /* --expressive-gradient-blue-end: #ff00ff !important; */
+ /* --expressive-gradient-blue-start: #ff00ff !important; */
+ /* --expressive-gradient-green-end: #ff00ff !important; */
+ /* --expressive-gradient-green-start: #ff00ff !important; */
+ /* --expressive-gradient-nitro-green-end: #ff00ff !important; */
+ /* --expressive-gradient-nitro-green-start: #ff00ff !important; */
+ /* --expressive-gradient-nitro-pink-end: #ff00ff !important; */
+ /* --expressive-gradient-nitro-pink-start: #ff00ff !important; */
+ /* --expressive-gradient-pink-end: #ff00ff !important; */
+ /* --expressive-gradient-pink-start: #ff00ff !important; */
+ /* --expressive-gradient-purple-end: #ff00ff !important; */
+ /* --expressive-gradient-purple-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-bronze-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-bronze-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-diamond-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-diamond-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-emerald-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-emerald-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-gold-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-gold-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-opal-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-opal-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-platinum-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-platinum-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-ruby-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-ruby-start: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-silver-end: #ff00ff !important; */
+ /* --expressive-gradient-tenure-badge-silver-start: #ff00ff !important; */
+ /* --gradient-progress-pill-background: #ff00ff !important; */
+ /* --guild-profile-banner-background-default: #ff00ff !important; */
+ /* --home-background: #ff00ff !important; */
+ /* --icon-default: #ff00ff !important; */
+ /* --icon-feedback-critical: #ff00ff !important; */
+ /* --icon-feedback-info: #ff00ff !important; */
+ /* --icon-feedback-notification: #ff00ff !important; */
+ /* --icon-feedback-positive: #ff00ff !important; */
+ /* --icon-feedback-warning: #ff00ff !important; */
+ /* --icon-invert: #ff00ff !important; */
+ /* --icon-link: #ff00ff !important; */
+ /* --icon-muted: #ff00ff !important; */
+ /* --icon-overlay-dark: #ff00ff !important; */
+ /* --icon-overlay-light: #ff00ff !important; */
+ /* --icon-status-dnd: #ff00ff !important; */
+ /* --icon-status-idle: #ff00ff !important; */
+ /* --icon-status-offline: #ff00ff !important; */
+ /* --icon-status-online: #ff00ff !important; */
+ /* --icon-strong: #ff00ff !important; */
+ /* --icon-subtle: #ff00ff !important; */
+ /* --icon-transparent: #ff00ff !important; */
+ /* --icon-voice-connected: #ff00ff !important; */
+ /* --icon-voice-disconnected: #ff00ff !important; */
+ /* --icon-voice-muted: #ff00ff !important; */
+ /* --icon-voice-speaking: #ff00ff !important; */
+ /* --inlinenotice-border-critical: #ff00ff !important; */
+ /* --inlinenotice-border-info: #ff00ff !important; */
+ /* --inlinenotice-border-positive: #ff00ff !important; */
+ /* --inlinenotice-border-warning: #ff00ff !important; */
+ /* --input-background-default: #ff00ff !important; */
+ /* --input-background-error-default: #ff00ff !important; */
+ /* --input-border-active: #ff00ff !important; */
+ /* --input-border-default: #ff00ff !important; */
+ /* --input-border-error-default: #ff00ff !important; */
+ /* --input-border-hover: #ff00ff !important; */
+ /* --input-border-readonly: #ff00ff !important; */
+ /* --input-icon-default: #ff00ff !important; */
+ /* --input-placeholder-text-default: #ff00ff !important; */
+ /* --input-text-default: #ff00ff !important; */
+ /* --input-text-error-default: #ff00ff !important; */
+ /* --interactive-accent-background-active: #ff00ff !important; */
+ /* --interactive-accent-background-default: #ff00ff !important; */
+ /* --interactive-accent-background-hover: #ff00ff !important; */
+ /* --interactive-accent-background-selected: #ff00ff !important; */
+ /* --interactive-background-active: #ff00ff !important; */
+ /* --interactive-background-hover: #ff00ff !important; */
+ /* --interactive-icon-active: #ff00ff !important; */
+ /* --interactive-icon-default: #ff00ff !important; */
+ /* --interactive-icon-hover: #ff00ff !important; */
+ /* --interactive-muted: #ff00ff !important; */
+ /* --interactive-text-active: #ff00ff !important; */
+ /* --interactive-text-default: #ff00ff !important; */
+ /* --interactive-text-hover: #ff00ff !important; */
+ /* --keyword-highlight-background: #ff00ff !important; */
+ /* --logo-primary: #ff00ff !important; */
+ /* --mention-background: #ff00ff !important; */
+ /* --mention-foreground: #ff00ff !important; */
+ /* --message-automod-background-default: #ff00ff !important; */
+ /* --message-automod-background-hover: #ff00ff !important; */
+ /* --message-background-hover: #ff00ff !important; */
+ /* --message-highlight-background-default: #ff00ff !important; */
+ /* --message-highlight-background-hover: #ff00ff !important; */
+ /* --message-mentioned-background-default: #ff00ff !important; */
+ /* --message-mentioned-background-hover: #ff00ff !important; */
+ /* --mobile-background-scrim-opaque: #ff00ff !important; */
+ /* --mobile-expression-picker-background-default: #ff00ff !important; */
+ /* --mobile-guildbar-icon-default: #ff00ff !important; */
+ /* --mobile-searchbar-gradient-background: #ff00ff !important; */
+ /* --mobile-text-heading-primary: #ff00ff !important; */
+ /* --modal-background: #ff00ff !important; */
+ /* --modal-footer-background: #ff00ff !important; */
+ /* --navigator-header-tint: #ff00ff !important; */
+ /* --nitro-tab-gradient-center: #ff00ff !important; */
+ /* --nitro-tab-gradient-inner-ring: #ff00ff !important; */
+ /* --nitro-tab-gradient-outer-ring: #ff00ff !important; */
+ /* --notice-background-critical: #ff00ff !important; */
+ /* --notice-background-info: #ff00ff !important; */
+ /* --notice-background-positive: #ff00ff !important; */
+ /* --notice-background-warning: #ff00ff !important; */
+ /* --notice-text-critical: #ff00ff !important; */
+ /* --notice-text-info: #ff00ff !important; */
+ /* --notice-text-positive: #ff00ff !important; */
+ /* --notice-text-warning: #ff00ff !important; */
+ /* --overlay-backdrop-lightbox: #ff00ff !important; */
+ /* --panel-bg: #ff00ff !important; */
+ /* --polls-normal-image-background: #ff00ff !important; */
+ /* --polls-victor-fill: #ff00ff !important; */
+ /* --polls-voted-fill: #ff00ff !important; */
+ /* --premium-nitro-pink-text: #ff00ff !important; */
+ /* --profile-gradient-note-background: #ff00ff !important; */
+ /* --profile-gradient-overlay-synced-with-user-theme: #ff00ff !important; */
+ /* --profile-gradient-overlay: #ff00ff !important; */
+ /* --profile-gradient-role-pill-background: #ff00ff !important; */
+ /* --profile-gradient-role-pill-border: #ff00ff !important; */
+ /* --profile-gradient-section-box: #ff00ff !important; */
+ /* --progressbar-indicator-background: #ff00ff !important; */
+ /* --progressbar-track-background: #ff00ff !important; */
+ /* --quest-home-tab-gradient-blurple-center: #ff00ff !important; */
+ /* --quest-home-tab-gradient-blurple-inner: #ff00ff !important; */
+ /* --quest-home-tab-gradient-blurple-outer: #ff00ff !important; */
+ /* --radio-background-active: #ff00ff !important; */
+ /* --radio-background-default: #ff00ff !important; */
+ /* --radio-background-hover: #ff00ff !important; */
+ /* --radio-background-selected-default: #ff00ff !important; */
+ /* --radio-background-selected-hover: #ff00ff !important; */
+ /* --radio-border-active: #ff00ff !important; */
+ /* --radio-border-default: #ff00ff !important; */
+ /* --radio-border-hover: #ff00ff !important; */
+ /* --radio-border-selected-default: #ff00ff !important; */
+ /* --radio-border-selected-hover: #ff00ff !important; */
+ /* --radio-foreground-active: #ff00ff !important; */
+ /* --radio-foreground-default: #ff00ff !important; */
+ /* --radio-foreground-hover: #ff00ff !important; */
+ /* --radio-thumb-background-active: #ff00ff !important; */
+ /* --reaction-background-active: #ff00ff !important; */
+ /* --reaction-background-default: #ff00ff !important; */
+ /* --reaction-background-hover: #ff00ff !important; */
+ /* --reaction-background-reacted-default: #ff00ff !important; */
+ /* --reaction-background-reacted-hover: #ff00ff !important; */
+ /* --reaction-border-active: #ff00ff !important; */
+ /* --reaction-border-default: #ff00ff !important; */
+ /* --reaction-border-hover: #ff00ff !important; */
+ /* --reaction-border-reacted-default: #ff00ff !important; */
+ /* --reaction-text-active: #ff00ff !important; */
+ /* --reaction-text-default: #ff00ff !important; */
+ /* --reaction-text-hover: #ff00ff !important; */
+ /* --reaction-text-reacted-default: #ff00ff !important; */
+ /* --redesign-button-premium-primary-pink-for-gradient: #ff00ff !important; */
+ /* --redesign-button-premium-primary-pressed-background: #ff00ff !important; */
+ /* --redesign-button-premium-primary-purple-for-gradient-2: #ff00ff !important; */
+ /* --redesign-button-premium-primary-purple-for-gradient: #ff00ff !important; */
+ /* --redesign-button-tertiary-background: #ff00ff !important; */
+ /* --redesign-button-tertiary-pressed-background: #ff00ff !important; */
+ /* --redesign-button-tertiary-pressed-text: #ff00ff !important; */
+ /* --redesign-button-tertiary-text: #ff00ff !important; */
+ /* --scrollbar-auto-scrollbar-color-thumb: #ff00ff !important; */
+ /* --scrollbar-auto-scrollbar-color-track: #ff00ff !important; */
+ /* --scrollbar-auto-thumb: #ff00ff !important; */
+ /* --scrollbar-auto-track: #ff00ff !important; */
+ /* --scrollbar-thin-thumb: #ff00ff !important; */
+ /* --scrollbar-thin-track: #ff00ff !important; */
+ /* --slider-track-background: #ff00ff !important; */
+ /* --spine-default: #ff00ff !important; */
+ /* --spoiler-hidden-background-hover: #ff00ff !important; */
+ /* --spoiler-hidden-background: #ff00ff !important; */
+ /* --spoiler-revealed-background: #ff00ff !important; */
+ /* --standard-tab-gradient-center: #ff00ff !important; */
+ /* --standard-tab-gradient-inner-ring: #ff00ff !important; */
+ /* --standard-tab-gradient-outer-ring: #ff00ff !important; */
+ /* --status-danger: #ff00ff !important; */
+ /* --status-online: #ff00ff !important; */
+ /* --status-positive-background: #ff00ff !important; */
+ /* --status-positive-text: #ff00ff !important; */
+ /* --status-positive: #ff00ff !important; */
+ /* --status-speaking: #ff00ff !important; */
+ /* --status-warning-background: #ff00ff !important; */
+ /* --status-warning-text: #ff00ff !important; */
+ /* --status-warning: #ff00ff !important; */
+ /* --steam-review-text-mixed: #ff00ff !important; */
+ /* --steam-review-text-negative: #ff00ff !important; */
+ /* --steam-review-text-positive: #ff00ff !important; */
+ /* --switch-background-active: #ff00ff !important; */
+ /* --switch-background-default: #ff00ff !important; */
+ /* --switch-background-hover: #ff00ff !important; */
+ /* --switch-background-selected-default: #ff00ff !important; */
+ /* --switch-background-selected-hover: #ff00ff !important; */
+ /* --switch-border-default: #ff00ff !important; */
+ /* --switch-border-hover: #ff00ff !important; */
+ /* --switch-border-selected-default: #ff00ff !important; */
+ /* --switch-border-selected-hover: #ff00ff !important; */
+ /* --switch-thumb-background-default: #ff00ff !important; */
+ /* --switch-thumb-background-selected-default: #ff00ff !important; */
+ /* --switch-thumb-icon-active: #ff00ff !important; */
+ /* --switch-thumb-icon-default: #ff00ff !important; */
+ /* --text-brand: #ff00ff !important; */
+ /* --text-code-addition: #ff00ff !important; */
+ /* --text-code-attribute: #ff00ff !important; */
+ /* --text-code-builtin: #ff00ff !important; */
+ /* --text-code-bullet: #ff00ff !important; */
+ /* --text-code-comment: #ff00ff !important; */
+ /* --text-code-decorator: #ff00ff !important; */
+ /* --text-code-deletion: #ff00ff !important; */
+ /* --text-code-error: #ff00ff !important; */
+ /* --text-code-escape: #ff00ff !important; */
+ /* --text-code-keyword: #ff00ff !important; */
+ /* --text-code-link: #ff00ff !important; */
+ /* --text-code-namespace: #ff00ff !important; */
+ /* --text-code-number: #ff00ff !important; */
+ /* --text-code-operator: #ff00ff !important; */
+ /* --text-code-property: #ff00ff !important; */
+ /* --text-code-regexp: #ff00ff !important; */
+ /* --text-code-section: #ff00ff !important; */
+ /* --text-code-string: #ff00ff !important; */
+ /* --text-code-tag: #ff00ff !important; */
+ /* --text-code-title: #ff00ff !important; */
+ /* --text-code-type: #ff00ff !important; */
+ /* --text-code-variable: #ff00ff !important; */
+ /* --text-code: #ff00ff !important; */
+ /* --text-feedback-critical: #ff00ff !important; */
+ /* --text-feedback-info: #ff00ff !important; */
+ /* --text-feedback-positive: #ff00ff !important; */
+ /* --text-feedback-warning: #ff00ff !important; */
+ /* --text-invert: #ff00ff !important; */
+ /* --text-link: #ff00ff !important; */
+ /* --text-muted: #ff00ff !important; */
+ /* --text-overlay-dark: #ff00ff !important; */
+ /* --text-overlay-light: #ff00ff !important; */
+ /* --text-status-dnd: #ff00ff !important; */
+ /* --text-status-idle: #ff00ff !important; */
+ /* --text-status-offline: #ff00ff !important; */
+ /* --text-status-online: #ff00ff !important; */
+ /* --text-strong: #ff00ff !important; */
+ /* --text-subtle: #ff00ff !important; */
+ /* --text-voice-connected: #ff00ff !important; */
+ /* --text-voice-disconnected: #ff00ff !important; */
+ /* --text-voice-speaking: #ff00ff !important; */
+ /* --textbox-markdown-syntax: #ff00ff !important; */
+ /* --thread-channel-spine: #ff00ff !important; */
+ /* --user-profile-activity-toolbar-background: #ff00ff !important; */
+ /* --user-profile-background-hover: #ff00ff !important; */
+ /* --user-profile-border: #ff00ff !important; */
+ /* --user-profile-note-background-focus: #ff00ff !important; */
+ /* --user-profile-overlay-background-hover: #ff00ff !important; */
+ /* --user-profile-overlay-background: #ff00ff !important; */
+ /* --user-profile-toolbar-background: #ff00ff !important; */
+ /* --user-profile-toolbar-border: #ff00ff !important; */
+}
+
diff --git a/.config/X11/base b/home/dot_config/X11/base
index a538320..a538320 100644
--- a/.config/X11/base
+++ b/home/dot_config/X11/base
diff --git a/.config/bat/config b/home/dot_config/bat/config
index dd5778b..dd5778b 100644
--- a/.config/bat/config
+++ b/home/dot_config/bat/config
diff --git a/.config/clangd/config.yaml b/home/dot_config/clangd/config.yaml
index f4fa3e0..17947a1 100644
--- a/.config/clangd/config.yaml
+++ b/home/dot_config/clangd/config.yaml
@@ -1,9 +1,9 @@
CompileFlags:
Add:
- # ignore unknown (gcc) compiler flags
- -Wno-unknown-warning-option
- -Wno-gnu-folding-constant
+ - -fgnuc-version=8.0.0
Remove:
- -m*
- -f*
-
+ BuiltinHeaders: QueryDriver
diff --git a/.config/coc/extensions/package.json b/home/dot_config/coc/extensions/package.json
index d540984..7a5638f 100644
--- a/.config/coc/extensions/package.json
+++ b/home/dot_config/coc/extensions/package.json
@@ -4,18 +4,19 @@
"coc-emmet": ">=1.1.6",
"coc-go": ">=1.3.35",
"coc-html": ">=1.8.0",
- "coc-java": ">=1.15.2",
- "coc-json": ">=1.9.2",
- "coc-python": ">=1.2.13",
- "coc-rust-analyzer": ">=0.80.2",
- "coc-tsserver": ">=2.2.0",
+ "coc-java": ">=1.56.0",
+ "coc-json": ">=1.9.7",
+ "coc-rust-analyzer": ">=0.89.2",
+ "coc-tsserver": ">=2.4.1",
"coc-vimtex": ">=1.1.5",
"coc-lua": ">=2.0.6",
"coc-deno": ">=3.15.0",
"coc-sh": ">=1.2.4",
- "coc-solargraph": ">=1.2.4"
+ "coc-solargraph": ">=1.3.0",
+ "coc-pyright": ">=1.1.412",
+ "coc-cmake": ">=0.2.2"
},
"disabled": [],
"locked": [],
- "lastUpdate": 1743837108306
+ "lastUpdate": 1762931212912
} \ No newline at end of file
diff --git a/home/dot_config/coc/extensions/run_once_bootstrap.sh.tmpl b/home/dot_config/coc/extensions/run_once_bootstrap.sh.tmpl
new file mode 100644
index 0000000..c5c446a
--- /dev/null
+++ b/home/dot_config/coc/extensions/run_once_bootstrap.sh.tmpl
@@ -0,0 +1,14 @@
+#!/usr/bin/env sh
+# vim:ft=sh
+
+# {{ include (joinPath .chezmoi.sourceDir "dot_config/coc/extensions/package.json") | sha1sum }}
+
+[ -z "$(command -v nvim)" ] && exit 0
+[ -z "$(command -v jq)" ] && exit 0
+
+COC_PLUGINS="$(jq --raw-output '.dependencies | keys | join(" ")' {{ joinPath .chezmoi.sourceDir "dot_config/coc/extensions/package.json" | quote }})"
+
+echo "updating coc plugins"
+nvim --headless +"CocInstall -sync $COC_PLUGINS" +qa
+
+exit 0
diff --git a/.config/dircolors b/home/dot_config/dircolors
index 9997fcf..9997fcf 100644
--- a/.config/dircolors
+++ b/home/dot_config/dircolors
diff --git a/.config/dunst/base b/home/dot_config/dunst/base
index 75ae5eb..75ae5eb 100644
--- a/.config/dunst/base
+++ b/home/dot_config/dunst/base
diff --git a/.config/fcitx5/conf/classicui.conf b/home/dot_config/fcitx5/conf/classicui.conf
index 670d3d8..9b98e74 100644
--- a/.config/fcitx5/conf/classicui.conf
+++ b/home/dot_config/fcitx5/conf/classicui.conf
@@ -17,17 +17,17 @@ PreferTextIcon=True
# アイコンにレイアウト名を表示する
ShowLayoutNameInIcon=False
# 入力メソッドの言語を使用してテキストを表示する
-UseInputMethodLanguageToDisplayText=True
+UseInputMethodLanguageToDisplayText=False
# テーマ
-Theme=default
+Theme=mode
# ダークテーマ
-DarkTheme=default-dark
+DarkTheme=mode
# システムのライト/ダーク配色に従う
UseDarkTheme=False
# テーマとデスクトップでサポートされている場合は、システムのアクセントカラーに従う
UseAccentColor=True
# X11 で Per Screen DPI を使用する
-PerScreenDPI=True
+PerScreenDPI=False
# フォント DPI を Wayland で強制する
ForceWaylandDPI=0
# Wayland で分数スケールを有効にする
diff --git a/home/dot_config/fcitx5/conf/clipboard.conf b/home/dot_config/fcitx5/conf/clipboard.conf
new file mode 100644
index 0000000..6a38473
--- /dev/null
+++ b/home/dot_config/fcitx5/conf/clipboard.conf
@@ -0,0 +1,8 @@
+# Paste Primary
+PastePrimaryKey=
+# Number of entries
+Number of entries=30
+
+[TriggerKey]
+0=Control+semicolon
+
diff --git a/.config/fcitx5/conf/imselector.conf b/home/dot_config/fcitx5/conf/imselector.conf
index de02872..de02872 100644
--- a/.config/fcitx5/conf/imselector.conf
+++ b/home/dot_config/fcitx5/conf/imselector.conf
diff --git a/.config/fcitx5/conf/mozc.conf b/home/dot_config/fcitx5/conf/mozc.conf
index 09f0670..09f0670 100644
--- a/.config/fcitx5/conf/mozc.conf
+++ b/home/dot_config/fcitx5/conf/mozc.conf
diff --git a/home/dot_config/fcitx5/conf/private_notifications.conf b/home/dot_config/fcitx5/conf/private_notifications.conf
new file mode 100644
index 0000000..b4fe5d5
--- /dev/null
+++ b/home/dot_config/fcitx5/conf/private_notifications.conf
@@ -0,0 +1,3 @@
+# 隠す通知
+# HiddenNotifications=
+
diff --git a/home/dot_config/fcitx5/conf/quickphrase.conf b/home/dot_config/fcitx5/conf/quickphrase.conf
new file mode 100644
index 0000000..9e49067
--- /dev/null
+++ b/home/dot_config/fcitx5/conf/quickphrase.conf
@@ -0,0 +1,10 @@
+# キーモディファイアーを選択
+Choose Modifier=None
+# スペルチェックを有効にする
+Spell=True
+# フォールバック時のスペルチェック言語
+FallbackSpellLanguage=en
+
+[TriggerKey]
+0=Super+semicolon
+
diff --git a/home/dot_config/fcitx5/conf/xcb.conf b/home/dot_config/fcitx5/conf/xcb.conf
new file mode 100644
index 0000000..642bc03
--- /dev/null
+++ b/home/dot_config/fcitx5/conf/xcb.conf
@@ -0,0 +1,5 @@
+# Allow Overriding System XKB Settings
+Allow Overriding System XKB Settings=True
+# Always set layout to be only group layout
+AlwaysSetToGroupLayout=True
+
diff --git a/home/dot_config/fcitx5/conf/xim.conf b/home/dot_config/fcitx5/conf/xim.conf
new file mode 100644
index 0000000..57abf4b
--- /dev/null
+++ b/home/dot_config/fcitx5/conf/xim.conf
@@ -0,0 +1,3 @@
+# XIM で On The Spot スタイルを使う(再起動が必要)
+UseOnTheSpot=True
+
diff --git a/.config/fcitx5/config b/home/dot_config/fcitx5/config
index 3ae8195..12e7a48 100644
--- a/.config/fcitx5/config
+++ b/home/dot_config/fcitx5/config
@@ -25,6 +25,8 @@ PrevPage=
NextPage=
# 埋め込みプリエディットの切り替え
TogglePreedit=
+# 修飾キーのショートカットをトリガーするための時間制限(ミリ秒)
+ModifierOnlyKeyTimeout=250
[Hotkey/PrevCandidate]
0=Shift+Tab
diff --git a/.config/fcitx5/profile b/home/dot_config/fcitx5/private_profile
index da16aba..55a0a3f 100644
--- a/.config/fcitx5/profile
+++ b/home/dot_config/fcitx5/private_profile
@@ -10,19 +10,19 @@ DefaultIM=mozc
# Name
Name=keyboard-us
# Layout
-Layout=
+# Layout=
[Groups/0/Items/1]
# Name
Name=keyboard-us-intl
# Layout
-Layout=
+# Layout=
[Groups/0/Items/2]
# Name
Name=mozc
# Layout
-Layout=us
+# Layout=
[GroupOrder]
0=Default
diff --git a/.config/firefox/chrome/userChrome.css b/home/dot_config/firefox/chrome/userChrome.css
index 233a1ba..330b18e 100644
--- a/.config/firefox/chrome/userChrome.css
+++ b/home/dot_config/firefox/chrome/userChrome.css
@@ -3,7 +3,10 @@
#appMenu-fxa-status2,
#appMenu-fxa-separator,
#fullscreen-warning,
-.findbar-highlight
+.findbar-highlight,
+#urlbar-searchmode-switcher,
+#translations-button,
+#reader-mode-button
{ display: none !important; }
/* undo shit */
@@ -13,9 +16,12 @@
/* make shit compact */
body { font-size: 10pt; }
-.tab-background {
- min-height: unset !important;
- margin-block: 0 !important;
+.tab-background { margin-block: 0 !important; }
+#TabsToolbar { --toolbarbutton-inner-padding: 8px; }
+:root { --tab-min-height: 24px !important; }
+.tab-label-container {
+ height: unset !important;
+ margin-right: var(--toolbarbutton-inner-padding);
}
.tabbrowser-tab
@@ -29,3 +35,5 @@ body { font-size: 10pt; }
#navigator-toolbox
{ border: none !important; }
+#urlbar-input
+{ padding: 0px 8px !important; }
diff --git a/.config/firefox/user.js b/home/dot_config/firefox/user.js
index 778631e..a18c1e9 100644
--- a/.config/firefox/user.js
+++ b/home/dot_config/firefox/user.js
@@ -2,9 +2,18 @@
user_pref("browser.toolbars.bookmarks.visibility", "never");
user_pref("browser.quitShortcut.disabled", true);
user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", false);
-user_pref("intl.regional_prefs.use_os_locales", true);
user_pref("layout.spellcheckDefault", 0);
+user_pref("findbar.highlightAll", true);
+
+// i know what i'm doing
user_pref("browser.safebrowsing.downloads.enabled", false);
+user_pref("browser.safebrowsing.malware.enabled", false);
+user_pref("browser.safebrowsing.phishing.enabled", false);
+
+// i18n
+user_pref("intl.regional_prefs.use_os_locales", true);
+user_pref("layout.spellcheckDefault", 0);
+user_pref("browser.translations.automaticallyPopup", false);
// privacy
user_pref("signon.rememberSignons", false);
@@ -31,3 +40,21 @@ user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
user_pref("devtools.chrome.enabled", true);
user_pref("devtools.debugger.remote-enabled", true);
+// no first time ux
+user_pref("trailhead.firstrun.didSeeAboutWelcome", true);
+user_pref("app.normandy.first_run", false);
+user_pref("browser.aboutConfig.showWarning", false);
+user_pref("browser.aboutwelcome.didSeeFinalScreen", true);
+user_pref("browser.bookmarks.addedImportButton", true);
+user_pref("browser.bookmarks.restore_default_bookmarks", false);
+
+// no new tab page
+user_pref("browser.newtabpage.enabled", false);
+user_pref("browser.startup.homepage", "chrome://browser/content/blanktab.html");
+
+// fonts
+user_pref("font.default.x-western", "sans-serif");
+user_pref("font.name.monospace.x-western", "monospace");
+user_pref("font.name.sans-serif.x-western", "sans-serif");
+user_pref("font.name.serif.x-western", "serif");
+
diff --git a/.config/flashfocus/flashfocus.yml b/home/dot_config/flashfocus/flashfocus.yml
index 3f6f0e0..3f6f0e0 100644
--- a/.config/flashfocus/flashfocus.yml
+++ b/home/dot_config/flashfocus/flashfocus.yml
diff --git a/.config/fontconfig/conf.d/10-inter-features.conf b/home/dot_config/fontconfig/conf.d/10-inter-features.conf
index 5a641d6..5a641d6 100644
--- a/.config/fontconfig/conf.d/10-inter-features.conf
+++ b/home/dot_config/fontconfig/conf.d/10-inter-features.conf
diff --git a/.config/fontconfig/conf.d/10-sub-pixel-rgb.conf b/home/dot_config/fontconfig/conf.d/10-sub-pixel-rgb.conf
index fcd51f3..fcd51f3 100644
--- a/.config/fontconfig/conf.d/10-sub-pixel-rgb.conf
+++ b/home/dot_config/fontconfig/conf.d/10-sub-pixel-rgb.conf
diff --git a/.config/fontconfig/fonts.conf b/home/dot_config/fontconfig/fonts.conf
index b3897e9..955c797 100644
--- a/.config/fontconfig/fonts.conf
+++ b/home/dot_config/fontconfig/fonts.conf
@@ -12,7 +12,7 @@
</alias>
<alias binding="strong">
<family>monospace</family>
- <prefer><family>JetBrainsMono Nerd Font</family></prefer>
+ <prefer><family>JetBrains Mono</family></prefer>
</alias>
<alias binding="strong">
<family>system-ui</family>
diff --git a/home/dot_config/foot/foot.ini.tmpl b/home/dot_config/foot/foot.ini.tmpl
new file mode 100644
index 0000000..0b7451d
--- /dev/null
+++ b/home/dot_config/foot/foot.ini.tmpl
@@ -0,0 +1,6 @@
+[main]
+line-height = 15px
+pad = 10x10
+font = monospace:size=7.5:antialias=true:autohint=true
+
+include={{ env "XDG_CONFIG_HOME" }}/foot/colors.ini
diff --git a/home/dot_config/fzmp/symlink_conf b/home/dot_config/fzmp/symlink_conf
new file mode 100644
index 0000000..7d048e5
--- /dev/null
+++ b/home/dot_config/fzmp/symlink_conf
@@ -0,0 +1 @@
+../mpcplus/fzmp.conf
diff --git a/.config/gdb/gdbearlyinit b/home/dot_config/gdb/gdbearlyinit
index b73aa96..b73aa96 100644
--- a/.config/gdb/gdbearlyinit
+++ b/home/dot_config/gdb/gdbearlyinit
diff --git a/home/dot_config/gdb/gdbinit b/home/dot_config/gdb/gdbinit
new file mode 100644
index 0000000..a2d1f36
--- /dev/null
+++ b/home/dot_config/gdb/gdbinit
@@ -0,0 +1,31 @@
+# load ./gdbinit.py
+python
+import sys, os
+sys.path.append(os.path.join(os.environ["XDG_CONFIG_HOME"], "gdb"))
+import gdbinit
+end
+
+# preferences
+try set disassembly-flavor intel
+set debuginfod enabled off
+set confirm off
+set extended-prompt \P
+set history save on
+set history size 10000000
+set history remove-duplicates 100
+set style emoji off
+set pagination off
+set output-radix 16
+
+# aliases
+alias reset = monitor reset
+alias erase = monitor flash erase
+
+alias -a -- v8m = arm-v8m
+alias -a -- v8m tz = arm-v8m trustzone
+alias -a -- jlink sv = jlink server
+alias -a -- jlink sv wd = jlink server watchdog
+
+# commands
+alias mk = !mk
+alias ls = !ls
diff --git a/home/dot_config/gdb/gdbinit.py b/home/dot_config/gdb/gdbinit.py
new file mode 100644
index 0000000..7888a37
--- /dev/null
+++ b/home/dot_config/gdb/gdbinit.py
@@ -0,0 +1,52 @@
+import gdb
+import gdb.prompt
+
+from subprocess import check_output
+from os import environ
+
+class TryCommand(gdb.Command):
+ """
+ Try evaluating the argument(s) as a regular GDB command, but do not fail if the command fails.
+ """
+
+ def __init__(self):
+ super().__init__("try", gdb.COMMAND_USER)
+
+ def invoke(self, argument, from_tty):
+ try:
+ gdb.execute(argument)
+ except gdb.error:
+ pass
+
+TryCommand()
+
+def custom_prompt() -> str:
+ try:
+ env = environ
+ env["eo"] = "\\["
+ env["ec"] = "\\]"
+ prompt = check_output(["prompt", "gdb"], text=True, env=env)
+ return prompt
+ except Exception:
+ return "(gdb) "
+
+# add custom prompt ("\P") escape code to extended-prompt
+substitute_prompt = gdb.prompt.substitute_prompt
+def new_substitute_prompt(prompt: str):
+ out = ""
+ escape = False
+ for char in prompt:
+ out += char
+ if not escape:
+ if char == "\\":
+ escape = True
+ continue
+ escape = False
+
+ if char == "P":
+ out = out[:-2] + custom_prompt()
+
+ out = substitute_prompt(out)
+ return out
+
+gdb.prompt.substitute_prompt = new_substitute_prompt
diff --git a/home/dot_config/git/config.tmpl b/home/dot_config/git/config.tmpl
new file mode 100644
index 0000000..51b207f
--- /dev/null
+++ b/home/dot_config/git/config.tmpl
@@ -0,0 +1,63 @@
+[init]
+ defaultBranch = {{ dig "git" "default_branch" "master" . }}
+[core]
+ quotepath = off
+ excludesfile = {{ env "XDG_CONFIG_HOME" }}/git/excludes
+[user]
+ {{- with (dig "git" "email" nil .) }}
+ email = {{ . }}
+ {{- end }}
+ {{- with (dig "git" "name" nil .) }}
+ name = {{ . }}
+ {{- end }}
+ {{- with (dig "git" "gpg_id" nil .) }}
+ signingkey = {{ . }}
+[commit]
+ gpgsign = true
+[gpg]
+ program = {{ env "XDG_DATA_HOME" }}/bin/gpg-git
+ {{- end }}
+[credential]
+ helper = cache --timeout 7200
+ helper = store
+[color]
+ ui = true
+[filter "lfs"]
+ clean = git-lfs clean -- %f
+ smudge = git-lfs smudge -- %f
+ process = git-lfs filter-process
+ required = true
+[pull]
+ rebase = false
+[alias]
+ adda = add -A
+ a = add -A
+ c = commit
+ s = status
+ ps = push
+ psa = !git remote | xargs -L1 -P0 -- git push
+ pl = pull
+ l = log
+ d = diff
+ cloc = !git ls-files -z | xargs -0 cloc
+ conflict = !git diff --name-only --diff-filter=U --relative
+ ec = !git conflict -z | xargs -0 -- $EDITOR
+ ours = !git conflict -z | xargs -0 -- git checkout --ours
+ theirs = !git conflict -z | xargs -0 -- git checkout --theirs
+ nuke = !git reset --hard && git clean -fxd
+[pager]
+ log = delta
+ show = delta
+ diff = delta
+ blame = delta
+[delta]
+ tabs = 2
+ side-by-side = false
+ syntax-theme = base16
+[safe]
+ directory = *
+[diff "mozc_config"]
+ textconv = mozc-config-filter
+[filter "plist"]
+ clean = plutil -convert xml1 -o - -- -
+ smudge = plutil -convert binary1 -o - -- -
diff --git a/home/dot_config/git/excludes b/home/dot_config/git/excludes
new file mode 100644
index 0000000..e2419c8
--- /dev/null
+++ b/home/dot_config/git/excludes
@@ -0,0 +1,2 @@
+.DS_Store
+__MACOSX
diff --git a/.config/gtk-3.0/settings.ini b/home/dot_config/gtk-3.0/settings.ini
index 5c6573f..5c6573f 100644
--- a/.config/gtk-3.0/settings.ini
+++ b/home/dot_config/gtk-3.0/settings.ini
diff --git a/home/dot_config/gtk-4.0/env b/home/dot_config/gtk-4.0/env
new file mode 100644
index 0000000..455d286
--- /dev/null
+++ b/home/dot_config/gtk-4.0/env
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+export GTK_THEME="adw-gtk3"
+mode_state="$XDG_CACHE_HOME/mode/state/theme"
+[ -e "$mode_state" ] && . "$mode_state"
+[ "$mode" = "dark" ] && GTK_THEME="$GTK_THEME:dark"
+export GTK_THEME
diff --git a/.config/i3/config##template b/home/dot_config/i3/config.tmpl
index 66874a0..e0cf678 100644
--- a/.config/i3/config##template
+++ b/home/dot_config/i3/config.tmpl
@@ -7,13 +7,7 @@ set $outer_gaps 0
gaps inner $inner_gaps
gaps outer $outer_gaps
-# border color
-client.focused #262427 #262427 #fdf9f7 #262427 #262427
-client.focused_inactive #121213 #121213 #fdf9f7 #121213 #121213
-client.unfocused #121213 #121213 #fdf9f7 #121213 #121213
-client.urgent #121213 #de9dac #fdf9f7 #de9dac #de9dac
-client.placeholder #000000 #0c0c0c #fdf9f7 #121213 #121213
-client.background #f9ece8
+include color.conf
# Replace window decorations with a border
for_window [class=".*"] border pixel 0
@@ -32,7 +26,7 @@ bindsym $mod+n gaps inner current set -1; gaps outer current set 0
bindsym $mod+d gaps inner current set $inner_gaps; gaps outer current set $outer_gaps;
# Autostart
-exec --no-startup-id "{{ env.XDG_CONFIG_HOME }}/i3/autostart"
+exec --no-startup-id "{{ env "XDG_CONFIG_HOME" }}/i3/autostart"
# split in horizontal orientation
bindsym $mod+bar split h
@@ -85,10 +79,12 @@ for_window [class="steam"] floating enable
for_window [class="RAIL"] floating enable
for_window [class="Conky"] floating enable
for_window [title="Farge"] floating enable
-for_window [title="^\[floating\].*"] floating enable
+for_window [title="^\[floating\].*" tiling_from=auto] floating enable
for_window [window_type=notification] floating enable
for_window [title="JidePopup"] floating enable
for_window [class="Unturned.x86_64"] floating disable
for_window [class="Unturned.x86_64"] fullscreen disable
+for_window [class="Microsoft Windows"] floating enable
+
diff --git a/.config/i3/autostart##template b/home/dot_config/i3/executable_autostart
index 3c61922..1be0771 100755..100644
--- a/.config/i3/autostart##template
+++ b/home/dot_config/i3/executable_autostart
@@ -1,7 +1,7 @@
-#!/bin/sh
+#!/usr/bin/env sh
. "$HOME/.profile"
xrdb -override < "$XDG_CONFIG_HOME/X11/base"
-mode --no-reload restore
+mode --no-reload --no-cfggen restore
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
polybar &
@@ -11,13 +11,13 @@ dunst &
autocutsel -selection CLIPBOARD &
fcitx5 &
xbindkeys --nodaemon &
-{% if yadm.hostname == "thoncc" %}
xdimmer -t 45 -p 3 &
-{% else %}
redshift -l 52:6 &
nicotine --hidden &
desktop2mqtt --config "$XDG_CONFIG_HOME/desktop2mqtt/config.yml" &
-{% endif %}
+light-locker --late-locking --lock-after-screensaver=0 --no-lock-on-suspend --no-lock-on-lid &
+systembus-notify &
+nmpassd &
# auto start lazy script after everything else
[ -x "$HOME/do.sh" ] && "$HOME/do.sh" &
diff --git a/.config/imapnotify/pipeframe.conf b/home/dot_config/imapnotify/pipeframe.conf
index 774236c..774236c 100644
--- a/.config/imapnotify/pipeframe.conf
+++ b/home/dot_config/imapnotify/pipeframe.conf
diff --git a/home/dot_config/inputrc b/home/dot_config/inputrc
new file mode 100644
index 0000000..aa55cba
--- /dev/null
+++ b/home/dot_config/inputrc
@@ -0,0 +1,8 @@
+set show-all-if-ambiguous on
+set completion-ignore-case on
+set colored-completion-prefix on
+set colored-stats on
+set menu-complete-display-prefix on
+
+TAB: menu-complete
+"\e[Z": menu-complete-backward
diff --git a/.config/jellyfin-mpv-shim/mpv.conf##template b/home/dot_config/jellyfin-mpv-shim/mpv.conf.tmpl
index 7b860ab..30a9ccf 100644
--- a/.config/jellyfin-mpv-shim/mpv.conf##template
+++ b/home/dot_config/jellyfin-mpv-shim/mpv.conf.tmpl
@@ -1,4 +1,3 @@
-{% include "../mpv/mpv.conf" %}
-
+{{ include "dot_config/mpv/mpv.conf" }}
# better japanese font for watching with japanese subtitles
sub-font='Hiragino Kaku Gothic ProN'
diff --git a/.config/jellyfin-mpv-shim/scripts/set-lights.lua b/home/dot_config/jellyfin-mpv-shim/scripts/set-lights.lua
index 3a392dc..3a392dc 100644
--- a/.config/jellyfin-mpv-shim/scripts/set-lights.lua
+++ b/home/dot_config/jellyfin-mpv-shim/scripts/set-lights.lua
diff --git a/home/dot_config/jellyfin-mpv-shim/scripts/symlink_copy-subs.lua b/home/dot_config/jellyfin-mpv-shim/scripts/symlink_copy-subs.lua
new file mode 100644
index 0000000..3609faf
--- /dev/null
+++ b/home/dot_config/jellyfin-mpv-shim/scripts/symlink_copy-subs.lua
@@ -0,0 +1 @@
+../../mpv/scripts/copy-subs.lua
diff --git a/home/dot_config/jellyfin-mpv-shim/symlink_input.conf b/home/dot_config/jellyfin-mpv-shim/symlink_input.conf
new file mode 100644
index 0000000..61f879a
--- /dev/null
+++ b/home/dot_config/jellyfin-mpv-shim/symlink_input.conf
@@ -0,0 +1 @@
+../mpv/input.conf
diff --git a/.config/khal/base b/home/dot_config/khal/base
index 2a8238d..2a8238d 100644
--- a/.config/khal/base
+++ b/home/dot_config/khal/base
diff --git a/.config/khal/config_gen b/home/dot_config/khal/executable_config_gen
index 3f982c5..d648fa3 100755..100644
--- a/.config/khal/config_gen
+++ b/home/dot_config/khal/executable_config_gen
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
EXPORT_LIB=y . "$XDG_CONFIG_HOME/vdirsyncer/config_gen"
cat << EOF
diff --git a/home/dot_config/khal/symlink_config.sh b/home/dot_config/khal/symlink_config.sh
new file mode 100644
index 0000000..c47897b
--- /dev/null
+++ b/home/dot_config/khal/symlink_config.sh
@@ -0,0 +1 @@
+../vdirsyncer/config.sh
diff --git a/.config/khard/base b/home/dot_config/khard/base
index 258af81..258af81 100644
--- a/.config/khard/base
+++ b/home/dot_config/khard/base
diff --git a/.config/khard/config_gen b/home/dot_config/khard/executable_config_gen
index 75f59b1..6042a7d 100755..100644
--- a/.config/khard/config_gen
+++ b/home/dot_config/khard/executable_config_gen
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
EXPORT_LIB=y . "$XDG_CONFIG_HOME/vdirsyncer/config_gen"
cat << EOF
diff --git a/home/dot_config/khard/symlink_config.sh b/home/dot_config/khard/symlink_config.sh
new file mode 100644
index 0000000..c47897b
--- /dev/null
+++ b/home/dot_config/khard/symlink_config.sh
@@ -0,0 +1 @@
+../vdirsyncer/config.sh
diff --git a/home/dot_config/kicad/kicad_common b/home/dot_config/kicad/kicad_common
new file mode 100644
index 0000000..4eabfb7
--- /dev/null
+++ b/home/dot_config/kicad/kicad_common
@@ -0,0 +1,22 @@
+UseIconsInMenus=1
+IconScale=-1
+MousewheelPAN=0
+ZoomNoCenter=0
+AutoPAN=1
+OpenGLAntialiasingMode=2
+CairoAntialiasingMode=3
+WorkingDir=/home/loek
+ShowEnvVarWarningDialog=1
+Editor=nvim
+AutoSaveInterval=600
+FileHistorySize=9
+CanvasScale=0
+PdfBrowserName=
+UseSystemBrowser=1
+[EnvironmentVariables]
+KICAD_SYMBOL_DIR=/usr/share/kicad/library
+KICAD_TEMPLATE_DIR=/usr/share/kicad/template
+KICAD_USER_TEMPLATE_DIR=/home/loek/kicad/template
+KIGITHUB=https://github.com/KiCad
+KISYS3DMOD=/usr/share/kicad/modules/packages3d/
+KISYSMOD=/usr/share/kicad/modules
diff --git a/home/dot_config/kitty/kitty.conf b/home/dot_config/kitty/kitty.conf
new file mode 100644
index 0000000..2d1bc9a
--- /dev/null
+++ b/home/dot_config/kitty/kitty.conf
@@ -0,0 +1,45 @@
+font_family JetBrains Mono
+bold_font JetBrains Mono Bold
+italic_font JetBrains Mono Italic
+bold_italic_font JetBrains Mono Bold Italic
+font_size 10
+
+modify_font cell_height 120%
+
+term xterm-256color
+cursor_blink_interval 0
+cursor_shape block
+shell_integration disabled
+resize_debounce_time 0 0
+resize_in_steps yes
+confirm_os_window_close 0
+enable_audio_bell no
+remember_window_position no
+remember_window_size no
+initial_window_width 80c
+initial_window_height 25c
+copy_on_select clipboard
+
+placement_strategy top-left
+window_margin_width 8
+
+map command+option+s no_op
+map command+t no_op
+map command+enter no_op
+map command+shift+d no_op
+map command+shift+w no_op
+map command+w close_os_window
+map command+option+r no_op
+map command+k no_op
+map command+option+k no_op
+map command+control+l no_op
+map command+l no_op
+map command+f no_op
+
+map kitty_mod+t no_op
+map kitty_mod+enter no_op
+map kitty_mod+w no_op
+map kitty_mod+q no_op
+map kitty_mod+delete no_op
+map kitty_mod+slash no_op
+
diff --git a/home/dot_config/kitty/symlink_kitty.app.icns b/home/dot_config/kitty/symlink_kitty.app.icns
new file mode 100644
index 0000000..dcd4e5e
--- /dev/null
+++ b/home/dot_config/kitty/symlink_kitty.app.icns
@@ -0,0 +1 @@
+/System/Applications/Utilities/Terminal.app/Contents/Resources/Terminal.icns
diff --git a/home/dot_config/kwalletrc b/home/dot_config/kwalletrc
new file mode 100644
index 0000000..6f0a8f5
--- /dev/null
+++ b/home/dot_config/kwalletrc
@@ -0,0 +1,4 @@
+[Wallet]
+Default Wallet=Default keyring
+Enabled=false
+First Use=false
diff --git a/home/dot_config/latexmk/latexmkrc b/home/dot_config/latexmk/latexmkrc
new file mode 100644
index 0000000..6d6ec09
--- /dev/null
+++ b/home/dot_config/latexmk/latexmkrc
@@ -0,0 +1 @@
+$pdf_previewer = "fork xdg-open %O %S";
diff --git a/.config/lf/lfrc b/home/dot_config/lf/lfrc
index 3134b11..d01b837 100644
--- a/.config/lf/lfrc
+++ b/home/dot_config/lf/lfrc
@@ -5,7 +5,9 @@ set filesep "\n"
set scrolloff 10
set info size
set dircounts
+set mouse true
+set cleaner clean
set previewer preview
cmd open $open $fx
diff --git a/.config/mailcap b/home/dot_config/mailcap
index ff69b62..ff69b62 100644
--- a/.config/mailcap
+++ b/home/dot_config/mailcap
diff --git a/.config/mbsyncrc b/home/dot_config/mbsyncrc
index bc3bedf..bc3bedf 100644
--- a/.config/mbsyncrc
+++ b/home/dot_config/mbsyncrc
diff --git a/home/dot_config/mozc/config1.db b/home/dot_config/mozc/config1.db
new file mode 100644
index 0000000..65f9cde
--- /dev/null
+++ b/home/dot_config/mozc/config1.db
Binary files differ
diff --git a/home/dot_config/mozc/dot_gitattributes b/home/dot_config/mozc/dot_gitattributes
new file mode 100644
index 0000000..078cff9
--- /dev/null
+++ b/home/dot_config/mozc/dot_gitattributes
@@ -0,0 +1 @@
+config1.db binary diff=mozc_config
diff --git a/.config/mozc/keymap.tsv b/home/dot_config/mozc/keymap.tsv
index d2674ab..d2674ab 100644
--- a/.config/mozc/keymap.tsv
+++ b/home/dot_config/mozc/keymap.tsv
diff --git a/home/dot_config/mozc/user_dictionary.db b/home/dot_config/mozc/user_dictionary.db
new file mode 100644
index 0000000..9147808
--- /dev/null
+++ b/home/dot_config/mozc/user_dictionary.db
Binary files differ
diff --git a/.config/mpcplus/fzmp.conf b/home/dot_config/mpcplus/fzmp.conf
index 22439c3..22439c3 100644
--- a/.config/mpcplus/fzmp.conf
+++ b/home/dot_config/mpcplus/fzmp.conf
diff --git a/home/dot_config/mpd/mpd.conf.tmpl b/home/dot_config/mpd/mpd.conf.tmpl
new file mode 100644
index 0000000..141a565
--- /dev/null
+++ b/home/dot_config/mpd/mpd.conf.tmpl
@@ -0,0 +1,63 @@
+{{- $host := dig "mpd" "host" false . -}}
+{{- $base_dir := dig "mpd" "base_dir" "/mnt/mpd" . -}}
+
+{{- $music_directory := "https://media.pipeframe.xyz/music" -}}
+{{- if $host -}}
+{{- $music_directory = printf "%s/music" $base_dir -}}
+{{- end -}}
+{{- with (dig "mpd" "music_dir" nil .) -}}
+{{- $music_directory = . -}}
+{{- end -}}
+
+{{- $playlist_directory := printf "%s/playlists" $base_dir }}
+{{- with (dig "mpd" "playlist_dir" nil .) -}}
+{{- $playlist_directory = . -}}
+{{- end -}}
+
+music_directory "{{ $music_directory }}"
+playlist_directory "{{ $playlist_directory }}"
+
+pid_file "{{ $base_dir }}/mpd.pid"
+state_file "{{ $base_dir }}/mpdstate"
+{{- if $host }}
+db_file "{{ $base_dir }}/mpd.db"
+{{- end }}
+
+bind_to_address "{{ ternary "*" "0.0.0.0" $host }}"
+port "6600"
+restore_paused "yes"
+{{- if $host }}
+auto_update "yes"
+user "{{ .chezmoi.username }}"
+group "{{ .chezmoi.group }}"
+default_permissions "read,add,control,admin"
+{{- end }}
+
+replaygain "track"
+replaygain_preamp "6"
+{{- if not $host }}
+
+database {
+ plugin "proxy"
+ host "pipeframe.xyz"
+}
+{{- end }}
+
+{{- $default_output_type := "" }}
+{{- if eq .chezmoi.os "darwin" }}
+{{- $default_output_type = "osx" }}
+{{- else if eq .chezmoi.os "linux" }}
+{{- $default_output_type = "pulse" }}
+{{- end }}
+{{- with $default_output_type }}
+
+audio_output {
+ type "{{ $default_output_type }}"
+ name "desktop output"
+ mixer_type "software"
+}
+{{- end }}
+
+input_cache {
+ size "512 MB"
+}
diff --git a/.config/mpv/input.conf b/home/dot_config/mpv/input.conf
index 150b696..b963a33 100644
--- a/.config/mpv/input.conf
+++ b/home/dot_config/mpv/input.conf
@@ -1,3 +1,6 @@
ALT+c script-message-to copy_subs copy
ALT+SHIFT+c script-message-to copy_subs auto
+CTRL+z set sub-delay 0
+WHEEL_LEFT ignore
+WHEEL_RIGHT ignore
diff --git a/.config/mpv/mpv.conf b/home/dot_config/mpv/mpv.conf
index d853304..cc3c44f 100644
--- a/.config/mpv/mpv.conf
+++ b/home/dot_config/mpv/mpv.conf
@@ -10,3 +10,6 @@ sub-scale=0.5
# LOUD
volume-max=200
+
+# enable hardware-accelerated decoding
+hwdec=auto
diff --git a/.config/mpv/scripts/copy-subs.lua b/home/dot_config/mpv/scripts/copy-subs.lua
index 973e1f2..56928b2 100644
--- a/.config/mpv/scripts/copy-subs.lua
+++ b/home/dot_config/mpv/scripts/copy-subs.lua
@@ -11,7 +11,7 @@ function copy()
sub = sub:gsub('\n', ' ') -- replace newlines with space
sub = sub:gsub('\'', '\'\\\'\'') -- escape single quotes
- os.execute("echo '" .. sub .. "' | xclip -selection clipboard -i")
+ os.execute("echo '" .. sub .. "' | copy")
end
end
diff --git a/.config/ncmpcpp/bindings b/home/dot_config/ncmpcpp/bindings
index 3e748fc..3e748fc 100644
--- a/.config/ncmpcpp/bindings
+++ b/home/dot_config/ncmpcpp/bindings
diff --git a/.config/ncmpcpp/config##template b/home/dot_config/ncmpcpp/config.tmpl
index e38258f..e3e7844 100644
--- a/.config/ncmpcpp/config##template
+++ b/home/dot_config/ncmpcpp/config.tmpl
@@ -1,21 +1,23 @@
-mpd_host = "127.0.0.1"
+mpd_host = "0.0.0.0"
mpd_port = "6600"
#mpd_host = "/mnt/e/mpd/socket"
mpd_music_dir = "/mnt/e/mpd/music"
-mpd_connection_timeout = "5"
-mpd_crossfade_time = "1"
+mpd_connection_timeout = 1
+mpd_crossfade_time = 1
-external_editor = "{{ env.EDITOR }}"
-ncmpcpp_directory = "{{ env.XDG_CONFIG_HOME }}/ncmpcpp"
-lyrics_directory = "{{ env.XDG_CACHE_HOME }}/lyrics"
+external_editor = "{{ env "EDITOR" }}"
+ncmpcpp_directory = "{{ env "XDG_CONFIG_HOME" }}/ncmpcpp"
+lyrics_directory = "{{ env "XDG_CACHE_HOME" }}/lyrics"
progressbar_look = "───"
progressbar_color = black
progressbar_elapsed_color = default
+visualizer_color = default
playlist_display_mode = classic
autocenter_mode = yes
centered_cursor = yes
-user_interface = alternative
+user_interface = classic
+connected_message_on_startup = no
header_visibility = no
statusbar_visibility = no
@@ -25,11 +27,11 @@ state_flags_color = black:b
main_window_color = white
current_item_prefix = "$r"
song_columns_list_format = "(20)[]{a} (6f)[blue]{NE} (50)[default]{t|f:Title} (20)[blue]{} (7f)[magenta]{l}"
-song_list_format = " {{%a - %t}|{%f}}{$R%l} "
+song_list_format = " {{ "{{" }}%a - %t}|{%f}}$R{ %l} "
window_border_color = default
-alternative_header_first_line_format = "{{%a $8-$0 $b%t$/b}|{%f}}"
-alternative_header_second_line_format = "$8{{%b}{ (%y)}}|{%D}"
+alternative_header_first_line_format = "{{ "{{" }}%a $8-$0 %t}|{%f}}"
+alternative_header_second_line_format = "$8{{ "{{" }}%b}|{%D}}"
now_playing_prefix = "$b$0"
now_playing_suffix = "$/b"
diff --git a/.config/neomutt/neomuttrc b/home/dot_config/neomutt/neomuttrc
index 1e5bd13..af63b3f 100644
--- a/.config/neomutt/neomuttrc
+++ b/home/dot_config/neomutt/neomuttrc
@@ -20,7 +20,7 @@ set ssl_force_tls = yes
# automatically refresh incoming mail
set mail_check = 60
-unset wait_key
+set wait_key = no
push "<shell-escape> systemctl --user start mbsync & <enter>"
# mailboxes
diff --git a/.config/neovide/config.toml b/home/dot_config/neovide/config.toml
index 369f982..369f982 100644
--- a/.config/neovide/config.toml
+++ b/home/dot_config/neovide/config.toml
diff --git a/home/dot_config/npm/npmrc.tmpl b/home/dot_config/npm/npmrc.tmpl
new file mode 100644
index 0000000..9b8548e
--- /dev/null
+++ b/home/dot_config/npm/npmrc.tmpl
@@ -0,0 +1 @@
+prefix={{ .chezmoi.homeDir }}/.local
diff --git a/.config/nvim/coc-settings.json b/home/dot_config/nvim/coc-settings.json
index fc11396..e80234c 100644
--- a/.config/nvim/coc-settings.json
+++ b/home/dot_config/nvim/coc-settings.json
@@ -38,6 +38,10 @@
"glsl": {
"command": "glsl_analyzer",
"filetypes": ["glsl", "vert", "tesc", "tese", "frag", "geom", "comp"]
+ },
+ "sourcekit": {
+ "command": "sourcekit-lsp",
+ "filetypes": ["swift"]
}
},
"java.import.gradle.java.home": "/usr/lib/jvm/java-17-openjdk"
diff --git a/.config/nvim/color-tweaks.vim b/home/dot_config/nvim/color-tweaks.vim
index f5251f2..2fd2227 100644
--- a/.config/nvim/color-tweaks.vim
+++ b/home/dot_config/nvim/color-tweaks.vim
@@ -37,3 +37,5 @@ hi CocWarningSign guibg=NONE
" fix disappearing CocFadeOut
hi! link Conceal Comment
+hi! link WinSeparator LineNr
+hi! link NonText EndOfBuffer
diff --git a/.config/nvim/ftplugin/tex.vim b/home/dot_config/nvim/ftplugin/tex.vim
index 4e643f1..4e643f1 100644
--- a/.config/nvim/ftplugin/tex.vim
+++ b/home/dot_config/nvim/ftplugin/tex.vim
diff --git a/.config/nvim/init.vim b/home/dot_config/nvim/init.vim
index d702226..6d3768c 100644
--- a/.config/nvim/init.vim
+++ b/home/dot_config/nvim/init.vim
@@ -6,28 +6,36 @@ set noexpandtab
set tabstop=2
set shiftwidth=2
set termguicolors
-set shortmess=I
+set shortmess+=It
set splitbelow splitright
set noshowmode
set ignorecase
set smartcase
set timeoutlen=500
set updatetime=100
+set smoothscroll
set mouse=a
set cino=N-s,E-s,l1,g-1,j1
set linebreak " set wrap but don't wrap inside words
set viminfo+='1000,n~/.local/nvim/viminfo
-set guifont=JetBrainsMono\ Nerd\ Font:h9:#e-subpixelantialias:#h-slight
-set linespace=5
+set guifont=monospace:h7.5:#e-subpixelantialias
+set linespace=3
set tabpagemax=999
+set breakindent
+set breakindentopt+=list:-1,shift:-2
+set showbreak=:\
+set formatoptions+=mM
+set tags^=build/tags
+set ssop-=options
+set guicursor=n-v-c-sm:block,i-ci-ve:ver20,r-cr-o:hor05,t:block-TermCursor
let g:sneak#label = 1
let g:which_key_map = {}
let g:airline_powerline_fonts = 1
let g:minimap_highlight='Visual'
let g:python3_host_prog='/usr/bin/python3'
-let g:vimtex_quickfix_open_on_warning = 0
-let g:vimtex_imaps_enabled = 0
let g:DiffColors = 0
+let g:AutoPairsMultilineClose = 0
+filetype plugin on
if exists("g:neovide")
nmap <silent> <C-=> :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1<CR>
@@ -35,22 +43,27 @@ if exists("g:neovide")
nmap <silent> <C--> :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1<CR>
nmap <silent> <C-ScrollWheelDown> :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1<CR>
nmap <silent> <C-0> :lua vim.g.neovide_scale_factor = 1<CR>
- let g:neovide_scroll_animation_length = 0.18
+ let g:smoothie_enabled = v:false
+ let g:neovide_scroll_animation_length = 0.16
let g:neovide_floating_shadow = v:false
- let g:neovide_cursor_animation_length = 0.06
+ let g:neovide_cursor_animation_length = 0.04
let g:neovide_cursor_trail_size = 0.0
- let g:neovide_padding_top=16
- let g:neovide_padding_left=16
- let g:neovide_padding_right=16
- let g:neovide_padding_bottom=16
+ let g:neovide_padding_top=10
+ let g:neovide_padding_left=10
+ let g:neovide_padding_right=10
+ let g:neovide_padding_bottom=10
endif
" plugged
call plug#begin('~/.config/nvim/plugged')
-" quality of life
-Plug 'jiangmiao/auto-pairs'
+" tim <3
Plug 'tpope/vim-surround'
Plug 'tpope/vim-speeddating'
+Plug 'tpope/vim-eunuch'
+Plug 'tpope/vim-commentary'
+
+" quality of life
+Plug 'jiangmiao/auto-pairs'
Plug 'itchyny/lightline.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'liuchengxu/vim-which-key'
@@ -62,10 +75,12 @@ Plug 'junegunn/goyo.vim'
Plug 'psliwka/vim-smoothie'
Plug 'airblade/vim-gitgutter'
Plug 'wellle/targets.vim'
-Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'dkarter/bullets.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'rickhowe/diffunitsyntax'
+Plug 'lervag/file-line'
+Plug 'vim-scripts/AnsiEsc.vim'
+Plug 'vim-scripts/taglist.vim'
" language plugins
Plug 'lervag/vimtex'
@@ -85,19 +100,21 @@ Plug 'aklt/plantuml-syntax'
Plug 'fymyte/rasi.vim'
Plug 'habamax/vim-asciidoctor'
Plug 'lonkaars/coc-khard'
+Plug 'sile-typesetter/vim-sile'
+Plug 'ahf/cocci-syntax'
+Plug 's3rvac/vim-syntax-jira'
" themes
Plug 'arzg/vim-colors-xcode'
Plug 'romgrk/github-light.vim'
Plug 'vv9k/vim-github-dark'
-Plug 'rose-pine/neovim'
+Plug 'rose-pine/neovim', {'as': 'rose-pine'}
Plug '~/.config/nvim/local/coc-markdown-links'
call plug#end()
" keybinds
tnoremap <Esc> <C-\><C-n>
-
nnoremap tt :tabnew<CR>
nnoremap <CR> o<Esc>
nnoremap <leader>qf <Plug>(coc-fix-current)
@@ -105,6 +122,9 @@ nnoremap <silent> * yiw:let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
nnoremap <silent> <A-j> :m +1<CR>
nnoremap <silent> <A-k> :m -2<CR>
+nnoremap <silent> gd :call CocAction('jumpDefinition')<cr>
+nnoremap <silent> <leader>d :call CocAction('jumpDefinition', 'vsplit')<cr>
+
imap <C-h> <Left>
imap <C-j> <Down>
imap <C-k> <Up>
@@ -191,9 +211,14 @@ let g:which_key_map['.'] = {
map <silent> <leader>u :UndotreeToggle<cr>
let g:which_key_map.u = 'toggle undo tree'
-nnoremap <silent> <leader>e 0f!xC<c-r>=system(@-)<cr><esc>dd
+nnoremap <silent> <leader>e 0f!xC<c-r>=system(@-)<cr><esc>ddk$
let g:which_key_map.e = 'read and execute after !'
+nnoremap <leader>] <c-w>v<c-]>zt
+let g:which_key_map[']'] = 'open tag in split'
+
+nnoremap <silent> <leader>[ :call jobstart(['sdk10-dox-open', expand("<cword>")], {'detach': v:true})<enter>
+
" cmd maps
cnoreabbrev W w
cnoreabbrev sudow w !sudo tee %
@@ -211,64 +236,55 @@ let g:Hexokinase_optOutPatterns = [ 'colour_names' ]
" lightline
let g:lightline = {
- \ 'colorscheme': 'auto',
- \ 'mode_map': {
- \ 'n' : 'norm',
- \ 'i' : 'ins',
- \ 'R' : 'rep',
- \ 'v' : 'vis',
- \ 'V' : 'v-l',
- \ "\<C-v>": 'v-b',
- \ 'c' : 'cmd',
- \ 's' : 'sel',
- \ 'S' : 's-l',
- \ "\<C-s>": 's-b',
- \ 't': 'term'
- \ },
- \ 'active': {
- \ 'left': [
- \ [ 'mode', 'paste' ],
- \ [ 'readonly', 'filename', 'modified']
- \ ],
- \ 'right': [
- \ [ 'lineinfo' ]
- \ ]
- \ },
- \ 'inactive': {
- \ 'left': [
- \ [ 'readonly', 'filename', 'modified']
- \ ],
- \ 'right': [ ]
- \ },
- \ }
-let g:lightline.tabline = {
- \ 'left': [ [ 'tabs' ] ],
- \ 'right': [ ] }
+ \ 'colorscheme': 'auto',
+ \ 'mode_map': {
+ \ 'n' : 'norm',
+ \ 'i' : 'ins',
+ \ 'R' : 'rep',
+ \ 'v' : 'vis',
+ \ 'V' : 'v-l',
+ \ "\<C-v>": 'v-b',
+ \ 'c' : 'cmd',
+ \ 's' : 'sel',
+ \ 'S' : 's-l',
+ \ "\<C-s>": 's-b',
+ \ 't': 'term',
+ \ },
+ \ 'active': {
+ \ 'left': [
+ \ [ 'mode', 'paste' ],
+ \ [ 'readonly', 'filename', 'modified'],
+ \ ],
+ \ 'right': [ [ 'lineinfo' ] ],
+ \ },
+ \ 'inactive': {
+ \ 'left': [
+ \ [ 'readonly', 'filename', 'modified'],
+ \ ],
+ \ 'right': [ [ 'lineinfo' ] ],
+ \ },
+ \ 'tabline': {
+ \ 'left': [ [ 'tabs' ] ],
+ \ 'right': [ ],
+ \ },
+ \ 'subseparator': {
+ \ 'left': '',
+ \ 'right': '',
+ \ },
+ \ }
call lightline#init()
" vimtex config
let g:tex_flavor = 'latex'
-let g:vimtex_compiler_latexmk = {
- \ 'backend' : 'nvim',
- \ 'background' : 1,
- \ 'build_dir' : '',
- \ 'callback' : 1,
- \ 'continuous' : 1,
- \ 'executable' : 'latexmk',
- \ 'engine' : 'xelatex',
- \ 'hooks' : [],
- \ 'options' : [
- \ '-xelatex',
- \ '-file-line-error',
- \ '-synctex=1',
- \ '-interaction=nonstopmode',
- \ ],
- \}
+let g:vimtex_quickfix_open_on_warning = 0
+let g:vimtex_imaps_enabled = 0
+let g:vimtex_compiler_method = 'latexmk'
+let g:vimtex_compiler_latexmk_engines = { '_': '' }
" TeX quotes
autocmd FileType tex let b:surround_{char2nr("q")} = "`\r'"
autocmd FileType tex let b:surround_{char2nr('Q')} = "``\r''"
-autocmd FileType tex let b:AutoPairs = AutoPairsDefine({'(':')', '[':']', '{':'}', "``":"''", "`":"'", '$':'$', '"':'"'})
+autocmd FileType tex let b:AutoPairs = {'(':')', '[':']', '{':'}', "``":"''", "`":"'", '$':'$', '"':'"'}
" AutoPairs for plantuml
autocmd FileType plantuml let b:AutoPairs = {'(':')', '[':']', '{':'}', '`':'`'}
@@ -369,6 +385,12 @@ augroup devicetree_ft
au BufRead,BufNewFile *.dtsi set syntax=dts
augroup END
+augroup BibLaTeX
+ " add allowed characters in biblatex labels to word delimiters
+ autocmd!
+ autocmd FileType bib setlocal iskeyword+=:,-
+augroup END
+
" sneak
let g:sneak#use_ic_scs = 0
@@ -379,3 +401,9 @@ autocmd InsertLeave * call system("fcitx5-temp-off &")
" colorscheme
source $XDG_CONFIG_HOME/nvim/mode.vim
+" use .exrc files
+set exrc
+set secure
+
+" file-line
+let g:file_line_crosshairs = v:false
diff --git a/.config/nvim/mode.vim b/home/dot_config/nvim/mode.vim
index e1deaca..e1deaca 100644
--- a/.config/nvim/mode.vim
+++ b/home/dot_config/nvim/mode.vim
diff --git a/home/dot_config/nvim/run_once_bootstrap.sh.tmpl b/home/dot_config/nvim/run_once_bootstrap.sh.tmpl
new file mode 100644
index 0000000..4774258
--- /dev/null
+++ b/home/dot_config/nvim/run_once_bootstrap.sh.tmpl
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+# vim:ft=sh
+
+# {{ include (joinPath .chezmoi.sourceDir "dot_config/nvim/init.vim") | sha1sum }}
+
+[ -z "$(command -v nvim)" ] && exit 0
+
+echo "updating nvim plugins"
+nvim --headless +"PlugInstall --sync" +qa
+
+exit 0
diff --git a/home/dot_config/pam-gnupg.tmpl b/home/dot_config/pam-gnupg.tmpl
new file mode 100644
index 0000000..f0e3870
--- /dev/null
+++ b/home/dot_config/pam-gnupg.tmpl
@@ -0,0 +1,4 @@
+{{ env "GNUPGHOME" }}
+{{- if hasKey . "pam_gnupg" }}
+{{ join "\n" .pam_gnupg }}
+{{- end }}
diff --git a/.config/picom.conf b/home/dot_config/picom.conf
index 111ad71..372806a 100644
--- a/.config/picom.conf
+++ b/home/dot_config/picom.conf
@@ -7,8 +7,8 @@ corner-radius = 10;
shadow = true;
shadow-radius = 48;
-shadow-opacity = 0.4;
-shadow-offset-y = -48;
+shadow-opacity = 0.2;
+shadow-offset-y = -36;
shadow-offset-x = -48;
fade = false;
@@ -18,6 +18,10 @@ fade-delta = 16;
rules = (
{
+ match = "class_i *= 'scrcpy'";
+ corner-radius = 32;
+ },
+ {
match = "!I3_FLOATING_WINDOW@ = 1";
shadow = false;
corner-radius = 0;
@@ -27,6 +31,10 @@ rules = (
shadow = false;
},
{
+ match = "window_type *= 'splash'";
+ shadow = false;
+ },
+ {
match = "window_type *= 'notification'";
fade = true;
corner-radius = 12;
@@ -53,12 +61,39 @@ rules = (
match = "window_type *= 'dock'";
shadow = false;
corner-radius = 0;
+ animations = (
+ {
+ triggers = [ "open" ];
+ preset = "slide-in";
+ direction = "up";
+ duration = 0.200;
+ },
+ {
+ triggers = [ "close" ];
+ preset = "slide-out";
+ direction = "up";
+ duration = 0.175;
+ },
+ );
},
{
match = "window_type *= 'combo'";
shadow = true;
corner-radius = 10;
},
+ {
+ match = "window_type *= 'popup'";
+ shadow = true;
+ corner-radius = 10;
+ },
+ {
+ match = "class_i *= 'RAIL'";
+ corner-radius = 0;
+ },
+ {
+ match = "_NET_WM_STATE@[*] = '_NET_WM_STATE_FULLSCREEN'";
+ shadow = false;
+ },
)
animations = (
diff --git a/home/dot_config/pip/user.conf b/home/dot_config/pip/user.conf
new file mode 100644
index 0000000..8538a1d
--- /dev/null
+++ b/home/dot_config/pip/user.conf
@@ -0,0 +1,6 @@
+[install]
+break-system-packages = true
+user = true
+
+[uninstall]
+break-system-packages = true
diff --git a/home/dot_config/pipewire/pipewire.conf.d/50-bitrate.conf b/home/dot_config/pipewire/pipewire.conf.d/50-bitrate.conf
new file mode 100644
index 0000000..bbf2c92
--- /dev/null
+++ b/home/dot_config/pipewire/pipewire.conf.d/50-bitrate.conf
@@ -0,0 +1,5 @@
+context.properties = {
+ default.clock.rate = 96000
+ default.clock.allowed-rates = [ 96000 ]
+}
+
diff --git a/home/dot_config/poke/pokerc.conf b/home/dot_config/poke/pokerc.conf
new file mode 100644
index 0000000..90a320f
--- /dev/null
+++ b/home/dot_config/poke/pokerc.conf
@@ -0,0 +1,7 @@
+.set obase 16
+.set omode tree
+.set pretty-print yes
+.set oacutoff 32
+
+pk_dump_cluster_by = 4
+
diff --git a/.config/polybar/config.ini##template b/home/dot_config/polybar/config.ini.tmpl
index 4581b90..475303d 100644
--- a/.config/polybar/config.ini##template
+++ b/home/dot_config/polybar/config.ini.tmpl
@@ -42,15 +42,11 @@ font-1 = "sans-serif:pixelsize=8:weight=bold:size=0;2"
font-2 = "Hiragino Kaku Gothic ProN W3:pixelsize=8:weight=medium:size=0;1"
font-3 = "Hiragino Kaku Gothic ProN W6:pixelsize=8:weight=medium:size=0;1"
font-4 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2"
+font-5 = "Noto Sans CJK SC:pixelsize=8:weight=medium:size=0;2"
modules-left = time date
-{% if yadm.hostname == "thoncc" %}
-modules-center = battery1 battery2 brightness
-modules-right = mpd wireless keyboard volume
-{% else %}
modules-center = mpd
modules-right = wacomtouch keyboard volume
-{% endif %}
separator =
@@ -60,7 +56,7 @@ dim-value = 1.0
wm-name =
-locale = {{ env.LANG }}
+locale = {{ env "LANG" }}
wm-restack = i3
@@ -97,7 +93,7 @@ pseudo-transparency = false
type = internal/pulseaudio
format-volume = <label-volume>
label-volume = %percentage%%
-label-muted = "muted"
+label-muted = "消音"
[module/date]
type = internal/date
@@ -124,7 +120,7 @@ type = internal/mpd
format-online = <label-song>
format-offline =
format-stopped =
-label-song = %artist% - %{T2}%title%%{T-}
+label-song = %artist% - %title%
label-song-maxlen = 50
label-song-ellipsis = true
diff --git a/home/dot_config/private_homebrew/brew.env b/home/dot_config/private_homebrew/brew.env
new file mode 100644
index 0000000..c3e0c10
--- /dev/null
+++ b/home/dot_config/private_homebrew/brew.env
@@ -0,0 +1,5 @@
+HOMEBREW_BAT=1
+HOMEBREW_NO_AUTO_UPDATE=1
+HOMEBREW_NO_ENV_HINTS=1
+HOMEBREW_NO_ANALYTICS=1
+HOMEBREW_NO_ASK=1
diff --git a/.config/user-dirs.dirs b/home/dot_config/private_user-dirs.dirs
index df754e6..e98e668 100644
--- a/.config/user-dirs.dirs
+++ b/home/dot_config/private_user-dirs.dirs
@@ -13,3 +13,4 @@ XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"
+XDG_PROJECTS_DIR="$HOME/"
diff --git a/.config/ranger/rc.conf b/home/dot_config/ranger/rc.conf
index c38471a..c38471a 100644
--- a/.config/ranger/rc.conf
+++ b/home/dot_config/ranger/rc.conf
diff --git a/.config/rofi-pass/config b/home/dot_config/rofi-pass/config
index 5f915f1..846ee88 100644
--- a/.config/rofi-pass/config
+++ b/home/dot_config/rofi-pass/config
@@ -1,6 +1,7 @@
-#!/bin/sh
+#!/usr/bin/env sh
# make sure the filename is used as the account name
default_user=':filename'
+type_delay=0
# pass custom rofi flags
_rofi() {
diff --git a/.config/rofi-pass/rofi.rasi b/home/dot_config/rofi-pass/rofi.rasi
index 829bcb0..829bcb0 100644
--- a/.config/rofi-pass/rofi.rasi
+++ b/home/dot_config/rofi-pass/rofi.rasi
diff --git a/.config/rofi/config.rasi##template b/home/dot_config/rofi/config.rasi.tmpl
index c6bf9c4..23bbf45 100644
--- a/.config/rofi/config.rasi##template
+++ b/home/dot_config/rofi/config.rasi.tmpl
@@ -9,7 +9,7 @@ configuration {
drun-display-format: "{name}";
filebrowser {
- directory: "{{ env.HOME }}/docs";
+ directory: "{{ env "HOME" }}/docs";
}
kb-remove-to-eol: "Control+Shift+e";
@@ -57,7 +57,7 @@ listview {
element {
margin: -2px 0px;
- padding: 6px 10px 3px 10px;
+ padding: 6px 10px 2px 10px;
background-color: transparent;
text-color: ${fg};
}
@@ -67,4 +67,3 @@ element selected {
background-color: ${accent};
text-color: ${accent_text};
}
-
diff --git a/home/dot_config/run_once_update_user_dirs.sh.tmpl b/home/dot_config/run_once_update_user_dirs.sh.tmpl
new file mode 100644
index 0000000..8e4396f
--- /dev/null
+++ b/home/dot_config/run_once_update_user_dirs.sh.tmpl
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+# vim:ft=sh
+
+# {{ include (joinPath .chezmoi.sourceDir "dot_config/private_user-dirs.dirs") | sha1sum }}
+
+echo "create XDG user directories"
+xdg-user-dirs-update
+
+exit 0
diff --git a/home/dot_config/skhd/skhdrc b/home/dot_config/skhd/skhdrc
new file mode 100644
index 0000000..b6d40e3
--- /dev/null
+++ b/home/dot_config/skhd/skhdrc
@@ -0,0 +1,8 @@
+cmd - return : kitty --single-instance -d ~
+
+cmd + alt - 0x1B : osascript -e "set volume output volume (output volume of (get volume settings) - 3)"
+cmd + alt - 0x18 : osascript -e "set volume output volume (output volume of (get volume settings) + 3)"
+
+cmd + alt - j : mpc prev
+cmd + alt - k : mpc toggle
+cmd + alt - l : mpc next
diff --git a/.config/sxiv/exec/image-info b/home/dot_config/sxiv/exec/executable_image-info
index 7683c3a..0f3f5de 100755..100644
--- a/.config/sxiv/exec/image-info
+++ b/home/dot_config/sxiv/exec/executable_image-info
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
printf '%s %s %s' \
"$(basename "$1")" \
"$(date -r "$1")" \
diff --git a/home/dot_config/systemd/user/default.target.wants/symlink_goimapnotify@pipeframe.service b/home/dot_config/systemd/user/default.target.wants/symlink_goimapnotify@pipeframe.service
new file mode 100644
index 0000000..8797972
--- /dev/null
+++ b/home/dot_config/systemd/user/default.target.wants/symlink_goimapnotify@pipeframe.service
@@ -0,0 +1 @@
+/usr/lib/systemd/user/goimapnotify@.service
diff --git a/home/dot_config/systemd/user/default.target.wants/symlink_mpd.service b/home/dot_config/systemd/user/default.target.wants/symlink_mpd.service
new file mode 100644
index 0000000..f94f6ef
--- /dev/null
+++ b/home/dot_config/systemd/user/default.target.wants/symlink_mpd.service
@@ -0,0 +1 @@
+/usr/lib/systemd/user/mpd.service
diff --git a/home/dot_config/systemd/user/default.target.wants/symlink_pipewire-pulse.service b/home/dot_config/systemd/user/default.target.wants/symlink_pipewire-pulse.service
new file mode 100644
index 0000000..a72afa4
--- /dev/null
+++ b/home/dot_config/systemd/user/default.target.wants/symlink_pipewire-pulse.service
@@ -0,0 +1 @@
+/usr/lib/systemd/user/pipewire-pulse.service
diff --git a/home/dot_config/systemd/user/default.target.wants/symlink_pipewire.service b/home/dot_config/systemd/user/default.target.wants/symlink_pipewire.service
new file mode 100644
index 0000000..06933ea
--- /dev/null
+++ b/home/dot_config/systemd/user/default.target.wants/symlink_pipewire.service
@@ -0,0 +1 @@
+/usr/lib/systemd/user/pipewire.service
diff --git a/.config/systemd/user/mbsync.service b/home/dot_config/systemd/user/mbsync.service
index 892b701..892b701 100644
--- a/.config/systemd/user/mbsync.service
+++ b/home/dot_config/systemd/user/mbsync.service
diff --git a/.config/systemd/user/mbsync.timer b/home/dot_config/systemd/user/mbsync.timer
index 980eb22..980eb22 100644
--- a/.config/systemd/user/mbsync.timer
+++ b/home/dot_config/systemd/user/mbsync.timer
diff --git a/home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber.service b/home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber.service
new file mode 100644
index 0000000..3111543
--- /dev/null
+++ b/home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber.service
@@ -0,0 +1 @@
+/usr/lib/systemd/user/wireplumber.service
diff --git a/home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber@loek.service b/home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber@loek.service
new file mode 100644
index 0000000..3beaddd
--- /dev/null
+++ b/home/dot_config/systemd/user/pipewire.service.wants/symlink_wireplumber@loek.service
@@ -0,0 +1 @@
+/usr/lib/systemd/user/wireplumber@.service
diff --git a/home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire-pulse.socket b/home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire-pulse.socket
new file mode 100644
index 0000000..9930a8d
--- /dev/null
+++ b/home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire-pulse.socket
@@ -0,0 +1 @@
+/usr/lib/systemd/user/pipewire-pulse.socket
diff --git a/home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire.socket b/home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire.socket
new file mode 100644
index 0000000..9a8dfc8
--- /dev/null
+++ b/home/dot_config/systemd/user/sockets.target.wants/symlink_pipewire.socket
@@ -0,0 +1 @@
+/usr/lib/systemd/user/pipewire.socket
diff --git a/home/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer b/home/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer
new file mode 100644
index 0000000..2b02041
--- /dev/null
+++ b/home/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer
@@ -0,0 +1 @@
+/home/loek/.config/systemd/user/mbsync.timer
diff --git a/home/dot_config/todoman/config.py b/home/dot_config/todoman/config.py
new file mode 100644
index 0000000..34bd124
--- /dev/null
+++ b/home/dot_config/todoman/config.py
@@ -0,0 +1,5 @@
+#!/usr/bin/env python3
+path = "$XDG_DATA_HOME/vdirsyncer/*/*"
+default_list = "タスク"
+default_priority = 9
+default_due = 0
diff --git a/.config/vdirsyncer/config.sh.example b/home/dot_config/vdirsyncer/config.sh.example
index 0c7d81a..e106dcd 100644
--- a/.config/vdirsyncer/config.sh.example
+++ b/home/dot_config/vdirsyncer/config.sh.example
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# this file is included from .config/vdirsyncer/config_gen and
# .config/khal/config_gen. The shims for `khal` and `vdirsyncer` automatically
# run these scripts to update the configuration files. Note that you do still
diff --git a/.config/vdirsyncer/config_gen b/home/dot_config/vdirsyncer/executable_config_gen
index bf5d570..d610f9c 100755..100644
--- a/.config/vdirsyncer/config_gen
+++ b/home/dot_config/vdirsyncer/executable_config_gen
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CONFIG_FILE="$(dirname "$0")/config.sh"
[ ! -e "$CONFIG_FILE" ] && {
echo "please create $CONFIG_FILE"
diff --git a/home/dot_config/wgetrc.tmpl b/home/dot_config/wgetrc.tmpl
new file mode 100644
index 0000000..3d9d4fe
--- /dev/null
+++ b/home/dot_config/wgetrc.tmpl
@@ -0,0 +1 @@
+hsts-file = {{ env "XDG_CACHE_HOME" }}/wget-hsts
diff --git a/home/dot_config/winapps/winapps.conf b/home/dot_config/winapps/winapps.conf
new file mode 100644
index 0000000..5977f06
--- /dev/null
+++ b/home/dot_config/winapps/winapps.conf
@@ -0,0 +1,15 @@
+RDP_USER="$(id -un)"
+RDP_PASS="$(pass etc/rdpwin)"
+VM_NAME="rdpwin"
+WAFLAVOR="libvirt"
+RDP_SCALE="100"
+REMOVABLE_MEDIA="/mnt"
+RDP_FLAGS="/cert:ignore /sound /microphone +home-drive -decorations +span /kbd:remap:0x3a=0x1d"
+DEBUG="true"
+AUTOPAUSE="off"
+AUTOPAUSE_TIME="300"
+PORT_TIMEOUT="5"
+RDP_TIMEOUT="30"
+APP_SCAN_TIMEOUT="30"
+BOOT_TIMEOUT="0"
+HIDEF="off"
diff --git a/home/dot_config/wireplumber/wireplumber.conf.d/50-bluez.conf b/home/dot_config/wireplumber/wireplumber.conf.d/50-bluez.conf
new file mode 100644
index 0000000..c957f73
--- /dev/null
+++ b/home/dot_config/wireplumber/wireplumber.conf.d/50-bluez.conf
@@ -0,0 +1,5 @@
+monitor.bluez.properties = {
+ bluez5.enable-msbc = false
+ bluez5.enable-cvsd = false
+ bluez5.default.rate = 96000
+}
diff --git a/home/dot_config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf b/home/dot_config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf
new file mode 100644
index 0000000..212afe6
--- /dev/null
+++ b/home/dot_config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf
@@ -0,0 +1,30 @@
+monitor.alsa.rules = [
+ {
+ matches = [
+ { node.name = "~alsa_input.*" }
+ { node.name = "~alsa_output.*" }
+ ]
+ actions = {
+ update-props = {
+ session.suspend-timeout-seconds = 0
+ }
+ }
+ }
+]
+
+monitor.bluez.rules = [
+ {
+ matches = [
+ { node.name = "~bluez_input.*" }
+ { node.name = "~bluez_output.*" }
+ ]
+ actions = {
+ update-props = {
+ audio.format = "S24_3LE"
+ audio.rate = 96000
+ session.suspend-timeout-seconds = 0
+ }
+ }
+ }
+]
+
diff --git a/.config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf b/home/dot_config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf
index fa83de5..fa83de5 100644
--- a/.config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf
+++ b/home/dot_config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf
diff --git a/.config/xbindkeys/main b/home/dot_config/xbindkeys/main
index fb64a20..47a89f6 100644
--- a/.config/xbindkeys/main
+++ b/home/dot_config/xbindkeys/main
@@ -91,6 +91,15 @@
"i3-msg move right"
Mod4 + Shift + l
+"i3-msg move workspace to output left"
+ Mod1 + Mod4 + Shift + h
+"i3-msg move workspace to output down"
+ Mod1 + Mod4 + Shift + j
+"i3-msg move workspace to output up"
+ Mod1 + Mod4 + Shift + k
+"i3-msg move workspace to output right"
+ Mod1 + Mod4 + Shift + l
+
"i3-msg resize grow width 10 px"
Mod4 + period
"i3-msg resize shrink width 10 px"
@@ -115,3 +124,5 @@
"fcitx5-remote -s mozc"
XF86Launch7 + Release
+"autorandr --change"
+ XF86Display
diff --git a/home/dot_config/xsettingsd/xsettingsd.conf b/home/dot_config/xsettingsd/xsettingsd.conf
new file mode 100644
index 0000000..46d4730
--- /dev/null
+++ b/home/dot_config/xsettingsd/xsettingsd.conf
@@ -0,0 +1,4 @@
+Xft/Hinting 1
+Xft/HintStyle "hintslight"
+Xft/Antialias 1
+Xft/RGBA "rgb"
diff --git a/.config/yadm/bootstrap b/home/dot_config/yadm/executable_bootstrap
index f1e3267..89ca3c3 100755..100644
--- a/.config/yadm/bootstrap
+++ b/home/dot_config/yadm/executable_bootstrap
@@ -1,8 +1,14 @@
-#!/bin/sh
+#!/usr/bin/env sh
+
cd "$(dirname "$0")"
. "$HOME/.profile"
. ./lib/bootstrap
+# never use custom locale in TTY/logs
+export LANG=C
+
+alias s=silent
+
# ensure required packages are installed
begintask "installing packages"
"$XDG_CONFIG_HOME/yadm/install-arch" > pkgs.log 2>&1
@@ -43,13 +49,13 @@ endtask
begintask "building st (terminal) from source"
mkdir -p ~/.local
cd ~/.local
- s git clone --depth 1 https://git.pipeframe.xyz/lonkaars/st
+ s git clone --depth 1 https://git.pipeframe.xyz/fork/st
cd st
s make -j
endtask
)
-[ "$(find ~/.ssh -name 'id*' | wc -l)" -eq 0 ] && (
+[ "$(find ~/.ssh -name 'id*' 2>/dev/null | wc -l)" -eq 0 ] && (
begintask "generating ssh keys"
s ssh-keygen -q -N "" < /dev/zero
endtask
diff --git a/.config/yadm/install-arch b/home/dot_config/yadm/executable_install-arch
index 94721c3..ad75738 100755..100644
--- a/.config/yadm/install-arch
+++ b/home/dot_config/yadm/executable_install-arch
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# ensure we are running on arch linux
[ ! -e /etc/os-release ] && exit 0
. /etc/os-release
@@ -8,6 +8,5 @@
cd "$(dirname "$0")"
# filter comments and pipe package name list to yay
-sed -e 's/#.*//g' -e 's/ //g' -e '/^$/d' packages-arch |\
- yay --noprogressbar --quiet --noconfirm --needed -Sy -
+sed -e 's/#.*//g' -e 's/ //g' -e '/^$/d' packages-arch | yay --needed -Sy -
diff --git a/.config/yadm/lib/bootstrap b/home/dot_config/yadm/lib/bootstrap
index e367320..18a2cca 100644
--- a/.config/yadm/lib/bootstrap
+++ b/home/dot_config/yadm/lib/bootstrap
@@ -1,17 +1,17 @@
-#!/bin/sh
-unset LANG # never use custom locale in TTY/logs
-
+#!/usr/bin/env sh
TIMESTART="$(date +%s)"
begintask() {
printf '%s ...' "$1"
}
+
endtask() {
EXIT_CODE=$?
[ $EXIT_CODE -eq 0 ] && echo ' OK' || echo ' ERROR'
return $EXIT_CODE
}
-s() { # s for silent
+
+silent() {
"$@" 1> /dev/null 2> /dev/null
}
diff --git a/.config/yadm/packages-arch b/home/dot_config/yadm/packages-arch
index e35a5db..b9b9781 100644
--- a/.config/yadm/packages-arch
+++ b/home/dot_config/yadm/packages-arch
@@ -14,7 +14,9 @@ xorg-xrdb
xorg-xset
# directly used in scripts / startup
+augeas
autocutsel
+bat
dbus
dunst
fcitx5
@@ -23,9 +25,11 @@ imagemagick
jq
libpulse # for pactl
maim
+moreutils
mpd
neovim-remote
nicotine+
+nodejs
pastel
picom
pipewire
@@ -34,6 +38,7 @@ polkit-gnome
polybar
python
python-pip
+python-pipx
redshift
rofi
xbanish
@@ -52,10 +57,7 @@ openssh
openssl
sshfs
usb_modeswitch # required for android usb tethering
-
-# network stuff (TODO)
-# NetworkManager # currently only used on laptop...
-dhcpcd # i am unsure if i need this
+networkmanager
# applications
anki-bin
@@ -78,6 +80,7 @@ pass
pass-otp
pavucontrol
pinentry
+qt5-tools
ranger
restic
rofi-pass-git
@@ -86,6 +89,7 @@ scrot
slock
sudo
sxiv
+unarchiver
unzip
vdirsyncer
vim-plug
diff --git a/.config/yadm/root/bootstrap b/home/dot_config/yadm/root/executable_bootstrap
index b244471..26e1751 100755..100644
--- a/.config/yadm/root/bootstrap
+++ b/home/dot_config/yadm/root/executable_bootstrap
@@ -1,7 +1,13 @@
-#!/bin/sh
+#!/usr/bin/env sh
cd "$(dirname "$0")"
. ../lib/bootstrap
+# never use custom locale in TTY/logs
+export LANG=C
+
+alias s=silent
+
+
wrong_call() {
cat << EOF
run this script as root and with the username of your user account
@@ -25,7 +31,7 @@ s getent passwd "$SETUP_USER" || wrong_call
[ $(id -u "$SETUP_USER") -eq 0 ] && wrong_call
begintask "copy system config files"
-s cp -r etc/. /etc
+s cp -r --preserve=mode,timestamps etc/. /etc
endtask
PINENTRY="pinentry-gnome3"
@@ -72,6 +78,10 @@ s grep '^#\s*\<Color\>' /etc/pacman.conf && (
endtask
)
+begintask "set autorandr to run at lightdm display startup"
+s augtool set '/files/etc/lightdm/lightdm.conf/Seat:*/display-setup-script' '/etc/lightdm/autorandr-change'
+endtask
+
[ "$(getent passwd "$SETUP_USER" | cut -d: -f7 | xargs basename)" != "zsh" ] && (
begintask "set user shell to zsh"
s chsh -s "$(command -v zsh)" "$SETUP_USER"
diff --git a/.config/zathura/zathurarc b/home/dot_config/zathura/zathurarc
index ff927ca..89ae535 100644
--- a/.config/zathura/zathurarc
+++ b/home/dot_config/zathura/zathurarc
@@ -1,15 +1,16 @@
-set scroll-page-aware "true"
+set scroll-page-aware true
set scroll-full-overlap 0.01
set scroll-step 100
set selection-clipboard clipboard
# recolor (dark mode)
map <C-i> recolor
-set recolor "true"
+set recolor true
-set recolor-reverse-video "true"
-set recolor-keephue "true"
+set recolor-reverse-video true
+set recolor-keephue true
set guioptions ""
+set show-recent false
include ./colors
diff --git a/home/dot_local/.chezmoiexternal.yaml.tmpl b/home/dot_local/.chezmoiexternal.yaml.tmpl
new file mode 100644
index 0000000..6c931ea
--- /dev/null
+++ b/home/dot_local/.chezmoiexternal.yaml.tmpl
@@ -0,0 +1,6 @@
+{{- if eq .chezmoi.os "linux" }}
+st:
+ type: git-repo
+ url: https://git.pipeframe.xyz/fork/st
+ refreshPeriod: 168h
+{{- end }}
diff --git a/.local/share/Anki2/addons21/308574457/user_files/BottomBar.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/BottomBar.css
index 5e3dc77..5e3dc77 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/BottomBar.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/BottomBar.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/DeckBrowser.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/DeckBrowser.css
index 79b8e39..79b8e39 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/DeckBrowser.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/DeckBrowser.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/Editor.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/Editor.css
index c826858..c826858 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/Editor.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/Editor.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/TopToolbar.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/TopToolbar.css
index 7a3eeeb..7a3eeeb 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/TopToolbar.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/TopToolbar.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/CardLayout.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_CardLayout.css
index e69de29..e69de29 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/CardLayout.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_CardLayout.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/Overview.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_Overview.css
index e69de29..e69de29 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/Overview.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_Overview.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/Reviewer.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_Reviewer.css
index e69de29..e69de29 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/Reviewer.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_Reviewer.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/ReviewerBottomBar.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_ReviewerBottomBar.css
index e69de29..e69de29 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/ReviewerBottomBar.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_ReviewerBottomBar.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/legacy.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_legacy.css
index e69de29..e69de29 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/legacy.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/empty_legacy.css
diff --git a/.local/share/Anki2/addons21/308574457/user_files/global.css b/home/dot_local/share/Anki2/addons21/308574457/user_files/global.css
index a30eb51..a30eb51 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/global.css
+++ b/home/dot_local/share/Anki2/addons21/308574457/user_files/global.css
diff --git a/home/dot_local/share/Anki2/addons21/mode/__init__.py b/home/dot_local/share/Anki2/addons21/mode/__init__.py
new file mode 100644
index 0000000..8eb3758
--- /dev/null
+++ b/home/dot_local/share/Anki2/addons21/mode/__init__.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+from aqt import mw
+from aqt.theme import Theme
+from os import getenv
+from pathlib import Path
+from sys import platform
+
+def set_theme_mode():
+ XDG_CACHE_HOME = Path(getenv('XDG_CACHE_HOME', Path.home().joinpath('.cache')))
+ path = XDG_CACHE_HOME.joinpath('mode/state/mode')
+ with path.open() as file:
+ mode = file.read().strip()
+ if mode == "dark":
+ mw.set_theme(Theme.DARK)
+ if mode == "light":
+ mw.set_theme(Theme.LIGHT)
+
+def set_theme_system():
+ mw.set_theme(Theme.FOLLOW_SYSTEM)
+
+set_theme = {
+ "darwin": set_theme_system,
+ "linux": set_theme_mode,
+}.get(platform, lambda: None)
+set_theme()
+
diff --git a/home/dot_local/share/Anki2/gldriver6 b/home/dot_local/share/Anki2/gldriver6
new file mode 100644
index 0000000..865faf1
--- /dev/null
+++ b/home/dot_local/share/Anki2/gldriver6
@@ -0,0 +1 @@
+auto
diff --git a/.local/share/applications/addtorrent.desktop b/home/dot_local/share/applications/addtorrent.desktop
index fe590d6..fe590d6 100644
--- a/.local/share/applications/addtorrent.desktop
+++ b/home/dot_local/share/applications/addtorrent.desktop
diff --git a/.local/share/applications/discord.desktop b/home/dot_local/share/applications/discord.desktop
index 403a457..403a457 100644
--- a/.local/share/applications/discord.desktop
+++ b/home/dot_local/share/applications/discord.desktop
diff --git a/home/dot_local/share/applications/mozc-dictionary.desktop b/home/dot_local/share/applications/mozc-dictionary.desktop
new file mode 100644
index 0000000..c4f6193
--- /dev/null
+++ b/home/dot_local/share/applications/mozc-dictionary.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Mozc dictionary tool
+Name[ja]=Mozc 辞書ツール
+Name[nl]=Mozc woordenboekhulpprogramma
+GenericName[ja]=日本語入力の辞書ツール
+GenericName[nl]=Hulpprogramma voor woordenboek van Japanse invoer
+GenericName=Japanese input method dictionary tool
+Exec=/usr/lib/mozc/mozc_tool --mode=dictionary_tool
+Icon=mozc
+Type=Application
+Categories=Settings;
diff --git a/home/dot_local/share/applications/mozc-settings.desktop b/home/dot_local/share/applications/mozc-settings.desktop
new file mode 100644
index 0000000..bcfde2d
--- /dev/null
+++ b/home/dot_local/share/applications/mozc-settings.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Mozc settings
+Name[ja]=Mozc プロパティ
+Name[nl]=Mozc instellingen
+GenericName[ja]=日本語入力の設定
+GenericName[nl]=Instellingen voor Japanse invoermethode
+GenericName=Japanese IME configuration
+Exec=/usr/lib/mozc/mozc_tool --mode=config_dialog
+Icon=mozc
+Type=Application
+Categories=Settings;
diff --git a/.local/share/bin/16 b/home/dot_local/share/bin/executable_16
index f8cc49f..5c632d5 100755..100644
--- a/.local/share/bin/16
+++ b/home/dot_local/share/bin/executable_16
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
python3 -c 'import sys ; print(f"{int(sys.stdin.read().strip()):x}")'
diff --git a/home/dot_local/share/bin/executable_= b/home/dot_local/share/bin/executable_=
new file mode 100644
index 0000000..7474cf8
--- /dev/null
+++ b/home/dot_local/share/bin/executable_=
@@ -0,0 +1,45 @@
+#!/usr/bin/env -S python3 --
+from sys import argv as _argv
+from os import environ as _environ, path as _path
+from math import *
+
+_ans_path = _path.join(_environ["XDG_CACHE_HOME"], "calc_ans")
+try:
+ _ans_file = open(_ans_path, "r+")
+except:
+ _ans_file = open(_ans_path, "w+")
+_exit_code = 0
+
+ans = 0
+try:
+ _ans_str = _ans_file.read()
+ if "." in _ans_str:
+ ans = float(_ans_str)
+ else:
+ ans = int(_ans_str)
+except:
+ pass
+
+deg = pi / 180
+
+MIN = min
+MAX = max
+BIT = lambda n: 1 << n
+GENMASK = lambda h, l: (BIT(MAX(h, l) + 1) - 1) ^ (BIT(MIN(h, l)) - 1)
+KB = lambda x: x << 10
+MB = lambda x: x << 20
+GB = lambda x: x << 30
+
+try:
+ ans = eval(" ".join(_argv[1:]))
+ print(ans)
+except:
+ pass
+
+_ans_file.truncate(0)
+_ans_file.seek(0)
+_ans_file.write(str(ans))
+_ans_file.close()
+
+exit(_exit_code)
+
diff --git a/.local/share/bin/addtoqueue b/home/dot_local/share/bin/executable_addtoqueue
index 535e250..92ed8e7 100755..100644
--- a/.local/share/bin/addtoqueue
+++ b/home/dot_local/share/bin/executable_addtoqueue
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
exec st -T "[floating]" -g 120x20 -e fzmp
diff --git a/.local/share/bin/addtorrent b/home/dot_local/share/bin/executable_addtorrent
index bf238d6..35da3d7 100755..100644
--- a/.local/share/bin/addtorrent
+++ b/home/dot_local/share/bin/executable_addtorrent
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
progname="$(basename "$0")"
title="Torrent"
diff --git a/.local/share/bin/androidwifistore2pass b/home/dot_local/share/bin/executable_androidwifistore2pass
index b03eb9d..0265fc6 100755..100644
--- a/.local/share/bin/androidwifistore2pass
+++ b/home/dot_local/share/bin/executable_androidwifistore2pass
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# Use xmlstarlet and ADB to pull WifiConfigStore.xml from a (rooted) Android
# phone and import wifi network passwords into pass. Tested with a rooted pixel
# 4a (sunfish) running LineageOS 21 (Android 14)
diff --git a/.local/share/bin/ansi2polybar b/home/dot_local/share/bin/executable_ansi2polybar
index e543ce5..d37bc19 100755..100644
--- a/.local/share/bin/ansi2polybar
+++ b/home/dot_local/share/bin/executable_ansi2polybar
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# convert ansi escape codes into polybar/lemonbar color tags. this script makes
# some very dumb assumptions about which escape codes will be in the input
# stream, and is by no means complete, just good enough
diff --git a/.local/share/bin/bgcol b/home/dot_local/share/bin/executable_bgcol
index 276e479..92eed09 100755..100644
--- a/.local/share/bin/bgcol
+++ b/home/dot_local/share/bin/executable_bgcol
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
COLOR="$1"
if [ -z "$COLOR" ] ; then
. "$XDG_CACHE_HOME/mode/state/theme"
diff --git a/.local/share/bin/bootloader b/home/dot_local/share/bin/executable_bootloader
index c310d4f..73063cf 100755..100644
--- a/.local/share/bin/bootloader
+++ b/home/dot_local/share/bin/executable_bootloader
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
bye () {
echo "run me as root!"
diff --git a/.local/share/bin/brightness b/home/dot_local/share/bin/executable_brightness
index c1c6139..9c96529 100755..100644
--- a/.local/share/bin/brightness
+++ b/home/dot_local/share/bin/executable_brightness
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
case "$*" in
+*) action="+" ;;
-*) action="-" ;;
diff --git a/.local/share/bin/caffeine b/home/dot_local/share/bin/executable_caffeine
index 9901426..9b58a59 100755..100644
--- a/.local/share/bin/caffeine
+++ b/home/dot_local/share/bin/executable_caffeine
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
xset s off -dpms
reset() {
trap - EXIT
diff --git a/.local/share/bin/cc1080p30 b/home/dot_local/share/bin/executable_cc1080p30
index 6619a17..173b51c 100755..100644
--- a/.local/share/bin/cc1080p30
+++ b/home/dot_local/share/bin/executable_cc1080p30
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
ccpreview 1920 1080 30
diff --git a/.local/share/bin/cc720p60 b/home/dot_local/share/bin/executable_cc720p60
index c78fe6d..9f811ba 100755..100644
--- a/.local/share/bin/cc720p60
+++ b/home/dot_local/share/bin/executable_cc720p60
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
ccpreview 1280 720 60
diff --git a/.local/share/bin/ccpreview b/home/dot_local/share/bin/executable_ccpreview
index 9f13acc..b06c45f 100755..100644
--- a/.local/share/bin/ccpreview
+++ b/home/dot_local/share/bin/executable_ccpreview
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# capture card sysfs device path
SYSFS_PATH="/devices/pci0000:00/0000:00:14.0/usb1/1-12"
diff --git a/home/dot_local/share/bin/executable_clean b/home/dot_local/share/bin/executable_clean
new file mode 100644
index 0000000..da7fab7
--- /dev/null
+++ b/home/dot_local/share/bin/executable_clean
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+[ -n "$UB_SOCKET" ] && ueberzugpp cmd --socket "$UB_SOCKET" --action remove --identifier PREVIEW
+
diff --git a/home/dot_local/share/bin/executable_copy.tmpl b/home/dot_local/share/bin/executable_copy.tmpl
new file mode 100755
index 0000000..dde46b3
--- /dev/null
+++ b/home/dot_local/share/bin/executable_copy.tmpl
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+{{- if eq .chezmoi.os "darwin" }}
+exec pbcopy
+{{- else if eq .chezmoi.os "linux" }}
+exec xclip -selection clipboard -in
+{{- end }}
diff --git a/.local/share/bin/darkroom b/home/dot_local/share/bin/executable_darkroom
index 28e2589..dd69711 100755..100644
--- a/.local/share/bin/darkroom
+++ b/home/dot_local/share/bin/executable_darkroom
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
SCREENS="`xrandr | grep ' connected ' | cut -f1 -d' '`"
diff --git a/home/dot_local/share/bin/executable_dbg b/home/dot_local/share/bin/executable_dbg
new file mode 100644
index 0000000..51d9227
--- /dev/null
+++ b/home/dot_local/share/bin/executable_dbg
@@ -0,0 +1,104 @@
+#!/usr/bin/env python3
+
+from argparse import ArgumentParser
+from dataclasses import dataclass
+from os import execvp
+from pathlib import Path
+import importlib.util
+
+@dataclass
+class Options:
+ args: list[str]
+ gdb: str
+ dev_id: str | None
+
+def parse_arguments() -> Options:
+ parser = ArgumentParser(prog="dbg", description="GDB wrapper with automatic stuff")
+
+ parser.add_argument("--gdb", default="arm-none-eabi-gdb", help="GDB executable to use")
+ parser.add_argument("-i", "--dev-id", type=str, help="J-Link probe serial number to connect to (USB)")
+
+ options, remainder = parser.parse_known_args()
+ if len(remainder) > 0 and remainder[0] == "--":
+ del remainder[0]
+ return Options(**vars(options), args=remainder)
+
+def gdbarg_eval(eval_command: str):
+ return "--eval-command=" + eval_command
+
+def gdbarg_exec(path: str, secondary: bool = False):
+ if not secondary:
+ return "--se=" + path
+ else:
+ return gdbarg_eval("add-symbol-file " + path)
+
+
+def find_zephyr_sysbuild_executable() -> list[str]:
+ # TODO
+ return [ ]
+
+def find_zephyr_executable() -> list[str]:
+ out = []
+
+ if not Path("build/zephyr").exists():
+ return out
+
+ if not out:
+ zephyr = Path("build/zephyr/zephyr.elf")
+ if zephyr.exists():
+ out.append(gdbarg_exec(str(zephyr), False))
+ tfm = Path("build/tfm/bin/tfm_s.elf")
+ if tfm.exists():
+ out.append(gdbarg_exec(str(tfm), True))
+
+ if not out:
+ out += find_zephyr_sysbuild_executable()
+
+ return out
+
+def find_generic_executable(base: Path = Path("."), maxdepth: int = 3) -> list[str]:
+ if maxdepth == 0:
+ return []
+ out = []
+ for child in base.iterdir():
+ if child.is_dir():
+ out += find_generic_executable(child, maxdepth - 1)
+ if out:
+ return out
+ elif child.is_file():
+ if not child.name.endswith(".elf"):
+ continue
+ return [gdbarg_exec(str(child))]
+ else:
+ continue
+ return []
+
+def find_executable() -> list[str]:
+ out = []
+
+ out += find_zephyr_executable()
+ if out:
+ return out
+
+ out += find_generic_executable()
+ if out:
+ return out
+
+ return out
+
+if __name__ == "__main__":
+ options = parse_arguments()
+
+ if len(options.args) == 0:
+ options.args += find_executable()
+
+ if importlib.util.find_spec("debug_renesas") is not None:
+ if options.dev_id is not None:
+ options.args.append(gdbarg_eval(f"jlink server usb {options.dev_id}"))
+ options.args += [
+ gdbarg_eval("set jlink autoconnect on"),
+ gdbarg_eval("set jlink watchdog on"),
+ ]
+
+ execvp(options.gdb, [options.gdb] + options.args)
+
diff --git a/.local/share/bin/dbg_xprop b/home/dot_local/share/bin/executable_dbg_xprop
index 1aa0b0c..962fdc1 100755..100644
--- a/.local/share/bin/dbg_xprop
+++ b/home/dot_local/share/bin/executable_dbg_xprop
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# debug xprop
#
# runs xprop for all newly created windows (when mouse capture is not
diff --git a/.local/share/bin/decsync2plain b/home/dot_local/share/bin/executable_decsync2plain
index 745a1c2..ace2e54 100755..100644
--- a/.local/share/bin/decsync2plain
+++ b/home/dot_local/share/bin/executable_decsync2plain
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
EXEC_NAME="$(basename "$0")"
EXTENSION="$1"
diff --git a/home/dot_local/share/bin/executable_delta b/home/dot_local/share/bin/executable_delta
new file mode 100644
index 0000000..ba38faa
--- /dev/null
+++ b/home/dot_local/share/bin/executable_delta
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+[ -e "$XDG_CACHE_HOME/mode/state/vars" ] && . "$XDG_CACHE_HOME/mode/state/vars"
+[ "$mode" = "light" ] && theme="--light" || theme="--dark"
+exec /bin/delta "$theme" "$@"
diff --git a/.local/share/bin/discord b/home/dot_local/share/bin/executable_discord
index d2f894b..c72c375 100755..100644
--- a/.local/share/bin/discord
+++ b/home/dot_local/share/bin/executable_discord
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
installbd
exec /usr/bin/discord "$@"
diff --git a/home/dot_local/share/bin/executable_dox-open b/home/dot_local/share/bin/executable_dox-open
new file mode 100644
index 0000000..b259c27
--- /dev/null
+++ b/home/dot_local/share/bin/executable_dox-open
@@ -0,0 +1,31 @@
+#!/usr/bin/env node
+
+import { glob, readFile } from 'node:fs/promises';
+import { spawn } from 'node:child_process';
+import { argv, chdir, cwd } from 'node:process';
+import { join } from 'node:path';
+
+argv.shift();
+argv.shift();
+chdir("search");
+
+var symbols = {};
+for await (const chunk of glob('all_*.js')) {
+ const contents = await readFile(chunk);
+ const searchData = eval(`${contents}; searchData`);
+ const here = cwd();
+
+ for (const [ _id, [ symbol, ...entry ] ] of searchData) {
+ symbols[symbol] = entry.map(e => `file://${join(here, e[0])}`);
+ }
+}
+
+for (const symbol of argv) {
+ if (!(symbol in symbols)) {
+ console.error(`No doxygen index for symbol \`${symbol}\``);
+ continue;
+ }
+ const urls = symbols[symbol];
+ spawn('xdg-open', [ urls[0], ]);
+}
+
diff --git a/home/dot_local/share/bin/executable_editor b/home/dot_local/share/bin/executable_editor
new file mode 100644
index 0000000..277fbec
--- /dev/null
+++ b/home/dot_local/share/bin/executable_editor
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+exec nvim -p "$@"
diff --git a/.local/share/bin/extmon b/home/dot_local/share/bin/executable_extmon
index dcaa0b3..92d6cb7 100755..100644
--- a/.local/share/bin/extmon
+++ b/home/dot_local/share/bin/executable_extmon
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
out_int="eDP1"
out_ext="HDMI1"
res_int="1366x768"
diff --git a/.local/share/bin/fcitx5-temp-off b/home/dot_local/share/bin/executable_fcitx5-temp-off
index b2f8ea9..e95e69f 100755..100644
--- a/.local/share/bin/fcitx5-temp-off
+++ b/home/dot_local/share/bin/executable_fcitx5-temp-off
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mkdir -p "$XDG_DATA_HOME/fcitx5"
fcitx5-remote > "$XDG_DATA_HOME/fcitx5/state"
fcitx5-remote -n > "$XDG_DATA_HOME/fcitx5/ime_name"
diff --git a/.local/share/bin/fcitx5-temp-restore b/home/dot_local/share/bin/executable_fcitx5-temp-restore
index d00b11c..4cc77ad 100755..100644
--- a/.local/share/bin/fcitx5-temp-restore
+++ b/home/dot_local/share/bin/executable_fcitx5-temp-restore
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ ! -e "$XDG_DATA_HOME/fcitx5/state" ] && exit
[ ! -e "$XDG_DATA_HOME/fcitx5/ime_name" ] && exit
diff --git a/.local/share/bin/ffmpeg-resize b/home/dot_local/share/bin/executable_ffmpeg-resize
index 4270278..4a1210b 100755..100644
--- a/.local/share/bin/ffmpeg-resize
+++ b/home/dot_local/share/bin/executable_ffmpeg-resize
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Re-encode a video to a target size in MB.
# Example:
diff --git a/.local/share/bin/folder2cd b/home/dot_local/share/bin/executable_folder2cd
index 558c6ab..0dd629d 100755..100644
--- a/.local/share/bin/folder2cd
+++ b/home/dot_local/share/bin/executable_folder2cd
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
FILEEXT="flac"
set -e
diff --git a/home/dot_local/share/bin/executable_fontfix b/home/dot_local/share/bin/executable_fontfix
new file mode 100644
index 0000000..66cc869
--- /dev/null
+++ b/home/dot_local/share/bin/executable_fontfix
@@ -0,0 +1,39 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+from pathlib import Path
+
+from fontTools import ttLib
+
+PROPID_FAMILY = 1
+PROPID_SUBFAMILY = 2
+PROPID_FULLNAME = 4
+PROPID_PSNAME = 6
+
+PLATFORM_MS = 1
+PLATFORM_MAC = 3
+
+# see
+# https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html
+# for magic numbers
+
+for folder in Path(".").iterdir():
+ print(f"{folder}/")
+ family_name = str(folder.stem)
+ for file in folder.glob("*.ttf"):
+ subfamily_name = file.stem.removeprefix(family_name).strip()
+ with ttLib.TTFont(file) as ttf:
+ nametable = ttf["name"]
+ full_name = f"{family_name} {subfamily_name}"
+ postscript_name = f"{family_name}-{subfamily_name}".replace(" ", "")
+ nametable.setName(family_name, PROPID_FAMILY, PLATFORM_MS, 0, 0)
+ nametable.setName(family_name, PROPID_FAMILY, PLATFORM_MAC, 1, 1033)
+ nametable.setName(subfamily_name, PROPID_SUBFAMILY, PLATFORM_MS, 0, 0)
+ nametable.setName(subfamily_name, PROPID_SUBFAMILY, PLATFORM_MAC, 1, 1033)
+ nametable.setName(full_name, PROPID_FULLNAME, PLATFORM_MS, 0, 0)
+ nametable.setName(full_name, PROPID_FULLNAME, PLATFORM_MAC, 1, 1033)
+ nametable.setName(postscript_name, PROPID_PSNAME, PLATFORM_MS, 0, 0)
+ nametable.setName(postscript_name, PROPID_PSNAME, PLATFORM_MAC, 1, 1033)
+ ttf.save(file)
+ print(f" {file.name}: [{family_name} :: {subfamily_name}]")
diff --git a/home/dot_local/share/bin/executable_fork.tmpl b/home/dot_local/share/bin/executable_fork.tmpl
new file mode 100644
index 0000000..419b1d3
--- /dev/null
+++ b/home/dot_local/share/bin/executable_fork.tmpl
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+({{- if eq .chezmoi.os "linux" }}setsid{{- else -}}nohup{{- end }} "$@" > /dev/null 2> /dev/null &)
diff --git a/.local/share/bin/fv b/home/dot_local/share/bin/executable_fv
index 5ce4f2e..d0d7b51 100755..100644
--- a/.local/share/bin/fv
+++ b/home/dot_local/share/bin/executable_fv
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
fzf --multi --print0 | exec xargs -r0 $EDITOR
diff --git a/.local/share/bin/gpg-git b/home/dot_local/share/bin/executable_gpg-git.tmpl
index df0feca..d78200e 100755..100644
--- a/.local/share/bin/gpg-git
+++ b/home/dot_local/share/bin/executable_gpg-git.tmpl
@@ -1,4 +1,6 @@
-#!/bin/sh
-GPG_KEY_ID="$GPG_ID_GIT" # see ~/.profile
+#!/usr/bin/env sh
+{{- with ( dig "git" "gpg_id" nil . ) }}
+GPG_KEY_ID="{{ . }}"
GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)"
gpg --batch --no-tty --pinentry-mode loopback --passphrase "$GPG_KEY_PASSPHRASE" "$@"
+{{- end }}
diff --git a/home/dot_local/share/bin/executable_helium-browser b/home/dot_local/share/bin/executable_helium-browser
new file mode 100644
index 0000000..66429c8
--- /dev/null
+++ b/home/dot_local/share/bin/executable_helium-browser
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+/usr/bin/helium-browser \
+ --load-extension="$XDG_CACHE_HOME/mode/chromium" \
+ --password-store=basic \
+ "$@"
diff --git a/.local/share/bin/hide b/home/dot_local/share/bin/executable_hide
index cb49be0..027eba3 100755..100644
--- a/.local/share/bin/hide
+++ b/home/dot_local/share/bin/executable_hide
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
for file in "$@" ; do
mv "$file" ".$file"
done
diff --git a/.local/share/bin/icalcat b/home/dot_local/share/bin/executable_icalcat
index 2e89afd..b3768a7 100755..100644
--- a/.local/share/bin/icalcat
+++ b/home/dot_local/share/bin/executable_icalcat
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
cat << "EOF"
BEGIN:VCALENDAR
VERSION:2.0
diff --git a/.local/share/bin/installbd b/home/dot_local/share/bin/executable_installbd
index ae17002..70483de 100755..100644
--- a/.local/share/bin/installbd
+++ b/home/dot_local/share/bin/executable_installbd
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
discord_path="$(dirname "$(find "$XDG_CONFIG_HOME/discord" -name core.asar)")"
discord_version="$(echo "$discord_path" | tr '/' '\n' | tac | sed -n '/^[0-9.]\+$/p' | head -n1)"
betterdiscord_path="$XDG_CONFIG_HOME/BetterDiscord/data/betterdiscord.asar"
diff --git a/.local/share/bin/java b/home/dot_local/share/bin/executable_java
index 06fdb61..671f429 100755..100644
--- a/.local/share/bin/java
+++ b/home/dot_local/share/bin/executable_java
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
export _JAVA_AWT_WM_NONREPARENTING=1
exec /usr/bin/java \
-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java" \
diff --git a/.local/share/bin/kbindicator b/home/dot_local/share/bin/executable_kbindicator
index ca2acfd..0ea338e 100755..100644
--- a/.local/share/bin/kbindicator
+++ b/home/dot_local/share/bin/executable_kbindicator
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/usr/bin/env sh
query_kb_layout() {
CONTROLLER="$(qdbus 'org.fcitx.Fcitx5' '/controller' 'org.fcitx.Fcitx.Controller1.CurrentInputMethod')"
case $CONTROLLER in
- "keyboard-us") echo "us" ;;
- "keyboard-us-intl") echo "us-intl" ;;
- "mozc") echo "jp" ;;
+ "keyboard-us") echo "英数" ;;
+ "keyboard-us-intl") echo "英数(国際)" ;;
+ "mozc") echo "日本語" ;;
*) ;;
esac
}
diff --git a/.local/share/bin/khal b/home/dot_local/share/bin/executable_khal
index 71e5392..761e293 100755..100644
--- a/.local/share/bin/khal
+++ b/home/dot_local/share/bin/executable_khal
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CFG="$XDG_CONFIG_HOME/khal/config"
if [ "$CFG" -ot "$XDG_CONFIG_HOME/khal/config.sh" ] ; then
cat - "$XDG_CONFIG_HOME/khal/base" << "EOF" > "$CFG"
diff --git a/.local/share/bin/khard b/home/dot_local/share/bin/executable_khard
index cb02889..b8c08e7 100755..100644
--- a/.local/share/bin/khard
+++ b/home/dot_local/share/bin/executable_khard
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CFG="$XDG_CONFIG_HOME/khard/khard.conf"
if [ "$CFG" -ot "$XDG_CONFIG_HOME/khard/config.sh" ] ; then
cat - "$XDG_CONFIG_HOME/khard/base" << "EOF" > "$CFG"
diff --git a/home/dot_local/share/bin/executable_labels2lrc b/home/dot_local/share/bin/executable_labels2lrc
new file mode 100644
index 0000000..9379417
--- /dev/null
+++ b/home/dot_local/share/bin/executable_labels2lrc
@@ -0,0 +1,30 @@
+#!/usr/bin/env python3
+
+import re
+import sys
+
+for line in sys.stdin:
+ line = line.rstrip("\n")
+ fields = line.split("\t")
+
+ if len(fields) < 3:
+ continue
+
+ time = fields[0]
+
+ # Equivalent of:
+ # gensub(/([0-9]+)\.([0-9]{,2})([0-9]*)/, "\\1\\2.\\3", "g", time)
+ time = re.sub(r'(\d+)\.(\d{0,2})(\d*)', r'\1\2.\3', time)
+
+ # AWK rounds by adding 0.5 then truncating.
+ time = int(float(time) + 0.5)
+
+ millis = time % 100
+ time //= 100
+
+ seconds = time % 60
+ time //= 60
+
+ minutes = time % 100
+
+ print(f"[{minutes:02d}:{seconds:02d}.{millis:02d}]{fields[2]}")
diff --git a/home/dot_local/share/bin/executable_latex-doc b/home/dot_local/share/bin/executable_latex-doc
new file mode 100644
index 0000000..f63239f
--- /dev/null
+++ b/home/dot_local/share/bin/executable_latex-doc
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+set -e
+cd /usr/share/doc/texlive/latex
+fork xdg-open "$(find . -name '*.pdf' | fzf)"
diff --git a/home/dot_local/share/bin/executable_lf b/home/dot_local/share/bin/executable_lf
new file mode 100644
index 0000000..a7ac57f
--- /dev/null
+++ b/home/dot_local/share/bin/executable_lf
@@ -0,0 +1,23 @@
+#!/usr/bin/env sh
+lf=/usr/bin/lf
+
+UB_PID=0
+UB_SOCKET=""
+UB_PID_FILE="$(mktemp)"
+
+cleanup() {
+ exec 3>&-
+ ueberzugpp cmd -s "$UB_SOCKET" -a exit
+}
+
+# don't try to use ueberzug over ssh
+[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && exec $lf "$@"
+
+ueberzugpp layer --silent --no-stdin --use-escape-codes --pid-file "$UB_PID_FILE" >/dev/null
+UB_PID="$(cat "$UB_PID_FILE")"
+rm -f "$UB_PID_FILE"
+UB_SOCKET="/tmp/ueberzugpp-$UB_PID.socket"
+export UB_PID UB_SOCKET
+trap cleanup HUP INT QUIT TERM EXIT
+$lf "$@" 3>&-
+
diff --git a/.local/share/bin/lights b/home/dot_local/share/bin/executable_lights
index 69ea06c..490d227 100755..100644
--- a/.local/share/bin/lights
+++ b/home/dot_local/share/bin/executable_lights
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
cmd="$1"
[ -z "$cmd" ] && cmd="toggle"
curl -X POST "$HASS_SERVER/api/webhook/$cmd"
diff --git a/.local/share/bin/lock b/home/dot_local/share/bin/executable_lock
index 988c0ec..b49f040 100755..100644
--- a/.local/share/bin/lock
+++ b/home/dot_local/share/bin/executable_lock
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
xset s 15 15
slock
xset s default
diff --git a/.local/share/bin/lorem b/home/dot_local/share/bin/executable_lorem
index 5ef3171..8b1541f 100755..100644
--- a/.local/share/bin/lorem
+++ b/home/dot_local/share/bin/executable_lorem
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
lorem_text="$(cat << EOF
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida dictum fusce ut placerat orci nulla pellentesque. Laoreet id donec ultrices tincidunt arcu. Tortor aliquam nulla facilisi cras fermentum odio eu feugiat. A scelerisque purus semper eget duis at tellus. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet. Arcu bibendum at varius vel pharetra vel turpis nunc eget. Euismod in pellentesque massa placerat duis. Lorem ipsum dolor sit amet consectetur adipiscing elit. Ultrices in iaculis nunc sed augue lacus. Vestibulum mattis ullamcorper velit sed. Adipiscing diam donec adipiscing tristique risus nec feugiat in fermentum. Elit pellentesque habitant morbi tristique senectus et. Ullamcorper sit amet risus nullam eget felis eget nunc lobortis. Vestibulum sed arcu non odio. Vestibulum sed arcu non odio euismod lacinia. Maecenas pharetra convallis posuere morbi leo urna molestie at. Sit amet consectetur adipiscing elit duis tristique sollicitudin. Curabitur gravida arcu ac tortor dignissim convallis aenean et. Nunc sed blandit libero volutpat sed cras ornare arcu. Eu nisl nunc mi ipsum faucibus vitae aliquet nec. Vehicula ipsum a arcu cursus. Arcu felis bibendum ut tristique et. Lobortis scelerisque fermentum dui faucibus in ornare. In arcu cursus euismod quis viverra nibh cras pulvinar. Integer malesuada nunc vel risus. Elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus. Viverra nam libero justo laoreet. Felis bibendum ut tristique et. Neque volutpat ac tincidunt vitae semper quis. Semper feugiat nibh sed pulvinar proin gravida hendrerit. Arcu bibendum at varius vel pharetra vel turpis. Tincidunt arcu non sodales neque. Id aliquet risus feugiat in ante metus. Eget magna fermentum iaculis eu non diam. Tempor id eu nisl nunc mi ipsum. Bibendum enim facilisis gravida neque convallis a cras semper. Parturient montes nascetur ridiculus mus. Tortor pretium viverra suspendisse potenti nullam ac. Mauris vitae ultricies leo integer malesuada nunc. Integer eget aliquet nibh praesent. Lorem ipsum dolor sit amet consectetur. Sit amet consectetur adipiscing elit pellentesque habitant. Habitant morbi tristique senectus et netus et malesuada. Cursus metus aliquam eleifend mi in nulla posuere sollicitudin. Tincidunt dui ut ornare lectus sit amet est. Elementum curabitur vitae nunc sed velit dignissim sodales. Senectus et netus et malesuada fames ac turpis egestas sed. Scelerisque viverra mauris in aliquam sem fringilla ut. Nunc eget lorem dolor sed viverra ipsum nunc aliquet. Egestas egestas fringilla phasellus faucibus scelerisque eleifend donec. Id neque aliquam vestibulum morbi blandit cursus. Enim tortor at auctor urna nunc id cursus metus. Dignissim convallis aenean et tortor at risus viverra. Et malesuada fames ac turpis egestas. Id cursus metus aliquam eleifend mi in nulla posuere. Egestas dui id ornare arcu odio. At elementum eu facilisis sed odio. Ultrices vitae auctor eu augue ut lectus arcu bibendum at. Amet volutpat consequat mauris nunc congue nisi vitae. Enim lobortis scelerisque fermentum dui faucibus in ornare quam. Libero id faucibus nisl tincidunt eget. Amet risus nullam eget felis eget. Ultricies mi eget mauris pharetra. Magnis dis parturient montes nascetur ridiculus mus mauris vitae. Lectus magna fringilla urna porttitor rhoncus dolor purus. Elementum eu facilisis sed odio morbi quis commodo odio. Tincidunt vitae semper quis lectus. Sollicitudin ac orci phasellus egestas tellus rutrum tellus pellentesque eu. Pretium viverra suspendisse potenti nullam ac. Sed egestas egestas fringilla phasellus faucibus scelerisque eleifend donec. Tortor consequat id porta nibh venenatis. Elit at imperdiet dui accumsan sit amet nulla. Sem viverra aliquet eget sit. At in tellus integer feugiat scelerisque varius morbi enim. Dictum fusce ut placerat orci nulla pellentesque. Sed risus pretium quam vulputate dignissim. Tincidunt dui ut ornare lectus sit amet est placerat in. Urna nec tincidunt praesent semper feugiat.
diff --git a/.local/share/bin/lrc2labels b/home/dot_local/share/bin/executable_lrc2labels
index 31aa4be..e1af473 100755..100644
--- a/.local/share/bin/lrc2labels
+++ b/home/dot_local/share/bin/executable_lrc2labels
@@ -1,11 +1,7 @@
-#!/bin/sh
-cat "$@" |\
- gawk '
+#!/usr/bin/env gawk -f
match($0, /^\[([0-9]{2}):([0-9]{2}\.[0-9]{2})\](.*)/, group) {
time = group[1] * 60 + group[2]
lyric = group[3]
printf("%.2f\t%.2f\t%s\n", time, time, lyric)
}
-'
-
diff --git a/home/dot_local/share/bin/executable_lsjlink b/home/dot_local/share/bin/executable_lsjlink
new file mode 100644
index 0000000..bb7d8ee
--- /dev/null
+++ b/home/dot_local/share/bin/executable_lsjlink
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+
+import pylink
+
+jlink = pylink.JLink()
+
+emulators = jlink.connected_emulators()
+
+for emu in emulators:
+ print(f"{emu.SerialNumber}: {emu.acProduct.decode('ascii')}")
+
diff --git a/.local/share/bin/mbsync b/home/dot_local/share/bin/executable_mbsync
index 3f6aa09..c33e83e 100755..100644
--- a/.local/share/bin/mbsync
+++ b/home/dot_local/share/bin/executable_mbsync
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
/usr/bin/mbsync --config "$XDG_CONFIG_HOME/mbsyncrc" "$@"
diff --git a/home/dot_local/share/bin/executable_mk b/home/dot_local/share/bin/executable_mk
new file mode 100644
index 0000000..e2c3ab6
--- /dev/null
+++ b/home/dot_local/share/bin/executable_mk
@@ -0,0 +1,87 @@
+#!/usr/bin/env sh
+progname="$(basename "$0")"
+showmode() {
+ ! [ -n "$FROM_PROMPT" ] && return
+ ! [ -t 1 ] && return
+
+ mode=" ($1)"
+ col=$(( $(tput cols) - $(echo "$mode" | wc -L) + 1 ))
+ printf '\e[1A\e['$col'G\e[1;30m%s\e[0m\n' "$mode"
+}
+
+make_tags() {
+ build_dir="${1-build}"
+
+ if [ -e "$build_dir/domains.yaml" ] ; then
+ yaml2json "$build_dir/domains.yaml" | jq --raw-output '. as $r | $r.flash_order[] as $n | $r.domains[] | select(.name == $n) | .build_dir' | while IFS= read -r build_dir; do
+ echo "Processing: $build_dir"
+ done
+ fi
+
+}
+
+mode_west() {
+ showmode 'west'
+ if [ -z "$*" ] ; then
+ set -- build
+ [ -e sysbuild ] || [ -e sysbuild.conf ] && set -- "$@" --sysbuild
+ fi
+ west "$@"
+ ec=$?
+
+ mktags build &
+
+ exit $ec
+}
+path="."
+for x in $(seq 10) ; do
+ [ -e "$path/.west" ] && mode_west "$@"
+ [ "$path" -ef "$path/.." ] && break
+ path="$path/.."
+done
+
+mode_cmake() {
+ showmode 'cmake'
+ builddir="build"
+
+ [ "$*" = "clean" ] && exec rm -rf "$builddir"
+
+ export CMAKE_GENERATOR="Ninja"
+
+ # re-run configuration if fresh or CMakeLists was changed
+ if [ ! -e "$builddir/build.ninja" ] ||
+ [ "CMakeLists.txt" -nt "$builddir/build.ninja" ] ; then
+ cmake --log-level WARNING -B "$builddir" || exit $?
+ fi
+
+ # build
+ cmake --build "$builddir" -- "$@"
+ ec=$?
+
+ # generate vim tags (continue after mk exits)
+ mktags "$builddir" &
+
+ exit $ec
+}
+[ -e "CMakeLists.txt" ] && mode_cmake "$@"
+
+mode_make() {
+ showmode 'make'
+ exec make "$@"
+}
+[ -e "makefile" ] && mode_make "$@"
+[ -e "Makefile" ] && mode_make "$@"
+
+mode_latexmk() {
+ showmode 'latexmk'
+
+ [ "$*" = "clean" ] && exec latexmk -c
+
+ exec latexmk "$@"
+}
+[ -e "latexmkrc" ] && mode_latexmk "$@"
+[ -e ".latexmkrc" ] && mode_latexmk "$@"
+
+echo "$progname: unable to determine project build system!" >&2
+exit 1
+
diff --git a/home/dot_local/share/bin/executable_mktags b/home/dot_local/share/bin/executable_mktags
new file mode 100644
index 0000000..c90348d
--- /dev/null
+++ b/home/dot_local/share/bin/executable_mktags
@@ -0,0 +1,61 @@
+#!/usr/bin/env python3
+
+from subprocess import run, DEVNULL
+from pathlib import Path
+from dataclasses import dataclass
+from argparse import ArgumentParser
+
+@dataclass
+class Options:
+ build_dir: Path
+
+def parse_arguments() -> Options:
+ parser = ArgumentParser(prog="mktags", description="generate vim tags file from build directory")
+ parser.add_argument("build_dir", type=Path, help="build directory", nargs='?', default=Path("build"))
+
+ options = parser.parse_args()
+ return Options(**vars(options))
+
+def index_files(build_dir: Path) -> list[Path]:
+ lines = [line for line in run(("ninja", "-C", str(build_dir), "-t", "deps"), text=True, capture_output=True).stdout.splitlines()]
+ lines = [line.lstrip() for line in lines if line.startswith(" ")]
+ return [Path(line) for line in lines]
+
+def get_sysbuild_files(domains_yml: Path) -> list[Path]:
+ if not domains_yml.exists():
+ return []
+
+ from yaml import safe_load
+ yaml = safe_load(domains_yml.read_text())
+
+ build_dirs = [next(Path(domain['build_dir']) for domain in yaml['domains'] if domain['name'] == domain_name) for domain_name in yaml['flash_order']]
+
+ files: set[Path] = set()
+ for dir in build_dirs:
+ files.update(get_files(dir))
+
+ return list(files)
+
+def get_files(build_dir: Path) -> list[Path]:
+ files = []
+
+ files += get_sysbuild_files(build_dir.joinpath("domains.yaml"))
+ files += index_files(build_dir)
+
+ return files
+
+def gen_tags(files: list[Path]) -> str:
+ filelist = "\n".join(str(file) for file in files)
+ return run(("ctags", "-L", "-", "-f", "-"), text=True, input=filelist, capture_output=True).stdout
+
+if __name__ == "__main__":
+ options = parse_arguments()
+
+ files = get_files(options.build_dir)
+
+ files = list(set(files))
+
+ tags = gen_tags(files)
+
+ options.build_dir.joinpath("tags").write_text(tags)
+
diff --git a/home/dot_local/share/bin/executable_mozc-config-filter b/home/dot_local/share/bin/executable_mozc-config-filter
new file mode 100644
index 0000000..6e25492
--- /dev/null
+++ b/home/dot_local/share/bin/executable_mozc-config-filter
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+yay_dir="$(yay -Pg | jq --raw-output .buildDir)"
+config_proto="$(mktemp)"
+git --git-dir="$yay_dir/mozc-ut/mozc" show HEAD:src/protocol/config.proto > "$config_proto"
+protoc --proto_path /tmp --decode=mozc.config.Config "$config_proto" < "$1"
+rm -f "$config_proto"
diff --git a/.local/share/bin/nginx-dev b/home/dot_local/share/bin/executable_nginx-dev
index 40e73ad..223737c 100755..100644
--- a/.local/share/bin/nginx-dev
+++ b/home/dot_local/share/bin/executable_nginx-dev
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
folder="$PWD"
port=8080
try_files='/$uri /$uri.html /$uri/index.html =404'
diff --git a/.local/share/bin/open b/home/dot_local/share/bin/executable_open
index 7856488..d207dd1 100755..100644
--- a/.local/share/bin/open
+++ b/home/dot_local/share/bin/executable_open
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
case "$(file --mime-type -Lb "$1")" in
text/*)
exec $EDITOR -- "$@"
diff --git a/.local/share/bin/panic b/home/dot_local/share/bin/executable_panic
index 7455786..c7c64b8 100755..100644
--- a/.local/share/bin/panic
+++ b/home/dot_local/share/bin/executable_panic
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
silent() {
"$@" 1>/dev/null 2> /dev/null &
}
diff --git a/.local/share/bin/pause b/home/dot_local/share/bin/executable_pause
index 8eedbfb..e89c61f 100755..100644
--- a/.local/share/bin/pause
+++ b/home/dot_local/share/bin/executable_pause
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
ec=0
if [ $# -ge 1 ] ; then
"$@"
diff --git a/.local/share/bin/pdfsize b/home/dot_local/share/bin/executable_pdfsize
index 14f940d..87d61ac 100755..100644
--- a/.local/share/bin/pdfsize
+++ b/home/dot_local/share/bin/executable_pdfsize
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
pdfinfo -box "$1" | awk '/^Page size:/ { print $3 * 2.54 / 72.0 * 10 "mm" " x " $5 * 2.54 / 72.0 * 10 "mm" }'
diff --git a/.local/share/bin/pew b/home/dot_local/share/bin/executable_pew
index 70a9673..94043bf 100755..100644
--- a/.local/share/bin/pew
+++ b/home/dot_local/share/bin/executable_pew
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
kill -9 $(xprop | grep "_NET_WM_PID(CARDINAL)" | cut -d' ' -f3)
diff --git a/.local/share/bin/podcast2m3u b/home/dot_local/share/bin/executable_podcast2m3u
index c3b692e..09d6803 100755..100644
--- a/.local/share/bin/podcast2m3u
+++ b/home/dot_local/share/bin/executable_podcast2m3u
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
URL="$1"
TAB="$(printf '\t')"
curl -sLo- "$URL" |\
diff --git a/.local/share/bin/preview b/home/dot_local/share/bin/executable_preview
index 141d03c..9cf2d2f 100755..100644
--- a/.local/share/bin/preview
+++ b/home/dot_local/share/bin/executable_preview
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ -n "$1" ] && FILE="$1" || {
echo "error: no input file"
exit 1
}
-[ -n "$2" ] && WIDTH="$(( "$2" - 3 ))" || WIDTH="$(tput cols)"
+[ -n "$2" ] && WIDTH="$(( "$2" - 1 ))" || WIDTH="$(tput cols)"
[ -n "$3" ] && HEIGHT="$3" || HEIGHT="$(tput lines)"
[ -n "$4" ] && POS_X="$4" || POS_X="0"
[ -n "$5" ] && POS_Y="$5" || POS_Y="0"
@@ -11,7 +11,10 @@
MIMETYPE="$(file --mime-type -Lb "$FILE")"
EXT="${FILE#*.}"
-[ "$EXT" = "md" ] && [ "$MIMETYPE" = "text/plain" ] && MIMETYPE="application/markdown"
+if [ "$MIMETYPE" = "text/plain" ] ; then
+ [ "$EXT" = "md" ] && MIMETYPE="text/markdown"
+ [ "$EXT" = "rst" ] && MIMETYPE="text/x-rst"
+fi
[ "$MIMETYPE" = "application/javascript" ] && MIMETYPE="text/javascript"
render_manpage() {
@@ -24,12 +27,24 @@ EOF
case "$MIMETYPE" in
image/*)
- echo '{
- "action": "add",
- "x": 0,
- "y": 0,
- "path": "/home/loek/docs/frob.jpg"
- }' | ueberzug layer --parser json
+ if [ -z "$UB_SOCKET" ] ; then
+ echo "ueberzug not available"
+ else
+ ueberzugpp cmd \
+ --socket "$UB_SOCKET" \
+ --action add \
+ --identifier PREVIEW \
+ --file "$FILE" \
+ --max-width "$WIDTH" --max-height "$HEIGHT" \
+ --xpos "$POS_X" --ypos "$POS_Y"
+ exit 1 # <- disable cache
+ fi
+ ;;
+ text/markdown)
+ pandoc --from=gfm --to=man "$FILE" | render_manpage
+ ;;
+ text/x-rst)
+ pandoc --from=rst --to=man "$FILE" | render_manpage
;;
text/*)
bat \
@@ -47,9 +62,6 @@ case "$MIMETYPE" in
application/vnd.rar)
bsdtar -tf "$FILE"
;;
- application/markdown)
- pandoc --from=gfm --to=man "$FILE" | render_manpage
- ;;
application/json)
jq --color-output . "$FILE"
;;
@@ -59,3 +71,5 @@ case "$MIMETYPE" in
;;
esac
+exit 0
+
diff --git a/home/dot_local/share/bin/executable_prompt b/home/dot_local/share/bin/executable_prompt
new file mode 100644
index 0000000..53d1b6b
--- /dev/null
+++ b/home/dot_local/share/bin/executable_prompt
@@ -0,0 +1,33 @@
+#!/usr/bin/env sh
+fmt_esc() {
+ printf "%s$1%s" "$eo" "$ec"
+}
+
+fmt_segment() {
+ content="$1"
+ [ -z "$content" ] && return
+ printf '%s%s%s -> %s' "$(fmt_esc '\e[90m')" "${content}" "$(fmt_esc '\e[30m')" "$(fmt_esc '\e[0m')"
+}
+
+fmt_environment() {
+ content="$1"
+ [ -z "$content" ] && return
+ printf '%s(%s%s%s)%s ' "$(fmt_esc '\e[30;40m')" "$(fmt_esc '\e[97m')" "$content" "$(fmt_esc '\e[30;40m')" "$(fmt_esc '\e[0m')"
+}
+
+[ -n "$1" ] && fmt_environment "$1"
+fmt_environment "$VIRTUAL_ENV_PROMPT"
+
+# only display hostname in prompt if connected over SSH
+[ -n "$SSH_CLIENT" ] && fmt_segment "$(hostname)"
+
+# current working directory
+here="$PWD"
+[ "$here" = "$HOME" ] && here="~"
+fmt_segment "$(basename "$here")"
+
+# git status
+git rev-parse --is-inside-work-tree 1> /dev/null 2> /dev/null && fmt_segment "git $(git rev-parse --abbrev-ref HEAD 2> /dev/null)"
+
+# exit happily
+exit 0
diff --git a/home/dot_local/share/bin/executable_qrclip.tmpl b/home/dot_local/share/bin/executable_qrclip.tmpl
new file mode 100644
index 0000000..89d2bca
--- /dev/null
+++ b/home/dot_local/share/bin/executable_qrclip.tmpl
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+{{- if eq .chezmoi.os "darwin" }}
+tmp="$(mktemp)"
+screencapture -i "$tmp"
+zbarimg --raw --quiet "$tmp"
+rm -f "$tmp"
+{{- else if eq .chezmoi.os "linux" }}
+maim -usb 4 -c 0,0,0 | zbarimg --raw --quiet -
+{{- end }}
diff --git a/home/dot_local/share/bin/executable_reload b/home/dot_local/share/bin/executable_reload
new file mode 100644
index 0000000..e7197fa
--- /dev/null
+++ b/home/dot_local/share/bin/executable_reload
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+i3-msg exit
diff --git a/.local/share/bin/rofi b/home/dot_local/share/bin/executable_rofi
index d573764..98e0b61 100755..100644
--- a/.local/share/bin/rofi
+++ b/home/dot_local/share/bin/executable_rofi
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ -e "$XDG_CONFIG_HOME/gtk-4.0/env" ] && . "$XDG_CONFIG_HOME/gtk-4.0/env"
. "$XDG_CACHE_HOME/mode/state/vars"
exec /bin/rofi -no-default-config "$@"
diff --git a/.local/share/bin/scene b/home/dot_local/share/bin/executable_scene
index c7faff6..cb84d5f 100755..100644
--- a/.local/share/bin/scene
+++ b/home/dot_local/share/bin/executable_scene
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CACHE_FILE="$XDG_CACHE_HOME/hass-scenes"
TAB="$(printf '\t')"
diff --git a/home/dot_local/share/bin/executable_screenrecord b/home/dot_local/share/bin/executable_screenrecord
new file mode 100644
index 0000000..eb99b86
--- /dev/null
+++ b/home/dot_local/share/bin/executable_screenrecord
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+exec giph "$@" \
+ --framerate 60 \
+ --select \
+ --bordersize 4 \
+ --color 255,255,255 \
+ "$(date +'%Y-%m-%d_%H-%M-%S.mp4')"
+
diff --git a/.local/share/bin/screenwatch b/home/dot_local/share/bin/executable_screenwatch
index d556fac..8e44f39 100755..100644
--- a/.local/share/bin/screenwatch
+++ b/home/dot_local/share/bin/executable_screenwatch
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# repeatedly open terminal at $dev, even when $dev temporarily dissapears
dev="$1"
while inotifywait -qq -e create --include "$dev" "$(dirname "$dev")"; do
diff --git a/home/dot_local/share/bin/executable_sdk10_compiledb b/home/dot_local/share/bin/executable_sdk10_compiledb
new file mode 100644
index 0000000..a2f0d8c
--- /dev/null
+++ b/home/dot_local/share/bin/executable_sdk10_compiledb
@@ -0,0 +1,38 @@
+#!/usr/bin/env python3
+
+from shlex import split, join
+from sys import argv
+from os import getcwd
+import subprocess
+
+process = subprocess.run(argv[1:], stdout=subprocess.PIPE, stderr=None, env={"LANG": "C"})
+
+dir_stack = [getcwd()]
+expanded_output = []
+
+for line in process.stdout.decode('utf-8').split('\n'):
+ expanded_args = []
+ args = split(line)
+
+ if line.startswith('make: Entering directory'):
+ dir_stack.append(args[-1])
+ expanded_output.append(line)
+ continue
+ if line.startswith('make: Leaving directory'):
+ dir_stack.pop()
+ expanded_output.append(line)
+ continue
+
+ for arg in args:
+ if not arg.startswith('@'):
+ expanded_args.append(arg)
+ continue
+ with open(dir_stack[-1] + '/' + arg[1:], 'r') as file:
+ expanded_args += split(file.read())
+ expanded_output.append(subprocess.list2cmdline(expanded_args))
+
+process = subprocess.Popen(["compiledb"], stdin=subprocess.PIPE, stdout=None, stderr=None, text=True)
+process.stdin.write("\n".join(expanded_output))
+process.stdin.close()
+process.wait()
+
diff --git a/.local/share/bin/set-default b/home/dot_local/share/bin/executable_set-default
index d93f65c..bec105f 100755..100644
--- a/.local/share/bin/set-default
+++ b/home/dot_local/share/bin/executable_set-default
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
SCRIPT_NAME="$(basename "$0")"
usage() {
diff --git a/.local/share/bin/setwacom b/home/dot_local/share/bin/executable_setwacom
index d7427a6..ae2f2ea 100755..100644
--- a/.local/share/bin/setwacom
+++ b/home/dot_local/share/bin/executable_setwacom
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
xsetwacom set "Wacom Intuos PT S 2 Pen stylus" $@
diff --git a/.local/share/bin/single2folder b/home/dot_local/share/bin/executable_single2folder
index b3b2d30..747be28 100755..100644
--- a/.local/share/bin/single2folder
+++ b/home/dot_local/share/bin/executable_single2folder
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
file=$1
foldername=$(basename "$file" .flac)
diff --git a/.local/share/bin/spec b/home/dot_local/share/bin/executable_spec
index 7d500dc..1651c0f 100755..100644
--- a/.local/share/bin/spec
+++ b/home/dot_local/share/bin/executable_spec
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
sox "$1" -n spectrogram -o - | feh --class floating -
diff --git a/.local/share/bin/subrename b/home/dot_local/share/bin/executable_subrename
index 16d913f..071b2e7 100755..100644
--- a/.local/share/bin/subrename
+++ b/home/dot_local/share/bin/executable_subrename
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
file_extension=".srt"
season=1
episode=1
@@ -48,7 +48,7 @@ fi
for file in "$@" ; do
new_filename="$(printf 's%02de%02d%s\n' "$season" "$episode" "$file_extension")"
- mv --verbose "$file" "$new_filename"
+ mv -v "$file" "$new_filename"
episode=$(( $episode + 1 ))
done
diff --git a/.local/share/bin/time2tsv b/home/dot_local/share/bin/executable_time2tsv
index 4cc369d..8fe5ac4 100755..100644
--- a/.local/share/bin/time2tsv
+++ b/home/dot_local/share/bin/executable_time2tsv
@@ -1,4 +1,4 @@
-#!/bin/awk -f
+#!/usr/bin/env awk -f
# ignore empty or comment lines
/^\s*#/ { next }
diff --git a/.local/share/bin/timefmt b/home/dot_local/share/bin/executable_timefmt
index c78fb95..ca0b36f 100755..100644
--- a/.local/share/bin/timefmt
+++ b/home/dot_local/share/bin/executable_timefmt
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $# -eq 0 ] && sum="$(cat)" || sum="$1"
sum="$(echo "$sum" | tr -dc '[:digit:]')"
if [ -z "$sum" ] ; then
diff --git a/.local/share/bin/timerep b/home/dot_local/share/bin/executable_timerep
index e09d6c1..be7d965 100755..100644
--- a/.local/share/bin/timerep
+++ b/home/dot_local/share/bin/executable_timerep
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
TAB="$(printf '\t')"
time2tsv "$@" | sort -t"$TAB" -k4 | awk -F"$TAB" '
{
diff --git a/.local/share/bin/timesum b/home/dot_local/share/bin/executable_timesum
index 6284ca4..8379376 100755..100644
--- a/.local/share/bin/timesum
+++ b/home/dot_local/share/bin/executable_timesum
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
TAB="$(printf '\t')"
time2tsv "$@" | cut -d"$TAB" -f3 | paste -sd+ - | bc | timefmt
diff --git a/.local/share/bin/toetsrooster2ical b/home/dot_local/share/bin/executable_toetsrooster2ical
index 5de58cb..0f13ea2 100755..100644
--- a/.local/share/bin/toetsrooster2ical
+++ b/home/dot_local/share/bin/executable_toetsrooster2ical
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
import sys
import xlrd
diff --git a/.local/share/bin/vdirsyncer b/home/dot_local/share/bin/executable_vdirsyncer
index 7869f19..6112823 100755..100644
--- a/.local/share/bin/vdirsyncer
+++ b/home/dot_local/share/bin/executable_vdirsyncer
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CFG_TMP="$XDG_CONFIG_HOME/vdirsyncer/config"
mkfifo --mode 700 "$CFG_TMP"
"$XDG_CONFIG_HOME/vdirsyncer/config_gen" > "$CFG_TMP" &
diff --git a/home/dot_local/share/bin/executable_venvgen b/home/dot_local/share/bin/executable_venvgen
new file mode 100644
index 0000000..3ce41ac
--- /dev/null
+++ b/home/dot_local/share/bin/executable_venvgen
@@ -0,0 +1,47 @@
+#!/usr/bin/env bash
+
+# check if the input is valid
+for arg in "$@" ; do
+ case "$arg" in
+ *=*) ;;
+ *)
+ echo "error: missing assignment operator in argument ($arg)" >&2
+ exit 1
+ ;;
+ esac
+done
+
+# shebang
+printf '#!/bin/sh\n'
+
+# save old variables
+for arg in "$@" ; do
+ name="${arg%%=*}"
+ eval "hasval=\${$name+x}"
+ [ -n "$hasval" ] && printf '_%s="${%s}"\n' "$name" "$name"
+done
+
+# set new variables
+for arg in "$@" ; do
+ name="${arg%%=*}"
+ value="${arg#*=}"
+ printf 'export %s=%q\n' "$name" "$value"
+done
+
+# deactivate function
+printf 'deactivate() {\n'
+for arg in "$@" ; do
+ name="${arg%%=*}"
+ eval "hasval=\${$name+x}"
+ if [ -n "$hasval" ] ; then
+ printf '\t%s="${_%s}"\n' "$name" "$name"
+ printf '\tunset -v _%s\n' "$name"
+ else
+ printf '\tunset -v %s\n' "$name"
+ fi
+done
+printf '\thash -r 2>/dev/null\n'
+printf '\tunset -f deactivate\n'
+printf '}\n'
+printf 'hash -r 2>/dev/null\n'
+
diff --git a/.local/share/bin/vodchat b/home/dot_local/share/bin/executable_vodchat
index f233348..b5bdbf8 100755..100644
--- a/.local/share/bin/vodchat
+++ b/home/dot_local/share/bin/executable_vodchat
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
input_file="$1"
jq --raw-output '.replayChatItemAction.actions[].addChatItemAction.item.liveChatTextMessageRenderer | "[" + (.timestampUsec | tonumber / 1e6 | todateiso8601) + "] " + .authorName.simpleText + ": " + .message.runs[].text' "$input_file" 2>/dev/null
diff --git a/.local/share/bin/wacommode b/home/dot_local/share/bin/executable_wacommode
index 2563895..85baeb8 100755..100644
--- a/.local/share/bin/wacommode
+++ b/home/dot_local/share/bin/executable_wacommode
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
defaults () {
# smoothing
diff --git a/.local/share/bin/wacomshortcuts b/home/dot_local/share/bin/executable_wacomshortcuts
index 911e7ff..237c860 100755..100644
--- a/.local/share/bin/wacomshortcuts
+++ b/home/dot_local/share/bin/executable_wacomshortcuts
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# tablet buttons
xsetwacom set "Wacom Intuos PT S 2 Pad pad" Button 3 "key +super +alt +ctrl 1 -super -alt -ctrl"
diff --git a/.local/share/bin/wacomtouch b/home/dot_local/share/bin/executable_wacomtouch
index 6c1e51a..5ba91f6 100755..100644
--- a/.local/share/bin/wacomtouch
+++ b/home/dot_local/share/bin/executable_wacomtouch
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# print if wacom tablet has touch on or off
bye() {
echo $1
diff --git a/.local/share/bin/xbindkeys b/home/dot_local/share/bin/executable_xbindkeys
index 03a2c37..072b76f 100755..100644
--- a/.local/share/bin/xbindkeys
+++ b/home/dot_local/share/bin/executable_xbindkeys
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
exec /usr/bin/xbindkeys --file "$XDG_CONFIG_HOME/xbindkeys/main" "$@"
diff --git a/.local/share/bin/yt-vod b/home/dot_local/share/bin/executable_yt-vod
index 0eb424d..af05441 100755..100644
--- a/.local/share/bin/yt-vod
+++ b/home/dot_local/share/bin/executable_yt-vod
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
vid="$1"
if [ -z "$vid" ] ; then
echo "usage: $0 <stream ID>"
diff --git a/home/dot_local/share/bin/symlink_mode b/home/dot_local/share/bin/symlink_mode
new file mode 100644
index 0000000..da230d2
--- /dev/null
+++ b/home/dot_local/share/bin/symlink_mode
@@ -0,0 +1 @@
+../mode/mode
diff --git a/home/dot_local/share/bin/symlink_sh b/home/dot_local/share/bin/symlink_sh
new file mode 100644
index 0000000..ff99e34
--- /dev/null
+++ b/home/dot_local/share/bin/symlink_sh
@@ -0,0 +1 @@
+/usr/bin/dash
diff --git a/.local/share/fcitx5/themes/default/base.conf b/home/dot_local/share/fcitx5/themes/mode/base.conf
index 4a27495..e329a4f 100644
--- a/.local/share/fcitx5/themes/default/base.conf
+++ b/home/dot_local/share/fcitx5/themes/mode/base.conf
@@ -1,9 +1,9 @@
# vim:ft=dosini
[Metadata]
-Name=default
+Name=mode
Version=0.1
-Author=loek
-Description=custom theme
+Author=lonkaars
+Description=theme generated by mode
ScaleWithDPI=True
[InputPanel]
diff --git a/.local/share/mode/mode b/home/dot_local/share/mode/executable_mode
index 55de32f..f71e46d 100755..100644
--- a/.local/share/mode/mode
+++ b/home/dot_local/share/mode/executable_mode
@@ -1,10 +1,11 @@
-#!/bin/sh
+#!/usr/bin/env sh
progname="$(basename "$0")"
data="$(dirname "$(readlink -f "$0")")"
export data # path to directory containing reload.d, switch.d, etc.
-run_cfggen=1
+run_switch=1
run_reload=1
+no_cfg=0
theme="" # absolute path to theme
# print error message and exit with error
@@ -22,7 +23,8 @@ usage:
$progname [-chr] action|theme
options:
- -c, --no-cfggen disable updating of configuration files
+ -s, --no-switch disable running switch.d hooks
+ -c, --no-cfggen disable generation of templated configuration files
-h, --help display this help text
-r, --no-reload disable reloading of applications after applying theme
@@ -40,6 +42,17 @@ examples:
EOF
}
+get_interpreter() {
+ interpreter="$(sed -n '1s/^#!//p' "$1")"
+ [ -z "$interpreter" ] && return
+ case "$interpreter" in
+ '/usr/bin/env '*|'/bin/env '*)
+ interpreter="$(echo "$interpreter" | sed 's/[^ ]\+ //')"
+ ;;
+ esac
+ basename "$interpreter"
+}
+
# run a module file
run_mod() {
mod_name="$1"
@@ -48,8 +61,7 @@ run_mod() {
! [ -x "$mod_name" ] && return
# parse interpreter from shebang
- interpreter="$(basename "$(command -v $(head -n1 "$mod_name" | sed -n 's/^#!\(.*\)/\1/p'))")"
- if [ "$interpreter" = "sh" ] ; then
+ if [ "$(get_interpreter "$mod_name")" = "sh" ] ; then
# source module if interpreter is POSIX sh (makes plugin functions available)
( . "$mod_name" )
else
@@ -105,11 +117,13 @@ for arg in "$@" ; do
# help
-h|--help|help) usage && exit 0 ;;
# only run reload scripts
- reload) run_reload=1 run_cfggen=0 ;;
+ reload) run_reload=1 run_switch=0 ;;
# prevent reload.d scripts from running
-r|--no-reload) run_reload=0 ;;
# prevent switch.d scripts from running
- -c|--no-cfggen) run_cfggen=0 ;;
+ -s|--no-switch) run_switch=0 ;;
+ # prevent switch.d scripts from running
+ -c|--no-cfggen) no_cfg=1 ;;
# restore previous theme stored as symlink (see switch.d/mode)
restore)
theme="$(readlink -f "$XDG_CACHE_HOME/mode/state/theme")"
@@ -136,7 +150,9 @@ for arg in "$@" ; do
esac
done
+export no_cfg
+
# main
-[ $run_cfggen -eq 1 ] && switch
+[ $run_switch -eq 1 ] && switch
[ $run_reload -eq 1 ] && reload
diff --git a/.local/share/mode/plug.d/10_lib b/home/dot_local/share/mode/plug.d/10_lib
index b3a0276..4685d33 100644
--- a/.local/share/mode/plug.d/10_lib
+++ b/home/dot_local/share/mode/plug.d/10_lib
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# utility library functions
hex_to_rgb_array() { pastel format rgb "$1" | cut -c4- | tr '()' '[]' ; }
diff --git a/.local/share/mode/plug.d/20_export_colors b/home/dot_local/share/mode/plug.d/20_export_colors
index 0f53d1f..2560aca 100644
--- a/.local/share/mode/plug.d/20_export_colors
+++ b/home/dot_local/share/mode/plug.d/20_export_colors
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# colors must be #RRGGBB
check_color() {
(
diff --git a/.local/share/mode/plug.d/20_export_mode b/home/dot_local/share/mode/plug.d/20_export_mode
index c82c4e1..45d404d 100644
--- a/.local/share/mode/plug.d/20_export_mode
+++ b/home/dot_local/share/mode/plug.d/20_export_mode
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# $mode = "light" | "dark"
if [ "$mode" != 'dark' ] && [ "$mode" != 'light' ] ; then
pastel format hsl-lightness "$bg" | awk '{ exit($1 > 0.5) }'
diff --git a/.local/share/mode/plug.d/20_export_vim_theme b/home/dot_local/share/mode/plug.d/20_export_vim_theme
index 12304f3..55cf660 100644
--- a/.local/share/mode/plug.d/20_export_vim_theme
+++ b/home/dot_local/share/mode/plug.d/20_export_vim_theme
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# warn if the vim theme is not installed
if [ "$(find "$XDG_CONFIG_HOME/nvim" -name "$vim_theme_name.vim" | wc -l)" -eq 0 ] ; then
echo "warn: vim theme $vim_theme_name does not appear to be installed" >&2
diff --git a/.local/share/mode/plug.d/50_accent b/home/dot_local/share/mode/plug.d/50_accent
index ceb3209..9a32ddb 100644
--- a/.local/share/mode/plug.d/50_accent
+++ b/home/dot_local/share/mode/plug.d/50_accent
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# create accent color differently for dark/light mode
# do not generate accent color if already explicitly defined by theme
diff --git a/.local/share/mode/reload.d/brave b/home/dot_local/share/mode/reload.d/brave
index 6f6caeb..4f0f8d7 100644
--- a/.local/share/mode/reload.d/brave
+++ b/home/dot_local/share/mode/reload.d/brave
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# WIP
browser='brave'
driver='chromedriver'
diff --git a/.local/share/mode/reload.d/dunst b/home/dot_local/share/mode/reload.d/executable_dunst
index 430320c..54e7058 100755..100644
--- a/.local/share/mode/reload.d/dunst
+++ b/home/dot_local/share/mode/reload.d/executable_dunst
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
respawn_daemon dunst
diff --git a/home/dot_local/share/mode/reload.d/executable_fcitx5 b/home/dot_local/share/mode/reload.d/executable_fcitx5
new file mode 100644
index 0000000..c8ef1db
--- /dev/null
+++ b/home/dot_local/share/mode/reload.d/executable_fcitx5
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+fork fcitx5 -rd
+
diff --git a/home/dot_local/share/mode/reload.d/executable_i3 b/home/dot_local/share/mode/reload.d/executable_i3
new file mode 100644
index 0000000..a97b392
--- /dev/null
+++ b/home/dot_local/share/mode/reload.d/executable_i3
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+fork i3-msg reload
diff --git a/.local/share/mode/reload.d/nvim b/home/dot_local/share/mode/reload.d/executable_nvim
index cfabcc7..392fbb1 100755..100644
--- a/.local/share/mode/reload.d/nvim
+++ b/home/dot_local/share/mode/reload.d/executable_nvim
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
silent_fail_if_no_commmand nvr
nvr --serverlist | while read -r nvim_socket ; do
fork nvr --nostart --servername "$nvim_socket" -c 'source $XDG_CONFIG_HOME/nvim/mode.vim'
diff --git a/.local/share/mode/reload.d/polybar b/home/dot_local/share/mode/reload.d/executable_polybar
index 1976811..c44c5d8 100755..100644
--- a/.local/share/mode/reload.d/polybar
+++ b/home/dot_local/share/mode/reload.d/executable_polybar
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
fork polybar-msg cmd restart
diff --git a/.local/share/mode/reload.d/term b/home/dot_local/share/mode/reload.d/executable_term
index b711d56..43d88e5 100755..100644
--- a/.local/share/mode/reload.d/term
+++ b/home/dot_local/share/mode/reload.d/executable_term
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
escape_msgs="$(cat << EOF | tr -d '\n'
\033]11;$bg\007
\033]10;$fg\007
diff --git a/.local/share/mode/reload.d/gtk b/home/dot_local/share/mode/reload.d/gtk
index 767969d..2578348 100644
--- a/.local/share/mode/reload.d/gtk
+++ b/home/dot_local/share/mode/reload.d/gtk
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# this is max jank but xfsettingsd does other things besides live gtk theme
# reloading, and i don't like having it running constantly because it fucks
# up fcitx5 and xbindkeys
diff --git a/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl
new file mode 100644
index 0000000..fed983a
--- /dev/null
+++ b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl
@@ -0,0 +1,13 @@
+#!/usr/bin/env sh
+# vim:ft=sh
+
+# save hash of this directory so this script is run if the files are modified
+# {{ output "find" (joinPath .chezmoi.sourceDir "dot_local/share/mode") "-type" "f" "-exec" "sha256sum" "{}" ";" | sha1sum }}
+
+[ -z "$(command -v mode)" ] && exit 0
+[ -z "$(command -v fork)" ] && exit 0
+
+echo "updating dynamic theme files"
+fork mode --no-reload {{ dig "mode" "theme" "dark" . }}
+
+exit 0
diff --git a/.local/share/mode/switch.d/anki b/home/dot_local/share/mode/switch.d/executable_anki
index c9caf5d..7544673 100755..100644
--- a/.local/share/mode/switch.d/anki
+++ b/home/dot_local/share/mode/switch.d/executable_anki
@@ -1,4 +1,5 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
# this generates theme files compatible with Anki-redesign:
# <https://ankiweb.net/shared/info/308574457>
diff --git a/.local/share/mode/switch.d/chromium b/home/dot_local/share/mode/switch.d/executable_chromium
index fb701a5..5a6fdfc 100755..100644
--- a/.local/share/mode/switch.d/chromium
+++ b/home/dot_local/share/mode/switch.d/executable_chromium
@@ -1,15 +1,19 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CACHE_HOME/mode/chromium"
rm -f 'Cached Theme.pak'
magick -size 100x100 "xc:$bg" 'bg.png'
-bg_alt=$(mix_rgb $color7 $bg 0.20)
-fg_alt=$(mix_rgb $color15 $fg 0.60)
+bg_alt=$(mix_rgb $bg $color0 0.65)
+fg_alt=$(mix_rgb $fg $color15 0.35)
+
bg="$(hex_to_rgb_array "$bg")"
fg="$(hex_to_rgb_array "$fg")"
bg_alt="$(hex_to_rgb_array "$bg_alt")"
fg_alt="$(hex_to_rgb_array "$fg_alt")"
+
cat << EOF > 'manifest.json'
{
"description": "colorscheme generated by mode",
@@ -18,11 +22,11 @@ cat << EOF > 'manifest.json'
"theme": {
"images": { "theme_frame": "bg.png" },
"colors": {
- "frame": $bg,
+ "frame": $bg_alt,
"button_background": $fg,
"ntp_background": $bg,
- "ntp_text": $bg,
- "toolbar": $bg_alt,
+ "ntp_text": $bg_alt,
+ "toolbar": $bg,
"toolbar_button_icon": $fg,
"tab_background_text": $fg_alt,
"tab_background_text_inactive": $fg_alt,
diff --git a/.local/share/mode/switch.d/discord b/home/dot_local/share/mode/switch.d/executable_discord
index 5931dec..018a869 100755..100644
--- a/.local/share/mode/switch.d/discord
+++ b/home/dot_local/share/mode/switch.d/executable_discord
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CONFIG_HOME/BetterDiscord/themes"
cat << EOF > 'mode.theme.css'
/**
diff --git a/.local/share/mode/switch.d/dunst b/home/dot_local/share/mode/switch.d/executable_dunst
index f863100..dfd87fb 100755..100644
--- a/.local/share/mode/switch.d/dunst
+++ b/home/dot_local/share/mode/switch.d/executable_dunst
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CONFIG_HOME/dunst"
cat 'base' - << EOF > 'dunstrc'
frame_color = "$accent"
diff --git a/.local/share/mode/switch.d/fcitx5 b/home/dot_local/share/mode/switch.d/executable_fcitx5
index 71880a7..c046737 100755..100644
--- a/.local/share/mode/switch.d/fcitx5
+++ b/home/dot_local/share/mode/switch.d/executable_fcitx5
@@ -1,5 +1,7 @@
-#!/bin/sh
-mkcd "$XDG_DATA_HOME/fcitx5/themes/default"
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
+mkcd "$XDG_DATA_HOME/fcitx5/themes/mode"
rounding=6
size=$(( 2 * $rounding + 4 ))
margin_h=6
diff --git a/.local/share/mode/switch.d/gtk b/home/dot_local/share/mode/switch.d/executable_gtk
index 95d3e53..13a2d9e 100755..100644
--- a/.local/share/mode/switch.d/gtk
+++ b/home/dot_local/share/mode/switch.d/executable_gtk
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
GTK_3_SETTINGS_INI="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
if [ "$mode" = "light" ]; then
sed -e 's/-Dark/-Light/' -e 's/-dark/-light/' -i "$GTK_3_SETTINGS_INI"
diff --git a/home/dot_local/share/mode/switch.d/executable_i3 b/home/dot_local/share/mode/switch.d/executable_i3
new file mode 100644
index 0000000..09d6c7e
--- /dev/null
+++ b/home/dot_local/share/mode/switch.d/executable_i3
@@ -0,0 +1,14 @@
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
+indicator="$color0"
+mkcd "$XDG_CONFIG_HOME/i3"
+cat << EOF > 'color.conf'
+client.focused $fg $bg $fg $indicator $bg
+client.focused_inactive $bg $bg $fg $indicator $bg
+client.unfocused $bg $bg $fg $indicator $bg
+client.urgent $bg $bg $fg $indicator $bg
+client.placeholder $bg $bg $fg $indicator $bg
+client.background $bg
+EOF
+
diff --git a/.local/share/mode/switch.d/kitty b/home/dot_local/share/mode/switch.d/executable_kitty
index dddc41b..2d7b115 100755..100644
--- a/.local/share/mode/switch.d/kitty
+++ b/home/dot_local/share/mode/switch.d/executable_kitty
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CONFIG_HOME/kitty"
cat << EOF > 'color.conf'
diff --git a/.local/share/mode/switch.d/mode b/home/dot_local/share/mode/switch.d/executable_mode
index f4c916e..46f7052 100755..100644
--- a/.local/share/mode/switch.d/mode
+++ b/home/dot_local/share/mode/switch.d/executable_mode
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CACHE_HOME/mode/state"
echo "$mode" > mode
diff --git a/.local/share/mode/switch.d/polybar b/home/dot_local/share/mode/switch.d/executable_polybar
index 17fcee2..48e2dac 100755..100644
--- a/.local/share/mode/switch.d/polybar
+++ b/home/dot_local/share/mode/switch.d/executable_polybar
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CONFIG_HOME/polybar"
cat << EOF > 'colors.ini'
[color]
diff --git a/.local/share/mode/switch.d/vim b/home/dot_local/share/mode/switch.d/executable_vim
index cb5a651..18841b9 100755..100644
--- a/.local/share/mode/switch.d/vim
+++ b/home/dot_local/share/mode/switch.d/executable_vim
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CONFIG_HOME/nvim/mode"
# lightline
diff --git a/home/dot_local/share/mode/switch.d/executable_wall b/home/dot_local/share/mode/switch.d/executable_wall
new file mode 100644
index 0000000..4d0037f
--- /dev/null
+++ b/home/dot_local/share/mode/switch.d/executable_wall
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+bgcol "$bg"
diff --git a/.local/share/mode/switch.d/xrdb b/home/dot_local/share/mode/switch.d/executable_xrdb
index 591a530..e1c439b 100755..100644
--- a/.local/share/mode/switch.d/xrdb
+++ b/home/dot_local/share/mode/switch.d/executable_xrdb
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
cat << EOF | xrdb -override
*.color0: $color0
*.color1: $color1
diff --git a/.local/share/mode/switch.d/zathura b/home/dot_local/share/mode/switch.d/executable_zathura
index e1a15e7..ed7ae32 100755..100644
--- a/.local/share/mode/switch.d/zathura
+++ b/home/dot_local/share/mode/switch.d/executable_zathura
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CONFIG_HOME/zathura"
cat << EOF > 'colors'
set completion-bg "$bg"
@@ -7,8 +9,8 @@ set completion-highlight-bg "$accent"
set completion-highlight-fg "$accent_text"
set default-bg "$bg"
set default-fg "$fg"
-set highlight-active-color "$accent"
-set highlight-color "$accent_text"
+set highlight-active-color "$(echo "$accent" | pastel set alpha 0.5 | pastel format rgb)"
+set highlight-color "$(echo "$accent_text" | pastel set alpha 0.5 | pastel format rgb)"
set inputbar-bg "$bg"
set inputbar-fg "$fg"
set notification-bg "$bg"
diff --git a/.local/share/mode/themes/github-black b/home/dot_local/share/mode/themes/github-black
index 34b507c..e1d0d58 100644
--- a/.local/share/mode/themes/github-black
+++ b/home/dot_local/share/mode/themes/github-black
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=dark
color0='#484f58'
diff --git a/.local/share/mode/themes/github-dark b/home/dot_local/share/mode/themes/github-dark
index 577106c..27a39b7 100644
--- a/.local/share/mode/themes/github-dark
+++ b/home/dot_local/share/mode/themes/github-dark
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=dark
color0='#484f58'
diff --git a/.local/share/mode/themes/github-light b/home/dot_local/share/mode/themes/github-light
index d0162f8..c243558 100644
--- a/.local/share/mode/themes/github-light
+++ b/home/dot_local/share/mode/themes/github-light
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=light
color0='#d1d5da'
diff --git a/.local/share/mode/themes/rose-pine-dawn b/home/dot_local/share/mode/themes/rose-pine-dawn
index dfed420..47cfb5e 100644
--- a/.local/share/mode/themes/rose-pine-dawn
+++ b/home/dot_local/share/mode/themes/rose-pine-dawn
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=light
color0='#c4bdc3'
diff --git a/home/dot_local/share/mode/themes/symlink_dark b/home/dot_local/share/mode/themes/symlink_dark
new file mode 100644
index 0000000..b5d11f8
--- /dev/null
+++ b/home/dot_local/share/mode/themes/symlink_dark
@@ -0,0 +1 @@
+github-dark
diff --git a/home/dot_local/share/mode/themes/symlink_light b/home/dot_local/share/mode/themes/symlink_light
new file mode 100644
index 0000000..2c27e1d
--- /dev/null
+++ b/home/dot_local/share/mode/themes/symlink_light
@@ -0,0 +1 @@
+github-light
diff --git a/.local/share/mode/themes/xcode-dark b/home/dot_local/share/mode/themes/xcode-dark
index eb75b80..eb945cf 100644
--- a/.local/share/mode/themes/xcode-dark
+++ b/home/dot_local/share/mode/themes/xcode-dark
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=dark
color0='#43454b'
diff --git a/.local/share/oh-my-zsh/themes/loek.zsh-theme b/home/dot_local/share/oh-my-zsh/themes/loek.zsh-theme
index 5231234..5231234 100644
--- a/.local/share/oh-my-zsh/themes/loek.zsh-theme
+++ b/home/dot_local/share/oh-my-zsh/themes/loek.zsh-theme
diff --git a/.local/share/pass-extensions/directory.bash b/home/dot_local/share/pass-extensions/executable_directory.bash
index 84db500..90952db 100755..100644
--- a/.local/share/pass-extensions/directory.bash
+++ b/home/dot_local/share/pass-extensions/executable_directory.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# print the initialized password store directory as a fully qualified path.
# exits with code 1 if the password store is not initialized.
dir="${PASSWORD_STORE_DIR-$HOME/.password-store}"
diff --git a/.local/share/pass-extensions/duplicates.bash b/home/dot_local/share/pass-extensions/executable_duplicates.bash
index 3ba47aa..e3f9e9f 100755..100644
--- a/.local/share/pass-extensions/duplicates.bash
+++ b/home/dot_local/share/pass-extensions/executable_duplicates.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
declare -A dupe_tally dupe_map
pass_names="$(pass names -l)"
diff --git a/home/dot_local/share/pass-extensions/executable_exit.bash b/home/dot_local/share/pass-extensions/executable_exit.bash
new file mode 100644
index 0000000..742e13d
--- /dev/null
+++ b/home/dot_local/share/pass-extensions/executable_exit.bash
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+exit 0
diff --git a/home/dot_local/share/pass-extensions/executable_g.bash b/home/dot_local/share/pass-extensions/executable_g.bash
new file mode 100644
index 0000000..42df9ef
--- /dev/null
+++ b/home/dot_local/share/pass-extensions/executable_g.bash
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+exec pass git "$@"
diff --git a/.local/share/pass-extensions/names.bash b/home/dot_local/share/pass-extensions/executable_names.bash
index aa42ebf..10f6613 100755..100644
--- a/.local/share/pass-extensions/names.bash
+++ b/home/dot_local/share/pass-extensions/executable_names.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# list all passwords in store
pass_dir="$(pass directory)"
diff --git a/.local/share/pass-extensions/treasure.bash b/home/dot_local/share/pass-extensions/executable_treasure.bash
index e79ec24..9cef7f2 100755..100644
--- a/.local/share/pass-extensions/treasure.bash
+++ b/home/dot_local/share/pass-extensions/executable_treasure.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
TAB="$(printf '\t')"
# TODO: add options:
diff --git a/home/dot_local/share/pass-extensions/symlink_dir.bash b/home/dot_local/share/pass-extensions/symlink_dir.bash
new file mode 100644
index 0000000..cb34588
--- /dev/null
+++ b/home/dot_local/share/pass-extensions/symlink_dir.bash
@@ -0,0 +1 @@
+directory.bash
diff --git a/home/dot_local/share/pass-extensions/symlink_dupes.bash b/home/dot_local/share/pass-extensions/symlink_dupes.bash
new file mode 100644
index 0000000..59c3653
--- /dev/null
+++ b/home/dot_local/share/pass-extensions/symlink_dupes.bash
@@ -0,0 +1 @@
+duplicates.bash
diff --git a/home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl b/home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl
new file mode 100644
index 0000000..2e9d8d6
--- /dev/null
+++ b/home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl
@@ -0,0 +1,7 @@
+allow-preset-passphrase
+max-cache-ttl 604800
+{{- if eq .chezmoi.os "darwin" }}
+pinentry-program {{ lookPath "pinentry-mac" }}
+{{- else if eq .chezmoi.os "linux" }}
+pinentry-program {{ lookPath "pinentry-gtk" }}
+{{- end }}
diff --git a/.local/share/oh-my-zsh/completions/_fork b/home/dot_local/share/zsh/site-functions/_fork
index 7b76938..7b76938 100644
--- a/.local/share/oh-my-zsh/completions/_fork
+++ b/home/dot_local/share/zsh/site-functions/_fork
diff --git a/.profile b/home/dot_profile
index 2ed201d..06eb8c1 100644
--- a/.profile
+++ b/home/dot_profile
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
#
# this file should only contain posix-compliant shell customizations and
# environment variables. shell-specific customizations should be done in the
@@ -8,8 +8,6 @@
export LANG='ja_JP.UTF-8'
# aliases
-alias vim='nvim'
-alias copy='xclip -selection clipboard'
alias dnd='dragon-drop --all --and-exit'
alias sl='sl -w'
alias bctl='bluetoothctl'
@@ -17,7 +15,7 @@ alias sctl='systemctl --user'
# one letters
alias r='cd "$(lf -print-last-dir | head -n1)"'
-alias v='nvim'
+alias v='nvim -p'
alias m='neomutt'
alias y='yay'
alias n='ncmpcpp'
@@ -31,20 +29,26 @@ alias g='git'
# force colorterm
export COLORTERM="truecolor"
+# colors
+alias diff='diff --color=auto'
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'
+
# xdg base directories
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
+# python site.USER_SITE
+export PYTHONUSERBASE="$HOME/.local"
+
# ruby
export GEM_HOME="$XDG_DATA_HOME/gem/ruby/3.0.0"
# script locations
if [ -z "$PATH_EXTENDED" ] ; then
PATH="$GEM_HOME/bin:$PATH"
- # PATH="$HOME/.lyp/bin:$PATH"
- # PATH="/opt/f4pga/xc7/conda/bin:$PATH"
PATH="$HOME/.local/share/cargo/bin:$PATH"
PATH="$HOME/.local/go/bin:$PATH"
PATH="$HOME/.local/bin:$PATH"
@@ -54,14 +58,20 @@ if [ -z "$PATH_EXTENDED" ] ; then
fi
# other stuff
-export EDITOR="nvim -p"
-export PAGER="less"
+export EDITOR=editor
+export PAGER="less --mouse --wheel-lines=3 -R"
+alias less="$PAGER"
+export DELTA_PAGER="$PAGER"
export FZF_DEFAULT_COMMAND="find . -name '.?*' -prune -o -print"
-export FZF_DEFAULT_OPTS="--color=bw,fg:7,scrollbar:8,info:8 --layout=reverse --info=inline-right --no-separator --no-scrollbar --marker='*' --pointer=''"
+export FZF_DEFAULT_OPTS="--color=bw,current-fg:regular:reverse,info:bright-black,hl:underline --layout=reverse --info=inline-right --no-separator --no-scrollbar --marker='' --pointer='' --highlight-line"
export GOPATH="$HOME/.local/go"
[ -e "$XDG_CONFIG_HOME/gtk-4.0/env" ] && . "$XDG_CONFIG_HOME/gtk-4.0/env"
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export PASSWORD_STORE_EXTENSIONS_DIR="$XDG_DATA_HOME/pass-extensions"
+export MOZ_USE_XINPUT2=1
+export LIBVIRT_DEFAULT_URI='qemu:///system'
+export WINEDEBUG='fixme-all,err-all'
+alias poke='poke --quiet'
# LS_COLORS
[ ! -e "$XDG_CACHE_HOME/dircolors" ] || [ "$XDG_CONFIG_HOME/dircolors" -nt "$XDG_CACHE_HOME/dircolors" ] && dircolors "$XDG_CONFIG_HOME/dircolors" > "$XDG_CACHE_HOME/dircolors"
@@ -79,21 +89,42 @@ export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
export PYLINTHOME="$XDG_CACHE_HOME/pylint"
export STACK_ROOT="$XDG_DATA_HOME/stack"
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
-export HISTFILE="$XDG_DATA_HOME/zsh/history"
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
export CONAN_USER_HOME="$XDG_CONFIG_HOME/conan"
-alias nvidia-settings='nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings"'
-alias gpg2="gpg2 --homedir $XDG_DATA_HOME/gnupg"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
+export NMPASS_FORMAT="net/{ssid}/passwd"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
+export TEXMFHOME="$XDG_DATA_HOME/texmf"
+export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var"
+export TEXMFCONFIG="$XDG_CONFIG_HOME/texlive/texmf-config"
+export INPUTRC="$XDG_CONFIG_HOME/inputrc"
+alias nvidia-settings='nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings"'
+alias gpg2='gpg2 --homedir "$XDG_DATA_HOME/gnupg"'
+_pip3_user() {
+ [ -n "$VIRTUAL_ENV" ] && PIP_CONFIG_FILE="$XDG_CONFIG_HOME/pip/user.conf"
+ pip3 "$@"
+}
+alias pip3=_pip3_user
+alias pip=pip3
+
+# CMake
+export CMAKE_BUILD_TYPE=Debug
+export CMAKE_EXPORT_COMPILE_COMMANDS=1
+export CMAKE_GENERATOR=Ninja
+export CMAKE_C_COMPILER_LAUNCHER=ccache
+export CMAKE_CXX_COMPILER_LAUNCHER=ccache
+
+# colors
+alias diff='diff --color=auto'
+alias mk='FROM_PROMPT=y mk'
+alias diffstat='diffstat -C'
# disable dotnet telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
-# GPG key IDs
-export GPG_ID_DEFAULT="1081FFE2B963ADB5BDCF4DA6D0E3BC76E355B6CC"
-export GPG_ID_GIT="$GPG_ID_DEFAULT"
-export GPG_ID_PASSWORD_STORE="A12ADDD26335FA960FE3C78A9FC7A0100BC4C971"
+# GDB
+! [ -d "$XDG_DATA_HOME/gdb" ] && mkdir -p "$XDG_DATA_HOME/gdb"
+export GDBHISTFILE="$XDG_DATA_HOME/gdb/history"
# secrets
[ -f "$HOME/.env" ] && . "$HOME/.env"
diff --git a/.zshrc b/home/dot_zshrc
index 4ba1181..4247fe9 100644
--- a/.zshrc
+++ b/home/dot_zshrc
@@ -1,14 +1,11 @@
-#!/bin/zsh
+#!/usr/bin/env zsh
export ZSH_COMPDUMP="$XDG_CACHE_HOME/zcompdump"
# do not glob for calculator command
aliases[=]="noglob ="
-# color aliases
-alias ls='ls --color=auto'
-alias grep='grep --color=auto'
-
# completion
+fpath=( "$XDG_DATA_HOME/zsh/site-functions" "${fpath[@]}" )
autoload -U compinit
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:*:*:*:*' menu select
@@ -22,31 +19,43 @@ WORDCHARS="${WORDCHARS:gs/\//}" # remove '/' from WORDCHARS
compinit -d "$ZSH_COMPDUMP"
# history
+! [ -d "$XDG_DATA_HOME/zsh" ] && mkdir -p "$XDG_DATA_HOME/zsh"
export HISTFILE="$XDG_DATA_HOME/zsh/history"
export HISTSIZE=10000000
export SAVEHIST=10000000
+setopt hist_ignore_space
setopt share_history
+setopt hist_ignore_dups
# keybinds
bindkey -e # emacs bindings
bindkey '^[[Z' reverse-menu-complete
# prompt
-unset PROMPT
setopt PROMPT_SUBST
-prompt_segment() {
- content="$1"
- [ -z "$content" ] && return
- echo "%{\e[90m%}${content}%{\e[30m%} -> %{\e[0m%}"
-}
-prompt_mod_git_info() {
- git rev-parse --is-inside-work-tree 1> /dev/null 2> /dev/null || return
- prompt_segment "git $(git rev-parse --abbrev-ref HEAD 2> /dev/null)"
+export VIRTUAL_ENV_DISABLE_PROMPT=y
+PROMPT='$(eo=%{ ec=%} prompt)'
+
+# auto venv
+function cd() {
+ builtin cd "$@"
+
+ if [ -n "$VIRTUAL_ENV" ] ; then
+ if [[ "$PWD"/ != "$(dirname "$VIRTUAL_ENV")"/* ]] && [ ! -z "$(command -v deactivate)" ] ; then
+ deactivate
+ else
+ return
+ fi
+ fi
+
+ git_dir="$(git rev-parse --show-toplevel 2>/dev/null)"
+ for dir in ./ "$git_dir" ../ "$git_dir/.." ; do
+ [ ! -d "$dir" ] && continue
+ for file in "$dir"/.env "$dir"/venv/bin/activate ; do
+ [ ! -e "$file" ] && continue
+ source "$file"
+ return
+ done
+ done
}
-# only display hostname in prompt if connected over SSH
-[ -n "$SSH_CLIENT" ] && PROMPT+="$(prompt_segment '%m')"
-# working directory
-PROMPT+="$(prompt_segment '%c')"
-# git info (if in repo)
-PROMPT+="\$(prompt_mod_git_info)"
diff --git a/.xinitrc b/home/executable_dot_xinitrc
index d4601d3..d7e291d 100755..100644
--- a/.xinitrc
+++ b/home/executable_dot_xinitrc
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
. "$HOME/.profile"
# make current environment available to systemd user units
diff --git a/home/private_Library/KeyBindings/DefaultKeyBinding.dict b/home/private_Library/KeyBindings/DefaultKeyBinding.dict
new file mode 100644
index 0000000..86d8ea1
--- /dev/null
+++ b/home/private_Library/KeyBindings/DefaultKeyBinding.dict
@@ -0,0 +1,12 @@
+// https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html
+{
+ "~f" = "moveWordForward:";
+ "~b" = "moveWordBackward:";
+ "~<" = "moveToBeginningOfDocument:";
+ "~>" = "moveToEndOfDocument:";
+ "~v" = "pageUp:";
+ "~d" = "deleteWordForward:";
+ "~^h" = "deleteWordBackward:";
+ "~\010" = "deleteWordBackward:"; /* Option-backspace */
+ "~\177" = "deleteWordBackward:"; /* Option-delete */
+}
diff --git a/home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl b/home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl
new file mode 100644
index 0000000..dc82a82
--- /dev/null
+++ b/home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>homebrew.mxcl.mpd</string>
+ <key>LimitLoadToSessionType</key>
+ <array>
+ <string>Aqua</string>
+ <string>Background</string>
+ <string>LoginWindow</string>
+ <string>StandardIO</string>
+ <string>System</string>
+ </array>
+ <key>ProcessType</key>
+ <string>Interactive</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/opt/homebrew/opt/mpd/bin/mpd</string>
+ <string>--no-daemon</string>
+ <string>{{ env "XDG_CONFIG_HOME" }}/mpd/mpd.conf</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>WorkingDirectory</key>
+ <string>/opt/homebrew</string>
+</dict>
+</plist>
diff --git a/home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist b/home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist
new file mode 100644
index 0000000..2932303
--- /dev/null
+++ b/home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>homebrew.mxcl.syncthing</string>
+ <key>LimitLoadToSessionType</key>
+ <array>
+ <string>Aqua</string>
+ <string>Background</string>
+ <string>LoginWindow</string>
+ <string>StandardIO</string>
+ <string>System</string>
+ </array>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/opt/homebrew/opt/syncthing/bin/syncthing</string>
+ <string>--no-browser</string>
+ <string>--no-restart</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>StandardErrorPath</key>
+ <string>/opt/homebrew/var/log/syncthing.log</string>
+ <key>StandardOutPath</key>
+ <string>/opt/homebrew/var/log/syncthing.log</string>
+</dict>
+</plist>
diff --git a/home/private_Library/private_Application Support/symlink_Anki2 b/home/private_Library/private_Application Support/symlink_Anki2
new file mode 100644
index 0000000..c9b40f5
--- /dev/null
+++ b/home/private_Library/private_Application Support/symlink_Anki2
@@ -0,0 +1 @@
+../../.local/share/Anki2
diff --git a/home/private_Library/private_Preferences/.gitattributes b/home/private_Library/private_Preferences/.gitattributes
new file mode 100644
index 0000000..b8de76c
--- /dev/null
+++ b/home/private_Library/private_Preferences/.gitattributes
@@ -0,0 +1 @@
+*.plist filter=plist
diff --git a/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist b/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist
new file mode 100644
index 0000000..d31f40c
--- /dev/null
+++ b/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>LaunchAtLogin__hasMigrated</key>
+ <true/>
+ <key>NSStatusItem VisibleCC Item-0</key>
+ <false/>
+ <key>SUAutomaticallyUpdate</key>
+ <false/>
+ <key>SUEnableAutomaticChecks</key>
+ <false/>
+ <key>SUHasLaunchedBefore</key>
+ <true/>
+ <key>SUSendProfileInfo</key>
+ <false/>
+ <key>autoSwitchToActiveDevice</key>
+ <false/>
+ <key>menuBarVisibilityMode</key>
+ <string>"never"</string>
+ <key>menuBarVisibilityModeMigrationCompleted</key>
+ <true/>
+ <key>selectedDevice</key>
+ <string>{"category":"mouse"}</string>
+ <key>showInDock</key>
+ <false/>
+ <key>showInMenuBar</key>
+ <false/>
+</dict>
+</plist>
diff --git a/home/private_dot_ssh/private_config b/home/private_dot_ssh/private_config
new file mode 100644
index 0000000..c070bdf
--- /dev/null
+++ b/home/private_dot_ssh/private_config
@@ -0,0 +1,8 @@
+match user git host pipeframe.xyz
+ requesttty no
+
+host *
+ warnweakcrypto no
+
+host router.lan
+ user admin
diff --git a/home/private_dot_ssh/run_once_bootstrap.sh b/home/private_dot_ssh/run_once_bootstrap.sh
new file mode 100644
index 0000000..5feaa98
--- /dev/null
+++ b/home/private_dot_ssh/run_once_bootstrap.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+# vim:ft=sh
+
+[ "$(find ~/.ssh -name 'id_*' -maxdepth 1 2>/dev/null | wc -l)" -ne 0 ] && exit 0
+
+echo "generating ssh keys"
+ssh-keygen -q -N "" < /dev/zero 1>/dev/null
+
diff --git a/home/symlink_dot_zshenv b/home/symlink_dot_zshenv
new file mode 100644
index 0000000..f940b94
--- /dev/null
+++ b/home/symlink_dot_zshenv
@@ -0,0 +1 @@
+.profile
diff --git a/license b/license
index 46973e2..2c67dc0 100644
--- a/license
+++ b/license
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2022 lonkaars
+Copyright (c) 2026 lonkaars
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/readme.md b/readme.md
index 203b9d1..ab8eddb 100644
--- a/readme.md
+++ b/readme.md
@@ -1,42 +1,35 @@
-- these dotfiles utilize [yadm][yadm]'s templating functions, and rely on two
- sepcific hostnames. `superesc` is used on my desktop computer and `thoncc` on
- my laptop. you can run `yadm config local.hostname <superesc|thoncc>` before
- `yadm bootstrap` or `yadm alt` to choose which config files should be used if
- your hostname is something else.
-- the github mirror of this repository still includes some large unreachable
- blobs (accidentally committed wallpapers). these are automatically removed by
- the bootstrap script. a smaller mirror of this repository that does not
- include these blobs by default should be available at
- <https://git.pipeframe.xyz/lonkaars/dots>.
+My dotfiles managed using [chezmoi]
-fresh arch install steps:
+[chezmoi]: https://www.chezmoi.io/
-- make sure base pacakges are installed (as root)
- ```
- # pacman -Sy base-devel git
- ```
-- install yay
- ```
- $ git clone https://aur.archlinux.org/yay
- $ cd yay
- $ makepkg -si
- ```
-- install yadm
- ```
- $ yay -S yadm
- ```
-- get dotfiles
- ```
- $ yadm clone https://git.pipeframe.xyz/lonkaars/dots
- ```
-- override hostname (optional)
- ```
- $ yadm config local.hostname <superesc|thoncc>
- ```
-- do a bunch of setup
- ```
- $ yadm bootstrap
- ```
+> [!NOTE]
+> The github mirror of this repository still includes some large unreachable
+> blobs (accidentally committed wallpapers). A smaller mirror of this
+> repository that does not include these blobs is available at
+> <https://git.pipeframe.xyz/lonkaars/dots>.
-[yadm]: https://yadm.io/
+Optional configuration can be placed in `~/.config/chezmoi/chezmoi.yaml`:
+```yaml
+data:
+ mpd:
+ # configure mpd as a host (i.e. use local music directory instead of satellite)
+ host: <bool>
+ # base directory to use for playlists/pid/db files
+ base_dir: <path>
+ # override music_directory (default is satellite address or <base_dir>/music for hosts)
+ music_dir: <path>
+ # override playlist_directory (default is <base_dir>/playlists)
+ playlist_dir: <path>
+ git:
+ # git commit email
+ email: <string>
+ # git commit name
+ name: <string>
+ # git default branch (master)
+ default_branch: <string>
+ # commit signing gpg key id
+ gpg_id: <keyid>
+ # list of keygrips to unlock on login using pam-gnupg
+ pam_gnupg: <list[str]>
+```
diff --git a/root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh b/root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh
new file mode 100644
index 0000000..baffbc4
--- /dev/null
+++ b/root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env sh
+
+export LANG=C
+
+interface="$1"
+action="$2"
+
+connectivity="$(nmcli networking connectivity)"
+interface_type="$(nmcli -g GENERAL.TYPE device show "$interface")"
+interface_state="$(nmcli -g GENERAL.STATE device show "$interface" | grep -o '^[0-9]\+')"
+
+if [ "$action" = "down" ] && [ "$connectivity" = "none" ]; then
+ nmcli radio wifi on
+ exit
+fi
+
+if [ "$action" = "up" ] && [ "$interface_type" == "ethernet" ] && [ "$interface_state" = "100" ]; then
+ nmcli radio wifi off
+ exit
+fi
+
diff --git a/root/etc/X11/xorg.conf.d/00-keyboard.conf b/root/etc/X11/xorg.conf.d/00-keyboard.conf
new file mode 100644
index 0000000..d4f95ff
--- /dev/null
+++ b/root/etc/X11/xorg.conf.d/00-keyboard.conf
@@ -0,0 +1,9 @@
+Section "InputClass"
+ Identifier "system-keyboard"
+ MatchIsKeyboard "on"
+ Option "XkbLayout" "us"
+ Option "XkbModel" "pc105"
+ Option "XkbOptions" "ctrl:nocaps"
+ Option "AutoRepeat" "250 40"
+EndSection
+
diff --git a/root/etc/X11/xorg.conf.d/40-trackpad.conf b/root/etc/X11/xorg.conf.d/40-trackpad.conf
new file mode 100644
index 0000000..f390b93
--- /dev/null
+++ b/root/etc/X11/xorg.conf.d/40-trackpad.conf
@@ -0,0 +1,9 @@
+Section "InputClass"
+ Identifier "Trackpad preferences"
+ MatchIsTouchpad "on"
+ Driver "libinput"
+ Option "NaturalScrolling" "1"
+ Option "Tapping" "1"
+ Option "ScrollPixelDistance" "40"
+EndSection
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf b/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
index 199635d..199635d 100644
--- a/.config/yadm/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
+++ b/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf b/root/etc/X11/xorg.conf.d/72-wacom-options.conf
index 81aaf60..81aaf60 100644
--- a/.config/yadm/root/etc/X11/xorg.conf.d/72-wacom-options.conf
+++ b/root/etc/X11/xorg.conf.d/72-wacom-options.conf
diff --git a/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf b/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf
new file mode 100644
index 0000000..a1071b0
--- /dev/null
+++ b/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf
@@ -0,0 +1,8 @@
+Section "InputClass"
+ Identifier "Logitech MX Master 3S High res scrolling"
+ MatchUSBID "046d:c548"
+ MatchDevicePath "/dev/input/event*"
+ Driver "libinput"
+ Option "HighResolutionWheelScrolling" "false"
+EndSection
+
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf b/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf
index 26643b8..26643b8 100644
--- a/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf
+++ b/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf b/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf
index f2e2bbf..f2e2bbf 100644
--- a/.config/yadm/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf
+++ b/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf
diff --git a/root/etc/containers/empty_nodocker b/root/etc/containers/empty_nodocker
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/root/etc/containers/empty_nodocker
diff --git a/root/etc/default/earlyoom b/root/etc/default/earlyoom
new file mode 100644
index 0000000..53ddf8b
--- /dev/null
+++ b/root/etc/default/earlyoom
@@ -0,0 +1 @@
+EARLYOOM_ARGS="-M 102400 -r 3600 -n --avoid '(^|/)(init|systemd|Xorg|sshd)$'"
diff --git a/root/etc/kernel/cmdline b/root/etc/kernel/cmdline
new file mode 100644
index 0000000..2448b2c
--- /dev/null
+++ b/root/etc/kernel/cmdline
@@ -0,0 +1 @@
+quiet
diff --git a/root/etc/libinput/local-overrides.quirks b/root/etc/libinput/local-overrides.quirks
new file mode 100644
index 0000000..9a897c2
--- /dev/null
+++ b/root/etc/libinput/local-overrides.quirks
@@ -0,0 +1,4 @@
+[Logitech MX Master 3S]
+MatchVendor=0x046D
+MatchProduct=0xC548
+AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES;
diff --git a/root/etc/lightdm/executable_autorandr-change b/root/etc/lightdm/executable_autorandr-change
new file mode 100644
index 0000000..77efc7c
--- /dev/null
+++ b/root/etc/lightdm/executable_autorandr-change
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+autorandr --change
+
+# make sure this script exits happily
+exit 0
diff --git a/root/etc/lightdm/lightdm-gtk-greeter.conf b/root/etc/lightdm/lightdm-gtk-greeter.conf
new file mode 100644
index 0000000..7ba729d
--- /dev/null
+++ b/root/etc/lightdm/lightdm-gtk-greeter.conf
@@ -0,0 +1,8 @@
+[greeter]
+font-name = Inter 9
+theme-name = adw-gtk3-dark
+indicators = ~clock;~spacer;~power
+hide-user-image = true
+screensaver-timeout = 15
+default-session = xinitrc
+clock-format = %t%H:%M
diff --git a/.config/yadm/root/etc/locale.conf b/root/etc/locale.conf
index abfaa52..abfaa52 100644
--- a/.config/yadm/root/etc/locale.conf
+++ b/root/etc/locale.conf
diff --git a/.config/yadm/root/etc/locale.gen b/root/etc/locale.gen
index 6ab95e3..6ab95e3 100644
--- a/.config/yadm/root/etc/locale.gen
+++ b/root/etc/locale.gen
diff --git a/root/etc/logid.cfg b/root/etc/logid.cfg
new file mode 100644
index 0000000..e98e048
--- /dev/null
+++ b/root/etc/logid.cfg
@@ -0,0 +1,13 @@
+devices: ({
+ name: "MX Master 3S";
+ smartshift: {
+ on: true;
+ threshold: 255;
+ torque: 255;
+ };
+ hiresscroll: {
+ hires: false;
+ invert: false;
+ target: false;
+ };
+});
diff --git a/.config/yadm/root/etc/sudoers.d/10-wheel-nopasswd b/root/etc/sudoers.d/10-wheel-nopasswd
index 46208d6..46208d6 100644
--- a/.config/yadm/root/etc/sudoers.d/10-wheel-nopasswd
+++ b/root/etc/sudoers.d/10-wheel-nopasswd
diff --git a/root/etc/systemd/logind.conf.d/10-laptop-lid.conf b/root/etc/systemd/logind.conf.d/10-laptop-lid.conf
new file mode 100644
index 0000000..c289779
--- /dev/null
+++ b/root/etc/systemd/logind.conf.d/10-laptop-lid.conf
@@ -0,0 +1,4 @@
+[Login]
+HandleLidSwitch=suspend
+HandleLidSwitchExternalPower=ignore
+HandleLidSwitchDocked=ignore
diff --git a/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb b/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb
new file mode 100644
index 0000000..3ccaa11
--- /dev/null
+++ b/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb
@@ -0,0 +1,3 @@
+mouse:usb:v046dpc548:name:Logitech USB Receiver Mouse:*
+ MOUSE_WHEEL_CLICK_ANGLE=1
+ MOUSE_WHEEL_CLICK_COUNT=360
diff --git a/root/etc/udev/rules.d/90-backlight.rules b/root/etc/udev/rules.d/90-backlight.rules
new file mode 100644
index 0000000..23eedf8
--- /dev/null
+++ b/root/etc/udev/rules.d/90-backlight.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
diff --git a/root/etc/udev/rules.d/99-capture-card.rules b/root/etc/udev/rules.d/99-capture-card.rules
new file mode 100644
index 0000000..b180639
--- /dev/null
+++ b/root/etc/udev/rules.d/99-capture-card.rules
@@ -0,0 +1,3 @@
+# set video controls
+SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTR{index}=="0", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="2109", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=brightness=0,contrast=127,saturation=127,hue=0"
+
diff --git a/root/etc/xdg/nvim/init.vim b/root/etc/xdg/nvim/init.vim
new file mode 100644
index 0000000..f238fc6
--- /dev/null
+++ b/root/etc/xdg/nvim/init.vim
@@ -0,0 +1,2 @@
+set notermguicolors
+colorscheme vim