Compare commits

...

1 Commits

Author SHA1 Message Date
  Julian Ospald 5dec53729f
Update 3 years ago
1 changed files with 94 additions and 69 deletions
Split View
  1. +94
    -69
      config

+ 94
- 69
config View File

@@ -10,11 +10,12 @@
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
set $mod2 Mod1

# 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
font pango:DejaVu Sans Mono 10
font pango:DejaVu Sans Mono 12
# 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
@@ -25,15 +26,16 @@ font pango:DejaVu Sans Mono 10
floating_modifier $mod

# start a terminal
# bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec sakura

# kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+$mod2+q kill

# start dmenu (a program launcher)
bindsym $mod+Shift+w exec --no-startup-id rofi -show window
bindsym $mod+$mod2+w exec --no-startup-id rofi -show window
bindsym $mod+d exec --no-startup-id rofi -show run
# bindsym $mod+Shift+d exec dmenu_run
# bindsym $mod+$mod2+d exec dmenu_run
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# bindsym $mod+d exec --no-startup-id xfce4-popup-whiskermenu
# There also is the (new) i3-dmenu-desktop which only displays applications
@@ -42,10 +44,15 @@ bindsym $mod+d exec --no-startup-id rofi -show run
# bindsym $mod+d 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+odiaeresis focus right
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

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
@@ -53,17 +60,21 @@ 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+odiaeresis 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
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

# split in horizontal orientation
bindsym $mod+h split v
@@ -77,10 +88,10 @@ 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
bindsym $mod+t layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
bindsym $mod+$mod2+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
@@ -102,8 +113,8 @@ assign [class="Pidgin"] number 2
assign [class="Mumble"] number 2


set $left eDP1
set $right HDMI2
set $left DVI-I-1
set $right DVI-D-0

# workspace to monitor mapping
workspace 1 output $left
@@ -119,7 +130,7 @@ workspace 10 output $right

# workspace cycling
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
bindsym $mod+$mod2+Tab workspace prev

# switch to workspace
bindsym $mod+1 workspace number 1
@@ -133,71 +144,84 @@ bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10

bindsym $mod+KP_End workspace number 1
bindsym $mod+KP_Down workspace number 2
bindsym $mod+KP_Next workspace number 3
bindsym $mod+KP_Left workspace number 4
bindsym $mod+KP_Begin workspace number 5
bindsym $mod+KP_Right workspace number 6
bindsym $mod+KP_Home workspace number 7
bindsym $mod+KP_Up workspace number 8
bindsym $mod+KP_Prior workspace number 9
bindsym $mod+KP_Insert workspace number 10
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

workspace_auto_back_and_forth yes

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+Shift+KP_1 move container to workspace number 1
bindsym $mod+Shift+KP_2 move container to workspace number 2
bindsym $mod+Shift+KP_3 move container to workspace number 3
bindsym $mod+Shift+KP_4 move container to workspace number 4
bindsym $mod+Shift+KP_5 move container to workspace number 5
bindsym $mod+Shift+KP_6 move container to workspace number 6
bindsym $mod+Shift+KP_7 move container to workspace number 7
bindsym $mod+Shift+KP_8 move container to workspace number 8
bindsym $mod+Shift+KP_9 move container to workspace number 9
bindsym $mod+Shift+KP_0 move container to workspace number 10
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

# reload the configuration file
bindsym $mod+Shift+c reload
bindsym $mod+$mod2+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
bindsym $mod+$mod2+r restart
# exit i3 (logs you out of your X session)
bindsym $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'"
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'"

# programs
#bindsym $mod+Shift+f exec firefox
#bindsym $mod+Shift+t exec thunderbird
#bindsym $mod+Shift+g exec gmusicbrowser
#bindsym $mod+Shift+p exec pidgin
#bindsym $mod+$mod2+f exec firefox
#bindsym $mod+$mod2+t exec thunderbird
#bindsym $mod+$mod2+g exec gmusicbrowser
#bindsym $mod+$mod2+p exec pidgin
bindsym $mod+BackSpace exec spacefm
bindsym $mod+plus exec gvim

# focus binding
bindsym $mod+Shift+f [class="Torbrowser" instance="Navigator"] focus
bindsym $mod+Shift+t [class="Thunderbird" instance="Mail"] focus
bindsym $mod+Shift+g [class="Gmusicbrowser"] focus
bindsym $mod+Shift+p [class="Pidgin" window_role="conversation"] focus
bindsym $mod+Shift+s [class="Terminator" instance="Terminator-root"] focus
bindsym $mod+Shift+m [class="Mumble" instance="mumble"] focus
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


#bindcode 41 [class="Firefox" instance="Navigator"] focus

# force floating for these
for_window [class="Xfrun4"] floating enable
for_window [class="Xfce4-appfinder"] floating enable
for_window [class="Xfrun4"] floating enable
for_window [class="Terminator" title="Terminator Preferences"] floating enable
for_window [class="MPlayer"] floating enable
for_window [class="Gtk-youtube-viewer"] floating enable
@@ -239,7 +263,7 @@ for_window [class="keepassxc"] floating enable

# scratchpad
# Make the currently focused window a scratchpad
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+$mod2+minus move scratchpad
# Show the first scratchpad window
bindsym $mod+minus scratchpad show

@@ -294,4 +318,5 @@ mode "num" {

exec_always --no-startup-id ~/.config/polybar/autoname_workspaces.py --norenumber_workspaces --icon_list_format mathematician
exec_always --no-startup-id ~/.config/polybar/launch.sh
#exec xrandr --output DVI-D-0 --auto --right-of DVI-I-1
exec picom --config ~/.config/picom.config

Loading…
Cancel
Save