Skip to content

Instantly share code, notes, and snippets.

@JPenuchot

JPenuchot/i3config

Created Jul 12, 2017
Embed
What would you like to do?
temp - deb i3config
# 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 http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Clear Sans Regular 9
########## Autolaunch ##########
exec --no-startup-id nm-applet
exec --no-startup-id /usr/lib64/polkit-gnome/polkit-gnome-authentication-agent-1
########## Keybindings ##########
# bindsym $mod+Shift+s exec i3lock # Easier locking
### Backlight ###
bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # Increase Brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # Decrease Brightness
### Media Player ###
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioNext exec playerctl next
### Other ###
bindsym Print exec scrot -q 100
### Sound ###
# Raise Volume
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
# Lower Volume
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle-mute # Toggle muting
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec gnome-terminal --hide-menubar
bindsym $mod+n exec caja
# kill focused window
bindsym $mod+Shift+A kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
#bindsym $mod+d exec rofi -show run
#bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "Source Code Pro 18"
# 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 --dmenu='rofi -width 10 -show -matching fuzzy -i -dmenu -font "Clear Sans Regular 18"'
#bindsym $mod+d exec --no-startup-id dmenu -i -fn "Clear Sans"
# change focus
# bindsym $mod+j focus left
# bindsym $mod+k focus down
# bindsym $mod+l focus up
# bindsym $mod+m focus right
# alternatively, you can use the cursor 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+M move right
# alternatively, you can use the cursor 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+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+z 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+q focus parent
# focus the child container
#bindsym $mod+d focus child
set $wp1 "1. Browser"
set $wp2 "2. Editor/Console"
set $wp3 "3. Editor/Console"
set $wp4 "4. Misc"
set $wp5 "5. Misc"
set $wp6 "6. Misc"
set $wp7 "7. Misc"
set $wp8 "8. Music"
set $wp9 "9. Mail"
set $wp10 "10. Chat"
# switch to workspace
bindsym $mod+ampersand workspace $wp1
bindsym $mod+eacute workspace $wp2
bindsym $mod+quotedbl workspace $wp3
bindsym $mod+apostrophe workspace $wp4
bindsym $mod+parenleft workspace $wp5
bindsym $mod+minus workspace $wp6
bindsym $mod+egrave workspace $wp7
bindsym $mod+underscore workspace $wp8
bindsym $mod+ccedilla workspace $wp9
bindsym $mod+agrave workspace $wp10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $wp1
bindsym $mod+Shift+eacute move container to workspace $wp2
bindsym $mod+Shift+3 move container to workspace $wp3
bindsym $mod+Shift+4 move container to workspace $wp4
bindsym $mod+Shift+5 move container to workspace $wp5
bindsym $mod+Shift+6 move container to workspace $wp6
bindsym $mod+Shift+egrave move container to workspace $wp7
bindsym $mod+Shift+8 move container to workspace $wp8
bindsym $mod+Shift+ccedilla move container to workspace $wp9
bindsym $mod+Shift+agrave move container to workspace $wp10
# 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'"
bindsym $mod+Shift+e exec 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
set $Resize_val 1
# 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 j Resize shrink width $Resize_val px or $Resize_val ppt
# bindsym k Resize grow height $Resize_val px or $Resize_val ppt
# bindsym l Resize shrink height $Resize_val px or $Resize_val ppt
# bindsym m Resize grow width $Resize_val px or $Resize_val ppt
# same bindings, but for the arrow keys
bindsym Left Resize shrink width $Resize_val px or $Resize_val ppt
bindsym Down Resize grow height $Resize_val px or $Resize_val ppt
bindsym Up Resize shrink height $Resize_val px or $Resize_val ppt
bindsym Right Resize grow width $Resize_val px or $Resize_val ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "Resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
position bottom
mode hide
colors {
separator #657b83
background #002b36
statusline #839496
focused_workspace #657b83 #657b83 #073642
active_workspace #fdf6e3 #fdf6e3 #839496
inactive_workspace #073642 #073642 #839496
urgent_workspace #d33682 #d33682 #657b83
}
}
########## Styling ##########
client.background #404552
########## i3-gaps integration ##########
for_window [class="^.*"] border pixel 0
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [title="Preferences$"] floating enable
#for_window [floating] border pixel 1
########## Custom stuff ##########
# Background
exec_always --no-startup-id feh --bg-scale /home/penuchot/wallpaper.jpg
# Suspend/Lock
bindsym $mod+l exec i3lock -i /home/penuchot/wallpaper.png
bindsym $mod+m exec i3lock -i /home/penuchot/wallpaper.png && systemctl suspend
bindsym $mod+k exec systemctl suspend
# Touchpad config
exec --no-startup-id xinput set-prop "$touchpad" "libinput Tapping Enabled" 1
exec --no-startup-id xinput set-prop "$touchpad" "libinput Natural Scrolling Enabled" 1
exec --no-startup-id xinput set-prop "$touchpad" "libinput Disable While Typing Enabled" 0
# Misc
exec --no-startup-id redshift
exec --no-startup-id rm -rf /home/penuchot/tmp/*
exec --no-startup-id rm -rf /home/penuchot/tmp/.*
exec --no-startup-id compton --backend glx --glx-no-stencil --blur-background -i 0.9 -f -D 3
exec --no-startup-id unclutter
exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings
# Theme
client.focused #657b83 #657b83 #fdf6e3 #6c71c4
client.focused_inactive #657b83 #657b83 #eee8d5 #6c71c4
client.unfocused #657b83 #657b83 #93a1a1 #586e75
client.urgent #657b83 #657b83 #fdf6e3 #dc322f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.