This commit is contained in:
jay 2023-06-23 14:35:31 +08:00
parent d15b486a6f
commit 6e285c455c
5 changed files with 48 additions and 8 deletions

View File

@ -592,12 +592,14 @@ require'nvim-tree'.setup {
} }
require('aerial').setup({ require('aerial').setup({
backends = {"lsp", "treesitter"},
-- optionally use on_attach to set keymaps when aerial has attached to a buffer -- optionally use on_attach to set keymaps when aerial has attached to a buffer
on_attach = function(bufnr) on_attach = function(bufnr)
-- Jump forwards/backwards with '{' and '}' -- Jump forwards/backwards with '{' and '}'
vim.keymap.set('n', '{', '<cmd>AerialPrev<CR>', {buffer = bufnr}) vim.keymap.set('n', '{', '<cmd>AerialPrev<CR>', {buffer = bufnr})
vim.keymap.set('n', '}', '<cmd>AerialNext<CR>', {buffer = bufnr}) vim.keymap.set('n', '}', '<cmd>AerialNext<CR>', {buffer = bufnr})
end, end,
-- filter_kind = false,
filter_kind = { filter_kind = {
"Class", "Class",
"Constructor", "Constructor",
@ -607,8 +609,28 @@ require('aerial').setup({
"Module", "Module",
"Method", "Method",
"Struct", "Struct",
"Variable",
"Namespace",
"Package",
"Field",
"Constant",
},
manage_folds = false,
link_tree_to_folds = false,
-- Show box drawing characters for the tree hierarchy
show_guides = true,
-- Customize the characters used when show_guides = true
guides = {
-- When the child item has a sibling below it
mid_item = "├─",
-- When the child item is the last in the list
last_item = "└─",
-- When there are nested child guides to the right
nested_top = "│ ",
-- Raw indentation
whitespace = " ",
}, },
close_on_select = false
}) })
-- You probably also want to set a keymap to toggle aerial -- You probably also want to set a keymap to toggle aerial
vim.keymap.set('n', '<F8>', '<cmd>AerialToggle!<CR>') vim.keymap.set('n', '<F8>', '<cmd>AerialToggle!<CR>')

View File

@ -202,6 +202,7 @@ output.null = "#808080"
local = postgresql://postgres:chuxu7ec@localhost local = postgresql://postgres:chuxu7ec@localhost
home-lab = postgresql://postgres:pass.ok=1@192.168.200.16 home-lab = postgresql://postgres:pass.ok=1@192.168.200.16
ln-prod = postgresql://postgres:CyMrS127VIx@10.140.0.90 ln-prod = postgresql://postgres:CyMrS127VIx@10.140.0.90
ln-lab = postgresql://postgres:eKZJFdG9L5vaREXN@192.168.88.15:32014
professorx-dev = postgresql://postgres:e8b960296e22@192.168.88.6 professorx-dev = postgresql://postgres:e8b960296e22@192.168.88.6
k8s-gcp-dev = postgresql://postgres:eKZJFdG9L5vaREXN@10.140.0.51:32008 k8s-gcp-dev = postgresql://postgres:eKZJFdG9L5vaREXN@10.140.0.51:32008

View File

@ -38,9 +38,8 @@ output * bg /home/jay/.config/sway/bg.png fill
# exec_always xdg-desktop-portal -r # exec_always xdg-desktop-portal -r
# exec_always xdg-desktop-portal-wlr # exec_always xdg-desktop-portal-wlr
exec ~/bin/wayland-env.sh # exec env XDG_CONFIG_HOME=/home/jay/.config gentoo-pipewire-launcher restart &
exec --no-startup-id dbus-update-activation-environment --all # exec --no-startup-id dbus-update-activation-environment --all
exec gentoo-pipewire-launcher &
exec_always kanshi exec_always kanshi
exec dex -a -e sway exec dex -a -e sway
exec mako exec mako
@ -118,6 +117,10 @@ input type:touchpad {
bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -10%; pkill -RTMIN+8 waybar" bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -10%; pkill -RTMIN+8 waybar"
bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+8 waybar" bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+8 waybar"
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86MonBrightnessUp exec "xbacklight -inc 5" bindsym XF86MonBrightnessUp exec "xbacklight -inc 5"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 5" bindsym XF86MonBrightnessDown exec "xbacklight -dec 5"
# #

View File

@ -39,7 +39,7 @@
}, },
"custom/pipewire": { "custom/pipewire": {
"exec": "/home/jay/bin/get-volume.sh", "exec": "/home/jay/bin/get-volume.sh",
"interval": 60, "interval": "once",
"return-type": "json", "return-type": "json",
"signal": 8, "signal": 8,
"format": "{icon} {percentage}%", "format": "{icon} {percentage}%",

14
home/dot_pam_environment Normal file
View File

@ -0,0 +1,14 @@
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
GLFW_IM_MODULE=fcitx
SDL_IM_MODULE=fcitx
MOZ_ENABLE_WAYLAND=1
RTC_USE_PIPEWIRE=true
GDK_BACKEND=wayland,x11
QT_QPA_PLATFORM=wayland;xcb
CLUTTER_BACKEND=wayland
SDL_VIDEODRIVER=wayland
EDITOR=nvim