Definition
the i3 Window Manager is a manual tiling manager for .
Configuration
i3 core configuration
# --- This config is written in org mode ---
# 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 $mod Mod4
font pango:Maple Mono NF 12
exec --no-startup-id xset s off -dpms
exec_always --no-startup-id xrandr --output HDMI-1 --mode 1920x1080 --rate 60 --pos 0x0 --rotate normal --output DP-1 --primary --mode 1920x1080 --rate 144 --pos 1920x0 --rotate normal --output DP-2 --off --output DP-2 --mode 1920x1080 --rate 60 --pos 3840x0 --rotate normal --output DP-3 --off --output DP-4 --off --output DP-5 --off
# Bestehende Konfiguration
exec_always --no-startup-id picom -b
exec_always --no-startup-id i3wsr
exec_always xborders --border-radius 14 --border-width 4 --border-mode "outside" --positive-x-offset 0 --positive-y-offset 0 --negative-x-offset 0 --negative-y-offset 0 -b
exec --no-startup-id dex --autostart --environment i3
exec pkill panel
exec blueman-applet
exec_always --no-startup-id feh --bg-fill "/home/sakura/org-roam/files/pastel lilac wallpapers desktop/pastel lilac wallpaper 1 desktop or tablet.png" "/home/sakura/org-roam/files/pastel lilac wallpapers desktop/pastel lilac wallpaper 8 desktop or tablet.png" "/home/sakura/org-roam/files/pastel lilac wallpapers desktop/pastel lilac wallpaper 9 desktop or tablet.png"
exec_always nohup xborders --border-radius 14 --border-width 4 --border-mode "outside" --positive-x-offset 0 --positive-y-offset 0 --negative-x-offset 0 --negative-y-offset 0 &
exec_always --no-startup-id /home/sakura/gomuks_web/gomuks &
for_window [class="^.*"] border pixel 0
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
bindsym Control+Mod1+l exec "i3lock-fancy"
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec emacsclient -a '' -c
bindsym $mod+p exec rofi-pass --roorofi-passt ~/.password-store/
bindsym $mod+Print exec flameshot gui
# kill focused window
bindsym $mod+q kill
gaps inner 10
gaps outer 2
# start dmenu (a program launcher)
bindsym $mod+space exec --no-startup-id rofi -show drun
# change focus
bindsym $mod+H focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l 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+z 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+f 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
# Definiere Workspace-Namen mit Icons
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:"
# Wechsel zu 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
# Workspaces zu Monitoren zuweisen
# 1-5 gehen an DP-1
workspace $ws1 output DP-1
workspace $ws2 output DP-1
workspace $ws3 output DP-1
workspace $ws4 output DP-1
workspace $ws5 output DP-1
# 6-7 gehen an DP-2
workspace $ws6 output DP-2
workspace $ws7 output DP-2
# 8-9 gehen an HDMI-1
workspace $ws8 output HDMI-1
workspace $ws9 output HDMI-1
# 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'"
# 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 or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
# tray_output DP-1
position top
status_command i3status-rs ~/.config/i3status-rust/config-bottom.toml
colors {
separator #666666
background #222222
statusline #dddddd
focused_workspace #0088CC #0088CC #ffffff
active_workspace #333333 #333333 #ffffff
inactive_workspace #333333 #333333 #888888
urgent_workspace #2f343a #900000 #ffffff
}
}
for_window [window_role="pop-up"] floating enable
i3-blocks-rust configuration
this file is for and the .
# --- THIS FILE IS WRITTEN IN ORG MODE ---
{
config,
pkgs,
...
}:
{
home.packages = with pkgs; [ i3status-rust xborders ];
programs.i3status-rust = {
enable = true;
bars = {
bottom = {
blocks = [
{
block = "cpu";
interval = 1;
format = " $icon $utilization ";
theme_overrides = {
idle_bg = "#d20f39";
};
}
{
block = "memory";
format = " $icon $mem_used_percents ";
format_alt = " $icon $swap_used_percents ";
theme_overrides = {
idle_bg = "#7287fd";
};
}
{
block = "sound";
# #8839ef
theme_overrides = {
idle_bg = "#8839ef";
};
}
{
block = "time";
interval = 1;
format = " $icon $timestamp.datetime(f:'%H:%M:%S %d.%m.%Y') ";
theme_overrides = {
idle_bg = "#1e66f5";
};
}
{
block = "notify";
theme_overrides = {
idle_bg = "#fe640b";
};
driver = "dunst";
format = " $icon {($notification_count.eng(w:1)) |}";
click = [
{
button = "left";
action = "show";
}
{
button = "right";
action = "toggle_paused";
}
];
}
{
block = "weather";
interval = 600; # Standard-Updateintervall
format = " $icon $weather $temp ";
theme_overrides = {
idle_bg = "#df8e1d";
};
service = {
name = "metno"; # Korrekter Dienstname laut Dokumentation
coordinates = [ "53.250000" "10.350000" ];
lang = "en"; # Optional, Standardwert ist 'en'
};
autolocate_interval = "once"; # IP-Abruf nur beim Start
}
# {
# block = "notmuch";
# maildir = "~/Maildir";
# }
];
settings = {
theme = {
theme = "dracula";
overrides = {
# idle_bg = { in = "warning_fg"; };
good_fg = {
link = "warning_fg";
};
good_bg = {
link = "warning_bg";
};
warning_fg = {
link = "good_fg";
};
warning_bg = {
link = "good_bg";
};
};
};
icons = {
icons = "awesome5";
};
};
};
};
};
}
i3lock configuration
also set this command for xfce to use i3lock
xfconf-query -c xfce4-session -p /general/LockCommand -t string -s i3lock –create
# --- THIS FILE IS WRITTEN IN ORG MODE ---
{pkgs, ...}:
{
programs.i3lock = {
enable = true;
package = pkgs.i3lock-fancy;
};
}
Picom configuration
### --- this file was generated in org-mode
### Shadow }
shadow = true;
shadow-radius = 12;
shadow-opacity = 0.75;
shadow-offset-x = -12;
shadow-offset-y = -12;
shadow-color = "#000000";
### Shadow }
### Fading }
fading = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-delta = 3;
no-fading-openclose = false;
no-fading-destroyed-argb = true;
## Fading }
## Opacity }
inactive-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
active-opacity = 1.0;
inactive-dim = 0.0;
focus-exclude = [
"class_g ?= 'dmenu'",
"class_g ?= 'rofi'"
];
### Opacity }
### Blurring }
blur: {
method = "dual_kawase";
strength = 3;
deviation = 1.0;
kernel = "11x11gaussian";
}
blur-background = false;
blur-background-frame = true;
blur-background-fixed = true;
blur-background-exclude = [
"_GTK_FRAME_EXTENTS@:c",
"class_g ?= 'rofi'",
"role = 'xborder'",
];
### Blurring }
### Corners }
corner-radius = 14;
detect-rounded-corners = true;
rounded-corners-exclude = [
"window_type = 'menu'",
"window_type = 'dropdown_menu'",
"window_type = 'popup_menu'",
"window_type = 'utility'",
"class_g = 'dmenu'",
"class_g ?= 'i3bar'",
];
### Corners }
### General Settings }
backend = "glx";
daemon = false;
vsync = true;
dbus = false;
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-client-opacity = true;
# refresh-rate = 0;
unredir-if-possible = true;
unredir-if-possible-delay = 0
detect-transient = true;
detect-client-leader = true;
resize-damage = 1;
glx-no-stencil = true;
use-damage = true;
transparent-clipping = false;
log-level = "warn";
log-file = "~/.cache/picom.log";
show-all-xerrors = true;
wintypes: {
tooltip = { fade = true; shadow = true; focus = false; };
normal = { shadow = true; };
dock = { shadow = true; };
dnd = { shadow = true; };
popup_menu = { shadow = true; focus = false; opacity = 0.90; };
dropdown_menu = { shadow = true; focus = false; };
above = { shadow = true; };
splash = { shadow = true; };
utility = { focus = false; shadow = true; blur-background = true; };
notification = { shadow = true; };
desktop = { shadow = true; blur-background = true; };
menu = { focus = false; };
dialog = { shadow = true; };
};
active-opacity = 0.90;
# Default opacity of inactive windows.
inactive-opacity = 0.70;
### General Settings }
Plugins
- GitHub - roosta/i3wsr: A dynamic workspace renamer for i3 and Sway that updat…