feat: adds keyboard shortcut support

feat: adds wezterm
feat: adds cargo, flatpak and apt
This commit is contained in:
2024-08-22 22:44:20 +02:00
parent f87e08ec49
commit 819fb027bf
16 changed files with 617 additions and 151 deletions

View File

@ -3,14 +3,13 @@ reset-and-clear='<Primary><Shift>k'
[legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
background-color='rgb(23,20,33)'
cursor-blink-mode='on'
cursor-shape='underline'
default-size-columns=120
default-size-rows=30
font='MesloLGS Nerd Font 14'
font='MesloLGS NF 12'
foreground-color='rgb(208,207,204)'
use-system-font=false
use-theme-colors=false
visible-name='Ubuntu'
[legacy/profiles:/legacy/keybindings]
reset-and-clear='<Primary><Shift>k'
@ -21,10 +20,11 @@ cursor-blink-mode='on'
cursor-shape='underline'
default-size-columns=120
default-size-rows=30
font='MesloLGS Nerd Font 14'
font='MesloLGS NF 12'
foreground-color='rgb(208,207,204)'
use-system-font=false
use-theme-colors=false
visible-name='Ubuntu'
[legacy/profiles:/legacy/profiles:/legacy/keybindings]
reset-and-clear='<Primary><Shift>k'
@ -53,3 +53,17 @@ font='MesloLGS Nerd Font 14'
foreground-color='rgb(208,207,204)'
use-system-font=false
use-theme-colors=false
[legacy/profiles:/legacy/profiles:/legacy/profiles:/legacy/profiles:/legacy/keybindings]
reset-and-clear='<Primary><Shift>k'
[legacy/profiles:/legacy/profiles:/legacy/profiles:/legacy/profiles:/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
background-color='rgb(23,20,33)'
cursor-blink-mode='on'
cursor-shape='underline'
default-size-columns=120
default-size-rows=30
font='MesloLGS Nerd Font 14'
foreground-color='rgb(208,207,204)'
use-system-font=false
use-theme-colors=false

View File

@ -0,0 +1,7 @@
{
"shortcuts": {
"<Primary><Alt>e": "nautilus",
"<Primary><Alt>t": "wezterm",
"<Shift><Alt>space": "1password --quick-access"
}
}

2
config/ssh/config Normal file
View File

@ -0,0 +1,2 @@
Host *
IdentityAgent ~/.1password/agent.sock

65
config/wezterm.lua Normal file
View File

@ -0,0 +1,65 @@
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
config.font = wezterm.font("MesloLGS NF")
config.keys = {
-- Ctrl+K for to clear the terminal
{
key = 'k',
mods = 'CTRL',
action = wezterm.action{ClearScrollback = "ScrollbackAndViewport"}
},
-- Ctrl+T for new tab
{
key = 't',
mods = 'CTRL',
action = wezterm.action{SpawnTab="CurrentPaneDomain"}
},
-- Ctrl+W for close tab
{
key = 'w',
mods = 'CTRL',
action = wezterm.action{CloseCurrentTab={confirm=true}}
},
-- Ctrl+s for split horizontal
{
key = 's',
mods = 'CTRL',
action = wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}
},
-- Ctrl+d for split vertical
{
key = 'd',
mods = 'CTRL',
action = wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}
},
}
-- Use default titlebar instead of the one provided by wezterm
config.window_frame = {
inactive_titlebar_bg = '#353535',
active_titlebar_bg = '#2b2042',
inactive_titlebar_fg = '#cccccc',
active_titlebar_fg = '#ffffff',
inactive_titlebar_border_bottom = '#2b2042',
active_titlebar_border_bottom = '#2b2042',
button_fg = '#cccccc',
button_bg = '#2b2042',
button_hover_fg = '#ffffff',
button_hover_bg = '#3b3052',
font = require('wezterm').font 'Roboto',
font_size = 12,
}
-- Set the default cursor style to a blinking underscore
config.default_cursor_style = "BlinkingUnderline"
config.initial_rows = 30
config.initial_cols = 120
-- and finally, return the configuration to wezterm
return config