Felix Delattre
2359ed01a8
Update .config/helix/config.toml Update .config/helix/languages.toml Update .config/i3/bin/brightness.sh Update .config/i3/bin/exit.sh Update .config/i3/bin/i3.config.keycodes Update .config/i3/bin/i3blocks-battery Update .config/i3/bin/lock.sh Update .config/i3/bin/monitor.sh Update .config/i3/bin/toggletouchpad.sh Update .config/i3/config Update .config/i3/i3blocks.conf Update .config/i3/i3status.conf Update .config/lvim/config.lua Update .config/spacebar/spacebarrc Update .config/sway/bin/brightness.sh Update .config/sway/bin/i3blocks-battery Update .config/sway/bin/toggletouchpad.sh Update .config/sway/blocks.conf Update .config/sway/config Update .config/sway/wallpaper.jpg Update .gitconfig Update .oh-my-zsh/custom/aliases.zsh Update .oh-my-zsh/custom/linux.zsh Update .oh-my-zsh/custom/mac.zsh Update .oh-my-zsh/custom/prompt.zsh Update .skhdrc Update .tmux.conf Update .vimrc Update .zshrc Update backup.sh Update .yabairc
266 lines
8.6 KiB
Text
Executable file
266 lines
8.6 KiB
Text
Executable file
# i3 config file (v4)
|
||
|
||
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:monospace 7
|
||
|
||
# Really small borders and no title for windows
|
||
for_window [class="^."] border pixel 2
|
||
|
||
#hide_edge_borders on smart?..
|
||
hide_edge_borders smart
|
||
|
||
for_window [class=".*"] title_format " %title"
|
||
|
||
# BORDERS ======================
|
||
set $bo #00adee
|
||
set $se #363636
|
||
set $ur #f7003a
|
||
set $dr #bb0020
|
||
set $t1 #888888
|
||
set $t2 #ffffff
|
||
set $bl #000001
|
||
|
||
client.focused $bl $bo $bl $t2
|
||
client.unfocused $bl $se $t1 $se
|
||
client.focused_inactive $bl $bl $bo $se
|
||
client.urgent $ur $ur $bl $ur
|
||
client.background $bl
|
||
|
||
# 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
|
||
|
||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||
floating_modifier $mod
|
||
|
||
# kill focused window
|
||
bindsym $mod+Shift+q kill
|
||
|
||
# start i3-dmenu-desktop (a new program launcher)
|
||
#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||
bindsym $mod+d exec rofi -show run
|
||
|
||
# Terminal shortcut
|
||
bindsym $mod+Return exec i3-sensible-terminal
|
||
|
||
# change focus
|
||
bindsym $mod+Left focus left
|
||
bindsym $mod+Down focus down
|
||
bindsym $mod+Up focus up
|
||
bindsym $mod+Right focus right
|
||
|
||
bindsym $mod+j focus left
|
||
bindsym $mod+k focus down
|
||
bindsym $mod+l focus up
|
||
bindsym $mod+semicolon 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
|
||
|
||
bindsym $mod+Shift+j move left
|
||
bindsym $mod+Shift+k move down
|
||
bindsym $mod+Shift+l move up
|
||
bindsym $mod+Shift+semicolon move right
|
||
|
||
bindsym $mod+Shift+exclam move workspace $workspace1
|
||
bindsym $mod+Shift+at move workspace $workspace2
|
||
bindsym $mod+Shift+numbersign move workspace $workspace3
|
||
bindsym $mod+Shift+dollar move workspace $workspace4
|
||
bindsym $mod+Shift+percent move workspace $workspace5
|
||
bindsym $mod+Shift+asciicircum move workspace $workspace6
|
||
bindsym $mod+Shift+ampersand move workspace $workspace7
|
||
bindsym $mod+Shift+asterisk move workspace $workspace8
|
||
bindsym $mod+Shift+parenleft move workspace $workspace9
|
||
bindsym $mod+Shift+parenright move workspace $workspace10
|
||
|
||
# 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
|
||
|
||
# focus the child container
|
||
#bindsym $mod+d focus child
|
||
|
||
set $workspace1 "1"
|
||
set $workspace2 "2"
|
||
set $workspace3 "3"
|
||
set $workspace4 "4"
|
||
set $workspace5 "5"
|
||
set $workspace6 "6"
|
||
set $workspace7 "7"
|
||
set $workspace8 "8"
|
||
set $workspace9 "9"
|
||
set $workspace10 "10"
|
||
|
||
workspace $workspace1 output LVDS-1
|
||
workspace $workspace2 output LVDS-1
|
||
workspace $workspace3 output LVDS-1
|
||
workspace $workspace4 output LVDS-1
|
||
workspace $workspace5 output LVDS-1
|
||
workspace $workspace6 output LVDS-1
|
||
workspace $workspace7 output LVDS-1
|
||
workspace $workspace8 output LVDS-1
|
||
workspace $workspace9 output LVDS-1
|
||
workspace $workspace10 output LVDS-1
|
||
|
||
# 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 $workspace5
|
||
bindsym $mod+6 workspace $workspace6
|
||
bindsym $mod+7 workspace $workspace7
|
||
bindsym $mod+8 workspace $workspace8
|
||
bindsym $mod+9 workspace $workspace9
|
||
bindsym $mod+0 workspace $workspace10
|
||
|
||
# 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
|
||
|
||
# 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 j resize shrink width 10 px or 10 ppt
|
||
bindsym k resize grow height 10 px or 10 ppt
|
||
bindsym l resize shrink height 10 px or 10 ppt
|
||
bindsym semicolon resize grow width 10 px or 10 ppt
|
||
|
||
# same bindings, but for the arrow keys
|
||
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
|
||
|
||
# back to normal: Enter or Escape
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
|
||
bindsym $mod+r mode "resize"
|
||
|
||
bindsym $mod+Tab workspace next
|
||
bindsym $mod+Shift+Tab workspace prev
|
||
|
||
bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/bin/monitors.sh one
|
||
bindsym $mod+Shift+m exec --no-startup-id ~/.config/i3/bin/monitors.sh two
|
||
|
||
# Move workspaces on monitors
|
||
bindsym Shift+$mod+bracketright move workspace to output right
|
||
bindsym Shift+$mod+bracketleft move workspace to output left
|
||
|
||
# Pulse Audio controls
|
||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
|
||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
|
||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
||
|
||
# Sreen brightness controls
|
||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
|
||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
|
||
#bindsym XF86MonBrightnessUp exec ~/.config/i3/bin/brightness.sh increase # increase screen brightness
|
||
#bindsym XF86MonBrightnessDown exec ~/.config/i3/bin/brightness.sh decrease # decrease screen brightness
|
||
|
||
# Touchpad controls
|
||
bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
|
||
|
||
# Media player controls
|
||
bindsym XF86AudioPlay exec playerctl play
|
||
bindsym XF86AudioPause exec playerctl pause
|
||
bindsym XF86AudioNext exec playerctl next
|
||
bindsym XF86AudioPrev exec playerctl previous
|
||
|
||
# Set background wallpaper
|
||
exec --no-startup-id nm-applet
|
||
exec --no-startup-id blueman-applet
|
||
exec --no-startup-id volumeicon
|
||
exec_always --no-startup-id feh --bg-scale ~/.config/i3/personal/wallpaper.jpg
|
||
|
||
# Logout commands
|
||
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
|
||
mode "$mode_system" {
|
||
bindsym l exec --no-startup-id ~/.config/i3/bin/exit.sh lock, mode "default"
|
||
bindsym e exec --no-startup-id ~/.config/i3/bin/exit.sh logout, mode "default"
|
||
bindsym s exec --no-startup-id ~/.config/i3/bin/exit.sh suspend, mode "default"
|
||
bindsym h exec --no-startup-id ~/.config/i3/bin/exit.sh hibernate, mode "default"
|
||
bindsym r exec --no-startup-id ~/.config/i3/bin/exit.sh reboot, mode "default"
|
||
bindsym Shift+s exec --no-startup-id ~/.config/i3/bin/exit.sht shutdown, mode "default"
|
||
|
||
# back to normal: Enter or Escape
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
|
||
bindsym $mod+Escape mode "$mode_system"
|
||
|
||
|
||
# Use a screen locker
|
||
exec --no-startup-id "xautolock -detectsleep -time 3 -locker 'i3lock -d -c 000000' -notify 30 -notifier \"notify-send -t 2000 'Locking screen in 30 seconds'\""
|
||
|
||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||
# finds out, if available)
|
||
bar {
|
||
colors {
|
||
# Whole color settings
|
||
background #000000
|
||
statusline #ffffff
|
||
separator #666666
|
||
|
||
# Type border background font
|
||
focused_workspace #000000 #000000 #007fff
|
||
active_workspace #333333 #000000 #5f676a
|
||
inactive_workspace #000000 #000000 #888888
|
||
urgent_workspace #aa0000 #990000 #ffffff
|
||
}
|
||
|
||
font pango:Lato-Regular 8
|
||
|
||
# i3bar position
|
||
position top
|
||
|
||
# Debian
|
||
status_command i3blocks -c ~/.config/i3/i3blocks.conf
|
||
#status_command i3status -c ~/.config/i3/i3status.conf
|
||
# Qubes
|
||
# status_command ~/.config/i3/bin/qubes-i3status
|
||
}
|
||
|
||
# Use a screen locker
|
||
exec --no-startup-id "xautolock -detectsleep -time 3 -locker 'i3lock -d -c 000000' -notify 30 -notifier \"notify-send -t 2000 'Locking screen in 30 seconds'\""
|
||
|
||
# Use XFCE services
|
||
exec --no-startup-id xfsettingsd --sm-client-disable &
|
||
|
||
# Use compose key for more characters
|
||
exec --no-startup-id setxkbmap us -variant altgr-intl
|