update, reformatted with alejandra
This commit is contained in:
parent
9b931aed52
commit
23f622a378
17
flake.lock
17
flake.lock
|
@ -302,22 +302,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mpd-discord-rpc": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696275938,
|
|
||||||
"narHash": "sha256-hIbODswDa50BoAysXXT2HEoJJIp4d28NAQBm3DzYILg=",
|
|
||||||
"owner": "JakeStanger",
|
|
||||||
"repo": "mpd-discord-rpc",
|
|
||||||
"rev": "f887d05794a6dffb1cc4e143e8155d6b318e0e1a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "JakeStanger",
|
|
||||||
"repo": "mpd-discord-rpc",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-index-database": {
|
"nix-index-database": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -437,7 +421,6 @@
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprland-contrib": "hyprland-contrib",
|
"hyprland-contrib": "hyprland-contrib",
|
||||||
"hyprpicker": "hyprpicker",
|
"hyprpicker": "hyprpicker",
|
||||||
"mpd-discord-rpc": "mpd-discord-rpc",
|
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nixd": "nixd",
|
"nixd": "nixd",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
|
20
flake.nix
20
flake.nix
|
@ -80,8 +80,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
...
|
||||||
|
} @ inputs: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
@ -100,18 +104,20 @@
|
||||||
inputs.nixd.overlays.default
|
inputs.nixd.overlays.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||||
overlays = (import ./overlay.nix { inherit inputs; });
|
overlays = import ./overlay.nix {inherit inputs;};
|
||||||
|
|
||||||
nixosConfigurations.terra = nixpkgs.lib.nixosSystem
|
nixosConfigurations.terra =
|
||||||
|
nixpkgs.lib.nixosSystem
|
||||||
{
|
{
|
||||||
inherit system;
|
inherit system;
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
specialArgs = {inherit inputs;};
|
specialArgs = {inherit inputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./system/configuration.nix
|
./system/configuration.nix
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.manuel = import ./user/home.nix;
|
users.manuel = import ./user/home.nix;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
|
||||||
default = final: prev: {
|
default = final: prev: {
|
||||||
|
|
||||||
gruvbox-plus-icon-pack = final.callPackage ./pkgs/gruvbox-plus-icon-pack {inherit inputs;};
|
gruvbox-plus-icon-pack = final.callPackage ./pkgs/gruvbox-plus-icon-pack {inherit inputs;};
|
||||||
|
|
||||||
ncmpcpp = prev.ncmpcpp.override {
|
ncmpcpp = prev.ncmpcpp.override {
|
||||||
|
@ -32,7 +30,7 @@
|
||||||
extraLibraries = prev: [];
|
extraLibraries = prev: [];
|
||||||
};
|
};
|
||||||
|
|
||||||
nvim-hmts = prev.vimUtils.buildVimPluginFrom2Nix {
|
nvim-hmts = prev.vimUtils.buildVimPlugin {
|
||||||
pname = "nvim-hmts";
|
pname = "nvim-hmts";
|
||||||
version = "1";
|
version = "1";
|
||||||
src = inputs.nvim-hmts;
|
src = inputs.nvim-hmts;
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
{ stdenvNoCC, fetchFromGitHub, inputs, gtk3, fd, gnome-icon-theme, hicolor-icon-theme }:
|
{
|
||||||
|
stdenvNoCC,
|
||||||
|
fetchFromGitHub,
|
||||||
|
inputs,
|
||||||
|
gtk3,
|
||||||
|
fd,
|
||||||
|
gnome-icon-theme,
|
||||||
|
hicolor-icon-theme,
|
||||||
|
}:
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "gruvbox-plus-icon-pack";
|
pname = "gruvbox-plus-icon-pack";
|
||||||
version = "9999";
|
version = "9999";
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{ pkgs, lib, config, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./hardware
|
./hardware
|
||||||
|
@ -12,11 +17,9 @@
|
||||||
|
|
||||||
kernel.sysctl."vm.max_map_count" = 16777216; #Star Citizen crash fix
|
kernel.sysctl."vm.max_map_count" = 16777216; #Star Citizen crash fix
|
||||||
|
|
||||||
#kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
supportedFilesystems = [ "bcachefs" ];
|
|
||||||
kernelModules = ["i2c-dev" "i2c-piix4"];
|
kernelModules = ["i2c-dev" "i2c-piix4"];
|
||||||
kernelParams =
|
kernelParams = [
|
||||||
[
|
|
||||||
"amdgpu.ppfeaturemask=0xffffffff"
|
"amdgpu.ppfeaturemask=0xffffffff"
|
||||||
"net.ifnames=0"
|
"net.ifnames=0"
|
||||||
"amd_pstate.shared_mem=1"
|
"amd_pstate.shared_mem=1"
|
||||||
|
@ -26,7 +29,7 @@
|
||||||
loader = {
|
loader = {
|
||||||
efi = {
|
efi = {
|
||||||
canTouchEfiVariables = true;
|
canTouchEfiVariables = true;
|
||||||
efiSysMountPoint = "/boot";
|
efiSysMountPoint = "/boot/efi";
|
||||||
};
|
};
|
||||||
|
|
||||||
grub = {
|
grub = {
|
||||||
|
@ -76,7 +79,6 @@
|
||||||
keyMap = "us-acentos";
|
keyMap = "us-acentos";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
|
@ -89,11 +91,13 @@
|
||||||
|
|
||||||
doas = {
|
doas = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraRules = [{
|
extraRules = [
|
||||||
|
{
|
||||||
users = ["manuel"];
|
users = ["manuel"];
|
||||||
keepEnv = true;
|
keepEnv = true;
|
||||||
persist = true;
|
persist = true;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -167,7 +171,6 @@
|
||||||
"https://nyx.chaotic.cx"
|
"https://nyx.chaotic.cx"
|
||||||
"https://hyprland.cachix.org"
|
"https://hyprland.cachix.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
|
@ -181,4 +184,3 @@
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,39 +1,48 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "bcache" ];
|
boot.initrd.availableKernelModules = ["nvme"];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/nvme1n1p2";
|
device = "/dev/disk/by-uuid/cc08e6a4-46ef-4207-a2d9-195e36e06179";
|
||||||
fsType = "bcachefs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/BE4D-EFA9";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/hdd" =
|
|
||||||
{ device = "/dev/disk/by-uuid/ecbbfb05-ada8-4044-81a6-9a280f93802f";
|
|
||||||
fsType = "xfs";
|
fsType = "xfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/boot/efi" = {
|
||||||
{ device = "/dev/nvme0n1p1";
|
device = "/dev/disk/by-uuid/BE4D-EFA9";
|
||||||
fsType = "bcachefs";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
fileSystems."/mnt/hdd" = {
|
||||||
|
device = "/dev/disk/by-uuid/ecbbfb05-ada8-4044-81a6-9a280f93802f";
|
||||||
|
fsType = "xfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" = {
|
||||||
|
device = "/dev/disk/by-uuid/9d1be271-ca41-43cc-a334-016103bfde1a";
|
||||||
|
fsType = "xfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/var/swapfile";
|
||||||
|
size = 8 * 1024;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = [pkgs.libvdpau-va-gl];
|
extraPackages = [pkgs.libvdpau-va-gl];
|
||||||
|
@ -14,6 +13,4 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extraBackends = [pkgs.sane-airscan];
|
extraBackends = [pkgs.sane-airscan];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
programs = {
|
programs = {
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./avahi
|
./avahi
|
||||||
./locate
|
./locate
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.locate = {
|
services.locate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
locate = pkgs.plocate;
|
locate = pkgs.plocate;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
services.printing = {
|
services.printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = [pkgs.cnijfilter2];
|
drivers = [pkgs.cnijfilter2];
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
services.udev = {
|
services.udev = {
|
||||||
packages = [pkgs.openrgb];
|
packages = [pkgs.openrgb];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.packages = [pkgs.cava];
|
home.packages = [pkgs.cava];
|
||||||
|
|
||||||
xdg.configFile."cava/config".text = lib.generators.toINI {} {
|
xdg.configFile."cava/config".text = lib.generators.toINI {} {
|
||||||
|
@ -16,4 +19,3 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ config, pkgs, ... }: {
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.dircolors = {
|
programs.dircolors = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
@ -68,7 +72,6 @@
|
||||||
".zip" = "01;31";
|
".zip" = "01;31";
|
||||||
".zoo" = "01;31";
|
".zoo" = "01;31";
|
||||||
|
|
||||||
|
|
||||||
".anx" = "01;35";
|
".anx" = "01;35";
|
||||||
".asf" = "01;35";
|
".asf" = "01;35";
|
||||||
".avi" = "01;35";
|
".avi" = "01;35";
|
||||||
|
@ -155,8 +158,6 @@
|
||||||
".xls" = "38;5;109";
|
".xls" = "38;5;109";
|
||||||
".xlsx" = "38;5;109";
|
".xlsx" = "38;5;109";
|
||||||
".xml" = "38;5;109";
|
".xml" = "38;5;109";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
programs.browserpass = {
|
programs.browserpass = {
|
||||||
enable = true;
|
enable = true;
|
||||||
browsers = ["firefox"];
|
browsers = ["firefox"];
|
||||||
|
|
|
@ -1,11 +1,21 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{ name = "gruvbox-theme"; src = inputs.fish-plugin-gruvbox-theme; }
|
{
|
||||||
{ name = "bobthefish"; src = inputs.fish-plugin-bobthefish; }
|
name = "gruvbox-theme";
|
||||||
|
src = inputs.fish-plugin-gruvbox-theme;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "bobthefish";
|
||||||
|
src = inputs.fish-plugin-bobthefish;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.libsForQt5.qtstyleplugin-kvantum
|
pkgs.libsForQt5.qtstyleplugin-kvantum
|
||||||
];
|
];
|
||||||
|
|
|
@ -68,8 +68,7 @@
|
||||||
alternative_header_second_line_format = "$7{%t}|{%f}$0";
|
alternative_header_second_line_format = "$7{%t}|{%f}$0";
|
||||||
progressbar_look = "─╼ ";
|
progressbar_look = "─╼ ";
|
||||||
|
|
||||||
song_columns_list_format =
|
song_columns_list_format = "(25)[5]{a:artist} (3f)[5]{n: } (50)[cyan]{t|f:title} (5)[cyan]{lr:duration}";
|
||||||
"(25)[5]{a:artist} (3f)[5]{n: } (50)[cyan]{t|f:title} (5)[cyan]{lr:duration}";
|
|
||||||
playlist_display_mode = "columns";
|
playlist_display_mode = "columns";
|
||||||
browser_display_mode = "columns";
|
browser_display_mode = "columns";
|
||||||
search_engine_display_mode = "columns";
|
search_engine_display_mode = "columns";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
vim.opt.listchars:append "eol:↴"
|
vim.opt.listchars:append "eol:↴"
|
||||||
|
|
||||||
require("indent_blankline").setup {
|
require("ibl").setup {
|
||||||
show_end_of_line = true,
|
show_end_of_line = true,
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@ require("plugins.colorizer")
|
||||||
require("plugins.colorscheme")
|
require("plugins.colorscheme")
|
||||||
require("plugins.comment")
|
require("plugins.comment")
|
||||||
require("plugins.dressing")
|
require("plugins.dressing")
|
||||||
require("plugins.indent-blankline")
|
require("plugins.ibl")
|
||||||
require("plugins.lspconfig")
|
require("plugins.lspconfig")
|
||||||
require("plugins.lualine")
|
require("plugins.lualine")
|
||||||
require("plugins.smartsplits")
|
require("plugins.smartsplits")
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -45,7 +44,8 @@
|
||||||
lspkind-nvim
|
lspkind-nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs;
|
||||||
|
[
|
||||||
nodePackages.bash-language-server
|
nodePackages.bash-language-server
|
||||||
clang-tools
|
clang-tools
|
||||||
lua-language-server
|
lua-language-server
|
||||||
|
@ -57,7 +57,8 @@
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
nodePackages.vscode-css-languageserver-bin
|
nodePackages.vscode-css-languageserver-bin
|
||||||
zls
|
zls
|
||||||
] ++ [
|
]
|
||||||
|
++ [
|
||||||
pkgs.nvim-hmts
|
pkgs.nvim-hmts
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rofi-wayland;
|
package = pkgs.rofi-wayland;
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,16 +8,16 @@ const Workspaces = (monitor) => Box({
|
||||||
if (monitor == 0) {
|
if (monitor == 0) {
|
||||||
box.children = [1,2,3].map(i => Button({
|
box.children = [1,2,3].map(i => Button({
|
||||||
onClicked: () => execAsync(`hyprctl dispatch workspace ${i}`),
|
onClicked: () => execAsync(`hyprctl dispatch workspace ${i}`),
|
||||||
onScrollUp: () => execAsync(`hyprctl dispatch workspace +1`),
|
onScrollDown: () => execAsync(`hyprctl dispatch workspace +1`),
|
||||||
onScrollDown: () => execAsync(`hyprctl dispatch workspace -1`),
|
onScrollUp: () => execAsync(`hyprctl dispatch workspace -1`),
|
||||||
child: Label({ label: `${i}` }),
|
child: Label({ label: `${i}` }),
|
||||||
className: Hyprland.active.workspace.id == i ? 'focused' : '',
|
className: Hyprland.active.workspace.id == i ? 'focused' : '',
|
||||||
}));
|
}));
|
||||||
} else if (monitor == 1) {
|
} else if (monitor == 1) {
|
||||||
box.children = [4,5,6].map(i => Button({
|
box.children = [4,5,6].map(i => Button({
|
||||||
onClicked: () => execAsync(`hyprctl dispatch workspace ${i}`),
|
onClicked: () => execAsync(`hyprctl dispatch workspace ${i}`),
|
||||||
onScrollUp: () => execAsync(`hyprctl dispatch workspace +1`),
|
onScrollDown: () => execAsync(`hyprctl dispatch workspace +1`),
|
||||||
onScrollDown: () => execAsync(`hyprctl dispatch workspace -1`),
|
onScrollUp: () => execAsync(`hyprctl dispatch workspace -1`),
|
||||||
child: Label({ label: `${i}` }),
|
child: Label({ label: `${i}` }),
|
||||||
className: Hyprland.active.workspace.id == i ? 'focused' : '',
|
className: Hyprland.active.workspace.id == i ? 'focused' : '',
|
||||||
}));
|
}));
|
||||||
|
@ -25,7 +25,6 @@ const Workspaces = (monitor) => Box({
|
||||||
}]],
|
}]],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const WindowTitle = () => Label({
|
const WindowTitle = () => Label({
|
||||||
connections: [[Hyprland, label => {
|
connections: [[Hyprland, label => {
|
||||||
label.label = Hyprland.active.client.title || '';
|
label.label = Hyprland.active.client.title || '';
|
||||||
|
@ -78,9 +77,9 @@ const Volume = () => Button({
|
||||||
|
|
||||||
const Media = () => Button({
|
const Media = () => Button({
|
||||||
className: 'media',
|
className: 'media',
|
||||||
onPrimaryClick: () => Mpris.getPlayer('mpd')?.playPause(),
|
onPrimaryClick: () => Mpris.getPlayer('')?.playPause(),
|
||||||
onScrollUp: () => Mpris.getPlayer('mpd')?.previous(),
|
onScrollUp: () => Mpris.getPlayer('')?.previous(),
|
||||||
onScrollDown: () => Mpris.getPlayer('mpd')?.next(),
|
onScrollDown: () => Mpris.getPlayer('')?.next(),
|
||||||
|
|
||||||
child: Box({
|
child: Box({
|
||||||
children: [
|
children: [
|
||||||
|
@ -92,7 +91,7 @@ const Media = () => Button({
|
||||||
],
|
],
|
||||||
|
|
||||||
connections: [[Mpris, stack => {
|
connections: [[Mpris, stack => {
|
||||||
const mpris = Mpris.getPlayer('mpd');
|
const mpris = Mpris.getPlayer('');
|
||||||
|
|
||||||
switch (mpris.playBackStatus) {
|
switch (mpris.playBackStatus) {
|
||||||
case "Playing":
|
case "Playing":
|
||||||
|
@ -109,7 +108,7 @@ const Media = () => Button({
|
||||||
|
|
||||||
Label({
|
Label({
|
||||||
connections: [[Mpris, label => {
|
connections: [[Mpris, label => {
|
||||||
const mpris = Mpris.getPlayer('mpd');
|
const mpris = Mpris.getPlayer('');
|
||||||
if (!mpris || mpris.playBackStatus == "Stopped")
|
if (!mpris || mpris.playBackStatus == "Stopped")
|
||||||
label.label = ' Stopped';
|
label.label = ' Stopped';
|
||||||
else
|
else
|
||||||
|
|
|
@ -7,6 +7,8 @@ $activewsbg: rgb(102,92,84);
|
||||||
|
|
||||||
$box-bg: rgb(80,73,69);
|
$box-bg: rgb(80,73,69);
|
||||||
|
|
||||||
|
$box-border-radius: 10px;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
}
|
}
|
||||||
|
@ -21,13 +23,13 @@ $box-bg: rgb(80,73,69);
|
||||||
|
|
||||||
.workspaces {
|
.workspaces {
|
||||||
background-color: $box-bg;
|
background-color: $box-bg;
|
||||||
border-radius: 10px;
|
border-radius: $box-border-radius;
|
||||||
margin: 5px 0px 5px 10px;
|
margin: 5px 0px 5px 10px;
|
||||||
font-size: 0px;
|
font-size: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspaces button {
|
.workspaces button {
|
||||||
border-radius: 0px;
|
border-radius: 0;
|
||||||
background-color: $wsbg;
|
background-color: $wsbg;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
@ -38,30 +40,30 @@ $box-bg: rgb(80,73,69);
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspaces button:first-child {
|
.workspaces button:first-child {
|
||||||
border-radius: 10px 0px 0px 10px;
|
border-radius: $box-border-radius 0px 0px $box-border-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspaces button:last-child {
|
.workspaces button:last-child {
|
||||||
border-radius: 0px 10px 10px 0px;
|
border-radius: 0px $box-border-radius $box-border-radius 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.windowTitle {
|
.windowTitle {
|
||||||
background-color: $box-bg;
|
background-color: $box-bg;
|
||||||
border-radius: 10px;
|
border-radius: $box-border-radius;
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
margin: 5px 0px 5px 10px;
|
margin: 5px 0px 5px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.volume {
|
.volume {
|
||||||
background-color: $box-bg;
|
background-color: $box-bg;
|
||||||
border-radius: 10px 0px 0px 10px;
|
border-radius: $box-border-radius;
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
margin: 5px 5px 5px 0px;
|
margin: 5px 5px 5px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media {
|
.media {
|
||||||
background-color: $box-bg;
|
background-color: $box-bg;
|
||||||
border-radius: 0px 10px 10px 0px;
|
border-radius: $box-border-radius;
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
margin: 5px 10px 5px 0px;
|
margin: 5px 10px 5px 0px;
|
||||||
}
|
}
|
||||||
|
@ -69,14 +71,14 @@ $box-bg: rgb(80,73,69);
|
||||||
.date {
|
.date {
|
||||||
background-color: $box-bg;
|
background-color: $box-bg;
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
border-radius: 10px;
|
border-radius: $box-border-radius;
|
||||||
margin: 5px 10px 5px 0px;
|
margin: 5px 10px 5px 0px;
|
||||||
};
|
};
|
||||||
|
|
||||||
.tray {
|
.tray {
|
||||||
background-color: $box-bg;
|
background-color: $box-bg;
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
border-radius: 10px;
|
border-radius: $box-border-radius;
|
||||||
margin: 5px 10px 5px 0px;
|
margin: 5px 10px 5px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ pkgs, lib, inputs, ...}:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [inputs.ags.homeManagerModules.default];
|
imports = [inputs.ags.homeManagerModules.default];
|
||||||
|
|
||||||
programs.ags = {
|
programs.ags = {
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.foot = {
|
programs.foot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -34,4 +38,3 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
let
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
leftMonitor = {
|
leftMonitor = {
|
||||||
display = "DP-2";
|
display = "DP-2";
|
||||||
res = "2560x1440";
|
res = "2560x1440";
|
||||||
|
@ -50,10 +54,7 @@ let
|
||||||
|
|
||||||
pass show -c "$password" 2>/dev/null
|
pass show -c "$password" 2>/dev/null
|
||||||
'';
|
'';
|
||||||
|
in {
|
||||||
in
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.hyprland.homeManagerModules.default
|
inputs.hyprland.homeManagerModules.default
|
||||||
../ags
|
../ags
|
||||||
|
@ -102,8 +103,7 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = true
|
force_default_wallpaper = 0
|
||||||
disable_splash_rendering = true
|
|
||||||
vfr = true
|
vfr = true
|
||||||
vrr = 2
|
vrr = 2
|
||||||
# enable_swallow = true
|
# enable_swallow = true
|
||||||
|
@ -190,7 +190,7 @@ in
|
||||||
bind = , XF86AudioRaiseVolume, exec, ${pkgs.pamixer}/bin/pamixer -i 10 --get-volume > ${wobsock}
|
bind = , XF86AudioRaiseVolume, exec, ${pkgs.pamixer}/bin/pamixer -i 10 --get-volume > ${wobsock}
|
||||||
bind = , XF86AudioLowerVolume, exec, ${pkgs.pamixer}/bin/pamixer -d 10 --get-volume > ${wobsock}
|
bind = , XF86AudioLowerVolume, exec, ${pkgs.pamixer}/bin/pamixer -d 10 --get-volume > ${wobsock}
|
||||||
|
|
||||||
bind = CTRL, Space, exec, ${pkgs.mako}/bin/makoctl dismiss
|
bind = SHIFT CTRL, Space, exec, ${pkgs.mako}/bin/makoctl dismiss
|
||||||
bind = CTRL, grave, exec, ${pkgs.mako}/bin/makoctl restore
|
bind = CTRL, grave, exec, ${pkgs.mako}/bin/makoctl restore
|
||||||
bind = ${modKey} SHIFT, O, exec, ${killprocess}/bin/killprocess.sh
|
bind = ${modKey} SHIFT, O, exec, ${killprocess}/bin/killprocess.sh
|
||||||
bind = ${modKey} SHIFT, P, exec, ${passmenu}/bin/passmenu.sh
|
bind = ${modKey} SHIFT, P, exec, ${passmenu}/bin/passmenu.sh
|
||||||
|
@ -235,4 +235,3 @@ in
|
||||||
|
|
||||||
home.packages = [pkgs.wl-clipboard pkgs.wl-clipboard-x11 pkgs.hyprpicker pkgs.swww pkgs.hyprprop];
|
home.packages = [pkgs.wl-clipboard pkgs.wl-clipboard-x11 pkgs.hyprpicker pkgs.swww pkgs.hyprprop];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.mako = {
|
services.mako = {
|
||||||
enable = true;
|
enable = true;
|
||||||
anchor = "top-right";
|
anchor = "top-right";
|
||||||
|
@ -18,4 +21,3 @@
|
||||||
font = "JetBrainsMono Nerd Font Regular 10";
|
font = "JetBrainsMono Nerd Font Regular 10";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
{
|
|
||||||
xdg.configFile."wob/wob.ini".text = lib.generators.toINIWithGlobalSection {} {
|
xdg.configFile."wob/wob.ini".text = lib.generators.toINIWithGlobalSection {} {
|
||||||
globalSection = {
|
globalSection = {
|
||||||
height = "40";
|
height = "40";
|
||||||
|
@ -9,9 +8,7 @@
|
||||||
|
|
||||||
background_color = "282828FF";
|
background_color = "282828FF";
|
||||||
bar_color = "665C54FF";
|
bar_color = "665C54FF";
|
||||||
|
|
||||||
};
|
};
|
||||||
sections = {};
|
sections = {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,3 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./configs/beets
|
./configs/beets
|
||||||
./configs/cava
|
./configs/cava
|
||||||
|
@ -169,7 +173,6 @@
|
||||||
preset = "DT770";
|
preset = "DT770";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
xdg.userDirs = {
|
xdg.userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
createDirectories = true;
|
createDirectories = true;
|
||||||
|
@ -180,4 +183,3 @@
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue