Created
April 2, 2017 19:01
-
-
Save Y0lan/4b4ad70b0adcaa661314ba35de1132d3 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
# 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). | |
# | |
#Startup Shit | |
exec --no-startup-id setxkbmap fr | |
exec --no-startup-id compton | |
exec --no-startup-id nitrogen --restore & | |
exec_always --no-startup-id $HOME/.config/polybar/polybar.sh | |
exec always --no-startup-id xset s off | |
exec always --no-startupid xset -dpms | |
#windows decoration | |
new_window pixel 1 | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
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:monospace 8 | |
# This font is widely installed, provides lots of unicode glyphs, right-to-left | |
# text rendering and scalability on retina/hidpi displays (thanks to pango). | |
#font pango:DejaVu Sans Mono 8 | |
# Before i3 v4.8, we used to recommend this one as the default: | |
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
# The font above is very space-efficient, that is, it looks good, sharp and | |
# clear in small sizes. However, its unicode glyph coverage is limited, the old | |
# X core fonts rendering does not support right-to-left and this being a bitmap | |
# font, it doesn’t scale on retina/hidpi displays. | |
# 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+Shift+q kill | |
# start rofi | |
bindsym $mod+d exec "rofi -show drun -lines 10 " | |
bindsym $mod+Shift+d exec "rofi -show window -lines 10 " | |
# change focus | |
#bindsym $mod+j focus left | |
#bindsym $mod+k focus down | |
#bindsym $mod+l focus up | |
#bindsym $mod+m 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+m 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+t layout tabbed | |
bindsym $mod+z 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+q focus parent | |
# focus the child container | |
#bindsym $mod+d focus child | |
#bindsym $mod+Shift+e exec oblogout | |
# Create Log out, Reboot, Poweroff bindings | |
mode "Exit: (S)uspend, (R)eboot, (P)oweroff" { | |
bindsym $mod+r exec systemctl reboot | |
bindsym $mod+p exec poweroff | |
bindsym $mod+s exec systemctl suspend | |
# back to normal: Enter or Escape | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
bindsym $mod+Shift+e mode "Exit: (S)uspend, (R)eboot, (P)oweroff" | |
######display | |
set $lap eDP1 | |
set $right DP1 | |
exec_always --no-startup-id xrandr --output $lap --left-of $right --auto | |
#Workspace | |
set $WS1 DW | |
set $WS2 Keepassx | |
set $WS3 Chat | |
set $WS4 Web | |
set $WS5 Code | |
set $WS6 Misc | |
set $WS7 Media | |
#Renaming WS on the go | |
#bindsym $mod+a exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | |
########### Automatically putting workspaces on specific screens | |
workspace "1:$WS1" output $lap | |
workspace "2:$WS2" output $lap | |
workspace "3:$WS3" output $lap | |
workspace "4:$WS4" output $lap | |
workspace "5:$WS5" output $right | |
#WS 6 isn't assigned for confort of use | |
workspace "7:$WS7" output $right | |
# switch to workspace | |
bindsym $mod+ampersand workspace 1:$WS1 | |
bindsym $mod+eacute workspace 2:$WS2 | |
bindsym $mod+quotedbl workspace 3:$WS3 | |
bindsym $mod+apostrophe workspace 4:$WS4 | |
bindsym $mod+parenleft workspace 5:$WS5 | |
bindsym $mod+minus workspace 6:$WS6 | |
bindsym $mod+egrave workspace 7:$WS7 | |
bindsym $mod+underscore workspace 8 | |
bindsym $mod+ccedilla workspace 9 | |
bindsym $mod+agrave workspace 10 | |
# move focused container to workspace | |
bindsym $mod+Shift+ampersand move container to workspace 1:$WS1 | |
bindsym $mod+Shift+eacute move container to workspace 2:$WS2 | |
bindsym $mod+Shift+quotedbl move container to workspace 3:$WS3 | |
bindsym $mod+Shift+apostrophe move container to workspace 4:$WS4 | |
bindsym $mod+Shift+5 move container to workspace 5:$WS5 | |
bindsym $mod+Shift+minus move container to workspace 6:$WS6 | |
bindsym $mod+Shift+egrave move container to workspace 7:$WS7 | |
bindsym $mod+Shift+underscore move container to workspace 8 | |
bindsym $mod+Shift+ccedilla move container to workspace 9 | |
bindsym $mod+Shift+agrave move container to workspace 10 | |
#STARTUP APPLICATION... | |
exec tor-browser http://fdpogivefk34xkbd.onion/login.php http://fdwocbsnity6vzwd.onion/login.php | |
exec keepass | |
exec discord | |
exec telegram-desktop | |
exec hexchat | |
exec firefox | |
exec urxvt -e cmatrix | |
exec urxvt -e pipes.sh | |
exec urxvt -e ncmpcpp | |
exec pidgin | |
#... AND ORGANIZE THEM BY WS | |
for_window [class="Tor Browser"] move to workspace 1:$WS1 | |
for_window [class="KeePass2"] move to workspace 2:$WS2 | |
for_window [class="TelegramDesktop"] move to workspace 3:$WS3 | |
for_window [class="discord"] move to workspace 3:$WS3 | |
for_window [class="Hexchat"] move to workspace 3:$WS3 | |
for_window [class="Buddy List"] move to workspace 3:$WS3 | |
for_window [class="Firefox"] move to workspace 4:$WS4 | |
for_window [title="cmatrix"] move to workspace 5:$WS5 | |
for_window [title="pipes.sh"] move to workspace 6:$WS6 | |
for_window [title="ncmpcpp 0.7.7"] move to workspace 7:$WS7 | |
# 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 (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'" | |
# 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 m 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 { | |
# status_command i3status | |
#} | |
#gaps and borders | |
gaps inner 8 | |
gaps outer 4 | |
new_window 1pixel | |
smart_borders on | |
for_window [class="^.*"] border pixel 5 | |
#NEW WORKSPACE | |
bindsym $mod+n exec --no-startup-id ~/.config/i3/new_ws.sh | |
#Application startup | |
bindsym $mod+w exec firefox | |
bindsym $mod+b exec nautilus | |
bindsym $mod+k exec keepass | |
bindsym $mod+c exec telegram-desktop | |
bindsym $mod+y exec --no-startup-id nautilus /home/yolan/Documents/Learn_python/thinkpython2 | |
#I3 Lock | |
bindsym $mod+l exec --no-startup-id ~/.config/i3/blur_lock.sh | |
# class border bground text indicator child_border | |
client.focused #4C7899 #070015 #00B7B6 #FFFFFF #00B7B6 | |
client.focused_inactive #333333 #070015 #D064F6 #FFFFFF #5F676A | |
client.unfocused #333333 #070015 #D064F6 #FFFFFF #222222 | |
client.urgent #2F343A #00FF9F #D064F6 #FFFFFF #900000 | |
client.placeholder #000000 #070015 #D064F6 #FFFFFF #0C0C0C | |
#Multimedia Keys | |
# Pulse Audio controls | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% | |
#increase sound volume | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% | |
#decrease sound volume | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound | |
# Screen brightness controls | |
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness | |
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness | |
# Media player controls | |
bindsym XF86AudioPlay exec playerctl play | |
bindsym XF86AudioPause exec playerctl pause | |
bindsym XF86AudioNext exec playerctl next | |
bindsym XF86AudioPrev exec playerctl previous | |
#Prtscn | |
bindsym Print exec --no-startup-id "scrot '%Y-%m-%d-%H-%M-%S-scrot.png' -e 'mv $f ~/Pictures/Scrot'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment