More polybar changes and added discord
This commit is contained in:
@@ -11,13 +11,13 @@ accumulate-stats = true
|
|||||||
speed-unit = ''
|
speed-unit = ''
|
||||||
|
|
||||||
format-connected = <label-connected>
|
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-background = ${colours/wireless.connected-bg}
|
||||||
label-connected-foreground = ${colours/wireless.connected-fg}
|
label-connected-foreground = ${colours/wireless.connected-fg}
|
||||||
label-connected-padding = 1
|
label-connected-padding = 1
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
format-disconnected = <label-disconnected>
|
||||||
label-disconnected = not connected
|
label-disconnected = %{T2}睊
|
||||||
label-disconnected-background = ${colours/wireless.disconnected-bg}
|
label-disconnected-background = ${colours/wireless.disconnected-bg}
|
||||||
label-disconnected-foreground = ${colours/wireless.disconnected-fg}
|
label-disconnected-foreground = ${colours/wireless.disconnected-fg}
|
||||||
label-disconnected-padding = 1
|
label-disconnected-padding = 1
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ bluetooth_print() {
|
|||||||
|
|
||||||
printf '\n'
|
printf '\n'
|
||||||
else
|
else
|
||||||
# ""
|
echo " -"
|
||||||
echo ""
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = import ./overlays;
|
||||||
};
|
};
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in {
|
in {
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
# - Kopavogur ----------------------------
|
# - Kopavogur ----------------------------
|
||||||
kopavogur = lib.nixosSystem {
|
kopavogur = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
||||||
./system/modules
|
./system/modules
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
samfelag = {
|
samfelag = {
|
||||||
modules = {
|
modules = {
|
||||||
app = {
|
app = {
|
||||||
|
discord.enable = true;
|
||||||
spotify.enable = true;
|
spotify.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
|
./discord.nix
|
||||||
./spotify.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 = {
|
xsession.windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.i3-gaps;
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
modifier = mod;
|
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