Skip to content

Commit

Permalink
rofi
Browse files Browse the repository at this point in the history
  • Loading branch information
suderman committed Jul 23, 2024
1 parent 477e014 commit 7068190
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
4 changes: 3 additions & 1 deletion modules/hyprland/programs/rofi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ in {
bindr = [ "super, Super_L, exec, rofi-toggle -show combi" ];
bind = [
"super, space, exec, rofi-toggle -show combi"
"super, g, exec, rofi-toggle -show blezz -auto-select -matching normal -theme-str 'window {width: 50%;}'"
", XF86AudioMedia, exec, rofi-toggle -show sinks -cycle -theme-str 'window {width: 50%;}'"
];

Expand All @@ -36,7 +37,7 @@ in {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
plugins = with pkgs; [ rofi-calc rofi-emoji rofimoji ];
plugins = with pkgs; [ rofi-calc rofi-emoji rofimoji rofi-blezz ];
cycle = false;
terminal = getExe pkgs.kitty;
font = "JetBrainsMono 14";
Expand All @@ -47,6 +48,7 @@ in {
"combi"
"calc"
"emoji"
"blezz"
"sinks:rofi-sinks"
# "emoji:${getExe pkgs.rofimoji}"
# "filebrowser"
Expand Down
17 changes: 7 additions & 10 deletions modules/hyprland/programs/waybar/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
cfg = config.wayland.windowManager.hyprland;
inherit (builtins) readFile;
inherit (lib) getExe mkIf mkShellScript mkForce;

kitty = getExe pkgs.kitty;
rofi = getExe config.programs.rofi.finalPackage;
term = getExe pkgs.kitty;

in {

Expand Down Expand Up @@ -76,7 +74,7 @@ in {

# modules config
"custom/launcher" = {
on-click = "${rofi} -show combi";
on-click = "rofi-toggle -show combi";
format = "";
};

Expand Down Expand Up @@ -123,8 +121,6 @@ in {
format-bluetooth = "{volume}% {icon}";
format-muted = "";
format-icons = {
"alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted" = "";
headphone = "";
hands-free = "";
headset = "";
Expand All @@ -136,12 +132,13 @@ in {
};
scroll-step = 1;
on-click = "rofi-toggle -show sinks -cycle -theme-str 'window {width: 50%;}'";
on-click-right = "pavucontrol";
ignored-sinks = ["Easy Effects Sink"];
on-click-right = "${term} ncpamixer";
on-click-middle = "pavucontrol";
ignored-sinks = [];
};

"custom/bluetooth" = {
on-click = "${kitty} bluetuith";
on-click = "${term} bluetuith";
format = "󰂯";
};

Expand Down Expand Up @@ -171,7 +168,7 @@ in {
cpu = {
# format = " {load} / {usage}%";
format = " {usage}%";
on-click = "${kitty} htop";
on-click = "${term} htop";
};

temperature = {
Expand Down

0 comments on commit 7068190

Please sign in to comment.