Move back to rofi with better theme, and move back scripts

This commit is contained in:
Tyler Kelley 2024-05-23 09:14:54 -05:00
parent f863cd34f6
commit 1ced373f40
4 changed files with 11 additions and 20 deletions

View File

@ -8,9 +8,9 @@
programs = {
rofi = {
enable = true;
package = pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; };
package = pkgs.rofi-wayland;
extraConfig = {
modi = "drun,emoji,filebrowser,run";
modi = "drun,filebrowser,run";
show-icons = true;
icon-theme = "Papirus";
location = 0;
@ -19,9 +19,6 @@
display-drun = " Apps";
display-run = " Run";
display-filebrowser = " File";
display-emoji = " Emoji";
me-select-entry = "MouseSecondary";
me-accept-entry = "MousePrimary";
};
theme = let inherit (config.lib.formats.rasi) mkLiteral; in {
"*" = {
@ -50,7 +47,6 @@
padding = mkLiteral "15px";
enabled = true;
orientation = mkLiteral "vertical";
border-radius = "25px";
children = map mkLiteral [ "inputbar" "listbox" ];
background-color = mkLiteral "transparent";
};

View File

@ -127,7 +127,7 @@ with lib;
tooltip = false;
format = "";
# exec = "rofi -show drun";
on-click = "sleep 0.1 && wofi";
on-click = "sleep 0.1 && rofi-launcher";
};
"custom/hyprbindings" = {
tooltip = false;

View File

@ -2,7 +2,7 @@
pkgs.writeShellScriptBin "emopicker9000" ''
# Get user selection via wofi from emoji file.
chosen=$(cat $HOME/.config/.emoji | ${pkgs.rofi}/bin/rofi -i -dmenu -config ~/.config/rofi/config-emoji.rasi | awk '{print $1}')
chosen=$(cat $HOME/.config/.emoji | ${pkgs.rofi-wayland}/bin/rofi -i -dmenu -config ~/.config/rofi/config-emoji.rasi | awk '{print $1}')
# Exit if none chosen.
[ -z "$chosen" ] && exit

View File

@ -1,17 +1,12 @@
{ pkgs }:
pkgs.writeShellScriptBin "theme-selector" ''
# Get user selection for new theme from base16-themes file
chosen=$(cat $HOME/.base16-themes | ${pkgs.wofi}/bin/wofi -dmenu)
# Exit if none chosen.
[ -z "$chosen" ] && exit
# Get user selection for new theme from base16-themes file
chosen=$(cat $HOME/.base16-themes | ${pkgs.rofi-wayland}/bin/rofi -i -dmenu)
# Exit if none chosen.
[ -z "$chosen" ] && exit
if [ -n "$1" ]; then
themechange "$chosen"
else
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
themechange "$chosen"
${pkgs.libnotify}/bin/notify-send "Theme: $chosen has been applied." &
fi
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
themechange "$chosen"
''