Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # vim:filetype=i3
- ### i3-colors
- ## unfinished/placeholder colors!
- #name #top #border #text
- client.focused #402e2e #978965 #402e2e #978965
- client.unfocused #402e2e #402e2e #978965 #402e2e
- client.focused_inactive #402e2e #402e2e #978965 #402e2e
- client.urgent #402e2e #402e2e #978965 #402e2e
- ### Init i3bar and set colors
- bar {
- status_command i3status -c ~/.config/i3status/config
- strip_workspace_numbers yes
- colors {
- statusline #978965
- background #1f1f1f
- #name #border #bg #text
- focused_workspace #978965 #402e2e #978965
- active_workspace #402e2e #402e2e #978965
- inactive_workspace #402e2e #402e2e #978965
- urgent_workspace #402e2e #402e2e #978965
- }
- }
- ### Floating Windows
- for_window [class="URxvt"] floating enable
- for_window [class="feh"] floating enable
- for_window [class="thunar"] floating enable
- for_window [class="alsa-tray"] floating enable
- for_window [class="mpv"] floating enable
- for_window [class="Gretl_x11"] floating enable
- for_window [class="Galculator"] floating enable
- for_window [class="Globaltime"] floating enable
- ### Borderless Windows
- for_window [class="Firefox"] border none
- for_window [class="Firefox-Nightly"] border none
- for_window [class="Chromium"] border none
- ### 1pixel border Windows
- for_window [class="URxvt"] border 1pixel
- for_window [class="feh"] border 1pixel
- for_window [class="mpv"] border 1pixel
- for_window [class="Zathura"] border 1pixel
- ### Modkey
- set $mod Mod1
- set $othermod Mod4
- ### Font
- font -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
- ### Windowtype
- # none = no border, normal = default i3, 1pixel = 1pixel border
- for_window [class="^.*"] border pixel 0
- bindsym $mod+Shift+x border none
- bindsym $mod+Shift+n border normal
- bindsym $mod+Shift+o border 1pixel
- bindsym $mod+Tab focus right
- bindsym $mod+Shift+Tab focus left
- ### Gaps
- #gaps inner all set 20
- #gaps outer current plus 5
- set $mode_gaps Gaps: (o) outer, (i) inner
- set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
- set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|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 Shift+plus gaps inner all plus 5
- bindsym Shift+minus gaps inner all minus 5
- bindsym Shift+0 gaps inner all set 0
- 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 Shift+plus gaps outer all plus 5
- bindsym Shift+minus gaps outer all minus 5
- bindsym Shift+0 gaps outer all set 0
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- ### Keybind to move floating windows with the mouse cursor while holding
- floating_modifier $mod
- ### urxvt keybind
- bindsym $mod+Return exec --no-startup-id urxvtc
- ### Kill window
- bindsym $mod+Shift+q kill
- ### dmenu keybind
- bindsym $mod+d exec --no-startup-id dmenu_run
- #bindsym $mod+D exec --no-startup-id j4-dmenu-desktop
- ### Scrot screenshot
- bindsym $mod+Shift+s exec --no-startup-id "sh ~/scripts/scrot"
- ### Scrot window
- bindsym $mod+Shift+w exec --no-startup-id "sh ~/scripts/scrot-window"
- ### Change window focus with 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 with arrow keys
- # mod+Shift+Arrows for short movements and mod+Control+Arrows for longer movements
- bindsym $mod+Shift+Left move left
- bindsym $mod+Shift+Down move down
- bindsym $mod+Shift+Up move up
- bindsym $mod+Shift+Right move right
- bindsym $mod+Control+Left exec "i3-msg move left && i3-msg move left && i3-msg move left && i3-msg move left && i3-msg move left"
- bindsym $mod+Control+Down exec "i3-msg move down && i3-msg move down && i3-msg move down && i3-msg move down && i3-msg move down"
- bindsym $mod+Control+Up exec "i3-msg move up && i3-msg move up && i3-msg move up && i3-msg move up && i3-msg move up"
- bindsym $mod+Control+Right exec "i3-msg move right && i3-msg move right && i3-msg move right && i3-msg move right && i3-msg move right"
- ### Change window split into horizontal
- bindsym $mod+h split h
- ### Change window split into vertical
- bindsym $mod+v split v
- ## Change window layout n
- bindsym Mod1+s layout stacking
- bindsym Mod1+w layout tabbed
- bindsym Mod1+e layout default
- ### Fullscreen mode for focused window
- bindsym $mod+f fullscreen
- ### Jump to urgent window
- bindsym $mod+u [urgent=latest] focus
- ### Toggle tiling/floating mode
- bindsym $mod+Shift+space floating toggle
- ### Toggle focus between tiling/floating windows
- bindsym $mod+space focus mode_toggle
- ### Reload i3-config (~/.i3/config)
- bindsym $mod+Shift+c reload
- ### Restart i3
- bindsym $mod+Shift+r restart
- ### Exit i3
- bindsym $mod+Shift+e exec "i3-msg exit"
- ### Lock i3
- bindsym $mod+Shift+l exec "~/bin/lock.sh"
- ### Increase/Decrease Brightness
- bindsym XF86MonBrightnessUp exec --no-startup-id "xbacklight -inc 5"
- bindsym XF86MonBrightnessDown exec --no-startup-id "xbacklight -dec 5"
- ### Workspace variables - change the workspace labels here!
- set $WS1 web
- set $WS2 term
- set $WS3 media
- set $WS4 message
- set $WS5 dev
- set $WS6 work
- set $WS7 misc
- set $WS8 VIII
- set $WS9 IX
- set $WS10 X
- ### Other Manually made keybindings
- ## Volume
- bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 5%+"
- bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 5%-"
- bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle"
- ## MPD controls
- bindsym Mod1+Ctrl+x exec --no-startup-id "mpc next"
- bindsym Mod1+Ctrl+z exec --no-startup-id "mpc prev"
- bindsym Mod1+Ctrl+period exec --no-startup-id "mpc next"
- bindsym Mod1+Ctrl+comma exec --no-startup-id "mpc prev"
- bindsym Mod1+Ctrl+w exec --no-startup-id "sh ~/scripts/whatsplaying.sh"
- bindsym Mod1+Ctrl+space exec --no-startup-id "mpc toggle"
- ##Main application keybinds
- bindsym $othermod+w exec --no-startup-id "firefox"
- bindsym $othermod+e exec --no-startup-id "mousepad"
- bindsym $othermod+g exec --no-startup-id "GTK_THEME=/usr/share/themes/Animus-b/gtk-3.0/gtk.css pcmanfm"
- bindsym $othermod+f exec --no-startup-id "pcmanfm"
- bindsym $othermod+m exec --no-startup-id "thunderbird"
- bindsym $othermod+t exec --no-startup-id "urxvtc"
- bindsym XF86RotateWindows exec --no-startup-id "thinkpad-rotate"
- bindsym XF86Launch1 exec --no-startup-id "pavucontrol"
- ##Disable touchpad
- #bindsym Mod1+Shift+X exec --no-startup-id 'xinput set-prop 13 "Device Enabled" 0'
- #bindsym Mod1+Shift+Z exec --no-startup-id 'xinput set-prop 13 "Device Enabled" 1'
- #display back notifications
- bindsym $Mod+Ctrl+d exec --no-startup-id "kdeconnect-cli -d bf9e10a2be123c28 --list-notifications"
- ### Power Management (hopefully)
- set $Locker i3lock && sleep 1
- set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
- bindsym $mod+F12 mode "$mode_system"
- 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"
- }
- ### Switch workspaces
- 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 $WS6
- bindsym $mod+7 workspace $WS7
- bindsym $mod+8 workspace $WS8
- bindsym $mod+9 workspace $WS9
- bindsym $mod+0 workspace $WS10
- ### Send 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 $WS6
- bindsym $mod+Shift+7 move container to workspace $WS7
- bindsym $mod+Shift+8 move container to workspace $WS8
- bindsym $mod+Shift+9 move container to workspace $WS9
- bindsym $mod+Shift+0 move container to workspace $WS10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement