More polybar changes and added discord
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -25,8 +25,7 @@ bluetooth_print() {
|
||||
|
||||
printf '\n'
|
||||
else
|
||||
# ""
|
||||
echo ""
|
||||
echo " -"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
samfelag = {
|
||||
modules = {
|
||||
app = {
|
||||
discord.enable = true;
|
||||
spotify.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
{
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
./discord.nix
|
||||
./spotify.nix
|
||||
];
|
||||
}
|
||||
|
||||
17
home/modules/app/discord.nix
Normal file
17
home/modules/app/discord.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -52,7 +52,6 @@ in {
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
enable = true;
|
||||
package = pkgs.i3-gaps;
|
||||
|
||||
config = {
|
||||
modifier = mod;
|
||||
|
||||
3
overlays/default.nix
Normal file
3
overlays/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
[
|
||||
(import ./discord.nix)
|
||||
]
|
||||
6
overlays/discord.nix
Normal file
6
overlays/discord.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
self: super:
|
||||
{
|
||||
discord = super.discord.overrideAttrs (_: {
|
||||
src = builtins.fetchTarball https://discord.com/api/download?platform=linux&format=tar.gz;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user