Skip to content

Commit

Permalink
updates to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sainathadapa committed Aug 18, 2019
1 parent 082a0f8 commit a4f9dbb
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 50 deletions.
76 changes: 39 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,50 @@ This repo contains my custom configuration for [I3 tiling window manager](https:

Notes:
- $mod key is Mod4 (Windows key on most keyboards)
- A project is a set of workspaces with the format - (workspace-number)::(project-name):(somenumber). Read more at [i3-wm-multi-disp-scripts](https://github.com/sainathadapa/i3-wm-multi-disp-scripts).
- [i3blocks](https://github.com/vivien/i3blocks) and [rofi](https://github.com/DaveDavenport/rofi) are the dependecies.
- A project is a set of workspaces with the format - `(workspace-number)::(project-name):(somenumber)`. Read more at [i3-wm-multi-disp-scripts](https://github.com/sainathadapa/i3-wm-multi-disp-scripts).
- [py3status](https://py3status.readthedocs.io/en/latest/intro.html) and [rofi](https://github.com/DaveDavenport/rofi) are the main dependencies.

Instructions:
- Backup your i3 config!
- git clone --recursive [email protected]:sainathadapa/i3-wm-config.git ~/.i3
- Install [rofi](https://davedavenport.github.io/rofi//INSTALL.html)
- Install [i3blocks](https://github.com/vivien/i3blocks)
- Install all the dependencies
- Done!

Shortcuts:

| Key | Purpose |
| --- | ------- |
| $mod + (1-9,0) | Switch to workspaces with number 1-10 |
| $mod + Shift + (1-9,0) | Move the container to the workspaces with number 1-10 |
| $mod + Left(Down,Up,Right) | focus left(down, up, right) window |
| $mod + Shift+ Left(Down,Up,Right) | move focused window left (down, up, right) |
| $mod + Return | terminal |
| $mod + Shift + e | Log out |
| $mod + Shift + r | Restart I3 inplace |
| $mod + r | Activate resize mode |
| $mod + Shift + space | Toggle floating status of the focused container |
| $mod + space | Change focus between tiling and floating windows |
| $mod + a | Focus parent container |
| $mod + d | Focus child container |
| $mod + e | Toggle the layout of the focused container |
| $mod + f | Fullscreen mode for the focused container |
| $mod + h | Split the current container horizontally |
| $mod + v | Split the current container vertically |
| $mod + l | Lock the system |
| $mod + Shift + p | Start a new project |
| $mod + p | Switch to the next project |
| $mod + n | Rename current project |
| $mod + Tab | Focus the workspace on the next monitor of the current project |
| $mod + Control + Tab | Move the focused container to the next workspace of the current project |
| $mod + Shift + Tab | Shift all the workspaces of the current project to their next monitors respectively |
| $mod + Shift + z | Move container to scratchpad |
| $mod + z | Show scratchpad |
| $mod + x | Toggle borders |
| F4 | Kill the focused window |
| F8 | Opens a GUI for selecting a window that needs to be moved to the current workspace |
| F9 | Rofi GUI to open a program |
| F10 | Rofi GUI to open a program |
| F12 | Rofi GUI to switch to a window |
| Key | Purpose |
| --- | ------- |
| $mod + (1-9,0) | Switch to workspaces with number 1-10 |
| $mod + Shift + (1-9,0) | Move the container to the workspaces with number 1-10 |
| $mod + h (j, k, l) | focus left (down, up, right) window |
| $mod + Shift + h (j, k, l) | move focused window left (down, up, right) |
| $mod + Return | terminal |
| $mod + Shift + r | Restart I3 inplace |
| $mod + r | Activate resize mode |
| $mod + space | Change focus between tiling and floating windows |
| $mod + Shift + space | Toggle floating status of the focused container |
| $mod + a | Focus parent container |
| $mod + d | Focus child container |
| $mod + e | Toggle the layout of the focused container |
| $mod + t | Split the current container horizontally |
| $mod + y | Split the current container vertically |
| $mod + f | Fullscreen mode for the focused container |
| $mod + q | Lock the system |
| $mod + z | Show scratchpad |
| $mod + Shift + z | Move container to scratchpad |
| $mod + x | Toggle borders |
| $mod + s | Toggle touchpad |
| $mod + u | Create a floating video with explicit size, ideal for watching videos |
| Print | Screenshot of the whole screen |
| $mod + Print | Select an area to screenshot |
| $mod + minus | Log-out, shutdown, etc menu |
| F4 | Kill the focused window |
| F7 | Rofi GUI to open a program |
| F8 | Opens a GUI for selecting a window, and the moves the selected window to the current workspace |
| F12 | Rofi GUI to switch to a window |
| $mod + Shift + p | Start a new project |
| $mod + p | Switch to the next project |
| $mod + o | Rename current project |
| $mod + Tab | Focus the workspace on the next monitor of the current project |
| $mod + Control + Tab | Move the focused container to the next workspace of the current project |
| $mod + Shift + Tab | Shift all the workspaces of the current project to their next monitors respectively |
18 changes: 8 additions & 10 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ bindsym $mod+Return exec terminal

# screenshots
bindsym Print exec --no-startup-id i3-scrot
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
bindsym $mod+Print --release exec --no-startup-id i3-scrot -s

# kill focused window
bindsym F4 kill
Expand All @@ -53,7 +52,7 @@ bindsym F4 kill
################################################################################################

exec --no-startup-id volumeicon
bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
# bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
#exec --no-startup-id pulseaudio
#exec --no-startup-id pa-applet
#bindsym $mod+Ctrl+m exec pavucontrol
Expand Down Expand Up @@ -187,7 +186,7 @@ bindsym $mod+Shift+0 move container to workspace number 0
bindsym $mod+Shift+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+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'"

mode "mouse" {
# set your three speeds here
Expand Down Expand Up @@ -314,17 +313,17 @@ bindsym F7 exec "rofi -show-icons -modi combi -show combi -combi-modi drun,run"
bindsym F12 exec rofi -show-icons -show window

# launch categorized menu
bindsym F10 exec --no-startup-id morc_menu
# bindsym F10 exec --no-startup-id morc_menu

# volume
bindsym XF86AudioLowerVolume exec ~/.i3/utils/volume_decrease.sh
bindsym XF86AudioRaiseVolume exec ~/.i3/utils/volume_increase.sh
bindsym XF86AudioMute exec ~/.i3/utils/volume_mute.sh

# music
bindsym XF86AudioPlay exec playerctl 'play-pause'
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# bindsym XF86AudioPlay exec playerctl 'play-pause'
# bindsym XF86AudioNext exec playerctl next
# bindsym XF86AudioPrev exec playerctl previous

# brightness
bindsym XF86MonBrightnessDown exec $i3path/utils/brightness_decrease.sh
Expand All @@ -336,7 +335,6 @@ bindsym Shift+XF86MonBrightnessDown exec $i3path/utils/brightness_gui.sh
exec --no-startup-id $i3multipath/.env/bin/python $i3multipath/create_new_project.py main

# Autostart applications
# exec --no-startup-id dropbox start
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id nitrogen --restore #; sleep 1; compton -b
#exec --no-startup-id manjaro-hello
Expand Down Expand Up @@ -456,7 +454,7 @@ smart_borders on
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
# bindsym $mod+Shift+g mode "$mode_gaps"

mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
Expand Down
4 changes: 4 additions & 0 deletions i3blocks.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ markup=pango
# markup=pango
# color=#8CE000

[pomodoro]
command=python ~/code/i3-pomodoro/pomodoro.py
interval=1

[temperature]
command=~/.i3/i3blocks-contrib/temperature/temperature --chip 'coretemp-isa-000'
label=
Expand Down
6 changes: 3 additions & 3 deletions i3status.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ order += "battery all"
order += "tztime local"

cpu_usage {
format = " CPU: %usage "
format = " CPU: %usage "
}

sysdata {
Expand All @@ -49,12 +49,12 @@ clock {
cycle = 5
format = ["{America/Los_Angeles}", "{Asia/Kolkata}"]
format_time = "{name:11s} %H:%M"
color="#ffb64c"
color = "#ffb64c"
}

disk "/" {
format = " ⛁ %avail "
color="#4ec2f7"
color = "#8CE000"
}

ethernet _first_ {
Expand Down

0 comments on commit a4f9dbb

Please sign in to comment.