Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sset $mod Mod4
- # assign workspace variables
- set $M1 HDMI-0
- set $M2 DVI-I-1
- #############
- #Set Screens#
- #############
- workspace $WS1 output $M1
- workspace $WS2 output $M1
- workspace $WS3 output $M1
- workspace $WS4 output $M1
- workspace $WS5 output $M2
- workspace $WS6 output $M2
- workspace $WS7 output $M2
- workspace $WS8 output $M2
- workspace $WS9 output $M2
- workspace $WS10 output $M1
- # switch to workspace
- bindsym Mod4+1 workspace $WS1
- bindsym Mod4+2 workspace $WS2
- bindsym Mod4+3 workspace $WS3
- bindsym Mod4+4 workspace $WS4
- bindsym Mod4+5 workspace $WS5
- bindsym Mod4+6 workspace $WS6
- bindsym Mod4+7 workspace $WS7
- bindsym Mod4+8 workspace $WS8
- bindsym Mod4+9 workspace $WS9
- bindsym Mod4+0 workspace $WS10
- # move focused container to workspace
- bindsym Mod4+Shift+1 move container to workspace $WS1
- bindsym Mod4+Shift+2 move container to workspace $WS2
- bindsym Mod4+Shift+3 move container to workspace $WS3
- bindsym Mod4+Shift+4 move container to workspace $WS4
- bindsym Mod4+Shift+5 move container to workspace $WS5
- bindsym Mod4+Shift+6 move container to workspace $WS6
- bindsym Mod4+Shift+7 move container to workspace $WS7
- bindsym Mod4+Shift+8 move container to workspace $WS8
- bindsym Mod4+Shift+9 move container to workspace $WS9
- bindsym Mod4+Shift+0 move container to workspace $WS10
- #-------------------------------------------------------------#
- #-------------------------------------#
- #--- C U S T O M K E Y B I N D S ---#
- #-------------------------------------#
- ## Application Keybinds
- # Screenshot ( scrot )
- bindsym $mod+Print exec --no-startup-id scrot '%F--%I:%M:%S:%p--$wx$h--scrot.png' -e 'mv $f /home/joe/Screenshots/' && notify-send 'Scrot Saved !'
- bindsym $mod+u exec --no-startup-id lxterminal -e tmux
- # kill focused window
- bindsym $mod+Shift+Q kill
- # Audio Controls
- bindsym XF86_AudioLowerVolume exec amixer -q set Master 5%- unmute
- bindsym XF86_AudioMute exec amixer -q set Master playback toggle
- bindsym XF86_AudioRaiseVolume exec amixer -q set Master 5%+ unmute
- bindsym XF86_AudioStop exec mpc stop
- bindsym XF86_AudioPrev exec mpc prev
- bindsym XF86_AudioNext exec mpc next
- bindsym XF86_AudioPlay exec mpc toggle
- #----------------Window , Container , Workspace ----------------------------------------#
- # 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+Left move left
- bindsym $mod+Shift+Down move down
- bindsym $mod+Shift+Up move up
- bindsym $mod+Shift+Right move right
- #-------------------------------------------------------------#
- # Use mod-Control-Up and Down to rotate through the workspace list.
- bindsym $mod+Control+Left workspace prev
- bindsym $mod+Control+Right workspace next
- # focus the parent container
- bindsym $mod+Shift+a focus parent
- # focus the child container
- #bindsym $mod+Shift+d focus child
- # bring the window to center(floating only)
- bindsym $mod+c move absolute position center
- #bindsym $mod+ move right 332px,move up 213px
- #bindsym $mod+ move left 332px,move up 213px
- # 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+Shift+f fullscreen
- #-------------------------------------------------------------#
- # change container layout (stacked, tabbed, default)
- bindsym $mod+Shift+s layout stacking
- bindsym $mod+Shift+t layout tabbed
- bindsym $mod+Shift+d layout default
- bindsym $mod+Shift+e layout toggle split
- #HG
- # toggle tiling / floating
- bindsym $mod+Shift+space floating toggle
- ## Float
- # change focus between tiling / floating windows
- bindsym $mod+space focus mode_toggle
- #-------------------------------------------------------------#
- ##############
- ## Programs ##
- ##############
- bindsym $mod+w exec --no-startup-id firefox
- bindsym $mod+F2 exec --no-startup-id thunderbird
- bindsym $mod+o exec --no-startup-id okular
- bindsym $mod+f exec --no-startup-id thunar
- bindsym $mod+m exec --no-startup-id /usr/sbin/clementine $WS3
- bindsym $mod+F1 exec --no-startup-id synapse
- # Super+t --->Terminal
- bindsym $mod+t exec --no-startup-id lxterminal -e tmux
- # Super+n ---> Redit
- bindsym $mod+n exec --no-startup-id reditr $WS5
- bindsym $mod+F6 exec /usr/sbin/eog -fs /media/Bit-Bucket/Memories/Slide/*.jpg
- bindsym $mod+F3 exec feh --bg-scale --recursive --randomize /media/Bit-Bucket/Memories/Cool-Graphics/Wallpaper/*.jpg
- bindsym $mod+F8 exec scrot /home/joe/Screenshots/screenshot_%Y_%m_%d_%H_%M_%S.png
- # exit i3 (logs you out of your X session)
- bindsym $mod+z exec --no-startup-id /usr/sbin/quickswitch.py
- #-------------------------------#
- #---- Assign Windows to WS ----#
- #-------------------------------#
- # Move to workspace
- ## Assign Browsers
- assign [class="Chromium|Firefox|Navigator|Iceweasel"] $WS1
- assign [class="(?i)firefox"] → $WS1
- ## Assign Terminals
- assign [class="(?i)lxterminal"] $WS2
- for_window [class="lxterminal|URxvt|XTerm|mate-terminal"] focus, layout tabbed
- ## Assign Media Apps
- assign [class="(?i)mplayer"] $WS3
- assign [class="(?i)smplayer"] $WS3
- assign [class="(?i)clementine"] $WS3
- assign [class="(?i)ghb"] $WS3
- assign [class="(?i)pithos"] $WS3
- assign [class="(?i)vlc"] $WS3
- assign [class="(?i)cantata"] $WS3
- for_window [class="(?i)clementine"] border none, focus, layout tabbed
- for_window [class="(?!)smplayer|(?!)clementine|(?!)cantata"] border none, focus, floating enabled
- ## Development
- assign [class="(?i)pycharm"] → $WS4
- #assign [class="(?i)gedit"] → $WS4
- assign [class="(?i)vstudio"] → $WS4
- for_window [class="pycharm|bpython2|gedit|medit"] focus, layout tabbed
- ## Assign File Managers (with misc. apps)
- assign [class="Thunar|Caja"] $WS5
- assign [class="(?i)thunar"] → $WS5
- for_window [class="(?i)thunar"] border none, focus, layout tabbed
- ## Conky / Pics
- for_window [title="Conky"] floating enable border 1 pixel
- assign [class="(?i)Conky"]→ $WS6
- ## Assign Office Apps
- assign [class="(?i)thunderbird"] → $WS7
- assign [class="(?i)reditr"] → $WS9
- assign [class="libreoffice*|Zathura|libreoffice-writer|Abiword|Gnumeric"] $WS8
- assign [class="(?i)okular"] → $WS8
- assign [class="(?i)libreoffice"] → $WS8
- assign [class="(?i)hexchat"] → $WS9
- # Games
- bindsym $mod+F9 exec --no-startup-id minecraft ; workspace $WS10
- assign [class="net-minecraft-bootstrap-Bootstrap"] $WS10
- bindsym $mod+F10 exec --no-startup-id steam ; $WS10
- assign [title="Steam"] $WS10
- #-------------------------------------------------------------#
- #------------------------------------------#
- #-- W i n d o w S e t t i n g s ---#
- #------------------------------------------#
- for_window [window_role="pop-up"] floating enable
- for_window [class="URxvt|XTerm|lxterminal"] focus
- for_window [class="Message"] floating enable
- for_window [class="Xsensor"] floating enable, focus
- for_window [class="(?i)reditr"] focus ,layout tabbed
- for_window [class="(?i)hexchat"] border none, layout tabbed
- for_window [title="htop"] floating enable, focus
- for_window [class="Lxappearance"] floating enable
- for_window [class="Viewnior"] border none, focus,layout tabbed
- for_window [class="Chromium|Iceweasel|Firefox|Navigator"] focus, layout tabbed
- for_window [class="(?i)gpicview"] border none, focus, floating enabled
- for_window [class="(?i)galculator"] focus, floating enabled
- for_window [class="(?i)galculator"] floating enable, move position 1350 px 50 px, exec xdotool search --class Gnome-calculator getwindowpid -- windowsize %@ 200 200
- #-------------------------------------------------------------#
- ###################
- # AUTOSTART STUFF #
- ###################
- exec feh --bg-scale --recursive --randomize /media/Bit-Bucket/Memories/Cool-Graphics/Wallpaper/*.jpg
- exec thunar --daemon
- exec --no-startup-id nm-applet
- exec /usr/bin/volumeicon
- exec /home/joe/bin/Welcome
- exec /usr/bin/thunderbird ; $WS7
- exec /usr/sbin/gnome-terminal
- exec /usr/sbin/lxterminal -e tmux ; $WS2
- exec /usr/sbin/compton --config /home/joe/.compton.conf --shadow-exclude n:a:conky -b --shadow-exclude n:a:reditr -b
- exec /usr/bin/reditr ; $WS9
- for_window [window_role="pop-up"] floating enable
- # 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
- bindsym $mod+Shift+l exec --no-startup-id i3lock -i /home/joe/current.png
- #------------------Window , Conatiner Design Configuration ---------------------#
- font xft:Lemon 13
- set $Red #800000
- set $darkRed #E6B800
- set $white #FFFFFF
- set $antwhite #FFFF99
- set $dorange #CC5200
- set $sol #006600
- set $por #E68A2E
- set $DG #009900
- set $black #000000
- set $aqua #66CCFF
- set $plum #8A008A
- set $slate #0F2E4C
- set $BYell #FFFF00
- set $lslt #89AFD4
- set $nvyb #003366
- set $ws1 "1: :1"
- set $ws2 "2: :2"
- set $ws3 "3: :3"
- set $ws4 "4: + :4"
- set $ws5 "5: :5"
- set $ws6 "6: :6"
- set $ws7 "7: :7"
- set $ws8 "8: :8"
- set $ws9 "9: :9"
- set $ws10 "10: - :10"
- set $default_gaps_inner 15
- set $default_gaps_outer 10
- gaps inner $default_gaps_inner
- gaps outer $default_gaps_outer
- #smart_borders no_gaps
- workspace_auto_back_and_forth yes
- force_display_urgency_hint 0 ms
- new_window pixel 4
- new_float pixel 6
- # BORDER BACKGROUND TEXT INDICATOR
- client.focused $nvyb $sol $Byell $DG
- client.unfocused $DG $black $aqua $dorange
- client.focused_inactive $aqua $plum $white $black
- client.urgent $Red $Red $white $darkred
- # dmenu scripts
- bindsym $mod+d exec /home/joe/bin/dmenu.sh
- #dmenu -l 5 -p $title -fn ' LiberationMono:bold:size=14' -nb darkred -nf white -sb darkblue -sf white`
- # resize window (you can also use the mouse for that)
- set $mode_resize resize
- bindsym $mod+r mode "$mode_resize"
- mode "$mode_resize" {
- bindsym Left resize shrink width 1 px or 1 ppt
- bindsym Down resize grow height 1 px or 1 ppt
- bindsym Up resize shrink height 1 px or 1 ppt
- bindsym Right resize grow width 1 px or 1 ppt
- bindsym Shift+Left resize shrink width 5 px or 5 ppt
- bindsym Shift+Down resize grow height 5 px or 5 ppt
- bindsym Shift+Up resize shrink height 5 px or 5 ppt
- bindsym Shift+Right resize grow width 5 px or 5 ppt
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- set $mode_power :System: - (l)ock | (e)xit | -(s)uspend | - (h)ibernate | - (r)eboot | -(p)oweroff
- mode "$mode_power" {
- bindsym l exec --no-startup-id /home/joe/bin/i3exit lock, mode "default"
- bindsym e exec --no-startup-id /home/joe/bin/i3exit logout, mode "default"
- bindsym s exec --no-startup-id /home/joe/bin/i3exit suspend, mode "default"
- bindsym h exec --no-startup-id /home/joe/bin/i3exit hibernate, mode "default"
- bindsym r exec --no-startup-id /home/joe/bin/i3exit reboot, mode "default"
- bindsym p exec --no-startup-id /home/joe/bin/i3exit shutdown, mode "default"
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+Pause mode "$mode_power"
- bindsym Mod1+Control+l mode "$mode_power"
- set $mode_gaps Gaps: (o) outer, (i) inner
- set $mode_gaps_outer Outer Gaps: +|-|d|0 (local), Shift + +|-|d|0 (global)
- set $mode_gaps_inner Inner Gaps: +|-|d|0 (local), Shift + +|-|d|0 (global)
- bindsym $mod+Shift+g mode "$mode_gaps"
- mode "$mode_gaps" {
- bindsym o mode "$mode_gaps_outer"
- bindsym i mode "$mode_gaps_inner"
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- mode "$mode_gaps_inner" {
- bindsym plus gaps inner current plus 5
- bindsym minus gaps inner current minus 5
- bindsym 0 gaps inner current set 0
- bindsym d gaps inner current set $default_gaps_inner
- bindsym Shift+plus gaps inner all plus 5
- bindsym Shift+minus gaps inner all minus 5
- bindsym Shift+0 gaps inner all set 0
- bindsym Shift+d gaps inner all set $default_gaps_inner
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- mode "$mode_gaps_outer" {
- bindsym plus gaps outer current plus 5
- bindsym minus gaps outer current minus 5
- bindsym 0 gaps outer current set 0
- bindsym d gaps outer current set $default_gaps_outer
- bindsym Shift+plus gaps outer all plus 5
- bindsym Shift+minus gaps outer all minus 5
- bindsym Shift+0 gaps outer all set 0
- bindsym Shift+d gaps outer all set $default_gaps_outer
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- # fix graphics glitch
- #for_window [class="^.*"] border pixel 0
- for_window [class="(?i)lxterminal"] border pixel 3
- # dialogs
- for_window [window_role="pop-up"] floating enable
- for_window [window_role="task_dialog"] floating enable
- # other window specific settings
- for_window [class="(?i)pidgin" window_role="^conversation$"] resize grow width 0 px or 30 ppt
- bar {
- status_command i3blocks -c /home/joe/.i3blocks.conf
- mode dock
- position top
- font pango: FontAwesome Regular, Icons 14
- workspace_buttons yes
- strip_workspace_numbers yes
- # tray_output none
- #height 30
- colors {
- statusline $aqua
- background $slate
- separator $byell
- # BORDER BACKGROUND TEXT
- focused_workspace $byell $nvyb $byell
- inactive_workspace $aqua $black $lslt
- urgent_workspace $white $white $burnt
- }
- }
- default_orientation horizontal
- focus_follows_mouse no
- #popup_during_fullscreen ignore
- popup_during_fullscreen smart
- # Window Border
- bindsym $mod+Shift+n border none
- bindsym $mod+Shift+b border pixel 4px
- # i3bar Toggle
- #bindsym $mod+b bar mode invisible
- #bindsym $mod+n bar mode dock
- #bindsym $mod+b bar mode toggle
- # Scratchpad
- bindsym $mod+Shift+p move scratchpad
- bindsym $mod+p scratchpad show
- for_window [class="(?i)gnome-terminal"] move scratchpad
- # Switch Workspace Back and Forth
- bindsym $mod+Tab workspace back_and_forth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement