From fb6a20ea3ab01650349700a856cb4d15e8ecc40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Thu, 11 Mar 2021 02:35:59 -0300 Subject: [PATCH] Switch to wayfire. Happened a long while ago, config file is the one output by wcm. --- README.md | 2 +- wayland/.config/wayfire.ini | 636 +++++++++++++++++++++-------------- wayland/.config/wf-shell.ini | 158 +++------ 3 files changed, 423 insertions(+), 373 deletions(-) diff --git a/README.md b/README.md index 4a99bab..604b3a1 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ $ stow 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`. diff --git a/wayland/.config/wayfire.ini b/wayland/.config/wayfire.ini index 7e7a624..7013c18 100644 --- a/wayland/.config/wayfire.ini +++ b/wayland/.config/wayfire.ini @@ -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 = KEY_Q | KEY_F4 - -# Workspaces arranged into a grid: 3 × 3. -vwidth = 4 -vheight = 3 - -# Mouse bindings ─────────────────────────────────────────────────────────────── - -[move] -activate = BTN_LEFT - -[resize] -activate = BTN_RIGHT - -# Activated with scrolling -[zoom] -modifier = - -# Activated with scrolling [alpha] -modifier = +min_value = 0.100000 +modifier = -# Rotate windows with the mouse -[wrot] -activate = 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 = KEY_F +[annotate] +clear_workspace = KEY_C +draw = BTN_LEFT +from_center = true +line_width = 3.000000 +method = draw +stroke_color = \#FF0000FF -[simple-tile] - -tile_by_default = all - -button_move = -button_resize = KEY_R - -key_focus_above = KEY_K -key_focus_below = KEY_J -key_focus_right = KEY_L -key_focus_left = KEY_H -key_toggle_fullscreen = KEY_F - -key_toggle = KEY_T - -[vswipe] - -delta_threshold = 20 -enable_smooth_transition = true -fingers = 3 - -# Startup commands ───────────────────────────────────────────────────────────── +[autorotate-iio] +lock_rotation = false +rotate_down = KEY_DOWN +rotate_left = KEY_LEFT +rotate_right = KEY_RIGHT +rotate_up = 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 = 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 = KEY_ENTER -command_terminal = alacritty - +binding_0 = KEY_D +binding_1 = KEY_X +binding_2 = KEY_E binding_launcher = KEY_D -command_launcher = wofi - -binding_launcher_a = KEY_D -command_launcher_a = nwgdmenu - binding_lock = KEY_ESC -command_lock = swaylock - -# Logout -# https://github.com/ArtsyMacaw/wlogout binding_logout = 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 = 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 = KEY_PRINT +binding_terminal = 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 = KEY_Q | 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 = 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 +[crosshair] +line_color = \#FF0000FF +line_width = 1 -# Change active window with an animation. -[switcher] -next_view = KEY_TAB -prev_view = KEY_TAB -gesture_toggle = KEY_S - -# Simple active window switcher. -[fast-switcher] -activate = KEY_ESC - -# 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 -# Switch to the next or previous workspace. -#rotate_left = KEY_H -#rotate_right = KEY_L +activate = 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 = -# 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 = -# Outputs ────────────────────────────────────────────────────────────────────── +[extra-gestures] +close_fingers = 20 +move_delay = 500 +move_fingers = 3 -# Change focused output. -[oswitch] -# Switch to the next output. -next_output = KEY_O -# Same with the window. -next_output_with_win = KEY_O +[fast-switcher] +activate = KEY_ESC +activate_backward = KEY_ESC + +[fisheye] +radius = 450.000000 +toggle = 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 = KEY_F +preserve_aspect = true +transparent_behind_views = true +x_skew = 0.000000 +y_skew = 0.000000 + +[grid] +duration = 250 +restore = KEY_DOWN | KEY_KP0 +slot_b = KEY_KP2 +slot_bl = KEY_KP1 +slot_br = KEY_KP3 +slot_c = KEY_UP | KEY_KP5 +slot_l = KEY_LEFT | KEY_KP4 +slot_r = KEY_RIGHT | KEY_KP6 +slot_t = KEY_KP8 +slot_tl = KEY_KP7 +slot_tr = 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 = 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 = KEY_I -# Rules ──────────────────────────────────────────────────────────────────────── +[join-views] + +[keycolor] +color = \#000000FF +opacity = 0.250000 +threshold = 0.500000 + +[mag] +default_height = 500 +toggle = KEY_M +zoom_level = 75 + +[move] +activate = 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 = KEY_O +next_output_with_win = KEY_O + +[output] +mode = auto +position = auto +scale = 1.000000 +transform = normal + +[place] +mode = center + +[preserve-output] +last_output_focus_timeout = 10000 + +[resize] +activate = 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 = 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 = KEY_S + +[simple-tile] +button_move = BTN_LEFT +button_resize = BTN_RIGHT +inner_gap_size = 5 +keep_fullscreen_on_adjacent = true +key_focus_above = KEY_K +key_focus_below = KEY_J +key_focus_left = KEY_H +key_focus_right = KEY_L +key_toggle = KEY_T +key_toggle_fullscreen = 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 = KEY_TAB +prev_view = 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 = KEY_J +binding_left = KEY_H +binding_right = KEY_L +binding_up = KEY_K +binding_win_down = KEY_DOWN +binding_win_left = KEY_LEFT +binding_win_right = KEY_RIGHT +binding_win_up = KEY_UP +duration = 200 +gap = 20 +wraparound = false + +[water] +activate = BTN_LEFT + +[window-rules] + +[winzoom] +dec_x_binding = KEY_LEFT +dec_y_binding = KEY_UP +inc_x_binding = KEY_RIGHT +inc_y_binding = KEY_DOWN +modifier = +nearest_filtering = false +preserve_aspect = true +zoom_step = 0.100000 + +[wm-actions] +minimize = none +toggle_always_on_top = KEY_T +toggle_fullscreen = KEY_F +toggle_maximize = none +toggle_showdesktop = none +toggle_sticky = 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 = BTN_RIGHT +activate-3d = BTN_RIGHT +invert = false +reset = KEY_R +reset-one = KEY_R +reset_radius = 101.000000 +sensitivity = 24 + +[zoom] +modifier = +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 diff --git a/wayland/.config/wf-shell.ini b/wayland/.config/wf-shell.ini index f4a3347..8cb54a2 100644 --- a/wayland/.config/wf-shell.ini +++ b/wayland/.config/wf-shell.ini @@ -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 = //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 +