Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set mod key
- set $mod Mod4
- # Font for window titles. Will also be used by the bar unless a different font
- font xft:Terminux, FontAwesome 8
- # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- bindsym $mod+Return exec terminator
- # kill focused window
- bindsym $mod+Shift+q kill
- # start dmenu (a program launcher)
- bindsym $mod+d exec --no-startup-id dmenu_run
- # 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
- # 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
- # workspace names
- set $WS1 "[ Term ]"
- set $WS2 "[ Web ]"
- set $WS3 "[ Misc ]"
- set $WS4 "[ Games ]"
- set $WS5 5
- set $WS6 6
- set $WS7 7
- set $WS8 8
- set $WS9 9
- set $WS0 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 $WS0
- # 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 $WS0
- # Reload config file, restart i3, exit i3
- bindsym $mod+Shift+c reload
- bindsym $mod+Shift+r restart
- bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes' '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
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+r mode "resize"
- # Start i3bar to display a workspace bar (plus the system information i3status
- # finds out, if available)
- bar {
- colors {
- background #242424
- statusline #5A7060
- separator #706565
- # Class Border Background Text
- focused_workspace #191919 #191919 #6b6b6b
- active_workspace #191919 #191919 #6b6b6b
- inactive_workspace #191919 #191919 #423e32
- urgent_workspace #191919 #191919 #c7a551
- }
- position top
- tray_output primary
- status_command i3status
- }
- # My key modifiers #
- bindsym --release Print exec --no-startup-id maim
- bindsym --release Shift+Print exec --no-startup-id maim -s
- # bindsym $mod+b exec --no-startup-id
- bindsym $mod+c exec --no-startup-id "systemctl poweroff"
- # bindsym $mod+g exec --no-startup-id
- # bindsym $mod+i exec --no-startup-id
- # bindsym $mod+m exec --no-startup-id
- # bindsym $mod+n exec --no-startup-id
- # bindsym $mod+o exec --no-startup-id
- # bindsym $mod+p exec --no-startup-id
- # bindsym $mod+q exec --no-startup-id
- # bindsym $mod+t exec --no-startup-id
- # bindsym $mod+u exec --no-startup-id
- bindsym $mod+x exec --no-startup-id "systemctl reboot"
- # bindsym $mod+y exec --no-startup-id
- bindsym $mod+z exec --no-startup-id "xautolock -locknow -locker 'xlock -mode blank'"
- # Application settings #
- workspace_layout tabbed
- hide_edge_borders both
- new_window pixel 1
- new_float none
- for_window [window_role="pop-up"] floating enable
- for_window [window_role="task_dialog"] floating enable
- # Application workspaces #
- assign [class="URxvt"] $WS1
- assign [class="Liferea|Firefox|Meld|libreoffice-calc|Calligrasheets"] $WS2
- assign [class="Geany|Pcmanfm|^Gimp$|Inkscape|URxvt"] $WS3
- assign [window_role="^gimp$"] $WS3
- assign [instance="Steam"] $WS4
- # Autostart
- exec --no-startup-id sh ~/.fehbg
- exec --no-startup-id conky
- exec --no-startup-id volumeicon
- exec --no-startup-id dropboxd
- # exec --no-startup-id "i3-msg 'workspace \"[ Term ]\"; append_layout /home/mike/.i3/main.json'"
- # exec --no-startup-id urxvt -name "WeeChat" -e 'weechat'
- # exec --no-startup-id urxvt -name "Mutt" -e 'mutt'
- # exec --no-startup-id myurxvt
- exec --no-startup-id i3-msg 'workspace $WS1; exec terminator -l Term; workspace $WS2'
- exec --no-startup-id firefox
- exec --no-startup-id liferea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement