zsh和 oh-ny-zsh
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
mytheme.zsh-theme
if [ "$USER" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
eval my_orange='$FG[214]'
eval my_darkorange='$FG[130]'
eval my_yellow='$FG[180]'
eval my_green='$FG[155]'
eval my_purple='$FG[135]'
local smiley="%(?,%{$fg_bold[green]%}☺ %{$reset_color%},%{$fg_bold[red]%}☹ %{$reset_color%})"
local return_code="${smiley}%(?..%{$fg_bold[red]%}%?%{$reset_color%})"
local user="%{$fg_bold[red]%}%n%{$reset_color%}"
local host="%{$fg_bold[magenta]%}@%m%{$reset_color%}"
local pwd="${my_orange}:%~%{$reset_color%}"
local date="%{$my_yellow%}[%D %*]%{$reset_color%}"
local count="%{$fg_bold[cyan]%}(%i)%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="${my_darkorange}^git:("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" *"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[cyan]%} ?"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[red]%} ♥"
PROMPT='${user}${host}${pwd}$(git_prompt_info) ${count} ${return_code} ${date}
%{${fg_bold[$CARETCOLOR]}%}% >>> %{${reset_color}%}'
syntax-highlighting & zsh-autosuggestions语法高亮和自动补全插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
powerline 字体
ubuntu 1804 终端
rgb(50,50,50)
xfce桌面中文环境和谷歌拼音
apt-get install xfce4 -y
mkdir -p /usr/share/fonts/windows
cp -r /mnt/c/Windows/Fonts/*.ttf /usr/share/fonts/windows/
locale-gen zh_CN.UTF-8
apt-get install fcitx-googlepinyin
sweet 主题和numix图标
cp sweet* /usr/share/themes
x Sweet-Dark
sudo add-apt-repository ppa:numix/ppa
sudo apt-get install numix-icon-theme-circle
conky
apt install conky-all
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit fahrenheit
# Window specifications #
own_window yes
own_window_type override
own_window_transparent yes
#own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 300 250
maximum_width 300
alignment tr
gap_x 20
gap_y 50
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
temperature_unit celsius
default_color F5DEB3
# Lua Load #
lua_load ~/.lua/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${voffset 8}${color FF6600}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color FF6600}${hr}
${voffset 140}${font caviar dreams:size=10}${alignr}HOME${font}
#${font caviar dreams:size=12}${color F5DEB3}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ ZJSY temperature temperature 30} °C${font}
${color FF6600}${font caviar dreams:size=10}${alignr}${nodename}
${color FF6600}${font caviar dreams:size=10}${alignr}${exec cat /etc/issue.net} $machine
${color FF6600}${font caviar dreams:size=10}${alignr}Kernel: ${kernel}
${image ~/.conky/new-ubuntu-logo.png -p 64,125 -s 70x20}
${color F5DEB3}${goto 20}${voffset 21}${cpu cpu0}%
${color FF6600}${goto 25}CPU
${color F5DEB3}${goto 45}${voffset 21}${memperc}%
${color FF6600}${goto 50}RAM
${color F5DEB3}${goto 70}${voffset 21}${swapperc}%
${color FF6600}${goto 70}Swap
${color F5DEB3}${goto 90}${voffset 21}${fs_used_perc /}%
${color FF6600}${goto 95}Disk
${color F5DEB3}${goto 120}${voffset 23}${downspeed eth2}
${color F5DEB3}${goto 130}${upspeed eth2}
${color FF6600}${goto 140}Net
${color F5DEB3}${font caviar dreams:size=10}Uptime: $alignr ${uptime_short}
${color F5DEB3}${font caviar dreams:size=10}Running Threads: $alignr $running_threads/$threads
${color F5DEB3}${font caviar dreams:size=10}Running Processes: $alignr $running_processes/$processes
${color FF6600}CPU1 ${alignr}${cpu cpu1}%
${color F5DEB3}${cpubar 4 cpu1}
${color FF6600}CPU2 ${alignr}${cpu cpu2}%
${color F5DEB3}${cpubar 4 cpu2}
${color FF6600}CPU3 ${alignr}${cpu cpu3}%
${color F5DEB3}${cpubar 4 cpu3}
${color FF6600}CPU4 ${alignr}${cpu cpu4}%
${color F5DEB3}${cpubar 4 cpu4}
${color FF6600}RAM ${alignr}$mem / $memmax ($memperc%)
${color F5DEB3}${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
${color FF6600}Highest CPU $alignr PID CPU% MEM%
${color F5DEB3}${top name 1}$alignr${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2}$alignr${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3}$alignr${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4}$alignr${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5}$alignr${top pid 5} ${top cpu 5} ${top mem 5}
${color FF6600}Highest MEM $alignr PID CPU% MEM%
${color F5DEB3}${top_mem name 1}$alignr${top pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2}$alignr${top pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3}$alignr${top pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${top_mem name 4}$alignr${top pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${top_mem name 5}$alignr${top pid 5} ${top_mem cpu 5} ${top_mem mem 5}
桌面快捷键ubuntu-Desktop.bat
【桌面环境Windows X Server ======> vcxsrv】 它使Windows操作系统的用户能够运行为X Window System程序,以显示linux图像界面。
@echo off
%1 mshta vbscript:CreateObject("WScript.Shell").Run("%~s0 ::",0,FALSE)(window.close)&&exit
:begin
cd /d %~dp0
start vcxsrv.exe :0 -clipboard -wgl -keyhook -nodecoration
ubuntu1804.exe run "pidof startxfce4;if [ -z \"$(pidof startxfce4)\" ]; then cd /home/jie;export DISPLAY=localhost:0;export LANG=zh_CN.UTF-8;export LANGUAGE=zh_CN.UTF-8;export LC_ALL="zh_CN.UTF-8";export NO_AT_BRIDGE=1;export XMODIFIERS='@im=fcitx';export GTK_IM_MODULE=fcitx;export QT_IM_MODULE=fcitx;fcitx;startxfce4;pkill '(gpg|ssh)-agent'; fi;"
网友评论