]> Sergey Matveev's repositories - dotfiles.git/commitdiff
HI flag master
authorSergey Matveev <stargrave@stargrave.org>
Mon, 13 May 2024 09:00:02 +0000 (12:00 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 15 May 2024 08:40:59 +0000 (11:40 +0300)
19 files changed:
bin/bin/my-ps2pdf
git/.gitconfig
links/bin/xom
lynx/.lynx_jumps.html
mpv/.mpv/config
vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim [deleted file]
vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim [deleted file]
vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh [deleted file]
wish/.wishrc [new file with mode: 0644]
x/.Xresources
x/.xinitrc
x/bin/mylock
x/bin/start-im
x/bin/start-x
x/bin/start-x-hidpi [new file with mode: 0755]
zathura/.zathurarc
zathura/.zsh/rc/010zathurarc.zsh [new file with mode: 0644]
zathura/bin/zat
zsh/.zsh/env/005irc.zsh

index 5510c186e3354894c75f94ca3e1df2464cead614..01e37bd7e9f393d01786161003d61715ae7df66f 100755 (executable)
@@ -15,7 +15,7 @@ opts=(
     -dPDFSETTINGS=/default
     -dPDFA=1
     -dCompatibilityLevel=1.4
     -dPDFSETTINGS=/default
     -dPDFA=1
     -dCompatibilityLevel=1.4
-    -dPDFACompatibilityPolicy=3 # that will skip some errors about XMP
+    -sPDFACompatibilityPolicy=3 # that will skip some errors about XMP
     -dAutoRotatePages=/None
     -dOptimize=true
     -sColorConversionStrategy=RGB # advised for PDF/A
     -dAutoRotatePages=/None
     -dOptimize=true
     -sColorConversionStrategy=RGB # advised for PDF/A
@@ -38,8 +38,9 @@ exiftool $1.pdf | while read l ; do
 done
 for i ({1..${#toremove}}) toremove[$i]=-${toremove[$i]}=
 exiftool -zip -overwrite_original -quiet \
 done
 for i ({1..${#toremove}}) toremove[$i]=-${toremove[$i]}=
 exiftool -zip -overwrite_original -quiet \
-    -tagsFromFile $1 -Producer\>Creator \
-    ${=toremove} $1.pdf
+    -tagsFromFile $1 -Creator\<Producer $1.pdf
+exiftool -zip -overwrite_original -quiet \
+    -tagsFromFile $1 -Producer\>Creator ${=toremove} $1.pdf
 [[ -z $LINEARIZE ]] || LINEARIZE=--linearize
 qpdf $LINEARIZE --compress-streams=y $1.pdf $1.pdf.pdf
 mv $1.pdf.pdf $1.pdf
 [[ -z $LINEARIZE ]] || LINEARIZE=--linearize
 qpdf $LINEARIZE --compress-streams=y $1.pdf $1.pdf.pdf
 mv $1.pdf.pdf $1.pdf
index bd6ae59d020f01b03701a0fc4c2ae9c87f1da6c0..7d19ce51cc980b47c904fc119ea4aeca8e109a5d 100644 (file)
@@ -3,6 +3,7 @@
 [advice]
        pushUpdateRejected = false
        detachedHead = false
 [advice]
        pushUpdateRejected = false
        detachedHead = false
+       addIgnoredFile = false
 [alias]
        wt = worktree
        unchanged = update-index --assume-unchanged
 [alias]
        wt = worktree
        unchanged = update-index --assume-unchanged
index 57d4f5cd0cf046726ed4a50b0cdfc94ebed7afd8..3c8168c842ec46aaea8dd7391ba8a13c51594de5 100755 (executable)
@@ -10,9 +10,12 @@ if [ $# -gt 1 ] ; then
     pep) url="https://www.python.org/dev/peps/pep-0$@/" ;;
     py) url="https://pypi.org/project/$@/" ;;
     rfc) url="https://datatracker.ietf.org/doc/html/rfc$@" ;;
     pep) url="https://www.python.org/dev/peps/pep-0$@/" ;;
     py) url="https://pypi.org/project/$@/" ;;
     rfc) url="https://datatracker.ietf.org/doc/html/rfc$@" ;;
-    s) url="https://html.duckduckgo.com/html?q=$@" ;;
+    s) url="https://search.brave.com/search?q=$@" ;;
     we) url="https://en.wikipedia.org/wiki/$@" ;;
     wr) url="https://ru.wikipedia.org/wiki/$@" ;;
     esac
 fi
     we) url="https://en.wikipedia.org/wiki/$@" ;;
     wr) url="https://ru.wikipedia.org/wiki/$@" ;;
     esac
 fi
-exec links -g "$url"
+[ -e /tmp/stargrave-flags/HI ] || {
+    fonts="-menu-font-size 16 -html-user-font-size 20"
+}
+exec links -g $fonts "$url"
index 95d897f1ae9eedc01879a126aad63eeaeabb905e..432b8613fa11e476de1bee6cb2ab90f1609a5f91 100644 (file)
@@ -9,7 +9,7 @@
 <dt>pep<dd><a href="https://www.python.org/dev/peps/pep-0%s/">PEP</a></dd>
 <dt>py<dd><a href="https://pypi.org/project/%s/">PyPI</a></dd>
 <dt>rfc<dd><a href="https://datatracker.ietf.org/doc/html/rfc%s">RFC</a></dd>
 <dt>pep<dd><a href="https://www.python.org/dev/peps/pep-0%s/">PEP</a></dd>
 <dt>py<dd><a href="https://pypi.org/project/%s/">PyPI</a></dd>
 <dt>rfc<dd><a href="https://datatracker.ietf.org/doc/html/rfc%s">RFC</a></dd>
-<dt>s<dd><a href="https://html.duckduckgo.com/html?q=%s">DuckDuckGo</a></dd>
+<dt>s<dd><a href="https://search.brave.com/search?q=%s">Brave</a></dd>
 <dt>we<dd><a href="https://en.wikipedia.org/wiki/%s">WikiEN</a></dd>
 <dt>wr<dd><a href="https://ru.wikipedia.org/wiki/%s">WikiRU</a></dd>
 </dl>
 <dt>we<dd><a href="https://en.wikipedia.org/wiki/%s">WikiEN</a></dd>
 <dt>wr<dd><a href="https://ru.wikipedia.org/wiki/%s">WikiRU</a></dd>
 </dl>
index b50b600100cd93c8c4fd2501c11dd8b7f464b70b..0b8c924dfd6392e1d1472b6328f8d17d176ceb25 100644 (file)
@@ -4,6 +4,8 @@ cache-secs=60
 display-tags=*
 gapless-audio=yes
 autosync=30
 display-tags=*
 gapless-audio=yes
 autosync=30
+cache-on-disk=no
+gpu-shader-cache=no
 audio-channels=2
 hwdec=vaapi
 hwdec-codecs=h264,hevc,vp8,vp9,mpeg2video,vc1
 audio-channels=2
 hwdec=vaapi
 hwdec-codecs=h264,hevc,vp8,vp9,mpeg2video,vc1
diff --git a/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim b/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim
deleted file mode 100644 (file)
index bb94dd6..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-vim9script
-
-export def Do(query: string, opencmd: string)
-    silent var result = systemlist(g:zshfe_path .. " " .. query)
-    if len(result) == 0 | return | endif
-    execute opencmd .. " " .. result[0][: -2]
-enddef
diff --git a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim
deleted file mode 100644 (file)
index cb05d99..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-vim9script
-
-# zsh file completion caller
-# Maintainer: Sergey Matveev <stargrave@stargrave.org>
-# License: GNU General Public License version 3 of the License or later
-
-if exists("*zshfe#Do") | finish | endif
-if !exists("g:zshfe_path")
-    g:zshfe_path = expand("<sfile>:p:h") .. "/zshfe.zsh"
-endif
-
-command! -nargs=1 Fe call zshfe#Do(<f-args>, "edit")
-command! -nargs=1 Fsp call zshfe#Do(<f-args>, "split")
-command! -nargs=1 Fvs call zshfe#Do(<f-args>, "vsplit")
-
-nmap <Leader>e :Fe 
-nmap <Leader><space> :Fsp 
-nmap <Leader>v :Fvs 
diff --git a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh
deleted file mode 100755 (executable)
index 9222054..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env zsh
-
-setopt ERR_EXIT
-zmodload zsh/zpty
-zpty zshfe zsh
-zpty -w zshfe "print ZSHFE $*"$'\t EFHSZ\nexit\n'
-zpty -r zshfe zshfe "*exit"
-print -- $zshfe | sed -n "s/^ZSHFE \(.*\) EFHSZ/\1/p"
diff --git a/wish/.wishrc b/wish/.wishrc
new file mode 100644 (file)
index 0000000..6b3dc14
--- /dev/null
@@ -0,0 +1,6 @@
+if {[file exists /tmp/stargrave-flags/HI]} {
+    font create myDefaultFont -family Go -size 12
+    option add *font myDefaultFont
+    tk scaling [expr {163 / 72.0}]
+}
+tk_setPalette grey
index 00f07a8971b1907faa71116131ac573d5c43e937..aec20aa2172b6c851ba1eba32789e84f123e95c4 100644 (file)
@@ -1,4 +1,3 @@
-Xft.dpi: 96
 Xft.hinting: true
 Xft.antialias: true
 Xft.autohint: false
 Xft.hinting: true
 Xft.antialias: true
 Xft.autohint: false
index 4717bbb7284a628ae6ac9a84aa82a317f5c8acd3..f04be49679d29744cfb952510bbb856dfb69ddb7 100755 (executable)
@@ -1,10 +1,16 @@
 #!/bin/zsh
 
 xsetroot -solid \#222222
 #!/bin/zsh
 
 xsetroot -solid \#222222
-xset b off
+if [[ -e /tmp/stargrave-flags/HI ]] ; then
+    xset s off b off -dpms
+    xset m 4 1
+fi
 setxkbmap -rules xorg -layout us,ru -option grp:caps_toggle,grp_led:caps
 xrdb ~/.Xresources
 xmodmap ~/.Xmodmap
 ~/work/godwmstat/godwmstat -xsetroot &
 rm -f ~/.ssh/agent ; ssh-agent -a $SSH_AUTH_SOCK
 setxkbmap -rules xorg -layout us,ru -option grp:caps_toggle,grp_led:caps
 xrdb ~/.Xresources
 xmodmap ~/.Xmodmap
 ~/work/godwmstat/godwmstat -xsetroot &
 rm -f ~/.ssh/agent ; ssh-agent -a $SSH_AUTH_SOCK
+if [[ -e /tmp/stargrave-flags/HI ]] ; then
+    ( sleep 30 ; xsetroot -xcf /usr/local/share/icons/Adwaita/cursors/left_ptr 30 ) &
+fi
 exec ~/src/suckless/dwm/dwm
 exec ~/src/suckless/dwm/dwm
index e123f5bcceb65038b1156ad7ba4a10a3d56a858d..57b1e1e8772a6a97727c626951e87989cc797542 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
 #!/bin/sh
 
-xset dpms force off
+[ -e /tmp/stargrave-flags/HI ] || xset dpms force off
 gpgconf --reload gpg-agent
 SSH_AUTH_SOCK=$HOME/.ssh/agent ssh-add -D
 slock
 gpgconf --reload gpg-agent
 SSH_AUTH_SOCK=$HOME/.ssh/agent ssh-add -D
 slock
index 69727aea90bbfda58907a0ef01cb9ea5a6507e08..fc2f81cf28f625e0c3ecf391d41ebf7a4ab7b8ec 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
 #!/bin/sh
 
-st -t Terminal8 -e sh -c "cd /home/stargrave/secure/mmc ; /home/stargrave/work/mmc/cmd/start" 2>/dev/null &
+st -t Terminal8 -e sh -c "cd /home/stargrave/secure/mmc ; envdir env /home/stargrave/work/mmc/cmd/start" 2>/dev/null &
index ca17aa25ff3e6b4b55a93611c001b6a4004fc128..cf889aa80e7cdd9cc9aadae52f9cc6f404ec7f6a 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
 rm .serverauth.* .Xauthority*
 #!/bin/sh
 
 rm .serverauth.* .Xauthority*
-exec startx
+exec startx $@
diff --git a/x/bin/start-x-hidpi b/x/bin/start-x-hidpi
new file mode 100755 (executable)
index 0000000..461753e
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mkdir -p /tmp/stargrave-flags
+touch /tmp/stargrave-flags/HI
+exec start-x -- -dpi 163
index 39be0c17d603c6f3d0b7a91e204dd4ce2c0d6bb7..65235733f6f5c720942333c71fc511d7302744d1 100644 (file)
@@ -1,2 +1,3 @@
 set sandbox strict
 set dbus-service false
 set sandbox strict
 set dbus-service false
+set font "monospace normal 20"
diff --git a/zathura/.zsh/rc/010zathurarc.zsh b/zathura/.zsh/rc/010zathurarc.zsh
new file mode 100644 (file)
index 0000000..a5bc5f8
--- /dev/null
@@ -0,0 +1,4 @@
+[[ -d $XDG_CONFIG_HOME/zathura ]] || {
+    mkdir -p $XDG_CONFIG_HOME/zathura
+    ln -fs ~/.zathurarc $XDG_CONFIG_HOME/zathura/zathurarc
+}
index f12a71841cfd2f2ca7fc646f6c23d5455ce961cf..9debef1e24e720a24c474aff2cc2eb95641ae8fa 100755 (executable)
@@ -2,6 +2,7 @@
 
 export PATH=$HOME/local/bin:$PATH
 export XDG_DATA_DIRS=$HOME/local
 
 export PATH=$HOME/local/bin:$PATH
 export XDG_DATA_DIRS=$HOME/local
+export XDG_CONFIG_HOME=/tmp/stargrave-xdg
 export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
 winid=`start-tabbed.sh zathura -c`
 zathura -e $winid "$1"
 export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
 winid=`start-tabbed.sh zathura -c`
 zathura -e $winid "$1"
index e107faeb87341dba7c6cf0dbe726a13b8edb486a..743e10cde91fa9e7bcd76c55409866e6fa50ddde 100644 (file)
@@ -1,3 +1,2 @@
 export IRCNAME="Sergey Matveev"
 export IRCNICK="stargrave"
 export IRCNAME="Sergey Matveev"
 export IRCNICK="stargrave"
-export MMC_ENTRYPOINT=mm.rnd.stcnet.ru