# Input configuration ────────────────────────────────────────────────────────── [input] xkb_layout = us,jp xkb_options = grp:rshift_toggle kb_numlock_default_state = true cursor_theme = Breeze_Snow cursor_size = 24 disable_touchpad_while_mouse = true disable_touchpad_while_typing = true natural_scroll = true # Output configuration ───────────────────────────────────────────────────────── [output:DP-2] mode = 1920x1080@60000 position = -1920,0 transform = normal scale = 1.000000 [output:eDP-1] mode = 1920x1080@60000 position = 0,0 transform = normal scale = 1.000000 [output:HDMI-A-1] mode = 1920x1080@60000 position = 1920,0 transform = normal scale = 1.000000 # Core options ───────────────────────────────────────────────────────────────── [core] # List of plugins to be enabled. plugins = \ alpha \ animate \ autostart \ command \ cube \ decoration \ expo \ fast-switcher \ grid \ idle \ move \ oswitch \ place \ resize \ switcher \ vswitch \ wobbly \ zoom \ scale \ window-rules \ simple-tile \ blur \ workarounds \ workspace-names \ wm-actions \ follow-focus # Close focused window. close_top_view = KEY_Q # Workspaces arranged into a grid: 3 × 3. vwidth = 3 vheight = 3 # Pure Wayland # xwayland = false # server / client decoration preferred_decoration_mode = server # Mouse bindings ─────────────────────────────────────────────────────────────── # Drag windows by holding down Super and left mouse button. [move] activate = BTN_LEFT # Resize them with right mouse button + Super. [resize] activate = BTN_RIGHT # Zoom in the desktop by scrolling + Super + Control. [zoom] modifier = # Change opacity by scrolling with Super. [alpha] modifier = # Startup commands ───────────────────────────────────────────────────────────── [autostart] # Automatically start wf-background, wf-panel and wf-dock # Requires wf-shell to be installed autostart_wf_shell = false # Notifications notifications = start_notify # The bar bar = waybar -c ~/.config/waybar/config-generic -s ~/.config/waybar/style-generic.css # Wallpaper wallpaper = wlwpp # Emacs # emacs = emacs --daemon # Screen color temperature # Note: Requires Redshift with Wayland support. # redshift = redshift -m wayland # Idle configuration idle = swayidle -w before-sleep swaylock # XDG desktop portal # Needed by some GTK applications portal = /usr/libexec/xdg-desktop-portal pipewire = pipewire # Music mpd = mpd mpDris2 = mpDris2 # Set GTK theme gtk_theme = gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Dark' icon_theme = gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark' curosr = gsettings set org.gnome.desktop.interface cursor-theme 'Breeze_Snow' cursor-size = gsettings set org.gnome.desktop.interface cursor-size '24' [idle] toggle = KEY_Z screensaver_timeout = 300 dpms_timeout = 600 # Applications ───────────────────────────────────────────────────────────────── [command] # Start a terminal binding_terminal = KEY_ENTER command_terminal = alacritty binding_foot = KEY_ENTER command_foot = foot # Start your launcher binding_launcher = KEY_D command_launcher = nwggrid -b 2e3440 -o 0.85 # Emacs binding_emacs = KEY_E command_emacs = emacsclient -c -a emacs # Logout screen binding_logout = KEY_ESC command_logout = nwgbar -b 2e3440 -o 0.85 # Screenshots binding_screenshot = KEY_PRINT command_screenshot = screenshot --region binding_screenshot_interactive = KEY_PRINT command_screenshot_interactive = screenshot --full # Volume controls repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = volumecontrol increase && pkill -x -RTMIN+11 waybar repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = volumecontrol decrease && pkill -x -RTMIN+11 waybar binding_mute = KEY_MUTE command_mute = volumecontrol toggle && pkill -x -RTMIN+11 waybar # Media keys binding_play = KEY_PLAYPAUSE command_play = playerctl play-pause binding_next = KEY_NEXTSONG command_next = playerctl next binding_prev = KEY_PREVIOUSSONG command_prev = playerctl previous # Screen brightness repeatable_binding_light_up = KEY_BRIGHTNESSUP command_light_up = brightness up repeatable_binding_light_down = KEY_BRIGHTNESSDOWN command_light_down = brightness down # Windows ────────────────────────────────────────────────────────────────────── # Position the windows in certain regions of the output. [grid] # # ⇱ ↑ ⇲ │ 7 8 9 # ← f → │ 4 5 6 # ⇱ ↓ ⇲ d │ 1 2 3 0 # ‾ ‾ slot_bl = KEY_KP1 slot_b = KEY_KP2 slot_br = KEY_KP3 slot_l = KEY_LEFT | KEY_KP4 slot_c = KEY_UP | KEY_KP5 slot_r = KEY_RIGHT | KEY_KP6 slot_tl = KEY_KP7 slot_t = KEY_KP8 slot_tr = KEY_KP9 # Restore default. restore = KEY_DOWN | KEY_KP0 # Change active window with an animation. [switcher] next_view = KEY_TAB prev_view = KEY_TAB # Simple active window switcher. [fast-switcher] activate = KEY_ESC # Animations [animate] close_animation = zoom open_animation = zoom enabled_for = (type is "toplevel" | (type is "x-or" & focusable is true)) # Blur [blur] method = kawase kawase_degrade = 2 kawase_iterations = 2 kawase_offset = 5 # Scale view [scale] toggle = KEY_P toggle_all = KEY_P interact = false middle_click_close = true # Window decoration [decoration] border_size = 2 font = Sarasa Mono J title_height = 20 active_color = 0.5 0.63 0.75 1.0 inactive_color = 0.18 0.2 0.25 1.0 # Tiling ─────────────────────────────────────────────────────────────────────── [simple-tile] tile_by_default = (((! type is "unknown") & (! type is "panel")) & (! type is "unmanaged")) inner_gap_size = 4 outer_horiz_gap_size = 4 outer_vert_gap_size = 4 # Workspaces ─────────────────────────────────────────────────────────────────── # Switch to workspace. [vswitch] binding_left = KEY_LEFT binding_down = KEY_DOWN binding_up = KEY_UP binding_right = KEY_RIGHT # Move the focused window with the same key-bindings, but add Shift. binding_win_left = KEY_LEFT binding_win_down = KEY_DOWN binding_win_up = KEY_UP binding_win_right = KEY_RIGHT # Show the current workspace row as a cube. [cube] activate = BTN_LEFT background_mode = simple # Switch to the next or previous workspace. #rotate_left = KEY_H #rotate_right = KEY_L # Show an overview of all workspaces. [expo] toggle = # 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 # Outputs ────────────────────────────────────────────────────────────────────── # Change focused output. [oswitch] # Switch to the next output. next_output = KEY_O # Same with the window. next_output_with_win = KEY_O # Rules ──────────────────────────────────────────────────────────────────────── [window-rules] alacritty_opacity = on created if app_id is "Alacritty" then set alpha 0.9 foot_opacity = on created if app_id is "foot" then set alpha 0.9 # You can get the properties of your applications with the following command: # $ WAYLAND_DEBUG=1 alacritty 2>&1 # Extra ──────────────────────────────────────────────────────────────────────── [wm-actions] toggle_fullscreen = KEY_F toggle_always_on_top = KEY_B [workspace-names] display_duration = 1000 background_color = 0.18 0.2 0.25 1.0 text_color = 1 1 1 1 font = Iosevka