New script for restarting audio, new binds for hyprland documented and delition of unused nvim plugins

This commit is contained in:
Sergio Laín 2023-09-05 12:27:26 +02:00
parent 1e908994e3
commit 5a204a3020
8 changed files with 20 additions and 114 deletions

View file

@ -1,4 +0,0 @@
function audiorestart --wraps='systemctl --user restart wireplumber pipewire pipewire-pulse' --description 'alias audiorestart=systemctl --user restart wireplumber pipewire pipewire-pulse'
systemctl --user restart wireplumber pipewire pipewire-pulse $argv
end

View file

@ -134,6 +134,7 @@ bind=SUPER,S,togglegroup
bind=ALT,tab,changegroupactive
## Audio
bind=SUPERCTRL,V,exec,restartAudio
#bind=,XF86AudioPlay,exec,playerctl play-pause
bind=SUPERCTRL,mouse:274,exec,playerctl play-pause
#bind=,XF86AudioPrev,exec,playerctl previous

View file

@ -43,9 +43,3 @@ gestures {
workspace_swipe=yes
workspace_swipe_fingers=4
}
plugin {
split-monitor-workspaces {
count = 10
}
}

View file

@ -10,6 +10,10 @@
key: Ctrl + Win + Mouse Wheel Down
- name: Play Next Song
key: Ctrl + Win + Mouse Wheel Up
- name: Toggle Pavucontrol
key: Win + V
- name: Restart Audio
key: Ctrl + Win + V
- name: Screenshoot Tool (Output)
key: ImprPant
- name: Screenshoot Tool (Selection)
@ -20,6 +24,8 @@
key: Alt + ImprPant
- name: Color Picker
key: Win + ImprPant
- name: Zoom
key: Win + Z
- name: Logout Menu
key: Win + Space
- name: Keybindings Cheatsheet

View file

@ -1,83 +0,0 @@
return {
{
"folke/edgy.nvim",
event = "VeryLazy",
keys = {
{
"<leader>ue",
function()
require("edgy").toggle()
end,
desc = "Edgy Toggle",
},
-- stylua: ignore
{ "<leader>uE", function() require("edgy").select() end, desc = "Edgy Select Window" },
},
opts = function()
local opts = {
left = {
{
title = "Neo-Tree",
ft = "neo-tree",
filter = function(buf)
return vim.b[buf].neo_tree_source == "filesystem"
end,
pinned = true,
open = function()
vim.api.nvim_input("<esc><space>e")
end,
size = { height = 0.5 },
},
--[[ { title = "Neotest Summary", ft = "neotest-summary" },
{
title = "Neo-Tree Git",
ft = "neo-tree",
filter = function(buf)
return vim.b[buf].neo_tree_source == "git_status"
end,
pinned = true,
open = "Neotree position=right git_status",
}, ]]
{
title = "Neo-Tree Symbols",
ft = "neo-tree",
filter = function(buf)
return vim.b[buf].neo_tree_source == "document_symbols"
end,
pinned = true,
open = "Neotree position=top document_symbols",
},
"neo-tree",
},
keys = {
-- increase width
["<c-Right>"] = function(win)
win:resize("width", 2)
end,
-- decrease width
["<c-Left>"] = function(win)
win:resize("width", -2)
end,
-- increase height
["<c-Up>"] = function(win)
win:resize("height", 2)
end,
-- decrease height
["<c-Down>"] = function(win)
win:resize("height", -2)
end,
},
}
local Util = require("lazyvim.util")
if Util.has("symbols-outline.nvim") then
table.insert(opts.left, {
title = "Outline",
ft = "Outline",
pinned = true,
open = "SymbolsOutline",
})
end
return opts
end,
},
}

View file

@ -1,18 +0,0 @@
return {
{
"natecraddock/workspaces.nvim",
opts = {},
event = "VeryLazy",
config = function(_, opts)
require("workspaces").setup({
hooks = {
open = { "Telescope find_files" },
},
})
require("telescope").load_extension("workspaces")
end,
keys = {
{ "<leader>fw", "<Cmd>Telescope workspaces<CR>", desc = "Workspaces" },
},
},
}

View file

@ -213,7 +213,7 @@
"tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
"on-click-middle": "pavucontrol"
"on-click-middle": "easyeffects"
},
"custom/music": {
"format": "{icon} {}",
@ -442,7 +442,7 @@
"tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
"on-click-middle": "pavucontrol"
"on-click-middle": "easyeffects"
},
"custom/music": {
"format": "{icon} {}",
@ -685,7 +685,7 @@
"tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
"on-click-middle": "pavucontrol"
"on-click-middle": "easyeffects"
},
"custom/music": {
"format": "{icon} {}",

10
.local/bin/restartAudio Executable file
View file

@ -0,0 +1,10 @@
#/bin/bash
pkill easyeffects
wait
systemctl --user restart wireplumber pipewire pipewire-pulse
notify-send "Audio restarted" "Audio services have been restarted"
easyeffects --gapplication-service &