mirror of
https://github.com/mintycube/dotfiles.git
synced 2024-10-22 14:05:41 +02:00
Update
This commit is contained in:
parent
ef76d4bddf
commit
e642ffadfc
@ -6,7 +6,7 @@ set icons
|
||||
set nohidden
|
||||
set period 1
|
||||
set sortby ext
|
||||
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
|
||||
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml:*.srt"
|
||||
set promptfmt "\033[32m \033[35;1m%d\033[0m\033[1m%f\033[0m"
|
||||
set autoquit true
|
||||
|
||||
@ -181,6 +181,25 @@ cmd resize-for-wallpaper ${{
|
||||
done
|
||||
}}
|
||||
|
||||
cmd extract-audio ${{
|
||||
for video in $fx; do
|
||||
# Check if the file is a video
|
||||
mime_type=$(file --mime-type -b "$video")
|
||||
if [[ $mime_type == video/* ]]; then
|
||||
# Extract the filename without the extension
|
||||
filename=$(basename -- "$video")
|
||||
extension="${filename##*.}"
|
||||
filename="${filename%.*}"
|
||||
|
||||
# Use ffmpeg to extract audio and save it as mp3
|
||||
ffmpeg -i "$video" -q:a 0 -map a "${filename}.mp3"
|
||||
echo "Audio extracted from $video and saved as ${filename}.mp3"
|
||||
else
|
||||
echo "$video is not a video file. Skipping."
|
||||
fi
|
||||
done
|
||||
}}
|
||||
|
||||
cmd toggle_preview %{{
|
||||
if [ "$lf_preview" = "true" ]; then
|
||||
lf -remote "send $id :set preview false; set ratios 1:5"
|
||||
|
@ -10,27 +10,27 @@
|
||||
"cmp-vimtex": { "branch": "master", "commit": "a64b1b5eec0460144c91c4f20a45c74b8ded48ae" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"flit.nvim": { "branch": "main", "commit": "a9be4e76c30a128f1e51af448c8321bf8366bcd4" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "682157939e57bd6a2c86277dfd4d6fbfce63dbac" },
|
||||
"fzf-lua": { "branch": "main", "commit": "72752f7d783b3a56f4e27c8592600646b991a928" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "39b5b6f48bde0595ce68007ffce408c5d7ac1f79" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "45a1b96e46efe5fce8af325d4bed45feb9d29d0f" },
|
||||
"fzf-lua": { "branch": "main", "commit": "975534f4861e2575396716225c1202572645583d" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "220446c8c86a280180d852efac60991eaf1a21d4" },
|
||||
"harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "894cd193e9ffc05dcb75ff0093c1b72880d5d9c1" },
|
||||
"leap.nvim": { "branch": "main", "commit": "75c246f562ab34a92c359c3c4d2eb138768b92ec" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "1870238cf9c579c5d7eb8ea8b296f10b81978d34" },
|
||||
"leap.nvim": { "branch": "main", "commit": "0cdb59d87dc6287a025edbe4296b7cb05278561c" },
|
||||
"lf.nvim": { "branch": "master", "commit": "69ab1efcffee6928bf68ac9bd0c016464d9b2c8b" },
|
||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "87701af045b3032515776abeb47eb8c2ddb5e679" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "6a40b530539d2209f7dc0492f3681c8c126647ad" },
|
||||
"luasnip-latex-snippets.nvim": { "branch": "main", "commit": "4b91f28d91979f61a3e8aef1cee5b7c7f2c7beb8" },
|
||||
"markdown-preview.nvim": { "branch": "main", "commit": "462ce41af003f5cdadab856f3a42dc27e39b89c8" },
|
||||
"markview.nvim": { "branch": "main", "commit": "7e1afc98f022011c753df6384812375af8c42175" },
|
||||
"markview.nvim": { "branch": "main", "commit": "708eb913b3bd858269a2be5e19340a60cd7c68b4" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" },
|
||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "4ba55f9755ebe8297d92c419b90a946123292ae6" },
|
||||
"mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" },
|
||||
"mason.nvim": { "branch": "main", "commit": "2af3b574b68dc0273c7fb60369f3a48d5a16a857" },
|
||||
"mini.ai": { "branch": "main", "commit": "45587078f323eaf41b9f701bbc04f8d1ab008979" },
|
||||
"mini.pairs": { "branch": "main", "commit": "927d19cbdd0e752ab1c7eed87072e71d2cd6ff51" },
|
||||
"mini.surround": { "branch": "main", "commit": "7098744c8d4573a4b32cb172965f6b2ba03465d2" },
|
||||
"noice.nvim": { "branch": "main", "commit": "f26515c768a4b8eb39b4ec6b04d244ad4bc7cfc9" },
|
||||
"noice.nvim": { "branch": "main", "commit": "04ff1defa257db569a687ec16051a27fbaeb0e2f" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "0d1b3fa2ad0b371b94cb4b9a27ba6e5a1a915c91" },
|
||||
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
|
||||
@ -41,30 +41,31 @@
|
||||
"nvim-html-css": { "branch": "main", "commit": "c514bd27ad560636ed39dea3e370b3103754e244" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "cf97d2485fc3f6d4df1b79a3ea183e24c272215e" },
|
||||
"nvim-markdown": { "branch": "master", "commit": "bf5c87788156f072cfb87b994844424b164b5b44" },
|
||||
"nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
|
||||
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
||||
"nvim-nio": { "branch": "master", "commit": "7969e0a8ffabdf210edd7978ec954a47a737bbcc" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "49fae98ef2bfa8342522b337892992e3495065d5" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "a8c082b4f5b3b70bde2ffb08cc112dfd7e515fb3" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "9a28f926d3371b7ef02243cbbb653a0478d06e31" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "c1ad655b6a0c83ab48e55240f367e2bc0c15af31" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "34867c69838078df7d6919b130c0541c0b400c47" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "ddfccbf0df1b9349c2b9e9b17f4afa8f9b6c1ed1" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "2b7dcf6aab0947b9c4195f1d8aa592cdcd944ffe" },
|
||||
"nvim-ufo": { "branch": "main", "commit": "aa2e676af592b4e99c105d80d6eafd1afc215d99" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "323a3e16ed603e2e17b26b1c836d1e86c279f726" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "f1905136b99b5d706858d4c9274a3b152b4359ed" },
|
||||
"nvim-ufo": { "branch": "main", "commit": "a57e088487f099197246fd24be7423c6c4dedcef" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
|
||||
"outline.nvim": { "branch": "main", "commit": "2175b6da5b7b5be9de14fd3f54383a17f5e4609c" },
|
||||
"persistence.nvim": { "branch": "main", "commit": "04599f36b5fa9b2bb0fca09c7b5ac2d1fda5a8e1" },
|
||||
"persistence.nvim": { "branch": "main", "commit": "c45ff862b53ce07a853a753fb0b33e148dbb99d2" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
||||
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
|
||||
"promise-async": { "branch": "main", "commit": "28c1d5a295eb5310afa2523d4ae9aa41ec5a9de2" },
|
||||
"qalc.nvim": { "branch": "scratch_buffer", "commit": "1463a59e85067e8524a2146b9cdfbe3554359153" },
|
||||
"qalculate.vim": { "branch": "main", "commit": "d0269924bfa623bf0f73218041241cc83e97379e" },
|
||||
"refactoring.nvim": { "branch": "master", "commit": "d07218748c48e756c27aa6859bfa6e62a3d271af" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "92e180db74102057263bd5a1dc30056b03424a08" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "cd55bf6aab3f88c259fa29ea86bbdcb1a325687d" },
|
||||
"tokyonight.nvim": { "branch": "main", "commit": "17dd14745b56def3ba31f729734f2331151fefc8" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "34be821abfd5ee0aba337a1869d2161c36c45b1d" },
|
||||
"tokyonight.nvim": { "branch": "main", "commit": "0a84c2df1dc65610ee0d9b516b2fb342e4b0ed6f" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "4453fea6bb597830fbd58d2c484612f37b97bd8c" },
|
||||
"undotree": { "branch": "main", "commit": "eab459ab87dd249617b5f7187bb69e614a083047" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
|
||||
"vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" },
|
||||
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
|
||||
"vimtex": { "branch": "master", "commit": "2dc2a5435809c13f6f4aa07964be4ef19a7864f5" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "c13a5fb71b5b05d21c15b317d90269d7c7774892" },
|
||||
"zen-mode.nvim": { "branch": "main", "commit": "abe7784f0413fc464da43f68c870a39677418e38" }
|
||||
"which-key.nvim": { "branch": "main", "commit": "af4ded85542d40e190014c732fa051bdbf88be3d" },
|
||||
"zen-mode.nvim": { "branch": "main", "commit": "21976479c7a0146b05a42707cf91c86b1e510945" }
|
||||
}
|
@ -111,6 +111,7 @@ return { -- colorscheme
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("tokyonight").setup({
|
||||
transparent = true, -- Enable this to disable setting the background color
|
||||
styles = {
|
||||
sidebars = "dark",
|
||||
floats = "dark",
|
||||
@ -148,6 +149,8 @@ return { -- colorscheme
|
||||
end,
|
||||
})
|
||||
vim.cmd.colorscheme("tokyonight")
|
||||
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ return {
|
||||
-- markdown
|
||||
{
|
||||
"OXY2DEV/markview.nvim",
|
||||
enabled = false,
|
||||
ft = { "markdown" },
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
@ -47,43 +48,42 @@ return {
|
||||
},
|
||||
|
||||
-- qalc
|
||||
-- {
|
||||
-- "iffse/qalculate.vim",
|
||||
-- event = "BufEnter *.qalc",
|
||||
-- },
|
||||
{
|
||||
"grueslayer/qalc.nvim",
|
||||
branch = "scratch_buffer",
|
||||
"iffse/qalculate.vim",
|
||||
event = "BufEnter *.qalc",
|
||||
cmd = { "QalcAttach", "QalcYank" },
|
||||
dependencies = {
|
||||
"iffse/qalculate.vim"
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>cqa", "<cmd>QalcAttach<CR>", desc = "Attach Calculator" },
|
||||
{ "<leader>cqy", "<cmd>QalcYank<CR>", desc = "Yank Result" },
|
||||
},
|
||||
opts = {
|
||||
cmd_args = { 't' }, -- table
|
||||
bufname = '', -- string
|
||||
set_ft = 'qalculate', -- string
|
||||
attach_extension = '*.qalc', -- string
|
||||
sign = ' ==> ', -- string
|
||||
show_sign = true, -- boolean
|
||||
right_align = true, -- boolean
|
||||
highlights = {
|
||||
sign = '@comment', -- sign before result
|
||||
result = '@string', -- result in virtual text
|
||||
},
|
||||
diagnostics = { -- table
|
||||
underline = false,
|
||||
virtual_text = false,
|
||||
signs = true,
|
||||
update_in_insert = true,
|
||||
severity_sort = true,
|
||||
}
|
||||
}
|
||||
},
|
||||
-- {
|
||||
-- "grueslayer/qalc.nvim",
|
||||
-- branch = "scratch_buffer",
|
||||
-- event = "BufEnter *.qalc",
|
||||
-- cmd = { "QalcAttach", "QalcYank" },
|
||||
-- dependencies = {
|
||||
-- "iffse/qalculate.vim"
|
||||
-- },
|
||||
-- keys = {
|
||||
-- { "<leader>cqa", "<cmd>QalcAttach<CR>", desc = "Attach Calculator" },
|
||||
-- { "<leader>cqy", "<cmd>QalcYank<CR>", desc = "Yank Result" },
|
||||
-- },
|
||||
-- opts = {
|
||||
-- bufname = '', -- string
|
||||
-- set_ft = 'qalculate', -- string
|
||||
-- attach_extension = '*.qalc', -- string
|
||||
-- sign = ' ==> ', -- string
|
||||
-- show_sign = true, -- boolean
|
||||
-- right_align = true, -- boolean
|
||||
-- highlights = {
|
||||
-- sign = '@comment', -- sign before result
|
||||
-- result = '@string', -- result in virtual text
|
||||
-- },
|
||||
-- diagnostics = { -- table
|
||||
-- underline = false,
|
||||
-- virtual_text = false,
|
||||
-- signs = true,
|
||||
-- update_in_insert = true,
|
||||
-- severity_sort = true,
|
||||
-- }
|
||||
-- }
|
||||
-- },
|
||||
|
||||
-- vimtex + snippets
|
||||
{
|
||||
|
@ -537,6 +537,7 @@ return {
|
||||
["lua"] = "lua %",
|
||||
["zsh"] = "zsh %",
|
||||
["sh"] = "sh %",
|
||||
["qalculate"] = "qalc --color='1' --file %",
|
||||
-- ["java"] = "cd %:h && javac *.java && java %:t:r",
|
||||
-- ["asm"] = "nasm -f elf64 % -o %:r.o && ld %:r.o -o %:r && ./%:r && rm %:r.o",
|
||||
-- ["cpp"] = "g++ -g -Wall -Weffc++ -Wextra -Wconversion -Wsign-conversion -Werror -std=c++20 -pedantic-errors % -o %:r && ./%:r",
|
||||
|
@ -105,6 +105,24 @@ return {
|
||||
},
|
||||
{ "hrsh7th/cmp-nvim-lsp" },
|
||||
{ "williamboman/mason-lspconfig.nvim" },
|
||||
{
|
||||
"SmiteshP/nvim-navbuddy",
|
||||
dependencies = {
|
||||
"SmiteshP/nvim-navic",
|
||||
"MunifTanjim/nui.nvim"
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>n", function() require("nvim-navbuddy").open() end, desc = "Open Navbuddy" },
|
||||
},
|
||||
opts = {
|
||||
lsp = {
|
||||
auto_attach = true
|
||||
},
|
||||
window = {
|
||||
border = "rounded",
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
config = function()
|
||||
local lsp_zero = require("lsp-zero")
|
||||
|
@ -66,47 +66,12 @@ return {
|
||||
config = function()
|
||||
local function get_colors()
|
||||
local colorscheme = vim.g.colors_name
|
||||
if colorscheme == "rose-pine" then
|
||||
if colorscheme == "tokyonight-moon" then
|
||||
local colors = require("tokyonight.colors").setup()
|
||||
return {
|
||||
bg = "#232136",
|
||||
fg = "#908caa",
|
||||
active_buf = "#e0def4",
|
||||
}
|
||||
elseif colorscheme == "tokyonight-moon" then
|
||||
return {
|
||||
bg = '#222436',
|
||||
fg = '#636DA6',
|
||||
active_buf = "#C8D3F5",
|
||||
}
|
||||
elseif colorscheme == "tokyodark" then
|
||||
return {
|
||||
bg = '#11121D',
|
||||
fg = '#4A5057',
|
||||
active_buf = "#a0a8cd",
|
||||
}
|
||||
elseif colorscheme == "oxocarbon" then
|
||||
return {
|
||||
bg = '#161616',
|
||||
fg = '#525252',
|
||||
active_buf = "#dde1e6",
|
||||
}
|
||||
elseif colorscheme == "evergarden" then
|
||||
return {
|
||||
bg = '#1c2023',
|
||||
fg = '#859289',
|
||||
active_buf = "#D6CBB4",
|
||||
}
|
||||
elseif colorscheme == "nordic" then
|
||||
return {
|
||||
bg = '#242933',
|
||||
fg = '#4C566A',
|
||||
active_buf = "#C0C8D8",
|
||||
}
|
||||
elseif colorscheme == "catppuccin-mocha" then
|
||||
return {
|
||||
bg = '#1E1E2E',
|
||||
fg = '#6C7086',
|
||||
active_buf = "#CDD6F4",
|
||||
bg = colors.bg,
|
||||
fg = colors.comment,
|
||||
active_buf = colors.fg,
|
||||
}
|
||||
elseif colorscheme == "default" then
|
||||
return {
|
||||
@ -371,7 +336,7 @@ return {
|
||||
":lua require('fzf-lua').files({cmd=[[fd -t f -E '*.json' -E '*.pdf' -E '*.canvas']],cwd =[[~/notes]]})<CR>"),
|
||||
dashboard.button("c", " Configuration", ":e $MYVIMRC <CR>"),
|
||||
dashboard.button("z", " Lazy", ":Lazy<CR>"),
|
||||
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
|
||||
dashboard.button("q", " Quit", ":qa<CR>"),
|
||||
}
|
||||
dashboard.section.buttons.opts.spacing = 0
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 46e5c3812f917194ae6150817aa1be11c77c75e5
|
||||
Subproject commit 64162db4b90df6edf6b536e5ecfcaa426bd28877
|
1
.config/suckless/slock
Submodule
1
.config/suckless/slock
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 0238bdf643c0152c2b17d3cc94c971fa18affa8d
|
@ -1 +1 @@
|
||||
Subproject commit 6c03c605d9f9afba2d4279e66af2c4dc339c56f4
|
||||
Subproject commit 33db255a2d3be3617eddb0da72b64ec7fd2d774e
|
@ -1,12 +1,10 @@
|
||||
# You can manually run `z4h update` to update everything.
|
||||
zstyle ':z4h:' auto-update 'no'
|
||||
zstyle ':z4h:bindkey' keyboard 'pc'
|
||||
zstyle ':z4h:' start-tmux 'no'
|
||||
# if [[ -z $DISPLAY && XDG_VTNR -eq 1 ]]; then
|
||||
# zstyle ':z4h:' start-tmux 'no'
|
||||
zstyle ':z4h:' start-tmux 'no'
|
||||
# else
|
||||
# zstyle ':z4h:' start-tmux command tmux -u new -A -D -t z4h
|
||||
# zstyle ':z4h:' start-tmux 'no'
|
||||
# zstyle ':z4h:' start-tmux command tmux -u new -A -D -t zsh
|
||||
# fi
|
||||
zstyle ':z4h:' propagate-cwd yes
|
||||
zstyle ':z4h:' prompt-at-bottom 'no'
|
||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -10,3 +10,6 @@
|
||||
[submodule ".config/suckless/st"]
|
||||
path = .config/suckless/st
|
||||
url = git@github.com:mintycube/st.git
|
||||
[submodule ".config/suckless/slock"]
|
||||
path = .config/suckless/slock
|
||||
url = git@github.com:mintycube/slock.git
|
||||
|
@ -26,8 +26,8 @@ configs="[1;34m$XDG_CONFIG_HOME/suckless/dmenu/[1;32mconfig.h
|
||||
|
||||
fzf_command="fzf --prompt ' Configs ' \
|
||||
--layout=reverse -m --height=100% --pointer=' ' \
|
||||
--ellipsis= --scheme=path --algo=v2 --color='16' \
|
||||
--preview-window='bottom,60%,border-top' --border=sharp \
|
||||
--ellipsis= --scheme=path --algo=v2 \
|
||||
--preview-window='bottom,60%,border-top' \
|
||||
--margin='5%,10%,5%,10%' --info=inline-right \
|
||||
--ansi --preview='fuz-preview {}' \
|
||||
--bind 'enter:become(nvim {})'"
|
||||
|
@ -37,7 +37,7 @@ for battery in /sys/class/power_supply/BAT?*; do
|
||||
"Full") status="^C2^ ^d^" ;;
|
||||
"Discharging") status="^C5^ ^d^" ;;
|
||||
"Charging") status="^C3^ ^d^" ;;
|
||||
"Not charging") status="^C1^ ^d^" ;;
|
||||
"Not charging") status="^C1^ ^d^" ;;
|
||||
"Unknown") status="^C6^ ^d^" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
@ -7,7 +7,7 @@ case $BLOCK_BUTTON in
|
||||
2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
|
||||
4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
|
||||
5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
|
||||
3) notify-send " Volume module" "\- Shows volume , if muted.
|
||||
3) notify-send " Volume module" "\- Shows volume , if muted.
|
||||
- Middle click to mute.
|
||||
- Scroll to change." ;;
|
||||
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||
@ -29,26 +29,15 @@ split() {
|
||||
|
||||
vol="$(printf "%.0f" "$(split "$vol" ".")")"
|
||||
|
||||
if [ ! -e ~/.cache/bar_color ]; then
|
||||
case 1 in
|
||||
$((vol >= 100)) ) icon=" ━━━━━⏽ " ;;
|
||||
$((vol >= 80)) ) icon=" ━━━━⏽━ " ;;
|
||||
$((vol >= 60)) ) icon=" ━━━⏽━━ " ;;
|
||||
$((vol >= 40)) ) icon=" ━━⏽━━━ " ;;
|
||||
$((vol >= 20)) ) icon=" ━⏽━━━━ " ;;
|
||||
$((vol >= 1)) ) icon=" ⏽━━━━━ " ;;
|
||||
* ) echo " " && exit ;;
|
||||
$((vol >= 70)) ) icon=" " ;;
|
||||
$((vol >= 30)) ) icon=" " ;;
|
||||
$((vol >= 1)) ) icon=" " ;;
|
||||
* ) echo && exit ;;
|
||||
esac
|
||||
|
||||
if [ ! -e ~/.cache/bar_color ]; then
|
||||
echo "$icon$vol%"
|
||||
else
|
||||
case 1 in
|
||||
$((vol >= 100)) ) icon=" ^C3^━━━━━^d^⏽ " ;;
|
||||
$((vol >= 80)) ) icon=" ^C3^━━━━^d^⏽━ " ;;
|
||||
$((vol >= 60)) ) icon=" ^C3^━━━^d^⏽━━ " ;;
|
||||
$((vol >= 40)) ) icon=" ^C3^━━^d^⏽━━━ " ;;
|
||||
$((vol >= 20)) ) icon=" ^C3^━^d^⏽━━━━ " ;;
|
||||
$((vol >= 1)) ) icon=" ^d^⏽━━━━━ " ;;
|
||||
* ) echo "^C4^ ^d^" && exit ;;
|
||||
esac
|
||||
echo "^C4^$icon^d^$vol%"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user