Switch to wayfire.

Happened a long while ago, config file is the one output by wcm.
This commit is contained in:
Érico Nogueira 2021-03-11 02:35:59 -03:00
parent 51efcfead7
commit fb6a20ea3a
3 changed files with 423 additions and 373 deletions

View File

@ -21,7 +21,7 @@ $ stow <folder>
It's also recommended to create the `~/.local/bin` and `~/.local/share`
directories before stowing the repository.
## Window manager
## Wayfire or Sway
This setup, dotfiles for which can be found inside `wayland/`, requires the
dependencies listed under `wm` and `wayland` in `void/void.sh`.

View File

@ -1,264 +1,147 @@
# ericonr's config for Wayfire
#
# location: ~/.config/wayfire.ini
#
# Reference:
# - https://github.com/WayfireWM/wayfire/wiki/Tutorial
# - https://github.com/WayfireWM/wayfire/wiki/Configuration
# Input configuration ──────────────────────────────────────────────────────────
# Example configuration:
#
[input]
xkb_layout = us,br
xkb_option = ctrl:nocaps
touchpad_cursor_speed = 0.1
touchpad_accel_profile = none
mouse_accel_profile = none
mouse_scroll_speed = 0.8
cursor_theme=Breeze_Snow
# xkb_variant = dvorak,bepo
#
# See Input options for a complete reference.
# https://github.com/WayfireWM/wayfire/wiki/Configuration#input
# Output configuration ─────────────────────────────────────────────────────────
# Example configuration:
#
# [eDP-1]
# mode = 1920x1080@60.000000
# layout = 0,0
# transform = normal
# scale = 1.000000
#
# You can get the names of your outputs with wlr-randr.
# https://github.com/emersion/wlr-randr
#
# See also kanshi for configuring your outputs automatically.
# https://wayland.emersion.fr/kanshi/
#
# See Output options for a complete reference.
# https://github.com/WayfireWM/wayfire/wiki/Configuration#output
# Core options ─────────────────────────────────────────────────────────────────
[core]
# Disabled plugins: blur grid oswitch decoration
plugins = \
alpha \
animate \
autostart \
command \
cube \
expo \
fast-switcher \
fisheye \
idle \
invert \
move \
place \
resize \
simple-tile \
switcher \
vswipe \
vswitch \
window-rules \
wobbly \
wrot \
zoom
preferred_decoration_mode = server
# Close focused window.
close_top_view = <super> <shift> KEY_Q | <alt> KEY_F4
# Workspaces arranged into a grid: 3 × 3.
vwidth = 4
vheight = 3
# Mouse bindings ───────────────────────────────────────────────────────────────
[move]
activate = <super> BTN_LEFT
[resize]
activate = <super> BTN_RIGHT
# Activated with scrolling
[zoom]
modifier = <super>
# Activated with scrolling
[alpha]
modifier = <super> <ctrl>
min_value = 0.100000
modifier = <ctrl> <super>
# Rotate windows with the mouse
[wrot]
activate = <super> <ctrl> BTN_RIGHT
reset_radius = 101
[animate]
close_animation = zoom
duration = 400
enabled_for = (type equals "toplevel" | (type equals "x-or" & focusable equals true))
fade_duration = 400
fade_enabled_for = type equals "overlay"
fire_duration = 300
fire_enabled_for = none
fire_particle_size = 16.000000
fire_particles = 2000
open_animation = zoom
startup_duration = 600
zoom_duration = 500
zoom_enabled_for = none
[fisheye]
toggle = <super> <ctrl> KEY_F
[annotate]
clear_workspace = <alt> <super> KEY_C
draw = <alt> <super> BTN_LEFT
from_center = true
line_width = 3.000000
method = draw
stroke_color = \#FF0000FF
[simple-tile]
tile_by_default = all
button_move = <super> <alt>
button_resize = <super> KEY_R
key_focus_above = <super> KEY_K
key_focus_below = <super> KEY_J
key_focus_right = <super> KEY_L
key_focus_left = <super> KEY_H
key_toggle_fullscreen = <super> KEY_F
key_toggle = <super> <ctrl> KEY_T
[vswipe]
delta_threshold = 20
enable_smooth_transition = true
fingers = 3
# Startup commands ─────────────────────────────────────────────────────────────
[autorotate-iio]
lock_rotation = false
rotate_down = <ctrl> <super> KEY_DOWN
rotate_left = <ctrl> <super> KEY_LEFT
rotate_right = <ctrl> <super> KEY_RIGHT
rotate_up = <ctrl> <super> KEY_UP
[autostart]
# Automatically start background and panel.
autostart_wf_shell = true
a0 = wf-background
autostart_wf_shell = false
wayland_service = runsvdir-sway
# background = wf-background
# panel = wf-panel
# dock = wf-dock
[background-view]
command = mpv --loop=inf
file =
# Example configuration:
#
# [idle]
# toggle = <super> KEY_Z
# screensaver_timeout = 300
# dpms_timeout = 600
#
# Disables the compositor going idle with Super + z.
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds.
[bench]
average_frames = 5
frames_per_update = 3
position = top_right
# Applications ─────────────────────────────────────────────────────────────────
[blur]
blur_by_default = type is "toplevel"
bokeh_degrade = 1
bokeh_iterations = 15
bokeh_offset = 5.000000
box_degrade = 1
box_iterations = 2
box_offset = 2.000000
gaussian_degrade = 1
gaussian_iterations = 2
gaussian_offset = 2.000000
kawase_degrade = 1
kawase_iterations = 2
kawase_offset = 5.000000
method = kawase
mode = normal
saturation = 1.000000
toggle = none
[command]
binding_terminal = <super> KEY_ENTER
command_terminal = alacritty
binding_0 = <shift> <super> KEY_D
binding_1 = <shift> <super> KEY_X
binding_2 = <shift> <super> KEY_E
binding_launcher = <super> KEY_D
command_launcher = wofi
binding_launcher_a = <super> <shift> KEY_D
command_launcher_a = nwgdmenu
binding_lock = <super> KEY_ESC
command_lock = swaylock
# Logout
# https://github.com/ArtsyMacaw/wlogout
binding_logout = <super> <shift> KEY_ESC
command_logout = wlogout
# Screenshots
# https://wayland.emersion.fr/grim/
# https://wayland.emersion.fr/slurp/
binding_screenshot = KEY_PRINT
command_screenshot = grim $(date '+%F_%T').webp
binding_screenshot_interactive = <shift> KEY_PRINT
command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp
# Volume controls
# https://alsa-project.org
repeatable_binding_volume_up = KEY_VOLUMEUP
command_volume_up = pactl set-sink-volume @DEFAULT_SINK@ +5%
repeatable_binding_volume_down = KEY_VOLUMEDOWN
command_volume_down = pactl set-sink-volume @DEFAULT_SINK@ -5%
binding_mute = KEY_MUTE
command_mute = pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Screen brightness
# https://haikarainen.github.io/light/
repeatable_binding_light_up = KEY_BRIGHTNESSUP
command_light_up = brightnessctl set +5%
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN
binding_screenshot = KEY_PRINT
binding_screenshot_interactive = <shift> KEY_PRINT
binding_terminal = <super> KEY_ENTER
command_0 = nwggrid
command_1 = swaylock
command_2 = runsvdir-sway-kill
command_launcher = nwgdmenu
command_light_down = brightnessctl set 5%-
command_light_up = brightnessctl set +5%
command_lock = swaylock
command_logout = wlogout
command_mute = pactl set-source-mute @DEFAULT_SOURCE@ toggle
command_screenshot = grim $(date '+%F_%T').webp
command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp
command_terminal = alacritty
command_volume_down = pactl set-sink-volume @DEFAULT_SINK@ -5%
command_volume_up = pactl set-sink-volume @DEFAULT_SINK@ +5%
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN
repeatable_binding_light_up = KEY_BRIGHTNESSUP
repeatable_binding_volume_down = KEY_VOLUMEDOWN
repeatable_binding_volume_up = KEY_VOLUMEUP
# Windows ──────────────────────────────────────────────────────────────────────
[core]
background_color = \#1A1A1AFF
close_top_view = <shift> <super> KEY_Q | <alt> KEY_F4
focus_button_with_modifiers = false
focus_buttons = BTN_LEFT | BTN_MIDDLE | BTN_RIGHT
focus_buttons_passthrough = true
max_render_time = -1
plugins = alpha animate autostart command cube expo fast-switcher fisheye idle invert move place resize switcher vswipe vswitch window-rules wrot zoom water grid wm-actions wobbly scale annotate
preferred_decoration_mode = server
vheight = 3
vwidth = 4
xwayland = true
# Position the windows in certain regions of the output.
[grid]
#
# ⇱ ↑ ⇲ │ 7 8 9
# ← f → │ 4 5 6
# ⇱ ↓ ⇲ d │ 1 2 3 0
# ‾ ‾
slot_bl = <super> KEY_KP1
slot_b = <super> KEY_KP2
slot_br = <super> KEY_KP3
slot_l = <super> KEY_LEFT | <super> KEY_KP4
slot_c = <super> KEY_UP | <super> KEY_KP5
slot_r = <super> KEY_RIGHT | <super> KEY_KP6
slot_tl = <super> KEY_KP7
slot_t = <super> KEY_KP8
slot_tr = <super> KEY_KP9
# Restore default.
restore = <super> KEY_DOWN | <super> KEY_KP0
[crosshair]
line_color = \#FF0000FF
line_width = 1
# Change active window with an animation.
[switcher]
next_view = <alt> KEY_TAB
prev_view = <alt> <shift> KEY_TAB
gesture_toggle = <super> <alt> KEY_S
# Simple active window switcher.
[fast-switcher]
activate = <alt> KEY_ESC
# Workspaces ───────────────────────────────────────────────────────────────────
# Switch to workspace.
[vswitch]
binding_left = <ctrl> <super> KEY_LEFT
binding_down = <ctrl> <super> KEY_DOWN
binding_up = <ctrl> <super> KEY_UP
binding_right = <ctrl> <super> KEY_RIGHT
# Move the focused window with the same key-bindings, but add Shift.
binding_win_left = <ctrl> <super> <shift> KEY_LEFT
binding_win_down = <ctrl> <super> <shift> KEY_DOWN
binding_win_up = <ctrl> <super> <shift> KEY_UP
binding_win_right = <ctrl> <super> <shift> KEY_RIGHT
# Show the current workspace row as a cube.
[cube]
activate = <ctrl> <alt> BTN_LEFT
# Switch to the next or previous workspace.
#rotate_left = <super> <ctrl> KEY_H
#rotate_right = <super> <ctrl> KEY_L
activate = <alt> <ctrl> BTN_LEFT
background = \#1A1A1AFF
background_mode = simple
cubemap_image =
deform = 0
initial_animation = 350
light = true
rotate_left = none
rotate_right = none
skydome_mirror = true
skydome_texture =
speed_spin_horiz = 0.020000
speed_spin_vert = 0.020000
speed_zoom = 0.070000
zoom = 0.100000
[decoration]
active_color = \#222222AA
border_size = 4
button_order = minimize maximize close
font = sans-serif
ignore_views = none
inactive_color = \#333333DD
title_height = 30
# Show an overview of all workspaces.
[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.
background = \#1A1A1AFF
duration = 150
offset = 10
select_workspace_1 = KEY_1
select_workspace_2 = KEY_2
select_workspace_3 = KEY_3
@ -268,29 +151,268 @@ select_workspace_6 = KEY_6
select_workspace_7 = KEY_7
select_workspace_8 = KEY_8
select_workspace_9 = KEY_9
toggle = <super>
# Outputs ──────────────────────────────────────────────────────────────────────
[extra-gestures]
close_fingers = 20
move_delay = 500
move_fingers = 3
# Change focused output.
[oswitch]
# Switch to the next output.
next_output = <super> KEY_O
# Same with the window.
next_output_with_win = <super> <shift> KEY_O
[fast-switcher]
activate = <alt> KEY_ESC
activate_backward = <alt> <shift> KEY_ESC
[fisheye]
radius = 450.000000
toggle = <ctrl> <super> KEY_F
zoom = 7.000000
[follow-focus]
change_output = true
change_view = true
focus_delay = 50
raise_on_top = true
threshold = 10
[force-fullscreen]
constrain_pointer = false
constraint_area = view
key_toggle_fullscreen = <shift> <super> KEY_F
preserve_aspect = true
transparent_behind_views = true
x_skew = 0.000000
y_skew = 0.000000
[grid]
duration = 250
restore = <super> KEY_DOWN | <super> KEY_KP0
slot_b = <super> KEY_KP2
slot_bl = <super> KEY_KP1
slot_br = <super> KEY_KP3
slot_c = <super> KEY_UP | <super> KEY_KP5
slot_l = <super> KEY_LEFT | <super> KEY_KP4
slot_r = <super> KEY_RIGHT | <super> KEY_KP6
slot_t = <super> KEY_KP8
slot_tl = <super> KEY_KP7
slot_tr = <super> KEY_KP9
type = crossfade
[idle]
cube_max_zoom = 1.500000
cube_rotate_speed = 1.000000
cube_zoom_speed = 1000
disable_on_fullscreen = true
dpms_timeout = 600
screensaver_timeout = 200
toggle = <shift> <super> KEY_X
[input]
click_method = default
cursor_size = 20
cursor_theme = Breeze_Amber
disable_touchpad_while_mouse = false
disable_touchpad_while_typing = false
gesture_sensitivity = 1.000000
kb_capslock_default_state = false
kb_numlock_default_state = false
kb_repeat_delay = 400
kb_repeat_rate = 40
middle_emulation = false
modifier_binding_timeout = 400
mouse_accel_profile = none
mouse_cursor_speed = 0.000000
mouse_scroll_speed = 0.800000
natural_scroll = false
scroll_method = default
tap_to_click = true
touchpad_accel_profile = none
touchpad_cursor_speed = 0.100000
touchpad_scroll_speed = 0.700000
xkb_layout = us,br
xkb_model =
xkb_option = ctrl:nocaps
xkb_options = ctrl:nocaps,grp:win_space_toggle
xkb_rules = evdev
xkb_variant =
[input-device]
output =
# Invert the colors of the whole output.
[invert]
preserve_hue = false
toggle = <super> KEY_I
# Rules ────────────────────────────────────────────────────────────────────────
[join-views]
[keycolor]
color = \#000000FF
opacity = 0.250000
threshold = 0.500000
[mag]
default_height = 500
toggle = <alt> <super> KEY_M
zoom_level = 75
[move]
activate = <super> BTN_LEFT
enable_snap = true
enable_snap_off = true
join_views = false
quarter_snap_threshold = 50
snap_off_threshold = 10
snap_threshold = 15
workspace_switch_after = -1
[oswitch]
next_output = <super> KEY_O
next_output_with_win = <shift> <super> KEY_O
[output]
mode = auto
position = auto
scale = 1.000000
transform = normal
[place]
mode = center
[preserve-output]
last_output_focus_timeout = 10000
[resize]
activate = <super> BTN_RIGHT
[scale]
allow_zoom = false
bg_color = \#1A1A1AE6
duration = 400
inactive_alpha = 0.750000
interact = false
middle_click_close = false
spacing = 50
text_color = \#CCCCCCFF
title_font_size = 16
title_overlay = all
title_position = center
toggle = <super> KEY_P
toggle_all =
[scale-title-filter]
bg_color = \#00000080
case_sensitive = false
font_size = 30
overlay = true
share_filter = false
text_color = \#CCCCCCCC
[showrepaint]
reduce_flicker = true
toggle = <alt> <super> KEY_S
[simple-tile]
button_move = <super> BTN_LEFT
button_resize = <super> BTN_RIGHT
inner_gap_size = 5
keep_fullscreen_on_adjacent = true
key_focus_above = <super> KEY_K
key_focus_below = <super> KEY_J
key_focus_left = <super> KEY_H
key_focus_right = <super> KEY_L
key_toggle = <ctrl> <super> KEY_T
key_toggle_fullscreen = <super> KEY_F
outer_horiz_gap_size = 0
outer_vert_gap_size = 0
tile_by_default = all
[switcher]
gesture_toggle = edge-swipe down 3
next_view = <alt> KEY_TAB
prev_view = <alt> <shift> KEY_TAB
speed = 500
touch_sensitivity = 1.000000
view_thumbnail_scale = 1.000000
[vswipe]
background = \#1A1A1AFF
delta_threshold = 20.000000
duration = 180
enable_free_movement = false
enable_horizontal = true
enable_smooth_transition = true
enable_vertical = true
fingers = 3
gap = 32.000000
speed_cap = 0.050000
speed_factor = 256.000000
threshold = 0.350000
[vswitch]
background = \#1A1A1AFF
binding_down = <super> KEY_J
binding_left = <super> KEY_H
binding_right = <super> KEY_L
binding_up = <super> KEY_K
binding_win_down = <ctrl> <shift> <super> KEY_DOWN
binding_win_left = <ctrl> <shift> <super> KEY_LEFT
binding_win_right = <ctrl> <shift> <super> KEY_RIGHT
binding_win_up = <ctrl> <shift> <super> KEY_UP
duration = 200
gap = 20
wraparound = false
[water]
activate = <ctrl> <super> BTN_LEFT
[window-rules]
[winzoom]
dec_x_binding = <ctrl> <super> KEY_LEFT
dec_y_binding = <ctrl> <super> KEY_UP
inc_x_binding = <ctrl> <super> KEY_RIGHT
inc_y_binding = <ctrl> <super> KEY_DOWN
modifier = <ctrl> <super>
nearest_filtering = false
preserve_aspect = true
zoom_step = 0.100000
[wm-actions]
minimize = none
toggle_always_on_top = <shift> <super> KEY_T
toggle_fullscreen = <shift> <super> KEY_F
toggle_maximize = none
toggle_showdesktop = none
toggle_sticky = <shift> <super> KEY_S
[wobbly]
friction = 3.000000
grid_resolution = 6
spring_k = 8.000000
[workarounds]
all_dialogs_modal = true
app_id_mode = stock
dynamic_repaint_delay = false
[workspace-names]
background_color = \#333333B3
display_duration = 500
font = sans-serif
position = center
show_option_names = false
text_color = \#FFFFFFFF
[wrot]
activate = <ctrl> <super> BTN_RIGHT
activate-3d = <shift> <super> BTN_RIGHT
invert = false
reset = <ctrl> <super> KEY_R
reset-one = <super> KEY_R
reset_radius = 101.000000
sensitivity = 24
[zoom]
modifier = <super>
smoothing_duration = 300
speed = 0.010000
# Example configuration:
#
# [window-rules]
# alacritty = app-id Alacritty created -> set maximized
#
# 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

View File

@ -1,120 +1,48 @@
[background]
# Full path to image or directory of images
image = /home/ericonr/Pictures/wallpaper.png
# Whether to scale images or preserve background ratio
preserve_aspect = 0
# In the case of directory, timeout between changing backgrounds, in seconds
cycle_timeout = 150
# In the case of directory, whether or not to randomize images
randomize = 0
[panel]
# widgets_* is a space-separated list of widgets to be displayed
# at the corresponding part of the panel
# Supported widgets are: launchers clock network battery
# A special widgets is spacing widgets, it can be used to add padding everywhere on the panel
# To use it, just append the amount of pixels you want as a padding
# to the word "spacing" and use it as a plugin
widgets_left = spacing4 menu spacing18 launchers
widgets_center = clock
widgets_right = network spacing6 battery spacing12
# The minimal size of the panel. Note that some widgets might force panel bigger than this size.
# All widgets also have individual settings for size
# Changing this requires a panel restart
minimal_height = 24
# automatically hide when pointer isn't over the panel
autohide = true
# layer can be top, bottom, overlay or background
layer = top
# where to position panel
# Possible values are only "top" and "bottom"
position = top
# set the background color.
background_color = gtk_headerbar # match the color of a GtkHeaderbar
#background_color = $555555 # Hex color, for example $FFFFFF for white
#background_color = 0.033 0.041 0.047 0.9 # RGBA color, 1.0 0.0 0.0 0.5 for semi-transparent red
# Configuration for the launchers widget
# can be a desktop file
launcher_chrome = google-chrome.desktop
launcher_firefox = firefox.desktop
launcher_terminal1 = terminator.desktop
launcher_terminal2 = org.gnome.Terminal.desktop
launcher_gedit = org.gnome.gedit.desktop
# or a combination of bash command + icon
launcher_cmd_1 = env XDG_CURRENT_DESKTOP=GNOME gnome-control-center
launcher_icon_1 = /usr/share/icons/gnome/48x48/categories/preferences-system.png
launcher_nau = org.gnome.Nautilus.desktop
# spacing between widgets, can be negative
launchers_spacing = 4
# size of the launcher icon
launcher_size = 42
# Configuration for the clock widget
# clock format, uses the Glib Time formatting
clock_format = %e %a %H:%M
# clock font
clock_font = DejaVu Sans:style=Book 12
# Configuration for the battery widget
# How much info to display:
# 0 -> only icon, 1 -> icon + percentage, 2 -> full info
battery_status = 1
battery_icon_size = 32
# invert the colors of the icon, needs to be adjusted according to the size of the icons,
# because some icon sizes are white, and others are black
battery_icon_invert = 1
# Font to use in the battery percentage indicator
battery_font = default
# Configuration for the network widget
# Whether to display connection details, for ex. Wifi AP name
network_status = 1
network_status_font = DejaVu Sans:style=Book 10
# network_icon_size = 30
network_icon_invert_color = 1
# whether to colour the wifi signal strength
network_status_use_color = yes
# whether to enable fuzzy search in the menu
menu_fuzzy_search = 1
# Configuration for the volume widget
# Number of seconds volume popover will display
# after scrolling on the volume icon
volume_display_timeout = 2.5
image = /home/ericonr/Downloads/classof1182byhoarous.png
preserve_aspect = true
randomize = false
[dock]
position = bottom # or top
# For applications that aren't installed/configured properly, you can manually
# set icons for given app_id's. Below is an example for IntelliJ IDEA
autohide_duration = 300
icon_mapping_jetbrains-idea-ce = /<path to intellij>/idea.png
position = bottom
[panel]
autohide = true
autohide_duration = 300
background_color = gtk_headerbar
battery_font = default
battery_icon_invert = true
battery_icon_size = 32
battery_status = 1
clock_font = DejaVu Sans:style=Book 12
clock_format = %e %a %H:%M
launcher_chrome = google-chrome.desktop
launcher_cmd_1 = env XDG_CURRENT_DESKTOP=GNOME gnome-control-center
launcher_firefox = firefox.desktop
launcher_gedit = org.gnome.gedit.desktop
launcher_icon_1 = /usr/share/icons/gnome/48x48/categories/preferences-system.png
launcher_nau = org.gnome.Nautilus.desktop
launcher_size = 42
launcher_terminal1 = terminator.desktop
launcher_terminal2 = org.gnome.Terminal.desktop
launchers_size = 42
launchers_spacing = 4
layer = top
menu_fuzzy_search = true
menu_icon =
menu_logout_command = wayland-logout
minimal_height = 24
network_icon_invert_color = true
network_icon_size = 32
network_status = 1
network_status_font = DejaVu Sans:style=Book 10
network_status_use_color = false
position = top
volume_display_timeout = 2.500000
widgets_center = clock
widgets_left = spacing4 menu spacing18 launchers window-list
widgets_right = network spacing6 battery spacing12