reorganize packages

This commit is contained in:
2025-10-20 18:29:59 +03:00
parent ec50d3f12f
commit 05bdb4abdc
35 changed files with 84 additions and 296 deletions

Binary file not shown.

View File

@@ -0,0 +1,22 @@
term = xterm-256color
theme = Invero Day
# Font
font-family = "Maple Mono NF"
font-size = 13
#font-thicken = true
adjust-cell-width = -7%
adjust-cell-height = -2
# Cursor
cursor-style = block
cursor-style-blink = false
mouse-hide-while-typing = true
shell-integration-features = no-cursor
# Window
window-padding-x = 4
window-padding-y = 0
window-padding-color = extend
macos-titlebar-style = native
macos-icon = custom

View File

@@ -0,0 +1,22 @@
palette = 0=#444444
palette = 1=#ff0000
palette = 2=#00af5f
palette = 3=#d75f00
palette = 4=#005fff
palette = 5=#5f5f87
palette = 6=#afd7ff
palette = 7=#eeeeee
palette = 8=#444444
palette = 9=#ff0000
palette = 10=#00af5f
palette = 11=#d75f00
palette = 12=#005fff
palette = 13=#5f5f87
palette = 14=#afd7ff
palette = 15=#eeeeee
background = #eeeeee
foreground = #444444
cursor-color = #005fff
selection-background = #dadada
selection-foreground = #444444

View File

@@ -0,0 +1,106 @@
-- wezterm.lua configuration file
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Environment variables
config.term="xterm-256color"
config.set_environment_variables = {
TERM = "xterm-256color",
}
-- Font configuration
config.font = wezterm.font('JetBrainsMono Nerd Font', {weight = 'Bold'})
-- config.freetype_render_target = "HorizontalLcd"
-- config.freetype_load_flags = 'NO_HINTING'
-- config.freetype_load_target = "Light"
config.bold_brightens_ansi_colors = false
local act = wezterm.action
config.font_size = 14
-- Alacritty's offset translates to cell_width and line_height in wezterm
-- Since your offset is 0, we're keeping default values
-- Window configuration
config.window_padding = {
left = 4,
right = 4,
top = 0,
bottom = 0,
}
-- config.window_decorations = "RESIZE|TITLE|MACOS_USE_BACKGROUND_COLOR_AS_TITLEBAR_COLOR|MACOS_FORCE_ENABLE_SHADOW" -- Similar to decorations_theme_variant = "Dark"
config.window_decorations = "TITLE|RESIZE"
config.use_resize_increments = false
-- Wezterm doesn't have direct equivalents for dynamic_padding and resize_increments
-- but we can set related options
-- Keyboard bindings
config.keys = {
{key="LeftArrow", mods="SUPER|SHIFT", action=wezterm.action{MoveTabRelative=-1}},
{key="RightArrow", mods="SUPER|SHIFT", action=wezterm.action{MoveTabRelative=1}},
-- Create new window
{
key = 'n',
mods = 'CMD',
action = wezterm.action.SpawnWindow,
},
-- Jump back one word (Alt+Left)
{
key = 'LeftArrow',
mods = 'ALT',
action = wezterm.action.SendString('\x1bb'),
},
-- Jump forward one word (Alt+Right)
{
key = 'RightArrow',
mods = 'ALT',
action = wezterm.action.SendString('\x1bf'),
},
-- Move to start of line (Cmd+Left)
{
key = 'LeftArrow',
mods = 'CMD',
action = wezterm.action.SendString('\x01'),
},
-- Move to end of line (Cmd+Right)
{
key = 'RightArrow',
mods = 'CMD',
action = wezterm.action.SendString('\x05'),
},
-- Delete backwards word (Alt+Backspace)
{
key = 'Backspace',
mods = 'ALT',
action = wezterm.action.SendString('\x1b\x7f'),
},
-- Delete backwards line (Cmd+Backspace)
{
key = 'Backspace',
mods = 'CMD',
action = wezterm.action.SendString('\x15'),
},
-- Delete forwards word (Alt+Delete)
{
key = 'Delete',
mods = 'ALT',
action = wezterm.action.SendString('\x1bd'),
},
-- Delete forwards line (Cmd+Delete)
{
key = 'Delete',
mods = 'CMD',
action = wezterm.action.SendString('\x0b'),
},
}
return config

View File

@@ -0,0 +1,68 @@
const version = "v11"
//console.info("WINDOW TAGGER STARTED - " + version)
const windows = Array.from({length: 9}, () => null)
for (let i = 0; i < 9; i++) {
registerShortcut(
`TagWindow${i+1}`,
`Tag current window to tag ${i+1}`,
`Meta+Shift+${i+1}`,
function() {
try {
//console.info(`Trying to tag at ${i+1}`)
if (!workspace.activeWindow) {
//console.info("No active window to tag")
return
}
//console.info(`Tag ${i+1}: ${workspace.activeWindow.caption}`)
for (let j = 0; j < 9; j++) {
if (windows[j] === workspace.activeWindow) {
windows[j] = null;
}
}
windows[i] = workspace.activeWindow
} catch (e) {
console.info(e)
}
}
);
registerShortcut(
`FocusWindow${i}`,
`Focus Window at tag ${i+1}`,
`Meta+${i+1}`,
function() {
try {
//console.info(`Total: ${windows.filter(w => w !== null).length}`)
windows.forEach(w => {
if (w) {
//console.info(`- ${w.caption}`)
}
})
if (!windows[i]) {
//console.info("Tag is empty")
return
}
if (windows[i] === workspace.activeWindow) {
windows[i].minimized = true
//console.info("Focusing already focused window")
return
}
try {
workspace.activeWindow = windows[i]
} catch (error ) {
// console.info(windows[i].valid, windows[i].deleted)
// console.info("Error: ", error)
windows[i] = null
}
} catch (e) {
// console.info(e)
}
}
);
}

View File

@@ -0,0 +1,21 @@
{
"KPlugin": {
"Name": "Window Tagger",
"Description": "Tag windows with numbers and quickly switch between them",
"Icon": "preferences-system-windows",
"Authors": [
{
"Email": "username@gmail.com",
"Name": "Firstname Lastname"
}
],
"Id": "window-tagger",
"Version": "1.0",
"License": "GPLv3",
"Website": "https://github.com/username/myscript"
},
"X-Plasma-API": "javascript",
"X-Plasma-MainScript": "code/main.js",
"KPackageStructure": "KWin/Script"
}

View File

@@ -0,0 +1 @@
/home/tomas/.local/share/kwin/scripts