Last active
February 10, 2021 21:10
-
-
Save jm42/e0af30dcb0d9a8e487ca5d92289bab4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
# Autostart | |
exec --no-startup-id nitrogen --restore & | |
exec --no-startup-id picom -CGb | |
# 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 8 | |
# 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 | |
# 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:Noto Sans Regular 10 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# Configure border style <normal|1pixel|pixel xx|none|pixel> | |
new_window 1pixel | |
new_float normal | |
# Set inner/outer gaps | |
gaps inner 8 | |
gaps outer 4 | |
# Set floating (nontiling) for special apps | |
for_window [window_role="pop-up"] floating enable | |
for_window [window_role="task_dialog"] floating enable | |
for_window [class="Pavucontrol" instance="pavucontrol"] floating enable | |
for_window [class="qt5ct" instance="qt5ct"] floating enable | |
for_window [class="yakuake"] floating enable | |
for_window [class="plasmashell"] floating enable | |
for_window [class="Plasma"] floating enable | |
for_window [title="plasma-desktop"] floating enable | |
for_window [class="krunner"] floating enable | |
for_window [class="Kmix"] floating enable | |
for_window [class="Klipper"] floating enable | |
for_window [class="Plasmoidviewer"] floating enable | |
# Automatic set focus new window if it opens on another workspace then the current | |
for_window [class=Konsole] focus | |
# Position notifications on the bottom right | |
for_window [class="plasmashell" window_type="notification"] border none, move right 700px, move down 450px | |
# Don’t let notifications and non-interactive pop-up windows steal focus | |
no_focus [class="plasmashell" window_type="notification"] | |
no_focus [class="plasmashell" window_type="on_screen_display"] | |
# Kill plasma window | |
for_window [title="Desktop — Plasma"] kill | |
# Kill focused window | |
bindsym $mod+Shift+q kill | |
# change focus | |
bindsym $mod+j focus left | |
bindsym $mod+k focus down | |
bindsym $mod+l focus up | |
bindsym $mod+semicolon 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+semicolon 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+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 | |
# 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 $mod+1 workspace number $ws1 | |
bindsym $mod+2 workspace number $ws2 | |
bindsym $mod+3 workspace number $ws3 | |
bindsym $mod+4 workspace number $ws4 | |
bindsym $mod+5 workspace number $ws5 | |
bindsym $mod+6 workspace number $ws6 | |
bindsym $mod+7 workspace number $ws7 | |
bindsym $mod+8 workspace number $ws8 | |
bindsym $mod+9 workspace number $ws9 | |
bindsym $mod+0 workspace number $ws10 | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace number $ws1 | |
bindsym $mod+Shift+2 move container to workspace number $ws2 | |
bindsym $mod+Shift+3 move container to workspace number $ws3 | |
bindsym $mod+Shift+4 move container to workspace number $ws4 | |
bindsym $mod+Shift+5 move container to workspace number $ws5 | |
bindsym $mod+Shift+6 move container to workspace number $ws6 | |
bindsym $mod+Shift+7 move container to workspace number $ws7 | |
bindsym $mod+Shift+8 move container to workspace number $ws8 | |
bindsym $mod+Shift+9 move container to workspace number $ws9 | |
bindsym $mod+Shift+0 move container to workspace number $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 | |
# 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'" | |
# Define colors variables | |
set $darkbluetrans #08052be6 | |
set $darkblue #08052b | |
set $lightblue #5294e2 | |
set $urgentred #e53935 | |
set $white #ffffff | |
set $black #000000 | |
set $purple #e345ff | |
set $darkgrey #383c4a | |
set $grey #b0b5bd | |
set $mediumgrey #8b8b8b | |
set $yellowbrown #e1b700 | |
# Define colors for windows | |
#class border bground text indicator child_border | |
client.focused $lightblue $darkblue $white $purple $mediumgrey | |
client.unfocused $darkblue $darkblue $grey $purple $darkgrey | |
client.focused_inactive $darkblue $darkblue $grey $purple $black | |
client.urgent $urgentred $urgentred $white $purple $yellowbrown | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment