Created
October 19, 2017 14:04
-
-
Save imrvelj/11f32e7ae9600159248c8a88cb70d2bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
set $mod Mod4 | |
set $ws1 "1: " | |
set $ws2 "2: " | |
set $ws3 "3: " | |
set $ws4 "4: " | |
set $ws5 "5: " | |
set $ws6 "6: " | |
set $ws7 "7: " | |
set $ws8 "8: " | |
set $ws9 "9: " | |
set $ws0 "10: " | |
#COLORSCHEME# | |
set $white #fefefe | |
set $grey #979C9C | |
set $back #31363D | |
set $bluegray #343642 | |
set $bluegreen #61C791 | |
set $green #a5ffe1 | |
set $yellowgreen #E0FFB3 | |
set $cyan #97e0ff | |
set $blue #2272b1 | |
set $darkpurple #2c202d | |
set $purple #42282F | |
set $red #F23C55 | |
set $orange #f99170 | |
# Fonts | |
font pango:Lato 10 | |
for_window [class="^.*"] border pixel 3 | |
new_window pixel 2 | |
new_float pixel 2 | |
smart_borders on | |
smart_gaps on | |
#class border backgr. text split | |
client.focused $red $blue $grey $pink | |
client.focused_inactive $red $back $lightgrey $grey | |
client.unfocused $back $back $grey $grey | |
client.urgent $red $lightpurple $black $red | |
client.background $red | |
floating_modifier $mod | |
set $default_gaps_inner 5 | |
set $default_gaps_outer 5 | |
gaps inner $default_gaps_inner | |
gaps outer $default_gaps_outer | |
# start a terminal | |
bindsym $mod+Return exec xfce4-terminal | |
# kill focused window | |
bindsym $mod+q kill | |
bindsym $mod+d exec rofi -show run -lines 5 -eh 2 -width 60 -padding 50 -opacity "90" -bw 0 -bc "$back" -bg "$back" -fg "$white" -hlbg "$grey" -hlfg "$back" -font "Roboto Mono Regular 14" | |
# change focus | |
bindsym $mod+h focus left | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+l 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+h move left | |
bindsym $mod+Shift+j move down | |
bindsym $mod+Shift+k move up | |
bindsym $mod+Shift+l 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 | |
# 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 toggle | |
# change container layout (stacked, tabbed, toggle split) | |
bindsym $mod+s layout stacking | |
bindsym $mod+w layout tabbed | |
bindsym $mod+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 | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# focus the child container | |
#bindsym $mod+d focus child | |
# 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 $ws0 | |
# 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 $ws0 | |
# Reloading | |
bindsym $mod+Shift+c reload | |
bindsym $mod+Shift+r restart | |
# exit | |
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Quit?' -b 'Yes' 'i3-msg exit'" | |
# resize | |
mode "resize" { | |
bindsym h resize shrink width 10 px or 10 ppt | |
bindsym j resize grow height 10 px or 10 ppt | |
bindsym k resize shrink height 10 px or 10 ppt | |
bindsym l 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" | |
bar { | |
font pango: Roboto Mono Regular, Font Awesome 11 | |
position top | |
status_command i3blocks -c /home/perpaer/.i3/i3blocks.conf | |
height 30 | |
colors { | |
background $back | |
separator $grey | |
# border background text | |
focused_workspace $back $back $blue | |
inactive_workspace $back $back $grey | |
urgent_workspace $back $red $back | |
} | |
} | |
# Autostart | |
exec_always xset m 0 0 | |
exec_always feh --bg-scale /rejd/wall/yosemite.png | |
exec --no-startup-id nm-applet | |
exec --no-startup-id compton -f | |
# Assigning workspaces | |
assign [class="chromium-browser"] $ws1 | |
assign [class="Atom"] $ws3 | |
assign [class="Wine"] $ws8 | |
assign [class="Skype"] $ws9 | |
#always floating | |
for_window [class="Galculator"] floating enable | |
for_window [class="Skype"] floating enable | |
for_window [class="Wine"] floating enable | |
for_window [class="Corebird"] floating enable | |
for_window [window_role="pop-up"] floating enable | |
for_window [window_role="bubble"] floating enable | |
for_window [window_role="task_dialog"] floating enable | |
for_window [window_role="Preferences"] floating enable | |
for_window [window_type="dialog"] floating enable | |
for_window [window_type="menu"] floating enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment