Fix monocle layout transparency

This commit is contained in:
Agatha Lovelace 2023-06-20 17:19:03 +02:00
parent 9203bef1ba
commit f91944e302
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
6 changed files with 41 additions and 14 deletions

View File

@ -8,13 +8,16 @@
"setxkbmap" "setxkbmap"
]; ];
extraConfig = let extraConfig = let
startOnce = procs: map (v: "! pgrep ${v} && ${v} &") procs; startOnce = procs:
map (v: "! pgrep ${builtins.head (lib.splitString " " v)} && ${v} &")
procs;
startup = startOnce [ startup = startOnce [
"firefox" "firefox"
"element-desktop" "element-desktop"
"telegram-desktop" "telegram-desktop"
"spotify" "spotify"
"geary" "geary"
"bspm -d"
]; ];
in lib.strings.concatStringsSep "\n" ([ in lib.strings.concatStringsSep "\n" ([
"nitrogen --set-zoom-fill ${ "nitrogen --set-zoom-fill ${
@ -104,8 +107,8 @@
# Close/kill window # Close/kill window
"super + {_,shift + }w" = "bspc node -{c,k}"; "super + {_,shift + }w" = "bspc node -{c,k}";
# Monocle layout # Monocle layout
"super + m" = "super + m" = "bspm monocle --toggle";
"for node_i in $(bspc query -N -n '.!focused.window' -d focused); bspc node $node_i -g hidden; end; bspc desktop -l next"; "super + shift + m" = "bspm monocle --next";
# Toggle hide all windows # Toggle hide all windows
"super + d" = "super + d" =
"bspc query -N -n .window | xargs -I node_id bspc node node_id -g hidden"; "bspc query -N -n .window | xargs -I node_id bspc node node_id -g hidden";

View File

@ -50,6 +50,7 @@
xdg-utils xdg-utils
xdotool xdotool
yubioath-flutter yubioath-flutter
bspm
]; ];
# Brightness/volume keys # Brightness/volume keys

View File

@ -1,10 +1,10 @@
{ rustPlatform, fetchFromGitHub, git }: { pkgs }:
rustPlatform.buildRustPackage rec { pkgs.rustPlatform.buildRustPackage rec {
pname = "bin"; pname = "bin";
version = "3bbd64611f2a5dee91528976f6db17ff9844315a"; version = "3bbd64611f2a5dee91528976f6db17ff9844315a";
src = fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "WantGuns"; owner = "WantGuns";
repo = pname; repo = pname;
rev = version; rev = version;
@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
cargoLock = { lockFile = "${src}/Cargo.lock"; }; cargoLock = { lockFile = "${src}/Cargo.lock"; };
nativeBuildInputs = [ git ]; nativeBuildInputs = [ pkgs.git ];
meta = { meta = {
description = "highly opinionated, minimal pastebin"; description = "highly opinionated, minimal pastebin";

21
common/pkgs/bspm.nix Normal file
View File

@ -0,0 +1,21 @@
{ pkgs }:
pkgs.buildGoModule rec {
pname = "bspm";
version = "v0.0.9";
src = pkgs.fetchFromGitHub {
owner = "diogox";
repo = pname;
rev = version;
sha256 = "sha256-ocnvTUANmJ6186Dktr5GaotbkZKZymKiIHICgTIRtjc=";
};
vendorSha256 = "sha256-Oj6i4/K0LAubu2aSoXcC6bZtTp8/N0cbvG+KWjA5/nw=";
doCheck = false;
meta = {
description = "The bspwm manager";
homepage = "https://github.com/diogox/bspm";
};
}

View File

@ -1,10 +1,9 @@
{ rustPlatform, fetchFromGitHub, libpulseaudio, pkg-config }: { pkgs }:
pkgs.rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage rec {
pname = "pads"; pname = "pads";
version = "89d69d4b9b199e08671c947120d5b2e1b6295d68"; version = "89d69d4b9b199e08671c947120d5b2e1b6295d68";
src = fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "dogue"; owner = "dogue";
repo = pname; repo = pname;
rev = version; rev = version;
@ -13,8 +12,8 @@ rustPlatform.buildRustPackage rec {
cargoLock = { lockFile = "${src}/Cargo.lock"; }; cargoLock = { lockFile = "${src}/Cargo.lock"; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ libpulseaudio ]; buildInputs = [ pkgs.libpulseaudio ];
meta = { meta = {
description = description =

View File

@ -7,7 +7,10 @@
]; ];
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { pads = final.callPackage ../../common/pkgs/pads.nix { }; }) (final: prev: {
pads = final.callPackage ../../common/pkgs/pads.nix { };
bspm = final.callPackage ../../common/pkgs/bspm.nix { };
})
]; ];
# Bootloader. # Bootloader.