1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
urosm 917930c017 add README 2023-08-22 20:32:00 +02:00
urosm ca87e1ae95 add `pandoc` data 2023-08-22 20:32:00 +02:00
urosm beb11c9938 add scripts 2023-08-22 20:31:57 +02:00
21 changed files with 9573 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/sh
#
# fuzzel_find_file.sh
#
# Search for file and open it. Requires fuzzel and find.
pattern=$(fuzzel --dmenu --prompt "$ find . -type f ") || exit
selection=$(find . -type f -iname "$pattern" | fuzzel --dmenu --prompt "$ open ")
if [ -n "$selection" ]; then
exec open "$selection"
fi

View File

@ -0,0 +1,35 @@
#!/usr/bin/sh
#
# fuzzel_mount.sh
#
# Mount devices. Requires fuzzel and udisksctl.
LSBLK_PART_TYPE="part"
LSBLK_LIST=$(lsblk -Ppo name,type,mountpoint)
while read -r line; do
while read -r keyval; do
eval "$keyval"
done <<- EOF
$line
EOF
expr "$NAME" : "/dev/sda." && continue
[ "$TYPE" = "$LSBLK_PART_TYPE" ] || continue
if [ -n "$MOUNTPOINT" ]; then
option_list=$(printf %s\\n "udisksctl unmount -b $NAME" "$option_list")
else
option_list=$(printf %s\\n "udisksctl mount -b $NAME" "$option_list")
fi
done <<- EOF
$LSBLK_LIST
EOF
selection=$(printf %s "$option_list" | fuzzel --dmenu --prompt "$ ")
if [ -n "$selection" ]; then
# TODO: notification and error reporting
exec $selection
fi

View File

@ -0,0 +1,22 @@
#!/usr/bin/sh
#
# fuzzel_open_file.sh DIR
#
# Open file or terminal in current directory. Requires fuzzel and
# xdg-open.
DIR=${1:-$HOME}
cd "$DIR" || exit 1
DIR="$(pwd)"
selection=$(ls --group-directories-first -a1v | fuzzel --dmenu --prompt "$ open $DIR/")
if [ -n "$selection" ]; then
if [ "$selection" = "." ]; then
exec $TERMINAL -D "$DIR"
elif [ -d "$DIR/$selection" ]; then
exec $0 "$DIR/$selection"
elif [ -f "$DIR/$selection" ]; then
exec open "$DIR/$selection"
fi
fi

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,604 @@
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="sl-SI">
<info>
<translator>
<name>Kristof Ostir</name>
</translator>
<translator>
<name>ratek1</name>
</translator>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
<updated>2014-11-06T09:41:02+00:00</updated>
</info>
<style-options punctuation-in-quote="false"/>
<date form="text">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
<date form="numeric">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="numeric" suffix=". "/>
<date-part name="year"/>
</date>
<terms>
<term name="advance-online-publication">advance online publication</term>
<term name="album">album</term>
<term name="audio-recording">audio recording</term>
<term name="film">film</term>
<term name="henceforth">henceforth</term>
<term name="loc-cit">loc. cit.</term> <!-- like ibid., the abbreviated form is the regular form -->
<term name="no-place">no place</term>
<term name="no-place" form="short">n.p.</term>
<term name="no-publisher">no publisher</term> <!-- sine nomine -->
<term name="no-publisher" form="short">n.p.</term>
<term name="on">on</term>
<term name="op-cit">op. cit.</term> <!-- like ibid., the abbreviated form is the regular form -->
<term name="original-work-published">original work published</term>
<term name="personal-communication">osebna komunikacija</term>
<term name="podcast">podcast</term>
<term name="podcast-episode">podcast episode</term>
<term name="preprint">preprint</term>
<term name="radio-broadcast">radio broadcast</term>
<term name="radio-series">radio series</term>
<term name="radio-series-episode">radio series episode</term>
<term name="special-issue">special issue</term>
<term name="special-section">special section</term>
<term name="television-broadcast">television broadcast</term>
<term name="television-series">television series</term>
<term name="television-series-episode">television series episode</term>
<term name="video">video</term>
<term name="working-paper">working paper</term>
<term name="accessed">pridobljeno</term>
<term name="and">in</term>
<term name="and others">in drugi</term>
<term name="anonymous">anonimni</term>
<term name="anonymous" form="short">anon.</term>
<term name="at">pri</term>
<term name="available at">dostopno na</term>
<term name="by"></term>
<term name="circa">približno</term>
<term name="circa" form="short">prib.</term>
<term name="cited">citirano</term>
<term name="edition">
<single>izdaja</single>
<multiple>izdaje</multiple>
</term>
<term name="edition" form="short">izd.</term>
<term name="et-al">idr.</term>
<term name="forthcoming">pred izidom</term>
<term name="from">s</term>
<term name="ibid">isto</term>
<term name="in">v</term>
<term name="in press">v tisku</term>
<term name="internet">internet</term>
<term name="letter">pismo</term>
<term name="no date">brez datuma</term>
<term name="no date" form="short">b. d.</term>
<term name="online">na spletu</term>
<term name="presented at">predstavljeno na</term>
<term name="reference">
<single>referenca</single>
<multiple>reference</multiple>
</term>
<term name="reference" form="short">
<single>ref.</single>
<multiple>ref.</multiple>
</term>
<term name="retrieved">pridobljeno</term>
<term name="scale">merilo</term>
<term name="version">različica</term>
<!-- LONG ITEM TYPE FORMS -->
<term name="article">preprint</term>
<term name="article-journal">journal article</term>
<term name="article-magazine">magazine article</term>
<term name="article-newspaper">newspaper article</term>
<term name="bill">bill</term>
<!-- book is in the list of locator terms -->
<term name="broadcast">broadcast</term>
<!-- chapter is in the list of locator terms -->
<term name="classic">classic</term>
<term name="collection">collection</term>
<term name="dataset">dataset</term>
<term name="document">document</term>
<term name="entry">entry</term>
<term name="entry-dictionary">dictionary entry</term>
<term name="entry-encyclopedia">encyclopedia entry</term>
<term name="event">event</term>
<!-- figure is in the list of locator terms -->
<term name="graphic">graphic</term>
<term name="hearing">hearing</term>
<term name="interview">intervju</term>
<term name="legal_case">legal case</term>
<term name="legislation">legislation</term>
<term name="manuscript">manuscript</term>
<term name="map">map</term>
<term name="motion_picture">video recording</term>
<term name="musical_score">musical score</term>
<term name="pamphlet">pamphlet</term>
<term name="paper-conference">conference paper</term>
<term name="patent">patent</term>
<term name="performance">performance</term>
<term name="periodical">periodical</term>
<term name="personal_communication">osebna komunikacija</term>
<term name="post">post</term>
<term name="post-weblog">blog post</term>
<term name="regulation">regulation</term>
<term name="report">report</term>
<term name="review">review</term>
<term name="review-book">book review</term>
<term name="software">software</term>
<term name="song">audio recording</term>
<term name="speech">presentation</term>
<term name="standard">standard</term>
<term name="thesis">thesis</term>
<term name="treaty">treaty</term>
<term name="webpage">webpage</term>
<!-- SHORT ITEM TYPE FORMS -->
<term name="article-journal" form="short">journal art.</term>
<term name="article-magazine" form="short">mag. art.</term>
<term name="article-newspaper" form="short">newspaper art.</term>
<!-- book is in the list of locator terms -->
<!-- chapter is in the list of locator terms -->
<term name="document" form="short">doc.</term>
<!-- figure is in the list of locator terms -->
<term name="graphic" form="short">graph.</term>
<term name="interview" form="short">interv.</term>
<term name="manuscript" form="short">MS</term>
<term name="motion_picture" form="short">video rec.</term>
<term name="report" form="short">rep.</term>
<term name="review" form="short">rev.</term>
<term name="review-book" form="short">bk. rev.</term>
<term name="song" form="short">audio rec.</term>
<!-- HISTORICAL ERA TERMS -->
<term name="ad">n. št.</term>
<term name="bc">pr. n. št.</term>
<term name="bce">BCE</term>
<term name="ce">CE</term>
<!-- PUNCTUATION -->
<term name="open-quote"></term>
<term name="close-quote"></term>
<term name="open-inner-quote"></term>
<term name="close-inner-quote"></term>
<term name="page-range-delimiter"></term>
<term name="colon">:</term>
<term name="comma">,</term>
<term name="semicolon">;</term>
<!-- ORDINALS -->
<term name="ordinal">.</term>
<!-- LONG ORDINALS -->
<term name="long-ordinal-01">prva</term>
<term name="long-ordinal-02">druga</term>
<term name="long-ordinal-03">tretja</term>
<term name="long-ordinal-04">četrta</term>
<term name="long-ordinal-05">peta</term>
<term name="long-ordinal-06">šesta</term>
<term name="long-ordinal-07">sedma</term>
<term name="long-ordinal-08">osma</term>
<term name="long-ordinal-09">deveta</term>
<term name="long-ordinal-10">deseta</term>
<!-- LONG LOCATOR FORMS -->
<term name="act">
<single>act</single>
<multiple>acts</multiple>
</term>
<term name="appendix">
<single>appendix</single>
<multiple>appendices</multiple>
</term>
<term name="article-locator">
<single>article</single>
<multiple>articles</multiple>
</term>
<term name="canon">
<single>canon</single>
<multiple>canons</multiple>
</term>
<term name="elocation">
<single>location</single>
<multiple>locations</multiple>
</term>
<term name="equation">
<single>equation</single>
<multiple>equations</multiple>
</term>
<term name="rule">
<single>rule</single>
<multiple>rules</multiple>
</term>
<term name="scene">
<single>scene</single>
<multiple>scenes</multiple>
</term>
<term name="table">
<single>table</single>
<multiple>tables</multiple>
</term>
<term name="timestamp"> <!-- generally blank -->
<single></single>
<multiple></multiple>
</term>
<term name="title-locator">
<single>title</single>
<multiple>titles</multiple>
</term>
<term name="book">
<single>knjiga</single>
<multiple>knjige</multiple>
</term>
<term name="chapter">
<single>poglavje</single>
<multiple>poglavja</multiple>
</term>
<term name="column">
<single>stolpec</single>
<multiple>stolpci</multiple>
</term>
<term name="figure">
<single>slika</single>
<multiple>slike</multiple>
</term>
<term name="folio">
<single>folio</single>
<multiple>folii</multiple>
</term>
<term name="issue">
<single>številka</single>
<multiple>številke</multiple>
</term>
<term name="line">
<single>vrstica</single>
<multiple>vrstice</multiple>
</term>
<term name="note">
<single>opomba</single>
<multiple>opombe</multiple>
</term>
<term name="opus">
<single>opus</single>
<multiple>opusi</multiple>
</term>
<term name="page">
<single>stran</single>
<multiple>strani</multiple>
</term>
<term name="number-of-pages">
<single>stran</single>
<multiple>strani</multiple>
</term>
<term name="paragraph">
<single>odstavek</single>
<multiple>odstavki</multiple>
</term>
<term name="part">
<single>del</single>
<multiple>deli</multiple>
</term>
<term name="section">
<single>odsek</single>
<multiple>odseki</multiple>
</term>
<term name="sub-verbo">
<single>sub verbo</single>
<multiple>sub verbis</multiple>
</term>
<term name="verse">
<single>verz</single>
<multiple>verzi</multiple>
</term>
<term name="volume">
<single>letnik</single>
<multiple>letniki</multiple>
</term>
<!-- SHORT LOCATOR FORMS -->
<term name="appendix" form="short">
<single>app.</single>
<multiple>apps.</multiple>
</term>
<term name="article-locator" form="short">
<single>art.</single>
<multiple>arts.</multiple>
</term>
<term name="elocation" form="short">
<single>loc.</single>
<multiple>locs.</multiple>
</term>
<term name="equation" form="short">
<single>eq.</single>
<multiple>eqs.</multiple>
</term>
<term name="rule" form="short">
<single>r.</single>
<multiple>rr.</multiple>
</term>
<term name="scene" form="short">
<single>sc.</single>
<multiple>scs.</multiple>
</term>
<term name="table" form="short">
<single>tbl.</single>
<multiple>tbls.</multiple>
</term>
<term name="timestamp" form="short"> <!-- generally blank -->
<single></single>
<multiple></multiple>
</term>
<term name="title-locator" form="short">
<single>tit.</single>
<multiple>tits.</multiple>
</term>
<term name="book" form="short">knj.</term>
<term name="chapter" form="short">pogl.</term>
<term name="column" form="short">stolp.</term>
<term name="figure" form="short">sl.</term>
<term name="folio" form="short">fol.</term>
<term name="issue" form="short">št.</term>
<term name="line" form="short">vrst.</term>
<term name="note" form="short">op.</term>
<term name="opus" form="short">opus</term>
<term name="page" form="short">
<single>str.</single>
<multiple>str.</multiple>
</term>
<term name="number-of-pages" form="short">
<single>str.</single>
<multiple>str.</multiple>
</term>
<term name="paragraph" form="short">odst.</term>
<term name="part" form="short">del</term>
<term name="section" form="short">ods.</term>
<term name="sub-verbo" form="short">
<single>s. v.</single>
<multiple>s. v.</multiple>
</term>
<term name="verse" form="short">
<single>v.</single>
<multiple>v.</multiple>
</term>
<term name="volume" form="short">
<single>let.</single>
<multiple>let.</multiple>
</term>
<!-- SYMBOL LOCATOR FORMS -->
<term name="paragraph" form="symbol">
<single></single>
<multiple>¶¶</multiple>
</term>
<term name="section" form="symbol">
<single>§</single>
<multiple>§§</multiple>
</term>
<!-- LONG ROLE FORMS -->
<term name="chair">
<single>chair</single>
<multiple>chairs</multiple>
</term>
<term name="compiler">
<single>compiler</single>
<multiple>compilers</multiple>
</term>
<term name="contributor">
<single>contributor</single>
<multiple>contributors</multiple>
</term>
<term name="curator">
<single>curator</single>
<multiple>curators</multiple>
</term>
<term name="executive-producer">
<single>executive producer</single>
<multiple>executive producers</multiple>
</term>
<term name="guest">
<single>guest</single>
<multiple>guests</multiple>
</term>
<term name="host">
<single>host</single>
<multiple>hosts</multiple>
</term>
<term name="narrator">
<single>narrator</single>
<multiple>narrators</multiple>
</term>
<term name="organizer">
<single>organizer</single>
<multiple>organizers</multiple>
</term>
<term name="performer">
<single>performer</single>
<multiple>performers</multiple>
</term>
<term name="producer">
<single>producer</single>
<multiple>producers</multiple>
</term>
<term name="script-writer">
<single>writer</single>
<multiple>writers</multiple>
</term>
<term name="series-creator">
<single>series creator</single>
<multiple>series creators</multiple>
</term>
<term name="director">
<single>režiser</single>
<multiple>režiserji</multiple>
</term>
<term name="editor">
<single>urednik</single>
<multiple>uredniki</multiple>
</term>
<term name="editorial-director">
<single>glavni urednik</single>
<multiple>glavni uredniki</multiple>
</term>
<term name="illustrator">
<single>ilustrator</single>
<multiple>ilustratorji</multiple>
</term>
<term name="translator">
<single>prevajalec</single>
<multiple>prevajalci</multiple>
</term>
<term name="editortranslator">
<single>urednik &amp; prevajalec</single>
<multiple>uredniki &amp; prevajalci</multiple>
</term>
<!-- SHORT ROLE FORMS -->
<term name="compiler" form="short">
<single>comp.</single>
<multiple>comps.</multiple>
</term>
<term name="contributor" form="short">
<single>contrib.</single>
<multiple>contribs.</multiple>
</term>
<term name="curator" form="short">
<single>cur.</single>
<multiple>curs.</multiple>
</term>
<term name="executive-producer" form="short">
<single>exec. prod.</single>
<multiple>exec. prods.</multiple>
</term>
<term name="narrator" form="short">
<single>narr.</single>
<multiple>narrs.</multiple>
</term>
<term name="organizer" form="short">
<single>org.</single>
<multiple>orgs.</multiple>
</term>
<term name="performer" form="short">
<single>perf.</single>
<multiple>perfs.</multiple>
</term>
<term name="producer" form="short">
<single>prod.</single>
<multiple>prods.</multiple>
</term>
<term name="script-writer" form="short">
<single>writ.</single>
<multiple>writs.</multiple>
</term>
<term name="series-creator" form="short">
<single>cre.</single>
<multiple>cres.</multiple>
</term>
<term name="director" form="short">
<single>rež.</single>
<multiple>rež.</multiple>
</term>
<term name="editor" form="short">
<single>ur.</single>
<multiple>ur.</multiple>
</term>
<term name="editorial-director" form="short">
<single>gl. ur.</single>
<multiple>gl. ur.</multiple>
</term>
<term name="illustrator" form="short">
<single>ilus.</single>
<multiple>ilus.</multiple>
</term>
<term name="translator" form="short">
<single>prev.</single>
<multiple>prev.</multiple>
</term>
<term name="editortranslator" form="short">
<single>ur. &amp; prev.</single>
<multiple>ur. &amp; prev.</multiple>
</term>
<!-- VERB ROLE FORMS -->
<term name="chair" form="verb">chaired by</term>
<term name="compiler" form="verb">compiled by</term>
<term name="contributor" form="verb">with</term>
<term name="curator" form="verb">curated by</term>
<term name="executive-producer" form="verb">executive produced by</term>
<term name="guest" form="verb">with guest</term>
<term name="host" form="verb">hosted by</term>
<term name="narrator" form="verb">narrated by</term>
<term name="organizer" form="verb">organized by</term>
<term name="performer" form="verb">performed by</term>
<term name="producer" form="verb">produced by</term>
<term name="script-writer" form="verb">written by</term>
<term name="series-creator" form="verb">created by</term>
<term name="container-author" form="verb"></term>
<term name="director" form="verb">režiral</term>
<term name="editor" form="verb">uredil</term>
<term name="editorial-director" form="verb">uredil</term>
<term name="illustrator" form="verb">ilustriral</term>
<term name="interviewer" form="verb">intervjuval</term>
<term name="recipient" form="verb">za</term>
<term name="reviewed-author" form="verb">od</term>
<term name="translator" form="verb">prevedel</term>
<term name="editortranslator" form="verb">uredil &amp; prevedel</term>
<!-- SHORT VERB ROLE FORMS -->
<term name="compiler" form="verb-short">comp. by</term>
<term name="contributor" form="verb-short">w.</term>
<term name="curator" form="verb-short">cur. by</term>
<term name="executive-producer" form="verb-short">exec. prod. by</term>
<term name="guest" form="verb-short">w. guest</term>
<term name="host" form="verb-short">hosted by</term>
<term name="narrator" form="verb-short">narr. by</term>
<term name="organizer" form="verb-short">org. by</term>
<term name="performer" form="verb-short">perf. by</term>
<term name="producer" form="verb-short">prod. by</term>
<term name="script-writer" form="verb-short">writ. by</term>
<term name="series-creator" form="verb-short">cre. by</term>
<term name="director" form="verb-short">rež.</term>
<term name="editor" form="verb-short">ured.</term>
<term name="editorial-director" form="verb-short">ured.</term>
<term name="illustrator" form="verb-short">ilus.</term>
<term name="translator" form="verb-short">prev.</term>
<term name="editortranslator" form="verb-short">ured. &amp; prev. by</term>
<!-- LONG MONTH FORMS -->
<term name="month-01">januar</term>
<term name="month-02">februar</term>
<term name="month-03">marec</term>
<term name="month-04">april</term>
<term name="month-05">maj</term>
<term name="month-06">junij</term>
<term name="month-07">julij</term>
<term name="month-08">avgust</term>
<term name="month-09">september</term>
<term name="month-10">oktober</term>
<term name="month-11">november</term>
<term name="month-12">december</term>
<!-- SHORT MONTH FORMS -->
<term name="month-01" form="short">jan.</term>
<term name="month-02" form="short">feb.</term>
<term name="month-03" form="short">mar.</term>
<term name="month-04" form="short">apr.</term>
<term name="month-05" form="short">maj</term>
<term name="month-06" form="short">jun.</term>
<term name="month-07" form="short">jul.</term>
<term name="month-08" form="short">avg.</term>
<term name="month-09" form="short">sep.</term>
<term name="month-10" form="short">okt.</term>
<term name="month-11" form="short">nov.</term>
<term name="month-12" form="short">dec.</term>
<!-- SEASONS -->
<term name="season-01">pomlad</term>
<term name="season-02">poletje</term>
<term name="season-03">jesen</term>
<term name="season-04">zima</term>
</terms>
</locale>

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-fullnote-bibliography-sl

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-fullnote-bibliography

View File

@ -0,0 +1,2 @@
to: docx
reference-doc: ${USERDATA}/reference.docx

View File

@ -0,0 +1,2 @@
to: html
standalone: true

View File

@ -0,0 +1,2 @@
to: odt
reference-doc: ${USERDATA}/reference.odt

View File

@ -0,0 +1,8 @@
to: pdf
metadata:
indent: true
linestretch: 1.5
papersize: a4
fontfamily: tgtermes
fontsize: 12pt
colorlinks: false

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-syllabus-sl

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-syllabus

Binary file not shown.

Binary file not shown.

104
README 100644
View File

@ -0,0 +1,104 @@
dotfiles
sudo apt install git
cd
git init
git remote add origin gitea@git.kompot.si:urosm/dot.git
git pull
git checkout main -f
locales
sudo dpkg-reconfigure locales
networking
sudo apt install network-manager
firewall
sudo apt install ufw
sudo ufw allow "SSH"
sudo ufw allow 1194/udp
mounting
sudo apt install udisks2
neovim
sudo apt install ninja-build gettext cmake unzip curl
git clone --depth 1 --branch v0.9.1 https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=Release
sudo make install
lua-language-server
sudo apt install ninja-build
git clone --depth 1 --branch 3.6.25 https://github.com/luals/lua-language-server
./make.sh
shell scripting
sudo apt install shellcheck
sudo apt install shfmt
sway
sudo apt install --no-install-recommends sway
sudo apt install swayidle swaylock
sudo apt install mako-notifier libnotify-bin
sudo apt install foot
sudo apt install fuzzel
sudo apt install grimshot
sudo apt install light wlsunset
sudo apt install fonts-agave
audio
sudo apt install pipewire-audio
systemctl --user --now enable wireplumber.service
web and media
sudo apt install firefox-esr
sudo apt install thunderbird
sudo apt install mpv
sudo apt install zathura
writing
sudo apt install pandoc
sudo apt install texlive-latex-recommended texlive-fonts-extra
office
sudo apt install libreoffice libreoffice-gtk3
sudo apt install libreoffice-l10n-sl
printing and scanning
sudo apt install cups
sudo apt install simple-scan
sudo apt install imagemagick
sudo apt install ocrmypdf
sudo apt install tesseract-ocr-slv
remote desktop
sudo apt install remmina
sudo apt install wireguard-tools