1
0
Fork 0

borrar archivos viejos, sigue conf experimental de wezterm, arreglar

func de noplugins, servicio de mail para kde
This commit is contained in:
deadguy 2024-01-27 13:57:25 -03:00
parent 5d83aab995
commit 061c43820f
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
6 changed files with 308 additions and 435 deletions

View File

@ -8,4 +8,5 @@ export XCURSOR_PATH="${XCURSOR_PATH}:~/.local/share/icons"
export SSH_ASKPASS="/bin/ksshaskpass"
export SSH_ASKPASS_REQUIRE=prefer
runsvdir -P ~/.local/service.k &
exec dbus-launch --exit-with-session startplasma-x11

View File

@ -1,98 +0,0 @@
window:
dimensions:
columns: 140
lines: 30
padding:
x: 10
y: 0
dynamic_title: true
opacity: 0.9
scrolling:
history: 10000
# Font configuration
font:
normal:
family: berkeley mono variable
style: Regular
italic:
family: berkeley mono variable
style: Italic
bold:
family: berkeley mono variable
style: Bold
# Point size
size: 11
# Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
bell:
animation: EaseOutExpo
duration: 1
color: '0x333333'
colors:
# Default colors
primary:
background: "0x080808"
foreground: "0xB3B1AD"
# Normal colors
normal:
black: "#2e2e2e"
red: "#ef2f27"
green: "#519f50"
yellow: "#faa030"
blue: "#34608d"
magenta: "#e02c6d"
cyan: "#0aaeb3"
white: "#d0d0d0"
# Bright colors
bright:
black: "#666666"
red: "#eb6655"
green: "#98bc37"
yellow: "#ffe64d"
blue: "#008bbd"
magenta: "#ff5c8f"
cyan: "#6fc3df"
white: "#fcfcfc"
selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
save_to_clipboard: true
cursor:
style: Beam
unfocused_hollow: true
live_config_reload: true
mouse:
hide_when_typing: true
hints:
enabled:
- regex: "(magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
command: xdg-open
post_processing: true
mouse:
enabled: true
binding:
key: U
mods: Control|Shift

View File

@ -1,187 +0,0 @@
[colors]
background = #DD080808
foreground = ${xrdb:color7}
foreground-alt = ${xrdb:color8}
primary = ${xrdb:color11}
secondary = ${xrdb:color3}
alert = ${xrdb:color9}
fecha = ${xrdb:color10}
wifi = ${xrdb:color12}
cartas = ${xrdb:color13}
[bar/LaBarra]
; monitor = ${env:MONITOR:}
width = 100%
height = 22
offset-x = 0
offset-y = 0
radius = 0
fixed-center = true
enable-ipc = true
locale = es_AR.UTF-8
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = ${colors.background}
border-size = 2
border-color = ${colors.background}
module-margin = 2
font-0 = System Charcoal:size=12;1
font-1 = System Charcoal:weight=bold:size=12;1
font-2 = JetBrainsMono Nerd Font:size=12;1
font-3 = Noto Color Emoji:pixelsize=16:scale=10;1
modules-left = bspwm
modules-right = wlan correo temp_nvm temp_cpu temp_gpu temp_jun temp_mem date
tray-position = none
override-redirect = false
wm-restack = bspwm
[module/bspwm]
type = internal/bspwm
pin-workspaces = false
enable-click = false
enable-scroll = false
label-focused = [%index%]
label-focused-padding = 1
label-focused-foreground = ${colors.primary}
label-focused-font = font-1
label-occupied = " %index% "
label-occupied-padding = 1
label-occupied-foreground = ${colors.secondary}
label-urgent = "%index%! "
label-urgent-foreground = ${colors.alert}
label-urgent-padding = 1
label-empty = " %index% "
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 1
[module/wlan]
type = internal/network
interface = wlp8s0
interval = 3.0
format-connected = <label-connected>
format-disconnected =
label-connected = 📡 %signal%
label-connected-foreground = ${colors.wifi}
[module/date]
type = internal/date
interval = 5
date = "%a %d"
time = "%R"
label = %date% %time%
label-foreground = ${colors.fecha}
[module/correo]
type = custom/script
exec = cartas
interval = 300
format = <label>
format-foreground = ${colors.cartas}
label = 📥 %output%
[module/temp_mem]
type = internal/temperature
; Full path of temperature sysfs path
; Use `sensors` to find preferred temperature source, then run
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
; to find path to desired file
; Default reverts to thermal zone setting
hwmon-path = /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0/hwmon/hwmon1/temp3_input
base-temperature = 25
warn-temperature = 90
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = mem: %temperature-c%
label-warn = mem: %temperature-c%
label-warn-foreground = #eb6655
ramp-0 = ❄
ramp-1 = 🌡
ramp-2 = 🔥
[module/temp_gpu]
type = internal/temperature
hwmon-path = /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0/hwmon/hwmon1/temp1_input
base-temperature = 25
warn-temperature = 90
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = gpu: %temperature-c%
label-warn = gpu: %temperature-c%
label-warn-foreground = #eb6655
ramp-0 = ❄
ramp-1 = 🌡
ramp-2 = 🔥
[module/temp_jun]
type = internal/temperature
hwmon-path = /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0/hwmon/hwmon1/temp2_input
base-temperature = 25
warn-temperature = 90
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = jun: %temperature-c%
label-warn = jun: %temperature-c%
label-warn-foreground = #eb6655
ramp-0 = ❄
ramp-1 = 🌡
ramp-2 = 🔥
[module/temp_cpu]
type = internal/temperature
hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
base-temperature = 20
warn-temperature = 80
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = cpu: %temperature-c%
label-warn = cpu: %temperature-c%
label-warn-foreground = #eb6655
ramp-0 = ❄
ramp-1 = 🌡
ramp-2 = 🔥
[module/temp_nvm]
type = internal/temperature
hwmon-path = /sys/devices/pci0000:00/0000:00:02.2/0000:09:00.0/nvme/nvme0/hwmon0/temp1_input
base-temperature = 20
warn-temperature = 70
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = nvm: %temperature-c%
label-warn = nvm: %temperature-c%
label-warn-foreground = #eb6655
ramp-0 = ❄
ramp-1 = 🌡
ramp-2 = 🔥
[settings]
screenchange-reload = true
[global/wm]
margin-bottom = 0
; vim:ft=dosini

160
wezterm/wez-tmux/init.lua Normal file
View File

@ -0,0 +1,160 @@
local M = {}
local wezterm = require 'wezterm'
local act = wezterm.action
local mux = wezterm.mux
M.action = {
MovePaneToNewTab = wezterm.action_callback(function(_, pane)
local tab, _ = pane:move_to_new_tab()
tab:activate()
end),
RenameWorkspace = wezterm.action_callback(function(window, pane)
window:perform_action(
act.PromptInputLine {
description = 'Rename workspace: ',
action = wezterm.action_callback(function(_, _, line)
if not line or line == '' then
return
end
mux.rename_workspace(mux.get_active_workspace(), line)
end),
},
pane
)
end),
WorkspaceSelect = wezterm.action_callback(function(window, pane)
local active_workspace = mux.get_active_workspace()
local workspaces = mux.get_workspace_names()
local num_tabs_by_workspace = {}
for _, mux_window in ipairs(mux.all_windows()) do
local workspace = mux_window:get_workspace()
local num_tabs = #mux_window:tabs()
if num_tabs_by_workspace[workspace] then
num_tabs_by_workspace[workspace] = num_tabs_by_workspace[workspace] + num_tabs
else
num_tabs_by_workspace[workspace] = num_tabs
end
end
local choices = {
{
id = active_workspace,
label = active_workspace .. ': ' .. num_tabs_by_workspace[active_workspace] .. ' tabs (active)',
},
}
for _, workspace in ipairs(workspaces) do
if workspace ~= active_workspace then
table.insert(choices, {
id = workspace,
label = workspace .. ': ' .. num_tabs_by_workspace[workspace] .. ' tabs',
})
end
end
window:perform_action(
act.InputSelector {
title = 'Select Workspace',
choices = choices,
action = wezterm.action_callback(function(_, _, id, _)
if not id then
return
end
mux.set_active_workspace(id)
end),
},
pane
)
end),
}
---@param config unknown
---@param _ { }
function M.apply_to_config(config, _)
if not config.leader then
config.leader = { key = 'b', mods = 'CTRL' }
wezterm.log_warn 'No leader key set, using default: Ctrl-b'
end
local keys = {
{ key = config.leader.key, mods = 'LEADER|' .. config.leader.mods, action = act.SendKey(config.leader) },
-- General
{ key = 'p', mods = 'LEADER', action = M.action.ActivateCommandPalette },
{ key = 'Escape', mods = 'LEADER', action = M.action.ShowDebugOverlay },
{ key = "'", mods = 'LEADER', action = M.action.IncreaseFontSize },
{ key = '¿', mods = 'LEADER', action = M.action.DecreaseFontSize },
{ key = '0', mods = 'LEADER', action = M.action.ResetFontSize },
-- Workspaces
{ key = '$', mods = 'LEADER', action = M.action.RenameWorkspace },
{ key = 's', mods = 'LEADER', action = M.action.WorkspaceSelect },
{ key = '(', mods = 'LEADER', action = act.SwitchWorkspaceRelative(-1) },
{ key = ')', mods = 'LEADER', action = act.SwitchWorkspaceRelative(1) },
-- Tabs
{ key = 'Enter', mods = 'LEADER', action = act.SpawnTab 'CurrentPaneDomain' },
{
key = 'x',
mods = 'LEADER|SHIFT',
action = act.CloseCurrentTab { confirm = true },
},
{ key = 'p', mods = 'LEADER|CTRL', action = act.ActivateTabRelative(-1) },
{ key = 'n', mods = 'LEADER|CTRL', action = act.ActivateTabRelative(1) },
{ key = 'l', mods = 'LEADER', action = act.ActivateLastTab },
-- Panes
{
key = '|',
mods = 'LEADER',
action = act.SplitHorizontal {
domain = 'CurrentPaneDomain',
},
},
{
key = '-',
mods = 'LEADER',
action = act.SplitVertical {
domain = 'CurrentPaneDomain',
},
},
{ key = ']', mods = 'LEADER', action = act.RotatePanes 'CounterClockwise' },
{ key = '[', mods = 'LEADER', action = act.RotatePanes 'Clockwise' },
{ key = 'LeftArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Left' },
{ key = 'DownArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Down' },
{ key = 'UpArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Up' },
{ key = 'RightArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Right' },
{ key = 'q', mods = 'LEADER', action = act.PaneSelect { mode = 'Activate' } },
{ key = 'z', mods = 'LEADER', action = act.TogglePaneZoomState },
{ key = '!', mods = 'LEADER', action = M.action.MovePaneToNewTab },
{ key = 'LeftArrow', mods = 'LEADER|ALT', action = act.AdjustPaneSize { 'Left', 5 } },
{ key = 'DownArrow', mods = 'LEADER|ALT', action = act.AdjustPaneSize { 'Down', 5 } },
{ key = 'UpArrow', mods = 'LEADER|ALT', action = act.AdjustPaneSize { 'Up', 5 } },
{ key = 'RightArrow', mods = 'LEADER|ALT', action = act.AdjustPaneSize { 'Right', 5 } },
{ key = 'x', mods = 'LEADER', action = act.CloseCurrentPane { confirm = true } },
-- Copy Mode
{ key = '{', mods = 'LEADER', action = act.ActivateCopyMode },
{ key = '}', mods = 'LEADER', action = act.QuickSelect },
}
for i = 1, 9 do
table.insert(keys, { key = tostring(i), mods = 'LEADER', action = act.ActivateTab(i - 1) })
end
if not config.keys then
config.keys = {}
end
for _, key in ipairs(keys) do
table.insert(config.keys, key)
end
end
return M

View File

@ -135,150 +135,152 @@ end)
config.use_dead_keys = false
config.disable_default_key_bindings = true
config.leader = { key = 'a', mods = 'ALT', timeout_milliseconds = 3000 }
config.keys = {
{
mods = 'LEADER|SHIFT',
key = 'R',
action = wezterm.action.ReloadConfiguration,
},
{
mods = 'LEADER',
key = 'P',
action = wezterm.action.ActivateCommandPalette,
},
{
mods = 'LEADER',
key = '}',
action = wezterm.action.ActivateCopyMode,
},
{
mods = 'LEADER',
key = '{',
action = wezterm.action.QuickSelect,
},
{
mods = 'LEADER',
key = 'q',
action = wezterm.action.ShowDebugOverlay,
},
{
mods = 'LEADER',
key = "'",
action = wezterm.action.IncreaseFontSize,
},
{
mods = 'LEADER',
key = '¿',
action = wezterm.action.DecreaseFontSize,
},
{
mods = 'LEADER',
key = '0',
action = wezterm.action.ResetFontSize,
},
config.leader = { key = 'a', mods = 'ALT' }
-- panes
{
mods = 'LEADER',
key = '-',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
{
mods = 'LEADER',
key = '|',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
mods = 'LEADER',
key = 'z',
action = wezterm.action.TogglePaneZoomState,
},
{
mods = 'LEADER',
key = 'LeftArrow',
action = wezterm.action.ActivatePaneDirection 'Left',
},
{
mods = 'LEADER',
key = 'RightArrow',
action = wezterm.action.ActivatePaneDirection 'Right',
},
{
mods = 'LEADER',
key = 'UpArrow',
action = wezterm.action.ActivatePaneDirection 'Up',
},
{
mods = 'LEADER',
key = 'DownArrow',
action = wezterm.action.ActivatePaneDirection 'Down',
},
{
mods = 'LEADER',
key = 'x',
action = wezterm.action.CloseCurrentPane { confirm = true },
},
{
mods = 'LEADER',
key = ')',
action = wezterm.action.RotatePanes 'Clockwise',
},
{
mods = 'LEADER',
key = '<',
action = wezterm.action.PaneSelect { mode = 'SwapWithActive' },
},
{
mods = 'LEADER|ALT',
key = 'LeftArrow',
action = wezterm.action.AdjustPaneSize { 'Left', 1 },
},
{
mods = 'LEADER|ALT',
key = 'RightArrow',
action = wezterm.action.AdjustPaneSize { 'Right', 1 },
},
{
mods = 'LEADER|ALT',
key = 'UpArrow',
action = wezterm.action.AdjustPaneSize { 'Up', 1 },
},
{
mods = 'LEADER|ALT',
key = 'DownArrow',
action = wezterm.action.AdjustPaneSize { 'Down', 1 },
},
-- tabs
{
mods = 'LEADER',
key = 'Enter',
action = wezterm.action.SpawnTab 'DefaultDomain',
},
{
mods = 'LEADER|SHIFT',
key = 'x',
action = wezterm.action.CloseCurrentTab { confirm = true },
},
{
mods = 'LEADER|CTRL',
key = 'p',
action = wezterm.action.ActivateTabRelative(-1),
},
{
mods = 'LEADER|CTRL',
key = 'n',
action = wezterm.action.ActivateTabRelative(1),
},
}
for i = 1, 8 do
table.insert(config.keys, {
key = tostring(i),
mods = 'LEADER',
action = wezterm.action.ActivateTab(i - 1),
})
end
require('wez-tmux').apply_to_config(config, {})
-- config.keys = {
-- {
-- mods = 'LEADER|SHIFT',
-- key = 'R',
-- action = wezterm.action.ReloadConfiguration,
-- },
-- {
-- mods = 'LEADER',
-- key = 'P',
-- action = wezterm.action.ActivateCommandPalette,
-- },
-- {
-- mods = 'LEADER',
-- key = '}',
-- action = wezterm.action.ActivateCopyMode,
-- },
-- {
-- mods = 'LEADER',
-- key = '{',
-- action = wezterm.action.QuickSelect,
-- },
-- {
-- mods = 'LEADER',
-- key = 'q',
-- action = wezterm.action.ShowDebugOverlay,
-- },
-- {
-- mods = 'LEADER',
-- key = "'",
-- action = wezterm.action.IncreaseFontSize,
-- },
-- {
-- mods = 'LEADER',
-- key = '¿',
-- action = wezterm.action.DecreaseFontSize,
-- },
-- {
-- mods = 'LEADER',
-- key = '0',
-- action = wezterm.action.ResetFontSize,
-- },
--
-- -- panes
-- {
-- mods = 'LEADER',
-- key = '-',
-- action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
-- },
-- {
-- mods = 'LEADER',
-- key = '|',
-- action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
-- },
-- {
-- mods = 'LEADER',
-- key = 'z',
-- action = wezterm.action.TogglePaneZoomState,
-- },
-- {
-- mods = 'LEADER',
-- key = 'LeftArrow',
-- action = wezterm.action.ActivatePaneDirection 'Left',
-- },
-- {
-- mods = 'LEADER',
-- key = 'RightArrow',
-- action = wezterm.action.ActivatePaneDirection 'Right',
-- },
-- {
-- mods = 'LEADER',
-- key = 'UpArrow',
-- action = wezterm.action.ActivatePaneDirection 'Up',
-- },
-- {
-- mods = 'LEADER',
-- key = 'DownArrow',
-- action = wezterm.action.ActivatePaneDirection 'Down',
-- },
-- {
-- mods = 'LEADER',
-- key = 'x',
-- action = wezterm.action.CloseCurrentPane { confirm = true },
-- },
-- {
-- mods = 'LEADER',
-- key = ')',
-- action = wezterm.action.RotatePanes 'Clockwise',
-- },
-- {
-- mods = 'LEADER',
-- key = '<',
-- action = wezterm.action.PaneSelect { mode = 'SwapWithActive' },
-- },
-- {
-- mods = 'LEADER|ALT',
-- key = 'LeftArrow',
-- action = wezterm.action.AdjustPaneSize { 'Left', 1 },
-- },
-- {
-- mods = 'LEADER|ALT',
-- key = 'RightArrow',
-- action = wezterm.action.AdjustPaneSize { 'Right', 1 },
-- },
-- {
-- mods = 'LEADER|ALT',
-- key = 'UpArrow',
-- action = wezterm.action.AdjustPaneSize { 'Up', 1 },
-- },
-- {
-- mods = 'LEADER|ALT',
-- key = 'DownArrow',
-- action = wezterm.action.AdjustPaneSize { 'Down', 1 },
-- },
--
-- -- tabs
-- {
-- mods = 'LEADER',
-- key = 'Enter',
-- action = wezterm.action.SpawnTab 'DefaultDomain',
-- },
-- {
-- mods = 'LEADER|SHIFT',
-- key = 'x',
-- action = wezterm.action.CloseCurrentTab { confirm = true },
-- },
-- {
-- mods = 'LEADER|CTRL',
-- key = 'p',
-- action = wezterm.action.ActivateTabRelative(-1),
-- },
-- {
-- mods = 'LEADER|CTRL',
-- key = 'n',
-- action = wezterm.action.ActivateTabRelative(1),
-- },
-- }
--
-- for i = 1, 9 do
-- table.insert(config.keys, {
-- key = tostring(i),
-- mods = 'LEADER',
-- action = wezterm.action.ActivateTab(i - 1),
-- })
-- end
return config

View File

@ -1,16 +1,11 @@
function v {
if [ "$(fd -tf --exact-depth=1 -e lua -e py -e rs)" ]; then
if [ "$(fd -tf -e lua -e py -e rs)" ]; then
"$EDITOR" "$*"
else
nvim --cmd ":lua vim.g.noplugins=1" "$*"
fi
}
function ae {
cd ~/.local/bin || exit
fd -c always -tf -d 1 --strip-cwd-prefix | fzf +m --cycle --preview-window=right:90%:wrap --preview='bat --color=always {}' --height='45%' | xargs -r edit_or
}
function ytp {
yt-dlp --add-metadata --no-youtube-include-dash-manifest -i --no-cache-dir --geo-bypass -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' "$@"
}