This commit is contained in:
2025-11-17 00:20:30 +01:00
parent 9250ff7d06
commit 2a6d00de22
3 changed files with 29 additions and 118 deletions

View File

@@ -14,23 +14,21 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
set $term foot
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $laptop_kb 1:1:AT_Translated_Set_2_keyboard
set $home_kb 5215:485:SEMICO_USB_Keyboard
set $menu wmenu-run
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sakura.jpg fill
output * bg /usr/share/backgrounds/user/10-15-Day.jpg fill
#output * bg /usr/share/backgrounds/sumi.png fill
output "eDP-1" scale 1.25
#
# Example configuration:
#
@@ -108,7 +106,7 @@ output * bg /usr/share/backgrounds/sakura.jpg fill
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move rightset $laptop_kb 1:1:AT_Translated_Set_2_keyboard
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@@ -118,7 +116,6 @@ output * bg /usr/share/backgrounds/sakura.jpg fill
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
@@ -129,7 +126,6 @@ output * bg /usr/share/backgrounds/sakura.jpg fill
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# 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
@@ -143,60 +139,6 @@ output * bg /usr/share/backgrounds/sakura.jpg fill
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
# Same bindings for the laptop keyboard (with azerty layout)
bindsym --input-device=$laptop_kb $mod+ampersand workspace number 1
bindsym --input-device=$laptop_kb $mod+eacute workspace number 2
bindsym --input-device=$laptop_kb $mod+quotedbl workspace number 3
bindsym --input-device=$laptop_kb $mod+apostrophe workspace number 4
bindsym --input-device=$laptop_kb $mod+parenleft workspace number 5
bindsym --input-device=$laptop_kb $mod+section workspace number 6
bindsym --input-device=$laptop_kb $mod+egrave workspace number 7
bindsym --input-device=$laptop_kb $mod+exclam workspace number 8
bindsym --input-device=$laptop_kb $mod+ccedilla workspace number 9
bindsym --input-device=$laptop_kb $mod+agrave workspace number 10
bindsym --input-device=$laptop_kb $mod+Shift+ampersand move container to workspace number 1
bindsym --input-device=$laptop_kb $mod+Shift+eacute move container to workspace number 2
bindsym --input-device=$laptop_kb $mod+Shift+quotedbl move container to workspace number 3
bindsym --input-device=$laptop_kb $mod+Shift+apostrophe move container to workspace number 4
bindsym --input-device=$laptop_kb $mod+Shift+parenleft move container to workspace number 5
bindsym --input-device=$laptop_kb $mod+Shift+section move container to workspace number 6
bindsym --input-device=$laptop_kb $mod+Shift+egrave move container to workspace number 7
bindsym --input-device=$laptop_kb $mod+Shift+exclam move container to workspace number 8
bindsym --input-device=$laptop_kb $mod+Shift+ccedilla move container to workspace number 9
bindsym --input-device=$laptop_kb $mod+Shift+agrave move container to workspace number 10
# Workaround for https://github.com/swaywm/sway/issues/6961 (from https://github.com/swaywm/sway/issues/4955)
# Same bindings for the laptop keyboard (with azerty layout)
bindsym --input-device=$home_kb $mod+ampersand workspace number 1
bindsym --input-device=$home_kb $mod+eacute workspace number 2
bindsym --input-device=$home_kb $mod+quotedbl workspace number 3
bindsym --input-device=$home_kb $mod+apostrophe workspace number 4
bindsym --input-device=$home_kb $mod+parenleft workspace number 5
bindsym --input-device=$home_kb $mod+section workspace number 6
bindsym --input-device=$home_kb $mod+egrave workspace number 7
bindsym --input-device=$home_kb $mod+exclam workspace number 8
bindsym --input-device=$home_kb $mod+ccedilla workspace number 9
bindsym --input-device=$home_kb $mod+agrave workspace number 10
bindsym --input-device=$home_kb $mod+Shift+ampersand move container to workspace number 1
bindsym --input-device=$home_kb $mod+Shift+eacute move container to workspace number 2
bindsym --input-device=$home_kb $mod+Shift+quotedbl move container to workspace number 3
bindsym --input-device=$home_kb $mod+Shift+apostrophe move container to workspace number 4
bindsym --input-device=$home_kb $mod+Shift+parenleft move container to workspace number 5
bindsym --input-device=$home_kb $mod+Shift+section move container to workspace number 6
bindsym --input-device=$home_kb $mod+Shift+egrave move container to workspace number 7
bindsym --input-device=$home_kb $mod+Shift+exclam move container to workspace number 8
bindsym --input-device=$home_kb $mod+Shift+ccedilla move container to workspace number 9
bindsym --input-device=$home_kb $mod+Shift+agrave move container to workspace number 10
seat * keyboard_grouping none
#
# Layout stuff:
#
@@ -254,7 +196,7 @@ mode "resize" {
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return modee "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
@@ -273,7 +215,10 @@ bar {
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
focused_workspace #4c7899 #285577 #ffffff
active_workspace #333333 #5f676a #ffffff
inactive_workspace #333333 #222222 #888888
urgent_workspace #2f343a #900000 #ffffff
}
}
@@ -285,7 +230,7 @@ include /etc/sway/config.d/*
# Default Layout (Azerty)
input "1:1:AT_Translated_Set_2_keyboard" {
xkb_layout "be"
xkb_layout "us"
}
# Kot Keyboard (Qwerty US)
@@ -293,10 +238,6 @@ input "1133:49980:Logitech_G513_RGB_MECHANICAL_GAMING_KEYBOARD_Keyboard" {
xkb_layout "us"
}
# Home Docking Keyboard (Azerty)
input "5215:485:SEMICO_USB_Keyboard" {
xkb_layout "be"
}
# Start Autotiling, automatic display managing and polkit agent
exec_always autotiling
@@ -316,7 +257,7 @@ input "5215:485:SEMICO_USB_Keyboard" {
bindsym ctrl+shift+Print exec /home/joren/scripts/ScreenShot/screengrab --select
# Lock
bindsym ctrl+alt+L exec swaylock --clock --indicator --screenshots --effect-scale 0.4 --effect-vignette 0.2:0.5 --effect-blur 4x2 --datestr "%a %e.%m.%Y" --timestr "%k:%M"
bindsym ctrl+alt+L exec swaylock --clock --indicator --screenshots --effect-scale 0.1 --effect-vignette 0.2:0.5 --effect-blur 4x2 --datestr "%a %e.%m.%Y" --timestr "%k:%M"
# Switch workspaces
bindsym Ctrl+Alt+Left workspace prev
@@ -360,6 +301,3 @@ input "5215:485:SEMICO_USB_Keyboard" {
# F10: XF86Go
# F9: XF86Messenger
#
for_window [title="Bisq"] floating enable