From 5a204a3020ec7f48e1894fc08e293a626e0b279a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 5 Sep 2023 12:27:26 +0200 Subject: [PATCH] New script for restarting audio, new binds for hyprland documented and delition of unused nvim plugins --- .config/fish/functions/audiorestart.fish | 4 - .config/hypr/keybinds/binds.conf | 1 + .config/hypr/themes/luna/luna.conf | 6 -- .config/keyb/bindings/hyprland.yml | 6 ++ .config/nvim/lua/plugins/edgy.lua.bak | 83 --------------------- .config/nvim/lua/plugins/workspaces.lua.bak | 18 ----- .config/waybar/config | 6 +- .local/bin/restartAudio | 10 +++ 8 files changed, 20 insertions(+), 114 deletions(-) delete mode 100644 .config/fish/functions/audiorestart.fish delete mode 100644 .config/nvim/lua/plugins/edgy.lua.bak delete mode 100644 .config/nvim/lua/plugins/workspaces.lua.bak create mode 100755 .local/bin/restartAudio diff --git a/.config/fish/functions/audiorestart.fish b/.config/fish/functions/audiorestart.fish deleted file mode 100644 index d32d0b0a..00000000 --- a/.config/fish/functions/audiorestart.fish +++ /dev/null @@ -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 diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 73fb7b85..06e6270b 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -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 diff --git a/.config/hypr/themes/luna/luna.conf b/.config/hypr/themes/luna/luna.conf index f2f73980..5aa2c087 100644 --- a/.config/hypr/themes/luna/luna.conf +++ b/.config/hypr/themes/luna/luna.conf @@ -43,9 +43,3 @@ gestures { workspace_swipe=yes workspace_swipe_fingers=4 } - -plugin { - split-monitor-workspaces { - count = 10 - } -} diff --git a/.config/keyb/bindings/hyprland.yml b/.config/keyb/bindings/hyprland.yml index dfe741bc..ef6a993e 100644 --- a/.config/keyb/bindings/hyprland.yml +++ b/.config/keyb/bindings/hyprland.yml @@ -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 diff --git a/.config/nvim/lua/plugins/edgy.lua.bak b/.config/nvim/lua/plugins/edgy.lua.bak deleted file mode 100644 index 46248a67..00000000 --- a/.config/nvim/lua/plugins/edgy.lua.bak +++ /dev/null @@ -1,83 +0,0 @@ -return { - { - "folke/edgy.nvim", - event = "VeryLazy", - keys = { - { - "ue", - function() - require("edgy").toggle() - end, - desc = "Edgy Toggle", - }, - -- stylua: ignore - { "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("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 - [""] = function(win) - win:resize("width", 2) - end, - -- decrease width - [""] = function(win) - win:resize("width", -2) - end, - -- increase height - [""] = function(win) - win:resize("height", 2) - end, - -- decrease height - [""] = 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, - }, -} diff --git a/.config/nvim/lua/plugins/workspaces.lua.bak b/.config/nvim/lua/plugins/workspaces.lua.bak deleted file mode 100644 index 7efc870a..00000000 --- a/.config/nvim/lua/plugins/workspaces.lua.bak +++ /dev/null @@ -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 = { - { "fw", "Telescope workspaces", desc = "Workspaces" }, - }, - }, -} diff --git a/.config/waybar/config b/.config/waybar/config index 3654f9fd..5ffcf8b2 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -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} {}", diff --git a/.local/bin/restartAudio b/.local/bin/restartAudio new file mode 100755 index 00000000..08ce797c --- /dev/null +++ b/.local/bin/restartAudio @@ -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 &