From 96775a04b90fcab9933e2cada28f0247ecf76699 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 19 Apr 2021 06:21:23 -0500 Subject: [PATCH] Adding kanshi, wayfire, taiwins configs --- kanshi/config | 3 + taiwins/config.lua | 32 ++++ wayfire/wayfire.ini | 399 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 434 insertions(+) create mode 100644 kanshi/config create mode 100644 taiwins/config.lua create mode 100644 wayfire/wayfire.ini diff --git a/kanshi/config b/kanshi/config new file mode 100644 index 0000000..496c445 --- /dev/null +++ b/kanshi/config @@ -0,0 +1,3 @@ +{ + output eDP-1 mode 3000x2000 position 0,0 scale 2 +} \ No newline at end of file diff --git a/taiwins/config.lua b/taiwins/config.lua new file mode 100644 index 0000000..a17ec74 --- /dev/null +++ b/taiwins/config.lua @@ -0,0 +1,32 @@ +local os = require "os" +local taiwins = require "taiwins" +-- get the compositor object from taiwins +local compositor = taiwins.compositor() + +-- general setup +compositor:panel_pos("bottom") +compositor:set_gaps(20, 20) +compositor:repeat_info(20, 500) + +-- matching display add setting mode +compositor:config_display("X11-0", { + ["enable"] = true, + ["position"] = {0, 0}, + ["mode"] = "1000x600"}) + +-- compositor:lock_in(5) -- onlonger available at the moment +-- compositor:wake() --this wakes up the compositor --on longer available at the moment + +-- bind builtin keybindings +compositor:bind_key("TW_TOGGLE_FLOATING", "s-t") +compositor:bind_key("TW_OPEN_CONSOLE", "C-x,C-p") + +-- bind user defined lua functions +function random_function() + os.execute('alacritty') +end +compositor:bind_key(random_function, "C-M-enter") + +for _,ws in ipairs(compositor:workspaces()) do + ws:set_layout('floating') +end diff --git a/wayfire/wayfire.ini b/wayfire/wayfire.ini new file mode 100644 index 0000000..bbb9500 --- /dev/null +++ b/wayfire/wayfire.ini @@ -0,0 +1,399 @@ +[alpha] +min_value = 0.100000 +modifier = + +[animate] +close_animation = zoom +duration = 200 +enabled_for = (type equals "toplevel" | (type equals "x-or" & focusable equals true)) +fade_duration = 400 +fade_enabled_for = type equals "overlay" +fire_duration = 10 +fire_enabled_for = none +fire_particle_size = 10.000000 +fire_particles = 542 +open_animation = zoom +startup_duration = 600 +zoom_duration = 200 +zoom_enabled_for = none + +[annotate] +clear_workspace = KEY_C +draw = BTN_LEFT +from_center = true +line_width = 3.000000 +method = draw +stroke_color = \#FF0000FF + +[autorotate-iio] +lock_rotation = false +rotate_down = KEY_J +rotate_left = KEY_H +rotate_right = KEY_L +rotate_up = KEY_K + +[autostart] +autostart_wf_shell = false +bar = waybar +bg = swaybg -i ~/Pictures/wallpapers/RoyalKing.png -m center +gamma = wlsunset +notifications = mako +outputs = kanshi +portal = /usr/libexec/xdg-desktop-portal + +[background-view] +command = mpv --loop=inf +file = + +[bench] +average_frames = 1 +frames_per_update = 3 +position = top_center + +[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 = 1.000000 +gaussian_degrade = 1 +gaussian_iterations = 2 +gaussian_offset = 1.000000 +kawase_degrade = 8 +kawase_iterations = 2 +kawase_offset = 2.000000 +method = kawase +saturation = 1.000000 +toggle = none + +[command] +binding_browser = KEY_B +binding_launcher = KEY_COMPOSE +binding_mute = KEY_MUTE +binding_screenshot = KEY_PRINT +binding_screenshot_interactive = KEY_PRINT +binding_terminal = KEY_ENTER +command_browser = qutebrowser +command_launcher = wofi --show drun +command_mute = pactl set-sink-mute @DEFAULT_SINK@ 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_volume_down = KEY_VOLUMEDOWN +repeatable_binding_volume_up = KEY_VOLUMEUP + +[core] +background_color = \#1A1A1AFF +close_top_view = KEY_C +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 decoration expo fast-switcher grid idle invert move oswitch place resize switcher vswitch window-rules wobbly zoom simple-tile blur scale alpha vswipe +preferred_decoration_mode = server +vheight = 2 +vwidth = 2 +xwayland = true + +[crosshair] +line_color = \#FF0000FF +line_width = 2 + +[cube] +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 = 0 + +[expo] +background = \#1A1A1AFF +duration = 300 +offset = 10 +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 +toggle = KEY_TAB + +[extra-gestures] +close_fingers = 20 +move_delay = 500 +move_fingers = 3 + +[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 = 300 +restore = KEY_DOWN | KEY_KP0 +slot_b = KEY_KP2 | KEY_J +slot_bl = KEY_KP1 +slot_br = KEY_KP3 +slot_c = KEY_UP | KEY_KP5 +slot_l = KEY_LEFT | KEY_KP4 | KEY_H +slot_r = KEY_RIGHT | KEY_KP6 | KEY_L +slot_t = KEY_KP8 | KEY_K +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 = -1 +screensaver_timeout = 3600 +toggle = none + +[input] +click_method = default +cursor_size = 24 +cursor_theme = breeze-snow +disable_touchpad_while_mouse = false +disable_touchpad_while_typing = true +gesture_sensitivity = 1.000000 +kb_capslock_default_state = false +kb_numlock_default_state = false +kb_repeat_delay = 180 +kb_repeat_rate = 200 +middle_emulation = false +modifier_binding_timeout = 400 +mouse_accel_profile = default +mouse_cursor_speed = 0.000000 +mouse_scroll_speed = 1.000000 +natural_scroll = true +scroll_method = default +tap_to_click = true +touchpad_accel_profile = default +touchpad_cursor_speed = 0.000000 +touchpad_scroll_speed = 1.000000 +xkb_layout = us +xkb_model = +xkb_options = +xkb_rules = evdev +xkb_variant = + +[input-device] +output = eDP-1 + +[invert] +preserve_hue = false +toggle = KEY_I + +[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 = 10 +workspace_switch_after = -1 + +[oswitch] +next_output = KEY_O +next_output_with_win = KEY_O + +[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 = 8 +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 +outer_horiz_gap_size = 20 +outer_vert_gap_size = 20 +tile_by_default = all + +[switcher] +next_view = KEY_TAB +prev_view = KEY_TAB +speed = 500 +view_thumbnail_scale = 1.000000 + +[vswipe] +background = \#1A1A1AFF +delta_threshold = 24.000000 +duration = 180 +enable_free_movement = false +enable_horizontal = true +enable_smooth_transition = false +enable_vertical = true +fingers = 4 +gap = 32.000000 +speed_cap = 0.050000 +speed_factor = 256.000000 +threshold = 0.350000 + +[vswitch] +background = \#1A1A1AFF +binding_down = KEY_DOWN +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 +duration = 300 +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 = none +toggle_fullscreen = none +toggle_maximize = none +toggle_showdesktop = none +toggle_sticky = none + +[wobbly] +friction = 2.000000 +grid_resolution = 6 +spring_k = 9.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 = 25.000000 +sensitivity = 24 + +[zoom] +modifier = +smoothing_duration = 300 +speed = 0.010000 +