debian12 用systemd和sway-lock实现锁屏后休眠
摘要:systemd-inhibit --what sleep --why "Lock screen" --mode delay swaylock & systemctl hibernate 命令解析 systemd-inhibit --what=sleep --why="Lock screen" --m
阅读全文
debian12.6 sway自启动copyq 未集中copyq窗口时,copyq窗口不隐藏
摘要:参照:https://github.com/hluk/CopyQ/issues/1590 1.自启动脚本例如: exec copyq 则需要启用: copyq->File->Preferences->Layout->Hide main windows copyq->File->Preferences
阅读全文
debian vscode 顶部菜单栏太小,无法用zoom out, zoom in调节
摘要:按下:Ctrl+Shift+P 输入:Preferences: Open User Settings (JSON) 将以下设置添加到settings.json文件: "window.titleBarStyle": "custom" 这样zoom out,zoom in 就可以调节vscode顶部菜单
阅读全文
debian12.6 sway firefox 特定区域右键奔溃
摘要:崩溃的可能原因:sway版本过低,wayland 目前找到的解决方法就是让firefox使用xwayland窗口协议 MOZ_ENABLE_WAYLAND=0 firefox
阅读全文
linux创建github仓库并用git上传本地仓库到github仓库
摘要:1.创建github仓库 (1)点击右上角的头像 (2)点击Your repositories (3)点击New (4)填写好Owner和Repository name点击Add a README file选择license,再点击Create repository 2.用git上传本地仓库到git
阅读全文
vscode step into出现Could not load source './malloc/./malloc/malloc.c': 'SourceRequest' not supported..
摘要:问题: 使用step into调试c语言内建函数时就会出现 解决: 1.使用step over跳过调试c语言内建函数 2.将launch.json的工作目录设置为c库目录 对于debian系统 sudo apt install glibc-source cd /usr/src/glibc/ sudo
阅读全文
linux python -m 创建和使用虚拟环境
摘要:参照:https://docs.python.org/3/library/venv.html python -m venv /path/to/new/virtual/environment source /path/to/new/virtual/environment/bin/activate
阅读全文