Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # (No) Title Bars
- for_window [class="^.*"] border pixel 0
- # Gaps
- gaps inner 15
- gaps outer -5
- smart_gaps on
- # Windows button
- set $mod Mod4
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- bindsym $mod+Return exec termite
- # in case of an emergency
- bindsym $mod+Shift+Return exec xterm
- # Font for window titles. Will also be used by the bar unless a different font
- # is used in the bar {} block below.
- font pango:xos4 Terminus 11
- # Use Mouse+$mod to drag floating window
- # kill focused window
- bindsym $mod+q kill
- # program launcher
- bindsym $mod+r exec "rofi -show drun -show-icons -modi drun,window -terminal termite"
- bindsym $mod+Shift+r exec rofi -show run
- # change focus
- 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
- # 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
- set $ws1 "1"
- set $ws2 "2"
- set $ws3 "3"
- set $ws4 "4"
- set $ws5 "5"
- set $ws6 "6"
- set $ws7 "7"
- set $ws8 "8"
- set $ws9 "9"
- set $ws10 "10"
- 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
- 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
- bindsym $mod+Shift+c reload
- bindsym $mod+Ctrl+mod1+r restart
- bindsym $mod+Shift+e exec --no-startup-id "i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'"
- # resize window (you can also use the mouse for that)
- mode "resize" {
- 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
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+Ctrl+r mode "resize"
- #==========================================
- # Additional keybindings
- #==========================================
- # Window Switcher
- bindsym $mod+Tab exec rofi -show window
- #==========================================
- # Autostart
- #==========================================
- exec --no-startup-id compton
- exec --no-startup-id nitrogen --restore
- exec --no-startup-id kshare -b
- exec_always --no-startup-id killall polybar; MONITOR=HDMI-0 polybar -r topbar -c ~/.config/polybar/.topbar
- # for pamac:
- exec_always --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &
- # for_window [class="Spotify"] move to workspace $ws10
- assign [class="^discord$"] 10
- assign [class="^Chromium$"] 1
- # exec --no-startup-id spotify
- exec --no-startup-id discord
- exec --no-startup-id chromium
- exec --no-startup-id clipit
- exec --no-startup-id xset r rate 135 30
- exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
- exec --no-startup-id redshiftgui -n
- #==========================================
- # Media
- #==========================================
- bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% #increase sound volume
- bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2% #decrease sound volume
- bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
- bindsym XF86AudioPlay exec playerctl play-pause
- bindsym XF86AudioStop exec playerctl stop
- bindsym XF86AudioNext exec playerctl next
- bindsym XF86AudioPrev exec playerctl previous
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement