manjaro i3wm 的一些配置

您所在的位置:网站首页 archlinux命令行调亮度 manjaro i3wm 的一些配置

manjaro i3wm 的一些配置

2024-07-10 05:51| 来源: 网络整理| 查看: 265

最近安装了manjaro的i3版本,还不错,对一些日常出现的问题进行汇总,贴出解决方案。

安装完成后的基础配置

这个参照两个博客,Manjaro-i3的配置和配置你的专属Manjaro-i3wm,主要修改一下软件源(我用的是清华大学的源)和常用软件的安装。

i3 快捷键——h,j,k,l

系统自带的i3快捷键配置还是很舒服的,除了万恶的j,k,l,;。作为一个vim使用者,这是非常难受的,所以修改成h,j,k,l会舒服很多。 在.i3/config文件中,先把$mod+h替换一下,我用的是$mod+n,除此之外,有个$mod+Shift+h,我替换为$mod+Ctrl+h,然后将所有的$mod+j,k,l,semicolon直接替换成$mod+h,j,k,l,那些$mod+Shift+j,k,l,semicolon同理替换。

没有声音

我装完是没有声音的,声卡选择有错误,这个参照ArchLinux系统安装完没有声音之解决办法。

背景亮度

本来笔记本键盘上的亮度调节键用的好好的,第三天就不管用了,我看配置文件中用的是xbacklight调节的,手动键入命令,提示未找到命令,没辙,重新安装软件包 xorg-xbacklight 吧。

默认应用

首先,在i3配置文件(~/.i3/config)中,绑定了一些快捷键来打开一些应用,在# Start Applications 这行注释下的都是,对我来说,最需要改的就是打开浏览器的快捷键,我用google-chrome,所以将原来 $mod+F2 那行直接改成

bindsym $mod+F2 exec --no-startup-id google-chrome-stable

如果你要改音乐播放器为网易云音乐的话,那就是 \mod+F5 那行改为

bindsym $mod+F2 exec --no-startup-id netease-cloud-music

同理,想改那个就改哪个,上边两个都是带界面的,命令行下的东西参考原来配置文件。一定要确认自己改了之后的软件是自己安装好,并且可以正常运行的。 然而上边的不是系统的默认应用,只是快捷键。 默认应用的配置文件在~/.config/mimeapps.list,建议备份一下再修改,在~/.local/share/applications下,有好多应用启动快捷方式。我也不知道chrome为什么有那么多。 默认浏览器改成google-chrome,我是从里面随便选了一个chrome的,用着没问题。

QQ

参考Arch Wiki里的解决方案吧,反正我没装的轻聊版用一段时间就会崩溃,软件界面渲染也有问题。

最后贴一下我的i3配置,用作参考吧。

# i3 config file (v4) # Please see http://i3wm.org/docs/userguide.html for a complete reference! # Set mod key (Mod1=, Mod4=) set $mod Mod4 # set default desktop layout (default is tiling) # workspace_layout tabbed # Configure border style new_window pixel 1 new_float normal # Hide borders hide_edge_borders none # change borders bindsym $mod+u border none bindsym $mod+y border pixel 1 bindsym $mod+semicolon 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 xft:URWGothic-Book 10 # Use Mouse+$mod to drag floating windows floating_modifier $mod # start a terminal bindsym $mod+Return exec terminal # kill focused window bindsym $mod+Shift+q kill # start program launcher bindsym $mod+d exec --no-startup-id dmenu_recency # launch categorized menu bindsym $mod+z exec --no-startup-id morc_menu ################################################################################################ ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## ################################################################################################ exec --no-startup-id volumeicon bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' #exec --no-startup-id pulseaudio #exec --no-startup-id pa-applet #bindsym $mod+Ctrl+m exec pavucontrol ################################################################################################ # Screen brightness controls bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" # Start Applications bindsym $mod+Ctrl+b exec terminal -e 'bmenu' #bindsym $mod+F2 exec palemoon bindsym $mod+F2 exec --no-startup-id google-chrome-stable bindsym $mod+F3 exec pcmanfm # bindsym $mod+F3 exec ranger bindsym $mod+Shift+F3 exec gksu pcmanfm bindsym $mod+F5 exec terminal -e 'mocp' bindsym $mod+t exec --no-startup-id pkill compton bindsym $mod+Ctrl+t exec --no-startup-id compton -b bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'" bindsym Print exec --no-startup-id i3-scrot bindsym $mod+Print --release exec --no-startup-id i3-scrot -w bindsy


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3