Switch to rofi

This commit is contained in:
Bad 2021-07-15 18:51:27 +02:00
parent c1ea2272e8
commit d80160264a
2 changed files with 19 additions and 4 deletions

View file

@ -1,15 +1,20 @@
{ pkgs, ... }:
{ pkgs, lib }:
let
rofi = pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; };
in
{
wayland.windowManager.sway = {
wayland.windowManager.sway = rec {
enable = true;
config = {
terminal = "${pkgs.alacritty}/bin/alacritty"
terminal = "${pkgs.alacritty}/bin/alacritty";
menu = "${rofi}/bin/rofi -show combi";
modifier = "Mod4";
input = {
"*" = {
xkb_layout = "pl";
accel_profile = "flat";
dwt = "disabled";
pointer_accel = "0.0";
};
};
bars = [{
@ -33,6 +38,16 @@
'';
};
programs.rofi = {
enable = true;
package = rofi;
theme = "purple";
extraConfig = {
modi = "combi";
combi-modi = "drun,emoji";
};
};
programs.i3status-rust = {
enable = true;
bars.bar_0 = {

View file

@ -1,6 +1,6 @@
{ pkgs, lib, ... }:
let
desk = (import ./desktop.nix { inherit pkgs; });
desk = (import ./desktop.nix { inherit pkgs lib; });
desk_blocks = desk.programs.i3status-rust.bars.bar_0.blocks;
lap_blocks = [{ block = "backlight"; } { block = "battery"; }] ++ desk_blocks;
lap = lib.recursiveUpdate desk { programs.i3status-rust.bars.bar_0.blocks = lap_blocks; };