This commit is contained in:
jay 2024-06-26 00:25:23 +08:00
parent 4464b3ad06
commit 99fe1caf19
7 changed files with 30 additions and 33 deletions

View File

@ -14,7 +14,7 @@ return {
g.go_fmt_fail_silently = 1 g.go_fmt_fail_silently = 1
g.go_fmt_command = "goimports" g.go_fmt_command = "goimports"
g.go_def_mode = 'godef' g.go_def_mode = 'gopls'
g.go_decls_includes = "func,type" g.go_decls_includes = "func,type"
g.go_highlight_types = 1 g.go_highlight_types = 1
g.go_highlight_fields = 1 g.go_highlight_fields = 1

View File

@ -135,6 +135,7 @@ return {
path = '~/vimwiki/', path = '~/vimwiki/',
syntax = 'markdown', syntax = 'markdown',
ext = '.md', ext = '.md',
custom_wiki2html = "~/bin/wiki2html.sh",
} }
} }
end end

View File

@ -93,6 +93,7 @@ input type:touchpad {
bindsym $alt+Shift+v exec ~/bin/auto-screenshot-monitor bindsym $alt+Shift+v exec ~/bin/auto-screenshot-monitor
# Start a terminal # Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec env ZSH_TMUX_AUTOCONNECT=false $term
# Kill focused window # Kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill

View File

@ -1,4 +1,4 @@
// vim: set ft=jsonc: // vim: set ft=jsonc :
{ {
"layer": "top", // Waybar at top layer "layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right) "position": "top", // Waybar position (top|bottom|left|right)
@ -15,6 +15,8 @@
"custom/sep", "custom/sep",
"network", "network",
"custom/sep", "custom/sep",
"bluetooth",
"custom/sep",
"custom/pipewire", "custom/pipewire",
"cpu", "cpu",
"memory", "memory",
@ -39,7 +41,7 @@
}, },
"custom/pipewire": { "custom/pipewire": {
"exec": "/home/jay/bin/get-volume.sh", "exec": "/home/jay/bin/get-volume.sh",
"interval": "once", "interval": 2,
"return-type": "json", "return-type": "json",
"signal": 8, "signal": 8,
"format": "{icon} {percentage}%", "format": "{icon} {percentage}%",
@ -123,12 +125,6 @@
"format-linked": "{ifname} (No IP) ", "format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠", "format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"wireplumber": {
"format": "{icon} {percentage}%",
"on-click": "helvum",
"format-muted": "",
"format-icons": ["", "", ""]
} }
} }

View File

@ -119,7 +119,8 @@ window#waybar.hidden {
#cpu, #cpu,
#memory, #memory,
#network { #network,
#bluetooth {
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
transition: none; transition: none;

View File

@ -10,6 +10,10 @@ run-shell "tmux setenv -g TMUX_VERSION_29 $(awk 'BEGIN {print (\"'$(tmux -V | se
set -g default-terminal screen-256color set -g default-terminal screen-256color
set-option -ga terminal-overrides ",*256col*:Tc" set-option -ga terminal-overrides ",*256col*:Tc"
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
# scrollback buffer n lines # scrollback buffer n lines
set -g history-limit 10000 set -g history-limit 10000

View File

@ -103,9 +103,3 @@ function minio-size {
function zfs-usage { function zfs-usage {
awk '/^size/ { print $1 " " $3 / 1048576 }' < /proc/spl/kstat/zfs/arcstats awk '/^size/ { print $1 " " $3 / 1048576 }' < /proc/spl/kstat/zfs/arcstats
} }
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/jay/apps/google-cloud-sdk/path.zsh.inc' ]; then . '/home/jay/apps/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/jay/apps/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/jay/apps/google-cloud-sdk/completion.zsh.inc'; fi