日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

linux i3 桌面,Linux安装i3wm平铺式窗口桌面

發(fā)布時(shí)間:2023/12/20 linux 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux i3 桌面,Linux安装i3wm平铺式窗口桌面 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

最后基本成型的配置

# This file has been auto-generated by i3-config-wizard(1).

# It will not be overwritten, so edit it as you like.

#

# Should you change your keyboard layout some time, delete

# this file and re-run i3-config-wizard(1).

#

# i3 config file (v4)

#

# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod1

# Font for window titles. Will also be used by the bar unless a different font

# is used in the bar {} block below.

font pango:monospace 8

# This font is widely installed, provides lots of unicode glyphs, right-to-left

# text rendering and scalability on retina/hidpi displays (thanks to pango).

#font pango:DejaVu Sans Mono 8

# Before i3 v4.8, we used to recommend this one as the default:

# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1

# The font above is very space-efficient, that is, it looks good, sharp and

# clear in small sizes. However, its unicode glyph coverage is limited, the old

# X core fonts rendering does not support right-to-left and this being a bitmap

# font, it doesn’t scale on retina/hidpi displays.

# Use Mouse+$mod to drag floating windows to their wanted position

floating_modifier $mod

# start a terminal

bindsym $mod+Return exec i3-sensible-terminal

# kill focused window

bindsym $mod+Shift+q kill

# start dmenu (a program launcher)

bindsym $mod+d exec dmenu_run

# 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

# change focus

bindsym $mod+j focus left

bindsym $mod+k focus down

bindsym $mod+l focus up

bindsym $mod+semicolon 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+j move left

bindsym $mod+Shift+k move down

bindsym $mod+Shift+l move up

bindsym $mod+Shift+semicolon 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

# split in horizontal orientation

bindsym $mod+h split h

# split in vertical orientation

bindsym $mod+v split v

# enter fullscreen mode for the focused container

bindsym $mod+f fullscreen toggle

# 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+Shift+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

# switch to workspace

bindsym $mod+1 workspace 1

bindsym $mod+2 workspace 2

bindsym $mod+3 workspace 3

bindsym $mod+4 workspace 4

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

bindsym $mod+0 workspace 10

# move focused container to workspace

bindsym $mod+Shift+1 move container to workspace 1

bindsym $mod+Shift+2 move container to workspace 2

bindsym $mod+Shift+3 move container to workspace 3

bindsym $mod+Shift+4 move container to workspace 4

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

bindsym $mod+Shift+0 move container to workspace 10

# reload the configuration file

bindsym $mod+Shift+c reload

# 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+Shift+e exec "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'"

# 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 j resize shrink width 10 px or 10 ppt

bindsym k resize grow height 10 px or 10 ppt

bindsym l resize shrink height 10 px or 10 ppt

bindsym semicolon resize grow width 10 px or 10 ppt

# same bindings, but for the arrow keys

bindsym Left 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 Right resize grow width 10 px or 10 ppt

# back to normal: Enter or Escape

bindsym Return mode "default"

bindsym Escape mode "default"

}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status

# finds out, if available)

# ******************************************************

# 系統(tǒng)最早的頭部狀態(tài)

#bar {

# status_command i3status

# tray_output primary

#position top

#}

#********************************************i3-gaps*********************************

for_window [class="^.*"] border pixel 5

gaps inner 8

gaps outer 6

set $mode_gaps Gaps: (o) outer, (i) inner

set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)

set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)

bindsym $mod+Shift+g mode "$mode_gaps"

mode "$mode_gaps" {

bindsym o mode "$mode_gaps_outer"

bindsym i mode "$mode_gaps_inner"

bindsym Return mode "default"

bindsym Escape mode "default"

}

mode "$mode_gaps_inner" {

bindsym plus gaps inner current plus 5

bindsym minus gaps inner current minus 5

bindsym 0 gaps inner current set 0

bindsym Shift+plus gaps inner all plus 5

bindsym Shift+minus gaps inner all minus 5

bindsym Shift+0 gaps inner all set 0

bindsym Return mode "default"

bindsym Escape mode "default"

}

mode "$mode_gaps_outer" {

bindsym plus gaps outer current plus 5

bindsym minus gaps outer current minus 5

bindsym 0 gaps outer current set 0

bindsym Shift+plus gaps outer all plus 5

bindsym Shift+minus gaps outer all minus 5

bindsym Shift+0 gaps outer all set 0

bindsym Return mode "default"

bindsym Escape mode "default"

}

set $mode_power power

bindsym Mod1+Control+l mode "$mode_power"

mode "$mode_power" {

bindsym l mode "default", exec --no-startup-id /home/itgoyo/.config/i3/i3exit lock

bindsym e mode "default", exec --no-startup-id /home/itgoyo/.config/i3/i3exit logout

bindsym s mode "default", exec --no-startup-id /home/itgoyo/.config/i3/i3exit suspend

bindsym h mode "default", exec --no-startup-id /home/itgoyo/.config/i3/i3exit hibernate

bindsym r mode "default", exec --no-startup-id /home/itgoyo/.config/i3/i3exit reboot

bindsym p mode "default", exec --no-startup-id /home/itgoyo/.config/i3/i3exit shutdown

bindsym Return mode "default"

bindsym Escape mode "default"

}

# Set Xresources colors:

set_from_resource $darkblackcolor0 #000000

set_from_resource $blackcolor8 #000000

set_from_resource $darkredcolor1 #000000

set_from_resource $redcolor9 #000000

set_from_resource $darkgreencolor2 #000000

set_from_resource $greencolor10 #000000

set_from_resource $darkyellowcolor3 #000000

set_from_resource $yellowcolor11 #000000

set_from_resource $darkbluecolor4 #000000

set_from_resource $bluecolor12 #000000

set_from_resource $darkmagentacolor5 #000000

set_from_resource $magentacolor13 #000000

set_from_resource $darkcyancolor6 #000000

set_from_resource $cyancolor14 #000000

set_from_resource $darkwhitecolor7 #000000

set_from_resource $whitecolor15 #000000

set $transparent#00000000

#

# #BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER

#client.focused $red $red $magenta $darkmagenta $darkblue

#client.unfocused $transparent $blue $white $darkblue $darkblack

#client.focused_inactive $transparent $blue $white $darkblue $darkblack

#client.urgent $darkred $darkred $black $darkred $darkred

#client.background $black

set $background #10101000

set $foreground #ffffff

set $gray #d0d0d0

set $primary #F58E8E

set $secondary #79D4D5

set $tertiary #7AABD4

set $additional #26CE8D

set $warning #E7176A

# colors BORDER BACKGROUND TEXT INDICATOR

client.focused $primary $primary $foreground $primary

client.focused_inactive $secondary $secondary $foreground $secondary

client.unfocused $tertiary $tertiary $background $tertiary

#client.urgent $gray $gray $foreground $gray

client.urgent $darkred $darkred $black $darkred $darkred

bar {

font pango:mono 10

colors {

background $darkblack

statusline $darkwhite

separator $cyan

focused_workspace $blue $darkblue $darkblack

active_workspace $blue $blue $darkwhite

inactive_workspace $darkblack $darkblack $white

urgent_workspace $darkblack $darkblack $white

}

status_command i3blocks

position top

mode dock

modifier None

}

bar {

i3bar_command i3bar -t

height 28

#禁止systemtray

tray_output none

# i3bar調(diào)用

status_command ~/.config/i3/jconky

# 顯示位置top/bottom

position top

# 是否隱藏

# mode hide

# 拆解工作區(qū)名(隱藏前面的1:2:3:……)

strip_workspace_numbers yes

# 定義分隔符∥?

separator_symbol " ? "

}

bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3-msg exit"

# bindsym $mod+BackSpace

bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"

# compton

# auto start commands

exec --no-startup-id fcitx -r

exec --no-startup-id fcitx-qimpanel

exec --no-startup-id compton -b

#Background

exec --no-startup-id feh --bg-fill /home/itgoyo/cgi_lib.jpg

總結(jié)

以上是生活随笔為你收集整理的linux i3 桌面,Linux安装i3wm平铺式窗口桌面的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。