rofi
This commit is contained in:
@@ -167,7 +167,8 @@ in
|
|||||||
fullscreen_opacity = "1.0";
|
fullscreen_opacity = "1.0";
|
||||||
|
|
||||||
dim_inactive = false;
|
dim_inactive = false;
|
||||||
dim_strength = "0.3";
|
dim_strength = "0.2";
|
||||||
|
dim_around = "0.8";
|
||||||
|
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
@@ -263,7 +264,6 @@ in
|
|||||||
"opacity ${transparency}, thunar"
|
"opacity ${transparency}, thunar"
|
||||||
"opacity ${transparency}, title:^(wlogout)$"
|
"opacity ${transparency}, title:^(wlogout)$"
|
||||||
"opaque, title:^(GNU Image Manipulation Program)$"
|
"opaque, title:^(GNU Image Manipulation Program)$"
|
||||||
"dimaround, Rofi"
|
|
||||||
"float, title:^(Picture-in-Picture)$"
|
"float, title:^(Picture-in-Picture)$"
|
||||||
"float, title:^(Ibus-ui.*)$"
|
"float, title:^(Ibus-ui.*)$"
|
||||||
"float, ^(ibus-ui.*)$"
|
"float, ^(ibus-ui.*)$"
|
||||||
@@ -286,6 +286,9 @@ in
|
|||||||
|
|
||||||
layerrule = [
|
layerrule = [
|
||||||
"blur,waybar"
|
"blur,waybar"
|
||||||
|
"dimaround,rofi"
|
||||||
|
"blur,rofi"
|
||||||
|
"xray,rofi"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
113
home-modules/rofi.nix
Normal file
113
home-modules/rofi.nix
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
{ config, pkgs, rice, ... }:
|
||||||
|
let
|
||||||
|
trdr = "${rice.lib.float-to-drune rice.transparency}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
rofi-wayland
|
||||||
|
];
|
||||||
|
home.file.".config/rofi/config.rasi".text = ''
|
||||||
|
/*Based on the Purple official rofi theme*/
|
||||||
|
|
||||||
|
configuration {
|
||||||
|
show-icons: false;
|
||||||
|
display-drun: "";
|
||||||
|
disable-history: false;
|
||||||
|
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>] [<span weight='light' size='small'><i>({exec})</i></span>]";
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
font: "${rice.font.code.name2} 12";
|
||||||
|
foreground: ${rice.color.foreground};
|
||||||
|
background-color: ${rice.color.background}${trdr};
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
spacing: 0px;
|
||||||
|
border-width: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
background-color: ${rice.color.background}${trdr};
|
||||||
|
border: ${builtins.toString rice.border-width}px;
|
||||||
|
border-radius: ${builtins.toString rice.rounding};
|
||||||
|
border-color: ${rice.color.blue};
|
||||||
|
}
|
||||||
|
#mainbox {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
#message {
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
#textbox {
|
||||||
|
text-color: ${rice.color.foreground};
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
fixed-height: 0;
|
||||||
|
border: 0px;
|
||||||
|
spacing: 0px ;
|
||||||
|
scrollbar: false;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#element {
|
||||||
|
border: 0;
|
||||||
|
padding: 0px ;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.normal.normal { background-color: ${rice.color.background}${trdr}; text-color: ${rice.color.foreground}; }
|
||||||
|
#element.selected.normal { background-color: ${rice.color.blue}${trdr}; text-color: ${rice.color.background}; }
|
||||||
|
#element.alternate.normal { background-color: ${rice.color.black}${trdr}; text-color: ${rice.color.foreground}; }
|
||||||
|
|
||||||
|
|
||||||
|
#scrollbar {
|
||||||
|
width: ${builtins.toString rice.border-width}px ;
|
||||||
|
border: 0;
|
||||||
|
handle-width: 8px ;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
border: ${builtins.toString rice.border-width}px dash;
|
||||||
|
}
|
||||||
|
#button.selected {
|
||||||
|
text-color: ${rice.color.foreground};
|
||||||
|
}
|
||||||
|
#inputbar {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: ${rice.color.background};
|
||||||
|
background-color: ${rice.color.red}${trdr};
|
||||||
|
padding: 0;
|
||||||
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||||
|
}
|
||||||
|
#prompt {
|
||||||
|
spacing: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
text-color: ${rice.color.foreground};
|
||||||
|
}
|
||||||
|
#textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: ">";
|
||||||
|
margin: 0px 0.3em 0em 0em ;
|
||||||
|
text-color: ${rice.color.background};
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
#case-indicator {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: ${rice.color.foreground};
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
#entry {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: ${rice.color.background};
|
||||||
|
background-color: transparent;
|
||||||
|
placeholder: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text, element-icon {
|
||||||
|
background-color: inherit;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
3
home.nix
3
home.nix
@@ -20,6 +20,7 @@
|
|||||||
./home-modules/hyprland-autoname-workspaces.nix
|
./home-modules/hyprland-autoname-workspaces.nix
|
||||||
./home-modules/waybar.nix
|
./home-modules/waybar.nix
|
||||||
./home-modules/wlogout.nix
|
./home-modules/wlogout.nix
|
||||||
|
./home-modules/rofi.nix
|
||||||
|
|
||||||
./home-modules/kitty.nix
|
./home-modules/kitty.nix
|
||||||
./home-modules/shell/fish.nix
|
./home-modules/shell/fish.nix
|
||||||
@@ -55,7 +56,7 @@
|
|||||||
element-desktop
|
element-desktop
|
||||||
zoom-us
|
zoom-us
|
||||||
discord
|
discord
|
||||||
signal-desktop
|
signal-desktop
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
|
|
||||||
obsidian
|
obsidian
|
||||||
|
|||||||
Reference in New Issue
Block a user