Linux终端光标变成黑块,[转载]解决Ubuntu下搜狗输入法的黑块儿问题
解决搜狗输入法Ubuntu 14.04下黑块状态条
搜狗的Linux输入法正式版发布之时,恰好Ubuntu 14.04
LTS也刚刚发布正式版。尝试安装搜狗的Linux输入法之后,出现了一个小小的问题:输入法状态条是一个黑色块。
我的Linux桌面用的是i3平铺式桌面管理器,多显示器环境下非常好用,强烈推荐。除此之外,GUI底层用的是KDE。
做了一番功课之后,结果发现因为搜狗要支持皮肤,所以那个状态条是半透明状态的。而我目前的默认环境下不支持compositor窗口管理器,无法处理半透明窗口的效果,于是就只能显示一个黑色块。
解决办法是安装Compton,以支持窗口的半透明效果。Ubuntu默认情况下没有可用的APT源,有两种办法安装:一个是从源码编译(不赘述),另外一个是使用一个第三方的源。
安装第三方源并安装compton
sudo apt-add-repository
ppa:richardgv/compton
sudo apt-get update && sudo apt-get install
compton
配置compton
编辑文件 ~/.compton.conf,输入如下内容
backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "opengl-swc";
# These are important. The first one enables the opengl
backend. The last one
# is the vsync method. Depending on the driver you might need
to use a
# different method.
# The other options are smaller performance tweaks that work
well in most
# cases.
# You can find the rest of the options here:
# https://github.com/chjj/compton/wiki/perf-guide, and
here:
# https://github.com/chjj/compton/wiki/vsync-guide
# Shadow
shadow = false; # Enabled
client-side shadows on windows.
no-dock-shadow = true; # Avoid drawing shadows on dock/panel
windows.
no-dnd-shadow = true; # Don't draw shadows on DND windows.
clear-shadow = true; # Zero the part of the
shadow's mask behind the window (experimental).
shadow-radius = 7; # The blur radius for shadows. (default 12)
shadow-offset-x = -7; # The left offset for shadows. (default
-15)
shadow-offset-y = -7; # The top offset for shadows. (default
-15)
shadow-exclude = [
"! name~=''",
"n:e:Notification",
"n:e:Plank",
"n:e:Docky",
"g:e:Synapse",
"g:e:Kupfer",
"g:e:Conky",
"n:w:*Firefox*",
"n:w:*Chrome*",
"n:w:*Chromium*",
"class_g ?=
'Notify-osd'",
"class_g ?=
'Cairo-dock'",
"class_g ?=
'Xfce4-notifyd'",
"class_g ?=
'Xfce4-power-manager'"
];
# The shadow exclude options are helpful if you have shadows
enabled. Due to
# the way compton draws its shadows, certain applications will
have visual
# glitches
# (most applications are fine, only apps that do weird things
with xshapes or
# argb are affected).
# This list includes all the affected apps I found in my
testing. The "!
# name~=''" part excludes shadows on any "Unknown" windows,
this prevents a
# visual glitch with the XFWM alt tab switcher.
# Fading
fading = true; # Fade windows during opacity changes.
fade-delta = 4; # The time between steps in a fade in
milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while
fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while
fading out. (default 0.03).
#no-fading-openclose = true; # Fade windows in/out when
opening/closing
detect-client-opacity = true; # This prevents opacity being
ignored for some apps. For example without this enabled my
xfce4-notifyd is 100% opacity no matter what.
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = false;
};
};
重点是其中 shadow 一项的值设置为 false 。
自启动
最后,修改i3配置文件 ~/.i3/config,在最后加入下面的代码,实现自动启动compton和搜狗输入法
# auto start commands
exec --no-startup-id fcitx -r
exec --no-startup-id fcitx-qimpanel
exec --no-startup-id compton -b
安装完成了,系统也顺便带了半透明和淡入淡出效果。
Linux终端光标变成黑块,[转载]解决Ubuntu下搜狗输入法的黑块儿问题相关推荐
- 解决Ubuntu下搜狗输入法顿号打不出的问题
我出现的问题是,明明输入法已切换 到中文输入法状态下,点击回车键上的反斜杠\,还是打不出顿号(.),网上也没找到相关办法,我尝试中英文标点切换快捷键(ctrl+.),阿西吧,困扰我这么久的小问题,就这 ...
- Linux终端光标消失
目录 1.问题描述 2.解决方案 3.光标相关 4.参考自 1.问题描述 终端光标消失,看不到编辑位置,很不方便. 2.解决方案 终端的光标和vim的光标是关联的. 隐藏光标 echo -e &quo ...
- linux下qt多个程序打包,解决Ubuntu下使用linuxdeployqt打包Qt程序问题
写了点Qt界面程序,然而发现很难移植到其他没有安装Qt环境的电脑上运行.查资料了解到,在windows上有windowsdeployqt程序,linux上有linuxdeployqt可以帮助我们快速打 ...
- 运维经验分享(三)-- 解决Ubuntu下crontab不能正确执行脚本的问题
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://dgd2010.blog.51cto.com/1539422/1676490 运维 ...
- 解决ubuntu下root用户 不能ftp登陆的问题
2019独角兽企业重金招聘Python工程师标准>>> 解决ubuntu下root用户 不能ftp登陆的问题 一般情况下,由于种种原因ftp是不让root用户远程登陆,但只要你修改以 ...
- 解决ubuntu 下蓝牙耳机音质不佳问题
解决ubuntu 下蓝牙耳机音质不佳问题 按照参考链接进行操作 之后断开蓝牙耳机,重新连接,享受美好的音质. 转载请注明出处.
- (转)解决ubuntu下拼音输入法出错的问题
(转)解决ubuntu下拼音输入法出错的问题 参考文章: (1)(转)解决ubuntu下拼音输入法出错的问题 (2)https://www.cnblogs.com/qiucz/p/7806012.ht ...
- 成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory
成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory 目录 解决问题 ...
- 成功解决Ubuntu下的make: gcc: Command not found Makefile:85: recipe for target 'obj/gemm.o' failed make: **
成功解决Ubuntu下的make: gcc: Command not found Makefile:85: recipe for target 'obj/gemm.o' failed make: ** ...
最新文章
- v2视频服务器退出系统怎么启动,V2视频会议系统入门操作手册.doc
- bzoj 1997: [Hnoi2010]Planar
- python中info的用法_Python pandas.DataFrame.info函数方法的使用
- c#如何嵌套第三方程序_C#程序演示嵌套条件运算符的示例
- XPATH获取USER列用户ID的小方法
- 大学计算机专业高考听力,2018北京高考英语听力一年两考,其他省市如何进行?...
- 中国农业全要素生产率(1949-2020年)
- Springcloud OAuth 授权码踩坑系列(二)
- SCI收录声学学科期刊31种
- 关于IDEA无法使用搜狗输入法输入中文问题
- 渗透测试常见漏洞概述及修复方法
- 这10种赚钱方法,用手机就可以做,看看哪种适合你?
- Python学习资源
- 齐岳定制1, 8-萘酰亚胺类荧光化合物,基于萘酰亚胺的fluorogenic荧光探针,双光子、内质网ER靶向双光子荧光探针NI-OPD
- thymeleaf 拼接src路径
- [笔试题记录]T01 最优高铁修建方案
- 计算机图形学和工程图学,计算机图形学与印刷工程我与工程图学及计算机图形学...
- Vaa3d_修改生成的dll名_pro文件
- CMOS破解完全手册
- 知识点滴 - 什么是AIoT
热门文章
- Part 5 多元函数基础
- java零钱兑换dp_兑换零钱(DP)
- WS_EX_TOOLWINDOW 属性
- 按现在的政策灵活就业人员,还有没有必要每年自己缴纳养老保险?
- 计算机专业介绍 英语文章,计算机专业英语文章
- 浅析系统性思维——新书《系统思维的艺术》解读(上)
- win7 64 位系统焦点丢失解决方案
- 三星oneui主屏幕费电_三星One UI初体验,你想要的使用感受都在这里
- Oracle数据恢复顾问(DRA)
- 心脏病_冠心病智能预测模型(人工智能,机器学习,用于论文作业_专利_企业建模__项目申报_科研报告,收藏)