config

1set $mod Mod4
2
3# Fonts
4font pango: Fira Code Nerd Font 9
5
6# Use Mouse+$mod to drag floating windows to their wanted position
7floating_modifier $mod
8
9# start scripts
10exec_always --no-startup-id polybar main
11
12# Open GNOME Image Viewer (Eye of GNOME)
13bindsym $mod+i exec eog
14
15# Open terminal
16bindsym $mod+Return exec i3-sensible-terminal
17
18# Open rofi 
19bindsym $mod+d exec rofi -matching fuzzy -lines 12 -padding 18 -width 60 -location 0 -show drun -matching regex -no-tokenize -drun-match-fields 'name' -drun-display-format '{name}' -sidebar-mode -columns 3 -font 'Fira Code Nerd Font Mono 10'
20
21# Set wallpaper
22exec --no-startup-id feh --bg-scale ~/Pictures/Wallpapers/evening-sky.png
23
24# kill focused window
25bindsym $mod+Shift+q kill
26
27# change focus
28bindsym $mod+j focus left
29bindsym $mod+k focus down
30bindsym $mod+l focus up
31bindsym $mod+semicolon focus right
32
33# alternatively, you can use the cursor keys:
34bindsym $mod+Left focus left
35bindsym $mod+Down focus down
36bindsym $mod+Up focus up
37bindsym $mod+Right focus right
38
39# move focused window
40bindsym $mod+Shift+j move left
41bindsym $mod+Shift+k move down
42bindsym $mod+Shift+l move up
43bindsym $mod+Shift+semicolon move right
44
45# alternatively, you can use the cursor keys:
46bindsym $mod+Shift+Left move left
47bindsym $mod+Shift+Down move down
48bindsym $mod+Shift+Up move up
49bindsym $mod+Shift+Right move right
50
51# split in horizontal orientation
52bindsym $mod+h split h
53
54# split in vertical orientation
55bindsym $mod+v split v
56
57# enter fullscreen mode for the focused container
58bindsym $mod+f fullscreen
59
60# change container layout (stacked, tabbed, toggle split)
61bindsym $mod+s layout stacking
62bindsym $mod+w layout tabbed
63bindsym $mod+e layout toggle split
64
65# toggle tiling / floating
66bindsym $mod+Shift+space floating toggle
67
68# change focus between tiling / floating windows
69bindsym $mod+space focus mode_toggle
70
71# focus the parent container
72bindsym $mod+a focus parent
73
74# switch to workspace
75bindsym $mod+1 workspace 1
76bindsym $mod+2 workspace 2
77bindsym $mod+3 workspace 3
78bindsym $mod+4 workspace 4
79bindsym $mod+5 workspace 5
80bindsym $mod+6 workspace 6
81bindsym $mod+7 workspace 7
82bindsym $mod+8 workspace 8
83bindsym $mod+9 workspace 9
84bindsym $mod+0 workspace 10
85
86# move focused container to workspace
87bindsym $mod+Shift+1 move container to workspace 1
88bindsym $mod+Shift+2 move container to workspace 2
89bindsym $mod+Shift+3 move container to workspace 3
90bindsym $mod+Shift+4 move container to workspace 4
91bindsym $mod+Shift+5 move container to workspace 5
92bindsym $mod+Shift+6 move container to workspace 6
93bindsym $mod+Shift+7 move container to workspace 7
94bindsym $mod+Shift+8 move container to workspace 8
95bindsym $mod+Shift+9 move container to workspace 9
96bindsym $mod+Shift+0 move container to workspace 10
97
98# reload the configuration file
99bindsym $mod+Shift+c reload
100# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
101bindsym $mod+Shift+r restart
102# exit i3 (logs you out of your X session)
103bindsym $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'"
104
105# resize window (you can also use the mouse for that)
106mode "resize" {
107        bindsym j resize shrink width 10 px or 10 ppt
108        bindsym k resize grow height 10 px or 10 ppt
109        bindsym l resize shrink height 10 px or 10 ppt
110        bindsym semicolon resize grow width 10 px or 10 ppt
111
112        # same bindings, but for the arrow keys
113        bindsym Left resize shrink width 10 px or 10 ppt
114        bindsym Down resize grow height 10 px or 10 ppt
115        bindsym Up resize shrink height 10 px or 10 ppt
116        bindsym Right resize grow width 10 px or 10 ppt
117
118        # back to normal: Enter or Escape
119        bindsym Return mode "default"
120        bindsym Escape mode "default"
121}
122
123bindsym $mod+r mode "resize"
124
125
126
127# Hide borders
128for_window [class="^.*"] border pixel 0
129# Utilitary
130title_align center
131
132