Files
dots/files/.config/i3/config
2021-12-28 14:29:51 +01:00

143 lines
3.8 KiB
Plaintext

set $mod Mod4
font pango:JuliaMono 12
floating_modifier $mod
# applications
bindsym $mod+Return exec --no-startup-id alacritty
bindsym $mod+d exec --no-startup-id rofi -show drun
bindsym $mod+Shift+s exec --no-startup-id flameshot gui
# audio and brightness
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 1%-
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 1%+
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10
# kill focused window
bindsym $mod+Shift+BackSpace kill
# lock
bindsym $mod+Control+BackSpace exec --no-startup-id xlock -mode maze
# 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+v split h
# split in vertical orientation
bindsym $mod+s split v
# enable stacked
bindsym $mod+a layout stacking
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# workspace layout
workspace_layout stacked
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# workspaces
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 $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# 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
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# 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
# titlebar
title_align center
new_window 1pixel
# colors
set $white "#ffffff"
set $black "#5c6773"
set $dblack "#000000"
set $green "#a6cc70"
set $red "#ff3333"
set $blue "#55b4d4"
set $yellow "#e7c547"
# class border backgr. text indicator child_border
client.focused $green $green $black $green $black
client.focused_inactive $yellow $yellow $black $yellow $black
client.unfocused $white $white $black $white $black
client.urgent $red $red $white $red $black
# i3 bar
# flaoting on start
for_window [class="Nautilus"] floating enable
for_window [class="Pavucontrol"] floating enable
# border
hide_edge_borders smart
for_window [class="^.*"] border pixel 0
# bar
exec --no-startup-id polybar -r bar
# gaps
gaps inner 10
# wallpaper and screen
exec --no-startup-id /home/marc/.local/bin/screen.sh
# startup
exec --no-startup-id nm-applet
exec --no-startup-id keepassxc
exec --no-startup-id seafile-applet
exec --no-startup-id fcitx5
exec --no-startup-id picom --backend glx --no-vsync