Compare commits
6 Commits
910ba5b3c5
...
termux
Author | SHA1 | Date | |
---|---|---|---|
c379f7a204 | |||
ed82588786 | |||
50c09a01e5 | |||
ebc9b1a639 | |||
d26e963b3a | |||
a3a96c3fc6 |
18
.bashrc
18
.bashrc
@@ -79,14 +79,6 @@ killport () {
|
|||||||
kill $(lsof -t -i:"$1")
|
kill $(lsof -t -i:"$1")
|
||||||
}
|
}
|
||||||
|
|
||||||
## Enable runit service (for Void Linux)
|
|
||||||
function sv-enable () {
|
|
||||||
if test -e /etc/sv/$1; then
|
|
||||||
doas ln -sv /etc/sv/$1 /var/service/
|
|
||||||
else
|
|
||||||
echo "Error: /etc/sv/$1 does not exist"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
## Switch keyboard layouts
|
## Switch keyboard layouts
|
||||||
function xkb-switch () {
|
function xkb-switch () {
|
||||||
@@ -189,7 +181,7 @@ alias wttrfull="curl -s wttr.in/Prague?qM"
|
|||||||
alias whatsmyip="dig +short myip.opendns.com @resolver1.opendns.com"
|
alias whatsmyip="dig +short myip.opendns.com @resolver1.opendns.com"
|
||||||
alias htmlvlna="vlna -s -r -x 266E6273703B"
|
alias htmlvlna="vlna -s -r -x 266E6273703B"
|
||||||
alias fuck='doas $(history -p \!\!)'
|
alias fuck='doas $(history -p \!\!)'
|
||||||
alias sudo="doas"
|
alias doas="sudo"
|
||||||
|
|
||||||
## void xbps aliases
|
## void xbps aliases
|
||||||
alias xi="doas xbps-install"
|
alias xi="doas xbps-install"
|
||||||
@@ -215,10 +207,4 @@ export PATH="$PATH:$HOME/.local/bin"
|
|||||||
export PATH="$PATH:/var/lib/flatpak/exports/bin"
|
export PATH="$PATH:/var/lib/flatpak/exports/bin"
|
||||||
export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin"
|
export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin"
|
||||||
|
|
||||||
# autologin on tty1
|
neofetch
|
||||||
if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
|
|
||||||
exec startx
|
|
||||||
fi
|
|
||||||
|
|
||||||
export $(dbus-launch)
|
|
||||||
|
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
font:
|
|
||||||
size: 8
|
|
2
.config/nvim/.gitignore
vendored
Normal file
2
.config/nvim/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
lazy-lock.json
|
||||||
|
|
@@ -1,21 +1,20 @@
|
|||||||
local set = vim.opt
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
set.encoding = "utf-8"
|
vim.g.mapleader = ' '
|
||||||
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
|
require('lazy').setup('plugins')
|
||||||
set.number = true
|
require('config')
|
||||||
set.relativenumber = true
|
require('completion')
|
||||||
set.tabstop = 4
|
|
||||||
set.shiftwidth = 4
|
|
||||||
set.expandtab = true
|
|
||||||
|
|
||||||
set.swapfile = false
|
|
||||||
|
|
||||||
set.ignorecase = true
|
|
||||||
set.smartcase = true
|
|
||||||
|
|
||||||
set.cursorline = true
|
|
||||||
set.linebreak = true
|
|
||||||
|
|
||||||
set.list = true
|
|
||||||
|
|
||||||
|
128
.config/nvim/lua/completion.lua
Normal file
128
.config/nvim/lua/completion.lua
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
local cmp_status_ok, cmp = pcall(require, "cmp")
|
||||||
|
if not cmp_status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local snip_status_ok, luasnip = pcall(require, "luasnip")
|
||||||
|
if not snip_status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
require("luasnip/loaders/from_vscode").lazy_load()
|
||||||
|
|
||||||
|
local check_backspace = function()
|
||||||
|
local col = vim.fn.col "." - 1
|
||||||
|
return col == 0 or vim.fn.getline("."):sub(col, col):match "%s"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- פּ ﯟ some other good icons
|
||||||
|
local kind_icons = {
|
||||||
|
Text = "",
|
||||||
|
Method = "m",
|
||||||
|
Function = "",
|
||||||
|
Constructor = "",
|
||||||
|
Field = "",
|
||||||
|
Variable = "",
|
||||||
|
Class = "",
|
||||||
|
Interface = "",
|
||||||
|
Module = "",
|
||||||
|
Property = "",
|
||||||
|
Unit = "",
|
||||||
|
Value = "",
|
||||||
|
Enum = "",
|
||||||
|
Keyword = "",
|
||||||
|
Snippet = "",
|
||||||
|
Color = "",
|
||||||
|
File = "",
|
||||||
|
Reference = "",
|
||||||
|
Folder = "",
|
||||||
|
EnumMember = "",
|
||||||
|
Constant = "",
|
||||||
|
Struct = "",
|
||||||
|
Event = "",
|
||||||
|
Operator = "",
|
||||||
|
TypeParameter = "",
|
||||||
|
}
|
||||||
|
-- find more here: https://www.nerdfonts.com/cheat-sheet
|
||||||
|
|
||||||
|
cmp.setup {
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
luasnip.lsp_expand(args.body) -- For `luasnip` users.
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
mapping = {
|
||||||
|
["<C-k>"] = cmp.mapping.select_prev_item(),
|
||||||
|
["<C-j>"] = cmp.mapping.select_next_item(),
|
||||||
|
["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }),
|
||||||
|
["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }),
|
||||||
|
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
|
||||||
|
["<C-y>"] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
|
||||||
|
["<C-e>"] = cmp.mapping {
|
||||||
|
i = cmp.mapping.abort(),
|
||||||
|
c = cmp.mapping.close(),
|
||||||
|
},
|
||||||
|
-- Accept currently selected item. If none selected, `select` first item.
|
||||||
|
-- Set `select` to `false` to only confirm explicitly selected items.
|
||||||
|
["<CR>"] = cmp.mapping.confirm { select = false },
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_next_item()
|
||||||
|
elseif luasnip.expandable() then
|
||||||
|
luasnip.expand()
|
||||||
|
elseif luasnip.expand_or_jumpable() then
|
||||||
|
luasnip.expand_or_jump()
|
||||||
|
elseif check_backspace() then
|
||||||
|
fallback()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, {
|
||||||
|
"i",
|
||||||
|
"s",
|
||||||
|
}),
|
||||||
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_prev_item()
|
||||||
|
elseif luasnip.jumpable(-1) then
|
||||||
|
luasnip.jump(-1)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, {
|
||||||
|
"i",
|
||||||
|
"s",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
formatting = {
|
||||||
|
fields = { "kind", "abbr", "menu" },
|
||||||
|
format = function(entry, vim_item)
|
||||||
|
-- Kind icons
|
||||||
|
vim_item.kind = string.format("%s", kind_icons[vim_item.kind])
|
||||||
|
-- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind
|
||||||
|
vim_item.menu = ({
|
||||||
|
luasnip = "[Snippet]",
|
||||||
|
buffer = "[Buffer]",
|
||||||
|
path = "[Path]",
|
||||||
|
})[entry.source.name]
|
||||||
|
return vim_item
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
{ name = "luasnip" },
|
||||||
|
{ name = "buffer" },
|
||||||
|
{ name = "path" },
|
||||||
|
},
|
||||||
|
confirm_opts = {
|
||||||
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
|
select = false,
|
||||||
|
},
|
||||||
|
-- documentation = {
|
||||||
|
-- border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||||
|
-- },
|
||||||
|
-- experimental = {
|
||||||
|
-- ghost_text = false,
|
||||||
|
-- native_menu = false,
|
||||||
|
-- },
|
||||||
|
}
|
||||||
|
|
47
.config/nvim/lua/config.lua
Normal file
47
.config/nvim/lua/config.lua
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
local set = vim.opt
|
||||||
|
|
||||||
|
set.mouse = 'a'
|
||||||
|
set.encoding = 'utf-8'
|
||||||
|
set.fileencoding = 'UTF-8'
|
||||||
|
|
||||||
|
set.number = true
|
||||||
|
set.relativenumber = true
|
||||||
|
set.showcmd = true
|
||||||
|
vim.o.syntax = true
|
||||||
|
|
||||||
|
set.ignorecase = true
|
||||||
|
set.smartcase = true
|
||||||
|
|
||||||
|
set.cursorline = true
|
||||||
|
-- bold line number at cursor
|
||||||
|
vim.cmd [[ highlight CursorLineNr cterm=bold ]]
|
||||||
|
|
||||||
|
set.linebreak = true
|
||||||
|
|
||||||
|
-- special characters
|
||||||
|
set.list = true
|
||||||
|
set.listchars = 'tab:→ ,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨'
|
||||||
|
|
||||||
|
set.tabstop = 4
|
||||||
|
set.shiftwidth = 4
|
||||||
|
vim.o.expandtab = false
|
||||||
|
vim.o.smartindent = true
|
||||||
|
|
||||||
|
set.swapfile = false
|
||||||
|
|
||||||
|
-- spellcheck (enable with `set spell`)
|
||||||
|
vim.o.spelllang = 'cs,en_gb'
|
||||||
|
vim.cmd [[ hi SpellBad cterm=bold ctermbg=red ctermfg=white ]]
|
||||||
|
|
||||||
|
-- cursor padding from top and bottom
|
||||||
|
vim.o.scrolloff = 5
|
||||||
|
|
||||||
|
-- better navigation in split windows
|
||||||
|
vim.keymap.set('n', '<C-h>', '<C-w>h')
|
||||||
|
vim.keymap.set('n', '<C-j>', '<C-w>j')
|
||||||
|
vim.keymap.set('n', '<C-k>', '<C-w>k')
|
||||||
|
vim.keymap.set('n', '<C-h>', '<C-w>l')
|
||||||
|
|
||||||
|
-- colorscheme
|
||||||
|
vim.cmd [[ color base16-default-dark ]]
|
||||||
|
|
17
.config/nvim/lua/plugins/git.lua
Normal file
17
.config/nvim/lua/plugins/git.lua
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
'f-person/git-blame.nvim',
|
||||||
|
config = function()
|
||||||
|
vim.g.gitblame_date_format = '%r'
|
||||||
|
vim.g.gitblame_message_when_not_committed = ''
|
||||||
|
vim.g.gitblame_display_virtual_text = 0
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
config = function()
|
||||||
|
require('gitsigns').setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
48
.config/nvim/lua/plugins/init.lua
Normal file
48
.config/nvim/lua/plugins/init.lua
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
return {
|
||||||
|
'RRethy/nvim-base16',
|
||||||
|
'tpope/vim-commentary',
|
||||||
|
|
||||||
|
-- completion
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
'hrsh7th/cmp-buffer',
|
||||||
|
'hrsh7th/cmp-path',
|
||||||
|
'hrsh7th/cmp-cmdline',
|
||||||
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
|
||||||
|
-- snippets
|
||||||
|
'L3MON4D3/LuaSnip',
|
||||||
|
'rafamadriz/friendly-snippets',
|
||||||
|
|
||||||
|
-- emmet
|
||||||
|
'mattn/emmet-vim',
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
'neovim/nvim-lspconfig',
|
||||||
|
|
||||||
|
-- LSP, DAP, linters and formatters
|
||||||
|
-- 'jose-elias-alvarez/null-ls.nvim',
|
||||||
|
{
|
||||||
|
'dense-analysis/ale',
|
||||||
|
config = function()
|
||||||
|
vim.cmd [[ g:ale_sign_column_always = 1 ]]
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
-- management for LSP, DAP, linters and formatters
|
||||||
|
{
|
||||||
|
'williamboman/mason.nvim',
|
||||||
|
config = function()
|
||||||
|
require('mason').setup({
|
||||||
|
ui = {
|
||||||
|
icons = {
|
||||||
|
package_installed = "✓",
|
||||||
|
package_pending = "➜",
|
||||||
|
package_uninstalled = "✗"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
},
|
||||||
|
'williamboman/mason-lspconfig.nvim',
|
||||||
|
}
|
||||||
|
|
16
.config/nvim/lua/plugins/lualine.lua
Normal file
16
.config/nvim/lua/plugins/lualine.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
return {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
dependencies = { 'kyazdani42/nvim-web-devicons', lazy = true },
|
||||||
|
config = function()
|
||||||
|
local git_blame = require('gitblame')
|
||||||
|
require('lualine').setup({
|
||||||
|
sections = {
|
||||||
|
lualine_c = {
|
||||||
|
{ git_blame.get_current_blame_text, cond = git_blame.is_blame_text_available }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
vim.o.showmode = false
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
19
.config/nvim/lua/plugins/neo-tree.lua
Normal file
19
.config/nvim/lua/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
return {
|
||||||
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
|
cmd = 'Neotree',
|
||||||
|
branch = 'v2.x',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>ft', '<cmd>Neotree toggle<cr>', desc = 'NeoTree' },
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
filesystem = {
|
||||||
|
follow_current_file = true,
|
||||||
|
hijack_netrw_behavior = 'open_current',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
8
.config/nvim/lua/plugins/which-key.lua
Normal file
8
.config/nvim/lua/plugins/which-key.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
config = function()
|
||||||
|
vim.o.timeout = true
|
||||||
|
vim.o.timeoutlen = 300
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
29
.config/nvim/lua/plugins/zen-mode.lua
Normal file
29
.config/nvim/lua/plugins/zen-mode.lua
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
return {
|
||||||
|
'folke/zen-mode.nvim',
|
||||||
|
config = {
|
||||||
|
window = {
|
||||||
|
backdrop = 1,
|
||||||
|
width = 80,
|
||||||
|
height = .9,
|
||||||
|
options = {
|
||||||
|
signcolumn = "no",
|
||||||
|
number = false,
|
||||||
|
relativenumber = false,
|
||||||
|
cursorline = false,
|
||||||
|
cursorcolumn = false,
|
||||||
|
foldcolumn = "0",
|
||||||
|
list = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
alacritty = {
|
||||||
|
enabled = true,
|
||||||
|
font = "13",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ '<leader>fg', '<cmd>ZenMode<cr>', desc = 'Zen Mode' },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@@ -1,10 +0,0 @@
|
|||||||
# If a config.py file exists, this file is ignored unless it's explicitly loaded
|
|
||||||
# via config.load_autoconfig(). For more information, see:
|
|
||||||
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml
|
|
||||||
# DO NOT edit this file by hand, qutebrowser will overwrite it.
|
|
||||||
# Instead, create a config.py - see :help for details.
|
|
||||||
|
|
||||||
config_version: 2
|
|
||||||
settings:
|
|
||||||
tabs.show:
|
|
||||||
global: always
|
|
@@ -1,186 +0,0 @@
|
|||||||
# Autogenerated config.py
|
|
||||||
#
|
|
||||||
# NOTE: config.py is intended for advanced users who are comfortable
|
|
||||||
# with manually migrating the config file on qutebrowser upgrades. If
|
|
||||||
# you prefer, you can also configure qutebrowser using the
|
|
||||||
# :set/:bind/:config-* commands without having to write a config.py
|
|
||||||
# file.
|
|
||||||
#
|
|
||||||
# Documentation:
|
|
||||||
# qute://help/configuring.html
|
|
||||||
# qute://help/settings.html
|
|
||||||
|
|
||||||
# Change the argument to True to still load settings configured via autoconfig.yml
|
|
||||||
config.load_autoconfig(False)
|
|
||||||
|
|
||||||
# setting dark mode
|
|
||||||
config.set("colors.webpage.darkmode.enabled", True)
|
|
||||||
|
|
||||||
# Which cookies to accept. With QtWebEngine, this setting also controls
|
|
||||||
# other features with tracking capabilities similar to those of cookies;
|
|
||||||
# including IndexedDB, DOM storage, filesystem API, service workers, and
|
|
||||||
# AppCache. Note that with QtWebKit, only `all` and `never` are
|
|
||||||
# supported as per-domain values. Setting `no-3rdparty` or `no-
|
|
||||||
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
|
|
||||||
# `all`. If this setting is used with URL patterns, the pattern gets
|
|
||||||
# applied to the origin/first party URL of the page making the request,
|
|
||||||
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
|
|
||||||
# from URLs, so URL patterns using paths will not match. With
|
|
||||||
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
|
|
||||||
# you will typically need to set this setting for `example.com` when the
|
|
||||||
# cookie is set on `somesubdomain.example.com` for it to work properly.
|
|
||||||
# To debug issues with this setting, start qutebrowser with `--debug
|
|
||||||
# --logfilter network --debug-flag log-cookies` which will show all
|
|
||||||
# cookies being set.
|
|
||||||
# Type: String
|
|
||||||
# Valid values:
|
|
||||||
# - all: Accept all cookies.
|
|
||||||
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
|
|
||||||
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
|
|
||||||
# - never: Don't accept cookies at all.
|
|
||||||
config.set('content.cookies.accept', 'all', 'chrome-devtools://*')
|
|
||||||
|
|
||||||
# Which cookies to accept. With QtWebEngine, this setting also controls
|
|
||||||
# other features with tracking capabilities similar to those of cookies;
|
|
||||||
# including IndexedDB, DOM storage, filesystem API, service workers, and
|
|
||||||
# AppCache. Note that with QtWebKit, only `all` and `never` are
|
|
||||||
# supported as per-domain values. Setting `no-3rdparty` or `no-
|
|
||||||
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
|
|
||||||
# `all`. If this setting is used with URL patterns, the pattern gets
|
|
||||||
# applied to the origin/first party URL of the page making the request,
|
|
||||||
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
|
|
||||||
# from URLs, so URL patterns using paths will not match. With
|
|
||||||
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
|
|
||||||
# you will typically need to set this setting for `example.com` when the
|
|
||||||
# cookie is set on `somesubdomain.example.com` for it to work properly.
|
|
||||||
# To debug issues with this setting, start qutebrowser with `--debug
|
|
||||||
# --logfilter network --debug-flag log-cookies` which will show all
|
|
||||||
# cookies being set.
|
|
||||||
# Type: String
|
|
||||||
# Valid values:
|
|
||||||
# - all: Accept all cookies.
|
|
||||||
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
|
|
||||||
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
|
|
||||||
# - never: Don't accept cookies at all.
|
|
||||||
config.set('content.cookies.accept', 'all', 'devtools://*')
|
|
||||||
|
|
||||||
# Value to send in the `Accept-Language` header. Note that the value
|
|
||||||
# read from JavaScript is always the global value.
|
|
||||||
# Type: String
|
|
||||||
config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*')
|
|
||||||
|
|
||||||
# User agent to send. The following placeholders are defined: *
|
|
||||||
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
|
||||||
# The underlying WebKit version (set to a fixed value with
|
|
||||||
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
|
||||||
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
|
||||||
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
|
||||||
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
|
||||||
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
|
||||||
# running qutebrowser version. The default value is equal to the
|
|
||||||
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
|
||||||
# read from JavaScript is always the global value. With QtWebEngine
|
|
||||||
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
|
||||||
# JavaScript requires a restart.
|
|
||||||
# Type: FormatString
|
|
||||||
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/')
|
|
||||||
|
|
||||||
# User agent to send. The following placeholders are defined: *
|
|
||||||
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
|
||||||
# The underlying WebKit version (set to a fixed value with
|
|
||||||
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
|
||||||
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
|
||||||
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
|
||||||
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
|
||||||
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
|
||||||
# running qutebrowser version. The default value is equal to the
|
|
||||||
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
|
||||||
# read from JavaScript is always the global value. With QtWebEngine
|
|
||||||
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
|
||||||
# JavaScript requires a restart.
|
|
||||||
# Type: FormatString
|
|
||||||
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0', 'https://accounts.google.com/*')
|
|
||||||
|
|
||||||
# User agent to send. The following placeholders are defined: *
|
|
||||||
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
|
||||||
# The underlying WebKit version (set to a fixed value with
|
|
||||||
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
|
||||||
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
|
||||||
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
|
||||||
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
|
||||||
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
|
||||||
# running qutebrowser version. The default value is equal to the
|
|
||||||
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
|
||||||
# read from JavaScript is always the global value. With QtWebEngine
|
|
||||||
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
|
||||||
# JavaScript requires a restart.
|
|
||||||
# Type: FormatString
|
|
||||||
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')
|
|
||||||
|
|
||||||
# Load images automatically in web pages.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.images', True, 'chrome-devtools://*')
|
|
||||||
|
|
||||||
# Load images automatically in web pages.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.images', True, 'devtools://*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'chrome-devtools://*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'devtools://*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'chrome://*/*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'qute://*/*')
|
|
||||||
|
|
||||||
# Allow websites to show notifications.
|
|
||||||
# Type: BoolAsk
|
|
||||||
# Valid values:
|
|
||||||
# - true
|
|
||||||
# - false
|
|
||||||
# - ask
|
|
||||||
config.set('content.notifications.enabled', False, 'https://www.youtube.com')
|
|
||||||
|
|
||||||
# Position of the tab bar.
|
|
||||||
# Type: Position
|
|
||||||
# Valid values:
|
|
||||||
# - top
|
|
||||||
# - bottom
|
|
||||||
# - left
|
|
||||||
# - right
|
|
||||||
c.tabs.position = 'left'
|
|
||||||
|
|
||||||
# Value to use for `prefers-color-scheme:` for websites. The "light"
|
|
||||||
# value is only available with QtWebEngine 5.15.2+. On older versions,
|
|
||||||
# it is the same as "auto". The "auto" value is broken on QtWebEngine
|
|
||||||
# 5.15.2 due to a Qt bug. There, it will fall back to "light"
|
|
||||||
# unconditionally.
|
|
||||||
# Type: String
|
|
||||||
# Valid values:
|
|
||||||
# - auto: Use the system-wide color scheme setting.
|
|
||||||
# - light: Force a light theme.
|
|
||||||
# - dark: Force a dark theme.
|
|
||||||
c.colors.webpage.preferred_color_scheme = 'dark'
|
|
||||||
|
|
||||||
# Render all web contents using a dark theme. Example configurations
|
|
||||||
# from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based
|
|
||||||
# inversion": Set `colors.webpage.darkmode.algorithm` accordingly. -
|
|
||||||
# "With selective image inversion": Set
|
|
||||||
# `colors.webpage.darkmode.policy.images` to `smart`. - "With selective
|
|
||||||
# inversion of non-image elements": Set
|
|
||||||
# `colors.webpage.darkmode.threshold.text` to 150 and
|
|
||||||
# `colors.webpage.darkmode.threshold.background` to 205. - "With
|
|
||||||
# selective inversion of everything": Combines the two variants above.
|
|
||||||
# Type: Bool
|
|
||||||
c.colors.webpage.darkmode.enabled = False
|
|
||||||
|
|
||||||
|
|
||||||
config.bind('xt', 'config-cycle tabs.show always never')
|
|
20
.xinitrc
20
.xinitrc
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ "$(xrandr --listmonitors)" == *"HDMI2"* ]] && /home/fr/.screenlayout/home.sh
|
|
||||||
|
|
||||||
feh --bg-center "/home/fr/Pictures/bg.png" &
|
|
||||||
|
|
||||||
xautolock -locker slock -detectsleep -secure -time 10 &
|
|
||||||
|
|
||||||
pipewire &
|
|
||||||
pipewire-pulse &
|
|
||||||
dwmblocks &
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
/home/fr/.scripts/batterycheck
|
|
||||||
sleep 30
|
|
||||||
done &
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
dwm
|
|
||||||
done
|
|
Reference in New Issue
Block a user