diff options
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua | 3 | ||||
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua | 3 | ||||
| -rw-r--r-- | ar/.config/mimeapps.list | 1 | ||||
| -rw-r--r-- | ar/.config/newsboat/urls | 10 | ||||
| -rwxr-xr-x | ar/.local/bin/compiler | 12 | ||||
| -rw-r--r-- | global/.local/share/applications/html.desktop | 2 | ||||
| -rw-r--r-- | global/.local/share/applications/slide.desktop | 2 |
7 files changed, 19 insertions, 14 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua index 3ff7b80..500abf0 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua @@ -529,7 +529,8 @@ end, { desc = "Remove current file" }) -- Scripts vim.keymap.set("n", "<leader>rr", function() vim.cmd("w") - vim.cmd("split | resize 10 | terminal compiler " .. vim.fn.expand("%:p")) + local file = vim.fn.shellescape(vim.fn.expand("%:p")) + vim.cmd("split | resize 10 | terminal compiler " .. file) end, { noremap = true, silent = true, desc = "Run compiler interactively" }) vim.api.nvim_set_keymap( "n", diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua index 6cf68fa..a2d5aa2 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua @@ -1,13 +1,14 @@ return { "arnamak/stay-centered.nvim", lazy = false, + ft = { "markdown", "ipynb" }, config = function() require("stay-centered").setup({ -- The filetype is determined by the vim filetype, not the file extension. In order to get the filetype, open a file and run the command: -- :lua print(vim.bo.filetype) skip_filetypes = {}, -- Set to false to disable by default - enabled = false, + enabled = true, -- allows scrolling to move the cursor without centering, default recommended allow_scroll_move = true, -- temporarily disables plugin on left-mouse down, allows natural mouse selection diff --git a/ar/.config/mimeapps.list b/ar/.config/mimeapps.list index 479bbf8..e625a03 100644 --- a/ar/.config/mimeapps.list +++ b/ar/.config/mimeapps.list @@ -35,3 +35,4 @@ x-scheme-handler/https=librewolf.desktop;firefox.desktop; x-scheme-handler/lbry=lbry.desktop; x-scheme-handler/mailto=mail.desktop; x-scheme-handler/magnet=torrent.desktop; +x-scheme-handler/msteams=teams.desktop diff --git a/ar/.config/newsboat/urls b/ar/.config/newsboat/urls index d2a3f6e..ac05807 100644 --- a/ar/.config/newsboat/urls +++ b/ar/.config/newsboat/urls @@ -14,11 +14,11 @@ https://github.com/TheSiahxyz/suckless/commits/master.atom https://www.archlinux.org/feeds/news/ "~Arch" Distro Linux Tech https://artixlinux.org/feed.php "~Artix" Distro Linux Tech filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=sec%3A%2F%2Ffeeds.bbci.co.uk%2Fnews%2Ftechnology%2Frss.xml&max=200&links=preserve&exc=&submit=Create+Feed "~AI" AI News -filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=sec%3A%2F%2Fwww.koreaherald.com%2Frss%2Fkh_Business&max=200&links=preserve&exc=&submit=Create+Feed "~Business (KOR)" Business News -filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Fpolitics%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~Politics (KOR)" News Politics -filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Feconomy%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~Economy (KOR)" Economy News -filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Fsociety%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~Society (KOR)" News Society -filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Finternational%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~World (KOR)" News World +filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=sec%3A%2F%2Fwww.koreaherald.com%2Frss%2Fkh_Business&max=200&links=preserve&exc=&submit=Create+Feed "~Business (KR)" Business News +filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Fpolitics%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~Politics (KR)" News Politics +filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Feconomy%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~Economy (KR)" Economy News +filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Fsociety%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~Society (KR)" News Society +filter:~/.local/bin/decodetitle:https://ftr.thesiah.xyz/makefulltextfeed.php?url=www.yonhapnewstv.co.kr%2Fcategory%2Fnews%2Finternational%2Ffeed%2F&max=200&links=preserve&exc=&submit=Create+Feed "~World (KR)" News World " " "--- Blog ---" https://lukesmith.xyz/rss.xml "~Luke Smith" Blog diff --git a/ar/.local/bin/compiler b/ar/.local/bin/compiler index bcfb319..bf8b443 100755 --- a/ar/.local/bin/compiler +++ b/ar/.local/bin/compiler @@ -53,11 +53,13 @@ java) javac "$file" && echo "${base##*/}" | xargs java ;; js) node "$file" ;; m) octave "$file" ;; md) - { [ -x "$(command -v lowdown)" ] && [ -x "$(command -v groff)" ]; } && - lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf >"${base}.pdf" || - { [ -x "$(command -v groffdown)" ] && [ -x "$(command -v groff)" ]; } && - groffdown -i "${file}" | groff -T pdf >"${base}.pdf" || - pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}" + pandoc "$file" -s --pdf-engine=xelatex -V geometry:margin=2cm -o "${base}.pdf" || { + [ -x "$(command -v lowdown)" ] && + lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf >"${base}.pdf" || + [ -x "$(command -v groffdown)" ] && + groffdown -i "${file}" | groff -T pdf >"${base}.pdf" || + pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}" + } ;; me) groff -Gktes -b -w w -me -T ps "$file" | ps2pdf - >"$base".pdf ;; mm) groff -Gktes -b -w w -mm -mpic -T ps "$file" | ps2pdf - >"$base".pdf ;; diff --git a/global/.local/share/applications/html.desktop b/global/.local/share/applications/html.desktop index c009841..f9ddfe3 100644 --- a/global/.local/share/applications/html.desktop +++ b/global/.local/share/applications/html.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Html Viewer -Exec=/usr/bin/lynx %u +Exec=/usr/local/bin/st -e /usr/bin/lynx %u diff --git a/global/.local/share/applications/slide.desktop b/global/.local/share/applications/slide.desktop index 32675bf..1996148 100644 --- a/global/.local/share/applications/slide.desktop +++ b/global/.local/share/applications/slide.desktop @@ -1,5 +1,5 @@ [Desktop Entry] Type=Application Name=Slides Viewer -MimeType=text/markdown;text/x-markdown; Exec=/usr/local/bin/st -e slides %f +MimeType=text/markdown;text/x-markdown; |
