i3-config/config

323 lines
11 KiB
Plaintext
Raw Normal View History

2017-02-14 12:33:57 +00:00
# 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 somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
2020-06-14 19:38:52 +00:00
set $mod2 Mod1
2017-02-14 12:33:57 +00:00
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
2020-06-14 19:38:52 +00:00
font pango:DejaVu Sans Mono 12
2017-02-14 12:33:57 +00:00
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
2020-06-14 19:38:52 +00:00
# bindsym $mod+Return exec i3-sensible-terminal
2017-02-14 12:33:57 +00:00
bindsym $mod+Return exec sakura
# kill focused window
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+q kill
2017-02-14 12:33:57 +00:00
# start dmenu (a program launcher)
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+w exec --no-startup-id rofi -show window
2018-08-13 13:21:30 +00:00
bindsym $mod+d exec --no-startup-id rofi -show run
2020-06-14 19:38:52 +00:00
# bindsym $mod+$mod2+d exec dmenu_run
2018-08-13 13:21:30 +00:00
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# bindsym $mod+d exec --no-startup-id xfce4-popup-whiskermenu
2017-02-14 12:33:57 +00:00
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
2020-06-14 19:38:52 +00:00
bindsym $mod+n focus left
bindsym $mod+e focus down
bindsym $mod+o focus up
bindsym $mod+i focus right
bindsym $mod+KP_Prior focus left
bindsym $mod+KP_Down focus down
bindsym $mod+KP_Up focus up
bindsym $mod+KP_Next focus right
2017-02-14 12:33:57 +00:00
# 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
# alternatively, you can use the cursor keys:
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+Left move left
bindsym $mod+$mod2+Down move down
bindsym $mod+$mod2+Up move up
bindsym $mod+$mod2+Right move right
bindsym $mod+$mod2+n move left
bindsym $mod+$mod2+e move down
bindsym $mod+$mod2+o move up
bindsym $mod+$mod2+i move right
bindsym $mod+$mod2+KP_Prior move left
bindsym $mod+$mod2+KP_Down move down
bindsym $mod+$mod2+KP_Up move up
bindsym $mod+$mod2+KP_Next move right
2017-02-14 12:33:57 +00:00
# split in horizontal orientation
bindsym $mod+h split v
# split in vertical orientation
bindsym $mod+v split h
# 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
2020-06-14 19:38:52 +00:00
bindsym $mod+t layout toggle split
2017-02-14 12:33:57 +00:00
# toggle tiling / floating
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+space floating toggle
2017-02-14 12:33:57 +00:00
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# workspace layout
workspace_layout tabbed
# program specific workspaces
2020-01-10 12:42:01 +00:00
assign [class="Steam"] number 2
2017-02-14 12:33:57 +00:00
#assign [class="Firefox"] 2
#assign [class="Thunderbird"] 1
2020-01-10 12:42:01 +00:00
assign [class="Pidgin"] number 2
assign [class="Mumble"] number 2
2017-02-14 12:33:57 +00:00
2020-06-14 19:38:52 +00:00
set $left DVI-I-1
set $right DVI-D-0
2017-02-14 12:33:57 +00:00
# workspace to monitor mapping
workspace 1 output $left
workspace 2 output $right
workspace 3 output $left
workspace 4 output $right
workspace 5 output $left
workspace 6 output $right
workspace 7 output $left
workspace 8 output $right
workspace 9 output $left
workspace 10 output $right
2020-01-07 02:12:31 +00:00
# workspace cycling
bindsym $mod+Tab workspace next
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+Tab workspace prev
2017-02-14 12:33:57 +00:00
# switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
2020-06-14 19:38:52 +00:00
bindsym $mod+KP_1 workspace number 1
bindsym $mod+KP_2 workspace number 2
bindsym $mod+KP_3 workspace number 3
bindsym $mod+KP_4 workspace number 4
bindsym $mod+KP_5 workspace number 5
bindsym $mod+KP_6 workspace number 6
bindsym $mod+KP_7 workspace number 7
bindsym $mod+KP_8 workspace number 8
bindsym $mod+KP_9 workspace number 9
bindsym $mod+KP_0 workspace number 10
2017-02-14 12:33:57 +00:00
workspace_auto_back_and_forth yes
# move focused container to workspace
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+1 move container to workspace number 1
bindsym $mod+$mod2+2 move container to workspace number 2
bindsym $mod+$mod2+3 move container to workspace number 3
bindsym $mod+$mod2+4 move container to workspace number 4
bindsym $mod+$mod2+5 move container to workspace number 5
bindsym $mod+$mod2+6 move container to workspace number 6
bindsym $mod+$mod2+7 move container to workspace number 7
bindsym $mod+$mod2+8 move container to workspace number 8
bindsym $mod+$mod2+9 move container to workspace number 9
bindsym $mod+$mod2+0 move container to workspace number 10
bindsym $mod+$mod2+KP_1 move container to workspace number 1
bindsym $mod+$mod2+KP_2 move container to workspace number 2
bindsym $mod+$mod2+KP_3 move container to workspace number 3
bindsym $mod+$mod2+KP_4 move container to workspace number 4
bindsym $mod+$mod2+KP_5 move container to workspace number 5
bindsym $mod+$mod2+KP_6 move container to workspace number 6
bindsym $mod+$mod2+KP_7 move container to workspace number 7
bindsym $mod+$mod2+KP_8 move container to workspace number 8
bindsym $mod+$mod2+KP_9 move container to workspace number 9
bindsym $mod+$mod2+KP_0 move container to workspace number 10
2017-02-14 12:33:57 +00:00
# reload the configuration file
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+c reload
2017-02-14 12:33:57 +00:00
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+r restart
2017-02-14 12:33:57 +00:00
# exit i3 (logs you out of your X session)
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+x 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'"
2017-02-14 12:33:57 +00:00
# programs
2020-06-14 19:38:52 +00:00
#bindsym $mod+$mod2+f exec firefox
#bindsym $mod+$mod2+t exec thunderbird
#bindsym $mod+$mod2+g exec gmusicbrowser
#bindsym $mod+$mod2+p exec pidgin
2017-02-14 12:33:57 +00:00
bindsym $mod+BackSpace exec spacefm
bindsym $mod+plus exec gvim
# focus binding
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+f [class="Torbrowser" instance="Navigator"] focus
bindsym $mod+$mod2+t [class="Thunderbird" instance="Mail"] focus
bindsym $mod+$mod2+g [class="Gmusicbrowser"] focus
bindsym $mod+$mod2+p [class="Pidgin" window_role="conversation"] focus
bindsym $mod+$mod2+s [class="Terminator" instance="Terminator-root"] focus
bindsym $mod+$mod2+m [class="Mumble" instance="mumble"] focus
bindcode 180 [class="Terminator" instance="Terminator-root"] focus
# sound
#bindcode 122 exec --no-startup-id amixer sset Master 3-
#bindcode 123 exec --no-startup-id amixer sset Master 3+
#bindcode 121 exec --no-startup-id amixer sset Master toggle
#bindsym $mod+$mod2+KP_Begin [class="Firefox"] focus
#bindsym $mod+$mod2+KP_Home [class="Thunderbird"] focus
#bindsym $mod+$mod2+KP_Prior [class="Gmusicbrowser"] focus
#bindsym $mod+$mod2+KP_Right [class="Pidgin" window_role="conversation"] focus
#bindsym $mod+$mod2+KP_Insert [class="Terminator" instance="Terminator-root"] focus
2017-02-14 12:33:57 +00:00
#bindcode 41 [class="Firefox" instance="Navigator"] focus
# force floating for these
for_window [class="Xfce4-appfinder"] floating enable
2020-06-14 19:38:52 +00:00
for_window [class="Xfrun4"] floating enable
2017-02-14 12:33:57 +00:00
for_window [class="Terminator" title="Terminator Preferences"] floating enable
for_window [class="MPlayer"] floating enable
for_window [class="Gtk-youtube-viewer"] floating enable
for_window [class="Firefox" title="Firefox Preferences"] floating enable
for_window [class="Firefox" title="Certificate Manager"] floating enable
for_window [class="Pornview"] floating enable
for_window [class="FTL"] floating enable
for_window [class="Pnmixer" title="PNMixer Preferences"] floating enable
for_window [class="Xfce4-mixer" instance="xfce4-mixer"] floating enable
for_window [class="Xfce4-notes"] floating enable
for_window [class="scummvm"] floating enable
for_window [class="dosbox"] floating enable
for_window [class="zsnes"] floating enable
for_window [title="ePSXe - Enhanced PSX emulator"] floating enable
for_window [class="Mupen64plus"] floating enable
for_window [class="Wine" instance="explorer.exe"] floating enable
for_window [class="freesynd"] floating enable
for_window [class="ja2"] floating enable
for_window [class="Allegro" title="kq"] floating enable
for_window [class="love" title="Mari0"] floating enable
for_window [class="meandmyshadow"] floating enable
for_window [class="XMahjongg"] floating enable
for_window [class="supertux"] floating enable
for_window [class="Gvbam"] floating enable
for_window [class="Gmusicbrowser"] floating enable
for_window [class="File-roller"] floating enable
for_window [class="Bitmessagemain.py"] floating enable
2020-01-06 00:55:29 +00:00
for_window [class="Gnome-manual-duplex"] floating enable
for_window [class="GParted"] floating enable
for_window [class="openmw"] floating enable
for_window [class="Omwlauncher"] floating enable
for_window [class="Xdialog"] floating enable
for_window [class="Mumble"] floating enable
for_window [class="^mpv.*$"] floating enable
for_window [class="Skype"] floating enable
for_window [class="utox"] floating enable
for_window [class="Transmission-gtk"] floating enable
2018-09-17 07:38:13 +00:00
for_window [class="keepassxc"] floating enable
2017-02-14 12:33:57 +00:00
# scratchpad
# Make the currently focused window a scratchpad
2020-06-14 19:38:52 +00:00
bindsym $mod+$mod2+minus move scratchpad
2017-02-14 12:33:57 +00:00
# Show the first scratchpad window
bindsym $mod+minus scratchpad show
# focus follow
2018-08-14 15:11:05 +00:00
focus_follows_mouse yes
mouse_warping output
2017-02-14 12:33:57 +00:00
# remap f1-f12
#keycode
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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 odiaeresis resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Right resize shrink width 10 px or 10 ppt
bindsym Up resize grow height 10 px or 10 ppt
bindsym Down resize shrink height 10 px or 10 ppt
bindsym Left 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)
2020-01-06 00:56:41 +00:00
#bar {
# tray_output $left
#
# status_command i3status --config ~/.config/i3/i3status.config
## | dzen2 -fg white -ta r -w 1290 fn "-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso8859-1"
#
# font pango:DejaVu Sans Mono 12
#}
2017-02-14 12:33:57 +00:00
mode "num" {
bindsym Num_Lock mode "default"
}
#bindsym Num_Lock mode "num"
2020-01-09 21:27:00 +00:00
exec_always --no-startup-id ~/.config/polybar/autoname_workspaces.py --norenumber_workspaces --icon_list_format mathematician
2020-01-06 00:56:41 +00:00
exec_always --no-startup-id ~/.config/polybar/launch.sh
2020-06-14 19:38:52 +00:00
#exec xrandr --output DVI-D-0 --auto --right-of DVI-I-1
2020-01-06 00:56:49 +00:00
exec picom --config ~/.config/picom.config