xfce
xfce
安装主题
source: http://wiki.xfce.org/zh-cn/howto/install_new_themes
xfce有5种主题
主题下载:
- deviantARTs:XFCE-版块
- Customize.org:XFCE-版块
- XFCE-Look:什么都有,不过也有些其他桌面环境的主题
- XFCE 论坛:多数是窗口管理器主题
- deviantARTs:(GNOME) GTK2-版块
- Gnome Art:用于 GNOME 桌面环境的 GTK-主题
高质量的墙纸网站: - http://wallpaperswide.com/
- http://interfacelift.com
- http://www.mybestdesktops.com/
- http://www.wallpapers-room.com/
窗口主题 Window decorations
- Extract the theme in ~/.local/share/themes
- System wide installation in ${sysprefix}/local/share/themes
- 确保目录结构像这样: ~/.local/share/themes/<theme_name>/xfwm4/
- 如果主题包含矢量图 (~/.local/share/themes/<theme_name>/xfwm4/*.svg) it's better to install the librsvg package
- 在设置->窗口管理器中选择主题
You can find more information about how to create a window manager theme here.
GTK+主题 GTK+ interfaces
A GTK+ theme is the theme of the toolkit (buttons, textfields, etc). Most of the GTK+ themes need their own theme engine, make sure you have that theme engine installed with the same prefix as the GTK+ toolkit. To install and use a theme, follow these steps:
- Extract the theme in ~/.local/share/themes
- System wide installation in ${sysprefix}/local/share/themes
- Make sure the theme contains the following file: ~/.local/share/themes/<theme_name>/gtk-2.0/gtkrc
- Select the theme in the User Interface Settings (Xfce 4.4.x) or in the Appearance Settings (Xfce 4.6.x)
光标主题 Cursors (4.4 and 4.6)
- Extract the theme in ~/.icons
System wide installation in ${sysprefix}/local/share/icons - 确保目录结构像这样: ./icons/<theme_name>/cursors
- Select the theme in the Mouse Settings. If there is no tab with cursor themes, make sure xfce-mcs-plugins (Xfce 4.4.x) is compiled with Xcursor support
图标主题 Icons
- Extract the theme in ~/.icons
- System wide installation in ${sysprefix}/local/share/icons
- Optional: run gtk-update-icon-cache -f -t ~/.icons/<theme_name> to create an icon cache 1)
- If the theme contains scalable icons (~/.icons/<theme_name>/scalable) make sure you have librsvg installed
- Select the theme in the User Interface Settings (2nd tab, Xfce 4.4.x) or in the Appearance Settings (2nd tab, Xfce 4.6.x)
When you have icon theme problems, it's also recommended to install the hicolor-icon-theme package.
统一Qt和GTK应用外观
source: https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications
我的设置
- console安装
apt -y install aptitude
aptitude -y install task-chinese-s
aptitude -y install task-xfce-desktop
aptitude -y install task-chinese-s-desktop
apt -y install debian-faq doc-debian popularity-contest reportbug
apt -y install vim bash-completion dnsutils- 自带
apt -y install gtk3-engines-xfce albatross-gtk-theme blackbird-gtk-theme bluebird-gtk-theme xfwm4-themes xfwm4-theme-breeze shiki-colors-xfwm-theme- Paper Theme
wget --content-disposition 'https://snwh.org/paper/download.php?owner=snwh&ppa=pulp&pkg=paper-icon-theme,16.04'
wget --content-disposition 'https://snwh.org/paper/download.php?owner=snwh&ppa=pulp&pkg=paper-gtk-theme,16.04'
dpkg -i paper*.deb
# paper-icon-theme paper-gtk-theme
wget https://launchpad.net/~rebuntu16/+archive/ubuntu/other-stuff/+files/xfce-theme-manager_0.3.7-1~ppa+xenial0_amd64.deb
dpkg -i xfce*.deb更改窗口主题、样式主题、图标主题
http://www.ravefinity.com/p/our-themes-work.html
分辨率
1.无效(virtual下无效,kvm下server会黑屏,xen下解决server黑屏)
apt install xserver-xorg-video-dummy
vim /usr/share/X11/xorg.conf.d/90-VNC.conf
Section "Device"
Identifier "Custom VNC Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Custom VNC Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Custom VNC Screen"
Monitor "Custom VNC Monitor"
Device "Custom VNC Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x800"
EndSubSection
EndSection2.
~/.vnc/config or /etc/vnc/config.custom
-geometry 800x600
VNC Server > Options > RandR
1024x768,1280x1024,800x600
and then run the command xrandr -s <0|1|2>
Real VNC server 4.4 includes support for Xrandr, which allows resizing the VNC. Start the server with:
vncserver -geometry 1600x1200 -randr 1600x1200,1440x900,1024x768
Then resize with:
xrandr -s 1600x1200
xrandr -s 1440x900
xrandr -s 1024x768yabar
该配置使用了Unicode私有使用区(配置中电源图标等字符,Linux专用)
Unicode私有使用区
http://www.fileformat.info/info/unicode/font/linux_libertine/blockview.htm?block=private_use_area
显示兼容测试地址http://www.alanwood.net/unicode/private_use_area.html
微软EUDC说明(自定义造字)
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317836(v=vs.85).aspx
样例配置https://github.com/geommer/yabar/blob/master/examples/example.config
apt install yabar
~/.config/yabar/yabar.conf#Hi!, this config is not intended to become an example of beauty in yabar.
#It is just intended to show an example (specifically an example config that uses internal blocks) of what you can do using yabar.
# ya_bat: {
# exec: "YABAR_BATTERY";
# align: "right";
# fixed-size: 70;
# interval: 1;
# internal-suffix: "%";
# internal-option1: "BAT0";
# internal-option2: " ";
# #internal-spacing: true;
# }
# ya_wifi: {
# exec: "YABAR_WIFI";
# internal-prefix: " ";
# internal-suffix: " ";
# internal-option1: "wlan0";
# variable-size: true;
# background-color-rgb: 0x444444;
# }
bar-list = ["topbar"];
topbar:{
font: "Droid Sans, FontAwesome Bold 9";
block-list: ["ya_diskspace", "ya_ws", "ya_title", "ya_date", "ya_diskusage", "ya_volume", "ya_uptime", "ya_cpu", "ya_thermal", "ya_brightness", "ya_bw", "ya_mem", "ya_disk"];
position: "top";
gap-horizontal: 10;
gap-vertical: 10;
#width: 1100;
height: 20;
//If you want transparency, use argb, not rgb
background-color-rgb: 0x000000;
underline-size: 2;
overline-size: 2;
slack-size: 4;
#border-size: 2;
#monitor: "LVDS1 HDMI1"; # get names from `xrandr`
# various examples for internal blocks:
ya_ws: {
exec: "YABAR_WORKSPACE";
align: "left";
fixed-size: 40;
internal-option1: " ";
}
ya_title: {
exec: "YABAR_TITLE";
align: "left";
justify: "left";
fixed-size: 300;
}
ya_date:{
exec: "YABAR_DATE";
align: "center";
fixed-size: 120;
interval: 2;
background-color-rgb:0x279DBD;
underline-color-rgb:0xC02942;
internal-prefix: " ";
internal-option1: "%a %d %b, %I:%M";
}
ya_diskusage:{
exec: "YABAR_DISKSPACE";
align: "right";
fixed-size: 120;
interval: 10;
internal-prefix: " ";
# examples for this option:
# "/dev/sda1" first partition of device sda
# "/dev/sdb" all mounted partitions of device sdb
# "/dev/mapper/vgc-" all mounted logical volumes of volume group vgc
# "/dev" all mounted partitions / logical volumes
internal-option1: "/dev/vda3";
background-color-rgb:0x49708A;
underline-color-rgb:0xECD078;
}
ya_volume:{
exec: "YABAR_VOLUME";
align: "right";
interval: 1;
internal-option1 : "default Master 0"; # device, mixer, index (separated by a space)
internal-option2 : "mapped"; # if set to 'mapped', use logarithmic scale (like `amixer -M` and `alsamixer`)
internal-option3 : " "; # characters to display when sound is on or off (separated by a space)
internal-suffix: "%";
background-color-rgb:0x529e67;
underline-color-rgb:0x91313b;
}
ya_uptime:{
exec: "YABAR_UPTIME";
align: "right";
fixed-size: 70;
interval: 1;
background-color-rgb:0x96B49C;
underline-color-rgb:0xF8CA00;
internal-prefix: " ";
#internal-spacing: true;
}
ya_mem:{
exec: "YABAR_MEMORY";
align: "right";
fixed-size: 70;
interval: 1;
background-color-rgb:0x45ADA8;
underline-color-rgb:0xFA6900;
internal-prefix: " ";
#internal-spacing: true;
}
ya_thermal: {
exec: "YABAR_THERMAL";
align: "right";
fixed-size: 40;
interval: 1;
background-color-rgb:0x309292;
underline-color-rgb:0xE08E79;
internal-option1: "thermal_zone0"; # one of /sys/class/thermal/NAME/temp
internal-option2: "70; 0xFFFFFFFF; 0xFFED303C"; #Critical Temperature, fg, bg
internal-option3: "58; 0xFFFFFFFF; 0xFFF4A345"; #Warning Temperature, fg, bg
internal-prefix: " ";
#internal-spacing: true;
}
ya_brightness: {
exec: "YABAR_BRIGHTNESS";
align: "right";
fixed-size: 40;
interval: 1;
background-color-rgb:0x81A8B8;
underline-color-rgb:0xBD1550;
internal-prefix: " ";
internal-option1: "intel_backlight"; # one of /sys/class/backlight/intel_backlight/brightness
#internal-spacing: true;
}
ya_bw: {
exec: "YABAR_BANDWIDTH";
align: "right";
fixed-size: 110;
interval: 1;
internal-prefix: " ";
internal-option1: "ens3"; # "default" or network interface from `ifconfig` or `ip link`
internal-option2: " "; # characters to be placed before up/down data
#background-color-rgb:0x547980;
background-color-rgb:0x3EC9A7;
underline-color-rgb:0xD95B43;
#internal-spacing: true;
}
ya_cpu: {
exec: "YABAR_CPU";
align: "right";
fixed-size: 60;
interval: 1;
internal-prefix: " ";
internal-suffix: "%";
background-color-rgb:0x98D9B6;
underline-color-rgb:0xE97F02;
#internal-spacing: true;
}
ya_disk: {
exec: "YABAR_DISKIO";
align: "right";
fixed-size: 110;
interval: 1;
internal-prefix: " ";
internal-option1: "sda"; # name from `lsblk` or `ls /sys/class/block/`
internal-option2: " "; # characters to be placed before in/out data
background-color-rgb:0x49708A;
underline-color-rgb:0xECD078;
#internal-spacing: true;
}
ya_diskspace: {
exec: "YABAR_DISKSPACE";
align: "left";
fixed-size: 120;
interval: 10;
internal-prefix: " ";
# examples for this option:
# "/dev/sda1" first partition of device sda
# "/dev/sdb" all mounted partitions of device sdb
# "/dev/mapper/vgc-" all mounted logical volumes of volume group vgc
# "/dev" all mounted partitions / logical volumes
internal-option1: "/dev/vda3";
background-color-rgb:0x49708A;
underline-color-rgb:0xECD078;
}
title: {
exec: "xtitle -s";
align: "left";
fixed-size: 350;
type: "persist";
foreground-color-rgb:0xeeeeee;
underline-color-rgb:0x373b41;
overline-color-rgb:0x373b41;
}
# another example for an external block
date: {
exec: "date +'%a %d %b, %I:%M'";
align: "right";
fixed-size: 150;
type: "periodic";
interval: 1;
foreground-color-rgb:0x92D8F0;
underline-color-rgb:0xc0b929;
}
}