This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/.old/i3/config

206 lines
7.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Swy7ch' config file for i3
# 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 $super Mod4
set $alt 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: FuraCode Nerd Font Mono 10
# 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+$super to drag floating windows to their wanted position
floating_modifier $super
# Execute at launch
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec_always --no-startup-id feh --bg-fill $HOME/.wallpaper.png
exec --no-startup-id compton --config $HOME/.config/compton/compton.conf
exec --no-startup-id xss-lock -- i3lock -n -i $HOME/.lockscreen.png
exec --no-startup-id redshift
exec --no-startup-id pamixer --set-volume 40
exec --no-startup-id setxkbmap 'fr(oss)'
# Trackpad settings
exec --no-startup-id xinput set-prop 13 'libinput Tapping Enabled' 1
exec --no-startup-id xinput set-prop 13 'libinput Natural Scrolling En abled' 1
# exec_always xinput --no-startup-id set-prop 13 'libinput Disable While Typing Enabled' 1
# Mouse acceleration
exec --no-startup-id xinput set-prop 13 'libinput Accel Speed' 0.4
# Common app launchers
bindsym $super+Return exec st;focus
bindsym $super+Shift+Return workspace 1;exec st;focus
bindsym $super+Shift+i workspace 1;exec st -e gotop;focus
bindsym $super+Shift+f workspace 1;exec st -e ranger;focus
bindsym $super+Shift+w exec qutebrowser;workspace 2; focus
bindsym $super+$alt+w exec firefox-beta;workspace 2;focus
bindsym $super+Shift+m workspace 2;exec st -e neomutt;focus
bindsym $super+Shift+n exec firefox-beta -private-window;workspace 2;focus
bindsym $super+Shift+c exec whatsie;workspace 4;focus
bindsym $super+Shift+p exec pavucontrol;workspace 5;focus
bindsym $super+Shift+s exec spotify;workspace 5; focus
# Control the audio
bindsym F3 exec pamixer --increase 7
bindsym F2 exec pamixer --decrease 7
bindsym F1 exec pamixer --toggle-mute
# Control display backlight
bindsym F6 exec xbacklight -inc 5
bindsym F5 exec xbacklight -dec 5
# kill focused window
bindsym $super+w kill
# start dmenu (a program launcher)
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-supere -columns 3 -font 'FuraCode Nerd Font Mono 12' -theme purple
# 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 $super+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $super+h focus left
bindsym $super+j focus down
bindsym $super+k focus up
bindsym $super+l focus right
# move focused window
bindsym $super+Shift+h move left
bindsym $super+Shift+j move down
bindsym $super+Shift+k move up
bindsym $super+Shift+l move right
# split in horizontal orientation
bindsym $super+c split h
# split in vertical orientation
bindsym $super+v split v
# enter fullscreen supere for the focused container
bindsym $super+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $super+s layout stacking
bindsym $super+z layout tabbed
bindsym $super+e layout toggle split
# toggle tiling / floating
bindsym $super+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $super+space focus mode_toggle
# 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"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $super+1 workspace $ws1
bindsym $super+2 workspace $ws2
bindsym $super+3 workspace $ws3
bindsym $super+4 workspace $ws4
bindsym $super+5 workspace $ws5
bindsym $super+6 workspace $ws6
bindsym $super+7 workspace $ws7
bindsym $super+8 workspace $ws8
bindsym $super+9 workspace $ws9
bindsym $super+0 workspace $ws10
# move focused container to workspace
bindsym $super+Shift+1 move container to workspace $ws1
bindsym $super+Shift+2 move container to workspace $ws2
bindsym $super+Shift+3 move container to workspace $ws3
bindsym $super+Shift+4 move container to workspace $ws4
bindsym $super+Shift+5 move container to workspace $ws5
bindsym $super+Shift+6 move container to workspace $ws6
bindsym $super+Shift+7 move container to workspace $ws7
bindsym $super+Shift+8 move container to workspace $ws8
bindsym $super+Shift+9 move container to workspace $ws9
bindsym $super+Shift+0 move container to workspace $ws10
# reload the configuration file
bindsym $super+Control+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $super+q exec "i3-nagbar -t warning -m 'Do you want to exit i3?' -B 'Yes, exit i3' 'i3-msg exit'"
# lock the screen
bindsym $super+Control+l exec i3lock -n -i $HOME/Images/red_rocks.png
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize supere
# 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 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 m 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 or $super+r
bindsym Return supere "default"
bindsym Escape supere "default"
bindsym $super+r supere "default"
}
bindsym $super+r mode "resize"
# window rules, you can find the window class using xprop
for_window [class=".*"] border pixel 3
assign [class="Firefox Beta|Qutebrowser"] 2
assign [class="Inkscape"] 3
assign [class="Transmission"] 4
assign [class="Pavucontrol|Spotify|mpv"] 5
# colour of border, background, text, indicator, and child_border
client.focused #bf616a #2f343f #d8dee8 #b16286 #83a598
client.focused_inactive #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.unfocused #2f343f #2f343f #d8dee8 #2f343f #427b58
client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.background #2f343f
# Gaps
gaps inner 5
gaps outer 5