1
0
Fork 0

Compare commits

...

13 Commits

Author SHA1 Message Date
urosm 7395aef7fd update `README.md` 2024-06-12 00:49:47 +02:00
urosm 5d599f91a9 update `.ssh` config 2024-06-12 00:49:18 +02:00
urosm 828d85b774 update scripts 2024-06-12 00:49:03 +02:00
urosm e6c1eee3ec update `zathura` config 2024-06-12 00:48:52 +02:00
urosm 219b9d0d07 update `sway` config 2024-06-12 00:48:42 +02:00
urosm cc7e984bb1 update `nvim` config 2024-06-12 00:48:33 +02:00
urosm 6dff24874f update `nftables.conf` config 2024-06-12 00:47:39 +02:00
urosm 929109f1c1 update `mpv` config 2024-06-12 00:47:31 +02:00
urosm c18d2dc50a update `mimeapps.list` 2024-06-12 00:47:13 +02:00
urosm 1b3ada5a64 update `fontconfig` config 2024-06-12 00:46:55 +02:00
urosm e848c5f739 update `.bashrc` 2024-06-12 00:46:44 +02:00
urosm ad5c7b9391 update `apt` config 2024-06-12 00:46:27 +02:00
urosm 5dc0a6b5fa add `systemd` config 2024-06-12 00:08:05 +02:00
16 changed files with 374 additions and 268 deletions

10
.bashrc
View File

@ -24,9 +24,6 @@ bind "set visible-stats on"
# prompt # prompt
PS1="\[\e[1m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] " PS1="\[\e[1m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] "
if [ -z $TERMUX_VERSION ]; then
PS1="\[\e[1m\]urosm@trento\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] "
fi
# title # title
PS1="\[\e]0;\u@\h:\w\a\]$PS1" PS1="\[\e]0;\u@\h:\w\a\]$PS1"
@ -39,6 +36,13 @@ alias ls="ls --color=auto"
alias ll="ls -AF1" alias ll="ls -AF1"
alias lll="ls -AFlh" alias lll="ls -AFlh"
# history
shopt -u histappend
HISTSIZE=-1
HISTFILESIZE=-1
HISTIGNORE='exit:q:ls:ll:lll'
HISTCONTROL='ignoreboth:erasedups'
# bash completion # bash completion
if ! shopt -oq posix; then if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then if [ -f /usr/share/bash-completion/bash_completion ]; then

View File

@ -1,11 +1,4 @@
deb http://deb.debian.org/debian/ testing main non-free-firmware deb https://deb.debian.org/debian/ testing main non-free-firmware
deb-src http://deb.debian.org/debian/ testing main non-free-firmware deb https://security.debian.org/debian-security testing-security main non-free-firmware
deb https://deb.debian.org/debian/ unstable main non-free-firmware
deb http://security.debian.org/debian-security testing-security main non-free-firmware deb https://deb.debian.org/debian/ experimental main non-free-firmware
deb-src http://security.debian.org/debian-security testing-security main non-free-firmware
deb http://deb.debian.org/debian/ unstable main non-free-firmware
deb-src http://deb.debian.org/debian/ unstable main non-free-firmware
deb http://deb.debian.org/debian/ experimental main non-free-firmware
deb-src http://deb.debian.org/debian/ experimental main non-free-firmware

View File

@ -1,6 +1,26 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig> <fontconfig>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="embeddedbitmap">
<bool>false</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<alias> <alias>
<family>monospace</family> <family>monospace</family>
<prefer><family>Agave</family></prefer> <prefer><family>Agave</family></prefer>

View File

@ -4,3 +4,45 @@ text/markdown=nvim.desktop;
application/pdf=org.pwmt.zathura.desktop; application/pdf=org.pwmt.zathura.desktop;
x-scheme-handler/http=firefox.desktop; x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop; x-scheme-handler/https=firefox.desktop;
image/avs=mpv.desktop;
image/bie=mpv.desktop;
image/x-ms-bmp=mpv.desktop;
image/cmyk=mpv.desktop;
image/dcx=mpv.desktop;
image/eps=mpv.desktop;
image/fax=mpv.desktop;
image/fits=mpv.desktop;
image/gif=mpv.desktop;
image/gray=mpv.desktop;
image/jpeg=mpv.desktop;
image/pjpeg=mpv.desktop;
image/miff=mpv.desktop;
image/mono=mpv.desktop;
image/mtv=mpv.desktop;
image/x-portable-bitmap=mpv.desktop;
image/pcd=mpv.desktop;
image/pcx=mpv.desktop;
image/pdf=mpv.desktop;
image/x-portable-graymap=mpv.desktop;
image/pict=mpv.desktop;
image/png=mpv.desktop;
image/x-portable-anymap=mpv.desktop;
image/x-portable-pixmap=mpv.desktop;
image/ps=mpv.desktop;
image/rad=mpv.desktop;
image/x-rgb=mpv.desktop;
image/rgba=mpv.desktop;
image/rla=mpv.desktop;
image/rle=mpv.desktop;
image/sgi=mpv.desktop;
image/sun-raster=mpv.desktop;
image/targa=mpv.desktop;
image/tiff=mpv.desktop;
image/uyvy=mpv.desktop;
image/vid=mpv.desktop;
image/viff=mpv.desktop;
image/x-xbitmap=mpv.desktop;
image/x-xpixmap=mpv.desktop;
image/x-xwindowdump=mpv.desktop;
image/x-icon=mpv.desktop;
image/yuv=mpv.desktop;

View File

@ -8,3 +8,5 @@ MBTN_LEFT script-binding pan-follows-cursor
MBTN_LEFT_DBL ignore MBTN_LEFT_DBL ignore
WHEEL_UP script-message cursor-centric-zoom 0.1 WHEEL_UP script-message cursor-centric-zoom 0.1
WHEEL_DOWN script-message cursor-centric-zoom -0.1 WHEEL_DOWN script-message cursor-centric-zoom -0.1
H seek -10
L seek 10

View File

@ -5,4 +5,5 @@ image-display-duration=inf
osd-level=0 osd-level=0
# gpu renderer options # gpu renderer options
background="#000000" background=color
#"#000000"

View File

@ -5,11 +5,13 @@ flush ruleset
table inet filter { table inet filter {
chain input { chain input {
type filter hook input priority filter; policy drop; type filter hook input priority filter; policy drop;
# accept any localhost traffic
iif lo accept iif lo accept comment "Accept localhost traffic"
# accept traffic originated from us ct state invalid drop comment "Drop invalid connections"
ct state established,related accept ct state established,related accept comment "Accept established and related connections"
# accept neighbour discovery otherwise connectivity breaks meta l4proto { icmp, ipv6-icmp } accept comment "Accept ICMP/ICMPv6 traffic"
icmpv6 type { nd-neighbor-solicit, nd-router-advert, nd-neighbor-advert } accept ip protocol igmp accept comment "Accept IGMP traffic"
udp dport mdns accept comment "Accept mDNS"
} }
} }

View File

@ -1,3 +1,4 @@
local api = vim.api
local optl = vim.opt_local local optl = vim.opt_local
-- options -- options
@ -9,3 +10,18 @@ optl.expandtab = true
local keymap_set = vim.keymap.set local keymap_set = vim.keymap.set
keymap_set("n", "]h", "/\\_^#.*\\ze\\n\\{2}<esc>") keymap_set("n", "]h", "/\\_^#.*\\ze\\n\\{2}<esc>")
keymap_set("n", "[h", "?\\_^#.*\\ze\\n\\{2}<esc>") keymap_set("n", "[h", "?\\_^#.*\\ze\\n\\{2}<esc>")
-- buffer completion
optl.completeopt:append("noselect")
api.nvim_create_autocmd("TextChangedI", {
group = api.nvim_create_augroup("Markdown buffer autocomplete", {}),
buffer = 0,
desc = "Buffer autocomplete on TextChangedI",
callback = function ()
local col = api.nvim_win_get_cursor(0)[2]
local char = api.nvim_get_current_line():sub(col,col)
if char:match("%w") then
api.nvim_input("<c-x><c-n>")
end
end
})

View File

@ -48,16 +48,6 @@ end
vim.opt.background = "dark" vim.opt.background = "dark"
vim.g.colors_name = "basic" vim.g.colors_name = "basic"
if
vim.env.TERM == "linux" or
vim.env.TERM == "screen" or
vim.env.TERM == "screen.linux"
then
vim.opt.termguicolors = false
else
vim.opt.termguicolors = true
end
-- highlights ------------------------------------------------------------------ -- highlights ------------------------------------------------------------------
local fg = C.white local fg = C.white
local bg = C.black local bg = C.black
@ -121,7 +111,6 @@ local menu_accent_h = { ctermfg = accent.cterm,
ctermbg = fg.cterm, ctermbg = fg.cterm,
bg = fg.gui, bg = fg.gui,
reverse = true } reverse = true }
local test = { ctermfg, fg = 1, 2 }
set_hl("Pmenu", menu_normal_h) set_hl("Pmenu", menu_normal_h)
set_hl("PmenuSel", menu_accent_h) set_hl("PmenuSel", menu_accent_h)
@ -148,17 +137,21 @@ set_hl("Question", message_accent_h)
set_hl("Title", message_accent_h) set_hl("Title", message_accent_h)
-- buffer ---------------------------------------------------------------------- -- buffer ----------------------------------------------------------------------
local buffer_normal_h = { ctermfg = dimmed.cterm, fg = dimmed.gui } local buffer_dimmed_h = { ctermfg = dimmed.cterm,
local buffer_normal_bg_h = { ctermbg = dimmed.cterm, bg = dimmed.gui } fg = dimmed.gui }
local buffer_accent_h = { ctermfg = accent.cterm, fg = accent.gui } local buffer_dimmed_reverse_h = { ctermfg = dimmed.cterm,
fg = dimmed.gui,
reverse = true }
local buffer_accent_h = { ctermfg = accent.cterm,
fg = accent.gui }
set_hl("Conceal", buffer_normal_h) set_hl("Conceal", buffer_dimmed_h)
set_hl("NonText", buffer_normal_h) set_hl("NonText", buffer_dimmed_h)
set_hl("EndOfBuffer", buffer_normal_h) set_hl("EndOfBuffer", buffer_dimmed_h)
set_hl("Whitespace", buffer_normal_h) set_hl("Whitespace", buffer_dimmed_h)
set_hl("Folded", buffer_normal_h) set_hl("Folded", buffer_dimmed_h)
set_hl("SpecialKey", buffer_accent_h) set_hl("SpecialKey", buffer_accent_h)
set_hl("ColorColumn", buffer_normal_bg_h) set_hl("ColorColumn", buffer_dimmed_reverse_h)
-- cursor ---------------------------------------------------------------------- -- cursor ----------------------------------------------------------------------
local cursor_normal_h = { reverse = true } local cursor_normal_h = { reverse = true }
@ -184,7 +177,7 @@ local match_accent_h = { ctermfg = C.black.cterm,
fg = C.black.gui, fg = C.black.gui,
ctermbg = C.magenta.cterm, ctermbg = C.magenta.cterm,
bg = C.magenta.gui } bg = C.magenta.gui }
local match_dimmed_h = { ctermfg = C.magenta.cterm, local match_parens_h = { ctermfg = C.magenta.cterm,
fg = C.magenta.gui, fg = C.magenta.gui,
ctermbg = C.white.cterm, ctermbg = C.white.cterm,
bg = C.white.gui } bg = C.white.gui }
@ -193,7 +186,7 @@ set_hl("Search", match_normal_h)
set_hl("Substitute", match_normal_h) set_hl("Substitute", match_normal_h)
set_hl("IncSearch", match_accent_h) set_hl("IncSearch", match_accent_h)
set_hl("CurSearch", match_accent_h) set_hl("CurSearch", match_accent_h)
set_hl("MatchParen", match_dimmed_h) set_hl("MatchParen", match_parens_h)
-- selection ------------------------------------------------------------------- -- selection -------------------------------------------------------------------
local selection_normal_h = { ctermfg = C.black.cterm, local selection_normal_h = { ctermfg = C.black.cterm,
@ -205,10 +198,15 @@ set_hl("Visual", selection_normal_h)
set_hl("Visualnos", selection_normal_h) set_hl("Visualnos", selection_normal_h)
-- diff ------------------------------------------------------------------------ -- diff ------------------------------------------------------------------------
local diff_add_h = { ctermfg = C.green.cterm, fg = C.green.gui } local diff_add_h = { ctermfg = C.green.cterm,
local diff_change_h = { ctermfg = C.orange.cterm, fg = C.orange.gui } fg = C.green.gui }
local diff_delete_h = { ctermfg = C.red.cterm, fg = C.red.gui } local diff_change_h = { ctermfg = C.orange.cterm,
local diff_text_h = { ctermfg = C.orange.cterm, fg = C.orange.gui, underline = true } fg = C.orange.gui }
local diff_delete_h = { ctermfg = C.red.cterm,
fg = C.red.gui }
local diff_text_h = { ctermfg = C.orange.cterm,
fg = C.orange.gui,
underline = true }
set_hl("DiffAdd", diff_add_h) set_hl("DiffAdd", diff_add_h)
set_hl("DiffChange", diff_change_h) set_hl("DiffChange", diff_change_h)
@ -216,8 +214,12 @@ set_hl("DiffDelete", diff_delete_h)
set_hl("DiffText", diff_text_h) set_hl("DiffText", diff_text_h)
-- spell ----------------------------------------------------------------------- -- spell -----------------------------------------------------------------------
local spell_error_h = { ctermfg = C.red.cterm, fg = C.red.gui, underline = true } local spell_error_h = { ctermfg = C.red.cterm,
local spell_warn_h = { ctermfg = C.orange.cterm, fg = C.orange.gui, underline = true } fg = C.red.gui,
underline = true }
local spell_warn_h = { ctermfg = C.orange.cterm,
fg = C.orange.gui,
underline = true }
set_hl("SpellBad", spell_error_h) set_hl("SpellBad", spell_error_h)
set_hl("SpellCap", spell_warn_h) set_hl("SpellCap", spell_warn_h)
@ -225,16 +227,31 @@ set_hl("SpellLocal", spell_warn_h)
set_hl("SpellRare", spell_warn_h) set_hl("SpellRare", spell_warn_h)
-- diagnostic ------------------------------------------------------------------ -- diagnostic ------------------------------------------------------------------
local diagnostic_error_h = { ctermfg = C.red.cterm, fg = C.red.gui } local diagnostic_error_h = { ctermfg = C.red.cterm,
local diagnostic_warn_h = { ctermfg = C.orange.cterm, fg = C.orange.gui } fg = C.red.gui }
local diagnostic_info_h = { ctermfg = C.blue.cterm, fg = C.blue.gui } local diagnostic_warn_h = { ctermfg = C.orange.cterm,
local diagnostic_hint_h = { ctermfg = C.white.cterm, fg = C.white.gui } fg = C.orange.gui }
local diagnostic_ok_h = { ctermfg = C.green.cterm, fg = C.green.gui } local diagnostic_info_h = { ctermfg = C.blue.cterm,
local diagnostic_error_u_h = { ctermfg = C.red.cterm, fg = C.red.gui, underline = true } fg = C.blue.gui }
local diagnostic_warn_u_h = { ctermfg = C.orange.cterm, fg = C.orange.gui, underline = true } local diagnostic_hint_h = { ctermfg = C.white.cterm,
local diagnostic_info_u_h = { ctermfg = C.blue.cterm, fg = C.blue.gui, underline = true } fg = C.white.gui }
local diagnostic_hint_u_h = { ctermfg = C.white.cterm, fg = C.white.gui, underline = true } local diagnostic_ok_h = { ctermfg = C.green.cterm,
local diagnostic_ok_u_h = { ctermfg = C.green.cterm, fg = C.green.gui, underline = true } fg = C.green.gui }
local diagnostic_error_u_h = { ctermfg = C.red.cterm,
fg = C.red.gui,
underline = true }
local diagnostic_warn_u_h = { ctermfg = C.orange.cterm,
fg = C.orange.gui,
underline = true }
local diagnostic_info_u_h = { ctermfg = C.blue.cterm,
fg = C.blue.gui,
underline = true }
local diagnostic_hint_u_h = { ctermfg = C.white.cterm,
fg = C.white.gui,
underline = true }
local diagnostic_ok_u_h = { ctermfg = C.green.cterm,
fg = C.green.gui,
underline = true }
set_hl("DiagnosticError", diagnostic_error_h) set_hl("DiagnosticError", diagnostic_error_h)
set_hl("DiagnosticWarn", diagnostic_warn_h) set_hl("DiagnosticWarn", diagnostic_warn_h)
@ -269,21 +286,34 @@ set_hl("Directory", { ctermfg = C.blue.cterm, fg = C.blue.gui })
-- syntax ---------------------------------------------------------------------- -- syntax ----------------------------------------------------------------------
local syntax_normal_h = {} local syntax_normal_h = {}
local syntax_comment_h = { ctermfg = C.blue.cterm, fg = C.blue.gui } local syntax_comment_h = { ctermfg = C.blue.cterm,
local syntax_constant_h = { ctermfg = C.red.cterm, fg = C.red.gui } fg = C.blue.gui }
local syntax_constant_h = { ctermfg = C.red.cterm,
fg = C.red.gui }
local syntax_identifier_h = {} local syntax_identifier_h = {}
local syntax_statement_h = { ctermfg = C.orange.cterm, fg = C.orange.gui } local syntax_statement_h = { ctermfg = C.orange.cterm,
local syntax_preproc_h = { ctermfg = C.magenta.cterm, fg = C.magenta.gui } fg = C.orange.gui }
local syntax_type_h = { ctermfg = C.green.cterm, fg = C.green.gui } local syntax_preproc_h = { ctermfg = C.magenta.cterm,
local syntax_special_h = { ctermfg = C.orange.cterm, fg = C.orange.gui } fg = C.magenta.gui }
local syntax_type_h = { ctermfg = C.green.cterm,
fg = C.green.gui }
local syntax_special_h = { ctermfg = C.orange.cterm,
fg = C.orange.gui }
local syntax_underline_h = { underline = true } local syntax_underline_h = { underline = true }
local syntax_ignore_h = { ctermfg = C.black.cterm, fg = C.black.gui } local syntax_ignore_h = { ctermfg = C.black.cterm,
local syntax_error_h = { ctermfg = C.black.cterm, fg = C.black.gui, ctermbg = C.red.cterm, bg = C.red.gui } fg = C.black.gui }
local syntax_warn_h = { ctermfg = C.black.cterm, fg = C.black.gui, ctermbg = C.orange.cterm, bg = C.orange.gui } local syntax_error_h = { ctermfg = C.black.cterm,
fg = C.black.gui,
ctermbg = C.red.cterm,
bg = C.red.gui }
local syntax_warn_h = { ctermfg = C.black.cterm,
fg = C.black.gui,
ctermbg = C.orange.cterm,
bg = C.orange.gui }
local syntax_italic_h = { italic = true } local syntax_italic_h = { italic = true }
local syntax_bold_h = { bold = true } local syntax_bold_h = { bold = true }
local syntax_bolditalic_h = { bold = true, italic = true } local syntax_bolditalic_h = { bold = true,
italic = true }
local syntax_strike_h = { strikethrough = true } local syntax_strike_h = { strikethrough = true }
set_hl("Comment", syntax_comment_h) set_hl("Comment", syntax_comment_h)
@ -328,9 +358,13 @@ set_hl("BoldItalic", syntax_bolditalic_h)
set_hl("Strike", syntax_strike_h) set_hl("Strike", syntax_strike_h)
-- markdown -------------------------------------------------------------------- -- markdown --------------------------------------------------------------------
local markdown_label_h = { ctermfg = C.magenta.cterm, fg = C.magenta.gui } local markdown_label_h = { ctermfg = C.magenta.cterm,
local markdown_delimiter_h = { ctermfg = C.blue.cterm, fg = C.blue.gui } fg = C.magenta.gui }
local markdown_underline_h = { ctermfg = C.blue.cterm, fg = C.blue.gui, underline = true } local markdown_delimiter_h = { ctermfg = C.blue.cterm,
fg = C.blue.gui }
local markdown_underline_h = { ctermfg = C.blue.cterm,
fg = C.blue.gui,
underline = true }
set_hl("markdownLabel", markdown_label_h) set_hl("markdownLabel", markdown_label_h)
set_hl("markdownHeadingDelimiter", markdown_delimiter_h) set_hl("markdownHeadingDelimiter", markdown_delimiter_h)
@ -343,5 +377,6 @@ set_hl("markdownLinkTextDelimiter", markdown_delimiter_h)
set_hl("markdownLinkDelimiter", markdown_delimiter_h) set_hl("markdownLinkDelimiter", markdown_delimiter_h)
set_hl("markdownUrl", markdown_delimiter_h) set_hl("markdownUrl", markdown_delimiter_h)
-- yaml ------------------------------------------------------------------------
set_hl("yamlBlockMappingKey", syntax_comment_h) set_hl("yamlBlockMappingKey", syntax_comment_h)
set_hl("yamlPlainScalar", syntax_constant_h) set_hl("yamlPlainScalar", syntax_constant_h)

View File

@ -2,31 +2,42 @@ local opt, api, cmd = vim.opt, vim.api, vim.cmd
local fn, ui = vim.fn, vim.ui local fn, ui = vim.fn, vim.ui
-- colorscheme ----------------------------------------------------------------- -- colorscheme -----------------------------------------------------------------
cmd.colorscheme("basic") cmd.colorscheme("basic")
-- options --------------------------------------------------------------------- -- options ---------------------------------------------------------------------
opt.undofile = true opt.undofile = true
opt.backup = false opt.backup = false
opt.writebackup = false opt.writebackup = false
opt.mouse = "nvi" opt.mouse = "nvi"
opt.title = true opt.title = true
opt.shortmess:append({ I = true }) opt.shortmess:append({ I = true })
opt.number = true opt.number = true
opt.relativenumber = true opt.relativenumber = true
opt.signcolumn = "number" opt.signcolumn = "number"
opt.textwidth = 80 opt.textwidth = 80
opt.colorcolumn = "+1" opt.colorcolumn = "+1"
opt.expandtab = true opt.expandtab = true
opt.tabstop = 4 opt.tabstop = 4
opt.shiftwidth = 4 opt.shiftwidth = 4
opt.softtabstop = -1 opt.softtabstop = -1
opt.smarttab = true opt.smarttab = true
opt.showtabline = 2 opt.showtabline = 2
opt.winbar = "%f%( %h%m%r%y%)" opt.winbar = "%f%( %h%m%r%y%)"
opt.laststatus = 3 opt.laststatus = 3
opt.ignorecase = true
opt.infercase = true
opt.smartcase = true
opt.smartindent = true
opt.clipboard = "unnamedplus"
opt.wildoptions = { "fuzzy" }
opt.wildignorecase = true
opt.path = ".,,**"
opt.completeopt = { "menuone", "preview" }
opt.scrolloff = 10
-- statusline ------------------------------------------------------------------
function _G.statusline() function _G.statusline()
local wordcount = fn.wordcount() local wordcount = fn.wordcount()
@ -40,39 +51,21 @@ function _G.statusline()
end end
opt.statusline = "%!v:lua.statusline()" opt.statusline = "%!v:lua.statusline()"
opt.ignorecase = true
opt.infercase = true
opt.smartcase = true
opt.smartindent = true
opt.clipboard = "unnamedplus"
opt.wildoptions = { "fuzzy" }
opt.wildignorecase = true
opt.path = ".,,**"
opt.completeopt = { "menuone", "preview", }
-- keymaps --------------------------------------------------------------------- -- keymaps ---------------------------------------------------------------------
local keymap_set = vim.keymap.set local keymap_set = vim.keymap.set
keymap_set("n", "<esc>", "<cmd>nohlsearch<cr>") keymap_set("n", "<esc>", "<cmd>nohlsearch<cr>")
keymap_set("c", "<m-h>", "<left>") keymap_set("c", "<m-h>", "<left>")
keymap_set("c", "<m-l>", "<right>") keymap_set("c", "<m-l>", "<right>")
keymap_set("n", "<leader>f", ":find ") keymap_set("n", "<leader>f", ":find ")
keymap_set("n", "<leader>b", ":buffer ") keymap_set("n", "<leader>b", ":buffer ")
keymap_set("n", "<leader>h", ":help ") keymap_set("n", "<leader>h", ":help ")
keymap_set("n", "<leader>g", ":vimgrep /") keymap_set("n", "<leader>g", ":vimgrep /")
keymap_set("n", "<leader>s", "<cmd>:set spell!<cr>") keymap_set("n", "<leader>s", "<cmd>:set spell!<cr>")
keymap_set("n", "<leader>m", "<cmd>make<cr>") keymap_set("n", "<leader>m", "<cmd>make<cr>")
keymap_set("n", "<leader>d", "<cmd>bdelete<cr>")
keymap_set("n", "<leader>d", "<cmd>enew<cr><cmd>bdelete#<cr>")
keymap_set("n", "<leader>D", "<cmd>bdelete<cr>")
keymap_set("n", "]b", "<cmd>bnext<cr>") keymap_set("n", "]b", "<cmd>bnext<cr>")
keymap_set("n", "[b", "<cmd>bprev<cr>") keymap_set("n", "[b", "<cmd>bprev<cr>")
keymap_set("n", "]B", "<cmd>blast<cr>") keymap_set("n", "]B", "<cmd>blast<cr>")
@ -85,15 +78,10 @@ keymap_set("n", "]q", "<cmd>cnext<cr>zz")
keymap_set("n", "[q", "<cmd>cprev<cr>zz") keymap_set("n", "[q", "<cmd>cprev<cr>zz")
keymap_set("n", "]Q", "<cmd>clast<cr>zz") keymap_set("n", "]Q", "<cmd>clast<cr>zz")
keymap_set("n", "[Q", "<cmd>cfirst<cr>zz") keymap_set("n", "[Q", "<cmd>cfirst<cr>zz")
keymap_set("n", "<leader>co", "<cmd>copen<cr>") keymap_set("n", "<leader>co", "<cmd>copen<cr>")
keymap_set("n", "<leader>cc", "<cmd>cclose<cr>") keymap_set("n", "<leader>cc", "<cmd>cclose<cr>")
keymap_set("i", "<c-f>", "<c-x><c-f>")
keymap_set("n", "<c-h>", "<c-w>h") keymap_set("n", "<c-h>", "<c-w>h")
keymap_set("n", "<c-j>", "<c-w>j") keymap_set("n", "<c-j>", "<c-w>j")
keymap_set("n", "<c-k>", "<c-w>k") keymap_set("n", "<c-k>", "<c-w>k")
keymap_set("n", "<c-l>", "<c-w>l") keymap_set("n", "<c-l>", "<c-w>l")
keymap_set("n", "<leader>.", "<cmd>e.<cr>") keymap_set("n", "<leader>.", "<cmd>e.<cr>")

View File

@ -29,7 +29,7 @@ set $wso 8:o:cmd
set $wsp 9:p:rdp set $wsp 9:p:rdp
# modes # modes
set $session_mode "session: (r)eload (l)ock (q)uit (s)uspend re(b)oot (p)oweroff" set $session_mode "session: (r)eload (l)ock (q)uit (s)uspend (h)ibernate re(b)oot (p)oweroff"
set $layout_mode "layout: split(h) split(v) (s)tacking (t)abbed" set $layout_mode "layout: split(h) split(v) (s)tacking (t)abbed"
# commands # commands
@ -68,7 +68,7 @@ bar {
workspace_layout tabbed workspace_layout tabbed
# xwayland ##################################################################### # xwayland #####################################################################
xwayland disable # xwayland disable
# bindsym ###################################################################### # bindsym ######################################################################
# floating # floating
@ -95,24 +95,24 @@ bindsym {
} }
# move # move
bindsym { bindsym --to-code {
$mod+shift+$up move up $mod+shift+$up move up
$mod+shift+$down move down $mod+shift+$down move down
$mod+shift+$left move left $mod+shift+$left move left
$mod+shift+$right move right $mod+shift+$right move right
--to-code $mod+shift+tab move workspace back_and_forth, workspace back_and_forth $mod+shift+tab move workspace back_and_forth, workspace back_and_forth
--to-code $mod+shift+q move workspace $wsq, workspace $wsq $mod+shift+q move workspace $wsq, workspace $wsq
--to-code $mod+shift+w move workspace $wsw, workspace $wsw $mod+shift+w move workspace $wsw, workspace $wsw
--to-code $mod+shift+e move workspace $wse, workspace $wse $mod+shift+e move workspace $wse, workspace $wse
--to-code $mod+shift+r move workspace $wsr, workspace $wsr $mod+shift+r move workspace $wsr, workspace $wsr
--to-code $mod+shift+t move workspace $wst, workspace $wst $mod+shift+t move workspace $wst, workspace $wst
--to-code $mod+shift+y move workspace $wsy, workspace $wsy $mod+shift+y move workspace $wsy, workspace $wsy
--to-code $mod+shift+u move workspace $wsu, workspace $wsu $mod+shift+u move workspace $wsu, workspace $wsu
--to-code $mod+shift+i move workspace $wsi, workspace $wsi $mod+shift+i move workspace $wsi, workspace $wsi
--to-code $mod+shift+o move workspace $wso, workspace $wso $mod+shift+o move workspace $wso, workspace $wso
--to-code $mod+shift+p move workspace $wsp, workspace $wsp $mod+shift+p move workspace $wsp, workspace $wsp
--to-code $mod+shift+bracketleft move workspace prev, workspace prev $mod+shift+bracketleft move workspace prev, workspace prev
--to-code $mod+shift+bracketright move workspace next, workspace next $mod+shift+bracketright move workspace next, workspace next
$mod+colon move scratchpad $mod+colon move scratchpad
} }
@ -123,14 +123,14 @@ bindsym $mod+semicolon scratchpad show
bindsym $mod+shift+g sticky toggle bindsym $mod+shift+g sticky toggle
# exec # exec
bindsym { bindsym --to-code {
$mod+return exec footclient $mod+return exec footclient
$mod+shift+return exec foot $mod+shift+return exec foot
$mod+space exec fuzzel $mod+space exec fuzzel
$mod+shift+space exec "$(fuzzel -d -l 0 -p'$ ')" $mod+slash exec xdg-open "$(find * -type f | fuzzel -dp'open > ')"
$mod+slash exec xdg-open "$(find -type f | fuzzel -d -p'$ xdg-open ')"
$mod+home exec footclient nmtui connect $mod+home exec footclient nmtui connect
$mod+shift+home exec footclient nmtui $mod+shift+home exec footclient nmtui
$mod+end exec devmon -c
$mod+n exec makoctl dismiss $mod+n exec makoctl dismiss
$mod+shift+n exec makoctl restore $mod+shift+n exec makoctl restore
print exec grim - | wl-copy print exec grim - | wl-copy
@ -138,14 +138,14 @@ bindsym {
# exec (laptop) # exec (laptop)
bindsym { bindsym {
XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)" XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
XF86MonBrightnessUp exec brightnessctl set "+1%"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)" XF86MonBrightnessUp exec brightnessctl set "+1%", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
XF86MonBrightnessDown exec brightnessctl set "1%-"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)" XF86MonBrightnessDown exec brightnessctl set "1%-", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
shift+XF86MonBrightnessUp exec brightnessctl set "+10%"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)" shift+XF86MonBrightnessUp exec brightnessctl set "+10%", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
shift+XF86MonBrightnessDown exec brightnessctl set "10%-"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)" shift+XF86MonBrightnessDown exec brightnessctl set "10%-", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
} }
# resize # resize
@ -157,20 +157,20 @@ bindsym {
} }
# workspace # workspace
bindsym { bindsym --to-code {
--to-code $mod+tab workspace back_and_forth $mod+tab workspace back_and_forth
--to-code $mod+q workspace $wsq $mod+q workspace $wsq
--to-code $mod+w workspace $wsw $mod+w workspace $wsw
--to-code $mod+e workspace $wse $mod+e workspace $wse
--to-code $mod+r workspace $wsr $mod+r workspace $wsr
--to-code $mod+t workspace $wst $mod+t workspace $wst
--to-code $mod+y workspace $wsy $mod+y workspace $wsy
--to-code $mod+u workspace $wsu $mod+u workspace $wsu
--to-code $mod+i workspace $wsi $mod+i workspace $wsi
--to-code $mod+o workspace $wso $mod+o workspace $wso
--to-code $mod+p workspace $wsp $mod+p workspace $wsp
--to-code $mod+bracketleft workspace prev $mod+bracketleft workspace prev
--to-code $mod+bracketright workspace next $mod+bracketright workspace next
} }
# client.* ##################################################################### # client.* #####################################################################
@ -188,19 +188,22 @@ default_floating_border normal 0
# exec ######################################################################### # exec #########################################################################
exec { exec {
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK # systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK # dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
swayidle -w \ swayidle -w \
timeout 300 '$swaylock' \ timeout 300 'brightnessctl -s set 1%' resume 'brightnessctl -r' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 600 '$swaylock' \
timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 1800 'systemctl suspend-then-hibernate' \
before-sleep '$swaylock' before-sleep '$swaylock'
wlsunset -l 45 -L 15 wlsunset -l 45 -L 15
mako mako
devmon \
--exec-on-drive "notify-send 'Mounted %f at %d'" \
--exec-on-unmount "notify-send 'Unmounted %s'"
foot -s
} }
workspace $wse
exec foot -s
# focus_wrapping ############################################################### # focus_wrapping ###############################################################
focus_wrapping yes focus_wrapping yes
@ -231,6 +234,7 @@ mode $session_mode {
l exec $swaylock, mode default l exec $swaylock, mode default
q exit, mode default q exit, mode default
s exec systemctl suspend, mode default s exec systemctl suspend, mode default
h exec systemctl hibernate, mode default
b exec systemctl reboot, mode default b exec systemctl reboot, mode default
p exec systemctl poweroff, mode default p exec systemctl poweroff, mode default
escape mode default escape mode default
@ -253,5 +257,3 @@ seat * hide_cursor 1000
# output ####################################################################### # output #######################################################################
output * background $black solid_color output * background $black solid_color
# vim:

View File

@ -0,0 +1,2 @@
[Login]
HandleLidSwitch=suspend-then-hibernate

View File

@ -20,8 +20,8 @@ set statusbar-fg "#856cff"
set font "monospace 13" set font "monospace 13"
# zathura # zathura
set highlight-active-color "#ff1170" set highlight-active-color rgba(255,17,112,0.5)
set highlight-color "#856cff" set highlight-color rgba(133,108,255,0.5)
set highlight-fg "#000000" set highlight-fg "#000000"
set index-active-bg "#000000" set index-active-bg "#000000"
set index-active-fg "#ff1170" set index-active-fg "#ff1170"

View File

@ -41,11 +41,13 @@ while true; do
"urgent":length, "urgent":length,
}, ","' }, ","'
# notifications # notifications
makoctl list | jq -Mcj '.data[][0] | makoctl list | jq -Mcj '.data[] |
{ if length>0 then {
"full_text":.summary.data, "full_text":(["(",length,") ",.[0].summary.data]|join("")),
"urgent":(.urgency.data==2), "urgent":(.[0].urgency.data==2),
}, ","' } else {
"full_text":(["(",length,")"]|join("")),
} end, ","'
printf "]," printf "],"
# timeout # timeout
timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null

View File

@ -16,4 +16,4 @@ Host genova
Hostname 10.200.200.4 Hostname 10.200.200.4
Host napoli Host napoli
Hostname 10.200.200.255 Hostname 10.200.200.200

View File

@ -18,6 +18,7 @@ git pull origin main
```sh ```sh
# disable the annoying `.sudo_as_admin_successful` file # disable the annoying `.sudo_as_admin_successful` file
sudo cp -ri .config/sudoers.d /etc/ sudo cp -ri .config/sudoers.d /etc/
rm .sudo_as_admin_successful
# update to debian testing # update to debian testing
sudo cp -ri .config/apt /etc/ sudo cp -ri .config/apt /etc/
sudo apt update sudo apt update
@ -26,30 +27,24 @@ sudo apt full-upgrade
sudo dpkg-reconfigure locales sudo dpkg-reconfigure locales
# configure and start firewall # configure and start firewall
sudo cp -ri .config/nftables.conf /etc/ sudo cp -ri .config/nftables.conf /etc/
systemctl enable --now nftables.service systemctl enable --now nftables
# configure and install networking # configure and install networking
sudo cp -ir .config/network /etc/
sudo apt install network-manager sudo apt install network-manager
# install utils # install utils
sudo apt install udisks2 sudo apt install udevil
sudo apt install jq sudo apt install jq
sudo apt install neovim wl-clipboard
# install desktop packages # install desktop packages
sudo apt install sway sudo apt install sway swayidle swaylock
sudo apt install swayidle swaylock sudo apt install fuzzel
sudo apt install brightnessctl wlsunset sudo apt install brightnessctl wlsunset grim
sudo apt install grim
sudo apt install mako-notifier libnotify-bin sudo apt install mako-notifier libnotify-bin
sudo apt install fonts-agave sudo apt install fonts-agave
# install neovim
sudo apt install neovim wl-clipboard
# install and configure audio packages
sudo apt install pipewire-audio sudo apt install pipewire-audio
systemctl --user enable --now wireplumber.service systemctl --user enable --now wireplumber
# install writing packages # install office packages
sudo apt install make sudo apt install libreoffice libreoffice-gtk3
sudo apt install pandoc sudo apt install aspell-sl hunspell-sl hyphen-sl mythes-sl
sudo apt install texlive-latex-extra
sudo apt install texlive-lang-european
# install web packages # install web packages
sudo apt install firefox sudo apt install firefox
sudo apt install thunderbird sudo apt install thunderbird
@ -57,15 +52,17 @@ sudo apt install thunderbird
sudo apt install mpv sudo apt install mpv
sudo apt install zathura sudo apt install zathura
sudo apt install inkscape sudo apt install inkscape
# install office packages # install rdp packages
sudo apt install libreoffice libreoffice-gtk3 sudo apt install remmina
sudo apt install libreoffice-l10n-sl
# install printing and scanning packages # install printing and scanning packages
sudo apt install cups printer-driver-all sudo apt install cups printer-driver-all
sudo adduser urosm lpadmin sudo adduser urosm lpadmin
sudo apt install simple-scan sudo apt install simple-scan
# install writing packages
sudo apt install make
sudo apt install pandoc
sudo apt install texlive-latex-extra
sudo apt install texlive-lang-european
# install pdf processing packages # install pdf processing packages
sudo apt install qpdf ocrmypdf sudo apt install qpdf ocrmypdf
# install rdp packages
sudo apt install remmina
``` ```