i3: config

Datei config, 4.8 KB (hinzugefügt von anonym, vor 3 Jahren)

i3-config für flux-belegungen

1# Normal Mode keyboard shortcut fehlt noch,
2# Floating Mode keyboard shortcut fehlt noch,
3# Bug in shifting ws (104)
4# arrow keys (47)
5# Exit i3 problem
7# Should you change your keyboard layout somewhen, delete
8# this file and re-run i3-config-wizard(1).
11# i3 config file (v4)
13# Please see http://i3wm.org/docs/userguide.html for a complete reference!
15set $mod Mod4
17# Font for window titles. Will also be used by the bar unless a different font
18# is used in the bar {} block below. ISO 10646 = Unicode
19font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
20# The font above is very space-efficient, that is, it looks good, sharp and
21# clear in small sizes. However, if you need a lot of unicode glyphs or
22# right-to-left text rendering, you should instead use pango for rendering and
23# chose a FreeType font, such as:
24# font pango:DejaVu Sans Mono 10
26# Use Mouse+$mod to drag floating windows to their wanted position
27floating_modifier $mod
29# start a terminal
30bindsym $mod+w exec i3-sensible-terminal
32# kill focused window
33bindsym $mod+i kill
35# start dmenu (a program launcher)
36bindsym $mod+e exec dmenu_run
37# There also is the (new) i3-dmenu-desktop which only displays applications
38# shipping a .desktop file. It is a wrapper around dmenu, so you need that
39# installed.
40# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
42# change focus
43bindsym $mod+t focus left
44bindsym $mod+s focus down
45bindsym $mod+r focus up
46bindsym $mod+n focus right
48# alternatively, you can use the cursor keys:
49#bindsym $mod+Left focus left
50#bindsym $mod+Down focus down
51#bindsym $mod+Up focus up
52#bindsym $mod+Right focus right
54# move focused window
55bindsym $mod+d move left
56bindsym $mod+f move down
57bindsym $mod+l move up
58bindsym $mod+c move right
60# alternatively, you can use the cursor keys:
61bindsym $mod+Left move left
62bindsym $mod+Down move down
63bindsym $mod+Up move up
64bindsym $mod+Right move right
66# split in horizontal orientation
67bindsym $mod+o split h
69# split in vertical orientation
70bindsym $mod+b split v
72# enter fullscreen mode for the focused container
73bindsym $mod+a fullscreen
75# change container layout (stacked, tabbed, toggle split)
76bindsym $mod+h layout stacking
77bindsym $mod+m layout tabbed
78bindsym $mod+g layout toggle split
80# toggle tiling / floating
81bindsym $mod+Shift+space floating toggle
83# change focus between tiling / floating windows
84bindsym $mod+space focus mode_toggle
86# focus the parent container
87bindsym $mod+u focus parent
89# focus the child container
90#bindsym $mod+d focus child
92# switch to workspace
93bindsym $mod+1 workspace 1
94bindsym $mod+2 workspace 2
95bindsym $mod+3 workspace 3
96bindsym $mod+4 workspace 4
97bindsym $mod+5 workspace 5
98bindsym $mod+6 workspace 6
99bindsym $mod+7 workspace 7
100bindsym $mod+8 workspace 8
101bindsym $mod+9 workspace 9
102bindsym $mod+0 workspace 10
104# move focused container to workspace
105#bindsym $mod+1+1 move container to workspace 1
106#bindsym $mod+2+2 move container to workspace 2
107#bindsym $mod+3+3 move container to workspace 3
108#bindsym $mod+4+4 move container to workspace 4
109#bindsym $mod+5+5 move container to workspace 5
110#bindsym $mod+6+6 move container to workspace 6
111#bindsym $mod+7+7 move container to workspace 7
112#bindsym $mod+8+8 move container to workspace 8
113#bindsym $mod+9+9 move container to workspace 9
114#bindsym $mod+0+0 move container to workspace 10
116# reload the configuration file
117bindsym $mod+y reload
118# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
119bindsym $mod+colon restart
120# exit i3 (logs you out of your X session)
121bindsym $mod+j 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'"
123# resize window (you can also use the mouse for that)
124mode "resize" {
125        # These bindings trigger as soon as you enter the resize mode
127        # Pressing left will shrink the window’s width.
128        # Pressing right will grow the window’s width.
129        # Pressing up will shrink the window’s height.
130        # Pressing down will grow the window’s height.
131        bindsym j resize shrink width 10 px or 10 ppt
132        bindsym k resize grow height 10 px or 10 ppt
133        bindsym l resize shrink height 10 px or 10 ppt
134        bindsym semicolon resize grow width 10 px or 10 ppt
136        # same bindings, but for the arrow keys
137        bindsym Left resize shrink width 10 px or 10 ppt
138        bindsym Down resize grow height 10 px or 10 ppt
139        bindsym Up resize shrink height 10 px or 10 ppt
140        bindsym Right resize grow width 10 px or 10 ppt
142        # back to normal: Enter or Escape
143        bindsym Return mode "default"
144        bindsym Escape mode "default"
147bindsym $mod+x mode "resize"
149# Start i3bar to display a workspace bar (plus the system information i3status
150# finds out, if available)
151bar {
152        status_command i3status