分享一下i3wm的配置过程,这个配置是参照manjaro的i3主题做的。
系统是Debian Sid:
首先需要安装i3
安装i3-gaps
我用的是i3的一个非官方的增强版本:i3-gaps,这个版本的源代码在这儿 github.com/Airblader/i3
$ git clone https://www.github.com/Airblader/i3 i3-gaps && cd i3-gaps
$ make
$ sudo make install
为了能够正确编译i3-gaps,还需要安装一下依赖:
$ sudo apt -y install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb-xrm-dev
这样就完成了i3-gaps的安装。
安装breeze
使用breeze作为系统的gtk主题,cursor主题和图标主题
$ sudo apt -y install breeze-cursor-theme breeze-icon-theme gtk3-engines-breeze kde-style-breeze kde-style-breeze-qt4 libreoffice-style-breeze
后三个包如果你不使用qt软件,并且不使用libreoffice的话就不用安装了
安装一些必要的工具
i3配置
[code]# Set mod key (Mod1=, Mod4=)
set $mod Mod1
Set default desktop layout (default is tiling)
workspace_layout tabbet <stacking|tabbed>
Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window pixel 2
new_float normal
Hide borders
hide_edge_borders none
change borders
#bindsym $mod+u border none
#bindsym $mod+y border pixel 1
#bindsym $mod+n border normal
Font for window titles. Will also be used by the bar unless a different font
is used in the bar {} block below.
font pango:DejaVu Sans Mono 10
#font xft:Wen Quan Yi Micro Hei Mono 8
Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
start a terminal
bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
kill focused window
bindsym $mod+q kill
start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run
#bindsym $mod+d exec dmenu_run -b -fn ‘DejaVu Sans Mono-10’ -nb ‘#000000’ -nf ‘#FFFFFF’ -sb ‘#2ECC71’ -sf '#333333’
bindsym $mod+d exec --no-startup-id dmenu_run -b -fn ‘DejaVu Sans Mono-10’ -nb ‘#2B2C2B’ -nf ‘#F9FAF9’ -sb ‘#16A085’ -sf ‘#F9FAF9’
There also is the (new) i3-dmenu-desktop which only displays applications
shipping a .desktop file. It is a wrapper around dmenu, so you need that
installed.
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
PrintScreen
bindsym Print exec --no-startup-id i3-scrot
change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
bindsym $mod+Tab focus right
split in horizontal orientation
bindsym $mod+c split h
split in vertical orientation
bindsym $mod+v split v;exec --no-startup-id notify-send ‘tile vertically’
enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
toggle tiling / floating
bindsym $mod+space floating toggle
change focus between tiling / floating windows
#bindsym $mod+space focus mode_toggle
focus the parent container
bindsym $mod+a focus parent
focus the child container
#bindsym $mod+d focus child
move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
Show the next scratchpad window or hide the focused scratchpad window.
If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
ASSIGN WORKSPACE VARIABLES
set $WS1 u
set $WS2 i
set $WS3 o
set $WS4 p
switch to workspace
bindsym $mod+u workspace $WS1
bindsym $mod+i workspace $WS2
bindsym $mod+o workspace $WS3
bindsym $mod+p workspace $WS4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
#navigate workspaces next / previous
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
WINDOW CONTROL
#for_window [class="[.]*"] floating enable #SET ALL WINDOWS AS FLOAT
assign [class=“konsole”] $WS1
assign [class=“Firefox”] $WS2
assign [class=“Chromium”] $WS2
assign [class=“Google-chrome-stable”] $WS2
assign [class=“Gvim”] $WS3
assign [class=“Emacs”] $WS3
#for_window [class=“Chromium”] border 1pixel
#for_window [class=“Firefox”] border 1pixel
#for_window [class=“Google-chrome-stable”] border 1pixel
#for_window [title=“Browser”] floating enable
#for_window [title=“Download”] floating enable
reload the configuration file
bindsym $mod+Shift+c reload
switch to workspace with urgent window automatically
for_window [urgent=latest] focus
restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
#bindsym $mod+Shift+r restart
exit i3 (logs you out of your X session)
bindsym $mod+Control+e exec --no-startup-id “i3-nagbar -t warning -m ‘You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.’ -b ‘Yes, exit i3’ ‘i3-msg exit’”
bindsym $mod+Control+w exec --no-startup-id “i3-nagbar -t warning -m ‘Shutdown System’ -b ‘Yes’ ‘systemctl poweroff’”
bindsym $mod+Control+r exec --no-startup-id “i3-nagbar -t warning -m ‘Reboot System’ -b ‘Yes’ ‘systemctl reboot’”
Set shut down, restart and locking features
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, ®eboot, (Shift+s)hutdown
mode “$mode_system” {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode “default”
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode “resize”
resize window (you can also use the mouse for that)
mode “resize” {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym l resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym h resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Right resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Left resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
Start i3bar to display a workspace bar (plus the system information i3status
finds out, if available)
bar {
position top
status_command i3status
font xft:DejaVu Sans Mono 10
font pango:DejaVu Sans Mono,Icons 10
mode hide
colors {
background $transparent
background #2B2C2B
statusline #F9FAF9
separator #454947
border backgr. text
focused_workspace #F9FAF9 #16A085 #2B2C2B
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #353836 #EEE8D5
urgent_workspace #16A085 #FDF6E3 #E5201D
}
colors {
separator #2ECC71
background #000000
statusline #DDDDDD
focused_workspace #FFFFFF #2ECC71 #000000
active_workspace #000000 #A4A28D #FFFFFF
inactive_workspace #A4A28D #000000 #DDDDDD
urgent_workspace #2ECC71 #900000 #FFFFFF
}
}
bindsym $mod+m bar mode toggle
i3lock
bindsym Mod1+Control+l exec --no-startup-id blurlock
for sound control
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q sset Master 3%+ unmute
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q sset Master 3%- unmute
bindsym XF86AudioMute exec --no-startup-id amixer -q sset Master toggle
BACKGROUND OPTIONS
exec --no-startup-id ps -e | gerp pulseaudio || pulseaudio --start
exec --no-startup-id feh --bg-fill ~/.paper.jpg
exec --no-startup-id fcitx
exec --no-startup-id nm-applet
exec --no-startup-id compton -b
exec --no-startup-id conky
exec --no-startup-id xautolock -time 5 -locker “blurlock” &
client.focused #2ECC71 #2ECC71 #000000 #FFFFFF
client.unfocused #222222 #222222 #2ECC71 #222222
client.urgent #274D01 #900000 #FFFFFF #900000
#############################
settings for i3-gaps:
#############################
Set inner/outer gaps
gaps inner 10
gaps outer -4
Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
gaps inner|outer current|all set|plus|minus
gaps inner all set 10
gaps outer all plus 5
Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps on
Smart borders (draw borders around container only if it is not the only container on this workspace)
on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
smart_borders on
[/code]将以上配置保存为~/.i3/config
i3status配置
[code]# i3status configuration file.
see “man i3status” for documentation.
It is important that this file is edited as UTF-8.
The following line should contain a sharp s:
ß
If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 1
color_good = "#2AA198"
color_bad = "#586E75"
color_degraded = “#DC322F”
}
order += "cpu_usage"
order += “cpu_temperature 0”
order += “load”
order += “disk /”
order += “disk /home”
order += "wireless first"
order += “ethernet first”
#order += “run_watch DHCP”
#order += "run_watch VPN"
order += "battery 0"
order += "volume master"
order += “tztime local”
order += “ipv6”
cpu_usage {
format = “cpu %usage”
}
cpu_temperature 0 {
format = “T: %degrees°C”
}
load {
format = “load %1min”
max_threshold = 0.3
}
disk “/” {
format = “hdd %avail”
format = “⛁ %avail”
}
disk “/home” {
format = “/home %avail”
}
wireless first {
format_up = " %essid %quality %ip"
format_down = “wlan: no”
}
ethernet first {
if you use %speed, i3status requires root privileges
format_up = "lan: %ip %speed"
format_down = “no lan”
}
battery 0 {
format = "%status %percentage %remaining"
format_down = "No battery"
last_full_capacity = true
integer_battery_capacity = true
status_chr = ""
status_bat = ""
status_full = ""
low_threshold = 15
threshold_type = time
}
volume master {
format = "V: %volume"
device = "default"
mixer = "Master"
mixer_idx = 0
}
tztime local {
format = “%Y-%m-%d %H:%M:%S”
format = "%m.%d %H:%M "
}
run_watch DHCP {
pidfile = “/var/run/dhclient*.pid”
}
run_watch VPN {
pidfile = “/var/run/vpnc/pid”
}
[/code]将以上配置保存为~/.i3status.conf
conky配置
[code]conky.config = {
alignment = ‘top_right’,
background = true,
color2 = ‘588078’,
cpu_avg_samples = 2,
default_color = ‘80FFF9’,
double_buffer = true,
font = ‘Bitstream Vera Sans:size=8’,
gap_x = 25,
gap_y = 50,
minimum_width = 200,
no_buffers = true,
own_window = true,
own_window_type = ‘override’,
own_window_transparent = true,
update_interval = 1.0,
use_xft = true,
}
conky.text =
${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font
${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font
$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font
${voffset -3} $color${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr
${voffset 20}${goto 40}${color}CPU${font Bitstream Vera Sans:bold:size=8}$alignr$cpu%
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
${goto 40}$color2${top name 5}$alignr$color${top cpu 5}%
${voffset 10}${goto 40}${color}RAM${font Bitstream Vera Sans:bold:size=8}$alignr$mem$font
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
${voffset 10}${goto 40}${color}Swap${font Bitstream Vera Sans:bold:size=8}$alignr${swap}/ ${swapfree}
${voffset 15}$font$alignr${execi 10000 awk -F= ‘/TION/ {print $2}’ /etc/lsb-release |sed ‘s/"//g’}
${execi 10000 awk -F= ‘/EASE=/ {printf $2" "} /NAME/ {print $2}’ /etc/lsb-release}
${voffset 10}${color2}${alignr}${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Bitstream Vera Sans:size=8}uptime: ${color}${uptime_short}
${voffset 5}${color2}${font Bitstream Vera Sans:size=8}${alignr}kernel: ${color}${kernel}
]]
[/code]将以上配置保存为~/.conkyrc
dunst配置
[code][global]
font = Cantarell 10
# Allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
# If markup is not allowed, those tags will be stripped out of the
# message.
allow_markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ( 0%] to [100%]) or nothing
# Markup is allowed
format = "%s %p\n%b"
# Sort messages by urgency.
sort = yes
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with "word_wrap".
# Set to 0 to disable.
bounce_freq = 5
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = no
# Ignore newlines '\n' in notifications.
ignore_newline = no
# The geometry of the window:
# {width}]x{height}+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "0x4-25+25"
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing windowmanager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 15
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# default 120
idle_threshold = 120
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
# The height of a single line. If the height is smaller than the
# font height, it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 1
# Padding between text and separator.
# padding = 8
padding = 8
# Horizontal padding.
horizontal_padding = 10
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = #454947
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = palemoon
# Align icons left/right/off
icon_position = left
# Paths to default icons.
icon_folders = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
[frame]
width = 1
color = “#16A085”
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification.
close = mod1+space
# Close all notifications.
# close_all = ctrl+shift+space
close_all = ctrl+mod1+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1".
history = ctrl+mod4+h
# Context menu.
context = ctrl+mod1+c
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the “#” and following would be interpreted as a comment.
background = "#2B2C2B"
foreground = "#888888"
timeout = 10
[urgency_normal]
background = "#2B2C2B"
foreground = "#F9FAF9"
timeout = 10
[urgency_critical]
background = "#D62929"
foreground = "#F9FAF9"
timeout = 0
Every section that isn’t one of the above is interpreted as a rules to
override settings for certain messages.
Messages can be matched by “appname”, “summary”, “body”, “icon”, “category”,
“msg_urgency” and you can override the “timeout”, “urgency”, “foreground”,
“background”, “new_icon” and “format”.
Shell-like globbing will get expanded.
SCRIPTING
You can specify a script that gets run when the rule matches by
setting the “script” option.
The script will be called as follows:
script appname summary body icon urgency
where urgency can be “LOW”, “NORMAL” or “CRITICAL”.
NOTE: if you don’t want a notification to be displayed, set the format
to “”.
NOTE: It might be helpful to run dunst -print in a terminal in order
to find fitting options for rules.
#[espeak]
summary = “*”
script = dunst_espeak.sh
#[script-test]
summary = “script”
script = dunst_test.sh
#[ignore]
# This notification will not be displayed
summary = “foobar”
format = “”
#[signed_on]
appname = Pidgin
summary = “signed on”
urgency = low
#[signed_off]
appname = Pidgin
summary = signed off
urgency = low
#[says]
appname = Pidgin
summary = says
urgency = critical
#[twitter]
appname = Pidgin
summary = twitter.com
urgency = normal
#[Claws Mail]
appname = claws-mail
category = email.arrived
urgency = normal
background = “#2F899E”
foreground = “#FFA247”
#[mute.sh]
appname = mute
category = mute.sound
script = mute.sh
#[JDownloader]
appname = JDownloader
category = JD
background = “#FFA247”
foreground = “#FFFFFF”
#[newsbeuter]
summary = Feeds
background = “#A8EB41”
foreground = “#FFFFFF”
[irc]
appname = weechat
timeout = 0
background = "#0033bb"
foreground = “#dddddd”
[weechat hl]
appname = weechat
category = weechat.HL
background = "#FF5C47"
foreground = “#FFFFFF”
[weechat pn]
appname = weechat
category = weechat.PM
background = "#D53B84"
foreground = “#FFFFFF”
#[CMUS]
appname = CMUS
category = cmus
background = “#6C4AB7”
foreground = “#FFE756”
background = “#30AB70”
foreground = “#F67245”
vim: ft=cfg
[/code]将以上配置保存为~/.config/dunst/dunstrc
添加以下文件
文件名:/usr/bin/i3exit 权限755
[code]#!/bin/sh
/usr/bin/i3exit
lock() {
blurlock
}
case “$1” in
lock)
lock
;;
logout)
i3-msg exit
;;
switch_user)
dm-tool switch-to-greeter
;;
suspend)
if $(cat /proc/1/comm) = “systemd” ]; then
lock && systemctl suspend
else
lock && dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Suspend boolean:true
fi
;;
hibernate)
if $(cat /proc/1/comm) = “systemd” ]; then
lock && systemctl hibernate
else
lock && dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Hibernate boolean:true
fi
;;
reboot)
if $(cat /proc/1/comm) = “systemd” ]; then
systemctl reboot
else
dbus-send --system --print-reply --type=method_call --reply-timeout=2000 --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
fi
;;
shutdown)
if $(cat /proc/1/comm) = “systemd” ]; then
systemctl poweroff
else
dbus-send --system --print-reply --type=method_call --reply-timeout=2000 --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
fi
;;
*)
echo "== ! i3exit: missing or wrong argument ! ==
Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown"
exit 2
esac
exit 0
[/code]
文件名:/usr/bin/blurlock 权限:755
#!/bin/bash
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
i3lock -i /tmp/screenshotblur.png
**最后别忘了用lxappearance把系统的gtk主题、图标主题和cursor主题该为breeze。
ok,配置完成。暂时只记得这么多,如果有落下的东西的话后面再补。**
最后补两张图:
桌面:http://img.vim-cn.com/20/db2d83418895d234809b9233fd8a3ad958430f.png
锁屏桌面:http://img.vim-cn.com/86/4da68c7064cbfb391dfed865e1dece693b5a79.png