regolith-linux / regolith-i3

An unofficial fork of an unofficial fork (i3-gaps) of i3-wm.
Other
29 stars 16 forks source link

Default config? #7

Open 0xDaksh opened 5 years ago

0xDaksh commented 5 years ago

Where can I find the default config for i3?

kgilmer commented 5 years ago

It's not available as a stand alone file at this time unfortunately, but is rather built on top of the stock i3-gaps config via patches. It changes pretty often but here's the newest version. I'm working on a relatively large change to push all theme info such as colors into Xresources so this file is going to change a lot in the near future (FYI)

# i3 config file (v4) for Regolith Desktop Environment
#
# 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

# This is the Solarized color palette.
set $base03    #002b36
set $base02    #073642
set $base01    #586e75
set $base00    #657b83
set $base0     #839496
set $base1     #93a1a1
set $base2     #eee8d5
set $base3     #fdf6e3
set $yellow    #b58900
set $orange    #cb4b10
set $red       #dc322f
set $magenta   #d33682
set $violet    #6c71c4
set $blue      #268bd2
set $cyan      #2aa198
set $green     #859900
set $transparent #00000000
set $lucent    #00000088

# This is the labels which describe each i3 workspace.
set $ws1   "1:<span font_desc='Source Code Pro Medium 13'> 1 </span><span foreground='#268bd2'></span> "
set $ws2   "2:<span font_desc='Source Code Pro Medium 13'> 2 </span><span foreground='#2aa198'></span> "
set $ws3   "3:<span font_desc='Source Code Pro Medium 13'> 3 </span><span foreground='#859900'></span> "
set $ws4   "4:<span font_desc='Source Code Pro Medium 13'> 4 </span><span foreground='#b58900'></span> "
set $ws5   "5:<span font_desc='Source Code Pro Medium 13'> 5 </span><span foreground='#cb4b10'></span> "
set $ws6   "6:<span font_desc='Source Code Pro Medium 13'> 6 </span><span foreground='#dc322f'></span> "
set $ws7   "7:<span font_desc='Source Code Pro Medium 13'> 7 </span><span foreground='#d33682'></span> "
set $ws8   "8:<span font_desc='Source Code Pro Medium 13'> 8 </span><span foreground='#6c71c4'></span> "
set $ws9   "9:<span font_desc='Source Code Pro Medium 13'> 9 </span><span foreground='#93a1a1'></span>  "
set $ws10  "10:<span font_desc='Source Code Pro Medium 13'>10 </span><span foreground='#268bd2'></span>  "
set $ws11  "11:<span font_desc='Source Code Pro Medium 13'>11 </span><span foreground='#2aa198'></span>  "
set $ws12  "12:<span font_desc='Source Code Pro Medium 13'>12 </span><span foreground='#859900'></span>  "
set $ws13  "13:<span font_desc='Source Code Pro Medium 13'>13 </span><span foreground='#b58900'></span>  "
set $ws14  "14:<span font_desc='Source Code Pro Medium 13'>14 </span><span foreground='#cb4b10'></span>  "
set $ws15  "15:<span font_desc='Source Code Pro Medium 13'>15 </span><span foreground='#dc322f'></span>  "
set $ws16  "16:<span font_desc='Source Code Pro Medium 13'>16 </span><span foreground='#d33682'></span>  "
set $ws17  "17:<span font_desc='Source Code Pro Medium 13'>17 </span><span foreground='#6c71c4'></span>  "
set $ws18  "18:<span font_desc='Source Code Pro Medium 13'>18 </span><span foreground='#93a1a1'></span>  "
set $ws19  "19:<span font_desc='Source Code Pro Medium 13'>19 </span><span foreground='#268bd2'></span>  "

# 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 /usr/bin/st

# start a web browser
bindsym $mod+Shift+Return exec /usr/bin/sensible-browser

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

# rofi app and window launchers
bindsym $mod+space exec rofi -show drun -theme regolith-theme
bindsym $mod+Shift+space exec rofi -show run -theme regolith-theme
bindsym $mod+Ctrl+space exec rofi -show window -theme regolith-theme

# 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

# show/hide keybindings
bindsym $mod+Shift+question exec /usr/bin/conky-toggle.sh

# toggle tiling / floating
bindsym $mod+Shift+f floating toggle

# change focus between tiling / floating windows
bindsym $mod+Shift+t focus mode_toggle

# 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 $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 between workspace
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

bindsym $mod+Shift+grave move container to workspace $ws20

# 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

# exit i3
bindsym $mod+Shift+e exit

# lock the screen
bindsym $mod+Escape exec gnome-screensaver-command --lock

# put the system to sleep
bindsym $mod+Shift+s exec systemctl suspend

# shortcuts for common system configuration tasks
bindsym $mod+c exec gnome-control-center
bindsym $mod+w exec gnome-control-center wifi
bindsym $mod+b exec gnome-control-center bluetooth
bindsym $mod+d exec gnome-control-center display
bindsym $mod+n exec gnome-control-center network
bindsym $mod+p exec gnome-control-center power
bindsym $mod+s exec gnome-control-center sound

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # same bindings, but for the arrow keys
        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

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"

# Disable titlebar
new_window pixel 1
new_float pixel 1

# Gaps (i3-gaps)
gaps inner 5
gaps outer 0

# Only enable gaps on a workspace when there is at least one container
smart_gaps on

# Window Border color
# class                 border  backgr. text    indicator child_border
client.focused          #002b36 #586e75 #fdf6e3 #268bd2
client.focused_inactive #002b36 #073642 #839496 #073642
client.unfocused        #002b36 #073642 #839496 #073642
client.urgent           #002b36 #dc322f #fdf6e3 #002b36

# Enable popup during fullscreen
popup_during_fullscreen smart

# window focus follows your mouse movements as the mouse crosses window borders
focus_follows_mouse no

# Configure the bar
bar {
  font pango:Source Code Pro Medium 13, FontAwesome 13
  separator_symbol " "
  status_command i3blocks
  tray_output none
  strip_workspace_numbers yes

  colors {
      background $base03
      statusline $base1
      separator  $blue
#                        BORDER  BACKGROUND TEXT
      focused_workspace  $base02  $base02  $base2
      active_workspace   $base02  $base02  $base01
      inactive_workspace $base03  $base03  $base01
      urgent_workspace   $red     $red     $base3
  }
}

# Run programs when i3 starts

# Composite manager
exec --no-startup-id compton -f --config /etc/xdg/compton.conf

# Launch the shortcut Conky window on first login
exec --no-startup-id /usr/bin/regolith-ftue.sh

# Hide the mouse pointer if unused for a duration
exec --no-startup-id /usr/bin/unclutter -b

See also https://github.com/regolith-linux/regolith-desktop/issues/47