More polybar changes and added discord

This commit is contained in:
marc
2022-11-07 19:40:18 +01:00
parent 5f41530745
commit 4577adc53f
9 changed files with 33 additions and 5 deletions

View File

@@ -11,13 +11,13 @@ accumulate-stats = true
speed-unit = ''
format-connected = <label-connected>
label-connected = %essid% (%local_ip%)
label-connected = %{T2}直%{T-} %essid% (%local_ip%)
label-connected-background = ${colours/wireless.connected-bg}
label-connected-foreground = ${colours/wireless.connected-fg}
label-connected-padding = 1
format-disconnected = <label-disconnected>
label-disconnected = not connected
label-disconnected = %{T2}睊
label-disconnected-background = ${colours/wireless.disconnected-bg}
label-disconnected-foreground = ${colours/wireless.disconnected-fg}
label-disconnected-padding = 1

View File

@@ -25,8 +25,7 @@ bluetooth_print() {
printf '\n'
else
# ""
echo ""
echo " -"
fi
}

View File

@@ -18,6 +18,7 @@
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = import ./overlays;
};
lib = nixpkgs.lib;
in {
@@ -26,6 +27,7 @@
# - Kopavogur ----------------------------
kopavogur = lib.nixosSystem {
inherit system;
inherit pkgs;
modules = [
./system/modules

View File

@@ -6,6 +6,7 @@
samfelag = {
modules = {
app = {
discord.enable = true;
spotify.enable = true;
};
};

View File

@@ -3,6 +3,7 @@
{
imports = [
./alacritty.nix
./discord.nix
./spotify.nix
];
}

View File

@@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.samfelag.modules.app.discord;
in
{
options.samfelag.modules.app.discord = {
enable = mkEnableOption "discord";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
discord
];
};
}

View File

@@ -52,7 +52,6 @@ in {
xsession.windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
config = {
modifier = mod;

3
overlays/default.nix Normal file
View File

@@ -0,0 +1,3 @@
[
(import ./discord.nix)
]

6
overlays/discord.nix Normal file
View File

@@ -0,0 +1,6 @@
self: super:
{
discord = super.discord.overrideAttrs (_: {
src = builtins.fetchTarball https://discord.com/api/download?platform=linux&format=tar.gz;
});
}