Skip to content

Instantly share code, notes, and snippets.

signal time=1767593707.988728 sender=org.freedesktop.DBus -> destination=:1.169 serial=4294967295
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.169"
method call time=1767593719.033085 sender=:1.167 -> destination=:1.159 serial=1833 path=/org/freed
esktop/portal/inputcontext/1; interface=org.fcitx.Fcitx.InputContext1; member=FocusIn
signal time=1767593719.033174 sender=:1.159 -> destination=:1.167 serial=2174 path=/org/freedeskto
p/portal/inputcontext/1; interface=org.fcitx.Fcitx.InputContext1; member=CurrentIM
[00:14:29]exwm-input--on-buffer-list-update: current-buffer=#<buffer *D-Bus explorer:session*> selected-window=#<window 21 on *D-Bus explorer:session*>
[00:14:29]exwm-input--on-buffer-list-update: current-buffer=#<buffer *D-Bus explorer:session*> selected-window=#<window 21 on *D-Bus explorer:session*>
[00:14:29]exwm-layout--refresh: frame=#<frame *D-Bus explorer:session* 0x57a2d61c2b50>
[00:14:29]exwm-layout--refresh-workspace: Refresh workspace #<frame *D-Bus explorer:session* 0x57a2d61c2b50>
[00:14:29]exwm-layout--show: Show #x2000003 in #<window 41 on firefox::how to solve emacs "exwm" mode key confict with override-global-map - Google Search — Mozilla Firefox>
[00:14:29]exwm--set-geometry: Setting #x2000003 to 700x1032+700+0
[00:14:29]exwm-layout--set-state: id=#x2000003
[00:14:29]exwm-layout--set-client-list-stacking:
[00:14:29]exwm-layout--refresh: frame=#<frame *D-Bus explorer:session* 0x57a2d61c2b50>
[00:14:29]exwm-layout--refresh-workspace: Refresh workspace #<frame *D-Bus explorer:session* 0x57a2d6
@QiangF
QiangF / gist:f8ae477d9e5eb1e7fff425c9c88360b1
Created January 4, 2026 02:42
when input not working
[00:09:41]exwm-input--on-KeyPress: major-mode=exwm-mode buffer=firefox::how to solve emacs "exwm" mode key confict with override-global-map - Google Search — Mozilla Firefox
[00:09:41]exwm-input--on-KeyPress-line-mode: (65507 . 0)
[00:09:41]exwm-input--on-KeyPress: major-mode=exwm-mode buffer=firefox::how to solve emacs "exwm" mode key confict with override-global-map - Google Search — Mozilla Firefox
[00:09:41]exwm-input--on-KeyPress-line-mode: (108 . 3)
[00:09:41]exwm-input--mimic-read-event:
[00:09:41]exwm-input--cache-event: 12
[00:09:41]exwm--on-PropertyNotify: atom=_NET_WM_USER_TIME(409)
[00:09:41]exwm-input--on-PropertyNotify:
[00:09:46]exwm--on-PropertyNotify: atom=_NET_WM_STATE(386)
[00:09:46]exwm-input--on-PropertyNotify:
import dbus
import dbus.mainloop.glib
from gi.repository import GLib
# Define the signal handler function
def update_client_side_ui_handler(flags):
"""Handler for the UpdateClientSideUI signal."""
print(f"Received UpdateClientSideUI signal with flags: {flags}")
# Add your custom logic here to update the client-side UI
# System Info:
1. `uname -a`:
Linux mypc 6.6.59-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 06:29:43 +0000 x86_64 GNU/Linux
2. `lsb_release -a`:
LSB Version: n/a
Distributor ID: Arch
Description: Arch Linux
@QiangF
QiangF / .el
Created December 30, 2025 01:04
(require 'dbus)
(defvar fcitx-ic-path nil)
(defvar fcitx-preedit-string "")
(defvar fcitx-commit-string "")
(defvar fcitx-candidates nil)
;; 1. Create Context
(setq fcitx-ic-path
(car (dbus-call-method :session
q@mypc:~$ dbus-monitor "interface='org.fcitx.Fcitx.InputContext1'"
signal time=1767015961.017875 sender=:1.5 -> destination=:1.671 serial=5783 path=/org/freedesktop/portal/inputcontext/2; interface=org.fcitx.Fcitx.InputContext1; member=CurrentIM
string "Pinyin"
string "pinyin"
string "zh_CN"
method call time=1767015962.993409 sender=:1.671 -> destination=:1.5 serial=603 path=/org/freedesktop/portal/inputcontext/2; interface=org.fcitx.Fcitx.InputContext1; member=Reset
method call time=1767015964.231803 sender=:1.671 -> destination=:1.5 serial=604 path=/org/freedesktop/portal/inputcontext/2; interface=org.fcitx.Fcitx.InputContext1; member=ProcessKeyEvent
uint32 110
uint32 57
HTTP/2 200
content-location: index.en.html
vary: negotiate,accept-language,Accept-Encoding,cookie
tcn: choice
x-content-type-options: nosniff
x-frame-options: sameorigin
referrer-policy: no-referrer
x-xss-protection: 1
permissions-policy: interest-cohort=()
strict-transport-security: max-age=15552000
#!/usr/bin/python
# symlinking.py need to be run under the root dir of the script
import os
from os import path, system
def symlink(symlink_dir, symlink_name, relative_target_path):
print("make symlink {} to {}".format(symlink_name, relative_target_path))
symlink = path.join(symlink_dir, symlink_name)
@QiangF
QiangF / emacs-guix-setup.org
Created July 18, 2025 09:22 — forked from noah-evans/emacs-guix-setup.org
Using the guix package manager for a cross-distro, reproducible emacs environment.

Using the guix package manager for a cross-distro, reproducible emacs environment

GNU guix is a functional package manager, that can be installed on any distribution and used to manage packages, including emacs packages.

How is this different from straight.el

straight.el is also a functional package manager, but unlike guix, it only manages emacs packages, while with guix you can include external programs that you will make use of from emacs (like ripgrep), emacs