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,7 +1,7 @@
// 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)
// "height": 30, // Waybar height (to be removed for auto height) // "height": 30, // Waybar height (to be removed for auto height)
"margin": "3 3 0 3", "margin": "3 3 0 3",
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
@ -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}%",
@ -57,11 +59,11 @@
"tooltip": false "tooltip": false
}, },
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"activated": "", "activated": "",
"deactivated": "" "deactivated": ""
} }
}, },
"tray": { "tray": {
// "icon-size": 21, // "icon-size": 21,
@ -76,9 +78,9 @@
"interval": 1 "interval": 1
}, },
"cpu": { "cpu": {
"format": " {usage}%({load})", "format": " {usage}%({load})",
"interval": 2, "interval": 2,
"tooltip": false "tooltip": false
}, },
"memory": { "memory": {
"interval": 10, "interval": 10,
@ -99,21 +101,21 @@
"format-icons": ["", "", "", "", "", "", "", "", ""] "format-icons": ["", "", "", "", "", "", "", "", ""]
}, },
"battery": { "battery": {
"states": { "states": {
// "good": 95, // "good": 95,
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%", "format-charging": "󰂄 {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": " {capacity}%",
"format-alt": "{icon} {time}", "format-alt": "{icon} {time}",
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module
// "format-full": "", // "format-full": "",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"battery#bat2": { "battery#bat2": {
"bat": "BAT2" "bat": "BAT2"
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface
@ -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