From 408772a39eed161750084e4ca59c8c7ec72a0cc7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 26 Dec 2023 09:35:06 +0100 Subject: update wayfire/waybar config --- waybar/config | 21 +++++++++++++++++---- wayfire/wayfire.ini | 37 ++++++++++++++++--------------------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/waybar/config b/waybar/config index 42c9a23..0bfdf65 100644 --- a/waybar/config +++ b/waybar/config @@ -7,7 +7,7 @@ // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], "modules-center": ["sway/window"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "disk", "temperature", "keyboard-state", "battery", "battery#bat1", "clock", "tray"], + "modules-right": ["pulseaudio", "network", "cpu", "memory", "disk", "temperature", "keyboard-state", "battery#bat0", "battery#bat1", "clock", "tray"], // Modules configuration // "sway/workspaces": { // "disable-scroll": true, @@ -96,7 +96,7 @@ }, "disk": { "path": "/Z", - "format": "{percentage_used}% 🖴" + "format": "{free} 🖴" }, "temperature": { // "thermal-zone": 2, @@ -111,7 +111,8 @@ "format": "{percent}% {icon}", "format-icons": ["", "", "", "", "", "", "", "", ""] }, - "battery": { + "battery#bat0": { + "bat": "BAT0", "states": { // "good": 95, "warning": 30, @@ -126,7 +127,19 @@ "format-icons": ["", "", "", "", ""] }, "battery#bat1": { - "bat": "BAT1" + "bat": "BAT1", + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface diff --git a/wayfire/wayfire.ini b/wayfire/wayfire.ini index a497cf2..add5b78 100644 --- a/wayfire/wayfire.ini +++ b/wayfire/wayfire.ini @@ -4,9 +4,9 @@ modifier = [animate] close_animation = fade -duration = 400 +duration = 200 enabled_for = (type equals "toplevel" | (type equals "x-or" & focusable equals true)) -fade_duration = 400 +fade_duration = 200 fade_enabled_for = type equals "overlay" fire_color = \#B22303FF fire_duration = 300 @@ -15,7 +15,7 @@ fire_particle_size = 16.000000 fire_particles = 2000 open_animation = fade random_fire_color = false -startup_duration = 600 +startup_duration = 500 zoom_duration = 500 zoom_enabled_for = none @@ -65,7 +65,7 @@ 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 decoration expo fast-switcher fisheye grid move oswitch place resize vswitch window-rules wrot switcher wayfire-shell ipc gtk-shell foreign-toplevel xdg-activation +plugins = alpha animate autostart command decoration expo fast-switcher fisheye grid move oswitch place resize vswitch window-rules wrot wayfire-shell ipc gtk-shell foreign-toplevel xdg-activation preferred_decoration_mode = client transaction_timeout = 100 vheight = 3 @@ -90,12 +90,12 @@ speed_zoom = 0.070000 zoom = 0.100000 [decoration] -active_color = \#222222AA +active_color = \#222222FF border_size = 4 button_order = minimize maximize close font = sans-serif ignore_views = none -inactive_color = \#333333DD +inactive_color = \#555555FF title_height = 30 [dock] @@ -118,8 +118,8 @@ move_delay = 500 move_fingers = 3 [fast-switcher] -activate = KEY_ESC -activate_backward = KEY_ESC +activate = KEY_TAB +activate_backward = KEY_TAB inactive_alpha = 0.700000 [fisheye] @@ -131,13 +131,13 @@ zoom = 7.000000 [grid] duration = 300 -restore = KEY_DOWN | KEY_KP0 +restore = KEY_DOWN | KEY_KP0 | KEY_J 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_c = KEY_UP | KEY_KP5 | KEY_K +slot_l = KEY_LEFT | KEY_KP4 | KEY_H +slot_r = KEY_RIGHT | KEY_KP6 | KEY_L slot_t = KEY_KP8 slot_tl = KEY_KP7 slot_tr = KEY_KP9 @@ -330,10 +330,10 @@ binding_last = binding_left = KEY_LEFT binding_right = KEY_RIGHT binding_up = KEY_UP -binding_win_down = KEY_DOWN -binding_win_left = KEY_LEFT -binding_win_right = KEY_RIGHT -binding_win_up = KEY_UP +with_win_down = KEY_DOWN +with_win_left = KEY_LEFT +with_win_right = KEY_RIGHT +with_win_up = KEY_UP duration = 300 gap = 20 send_win_down = @@ -341,11 +341,6 @@ send_win_last = send_win_left = send_win_right = send_win_up = -with_win_down = -with_win_last = -with_win_left = KEY_LEFT -with_win_right = KEY_RIGHT -with_win_up = KEY_UP wraparound = false [wayfire-shell] -- cgit v1.2.3