Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file has been auto-generated by i3-config-wizard(1).
- # It will not be overwritten, so edit it as you like.
- #
- # Should you change your keyboard layout some time, delete
- # this file and re-run i3-config-wizard(1).
- #
- # i3 config file (v4)
- #
- # Please see https://i3wm.org/docs/userguide.html for a complete reference!
- set $mod Mod4
- set $shutdown shutdown -h now
- set $reboot shutdown -r now
- set $term alacritty
- # Font for window titles. Will also be used by the bar unless a different font
- # is used in the bar {} block below.
- font pango:FiraCode Nerd Font 12
- # This font is widely installed, provides lots of unicode glyphs, right-to-left
- # text rendering and scalability on retina/hidpi displays (thanks to pango).
- #font pango:DejaVu Sans Mono 8
- # Before i3 v4.8, we used to recommend this one as the default:
- # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
- # The font above is very space-efficient, that is, it looks good, sharp and
- # clear in small sizes. However, its unicode glyph coverage is limited, the old
- # X core fonts rendering does not support right-to-left and this being a bitmap
- # font, it doesn’t scale on retina/hidpi displays.
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- bindsym $mod+Return exec alacritty
- # kill focused window
- bindsym $mod+Shift+q kill
- # i3-gaps stuff
- gaps inner 10
- gaps outer -2
- new_window pixel 2
- smart_borders on
- # start dmenu (a program launcher)
- bindsym $mod+d exec --no-startup-id dmenu_run -c -l 10
- # change focus
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
- # move 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 horizontal orientation
- bindsym $mod+o split h;exec notify-send "Split Horizontal" -t 1500
- # split in vertical orientation
- bindsym $mod+v split v;exec notify-send "Split Vertical" -t 1500
- # 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
- floating_minimum_size 2000 x 1600
- floating_maximum_size 3840 x 2160
- # change focus between tiling / floating windows
- bindsym $mod+space focus mode_toggle
- # focus the parent container
- #bindsym $mod+a focus parent
- # focus the child container
- #bindsym $mod+c focus child
- # Define names for default workspaces for which we configure key bindings later on.
- # We use variables to avoid repeating the names in multiple places.
- 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
- # 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
- # assign programs to certain workspaces
- assign [class="firefox"] $ws1
- assign [class="Alacritty"] $ws2
- assign [class="Code"] $ws3
- assign [class="discord"] $ws4
- # 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 --no-startup-id prompt "Exit i3?" "i3-msg exit"
- # resize window (you can also use the mouse for that)
- mode "resize" {
- # These bindings trigger as soon as you enter the resize mode
- # Pressing left will shrink the window’s width.
- # Pressing right will grow the window’s width.
- # Pressing up will shrink the window’s height.
- # Pressing down will grow the window’s height.
- bindsym h resize shrink width 10 px or 10 ppt
- bindsym j resize grow height 10 px or 10 ppt
- bindsym k resize shrink height 10 px or 10 ppt
- bindsym l resize grow width 10 px or 10 ppt
- # back to normal: Enter or Escape or $mod+r
- bindsym Return mode "default"
- bindsym Escape mode "default"
- bindsym $mod+r mode "default"
- }
- bindsym $mod+r mode "resize"
- bindsym --release $mod+Shift+Print exec "flameshot full -c -p ~/Pictures/screenshots"
- bindsym --release Print exec "flameshot full -c"
- bindsym --release $mod+Print exec "flameshot gui"
- bindsym --release XF86MonBrightnessUp exec xbacklight -inc 10
- bindsym --release XF86MonBrightnessDown exec xbacklight -dec 10
- bindsym --release $mod+shift+m exec amixer -c 0 set Master 0%
- bindsym --release XF86AudioLowerVolume exec amixer -c 0 set Master 5%-
- bindsym --release XF86AudioRaiseVolume exec amixer -c 0 set Master 5%+
- bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
- bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"
- focus_follows_mouse no
- exec --no-startup-id flameshot
- exec --no-startup-id discord
- exec_always --no-startup-id feh --bg-scale Backgrounds/bg.jpg
- exec_always --no-startup-id picom
- exec_always --no-startup-id $HOME/.config/polybar/launch.sh
- exec --no-startup-id setxkbmap -option caps:escape
- exec --no-startup-id dunst
- ###################################
- # Scratch pads
- ###################################
- for_window [instance="dropdown"] floating enable
- for_window [instance="dropdown"] resize set 2100 1700
- for_window [instance="dropdown"] move scratchpad
- for_window [instance="dropdown"] border pixel 5
- exec --no-startup-id $term --class dropdown
- bindsym $mod+i [instance="dropdown"] scratchpad show; [instance="dropdown"] move position center
- for_window [instance="music"] floating enable
- for_window [instance="music"] resize set 2800 1700
- for_window [instance="music"] move scratchpad
- for_window [instance="music"] border pixel 5
- exec --no-startup-id $term --class music -e spt
- bindsym $mod+s [instance="music"] scratchpad show; [instance="music"] move position center
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement