Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa17de12ac | ||
|
|
f80e8a9b8f | ||
|
|
46c2c5f97e | ||
|
|
f19d8c4f15 |
@@ -38,7 +38,7 @@ update_check = false
|
|||||||
|
|
||||||
## which search mode to use
|
## which search mode to use
|
||||||
## possible values: prefix, fulltext, fuzzy, skim
|
## possible values: prefix, fulltext, fuzzy, skim
|
||||||
search_mode = "fuzzy"
|
search_mode = "fulltext"
|
||||||
|
|
||||||
## which filter mode to use by default
|
## which filter mode to use by default
|
||||||
## possible values: "global", "host", "session", "directory", "workspace"
|
## possible values: "global", "host", "session", "directory", "workspace"
|
||||||
|
|||||||
@@ -1248,8 +1248,15 @@ end
|
|||||||
|
|
||||||
local function makespec_smartsplits()
|
local function makespec_smartsplits()
|
||||||
return {
|
return {
|
||||||
"mrjones2014/smart-splits.nvim",
|
"smart-splits-nvim/smart-splits.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
opts = {
|
||||||
|
mux = { backend = "smart-splits-backend-tmux" },
|
||||||
|
move = { at_edge = "wrap" },
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
{ "smart-splits-nvim/backend-tmux", main = "smart-splits-backend-tmux" },
|
||||||
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<M-h>", function() require("smart-splits").move_cursor_left() end, desc = "Go to Left Window" },
|
{ "<M-h>", function() require("smart-splits").move_cursor_left() end, desc = "Go to Left Window" },
|
||||||
|
|||||||
+14
-6
@@ -1,5 +1,5 @@
|
|||||||
add_newline = true
|
add_newline = true
|
||||||
right_format = """$cmd_duration"""
|
right_format = """$cmd_duration\n"""
|
||||||
|
|
||||||
[line_break]
|
[line_break]
|
||||||
disabled = false
|
disabled = false
|
||||||
@@ -8,17 +8,25 @@ disabled = false
|
|||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
min_time = 1000
|
disabled = true
|
||||||
format = 'underwent [$duration](bold yellow)'
|
|
||||||
show_milliseconds = true
|
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
truncation_length = 5
|
truncation_length = 5
|
||||||
truncate_to_repo = false
|
truncate_to_repo = false
|
||||||
truncation_symbol = '…/'
|
truncation_symbol = "…/"
|
||||||
repo_root_style = "red"
|
repo_root_style = "red"
|
||||||
before_repo_root_style = "cyan"
|
before_repo_root_style = "cyan"
|
||||||
repo_root_format = '[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) '
|
repo_root_format = """\
|
||||||
|
[$before_root_path]\
|
||||||
|
($before_repo_root_style)\
|
||||||
|
[$repo_root]\
|
||||||
|
($repo_root_style)\
|
||||||
|
[$path]\
|
||||||
|
($style)\
|
||||||
|
[$read_only]\
|
||||||
|
($read_only_style)\
|
||||||
|
\
|
||||||
|
"""
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
disabled = true
|
disabled = true
|
||||||
|
|||||||
+5
-9
@@ -255,14 +255,10 @@ bindsym {
|
|||||||
# Launch the file explorer
|
# Launch the file explorer
|
||||||
$mod+o exec pcmanfm
|
$mod+o exec pcmanfm
|
||||||
|
|
||||||
# Dismiss current notification
|
# Notifications
|
||||||
$mod+n exec swaync-client -c
|
$mod+n exec swaync-client --hide-latest
|
||||||
|
$mod+Shift+n exec swaync-client --close-latest
|
||||||
# Dismiss all notifications
|
$mod+m exec swaync-client -t -sw
|
||||||
$mod+Shift+n exec swaync-client -C
|
|
||||||
|
|
||||||
# Toggle the SwayNC control center panel
|
|
||||||
$mod+Shift+m exec swaync-client -t -sw
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# config tools
|
# config tools
|
||||||
@@ -277,7 +273,7 @@ mode "$mode_monitor" {
|
|||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
bindsym $mod+m mode "$mode_monitor"
|
bindsym $mod+Shift+m mode "$mode_monitor"
|
||||||
|
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
# AUTOSTART
|
# AUTOSTART
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
"dnd",
|
"dnd",
|
||||||
"mpris",
|
"mpris",
|
||||||
"volume",
|
"volume",
|
||||||
|
"backlight",
|
||||||
|
"buttons-grid",
|
||||||
"notifications"
|
"notifications"
|
||||||
],
|
],
|
||||||
"widget-config": {
|
"widget-config": {
|
||||||
@@ -36,6 +38,25 @@
|
|||||||
"mpris": {
|
"mpris": {
|
||||||
"image-size": 96,
|
"image-size": 96,
|
||||||
"image-radius": 8
|
"image-radius": 8
|
||||||
|
},
|
||||||
|
"volume": {
|
||||||
|
"label": "Volume",
|
||||||
|
"show-percentage": true
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
"label": "Brightness"
|
||||||
|
},
|
||||||
|
"buttons-grid": {
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"label": "WiFi",
|
||||||
|
"command": "nm-connection-editor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Bluetooth",
|
||||||
|
"command": "blueman-manager"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@define-color bg #0A0A0A;
|
@define-color bg rgba(10, 10, 10, 0.85);
|
||||||
@define-color border #333333;
|
@define-color border #333333;
|
||||||
@define-color text #FFFFFF;
|
@define-color text #FFFFFF;
|
||||||
@define-color focus #00E5FF;
|
@define-color focus #00E5FF;
|
||||||
@@ -38,7 +38,9 @@ button:hover {
|
|||||||
|
|
||||||
.widget-dnd,
|
.widget-dnd,
|
||||||
.widget-mpris,
|
.widget-mpris,
|
||||||
.widget-volume {
|
.widget-volume,
|
||||||
|
.widget-backlight,
|
||||||
|
.widget-buttons-grid {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 1px solid @border;
|
border: 1px solid @border;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
|
|||||||
+16
-23
@@ -60,11 +60,6 @@ set -g set-titles on
|
|||||||
######################
|
######################
|
||||||
### KEYBINDS ###
|
### KEYBINDS ###
|
||||||
######################
|
######################
|
||||||
# Config that is very close to a i3 window manager's keybinding.
|
|
||||||
|
|
||||||
# Set new prefix
|
|
||||||
# Note : you can press super key by set M.
|
|
||||||
# (tested with tty only)
|
|
||||||
set -g prefix M-a
|
set -g prefix M-a
|
||||||
|
|
||||||
# First remove *all* keybindings
|
# First remove *all* keybindings
|
||||||
@@ -85,15 +80,15 @@ bind-key -n End send-keys "\033[F"
|
|||||||
|
|
||||||
# Copy mode
|
# Copy mode
|
||||||
bind c copy-mode
|
bind c copy-mode
|
||||||
|
|
||||||
# clipboard control
|
|
||||||
bind p paste-buffer
|
bind p paste-buffer
|
||||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
bind -T copy-mode-vi y send-keys -X copy-selection
|
||||||
bind -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
|
bind -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
|
||||||
|
bind -T copy-mode-vi V send-keys -X select-line
|
||||||
|
bind -T copy-mode-vi Escape send-keys -X clear-selection
|
||||||
|
bind -T copy-mode-vi q send-keys -X cancel
|
||||||
|
bind -T copy-mode-vi Y send-keys -X copy-end-of-line
|
||||||
bind -T copy-mode-vi r send-keys -X rectangle-toggle
|
bind -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||||
bind -T copy-mode-vi Escape send-keys -X cancel
|
|
||||||
bind -T copy-mode-vi q send-keys -X clear-selection
|
|
||||||
|
|
||||||
# Rename window
|
# Rename window
|
||||||
bind , command-prompt "rename-window %%"
|
bind , command-prompt "rename-window %%"
|
||||||
@@ -194,28 +189,26 @@ bind b send-keys -R \; clear-history \; send-keys Enter
|
|||||||
# various plugins
|
# various plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
||||||
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
### PANE CONTROL ###
|
### PANE CONTROL ###
|
||||||
######################
|
######################
|
||||||
|
|
||||||
set -g @plugin 'mrjones2014/smart-splits.nvim'
|
set -g @plugin 'smart-splits-nvim/backend-tmux'
|
||||||
|
|
||||||
# Optional configurations with their default values if omitted:
|
set -g @smart-splits_at_edge 'wrap'
|
||||||
|
set -g @smart-splits_resize_step_size '3'
|
||||||
|
|
||||||
set -g @smart-splits_no_wrap '' # to disable wrapping. (any value disables wrapping)
|
set -g @smart-splits_move_left_key 'M-h'
|
||||||
|
set -g @smart-splits_move_down_key 'M-j'
|
||||||
|
set -g @smart-splits_move_up_key 'M-k'
|
||||||
|
set -g @smart-splits_move_right_key 'M-l'
|
||||||
|
|
||||||
set -g @smart-splits_move_left_key 'M-h' # key-mapping for navigation.
|
set -g @smart-splits_resize_left_key 'C-h'
|
||||||
set -g @smart-splits_move_down_key 'M-j' # --"--
|
set -g @smart-splits_resize_down_key 'C-j'
|
||||||
set -g @smart-splits_move_up_key 'M-k' # --"--
|
set -g @smart-splits_resize_up_key 'C-k'
|
||||||
set -g @smart-splits_move_right_key 'M-l' # --"--
|
set -g @smart-splits_resize_right_key 'C-l'
|
||||||
|
|
||||||
set -g @smart-splits_resize_left_key 'C-h' # key-mapping for resizing.
|
|
||||||
set -g @smart-splits_resize_down_key 'C-j' # --"--
|
|
||||||
set -g @smart-splits_resize_up_key 'C-k' # --"--
|
|
||||||
set -g @smart-splits_resize_right_key 'C-l' # --"--
|
|
||||||
|
|
||||||
set -g @smart-splits_resize_step_size '3' # change the step-size for resizing.
|
set -g @smart-splits_resize_step_size '3' # change the step-size for resizing.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user