Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Please see http://i3wm.org/docs/userguide.html for a complete reference!
- # =======================================================
- # Basic settings
- # Mod1 is Alt key, Mod4 is Win key
- set $mod Mod1
- # Really small borders and no title for windows
- for_window [class="^."] border pixel 2
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # Default volume
- #exec amixer sset Master mute
- # exec amixer sset Master unmute
- exec --no-startup-id amixer sset Master 60%
- # Wallpaper restoring
- #exec --no-startup-id nitrogen --restore
- exec feh --bg-scale /home/michal/Obrazy/wallpaper.jpg
- # Press again $mod+number to return to workspace you were working on
- workspace_auto_back_and_forth yes
- # Name the workspaces
- #set $tag1 "1: Internet"
- #set $tag2 "2: Files"
- #set $tag3 "3: Terminals"
- #set $tag4 "4: Other_stuff"
- # basic colors=============================
- #
- # default blue
- set $de #00688B
- # cool red
- set $cr #f7003a
- # # set some nice colors border background text
- client.focused $de $de $tx
- client.unfocused $de $bg $ia
- client.focused_inactive $de $bg $de
- client.urgent $de $rd $tx
- # Bar
- bar
- {
- colors
- {
- # Whole color settings
- background #000000
- statusline #00688B
- separator #0EBFE9
- # Type border background font
- focused_workspace #3e79d1 #00688B #ffffff
- active_workspace #f7003a #5f676a #ffffff
- inactive_workspace #333333 #222222 #888888
- urgent_workspace #f7003a #990000 #ffffff
- }
- # i3bar position
- #position top
- position bottom
- status_command i3status
- font xtf:Cousine 8
- }
- # =======================================================
- #
- # =======================================================
- # Bindings
- # Start a terminal
- bindsym $mod+Return exec lxterminal
- bindsym $mod+F5 exec amixer sset Master toggle
- # Kill focused window
- bindsym $mod+c kill
- # Start dmenu (a program launcher)
- bindsym $mod+d exec dmenu_run
- # Open menu with system commands
- bindsym $mod+F2 mode "$mode_system"
- bindsym --release Print exec scrot ~/tmp/%H:%M:%S-%d-%m_screenshot.png
- bindsym --release $mod+Print exec scrot -s ~/tmp/%H:%M:%S-%d-%m_screenshot.png
- # Change focused window
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
- # Or, with the arrow 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
- # Or, with the arrow 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+g split h
- # split in vertical orientation
- bindsym $mod+v split v
- # enter fullscreen mode for the focused container
- bindsym $mod+f fullscreen
- # 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
- # 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
- # Volume control
- bindsym $mod+F11 exec amixer set Master 5%-
- bindsym $mod+F12 exec amixer set Master 5%+
- # Brightness control
- bindsym $mod+F9 exec xbacklight -dec 5
- bindsym $mod+F10 exec xbacklight -inc 5
- # focus the child container
- #bindsym $mod+d focus child
- # 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)
- bindsym $mod+r mode "resize"
- # There also is the (new) i3-dmenu-desktop which only displays applications
- # shipping a .desktop file. It is a wrapper around dmenu, so you need that
- # installed.
- # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
- # =======================================================
- # =======================================================
- # Shutdown, reboot, lock screen
- #set $Locker i3lock -c 000000 && sleep 1
- # set $Locker i3lock -i ~/Pictures/i3lock-arch.png --color=ff0000
- set $Locker i3lock -i ~/Pictures/i3lock-deb.png --color=ff0000
- set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
- mode "$mode_system" {
- bindsym l exec --no-startup-id $Locker, mode "default"
- bindsym e exec --no-startup-id i3-msg exit, mode "default"
- bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
- bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
- bindsym r exec --no-startup-id systemctl reboot, mode "default"
- bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- # =======================================================
- mode "resize" {
- set $Size 3
- # These bindings trigger as soon as you enter the resize mode
- bindsym j resize shrink width $Size px or $Size ppt
- bindsym k resize grow height $Size px or $Size ppt
- bindsym l resize shrink height $Size px or $Size ppt
- bindsym semicolon resize grow width $Size px or $Size ppt
- # Same bindings, but for the arrow keys
- bindsym Left resize shrink width $Size px or $Size ppt
- bindsym Down resize grow height $Size px or $Size ppt
- bindsym Up resize shrink height $Size px or $Size ppt
- bindsym Right resize grow width $Size px or $Size ppt
- # Back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement