Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #i3 configuration file
- #Author: Pawan Bhattarai
- set $mod Mod4
- font pango:System San Francisco Display 10
- floating_modifier $mod
- new_window pixel 3
- focus_follows_mouse yes
- workspace_auto_back_and_forth yes
- set $bg-color #2f343f
- set $inactive-bg-color #2f343f
- set $text-color #f3f4f5
- set $inactive-text-color #676E7D
- set $urgent-bg-color #E53935
- # start a terminal
- bindsym $mod+Return exec i3-sensible-terminal
- # kill focused window
- bindsym $mod+Shift+q kill
- # program launcher
- bindsym $mod+d exec rofi -show run
- # 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
- # 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
- #Terminal
- set $ws1 "1: ï„ "
- set $ws2 "2: ï„¡ "
- set $ws3 "3: "
- set $ws4 "4: ï‹"
- set $ws5 "5: "
- # 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 6
- bindsym $mod+7 workspace 7
- bindsym $mod+8 workspace 8
- bindsym $mod+9 workspace 9
- bindsym $mod+0 workspace 10
- # 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 6
- bindsym $mod+Shift+7 move container to workspace 7
- bindsym $mod+Shift+8 move container to workspace 8
- bindsym $mod+Shift+9 move container to workspace 9
- bindsym $mod+Shift+0 move container to workspace 10
- # Scratchpad
- bindsym $mod+p [instance="postman"] scratchpad show; [instance="postman"] move position center, resize set 1000 1000
- bindsym $mod+c [instance="evince"] scratchpad show; [instance="evince"] move position center, resize set 1500 1000
- # #--Postmane Scratchpad Window---# #
- for_window [instance="postman"] floating enable
- #for_window [instance="postnam"] resize set 1000 1000
- for_window [instance="postman"] move scratchpad
- for_window [instance="postman"] border pixel 2
- # #--Evince Scratchpad Window---# #
- for_window [instance="evince"] floating enable
- for_window [instance="evince"] resize set 1000 1000
- for_window [instance="evince"] move scratchpad
- for_window [instance="evince"] border pixel 2
- assign[class="^spotify$"] $ws4
- assign[class="^jetbrains-idea-ce$"] $ws2
- assign[class="^Terminator$"] $ws1
- assign[class="^Firefox$"] $ws3
- assign[class="^Pidgin$"] $ws5
- #i3 adnimistrative tasks.
- bindsym $mod+Shift+c reload
- bindsym $mod+Shift+r restart
- 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'"
- #windows resize
- mode "resize" {
- 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"
- for_window [title="(?i)terminal-file"] floating enable, resize set 600 300, move position cursor
- for_window [window_role="pop-up|bubble|task_dialog|Preferences"] floating enable
- for_window [window_role="browser|GtkFileChooserDialog"] resize set 800 600, move position center
- for_window [class="(?i)pavucontrol|lxappearance|xarchiver|kamus|arandr|Thunar"] floating enable
- for_window [window_role="(?i)filemanager"] floating enable, resize set 1280 600, move position center, focus
- for_window [class="Thunar"] floating enable resize set 800 800, move position center
- for_window [class="^Pidgin$" window_role="^conversation$"] resize grow width 0 px or 30 ppt; move left
- for_window [class="Nm-connection-editor"] floating enable resize set 400 400, move position center
- for_window [class="feh"] floating enable resize set 600 600, move position center
- for_window [title="Terminator Preferences"] floating enable, move position center
- for_window [class="Spotify"] move to workspace $ws4
- for_window [class="Ristretto"] floating enable resize set 700 700, move position center
- for_window [class="Blueman-manager"] floating enable, move position center
- for_window [class="Vlc"] floating enable, resize set 600 600, move position center
- # Startup programs
- exec compton -CGb
- exec firefox
- exec i3-sensible-terminal
- exec_always --no-startup-id feh --bg-scale /home/bpawan/Pictures/lights-night-unsharp-blured.png
- exec volumeicon
- exec --no-startup-id pidgin
- exec --no-startup-id setxkbmap -layout de
- exec blueman-applet
- exec xinput set-prop "DLL07BE:01 06CB:7A13 Touchpad" "libinput Tapping Enabled" 1
- # Switch the keyboard
- set $mode_kbl Keyboard (d) deutsch, (e) englisch
- mode "$mode_kbl" {
- bindsym d exec --no-startup-id setxkbmap -layout de, mode "default"
- bindsym e exec --no-startup-id setxkbmap -layout us -variant altgr-intl, mode "default"
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+b mode "$mode_kbl"
- # window color border background text indicator
- client.focused $bg-color $bg-color $text-color #00ff00
- client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
- client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
- client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
- #print screen
- bindsym Print exec "scrot -m ~/Pictures/screenshots/%s_%H%M_%d.%m.%Y_$wx$h.png
- #lock
- bindsym $mod+Shift+x exec ~/.config/i3/ilock/run_ilock.sh
- #bar
- bar {
- position bottom
- height 30
- output primary
- workspace_buttons yes
- tray_padding 5
- status_command i3blocks -c ~/.config/i3/i3blocks/blocks.conf
- colors {
- background $bg-color
- separator #757575
- # border background text
- focused_workspace $bg-color $bg-color $text-color
- inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
- urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
- }
- }
- hide_edge_borders both
- # 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
- # Sreen brightness controls
- bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
- bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement