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; enable = true;
config = { config = {
terminal = "${pkgs.alacritty}/bin/alacritty" terminal = "${pkgs.alacritty}/bin/alacritty";
menu = "${rofi}/bin/rofi -show combi";
modifier = "Mod4"; modifier = "Mod4";
input = { input = {
"*" = { "*" = {
xkb_layout = "pl"; xkb_layout = "pl";
accel_profile = "flat"; accel_profile = "flat";
dwt = "disabled"; dwt = "disabled";
pointer_accel = "0.0";
}; };
}; };
bars = [{ bars = [{
@ -32,6 +37,16 @@
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
''; '';
}; };
programs.rofi = {
enable = true;
package = rofi;
theme = "purple";
extraConfig = {
modi = "combi";
combi-modi = "drun,emoji";
};
};
programs.i3status-rust = { programs.i3status-rust = {
enable = true; enable = true;

View file

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