Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set the modkey.
- set $mod Mod1
- # Set the font.
- font pango:DejaVa Sans Mono 13
- # Set the floating modifier.
- floating_modifier $mod
- # Set the terminal to st.
- bindsym $mod+Return exec st
- # Kill the focused window.
- bindsym $mod+Shift+q kill
- # Set the program launcher to dmenu.
- bindsym $mod+d exec dmenu_run
- # Lock the screen.
- bindsym $mod+Pause exec i3lock -i ~/Pictures/lock.png
- # Change the focus.
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
- # Move the 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
- # Split in horitizontal orientation.
- bindsym $mod+b 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.
- bindsym $mod+s layout stacking
- bindsym $mod+w layout tabbed
- bindsym $mod+e layout toggle split
- # Toggle between tiling and floating.
- bindsym $mod+Shift+space floating toggle
- # Change focus between tiling and floating windows.
- bindsym $mod+space focus mode_toggle
- # Focus the parent container.
- bindsym $mod+a focus parent
- # Switch to workspace.
- bindsym $mod+1 workspace 1
- bindsym $mod+2 workspace 2
- bindsym $mod+3 workspace 3
- bindsym $mod+4 workspace 4
- bindsym $mod+5 workspace 5
- 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 1
- bindsym $mod+Shift+2 move container to workspace 2
- bindsym $mod+Shift+3 move container to workspace 3
- bindsym $mod+Shift+4 move container to workspace 4
- bindsym $mod+Shift+5 move container to workspace 5
- 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
- # Auto load applications in certain workspaces using xprop.
- assign [class="Firefox"] 1
- assign [class="keepassxc"] 2
- # Reload the configuration file.
- bindsym $mod+Shift+c reload
- # Restart i3 inplace.
- bindsym $mod+Shift+r restart
- # Exit i3.
- bindsym $mod+Shift+e exec i3-msg exit
- # Resize window.
- bindsym $mod+r mode "resize"
- mode "resize" {
- bindsym l resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym j resize shrink height 10 px or 10 ppt
- bindsym h resize grow width 10 px or 10 ppt
- bindsym $mod+r mode "default"
- }
- # i3blocks bar.
- bar {
- tray_output none
- status_command i3blocks -c ~/Github/arch_rice/i3/i3blocks.conf
- colors {
- background "#2f343f"
- }
- }
- # Screenshot.
- bindsym Print exec maim -s | xclip -selection clipboard -t image/png
- # Alsa audio controls.
- bindsym XF86AudioRaiseVolume exec amixer -q sset Master 5%+
- bindsym XF86AudioLowerVolume exec amixer -q sset Master 5%-
- bindsym XF86AudioMute exec amixer -q sset Master toggle
- # Sreen brightness controls.
- bindsym XF86MonBrightnessUp exec xbacklight -inc 5
- bindsym XF86MonBrightnessDown exec xbacklight -dec 5
- # Start compton.
- exec compton -b --config ~/.config/compton.conf
- # i3lock on lid close.
- exec xss-lock -l -- i3lock -i ~/Pictures/lock.png
- # Set background.
- exec_always feh --bg-scale ~/Pictures/wallpaper.png
- # Disable window titlebars.
- for_window [class="^.*"] border pixel 0
- # Gaps.
- gaps inner 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement