Compare commits
2 Commits
28d1aee359
...
5468143a10
| Author | SHA1 | Date | |
|---|---|---|---|
| 5468143a10 | |||
| b3d67b9f2e |
+138
-52
@@ -1,58 +1,144 @@
|
|||||||
|
# Whether to enable mouse or not.
|
||||||
mouse = true
|
mouse = true
|
||||||
hide_blocked_users = true
|
# The program to open when the `keys.message_input.editor` keymap is pressed. Set the value to `"default"` to use `$EDITOR`.
|
||||||
messages_limit = 50
|
|
||||||
editor = "default"
|
editor = "default"
|
||||||
timestamps = true
|
|
||||||
timestamps_format = "01-02 15:04:05 (Z07:00)"
|
|
||||||
show_attachment_links = false
|
|
||||||
|
|
||||||
[keys]
|
# "default" (unknown), "online", "dnd", "idle", "invisible", "offline"
|
||||||
focus_guilds_tree = "Ctrl+O"
|
status = "default"
|
||||||
focus_messages_text = "Ctrl+P"
|
|
||||||
focus_message_input = "Ctrl+N"
|
# Whether to parse and render markdown in messages or not.
|
||||||
toggle_guilds_tree = "Ctrl+P"
|
markdown = true
|
||||||
select_previous = "Rune[k]"
|
hide_blocked_users = true
|
||||||
select_next = "Rune[j]"
|
show_attachment_links = true
|
||||||
select_first = "Rune[g]"
|
|
||||||
select_last = "Rune[G]"
|
# Use autocomplete_limit = 0 to disable autocompleting mentions
|
||||||
logout = "Ctrl+Shift+D"
|
# Note: tab completion will still work, but it won't show any list.
|
||||||
quit = "Ctrl+C"
|
autocomplete_limit = 20
|
||||||
[keys.guilds_tree]
|
|
||||||
select_current = "Enter"
|
# The number of messages to fetch when a text-based channel is selected from guilds tree. The minimum and maximum value is 0 and 100, respectively.
|
||||||
[keys.messages_text]
|
messages_limit = 50
|
||||||
select_reply = "Rune[s]"
|
|
||||||
select_pin = "Rune[p]"
|
[timestamps]
|
||||||
reply = "Rune[r]"
|
enabled = true
|
||||||
reply_mention = "Rune[R]"
|
# https://pkg.go.dev/time#Layout
|
||||||
delete = "Rune[d]"
|
format = "01-02 15:04:05 (Z07:00)"
|
||||||
yank = "Rune[y]"
|
|
||||||
open = "Rune[o]"
|
|
||||||
[keys.message_input]
|
|
||||||
send = "Enter"
|
|
||||||
editor = "Ctrl+E"
|
|
||||||
cancel = "Ctrl+D"
|
|
||||||
|
|
||||||
[notifications]
|
[notifications]
|
||||||
enabled = true
|
enabled = true
|
||||||
duration = 500
|
# The duration of the sound. Set the value to `0` to use default duration. This is only supported on Unix and Windows.
|
||||||
[notifications.sound]
|
duration = 0
|
||||||
enabled = true
|
[notifications.sound]
|
||||||
only_on_ping = false
|
enabled = true
|
||||||
|
only_on_ping = true
|
||||||
|
|
||||||
[theme]
|
# Global shortcuts
|
||||||
border_color = "default"
|
# Esc: Reset message selection or close the channel selection popup.
|
||||||
border_padding = [0, 0, 1, 1]
|
[keys]
|
||||||
title_color = "default"
|
focus_guilds_tree = "Ctrl+G"
|
||||||
background_color = "default"
|
focus_messages_list = "Ctrl+T"
|
||||||
[theme.guilds_tree]
|
focus_message_input = "Ctrl+Space"
|
||||||
auto_expand_folders = true
|
# Cycle focus between the widgets.
|
||||||
channel_color = "white"
|
focus_previous = "Ctrl+H"
|
||||||
graphics = true
|
focus_next = "Ctrl+L"
|
||||||
guild_color = "white"
|
# Hide/show the guilds tree.
|
||||||
private_channel_color = "white"
|
toggle_guilds_tree = "Ctrl+B"
|
||||||
[theme.messages_text]
|
quit = "Ctrl+C"
|
||||||
author_color = "aqua"
|
# Log out and remove the authentication token from keyring.
|
||||||
content_color = "white"
|
# Requires re-login upon restart.
|
||||||
emoji_color = "green"
|
logout = "Ctrl+D"
|
||||||
link_color = "blue"
|
|
||||||
attachment_color = "yellow"
|
# Only while focusing on the guilds tree
|
||||||
|
[keys.guilds_tree]
|
||||||
|
select_previous = "Rune[k]"
|
||||||
|
select_next = "Rune[j]"
|
||||||
|
select_first = "Rune[g]"
|
||||||
|
select_last = "Rune[G]"
|
||||||
|
# Select the currently highlighted text-based channel or expand a guild or channel.
|
||||||
|
select_current = "Enter"
|
||||||
|
yank_id = "Rune[i]"
|
||||||
|
collapse_parent_node = "Rune[-]"
|
||||||
|
move_to_parent_node = "Rune[p]"
|
||||||
|
|
||||||
|
# Only while focusing on sent messages
|
||||||
|
[keys.messages_list]
|
||||||
|
select_previous = "Rune[k]"
|
||||||
|
select_next = "Rune[j]"
|
||||||
|
select_first = "Rune[g]"
|
||||||
|
select_last = "Rune[G]"
|
||||||
|
# Select the message reference (reply) of the selected channel.
|
||||||
|
select_reply = "Rune[s]"
|
||||||
|
# Reply to the selected message.
|
||||||
|
reply = "Rune[r]"
|
||||||
|
# Reply (with mention) to the selected message.
|
||||||
|
reply_mention = "Rune[R]"
|
||||||
|
cancel = "Esc"
|
||||||
|
edit = "Rune[e]"
|
||||||
|
delete = "Rune[D]"
|
||||||
|
delete_confirm = "Rune[d]"
|
||||||
|
# Open the selected message's attachments or hyperlinks in the message
|
||||||
|
# using the default browser application.
|
||||||
|
open = "Rune[o]"
|
||||||
|
# Yank (copy) the selected message's content/url/id.
|
||||||
|
yank_content = "Rune[y]"
|
||||||
|
yank_url = "Rune[u]"
|
||||||
|
yank_id = "Rune[i]"
|
||||||
|
|
||||||
|
# Only while typing a message
|
||||||
|
# Alt+Enter: Insert a new line to the current text.
|
||||||
|
[keys.message_input]
|
||||||
|
# paste from clipboard (supports both text and images)
|
||||||
|
paste = "Ctrl+V"
|
||||||
|
send = "Enter"
|
||||||
|
# Remove existing text or cancel reply.
|
||||||
|
cancel = "Esc"
|
||||||
|
# Complete usernames when mentioning
|
||||||
|
tab_complete = "Tab"
|
||||||
|
|
||||||
|
open_editor = "Ctrl+E"
|
||||||
|
open_file_picker = "Ctrl+\\"
|
||||||
|
|
||||||
|
[keys.mentions_list]
|
||||||
|
up = "Ctrl+P"
|
||||||
|
down = "Ctrl+N"
|
||||||
|
|
||||||
|
# style = { foreground = "", background = "", attributes = "" or [""] }
|
||||||
|
[theme.title]
|
||||||
|
alignment = "left" # `"left"`, `"center"`, or `"right"`.
|
||||||
|
|
||||||
|
normal_style = { attributes = "dim" }
|
||||||
|
active_style = { foreground = "green", attributes = "bold" }
|
||||||
|
|
||||||
|
[theme.border]
|
||||||
|
enabled = true
|
||||||
|
padding = [0, 0, 1, 1] # [top, bottom, left, right]
|
||||||
|
|
||||||
|
normal_style = { attributes = "dim" }
|
||||||
|
active_style = { foreground = "green", attributes = "bold" }
|
||||||
|
|
||||||
|
# `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
|
||||||
|
normal_set = "round"
|
||||||
|
active_set = "round"
|
||||||
|
|
||||||
|
[theme.guilds_tree]
|
||||||
|
auto_expand_folders = true
|
||||||
|
# Give tree-like shape
|
||||||
|
graphics = true
|
||||||
|
graphics_color = "default"
|
||||||
|
|
||||||
|
[theme.messages_list]
|
||||||
|
reply_indicator = ">"
|
||||||
|
forwarded_indicator = "<"
|
||||||
|
|
||||||
|
mention_style = { foreground = "blue" }
|
||||||
|
emoji_style = { foreground = "green" }
|
||||||
|
url_style = { foreground = "blue" }
|
||||||
|
attachment_style = { foreground = "yellow" }
|
||||||
|
|
||||||
|
[theme.mentions_list]
|
||||||
|
# Note: width and height are capped to the avaliable space
|
||||||
|
# Minimum width
|
||||||
|
# 0 = make the list as wide as possible
|
||||||
|
min_width = 20
|
||||||
|
# Maximum height
|
||||||
|
# 0 = make the list as tall as needed
|
||||||
|
max_height = 0
|
||||||
|
|||||||
@@ -321,9 +321,6 @@ exec_always {
|
|||||||
# nwg-drawer
|
# nwg-drawer
|
||||||
nwg-drawer -r -c 7 -is 90 -mb 10 -ml 50 -mr 50 -mt 10
|
nwg-drawer -r -c 7 -is 90 -mb 10 -ml 50 -mr 50 -mt 10
|
||||||
|
|
||||||
# flashfocus
|
|
||||||
systemctl --user start flashfocus
|
|
||||||
|
|
||||||
# persist clipboard after close
|
# persist clipboard after close
|
||||||
pkill -x wl-clip-persist
|
pkill -x wl-clip-persist
|
||||||
wl-clip-persist --clipboard regular --all-mime-type-regex '(?i)^(?!image/x-inkscape-svg).+'
|
wl-clip-persist --clipboard regular --all-mime-type-regex '(?i)^(?!image/x-inkscape-svg).+'
|
||||||
|
|||||||
@@ -146,7 +146,6 @@ installmap = dict(
|
|||||||
# visuals
|
# visuals
|
||||||
"wlsunset", # eye saver
|
"wlsunset", # eye saver
|
||||||
"wdisplays", # ui for display settings
|
"wdisplays", # ui for display settings
|
||||||
"flashfocus", # quick flash when changing app in focus
|
|
||||||
# clipboard
|
# clipboard
|
||||||
"wl-clip-persist", # keep clipboard after close
|
"wl-clip-persist", # keep clipboard after close
|
||||||
# div
|
# div
|
||||||
@@ -380,7 +379,6 @@ def install_sway(overwrite: bool, reinstall: bool) -> None:
|
|||||||
run(["sudo", "cp", str(src), str(tgt)])
|
run(["sudo", "cp", str(src), str(tgt)])
|
||||||
run("sudo systemctl enable --now bluetooth".split())
|
run("sudo systemctl enable --now bluetooth".split())
|
||||||
# div app configs
|
# div app configs
|
||||||
run("systemctl --user enable --now flashfocus".split())
|
|
||||||
if (tgt := CFG_TGT / "waybar/config").exists(): # precedence over config.jsonc
|
if (tgt := CFG_TGT / "waybar/config").exists(): # precedence over config.jsonc
|
||||||
tgt.unlink()
|
tgt.unlink()
|
||||||
for sub in [
|
for sub in [
|
||||||
|
|||||||
Reference in New Issue
Block a user