Skip to content

Instantly share code, notes, and snippets.

@c51303
Last active August 15, 2023 03:43
Show Gist options
  • Save c51303/ec8eb39e53ea9f4ba3113e1b781b6935 to your computer and use it in GitHub Desktop.
Save c51303/ec8eb39e53ea9f4ba3113e1b781b6935 to your computer and use it in GitHub Desktop.
linux.gui.xfce

调优

FAQ

How to add new application to XFCE menu list

desktop file

vim $HOME/.local/share/applications/example.desktop

[Desktop Entry]
Name=The name of your app
Comment=Comment
Exec=what should be executed when we click on an icon
Icon=image from which we create an icon in menu list
Type=Application
Categories=GNOME;GTK;Development;Documentation;

example pycharm.desktop

[Desktop Entry]
Name=PyCharm
Comment=Python IDE
Exec=/home/john/pycharm/bin/pycharm.sh
Icon=/home/john/pycharm/bin/pycharm.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;Documentation;
MimeType=text/plain;

设置 alt-tab 窗口及图标大小

  1. xfwm4 -V,查看 gik 版本;
  2. ~/.config/gtk-3.0/gtk.css; #xfwm-tabwin { -XfwmTabwinWidget-icon-size: 128px; -XfwmTabwinWidget-preview-size: 128px; }
  3. xfwm4 --replace, ctrl-c 生效。

窗口接收焦点时禁止提升窗口

打开“Settings Editor” ,左侧找到 xfwm4,右边 Property 找到“raise_with_any_button",Value 改为 false。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment