System/i3
Jump to navigation
Jump to search
# Please see http://i3wm.org/docs/userguide.html for a complete reference! # This defines which key super maps to on your keyboard. # Alt key is Mod1, and Windows key is Mod4 set $mod Mod4 set $alt Mod1 # Color values are defined in ~/.Xresources-regolith # These are the labels which define each i3 workspace. set_from_resource $ws1 i3-wm.workspace.01.name "1" set_from_resource $ws2 i3-wm.workspace.02.name "2" set_from_resource $ws3 i3-wm.workspace.03.name "3" set_from_resource $ws4 i3-wm.workspace.04.name "4" set_from_resource $ws5 i3-wm.workspace.05.name "5" set_from_resource $ws6 i3-wm.workspace.06.name "6" set_from_resource $ws7 i3-wm.workspace.07.name "7" set_from_resource $ws8 i3-wm.workspace.08.name "8" set_from_resource $ws9 i3-wm.workspace.09.name "9" set_from_resource $ws10 i3-wm.workspace.10.name "10" set_from_resource $ws11 i3-wm.workspace.11.name "11" set_from_resource $ws12 i3-wm.workspace.12.name "12" set_from_resource $ws13 i3-wm.workspace.13.name "13" set_from_resource $ws14 i3-wm.workspace.14.name "14" set_from_resource $ws15 i3-wm.workspace.15.name "15" set_from_resource $ws16 i3-wm.workspace.16.name "16" set_from_resource $ws17 i3-wm.workspace.17.name "17" set_from_resource $ws18 i3-wm.workspace.18.name "18" set_from_resource $ws19 i3-wm.workspace.19.name "19" # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod hide_edge_borders smart # start a terminal bindsym $mod+Return exec $terminal_path # start a web browser bindsym $mod+Shift+Return exec firefox # kill focused window bindsym $mod+Shift+q kill # rofi app and window launchers bindsym $mod+space exec rofi -show drun -theme $rofiTheme # change focus bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right # move windows in workspaces 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+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right # toggle split orientation bindsym $mod+BackSpace split toggle # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change gaps interactively bindsym $mod+minus gaps inner current minus 6 bindsym $mod+plus gaps inner current plus 6 # toggle tiling / floating bindsym $mod+Shift+f floating toggle # change focus between tiling / floating windows bindsym $mod+Shift+t focus mode_toggle # toggle tabbed mode bindsym $mod+t layout toggle tabbed splith splitv # move 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 $ws10 bindsym $mod+Ctrl+1 workspace $ws11 bindsym $mod+Ctrl+2 workspace $ws12 bindsym $mod+Ctrl+3 workspace $ws13 bindsym $mod+Ctrl+4 workspace $ws14 bindsym $mod+Ctrl+5 workspace $ws15 bindsym $mod+Ctrl+6 workspace $ws16 bindsym $mod+Ctrl+7 workspace $ws17 bindsym $mod+Ctrl+8 workspace $ws18 bindsym $mod+Ctrl+9 workspace $ws19 # cycle across workspaces bindsym $mod+Tab workspace next bindsym $mod+Shift+Tab workspace prev # 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 $ws10 bindsym $mod+Shift+Ctrl+1 move container to workspace $ws11 bindsym $mod+Shift+Ctrl+2 move container to workspace $ws12 bindsym $mod+Shift+Ctrl+3 move container to workspace $ws13 bindsym $mod+Shift+Ctrl+4 move container to workspace $ws14 bindsym $mod+Shift+Ctrl+5 move container to workspace $ws15 bindsym $mod+Shift+Ctrl+6 move container to workspace $ws16 bindsym $mod+Shift+Ctrl+7 move container to workspace $ws17 bindsym $mod+Shift+Ctrl+8 move container to workspace $ws18 bindsym $mod+Shift+Ctrl+9 move container to workspace $ws19 # move focused container to workspace, move to workspace bindsym $mod+$alt+1 move container to workspace $ws1; workspace $ws1 bindsym $mod+$alt+2 move container to workspace $ws2; workspace $ws2 bindsym $mod+$alt+3 move container to workspace $ws3; workspace $ws3 bindsym $mod+$alt+4 move container to workspace $ws4; workspace $ws4 bindsym $mod+$alt+5 move container to workspace $ws5; workspace $ws5 bindsym $mod+$alt+6 move container to workspace $ws6; workspace $ws6 bindsym $mod+$alt+7 move container to workspace $ws7; workspace $ws7 bindsym $mod+$alt+8 move container to workspace $ws8; workspace $ws8 bindsym $mod+$alt+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+$alt+0 move container to workspace $ws10; workspace $ws10 bindsym $mod+$alt+Ctrl+1 move container to workspace $ws11; workspace $ws11 bindsym $mod+$alt+Ctrl+2 move container to workspace $ws12; workspace $ws12 bindsym $mod+$alt+Ctrl+3 move container to workspace $ws13; workspace $ws13 bindsym $mod+$alt+Ctrl+4 move container to workspace $ws14; workspace $ws14 bindsym $mod+$alt+Ctrl+5 move container to workspace $ws15; workspace $ws15 bindsym $mod+$alt+Ctrl+6 move container to workspace $ws16; workspace $ws16 bindsym $mod+$alt+Ctrl+7 move container to workspace $ws17; workspace $ws17 bindsym $mod+$alt+Ctrl+8 move container to workspace $ws18; workspace $ws18 bindsym $mod+$alt+Ctrl+9 move container to workspace $ws19; workspace $ws19 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # lock the screen bindsym $mod+Mod1+l exec i3lock #bindsym $mod+Escape exec gnome-screensaver-command --lock # shortcuts for common system configuration tasks bindsym $mod+c exec mate-control-center bindsym $mod+w exec mate-control-center wifi bindsym $mod+b exec mate-control-center bluetooth bindsym $mod+d exec mate-control-center display bindsym $mod+n exec mate-control-center network bindsym $mod+p exec mate-control-center power bindsym $mod+s exec mate-control-center sound # resize window (you can also use the mouse for that) mode "Resize Mode" { # These bindings trigger as soon as you enter the resize mode bindsym Left resize shrink width 6 px or 6 ppt bindsym Down resize grow height 6 px or 6 ppt bindsym Up resize shrink height 6 px or 6 ppt bindsym Right resize grow width 6 px or 6 ppt bindsym Shift+Left resize shrink width 12 px or 12 ppt bindsym Shift+Down resize grow height 12 px or 12 ppt bindsym Shift+Up resize shrink height 12 px or 12 ppt bindsym Shift+Right resize grow width 12 px or 12 ppt bindsym h resize shrink width 6 px or 6 ppt bindsym k resize grow height 6 px or 6 ppt bindsym j resize shrink height 6 px or 6 ppt bindsym l resize grow width 6 px or 6 ppt bindsym Shift+h resize shrink width 12 px or 12 ppt bindsym Shift+k resize grow height 12 px or 12 ppt bindsym Shift+j resize shrink height 12 px or 12 ppt bindsym Shift+l resize grow width 12 px or 12 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "Resize Mode" bindsym XF86MonBrightnessUp exec --no-startup-id intel_backlight incr bindsym XF86MonBrightnessDown exec --no-startup-id intel_backlight decr # Disable titlebar #new_window pixel 1 new_float pixel 1 # window focus follows your mouse movements as the mouse crosses window borders focus_follows_mouse yes # Configure the bar bar { font $i3-wm.bar.font separator_symbol " " status_command i3status tray_output none strip_workspace_numbers yes } for_window [title="CSSH"] floating enable # Run programs when i3 starts exec xautolock -time 5 -locker '~/xautolock.sh' &