245 lines
11 KiB
Plaintext
245 lines
11 KiB
Plaintext
![]() |
# This file has been auto-generated by i3-config-wizard(1).
|
|||
|
# 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
|
|||
|
|
|||
|
# 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
|
|||
|
for_window [class=".*"] border none
|
|||
|
|
|||
|
# 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
|
|||
|
|
|||
|
# Use pactl to adjust volume in PulseAudio.
|
|||
|
set $refresh_i3status killall -SIGUSR1 i3status
|
|||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/manager/scripts/volume + && $refresh_i3status
|
|||
|
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/manager/scripts/volume - && $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 Ctrl+Mod1+t exec i3-sensible-terminal
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
# kill focused window
|
|||
|
bindsym Mod1+F4 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"
|
|||
|
# 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
|
|||
|
|
|||
|
# 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
|
|||
|
bindsym $mod+b exec --no-startup-id ~/.config/i3/manager/scripts/bar-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
|
|||
|
|
|||
|
# switch to workspace and set layout to English
|
|||
|
bindsym $mod+1 exec --no-startup-id ~/.config/i3/manager/workspace-manager 1
|
|||
|
bindsym $mod+2 exec --no-startup-id ~/.config/i3/manager/workspace-manager 2
|
|||
|
bindsym $mod+3 exec --no-startup-id ~/.config/i3/manager/workspace-manager 3
|
|||
|
bindsym $mod+4 exec --no-startup-id ~/.config/i3/manager/workspace-manager 4
|
|||
|
bindsym $mod+5 exec --no-startup-id ~/.config/i3/manager/workspace-manager 5
|
|||
|
bindsym $mod+6 exec --no-startup-id ~/.config/i3/manager/workspace-manager 6
|
|||
|
bindsym $mod+7 exec --no-startup-id ~/.config/i3/manager/workspace-manager 7
|
|||
|
bindsym $mod+8 exec --no-startup-id ~/.config/i3/manager/workspace-manager 8
|
|||
|
bindsym $mod+9 exec --no-startup-id ~/.config/i3/manager/workspace-manager 9
|
|||
|
bindsym $mod+0 exec --no-startup-id ~/.config/i3/manager/workspace-manager 0
|
|||
|
bindsym $mod+F1 exec --no-startup-id ~/.config/i3/manager/workspace-manager F1
|
|||
|
bindsym $mod+F2 exec --no-startup-id ~/.config/i3/manager/workspace-manager F2
|
|||
|
bindsym $mod+F3 exec --no-startup-id ~/.config/i3/manager/workspace-manager F3
|
|||
|
bindsym $mod+F4 exec --no-startup-id ~/.config/i3/manager/workspace-manager F4
|
|||
|
bindsym $mod+F5 exec --no-startup-id ~/.config/i3/manager/workspace-manager F5
|
|||
|
bindsym $mod+F6 exec --no-startup-id ~/.config/i3/manager/workspace-manager F6
|
|||
|
bindsym $mod+F7 exec --no-startup-id ~/.config/i3/manager/workspace-manager F7
|
|||
|
bindsym $mod+F8 exec --no-startup-id ~/.config/i3/manager/workspace-manager F8
|
|||
|
bindsym $mod+F9 exec --no-startup-id ~/.config/i3/manager/workspace-manager F9
|
|||
|
bindsym $mod+F10 exec --no-startup-id ~/.config/i3/manager/workspace-manager F10
|
|||
|
bindsym $mod+F11 exec --no-startup-id ~/.config/i3/manager/workspace-manager F11
|
|||
|
bindsym $mod+F12 exec --no-startup-id ~/.config/i3/manager/workspace-manager F12
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#shift Shift_L (0x32), Shift_R (0x3e) #lock Caps_Lock (0x42) #control Control_L (0x25), Control_R (0x69) #mod1 Alt_L (0x40), Alt_R (0x6c), Alt_L (0xcc), Meta_L (0xcd) #mod2 Num_Lock (0x4d) #mod3 ISO_Level5_Shift (0xcb) #mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf) #mod5 ISO_Level3_Shift (0x5c)
|
|||
|
|
|||
|
|
|||
|
# brightness
|
|||
|
bindsym XF86MonBrightnessUp exec --no-startup-id ~/.config/i3/manager/scripts/brightness +
|
|||
|
bindsym XF86MonBrightnessDown exec --no-startup-id ~/.config/i3/manager/scripts/brightness -
|
|||
|
|
|||
|
# Custom binds
|
|||
|
bindsym $mod+Shift+s exec flameshot gui
|
|||
|
bindsym $mod+Right workspace next
|
|||
|
bindsym $mod+Left workspace prev
|
|||
|
|
|||
|
# Startup
|
|||
|
exec --no-startup-id echo "1" > /tmp/f_key_number
|
|||
|
exec i3-msg 'workspace 11'
|
|||
|
# Workspaces autorun example (if need see this files)
|
|||
|
#exec --no-startup-id ~/.config/i3/manager/workspaces/main 1
|
|||
|
#exec --no-startup-id ~/.config/i3/manager/workspaces/pivodevat 2
|
|||
|
#exec --no-startup-id ~/.config/i3/manager/workspaces/blackeducation 3
|
|||
|
#exec --no-startup-id ~/.config/i3/manager/workspaces/punkcraft 4
|
|||
|
#exec --no-startup-id ~/.config/i3/manager/scripts/fullscreen
|
|||
|
#
|
|||
|
|
|||
|
|
|||
|
# Dynamic assign modules (edit in ~/.config/i3/manager/workspaces)
|
|||
|
# dynAssign-workspace1 start
|
|||
|
# dynAssign-workspace1 end
|
|||
|
|
|||
|
|
|||
|
# move focused container to workspace
|
|||
|
bindsym $mod+Shift+1 exec --no-startup-id ~/.config/i3/manager/workspace-manager 1 move
|
|||
|
bindsym $mod+Shift+2 exec --no-startup-id ~/.config/i3/manager/workspace-manager 2 move
|
|||
|
bindsym $mod+Shift+3 exec --no-startup-id ~/.config/i3/manager/workspace-manager 3 move
|
|||
|
bindsym $mod+Shift+4 exec --no-startup-id ~/.config/i3/manager/workspace-manager 4 move
|
|||
|
bindsym $mod+Shift+5 exec --no-startup-id ~/.config/i3/manager/workspace-manager 5 move
|
|||
|
bindsym $mod+Shift+6 exec --no-startup-id ~/.config/i3/manager/workspace-manager 6 move
|
|||
|
bindsym $mod+Shift+7 exec --no-startup-id ~/.config/i3/manager/workspace-manager 7 move
|
|||
|
bindsym $mod+Shift+8 exec --no-startup-id ~/.config/i3/manager/workspace-manager 8 move
|
|||
|
bindsym $mod+Shift+9 exec --no-startup-id ~/.config/i3/manager/workspace-manager 9 move
|
|||
|
bindsym $mod+Shift+0 exec --no-startup-id ~/.config/i3/manager/workspace-manager 0 move
|
|||
|
bindsym $mod+Shift+F1 exec --no-startup-id ~/.config/i3/manager/workspace-manager F1 move
|
|||
|
bindsym $mod+Shift+F2 exec --no-startup-id ~/.config/i3/manager/workspace-manager F2 move
|
|||
|
bindsym $mod+Shift+F3 exec --no-startup-id ~/.config/i3/manager/workspace-manager F3 move
|
|||
|
bindsym $mod+Shift+F4 exec --no-startup-id ~/.config/i3/manager/workspace-manager F4 move
|
|||
|
bindsym $mod+Shift+F5 exec --no-startup-id ~/.config/i3/manager/workspace-manager F5 move
|
|||
|
bindsym $mod+Shift+F6 exec --no-startup-id ~/.config/i3/manager/workspace-manager F6 move
|
|||
|
bindsym $mod+Shift+F7 exec --no-startup-id ~/.config/i3/manager/workspace-manager F7 move
|
|||
|
bindsym $mod+Shift+F8 exec --no-startup-id ~/.config/i3/manager/workspace-manager F8 move
|
|||
|
bindsym $mod+Shift+F9 exec --no-startup-id ~/.config/i3/manager/workspace-manager F9 move
|
|||
|
bindsym $mod+Shift+F10 exec --no-startup-id ~/.config/i3/manager/workspace-manager F10 move
|
|||
|
bindsym $mod+Shift+F11 exec --no-startup-id ~/.config/i3/manager/workspace-manager F11 move
|
|||
|
bindsym $mod+Shift+F12 exec --no-startup-id ~/.config/i3/manager/workspace-manager F12 move
|
|||
|
|
|||
|
# 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 Ctrl+Mod1+Delete exec "i3-nagbar -t warning -m 'Are you sure you 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 or $mod+r
|
|||
|
bindsym Return mode "default"
|
|||
|
bindsym Escape mode "default"
|
|||
|
bindsym $mod+r mode "default"
|
|||
|
}
|
|||
|
|
|||
|
bindsym $mod+r mode "resize"
|
|||
|
|
|||
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
|||
|
# finds out, if available)
|
|||
|
bar {
|
|||
|
status_command i3status
|
|||
|
mode invisible
|
|||
|
#hidden_state hide
|
|||
|
font pango:SourceCodeVF Black 15
|
|||
|
}
|