1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00
Files
linux-nixos-hyprland-config…/home/.config/wezterm/wezterm.lua
xnm fd1a80a9c3 small improvements & security update
changelog:
- added additional commands for nixos `gc` in fish
- changed default app to `mpv` for gif images in mimeapps.list
- added config for clamav-scanner
- added `fangfrisch` to clamav
- sandboxed some apps & added profiles through firejail
- changed vscode to vscodium
- updated README
2024-05-04 20:00:29 +03:00

158 lines
3.1 KiB
Lua

local wezterm = require 'wezterm'
local act = wezterm.action
return {
enable_wayland = true;
color_scheme = 'Catppuccin Macchiato',
enable_tab_bar = false,
inactive_pane_hsb = {
saturation = 0.9,
brightness = 0.7,
},
-- enable_scroll_bar = true,
background = {
{
source = {
Color="#24273a"
},
height = "100%",
width = "100%",
},
{
source = {
File = '/home/xnm/.config/wezterm/lain.gif',
},
opacity = 0.05,
vertical_align = "Middle",
horizontal_align = "Center",
height = "1424",
width = "2024",
repeat_y = "NoRepeat",
repeat_x = "NoRepeat",
},
},
launch_menu = {
{
args = { 'btop' },
},
{
args = { 'cmatrix' },
},
{
args = { 'pipes-rs' },
},
},
keys = {
{
key = 'j',
mods = 'CTRL|SHIFT',
action = act.ScrollByPage(1)
},
{
key = 'k',
mods = 'CTRL|SHIFT',
action = act.ScrollByPage(-1)
},
{
key = 'g',
mods = 'CTRL|SHIFT',
action = act.ScrollToTop
},
{
key = 'e',
mods = 'CTRL|SHIFT',
action = act.ScrollToBottom
},
{
key = 'p',
mods = 'CTRL|SHIFT|SUPER',
action = act.PaneSelect
},
{
key = 'o',
mods = 'CTRL|SHIFT|SUPER',
action = act.PaneSelect { mode = "SwapWithActive" }
},
{
key = '%',
mods = 'CTRL|SHIFT|SUPER',
action = act.SplitVertical { domain = 'CurrentPaneDomain' }
},
{
key = '"',
mods = 'CTRL|SHIFT|SUPER',
action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }
},
{
key = 'LeftArrow',
mods = 'CTRL|SHIFT|SUPER',
action = act.AdjustPaneSize { 'Left', 1 }
},
{
key = 'RightArrow',
mods = 'CTRL|SHIFT|SUPER',
action = act.AdjustPaneSize { 'Right', 1 }
},
{
key = 'UpArrow',
mods = 'CTRL|SHIFT|SUPER',
action = act.AdjustPaneSize { 'Up', 1 }
},
{
key = 'DownArrow',
mods = 'CTRL|SHIFT|SUPER',
action = act.AdjustPaneSize { 'Down', 1 }
},
{
key = 'h',
mods = 'CTRL|SHIFT|SUPER',
action = act.ActivatePaneDirection 'Left'
},
{
key = 'l',
mods = 'CTRL|SHIFT|SUPER',
action = act.ActivatePaneDirection 'Right'
},
{
key = 'k',
mods = 'CTRL|SHIFT|SUPER',
action = act.ActivatePaneDirection 'Up'
},
{
key = 'j',
mods = 'CTRL|SHIFT|SUPER',
action = act.ActivatePaneDirection 'Down'
},
{
key = 'z',
mods = 'CTRL|SHIFT|SUPER',
action = act.TogglePaneZoomState
},
{
key = 'q',
mods = 'CTRL|SHIFT|SUPER',
action = act.CloseCurrentPane { confirm = true }
},
{
key = 'b',
mods = 'CTRL|SHIFT|SUPER',
action = act.RotatePanes 'CounterClockwise'
},
{
key = 'n',
mods = 'CTRL|SHIFT|SUPER',
action = act.RotatePanes 'Clockwise'
},
{
key = 'd',
mods = 'CTRL|SHIFT',
action = act.ShowLauncher
},
{
key = ':',
mods = 'CTRL|SHIFT',
action = act.ClearSelection
},
},
}