My i3wm Config

这篇具有很好参考价值的文章主要介绍了My i3wm Config。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

vim ~/.config/i3/conf

# 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 https://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
set $alt 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:forkawesome 10

# 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

# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3

# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.

# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork

# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet

# Wallpaper for system startup
exec_always --no-startup-id feh --randomize --bg-fill ~/.config/wallpaper/*
exec_always --no-startup-id picom -f

# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status

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

# move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar

# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec kitty

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
#bindsym $mod+d exec --no-startup-id dmenu_run

# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
bindsym $mod+s exec --no-startup-id rofi -show combi

# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop

# 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

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

# split in vertical orientation
bindsym $mod+Shift+v split v

# enter fullscreen mode for the focused container
bindsym $mod+Shift+Return 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
floating_minimum_size 100 x 30
floating_maximum_size -1 x -1

## app startup for floating PS: [class="<APP>"]  <APP> to rofi-show-window check
## in startup to window : assign [class"<APP>"] <APP> to rifo-show-window check
assign [class="Microsoft-edge"] $ws2
for_window [class="Clash-verge"] floating enable
for_window [class="XTerm"] floating enable
for_window [class="feh"] floating enable
for_window [class="org.gnome.Nautilus"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Nm-connection-editor"] floating enable
for_window [class="Lxappearance"] floating enable
for_window [class="fcitx5-config-qt"] floating enable
for_window [class="QQ"] floating enable move to workspace $ws4
for_window [class="steam"] floating enable move to workspace $ws5
for_window [class="Spotify"] floating enable move to workspace $ws6

# 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

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
# https://www.nerdfonts.com/
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"

# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10

# 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 $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10

# 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+l exec i3lock-fancy
bindsym $mod+Shift+l exec 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

        # 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 or $mod+r
		bindsym e exec microsoft-edge , mode "default"
		bindsym q exec qq , mode "default"
    	bindsym Return mode "default"
        # bindsym Escape mode "default"
        # bindsym $mod+r mode "default"
}

bindsym $mod+r mode "resize"

default_border pixel 

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)

# class                 border  backgr. text    indicator child_border
client.focused          #4c7899 #285577 #ffffff #2e9ef4   #9fbdde
client.focused_inactive #333333 #5f676a #ffffff #484e50   #5f676a
client.unfocused        #333333 #222222 #888888 #292d2e   #222222
client.urgent           #2f343a #900000 #ffffff #900000   #900000
client.placeholder      #000000 #0c0c0c #ffffff #000000   #0c0c0c

client.background       #ffffff

bar {
	status_command i3status
	status_command polybar
	position bottom
	workspace_buttons yes
	separator_symbol ":|:"
	colors {
        background #282828
        statusline #C1D7F0
        separator #282828

        focused_workspace  #4c7899 #285577 #ffffff
        active_workspace   #333333 #5f676a #ffffff
        inactive_workspace #333333 #222222 #888888
        urgent_workspace   #2f343a #900000 #ffffff
        binding_mode       #2f343a #900000 #ffffff
    }
}

# i3Gaps setting
gaps inner 5
gaps outer 1

文章来源地址https://www.toymoban.com/news/detail-747696.html

到了这里,关于My i3wm Config的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • I2C与I3C

    Improved Inter Integrated Circuit ,是 MIPI(Mobile Industry Processor Interface)移动产业处理器接口联盟推出的改进型 i2c (Inter-Integrated Circuit Bus)总线接口。 I3C Introduction I3C : Improved Inter Integrated Circuit ,是 MIPI(Mobile Industry Processor Interface)移动产业处理器接口联盟推出的改进型 i2c 总线接

    2024年02月08日
    浏览(39)
  • I2C与I3C的对比

    I2C 1.半双工 2.串行数据线(SDA)和串行时钟线(SCL) 3.数据线漏极开路,即I2C接口接上拉电阻 4.I2C总线运行速度:**标准模式100kbit/s,快速模式400kbit/s,快速模式plus 1Mbit/s,**高速模式3.4Mbit/s,超高速模式5Mbit/s。 5.物理连接 6.此外,中断脚、使能脚需要额外占用GPIO连接到SOC上 I3C

    2024年02月09日
    浏览(40)
  • Harmony鸿蒙南向驱动开发-I3C接口使用

    功能简介 I3C(Improved Inter Integrated Circuit)总线是由MIPI Alliance开发的一种简单、低成本的双向二线制同步串行总线。 I3C是两线双向串行总线,针对多个传感器从设备进行了优化,并且一次只能由一个I3C主设备控制。相比于I2C,I3C总线拥有更高的速度、更低的功耗,支持带内中

    2024年04月12日
    浏览(34)
  • 大数据课程I3——Kafka的消息流与索引机制

    文章作者邮箱:yugongshiye@sina.cn              地址:广东惠州 ⚪ 掌握Kafka的消息流处理; ⚪ 掌握Kafka的索引机制; ⚪ 掌握Kafka的消息系统语义;  流程说明: 1. producer 要向Kafka生产消息,需要先通过 zookeeper 的 \\\"/brokers/.../state\\\" 节点找到该 partition 的 副本leader的位置信息

    2024年02月13日
    浏览(31)
  • 视频异常检测数据集 (ShanghaiTech) 及其I3D特征转换

    ShanghaiTech 是一个中型数据集,基本信息如下: 训练集 :330个正常视频; 测试集 :107个异常视频,已被划分为多个帧,包含13个异常事件,且带有。 该数据集的一个示意如下图: 为了使得数据集适应MIL的场景,Zhong等人依据类别平衡的准则将整个数据集重新划分。划分的索

    2023年04月18日
    浏览(76)
  • 视频理解学习笔记(二):I3D and Kinetics Dataset

    LSTM (a): ConvNet + LSTM 3D网络 (b): 3D-ConvNet 双流网络,利用光流 (c): Two-Stream 其他 : 将3D和双流结合 (d): 3D-Fused I3D (e): Two-Sream I3D Workshop : CVPR’17 论文标题 :Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset 论文地址:https://arxiv.org/abs/1705.07750 论文作者 : Joao Carreira from DeepMind

    2024年02月06日
    浏览(43)
  • wm_concat和listagg

    wm_concat和listagg是两个不同的函数,具体区别如下: 功能:wm_concat和listagg都可以实现对(单个或组合)列的合并,也可以看成是对某一列的“SUM”。然而,wm_concat在12c版本中被取消,而listagg是在11.2的版本中才首次出现的。 排序:listagg函数行转列后,会按照原有查询结果顺序

    2024年02月03日
    浏览(34)
  • 进程的通信 - WM_COPYDATA

    在Windows程序中,各个进程之间常常需要交换数据,进行数据通讯。其中使用 SendMessage 向另一进程发送 WM_COPYDATA 消息是一种比较经济实惠的方法。 WM_COPYDATA 通信需要将传递的消息封装在 COPYDATASTRUCT 结构体中,在 SendMessage 消息传递函数时作为lParam参数传递 COPYDATASTRUCT 的结构如

    2024年02月01日
    浏览(31)
  • SAP WM模块事务码(TCODE)大全

    WM Transaction Code 仓库管理模块事务代码大全 1.1 LE-WM 仓库管理 Warehouse Management 仓库管理事务码 描述 LB01 Create Transfer Requirement 创建转储需求 LB02 Change transfer requirement 修改转储需求 LB03 Display Transfer Requirement 显示转储需求 LB10 TRs for Storage Type 按仓储类型的转储请求 LB11 TRs for Mat

    2024年02月14日
    浏览(37)
  • wayland(xdg_wm_base) + egl + opengles 最简实例

    `本文主要介绍如何在linux 下,基于 xdg_wm_base 接口的 wayland client 中 使用 egl + opengles 渲染一个最基本的三角形 软硬件环境: 硬件:PC 软件: ubuntu22.04 EGL1.4 openGL ES3.1 weston9.0 之前的文章 weston 源码下载及编译 介绍了如何在ubuntu 22.04 下面编译 weston9.0 ,在编译结束后,在build 目

    2024年01月24日
    浏览(38)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包