Monday, October 26, 2015

i3wm config.base

cwitt@cwittUbuntuDB:~/.i3$ echo;for file in config.base;do echo;echo 'Filename: '"${file}";cat "${file}";echo;echo;done;echo


Filename: config.base
# 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 some time, 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!

# Start blueman-applet for bluetooth
exec_always --no-startup-id blueman-applet

# Pulse Audio controls
exec_once --no-startup-id volumeicon
bindsym XF86AudioMute exec ~/bin/ToggleMute.sh # mute sound volume for sink aka output
bindsym $mod+XF86AudioMute exec ~/bin/AudioFullVolume.sh # full sound volume for sink aka output
bindsym XF86AudioRaiseVolume exec ~/bin/AudioRaiseVolume.sh #increase sound volume
bindsym XF86AudioLowerVolume exec ~/bin/AudioLowerVolume.sh #decrease sound volume
bindsym XF86AudioMicMute exec ~/bin/ToggleMuteMicrophone.sh # mute microphone aka sound source


# default border is too small :)
new_window pixel 5

# wallpaper
exec_always --no-startup-id feh --bg-max ~/.i3/wallpaper.jpg

# [class="Vncviewer" id=67108881 instance="vncviewer" title="TightVNC: nocmonitor1:0"]
assign [class="Vncviewer"] 10
for_window [class="Vncviewer"] focus

# various exec_always programs in ~/.i3/i3ExecAlways script to make startup easier and all in one place
exec_always --no-startup-id ~/.i3/i3ExecAlways

# /usr/NX/bin/: nxserver.bin nxd nxnode.bin nxclient.bin start w/o my help, so far so good
# manually start nxplayer if for some reason the applet is not showing

# natural scrolling for touchpad
exec --no-startup-id xinput set-prop 11 "Synaptics Scrolling Distance" -101, -101

# use Mod4 (Windows / Super) as mod
set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:Ubuntu 16
font -schumacher-clean-bold-r-normal--16-160-75-75-c-80-iso646.1991-irv

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

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

# kill focused window
bindsym $mod+Escape kill

# reName workspace
bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name: '

# start a file manager
bindsym $mod+Shift+F12 exec nautilus
# start dmenu (a program launcher)
bindsym $mod+F12 exec dmenu_run
# 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
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

# move focused workspace
bindsym $mod+Shift+Control+j move workspace to output left
bindsym $mod+Shift+Control+k move workspace to output down
bindsym $mod+Shift+Control+l move workspace to output up
bindsym $mod+Shift+Control+semicolon move workspace to output right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Control+Left move workspace to output left
bindsym $mod+Shift+Control+Down move workspace to output down
bindsym $mod+Shift+Control+Up move workspace to output up
bindsym $mod+Shift+Control+Right move workspace to output 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+Shift+s layout stacking
bindsym $mod+Shift+w layout tabbed
bindsym $mod+Shift+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

# New workspace in same output
bindsym $mod+Shift+n exec quickswitch.py -e

# workspace assignments and switching - fake-0 is for i3status - fake-1 is for hidden
workspace 1 output fake-1
bindsym $mod+1 workspace number 1
workspace 2 output fake-2
bindsym $mod+2 workspace number 2
workspace 3 output fake-3
bindsym $mod+3 workspace number 3
workspace 4 output fake-4
bindsym $mod+4 workspace number 4
workspace 5 output fake-5
bindsym $mod+5 workspace number 5
workspace 6 output fake-6
bindsym $mod+6 workspace number 6
workspace 7 output fake-7
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
workspace 10 output fake-0
bindsym $mod+0 workspace number 10
bindsym $mod+F1 workspace number 11
bindsym $mod+F2 workspace number 12
bindsym $mod+F3 workspace number 13
bindsym $mod+F4 workspace number 14
bindsym $mod+F5 workspace number 15
bindsym $mod+F6 workspace number 16
bindsym $mod+F7 workspace number 17
bindsym $mod+F8 workspace number 18
bindsym $mod+F9 workspace number 19
bindsym $mod+F10 workspace number 20

# 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+F1 move container to workspace number 11
bindsym $mod+Shift+F2 move container to workspace number 12
bindsym $mod+Shift+F3 move container to workspace number 13
bindsym $mod+Shift+F4 move container to workspace number 14, workspace number 14
bindsym $mod+Shift+F5 move container to workspace number 15, workspace number 15
bindsym $mod+Shift+F6 move container to workspace number 16
bindsym $mod+Shift+F7 move container to workspace number 17
bindsym $mod+Shift+F8 move container to workspace number 18
bindsym $mod+Shift+F9 move container to workspace number 19
bindsym $mod+Shift+F10 move container to workspace number 20

# cwwitt: create new ~/.i3/config
bindsym $mod+Shift+c exec ~/.i3/i3config.sh
# cwwitt: will restart and use current ~/.i3/config
bindsym $mod+Shift+r restart
# lock screen Ctrl-Alt-l
bindsym Control+mod1+l exec i3lock
# BEGIN Create Log out, Reboot, Poweroff bindings
set $mode_system (Enter) logout, (r) reboot, (Esc) poweroff
mode "$mode_system" {
    # Poweroff no password
    bindsym Escape exec ~/bin/Poweroff.sh
    # Logout
    bindsym Return exit
    # Reboot no password
    bindsym r exec ~/bin/Reboot.sh
    # back to normal: very rare, so do Shift+Escape
    bindsym Shift+Escape mode "default"
}
bindsym $mod+Shift+Escape mode "$mode_system"
# END Create Log out, Reboot, Poweroff bindings

# 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 {
        output fake-0
        position bottom
        status_command i3status
        # $i3-theme-bar
}

bar {
        output fake-1
        output fake-2
        output fake-3
        output fake-4
        output fake-5
        output fake-6
        output fake-7
        tray_output none
        position top
        status_command i3status
        # $i3-theme-bar
}

# $i3-theme-window

No comments:

Post a Comment

This is Charles Weldon Witt. Thank you for commenting on my blog.