Compare commits

...

3 Commits

Author SHA1 Message Date
e051e17cbb new post lts: arch_syyu; posts.md cleanup 2024-03-24 20:59:06 +08:00
47ee007e26 collections; wayland: cleanup 2024-03-24 20:49:08 +08:00
481962c9e9 new post: minecraft_im 2024-03-23 22:13:35 +08:00
9 changed files with 108 additions and 101 deletions

View File

@ -33,7 +33,7 @@
--> -->
<div class="home"> <div class="home">
<pre> <pre>
(<font color=#e67e80>let</font> ((blog <strong>"<a href=https://dongdigua.github.io/posts>posts/</a>"</strong>) (<font color=#e67e80>let</font> ((blog <strong>"<a href=https://dongdigua.github.io/posts>地瓜先生集</a>"</strong>)
(collections "<a href=https://dongdigua.github.io/internet_collections>MagicalIndex</a>") (collections "<a href=https://dongdigua.github.io/internet_collections>MagicalIndex</a>")
(rss "<a href=https://dongdigua.github.io/feed.xml>feed.xml</a>") (rss "<a href=https://dongdigua.github.io/feed.xml>feed.xml</a>")
(mai1 "<a>dongdigua砹outlook碘com</a>") (mai1 "<a>dongdigua砹outlook碘com</a>")
@ -46,7 +46,7 @@
<pre id="quote"></pre> <pre id="quote"></pre>
</div> </div>
<footer> <footer>
© 2022-2023 dongdigua<br> © 2022-2024 dongdigua<br>
Gemini: <a href=gemini://shenjack.top>gemini://shenjack.top</a><br> Gemini: <a href=gemini://shenjack.top>gemini://shenjack.top</a><br>
<a href=https://emacstalk.codeberg.page/post/035-made-with-emacs>Made with Emacs</a> <a href=https://emacstalk.codeberg.page/post/035-made-with-emacs>Made with Emacs</a>
</footer> </footer>

View File

@ -7,3 +7,4 @@
- Minecraft JE 技术生存 (MC 正统在 JE!) - Minecraft JE 技术生存 (MC 正统在 JE!)
- 骑公路车的 - 骑公路车的
- Elixir > Rust > Python - Elixir > Rust > Python
- 不是很喜欢扁平化设计

34
org/arch_syyu.org Normal file
View File

@ -0,0 +1,34 @@
#+TITLE: Arch 滚挂二三事
#+DATE: <2024-03-24 日>
#+OPTIONS: \n:t
今儿早 Arch 滚挂了,遂打算开一个长期更新主题,记录计算机维修艺术。
* 2024-03-24
一周没滚 Arch早上八点多一滚挂了首先是更新时报错
#+BEGIN_EXAMPLE
[2024-03-24T08:30:37+0800] [ALPM] running 'gdk-pixbuf-query-loaders.hook'...
[2024-03-24T08:30:37+0800] [ALPM-SCRIPTLET] /usr/bin/gdk-pixbuf-query-loaders: /usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /usr/lib/libgio-2.0.so.0)
[2024-03-24T08:30:37+0800] [ALPM] running 'gio-querymodules.hook'...
[2024-03-24T08:30:37+0800] [ALPM] running 'glib-compile-schemas.hook'...
[2024-03-24T08:30:37+0800] [ALPM-SCRIPTLET] /usr/bin/glib-compile-schemas: /usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /usr/lib/libgio-2.0.so.0)
[2024-03-24T08:30:37+0800] [ALPM] running 'gtk-update-icon-cache.hook'...
[2024-03-24T08:30:37+0800] [ALPM-SCRIPTLET] gtk-update-icon-cache: /usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /usr/lib/libgio-2.0.so.0)
#+END_EXAMPLE
然后一堆程序报错:
#+BEGIN_EXAMPLE
/usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /usr/lib/libgio-2.0.so.0)
#+END_EXAMPLE
重启直接进不去桌面了也连不上网了NetworkManager
我手里的 Arch 镜像还因为太老被我从 Ventoy 删掉了(没错,作为 Arch 用户这很尴尬),
我就启动原来的 Fedora 系统下了个最新的 =util-linux-libs= 包替换掉老的 =libmount.so= (这个操作不要学,有危险,可以直接安装本地包),能联网了,再更新一遍。
但 gdm 进去白屏 =:(=nautilus 也不能启动log 都指向了 gsettings schema
所以就重装任意一个 gnome 程序(比如 nautiluspacman 就会运行相应的 hook。
这次滚挂的原因我猜可能国内源同步的时候 =glib2= 已经更新了,但 =util-linux-libs= 还没,然后恰好被我赶上了……
#+BEGIN_EXAMPLE
util-linux-libs 2.40rc2-1 Last Updated: 2024-03-23 23:34 UTC
glib2 2.80.0-2 Last Updated: 2024-03-23 22:55 UTC
#+END_EXAMPLE

View File

@ -45,16 +45,18 @@ You can always find something magical on the Internet.
*** [[https://blog.trailofbits.com/2019/07/02/state/][State of the Art Proof-of-Work: RandomX]] *** [[https://blog.trailofbits.com/2019/07/02/state/][State of the Art Proof-of-Work: RandomX]]
*** [[https://kio.dev/blog/mixing-websockets-and-http-endpoints-in-elixir-with-cowboy-plug][Mixing WebSockets & HTTP endpoints in Elixir with Cowboy + Plug]] *** [[https://kio.dev/blog/mixing-websockets-and-http-endpoints-in-elixir-with-cowboy-plug][Mixing WebSockets & HTTP endpoints in Elixir with Cowboy + Plug]]
*** [[https://www.cnblogs.com/caoweixiong/p/12213993.html][Nginx——proxy_pass url 反向代理]] *** [[https://www.cnblogs.com/caoweixiong/p/12213993.html][Nginx——proxy_pass url 反向代理]]
*** [[https://www.cnblogs.com/fly-fish/archive/2011/08/16/2140695.html][如何看懂man page]]
*** [[https://manas.tech/blog/2023/10/25/approaching-unconventional-problems][How to find a lost phone in a no-cell-coverage camping site]]
** [[http://www.paulgraham.com/todo.html][Paul Graham]] ** [[http://www.paulgraham.com/todo.html][Paul Graham]]
** [[http://www.qiusir.com/][qiusir]] :rssub: ** [[http://www.qiusir.com/][qiusir]] :rssub:
*** [[http://www.qiusir.com/wp-content/plugins/download-monitor/download.php?id=The+Better+Butterfly+Theorems+.pdf][TheBetterButterflyTheorems]]
** [[http://xahlee.info][XahLee]] ** [[http://xahlee.info][XahLee]]
** [[http://www.catb.org/esr/][Eric S. Raymond]] ** [[http://www.catb.org/esr/][Eric S. Raymond]]
** [[http://www.yinwang.org][当然我在扯淡]] ** [[http://www.yinwang.org][当然我在扯淡]]
*** [[https://docs.huihoo.com/homepage/shredderyin/index.html][王垠的个人主页]] *** [[https://docs.huihoo.com/homepage/shredderyin/index.html][王垠的个人主页]]
** [[http://ruanyifeng.com/blog/][阮一峰]] :rssub: ** [[http://ruanyifeng.com/blog/][阮一峰]] :rssub:
** [[https://blog.lilydjwg.me/][依云]] :rssub: ** [[https://blog.lilydjwg.me/][依云]] :rssub:
*** [[https://blog.lilydjwg.me/2017/2/28/if-i-could-go-back-to-my-teenage.208794.html][如果重回到学生时代,我想这样做]]
** [[http://www.hackdig.com/][黑客技术]] :hack: ** [[http://www.hackdig.com/][黑客技术]] :hack:
really good website, butt, no rss really good website, butt, no rss
** [[https://bford.info][Bryan Ford]] ** [[https://bford.info][Bryan Ford]]
@ -192,7 +194,6 @@ Written with Vim and Emacs. A member of Linux Club of Peking University. [[https
with cat-v-like sidebar style with cat-v-like sidebar style
*** [[https://vimacs.wehack.space/Mail-vs-IM.htm][谈电子邮件和即时通讯]] *** [[https://vimacs.wehack.space/Mail-vs-IM.htm][谈电子邮件和即时通讯]]
**** [[https://citizenlab.ca/2016/11/wechat-china-censorship-one-app-two-systems/][微信一app两制]] **** [[https://citizenlab.ca/2016/11/wechat-china-censorship-one-app-two-systems/][微信一app两制]]
*** [[https://vimacs.wehack.space/notes/GFW.htm][GFW]]
** [[http://www.matrix67.com/blog/][Matrix67]] :math: ** [[http://www.matrix67.com/blog/][Matrix67]] :math:
The Aha Moments The Aha Moments
*** [[http://www.matrix67.com/blog/archives/6039][用三段 140 字符以内的代码生成一张 1024×1024 的图片]] :wow: *** [[http://www.matrix67.com/blog/archives/6039][用三段 140 字符以内的代码生成一张 1024×1024 的图片]] :wow:
@ -299,6 +300,9 @@ author of darkman
** [[https://nyk.ma][Nayuki's]] ** [[https://nyk.ma][Nayuki's]]
*** [[https://nyk.ma/posts/password-store/][pass : 密码管理本不复杂]] *** [[https://nyk.ma/posts/password-store/][pass : 密码管理本不复杂]]
*** [[https://nyk.ma/posts/nix-and-nixos/][Nix 和 NixOS你们安利方法错了]] *** [[https://nyk.ma/posts/nix-and-nixos/][Nix 和 NixOS你们安利方法错了]]
** [[https://www.gd1214b.icu][gd1214b]]
><
** [[https://soha.moe][海上的宫殿]]
# LABLE # LABLE
@ -356,6 +360,7 @@ use the power of tor:
#+END_SRC #+END_SRC
*** [[https://www.zhihu.com/question/306745383][ubuntu重启变成了debian怎么办?]] *** [[https://www.zhihu.com/question/306745383][ubuntu重启变成了debian怎么办?]]
U boom tu U boom tu
*** [[https://www.zhihu.com/question/20034686][计算机领域有哪些经典的典故或笑话?]]
* YouTube (没有账号, 这就是我的收藏夹) * YouTube (没有账号, 这就是我的收藏夹)
@ -398,7 +403,7 @@ inspiration: Veritasium
- allocate memory - allocate memory
- rw files - rw files
- IPC - IPC
**** TODO [[https://youtu.be/9s8vjf_vLaA][SmoothLife on GPU]] **** [[https://youtu.be/9s8vjf_vLaA][SmoothLife on GPU]]
**** [[https://youtu.be/iPrltr1b6Q4][I implemented Goto in OCaml]] **** [[https://youtu.be/iPrltr1b6Q4][I implemented Goto in OCaml]]
**** [[https://youtu.be/PgDqBZFir1A][Weird Parts of C you probably never heard of: Hot loading, X macro]] **** [[https://youtu.be/PgDqBZFir1A][Weird Parts of C you probably never heard of: Hot loading, X macro]]
**** [[https://youtu.be/b-q4QBy52AA][Web in Native Assembly (Linux x86_64)]] **** [[https://youtu.be/b-q4QBy52AA][Web in Native Assembly (Linux x86_64)]]
@ -442,6 +447,8 @@ quote: [[https://youtu.be/aWSQQUXmVVs?t=376][this operating system, the operatin
0:18 if you start seeing a whole bunch of tesla streams on my channel tomorrow you guys know what happened 0:18 if you start seeing a whole bunch of tesla streams on my channel tomorrow you guys know what happened
*** [[https://youtu.be/GWYhtksrmhE][how NASA writes space-proof code]] *** [[https://youtu.be/GWYhtksrmhE][how NASA writes space-proof code]]
*** [[https://youtu.be/dsHyUgGMht0][How GitHub's Database Self-Destructed in 43 Seconds]] *** [[https://youtu.be/dsHyUgGMht0][How GitHub's Database Self-Destructed in 43 Seconds]]
@@html:<details>@@
@@html:<summary>click to open</summary>@@
#+BEGIN_EXAMPLE #+BEGIN_EXAMPLE
Come back in 2047 when BitBucket's Come back in 2047 when BitBucket's
lunar data center failure causes extreme latency lunar data center failure causes extreme latency
@ -458,9 +465,11 @@ of services running on Earth and eventually
bringing down BitBucket entirely as it could not bringing down BitBucket entirely as it could not
handle writing through this interplanetary loop. handle writing through this interplanetary loop.
#+END_EXAMPLE #+END_EXAMPLE
@@html:</details>@@
*** [[https://youtu.be/Kn0MxHlima0][My4TH - A discrete CPU Forth computer]] *** [[https://youtu.be/Kn0MxHlima0][My4TH - A discrete CPU Forth computer]]
*** [[https://youtu.be/tZ5FBBnHfm4][Intro to Competitive Programming]] *** [[https://youtu.be/tZ5FBBnHfm4][Intro to Competitive Programming]]
*** [[https://youtu.be/msdymgkhePo][This Website has No Code, or Does it?]] *** [[https://youtu.be/msdymgkhePo][This Website has No Code, or Does it?]]
*** [[https://youtu.be/7taNCDMpPvc][I Read The Entire Bash Reference Manual (8.5h)]]
** [[https://www.youtube.com/@Computerphile][<C>]] ** [[https://www.youtube.com/@Computerphile][<C>]]
*** [[https://youtu.be/BAo5C2qbLq8][Network Time Protocol (NTP)]] *** [[https://youtu.be/BAo5C2qbLq8][Network Time Protocol (NTP)]]
@ -497,6 +506,7 @@ even caught by police when he was a child
*** [[https://youtu.be/eTcVLqKpZJc][PwnFunction: Dangerous Code Hidden in Plain Sight for 12 years]] in [[./wayland.org::#pkexec][pkexec]] *** [[https://youtu.be/eTcVLqKpZJc][PwnFunction: Dangerous Code Hidden in Plain Sight for 12 years]] in [[./wayland.org::#pkexec][pkexec]]
*** [[https://youtu.be/GEbn3nHyKnA][How One Line of Code Almost Blew Up the Internet]] *** [[https://youtu.be/GEbn3nHyKnA][How One Line of Code Almost Blew Up the Internet]]
*** [[https://youtu.be/aNEqC-U5tHM][Malware Development (1/2)]] *** [[https://youtu.be/aNEqC-U5tHM][Malware Development (1/2)]]
*** [[https://youtu.be/wTl4vEednkQ][stacksmashing: Breaking Bitlocker - Bypassing the Windows Disk Encryption]]
** Math ** Math
*** [[https://youtu.be/KufsL2VgELo][Group Theory]] *** [[https://youtu.be/KufsL2VgELo][Group Theory]]
@ -564,10 +574,13 @@ When I was trying to download this video, I found that youtube-dl was broken!
*** [[https://www.reddit.com/r/unixporn/comments/b83fex/win7_my_first_rice/][win7 :)]] *** [[https://www.reddit.com/r/unixporn/comments/b83fex/win7_my_first_rice/][win7 :)]]
*** [[https://www.reddit.com/r/unixporn/comments/wtvj46/kde_cherry_blossoms/][[KDE] Cherry Blossoms]] *** [[https://www.reddit.com/r/unixporn/comments/wtvj46/kde_cherry_blossoms/][[KDE] Cherry Blossoms]]
*** [[https://www.reddit.com/r/unixporn/comments/ujjok6/chalkboard_btw_i_use_fedora_3/][[chalkboard] Btw i use fedora <3]] *** [[https://www.reddit.com/r/unixporn/comments/ujjok6/chalkboard_btw_i_use_fedora_3/][[chalkboard] Btw i use fedora <3]]
*** [[https://www.reddit.com/r/unixporn/comments/1aers96/kde_laptop_stuff/][[kde] laptop stuff (very pink)]]
*** [[https://www.reddit.com/r/unixporn/comments/1afiymb/hyprland_wip_soot_sprites_i_love_them/][[hyprland] wip soot sprites (I love them)]]
** [[https://www.reddit.com/r/ProgrammerHumor][ProgrammerHumor]] ** [[https://www.reddit.com/r/ProgrammerHumor][ProgrammerHumor]]
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/wpnvtg/microsoft_visual_rust_2018/][Microsoft Visual Rust]] *** [[https://www.reddit.com/r/ProgrammerHumor/comments/wpnvtg/microsoft_visual_rust_2018/][Microsoft Visual Rust]]
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/wsw78u/regex_be_like/][MC enchant: regex be like...]] *** [[https://www.reddit.com/r/ProgrammerHumor/comments/wsw78u/regex_be_like/][MC enchant: regex be like...]]
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/mr8gqx/new_episode_of_electricianhumor/][New episode of ElectricianHumor]] *** [[https://www.reddit.com/r/ProgrammerHumor/comments/mr8gqx/new_episode_of_electricianhumor/][New episode of ElectricianHumor]]
** [[https://www.reddit.com/r/kde/comments/1599vc4/kde_on_windows_im_not_joking/][KDE on Windows (I'm not joking)]]
* Mail/Kernel/BZ * Mail/Kernel/BZ
:PROPERTIES: :PROPERTIES:
@ -593,6 +606,7 @@ from emacs-china, about multi-thread
** [[https://lists.debian.org/debian-riscv/2023/07/msg00053.html][debian: riscv64 is now an official architecture]] ** [[https://lists.debian.org/debian-riscv/2023/07/msg00053.html][debian: riscv64 is now an official architecture]]
** [[https://lore.kernel.org/lkml/CA+55aFxtD2VYW2R0JwjFkZkvzQzcN7qK3m6ReR+BBXtfyDHx7g@mail.gmail.com/][Re: [GIT] Networking (Linus used Fedora)]] ** [[https://lore.kernel.org/lkml/CA+55aFxtD2VYW2R0JwjFkZkvzQzcN7qK3m6ReR+BBXtfyDHx7g@mail.gmail.com/][Re: [GIT] Networking (Linus used Fedora)]]
** [[https://lore.kernel.org/all/20221130082313.3241517-1-tj@kernel.org/][[PATCHSET RFC] sched: Implement BPF extensible scheduler class]] ** [[https://lore.kernel.org/all/20221130082313.3241517-1-tj@kernel.org/][[PATCHSET RFC] sched: Implement BPF extensible scheduler class]]
** TODO [[https://lists.suckless.org/dev/1409/23497.html][[suckless-dev] [RFC] Design of a vim like text editor]]
* Other * Other
:PROPERTIES: :PROPERTIES:
@ -650,9 +664,12 @@ BSD asm
** [[https://github.com/torvalds/linux/pull/17][torvalds: I don't do github pull requests]] ** [[https://github.com/torvalds/linux/pull/17][torvalds: I don't do github pull requests]]
** [[https://cohost.org/blackle/post/42994-div-style-pointer][CSS 的机械装置 (from ruanyifeng 252)]] ** [[https://cohost.org/blackle/post/42994-div-style-pointer][CSS 的机械装置 (from ruanyifeng 252)]]
** [[https://oldcompcz.github.io/jgs/][jgs ASCII art]] ** [[https://oldcompcz.github.io/jgs/][jgs ASCII art]]
** TODO [[http://retrobase.cn][retrobase 识旧知新]] ** [[http://retrobase.cn][retrobase 识旧知新]]
** [[https://www.zzzuckerberg.com][Legal Lullabies]] ** [[https://www.zzzuckerberg.com][Legal Lullabies]]
** [[https://11-90-an.github.io/rseditor][rseditor]] ** [[https://11-90-an.github.io/rseditor][rseditor]]
** [[https://floooh.github.io/visualz80remix/][Visual Z80 Remix]] ** [[https://floooh.github.io/visualz80remix/][Visual Z80 Remix]]
** [[https://lab.magiconch.com][神奇海螺试验场]] ** [[https://lab.magiconch.com][神奇海螺试验场]]
** [[https://tilde.team/wiki/other-tildes][tilde.team wiki: other tildes]] ** [[https://tilde.team/wiki/other-tildes][tilde.team wiki: other tildes]]
** [[https://artsey.io][ARTSEY one-handed keyboard system]]
** [[https://joakimthorsen.github.io/MCPropertyEncyclopedia][MCPropertyEncyclopedia]]
** [[https://0xinfection.github.io/reversing][Reverse Engineering For Everyone!]]

17
org/minecraft_im.org Normal file
View File

@ -0,0 +1,17 @@
#+TITLE: Wayland 下在 Minecraft (1.12) 里输入中文
#+DATE: <2024-02-29 四>
TL;DR [[https://github.com/Yesterday17/KokoaLinux][KokoaLinux]]
我玩一个 1.12.2 原版服务器,还是此服的前服主。
或曰:现在都 2024 年了,怎么还玩上古版本?答曰:利用特性获取某些(下落)方块,如基岩,末地传送门,地狱传送门,水等,以及操控 RNG。
但是,在 2017 年 1.12.2 发布时Wayland 还不是很普及,所以 bugjang 没有做这方面的支持。
其实当时也有解决方案,不过也是在 X 下:[[https://blog.lilydjwg.me/2015/5/17/input-chinese-to-minecraft-in-linux.93167.html][依云's Blog: Linux 下在 Minecraft 里输入中文]]Wayland 下类似的 *dotool 只能模拟按键输入,而不能输入 UTF-8 字符。
如今日常使用 sway我日常使用的其他程序[[https://github.com/swaywm/sway/pull/7226][几乎都能用输入法了]],就 MC 不行。
想要说中文还是有办法,用 emacs 中的输入法拷贝过去,但是一是费劲,二是告示排等无法输入。所以我能不说中文就不说中文,以至于服务器的新人会以为我是外国人……
今天逛(考古) ArchLinuxCN 论坛,发现个令人眼前一亮的帖子:[[https://bbs.archlinuxcn.org/viewtopic.php?id=13945][MC中无法使用输入法]],此人使用 hyprland (hyper means high :) 正好符合我的现状!
[[https://github.com/Yesterday17/KokoaLinux][KokoaLinux]] 是一个 Forge mod就扔进 mods 文件夹里就行。
还有一个小问题,我的 sway 是用的 =sway-git= ,因为上述的输入法 PR 还没有进入 release但是现在 [[https://aur.archlinux.org/packages/sway-git#comment-952005][xwayland 的 OpenGL 加速坏了]]……
看我博客的未来人应该能等到这些修复合入稳定版,那时应该问题不大。

View File

@ -179,10 +179,6 @@ rm index.gmi
git checkout -- index.gmi git checkout -- index.gmi
#+END_SRC #+END_SRC
* pf
我唯一能控制机器的方式就是 SSH, 使用 pf 可能会有危险.
反正服务器是在内网, 只有少数服务通过转发暴露出去.
* samba * samba
弄着个电子垃圾 64G U盘, 想架个 Samba 弄着个电子垃圾 64G U盘, 想架个 Samba
要安好多软件包, 果断开 jail 要安好多软件包, 果断开 jail

View File

@ -1,90 +1,47 @@
#+TITLE: Play with Swaywm and Nixos #+TITLE: Swaywm/Wayland related issues (踩坑)
#+DESCRIPTION: 返璞归真 #+DESCRIPTION: 返璞归真
#+DATE: <2022-08-07 日> #+DATE: <2022-08-07 日>
#+OPTIONS: toc:nil #+OPTIONS: toc:nil
* Solution * VirtualBox
** VirtualBox ** cursor
*** cursor
=WLR_NO_HARDWARE_CURSORS=1= =WLR_NO_HARDWARE_CURSORS=1=
*** egl error ** egl error
enable 3D acceleration in VirtualBox enable 3D acceleration in VirtualBox
** unable to drop root * unable to drop root
donot run under root donot run under root
*** in normal user, libseat permission deniened ** in normal user, libseat permission deniened
add user in =video= group add user in =video= group
login as user, not root login as user, not root
** iBus
*** [[https://www.reddit.com/r/swaywm/comments/djkj5m/ibus_on_swaywm/][reddit: ibus on swaywm]] * iBus
so I use emacs pyim no, use fcitx5 instead
** Authorization required, but no authorization protocol specified ** [[https://www.reddit.com/r/swaywm/comments/djkj5m/ibus_on_swaywm/][reddit: ibus on swaywm]]
*** =sudo -E=
*** lxpolkit(directly execute) or polkit-gnome(prettier, at /usr/libexec/polkit-gnome-authentication-agent-1) * Authorization required, but no authorization protocol specified
*** pkexec ** =sudo -E=
** lxpolkit(directly execute) or polkit-gnome(prettier, at /usr/libexec/polkit-gnome-authentication-agent-1)
** pkexec
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: pkexec :CUSTOM_ID: pkexec
:END: :END:
** cannot start sway on lightdm
:PROPERTIES: * environment variable?
:CUSTOM_ID: dm trick: add =Exec=zsh -lc sway= in =/usr/share/wayland-sessions/sway.desktop=
:END: * cursor theme not working
yes, still not stable, and it can't remenber which DE you used last time
+so use gdm is a better choice?+
SDDM is fantastic! [[https://youtu.be/2p7FINJSlAk][It is themeable]],
I'm using *~elarun~*, a oxygen-like smooth crystal theme, materia-kde is also a good choice
*** Fedora 37 don't work
sddm don't work on fedora37, so switch to gdm
*** environment variable missing?
trick: add =Exec=oksh -lc sway= in =/usr/share/wayland-sessions/sway.desktop=
[[https://github.com/dongdigua/configs/commit/7cb715199e58c9a1569861f14d3beec91553375b][ksh yes]]
** obs
don't remove the =include= line in sway/config, and it will be fine
** cursor theme not working
[[https://github.com/swaywm/sway/issues/6931][from this issue]] [[https://github.com/swaywm/sway/issues/6931][from this issue]]
add =seat seat0 xcursor_theme Oxygen_White= in sway config file add =seat seat0 xcursor_theme Oxygen_White= in sway config file
** touchpad gesture like gnome * [[https://www.reddit.com/r/swaywm/comments/scz5k6/option_create_on_workspace_prev_on_outputnext_on/][Option --create on workspace prev_on_output|next_on_output?]]
use libinput-gestures
*** [[https://github.com/swaywm/sway/issues/1514][issue #1514: touchpad gestures to switch workspaces]]
**** [[https://github.com/swaywm/sway/pull/4952][pull #4952]]
*** r/swaywm
**** [[https://www.reddit.com/r/swaywm/comments/px5vmw/how_are_you_configuring_touchpad_gestures/]]
**** [[https://www.reddit.com/r/swaywm/comments/em0jnx/can_sway_handle_threefour_finger_touchpad_gestures/]]
** TODO [[https://github.com/WayfireWM/wayfire/issues/1329][Wayfire crashes when closing foot terminal]]
** emacs tool-bar not working and icon theme missing
pgtk
** [[https://www.reddit.com/r/swaywm/comments/scz5k6/option_create_on_workspace_prev_on_outputnext_on/][Option --create on workspace prev_on_output|next_on_output?]]
this feature is not compatible with i3, so sway didn't accept the pr this feature is not compatible with i3, so sway didn't accept the pr
*** [[https://www.reddit.com/r/swaywm/comments/mmfwnu/sway_command_workspace_next/][shell script solution]] ** [[https://www.reddit.com/r/swaywm/comments/mmfwnu/sway_command_workspace_next/][shell script solution]]
*** [[https://github.com/oati/sway-workspace-manager][rust, probably useful]] ** [[https://github.com/oati/sway-workspace-manager][rust, probably useful]]
** grim + slurp screenshot pause the screen * grim + slurp screenshot pause the screen
[[https://github.com/jtheoof/swappy][swappy]] is probably an idea [[https://github.com/jtheoof/swappy][swappy]] is probably an idea
I odn't want to make it too complicated, I odn't want to make it too complicated,
just shot the whole screen and edit with GIMP later just shot the whole screen and edit with GIMP later
** dark mode * dark mode
[[https://gitlab.com/WhyNotHugo/darkman][darkman]] [[https://gitlab.com/WhyNotHugo/darkman][darkman]]
but, if you are using swayfx, [[https://github.com/WillPower3309/swayfx/issues/226#issuecomment-1879642217][#226]] but, if you are using swayfx (~2024.1), [[https://github.com/WillPower3309/swayfx/issues/226#issuecomment-1879642217][#226]]
* [[https://github.com/swaywm/sway/pull/7226][sway input-method popup #7226]]
[[https://github.com/swaywm/sway/pull/7226#issuecomment-1294741956][foot works]]
* Ref
** [[https://coda.world/sway-explore-and-giveup][Sway: 从尝试到放弃]]
** [[https://shinta.ro/posts/migration-from-xorg-to-wayland/][从 Xorg 迁移到 Wayland]]
** [[https://github.com/emersion/xdg-desktop-portal-wlr/wiki/Screencast-Compatibility#obs][xdg-desktop-portal wiki: obs]]
** [[https://www.reddit.com/r/swaywm/comments/ehqsuw/autochanging_background_for_sway/][reddit: auto-changing sway background]]
** Configs
*** [[https://github.com/ziap/dotfiles]]
a great config
*** [[https://github.com/Ruixi-rebirth/sway-dotfiles][Ruixi-rebirth's dotfiles]]
sway, very beautiful, from COSSIG
*** [[https://www.reddit.com/r/unixporn/comments/vc9912/river_riced_river_a_dynamic_tiling_wayland/][a Paid config]]
this is excellent, but...not for me, I'd like something simpler
**** [[https://archcraft.io][archcraft]]
*** [[https://github.com/rxyhn/yoru][夜 - Yoru]]
awesome config!
* NixOS related
:PROPERTIES:
:CUSTOM_ID: nix
:END:
** [[https://sr.ht/~guido/nixos-init-freedom/][nixos without systemd?]]
** [[https://gist.github.com/kborling/76805ade81ac5bfdd712df294208c878][a really useful example config]]
** [[https://xeiaso.net/blog/super-bootable-64-2020-05-06][Xe: Super Bootable 64]]

View File

@ -4,12 +4,6 @@
#+OPTIONS: toc:2 #+OPTIONS: toc:2
#+HTML_HEAD_EXTRA: <link rel="shortcut icon" href=/images/pufferfish.png> #+HTML_HEAD_EXTRA: <link rel="shortcut icon" href=/images/pufferfish.png>
又一篇中文文章
这个文章可能是我写过最长的了 (internet_collections 不算)
请不要不知好歹地转载!
地址: dongdigua.github.io/whatif_openbsd
base64: ZG9uZ2RpZ3VhLmdpdGh1Yi5pby93aGF0aWZfb3BlbmJzZA==
#+BEGIN_EXAMPLE #+BEGIN_EXAMPLE
_ _
(_) (_)

View File

@ -1,10 +1,9 @@
## Table of Contents ## Table of Contents
### Posts (sorted by time) ### Posts (sorted by time)
- [2024-02-29 : Wayland 下在 Minecraft (1.12) 里输入中文](minecraft_im)<br>
- [2024-02-14 : 智能闹钟不如随身听不如派](alarm_clock)<br> - [2024-02-14 : 智能闹钟不如随身听不如派](alarm_clock)<br>
- [2023-12-29 : 消失的 emacs dunnet 教程](dunnet)<br> - [2023-12-29 : 消失的 emacs dunnet 教程](dunnet)<br>
<!-- <!-- - [2023-08-11 : MC 知识体系构建的思考](tmc_archive)<br> -->
- [2023-08-11 : MC 知识体系构建的思考](tmc_archive)<br>
-->
- [2023-07-25 : Run a Lua Demo](lua_demo)<br> - [2023-07-25 : Run a Lua Demo](lua_demo)<br>
- [2023-07-10 : 在 NanoPi R2S 上运行 FreeBSD](nanopi_freebsd)<br> - [2023-07-10 : 在 NanoPi R2S 上运行 FreeBSD](nanopi_freebsd)<br>
- [2023-06-08 : Org: Disable Gnus Loading when Org is Loaded](gmi/org_load_gnus_disable.gmi.txt)<br> - [2023-06-08 : Org: Disable Gnus Loading when Org is Loaded](gmi/org_load_gnus_disable.gmi.txt)<br>
@ -19,35 +18,27 @@
- [2023-01-02 : 2023 了, 试试 emacs 29](emacs29_2023)<br> - [2023-01-02 : 2023 了, 试试 emacs 29](emacs29_2023)<br>
- [2022-12-19 : Fix TTY after Fedora 37 Upgrade](fix_tty)<br> - [2022-12-19 : Fix TTY after Fedora 37 Upgrade](fix_tty)<br>
- [2022-12-02 : 狗日的腾讯会议](damn_tencent_meeting)<br> - [2022-12-02 : 狗日的腾讯会议](damn_tencent_meeting)<br>
上网课有感而发
- [2022-11-20 : New Blog Architecture](new_blog_arch)<br> - [2022-11-20 : New Blog Architecture](new_blog_arch)<br>
mess -> branch -> CI
- [2022-11-13 : 记一次帮老师修U盘](recover_udisk)<br> - [2022-11-13 : 记一次帮老师修U盘](recover_udisk)<br>
- [2022-11-04 : Clear Kernel Compile Error? Fix It](clear_kernel_compile_fix)<br> - [2022-11-04 : Clear Kernel Compile Error? Fix It](clear_kernel_compile_fix)<br>
- [2022-10-29 : Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)<br> - [2022-10-29 : Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)<br>
- [2022-09-29 : CentOS/Fedora 不同的配置默认都安装了什么软件](anaconda_kickstarts)<br> - [2022-09-29 : CentOS/Fedora 不同的配置默认都安装了什么软件 (cossig.org)](anaconda_kickstarts)<br>
for [COSSIG](https://www.cossig.org)
- [2022-09-11 : moonboos, 懂的都懂](moonboos)<br> - [2022-09-11 : moonboos, 懂的都懂](moonboos)<br>
- [2022-08-17 : MGLNDD scans](weird_mglndd)<br> - [2022-08-17 : MGLNDD scans](weird_mglndd)<br>
- [2022-07-08 : My gnome config](my_gnome_config)<br> - [2022-07-08 : My gnome config](my_gnome_config)<br>
- [2022-07-06 : 我对 SciCraft 更新1.19的看法](gmi/scicraft_update.gmi.txt)<br> - [2022-07-06 : 我对 SciCraft 更新1.19的看法](gmi/scicraft_update.gmi.txt)<br>
- [2022-06-27 : 推荐 everforest 主题](recommend_everforest_theme)<br> - [2022-06-27 : 推荐 everforest 主题](recommend_everforest_theme)<br>
any kind of contribution is welcome <!-- - [2022-06-18 : 我对显示 IP 属地的看法](bili_ip)<br> -->
- [2022-06-18 : 我对显示 IP 属地的看法](bili_ip)<br>
--- ---
### Long Term Update ### Long Term Update
- [Arch 滚挂二三事](arch_syyu)<br>
- [study4fun archives](study4fun)<br> - [study4fun archives](study4fun)<br>
- [Gopher/Gemini reactions](gmi/re.gmi.txt)<br>
- [Gopher/Gemini collections, a quiet web](gmi/collections.gmi.txt)<br> - [Gopher/Gemini collections, a quiet web](gmi/collections.gmi.txt)<br>
- [Random Ideas](ideas)<br>
画大饼
- [Play with Swaywm and Nixos (solutions)](wayland)<br> - [Play with Swaywm and Nixos (solutions)](wayland)<br>
if you have some problem with sway, you can probably find solution here
- [(Editor) Cheatsheet](cheatsheet)<br> - [(Editor) Cheatsheet](cheatsheet)<br>
- [Internet Collections](internet_collections)<br> - [Internet Collections (博客, YouTube 等收集)](internet_collections)<br>
博客, YouTube 等收集
--- ---