2022-08-22 04:48:56 +08:00
|
|
|
|
### Input configuration
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[input]
|
|
|
|
|
xkb_layout = us
|
|
|
|
|
xkb_variant = dvorak,bepo
|
|
|
|
|
natural_scroll = enabled
|
|
|
|
|
|
|
|
|
|
[input-device:Wacom One by Wacom S Pen]
|
|
|
|
|
output = eDP-1
|
|
|
|
|
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Output configuration
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[output:eDP-1]
|
2022-08-22 04:48:56 +08:00
|
|
|
|
# mode = 1920x1080@60000
|
2022-06-24 20:34:06 +08:00
|
|
|
|
mode = 2400x1350@60000
|
|
|
|
|
position = 0,0
|
|
|
|
|
transform = normal
|
2022-08-22 00:25:07 +08:00
|
|
|
|
scale = 1.00000
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Core options
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[core]
|
|
|
|
|
plugins = \
|
|
|
|
|
alpha \
|
|
|
|
|
animate \
|
|
|
|
|
autostart \
|
|
|
|
|
command \
|
|
|
|
|
cube \
|
|
|
|
|
decoration \
|
|
|
|
|
expo \
|
|
|
|
|
fast-switcher \
|
|
|
|
|
fisheye \
|
|
|
|
|
grid \
|
|
|
|
|
idle \
|
|
|
|
|
invert \
|
|
|
|
|
move \
|
|
|
|
|
oswitch \
|
|
|
|
|
place \
|
|
|
|
|
resize \
|
|
|
|
|
switcher \
|
|
|
|
|
vswitch \
|
|
|
|
|
window-rules \
|
|
|
|
|
wm-actions \
|
|
|
|
|
wobbly \
|
|
|
|
|
wrot \
|
|
|
|
|
zoom \
|
2022-07-19 21:01:41 +08:00
|
|
|
|
spacing \
|
2022-08-22 05:16:19 +08:00
|
|
|
|
blur \
|
2022-08-22 04:48:56 +08:00
|
|
|
|
wf-info \
|
|
|
|
|
rounded-corners
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Close focused window.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
close_top_view = <super> KEY_Q | <alt> KEY_F4
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Workspaces arranged into a grid: 3 × 3.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
vwidth = 3
|
|
|
|
|
vheight = 3
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Prefer client-side decoration or server-side decoration
|
2022-08-22 00:25:07 +08:00
|
|
|
|
preferred_decoration_mode = server
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Mouse bindings
|
|
|
|
|
## Drag windows by holding down Super and left mouse button.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[move]
|
|
|
|
|
activate = <super> BTN_LEFT
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Resize them with right mouse button + Super.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[resize]
|
|
|
|
|
activate = <super> BTN_RIGHT
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Zoom in the desktop by scrolling + Super.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[zoom]
|
|
|
|
|
modifier = <super>
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Change opacity by scrolling with Super + Alt.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[alpha]
|
|
|
|
|
modifier = <super> <alt>
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Rotate windows with the mouse.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[wrot]
|
|
|
|
|
activate = <super> <ctrl> BTN_RIGHT
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Fisheye effect.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[fisheye]
|
|
|
|
|
toggle = <super> <ctrl> KEY_F
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Startup commands
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[autostart]
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## enviroment
|
2022-06-24 20:34:06 +08:00
|
|
|
|
environment = dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY XAUTHORITY
|
|
|
|
|
autostart_wf_shell = false
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## chromium screenshare
|
2022-06-24 20:34:06 +08:00
|
|
|
|
0_0 = systemctl --user import-environment
|
|
|
|
|
xdg = sleep 1 && (XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=sway /usr/lib/xdg-desktop-portal --replace & /usr/lib/xdg-desktop-portal-wlr)
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## desktop widgets
|
2022-08-22 08:15:21 +08:00
|
|
|
|
background = wf-background
|
2022-08-22 00:25:07 +08:00
|
|
|
|
bar = waybar
|
2022-06-24 20:34:06 +08:00
|
|
|
|
# dock = wf-dock
|
2022-08-22 04:48:56 +08:00
|
|
|
|
# panel = wf-panel
|
2022-08-22 08:15:21 +08:00
|
|
|
|
# background = swaybg -i $HOME/.config/swaylock/bg.png
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Notifications
|
2022-06-24 20:34:06 +08:00
|
|
|
|
notifications = mako
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## input
|
2022-06-24 20:34:06 +08:00
|
|
|
|
fcitx5 = fcitx
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## KDEConnect
|
|
|
|
|
# kdeconnect = kdeconnect-indicator
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Keyring
|
2022-07-19 21:01:41 +08:00
|
|
|
|
keyring = gnome-keyring
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## XDG desktop portal
|
2022-06-24 20:34:06 +08:00
|
|
|
|
portal = /usr/libexec/xdg-desktop-portal
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### desktop configure
|
|
|
|
|
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[idle]
|
|
|
|
|
# toggle = <super> KEY_Z
|
|
|
|
|
screensaver_timeout = 360000
|
|
|
|
|
dpms_timeout = 360000
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Applications ─────────────────────────────────────────────────────────────────
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
|
|
|
|
[command]
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Terminal
|
2022-06-24 20:34:06 +08:00
|
|
|
|
binding_terminal = <super> KEY_T
|
2022-06-27 07:33:39 +08:00
|
|
|
|
command_terminal = tilix
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Start your launcher
|
2022-06-24 20:34:06 +08:00
|
|
|
|
binding_launcher = <super> KEY_ENTER
|
|
|
|
|
command_launcher = wofi
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Screen locker
|
2022-06-24 20:34:06 +08:00
|
|
|
|
# https://github.com/swaywm/swaylock
|
|
|
|
|
binding_lock = <super> <shift> KEY_ESC
|
|
|
|
|
command_lock = swaylock -C $HOME/.config/swaylock/conig
|
|
|
|
|
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Logout
|
2022-06-24 20:34:06 +08:00
|
|
|
|
# https://github.com/ArtsyMacaw/wlogout
|
|
|
|
|
binding_logout = <super> KEY_ESC
|
2022-06-27 08:53:51 +08:00
|
|
|
|
command_logout = nwgbar
|
|
|
|
|
# command_logout = wlogout -p xdg
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Screenshots
|
|
|
|
|
# select window, copy to clipboard
|
|
|
|
|
binding_screenshot = <shift> KEY_SYSRQ
|
2022-07-19 21:01:41 +08:00
|
|
|
|
command_screenshot = grim -g "$(wf-info | grep Geometry | awk '{print $2, $3}')" - - | wl-copy --type image/png
|
2022-08-22 08:15:21 +08:00
|
|
|
|
# select window, save to Pictures directory
|
2022-08-22 04:48:56 +08:00
|
|
|
|
binding_screenshot_interactive = <super> <shift> KEY_SYSRQ
|
2022-08-22 08:15:21 +08:00
|
|
|
|
command_screenshot_interactive = wf-info | grep Geometry | awk '{print $2, $3}' | grim -g - ~/Pictures/$(date '+%F_%T').png
|
2022-08-22 04:48:56 +08:00
|
|
|
|
# copy to clipboard
|
2022-06-24 20:34:06 +08:00
|
|
|
|
binding_screenshot_clipboard = KEY_SYSRQ
|
|
|
|
|
command_screenshot_clipboard = slurp -b ff00ff20 -B ff00ff20 -c ff00ff80 -o | grim -g - - | wl-copy --type image/png
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Screencast
|
|
|
|
|
# binding_screencast = <alt> KEY_SYSRQ
|
|
|
|
|
# command_screencast = wf-recorder -g "$(wf-info | grep Geometry | awk '{print $2, $3}')" -f $HOME/Videos/$(date '+%F_%T').mp4
|
2022-08-22 08:15:21 +08:00
|
|
|
|
binding_screencast_voice = <super> <ctrl> KEY_SYSRQ
|
|
|
|
|
command_screencast_voice = wf-recorder -a -f $HOME/Videos/$(date '+%F_%T').mp4
|
|
|
|
|
binding_screencast_novoice = <ctrl> KEY_SYSRQ
|
|
|
|
|
command_screencast_novoice = wf-recorder -f $HOME/Videos/$(data '+%F_%T').
|
2022-06-24 20:34:06 +08:00
|
|
|
|
binding_screencast_stop = <ctrl> <alt> KEY_SYSRQ
|
|
|
|
|
command_screencast_stop = killall -INT wf-recorder
|
2022-08-22 04:48:56 +08:00
|
|
|
|
# binding_kooha = <super> KEY_R
|
|
|
|
|
# command_kooha = kooha
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Volume controls alias-utils
|
2022-06-24 20:34:06 +08:00
|
|
|
|
repeatable_binding_volume_up = KEY_F3
|
|
|
|
|
command_volume_up = pulsemixer --change-volume +5
|
|
|
|
|
repeatable_binding_volume_down = KEY_F2
|
|
|
|
|
command_volume_down = pulsemixer --change-volume -5
|
|
|
|
|
binding_mute = KEY_F1
|
|
|
|
|
command_mute = pulsemixer --mute
|
|
|
|
|
binding_unmute = <alt> KEY_F1
|
|
|
|
|
command_unmate = pulsemixer --unmute
|
2022-08-22 04:48:56 +08:00
|
|
|
|
|
|
|
|
|
## Screen brightness
|
2022-06-24 20:34:06 +08:00
|
|
|
|
# https://haikarainen.github.io/light/
|
|
|
|
|
# repeatable_binding_light_up = KEY_F7
|
|
|
|
|
# command_light_up = light -A 5
|
|
|
|
|
# repeatable_binding_light_down = <shift> KEY_7
|
|
|
|
|
# command_light_down = light -U 5
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Windows
|
|
|
|
|
## Actions related to window management functionalities.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[wm-actions]
|
|
|
|
|
toggle_fullscreen = <super> KEY_F
|
|
|
|
|
toggle_always_on_top = <super> KEY_X
|
|
|
|
|
toggle_sticky = <super> <shift> KEY_X
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Position the windows in certain regions of the output.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[grid]
|
|
|
|
|
#
|
|
|
|
|
# ⇱ ↑ ⇲ │ 7 8 9
|
|
|
|
|
# ← f → │ 4 5 6
|
|
|
|
|
# ⇱ ↓ ⇲ d │ 1 2 3 0
|
|
|
|
|
# ‾ ‾
|
|
|
|
|
slot_bl = <super> KEY_F1
|
|
|
|
|
slot_b = <super> KEY_DOWN | <super> KEY_F2
|
|
|
|
|
slot_br = <super> KEY_F3
|
|
|
|
|
slot_l = <super> KEY_LEFT | <super> KEY_F4
|
|
|
|
|
slot_c = <super> KEY_F5
|
|
|
|
|
slot_r = <super> KEY_RIGHT | <super> KEY_F6
|
|
|
|
|
slot_tl = <super> KEY_F7
|
|
|
|
|
slot_t = <super> KEY_UP | <super> KEY_F8
|
|
|
|
|
slot_tr = <super> KEY_F9
|
|
|
|
|
# Restore default.
|
|
|
|
|
restore = <super> KEY_F10
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Change active window with an animation.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[switcher]
|
|
|
|
|
next_view = <shift> <alt> KEY_TAB
|
|
|
|
|
prev_view = <alt> KEY_TAB
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Simple active window switcher.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[fast-switcher]
|
2022-08-22 04:48:56 +08:00
|
|
|
|
activate = <super> KEY_TAB
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Workspaces
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Switch to workspace.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[vswitch]
|
|
|
|
|
binding_left = <ctrl> KEY_LEFT
|
|
|
|
|
binding_down = <ctrl> KEY_DOWN
|
|
|
|
|
binding_up = <ctrl> KEY_UP
|
|
|
|
|
binding_right = <ctrl> KEY_RIGHT
|
|
|
|
|
# Move the focused window with the same key-bindings, but add Shift.
|
|
|
|
|
binding_win_left = <ctrl> <super> KEY_LEFT
|
|
|
|
|
binding_win_down = <ctrl> <super> KEY_DOWN
|
|
|
|
|
binding_win_up = <ctrl> <super> KEY_UP
|
|
|
|
|
binding_win_right = <ctrl> <super> KEY_RIGHT
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Show the current workspace row as a cube.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[cube]
|
|
|
|
|
activate = <ctrl> <alt> BTN_LEFT
|
|
|
|
|
# Switch to the next or previous workspace.
|
|
|
|
|
rotate_left = <super> <ctrl> KEY_R
|
|
|
|
|
rotate_right = <super> <ctrl> KEY_L
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Show an overview of all workspaces.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[expo]
|
|
|
|
|
toggle = <super>
|
|
|
|
|
# Select a workspace.
|
|
|
|
|
# Workspaces are arranged into a grid of 3 × 3.
|
|
|
|
|
# The numbering is left to right, line by line.
|
|
|
|
|
#
|
|
|
|
|
# ⇱ k ⇲
|
|
|
|
|
# h ⏎ l
|
|
|
|
|
# ⇱ j ⇲
|
|
|
|
|
# ‾ ‾
|
|
|
|
|
# See core.vwidth and core.vheight for configuring the grid.
|
|
|
|
|
select_workspace_1 = KEY_1
|
|
|
|
|
select_workspace_2 = KEY_2
|
|
|
|
|
select_workspace_3 = KEY_3
|
|
|
|
|
select_workspace_4 = KEY_4
|
|
|
|
|
select_workspace_5 = KEY_5
|
|
|
|
|
select_workspace_6 = KEY_6
|
|
|
|
|
select_workspace_7 = KEY_7
|
|
|
|
|
select_workspace_8 = KEY_8
|
|
|
|
|
select_workspace_9 = KEY_9
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
### Outputs
|
|
|
|
|
## Change focused output.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[oswitch]
|
|
|
|
|
# Switch to the next output.
|
|
|
|
|
next_output = <super> KEY_O
|
|
|
|
|
# Same with the window.
|
|
|
|
|
next_output_with_win = <super> <shift> KEY_O
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Invert the colors of the whole output.
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[invert]
|
|
|
|
|
toggle = <super> KEY_I
|
|
|
|
|
|
2022-08-22 04:48:56 +08:00
|
|
|
|
## Animate
|
2022-06-24 20:34:06 +08:00
|
|
|
|
[animate]
|
2022-08-22 04:48:56 +08:00
|
|
|
|
open_animation = fade
|
2022-06-24 20:34:06 +08:00
|
|
|
|
close_animation = fade
|
2022-08-22 04:48:56 +08:00
|
|
|
|
duration = 400
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
|
|
|
|
[decoration]
|
|
|
|
|
title_height = 0
|
2022-08-22 00:25:07 +08:00
|
|
|
|
title_size = 0
|
|
|
|
|
ignore_views = all
|
2022-08-22 04:48:56 +08:00
|
|
|
|
broder_size = 10
|
|
|
|
|
active_color = \#ffffffAA
|
|
|
|
|
inactive_color = \#ffffffAA
|
|
|
|
|
|
2022-08-22 05:16:19 +08:00
|
|
|
|
[blur]
|
|
|
|
|
method = kawase
|
|
|
|
|
kawase_degrade = 1
|
|
|
|
|
kawase_iterations = 1
|
|
|
|
|
kawase_offset = 5
|
|
|
|
|
|
2022-06-24 20:34:06 +08:00
|
|
|
|
# Rules ────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
|
|
# Example configuration:
|
|
|
|
|
#
|
|
|
|
|
# [window-rules]
|
|
|
|
|
# maximize_alacritty = on created if app_id is "Alacritty" then maximize
|
|
|
|
|
#
|
|
|
|
|
# You can get the properties of your applications with the following command:
|
|
|
|
|
# $ WAYLAND_DEBUG=1 alacritty 2>&1 | kak
|
|
|
|
|
#
|
|
|
|
|
# See Window rules for a complete reference.
|
|
|
|
|
# https://github.com/WayfireWM/wayfire/wiki/Configuration#window-rules
|