Added i3 Config

main
Graham Helton 3 years ago committed by GitHub
parent ade21f8ef8
commit 87e6cf63e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,175 @@
# 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 Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:System San Francisco Display 9
# 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 doesnt 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 /usr/bin/terminator
# kill focused window
bindsym $mod+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec rofi -show run
# 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
# 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+i move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# split in horizontal 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 (stacked, tabbed, toggle split)
#bindsym $mod+Shift+s layout stacking
bindsym $mod+control+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
# focus the child container
#bindsym $mod+d focus child
set $workspace1 "1: Web"
set $workspace2 "2: Terminal"
set $workspace3 "3: File Manager"
set $workspace6 "6: Dashboard"
# switch to workspace
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace $workspace6
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 $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace $workspace6
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
# reload the configuration file
bindsym $mod+shift+u reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+y 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)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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
bindsym Return mode "default"
bindsym Escape mode "default"
}
#bar
#bar {
# position top
# status_command exec i3status
# font xft:Sans 11
#}
exec_always --no-startup-id $HOME/.config/polybar/launch.sh --forest &
bindsym $mod+r mode "resize"
exec --no-startup-id dunst
#Custom Config
#Start Applications in Specific Workspace exec --no-startup-id i3-msg 'workspace $workspace3; exec /usr/bin/discord' #Workspace 3 exec --no-startup-id i3-msg 'workspace $workspace2; exec /usr/bin/brave-browser' #Workspace 2
#exec --no-startup-id i3-msg 'workspace $workspace1; exec /usr/local/bin/alacritty' #Workspace 1
#Colors
client.focused #555555 #555555 #ffffff #2e9ef4 #4eaa5c
#
#Starts Programs
#Makes active window have a border of 2 pixels
for_window [class="^.*"] border pixel 3
#Starts compton using 5ms fade transition when switching workspaces
exec --no-startup-id /usr/bin/compton -b -f -D 2
#Custom Bindings for programs
bindsym Print exec /usr/bin/flameshot gui
bindsym $mod+shift+w exec /usr/bin/firefox
bindsym $mod+shift+d exec /usr/bin/discord
bindsym $mod+shift+t exec --no-startup-id /usr/bin/terminator
bindsym $mod+shift+p exec /usr/bin/peek
bindsym $mod+shift+v exec /usr/bin/pavucontrol
bindsym $mod+shift+b exec /usr/bin/blueman-manager
bindsym $mod+shift+o exec /usr/bin/obsidian
bindsym $mod+shift+s exec /usr/bin/spotify
bindsym $mod+shift+c exec /usr/bin/gnome-calculator
bindsym $mod+shift+m exec /usr/bin/alacritty -e neomutt
###Terminal Applications
bindsym $mod+control+v exec /usr/local/bin/terminator-e vim
bindsym $mod+control+n exec /usr/local/bin/terminator -e newsboat
bindsym $mod+t exec /usr/bin/nautilus
# for_window [class="Thunar"] floating enable
###Uses Feh to set background to background.jpg
exec --no-startup-id feh --bg-scale /home/smores/Pictures/wallpapers/background.jpg
for_window [class="gnome-calculator"] floating enable
# Rofi
bindsym $mod+shift+r exec --no-startup-id rofi -show drun -run-shell-command '{terminal} -e zsh -ic "{cmd} && read"'
# Applets
exec --no-startup-id nm-applet
Loading…
Cancel
Save