304 lines
12 KiB
Text
304 lines
12 KiB
Text
# Laptop display
|
|
output 'Unknown 0x06D7 0x00000000' {
|
|
scale 2
|
|
pos 0 0
|
|
subpixel rgb
|
|
bg /home/sijmen/Pictures/Bureaubladachtergronden/ia4x8geen2z31.jpg fill
|
|
}
|
|
|
|
# Default laptop HDMI to right-of
|
|
output HDMI-A-2 pos 1920 0
|
|
|
|
# Screens at parents'
|
|
# Mom left
|
|
output 'Philips Consumer Electronics Company PHL 243V7 0x000034F4' {
|
|
pos -960 -1080
|
|
mode 1920x1080@74.973000Hz
|
|
subpixel rgb
|
|
bg ~/Pictures/Bureaubladachtergronden/road-left.jpg fill
|
|
}
|
|
# Mom right
|
|
output 'Philips Consumer Electronics Company PHL 243V7 0x000034F5' {
|
|
pos 960 -1080
|
|
mode 1920x1080@74.973000Hz
|
|
subpixel rgb
|
|
bg ~/Pictures/Bureaubladachtergronden/road-right.jpg fill
|
|
}
|
|
|
|
# Bit
|
|
output 'Philips Consumer Electronics Company PHL 272B8Q UK01947014710' {
|
|
pos 0 -1440
|
|
subpixel rgb
|
|
}
|
|
|
|
# Home left
|
|
output 'Samsung Electric Company SyncMaster HMAS909662' {
|
|
position 0 700
|
|
subpixel rgb
|
|
bg /home/sijmen/Pictures/malta.jpg fill
|
|
}
|
|
# Home center
|
|
output 'Goldstar Company Ltd LG Ultra HD 0x00008520' {
|
|
scale 1.3
|
|
position 1920 0
|
|
subpixel rgb
|
|
bg /home/sijmen/Pictures/malta.jpg fill
|
|
}
|
|
# Home right
|
|
output 'Philips Consumer Electronics Company PHL 243V5 ZV01602021067' {
|
|
position 4874 700
|
|
subpixel rgb
|
|
bg /home/sijmen/Pictures/malta.jpg fill
|
|
}
|
|
|
|
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:Ubuntu, Ubuntu Nerd Font 11
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
floating_modifier $mod
|
|
|
|
# start a terminal
|
|
bindsym $mod+Return exec --no-startup-id alacritty
|
|
bindsym $mod+Ctrl+Return exec --no-startup-id thunar
|
|
bindsym $mod+Shift+Return exec --no-startup-id code
|
|
|
|
# kill focused window
|
|
bindsym $mod+q exec --no-startup-id ~/.config/i3/cursor.sh kill
|
|
|
|
# start dmenu (a program launcher)
|
|
bindsym $mod+space exec --no-startup-id BEMENU_BACKEND=wayland i3-dmenu-desktop --dmenu='bemenu -i'
|
|
bindsym $mod+alt+w exec --no-startup-id nmcli c up "$(nmcli -m=m c s | grep -B2 'wifi' | grep 'NAME:' | sed 's/NAME: *//' | dmenu)"
|
|
bindsym $mod+alt+u exec --no-startup-id UUID=$(uuidgen) && echo $UUID | wl-copy && notify-send "UUID copied to clipboard" "$UUID"
|
|
|
|
# lock the desktop
|
|
bindsym $mod+l exec --no-startup-id swaylock -c 000000 -i eDP-1:~/Pictures/Bureaubladachtergronden/ip4deFQ-10.jpg -i HDMI-A-2:~/Pictures/Bureaubladachtergronden/ip4deFQ-01.jpg -i DP-1:~/Pictures/Bureaubladachtergronden/ip4deFQ-00.jpg
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
bindsym $mod+Left exec --no-startup-id ~/.config/i3/cursor.sh focus left
|
|
bindsym $mod+Down exec --no-startup-id ~/.config/i3/cursor.sh focus down
|
|
bindsym $mod+Up exec --no-startup-id ~/.config/i3/cursor.sh focus up
|
|
bindsym $mod+Right exec --no-startup-id ~/.config/i3/cursor.sh focus right
|
|
|
|
# move focused window
|
|
bindsym $mod+Shift+j exec --no-startup-id ~/.config/i3/cursor.sh move left
|
|
bindsym $mod+Shift+k exec --no-startup-id ~/.config/i3/cursor.sh move down
|
|
bindsym $mod+Shift+l exec --no-startup-id ~/.config/i3/cursor.sh move up
|
|
bindsym $mod+Shift+semicolon exec --no-startup-id ~/.config/i3/cursor.sh move right
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
bindsym $mod+Shift+Left exec --no-startup-id ~/.config/i3/cursor.sh move left
|
|
bindsym $mod+Shift+Down exec --no-startup-id ~/.config/i3/cursor.sh move down
|
|
bindsym $mod+Shift+Up exec --no-startup-id ~/.config/i3/cursor.sh move up
|
|
bindsym $mod+Shift+Right exec --no-startup-id ~/.config/i3/cursor.sh 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+d focus mode_toggle
|
|
|
|
# focus the parent container
|
|
bindsym $mod+a focus parent
|
|
|
|
# focus the child container
|
|
#bindsym $mod+d focus child
|
|
|
|
# switch to workspace
|
|
bindsym $mod+1 workspace number 1
|
|
bindsym $mod+2 workspace number 2
|
|
bindsym $mod+3 workspace number 3
|
|
bindsym $mod+4 workspace number 4
|
|
bindsym $mod+5 workspace number 5
|
|
bindsym $mod+6 workspace number 6
|
|
bindsym $mod+7 workspace number 7
|
|
bindsym $mod+8 workspace number 8
|
|
bindsym $mod+9 workspace number 9
|
|
bindsym $mod+0 workspace number 10
|
|
bindsym $mod+Ctrl+1 workspace number 11
|
|
bindsym $mod+Ctrl+2 workspace number 12
|
|
bindsym $mod+Ctrl+3 workspace number 13
|
|
bindsym $mod+Ctrl+4 workspace number 14
|
|
bindsym $mod+Ctrl+5 workspace number 15
|
|
bindsym $mod+Ctrl+6 workspace number 16
|
|
bindsym $mod+Ctrl+7 workspace number 17
|
|
bindsym $mod+Ctrl+8 workspace number 18
|
|
bindsym $mod+Ctrl+9 workspace number 19
|
|
bindsym $mod+Ctrl+0 workspace number 20
|
|
|
|
# scroll though workspaces
|
|
bindsym $mod+Tab exec --no-startup-id ~/.config/i3/cursor.sh workspace next
|
|
bindsym $mod+Shift+Tab exec --no-startup-id ~/.config/i3/cursor.sh workspace prev
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace number 1
|
|
bindsym $mod+Shift+2 move container to workspace number 2
|
|
bindsym $mod+Shift+3 move container to workspace number 3
|
|
bindsym $mod+Shift+4 move container to workspace number 4
|
|
bindsym $mod+Shift+5 move container to workspace number 5
|
|
bindsym $mod+Shift+6 move container to workspace number 6
|
|
bindsym $mod+Shift+7 move container to workspace number 7
|
|
bindsym $mod+Shift+8 move container to workspace number 8
|
|
bindsym $mod+Shift+9 move container to workspace number 9
|
|
bindsym $mod+Shift+0 move container to workspace number 10
|
|
bindsym $mod+Ctrl+Shift+1 move container to workspace number 11
|
|
bindsym $mod+Ctrl+Shift+2 move container to workspace number 12
|
|
bindsym $mod+Ctrl+Shift+3 move container to workspace number 13
|
|
bindsym $mod+Ctrl+Shift+4 move container to workspace number 14
|
|
bindsym $mod+Ctrl+Shift+5 move container to workspace number 15
|
|
bindsym $mod+Ctrl+Shift+6 move container to workspace number 16
|
|
bindsym $mod+Ctrl+Shift+7 move container to workspace number 17
|
|
bindsym $mod+Ctrl+Shift+8 move container to workspace number 18
|
|
bindsym $mod+Ctrl+Shift+9 move container to workspace number 19
|
|
bindsym $mod+Ctrl+Shift+0 move container to workspace number 20
|
|
|
|
bindsym $mod+Ctrl+Left move workspace output left
|
|
bindsym $mod+Ctrl+Down move workspace output down
|
|
bindsym $mod+Ctrl+Up move workspace output up
|
|
bindsym $mod+Ctrl+Right move workspace output right
|
|
|
|
bindsym $mod+Ctrl+f exec --no-startup-id "swaymsg workspace $(python ~/.config/i3/next-free.py)"
|
|
bindsym $mod+Ctrl+Shift+f exec --no-startup-id "swaymsg move container to workspace number $(python ~/.config/i3/next-free.py)"
|
|
bindsym $mod+Ctrl+c exec --no-startup-id "python ~/.config/i3/compact.py"
|
|
|
|
bindsym $mod+Shift+c reload
|
|
bindsym $mod+Shift+r restart
|
|
bindsym $mod+Shift+e exec --no-startup-id "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'"
|
|
|
|
# Media player controls
|
|
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 ~/.config/i3/backlight.fish -inc 5
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id ~/.config/i3/backlight.fish -dec 5
|
|
bindsym Shift+XF86MonBrightnessUp exec --no-startup-id ~/.config/i3/backlight.fish -inc 2
|
|
bindsym Shift+XF86MonBrightnessDown exec --no-startup-id ~/.config/i3/backlight.fish -dec 2
|
|
|
|
bindsym $mod+Alt+Up exec --no-startup-id ~/.config/i3/backlight.fish +20
|
|
bindsym $mod+Alt+Down exec --no-startup-id ~/.config/i3/backlight.fish -20
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/volume.fish -i 5
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/volume.fish -d 5
|
|
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/volume.fish -i 2
|
|
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/volume.fish -d 2
|
|
|
|
bindsym XF86AudioMute exec --no-startup-id ~/.config/i3/volume.fish -t
|
|
bindsym Shift+XF86AudioMute exec --no-startup-id pavucontrol
|
|
|
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle
|
|
|
|
bindsym XF86Calculator exec --no-startup-id gnome-calculator
|
|
bindsym Print exec --no-startup-id grim -g "$(slurp)" - | wl-copy && notify-send --urgency=low "Screenshot taken"
|
|
bindsym Ctrl+Print exec --no-startup-id grim - | wl-copy && notify-send --urgency=low "Screenshot taken"
|
|
bindsym Shift+Print exec --no-startup-id grim -g "$(slurp)" /tmp/screenshot.png && wl-copy "/tmp/screenshot.png" && notify-send --urgency=low "Screenshot taken"
|
|
bindsym $mod+Shift+s exec --no-startup-id grim -g "$(slurp)" - | wl-copy && notify-send --urgency=low "Screenshot taken"
|
|
bindsym $mod+Print exec --no-startup-id $HOME/.config/i3/screenrecord.sh
|
|
|
|
for_window [class="^jetbrains-toolbox$"] floating enable
|
|
for_window [app_id="^gnome-calculator$"] floating enable
|
|
for_window [app_id="^qemu$"] floating enable
|
|
for_window [class="^jetbrains-" title="^win0$"] floating enable
|
|
for_window [title="^Select Folder$"] floating enable
|
|
|
|
# Light theme
|
|
## class border backgr. text indic. child_border
|
|
#client.focused #fafafa #607d8b #ffffff #b0bec5 #4db6ac
|
|
#client.focused_inactive #fafafa #37474f #ffffff #78909c #e0f2f1
|
|
#client.unfocused #fafafa #37474f #ffffff #78909c #e0f2f1
|
|
#client.urgent #fafafa #ff5722 #ffffff #ffab91 #bf360c
|
|
|
|
# Dark theme
|
|
# class border backgr. text indic. child_border
|
|
client.focused #5294e2 #5294e2 #ffffff #b0bec5 #5294e2
|
|
client.focused_inactive #2b2e39 #2f343f #ffffff #78909c #2b2e39
|
|
client.unfocused #2b2e39 #2f343f #ffffff #78909c #2b2e39
|
|
client.urgent #2b2e39 #ff5722 #ffffff #ffab91 #bf360c
|
|
|
|
# resize window (you can also use the mouse for that)
|
|
mode "resize" {
|
|
# These bindings trigger as soon as you enter the resize mode
|
|
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"
|
|
|
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
|
# finds out, if available)
|
|
bar {
|
|
status_command i3status
|
|
icon_theme suru
|
|
colors {
|
|
# Light theme
|
|
#background #fafafa
|
|
#statusline #212121
|
|
#separator #424242
|
|
|
|
#focused_workspace #fafafa #009688 #ffffff
|
|
#inactive_workspace #fafafa #fafafa #212121
|
|
#active_workspace #fafafa #424242 #ffffff
|
|
#urgent_workspace #fafafa #b71c1c #ffffff
|
|
#binding_mode #fafafa #b71c1c #ffffff
|
|
|
|
# Dark theme
|
|
background #292b2e
|
|
statusline #dddddd
|
|
separator #292b2e
|
|
|
|
focused_workspace #292b2e #009688 #dddddd
|
|
inactive_workspace #292b2e #292b2e #dddddd
|
|
active_workspace #292b2e #424242 #dddddd
|
|
urgent_workspace #292b2e #b71c1c #dddddd
|
|
binding_mode #292b2e #b71c1c #dddddd
|
|
}
|
|
}
|
|
|
|
focus_follows_mouse no
|
|
for_window [class="^.*"] border pixel 2
|
|
gaps inner 0
|
|
|
|
exec --no-startup-id sh -c "PYTHONUNBUFFERED=1 python $HOME/.config/i3/icons.py 2>&1 > /tmp/icons.log"
|
|
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
|
|
input "1739:0:Synaptics_TM3276-031" {
|
|
dwt disabled
|
|
natural_scroll enabled
|
|
}
|
|
|
|
input "2:10:TPPS/2_IBM_TrackPoint" {
|
|
pointer_accel 0.4
|
|
}
|
|
|
|
input type:keyboard {
|
|
xkb_options caps:backspace,compose:ralt
|
|
xkb_layout us
|
|
}
|