Switch to rofi
This commit is contained in:
parent
c1ea2272e8
commit
d80160264a
2 changed files with 19 additions and 4 deletions
|
@ -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 = [{
|
||||
|
@ -32,6 +37,16 @@
|
|||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
'';
|
||||
};
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = rofi;
|
||||
theme = "purple";
|
||||
extraConfig = {
|
||||
modi = "combi";
|
||||
combi-modi = "drun,emoji";
|
||||
};
|
||||
};
|
||||
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
|
|
|
@ -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; };
|
||||
|
|
Loading…
Reference in a new issue