From 1849b12393f6f6b25086478a2bd0d6e81839139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Mon, 29 Aug 2022 16:59:15 -0600 Subject: [PATCH] =?UTF-8?q?a=C3=B1ade=20sink=20changer=20a=20polybar.=20ac?= =?UTF-8?q?tualiza=20shenv=20C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit también añade una extensión de vscode, pero hay que terminarla de empaquetar --- home/gui/desktop/vscode.nix | 3 ++- home/gui/polybar.nix | 14 ++++++++++++-- home/shenvs/c.nix | 1 + pkgs/vscode.nix | 12 ++++++++++++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/home/gui/desktop/vscode.nix b/home/gui/desktop/vscode.nix index 42fc23b..5ad62c4 100644 --- a/home/gui/desktop/vscode.nix +++ b/home/gui/desktop/vscode.nix @@ -19,6 +19,7 @@ with lib; laurenttreguier.vscode-simple-icons rust-lang.rust sirtori.indenticator + # twxs.cmake ]); userSettings = { "files.autoSave" = "onFocusChange"; @@ -40,4 +41,4 @@ with lib; "editor.autoClosingQuotes" = "never"; }; }; -} \ No newline at end of file +} diff --git a/home/gui/polybar.nix b/home/gui/polybar.nix index 7c03e04..ab7c54f 100644 --- a/home/gui/polybar.nix +++ b/home/gui/polybar.nix @@ -61,7 +61,7 @@ with lib; modules-left = "i3"; modules-center = "xwindow"; - modules-right = "xkeyboard pulseaudio filesystem memory cpu temperature gputemperature nvmetemperature wlan eth date semanatec"; + modules-right = "xkeyboard pulseaudio sink_changer filesystem memory cpu temperature gputemperature nvmetemperature wlan eth date semanatec"; separator = "|"; tray-position = "right"; @@ -85,7 +85,7 @@ with lib; modules-left = "i3"; modules-center = "xwindow"; - modules-right = "xkeyboard pulseaudio date"; + modules-right = "xkeyboard pulseaudio sink_changer date"; tray-position = "none"; }; @@ -428,6 +428,16 @@ with lib; menu-2-1 = "cancel"; menu-2-1-exec = "menu-open-0"; }; + + "module/sink_changer" = { + type = "custom/script"; + exec = "/home/fabian/bin/polybar_scripts/info.sh"; + label = "%output%"; + click-left = "/home/fabian/bin/polybar_scripts/sink_changer.sh"; + # format-prefix = " "; + interval = "0"; + # format-prefix-foreground = "${colors.foreground-alt}"; + }; "settings" = { screenchange-reload = true; diff --git a/home/shenvs/c.nix b/home/shenvs/c.nix index 960b6d5..641cc47 100644 --- a/home/shenvs/c.nix +++ b/home/shenvs/c.nix @@ -2,6 +2,7 @@ { packages = with pkgs; [ binutils + cmake gdb gcc-arm-embedded gnumake diff --git a/pkgs/vscode.nix b/pkgs/vscode.nix index 524bd35..2761365 100644 --- a/pkgs/vscode.nix +++ b/pkgs/vscode.nix @@ -28,4 +28,16 @@ }; meta.license = lib.licenses.cc0; }; + + /* + twxs.cmake = buildVscodeMarketplaceExtension { + mktplcRef = { + publisher = "twxs"; + name = "twxs.cmake"; + version = "0.0.17"; + sha256 = ; + }; + meta.license = lib.licenses.mit; + }; + */ }