refinements and fixes, firefox clipboard rofi
This commit is contained in:
parent
5bef57fb16
commit
4f9eb34a55
@ -3,15 +3,144 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
desktop.hyprland.rofi.clipboard.enable = lib.mkEnableOption "rofi-clipboard";
|
desktop.hyprland.rofi.clipboard.enable = lib.mkEnableOption "rofi-clipboard";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.desktop.hyprland.rofi.clipboard.enable {
|
config = lib.mkIf config.desktop.hyprland.rofi.clipboard.enable {
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/rofi/cliboard.rasi".source = ../../../../config/clipboard.rasi;
|
".config/rofi/cliboard.rasi".text = let
|
||||||
|
main-bg = config.lib.stylix.colors.base01;
|
||||||
|
main-fg = config.lib.stylix.colors.base02;
|
||||||
|
main-br = config.lib.stylix.colors.base05;
|
||||||
|
main-ex = config.lib.stylix.colors.base09;
|
||||||
|
select-bg = config.lib.stylix.colors.base05; # Selected background color
|
||||||
|
select-fg = config.lib.stylix.colors.base11; # Selected text color
|
||||||
|
separatorcolor = "transparent";
|
||||||
|
border-color = "transparent";
|
||||||
|
in ''
|
||||||
|
// Config //
|
||||||
|
configuration {
|
||||||
|
modi: "drun";
|
||||||
|
show-icons: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
main-bg : #${main-bg};
|
||||||
|
main-fg : #${main-fg};
|
||||||
|
main-br : #${main-br};
|
||||||
|
main-ex : #${main-ex};
|
||||||
|
select-bg : #${select-bg};
|
||||||
|
select-fg : #${select-fg};
|
||||||
|
separatorcolor : ${separatorcolor};
|
||||||
|
border-color : ${border-color};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Main //
|
||||||
|
window {
|
||||||
|
width: 23em;
|
||||||
|
height: 30em;
|
||||||
|
transparency: "real";
|
||||||
|
fullscreen: false;
|
||||||
|
enabled: true;
|
||||||
|
cursor: "default";
|
||||||
|
spacing: 0em;
|
||||||
|
padding: 0em;
|
||||||
|
border-color: @main-br;
|
||||||
|
background-color: @main-bg;
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
enabled: true;
|
||||||
|
spacing: 0em;
|
||||||
|
padding: 0.5em;
|
||||||
|
orientation: vertical;
|
||||||
|
children: [ "wallbox" , "listbox" ];
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
wallbox {
|
||||||
|
spacing: 0em;
|
||||||
|
padding: 0em;
|
||||||
|
expand: false;
|
||||||
|
orientation: horizontal;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: url("~/.dotfiles/config/backgrounds/aurora_borealis.png", width);
|
||||||
|
children: [ "wallframe" , "inputbar" ];
|
||||||
|
}
|
||||||
|
wallframe {
|
||||||
|
width: 5em;
|
||||||
|
spacing: 0em;
|
||||||
|
padding: 0em;
|
||||||
|
expand: false;
|
||||||
|
background-color: @main-bg;
|
||||||
|
background-image: url("~/.dotfiles/config/backgrounds/aurora_borealis.png", height);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Inputs //
|
||||||
|
inputbar {
|
||||||
|
enabled: true;
|
||||||
|
padding: 0em;
|
||||||
|
children: [ "entry" ];
|
||||||
|
background-color: @main-bg;
|
||||||
|
expand: true;
|
||||||
|
}
|
||||||
|
entry {
|
||||||
|
enabled: true;
|
||||||
|
padding: 1.8em;
|
||||||
|
text-color: @main-fg;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Lists //
|
||||||
|
listbox {
|
||||||
|
spacing: 0em;
|
||||||
|
padding: 0em;
|
||||||
|
orientation: vertical;
|
||||||
|
children: [ "dummy" , "listview" , "dummy" ];
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
enabled: true;
|
||||||
|
padding: 0.5em;
|
||||||
|
columns: 1;
|
||||||
|
lines: 11;
|
||||||
|
cycle: true;
|
||||||
|
fixed-height: true;
|
||||||
|
fixed-columns: false;
|
||||||
|
expand: false;
|
||||||
|
cursor: "default";
|
||||||
|
background-color: transparent;
|
||||||
|
text-color: @main-fg;
|
||||||
|
}
|
||||||
|
dummy {
|
||||||
|
spacing: 0em;
|
||||||
|
padding: 0em;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Elements //
|
||||||
|
element {
|
||||||
|
enabled: true;
|
||||||
|
padding: 0.5em;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
text-color: @main-fg;
|
||||||
|
}
|
||||||
|
element selected.normal {
|
||||||
|
background-color: @select-bg;
|
||||||
|
text-color: @select-fg;
|
||||||
|
}
|
||||||
|
element-text {
|
||||||
|
vertical-align: 0.0;
|
||||||
|
horizontal-align: 0.0;
|
||||||
|
cursor: inherit;
|
||||||
|
background-color: transparent;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|||||||
@ -136,14 +136,17 @@
|
|||||||
extensions = with inputs.firefox-addons.packages."x86_64-linux";
|
extensions = with inputs.firefox-addons.packages."x86_64-linux";
|
||||||
[
|
[
|
||||||
ublock-origin
|
ublock-origin
|
||||||
|
# Lists all possible extensions $ nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
if (userSettings.username == "shinya")
|
if (userSettings.username == "shinya")
|
||||||
then [
|
then
|
||||||
inputs.firefox-addons.packages."x86_64-linux".simple-translate
|
with inputs.firefox-addons.packages."x86_64-linux"; [
|
||||||
inputs.firefox-addons.packages."x86_64-linux".duckduckgo-privacy-essentials
|
#enhancer-for-youtube
|
||||||
inputs.firefox-addons.packages."x86_64-linux".return-youtube-dislikes
|
simple-translate
|
||||||
inputs.firefox-addons.packages."x86_64-linux".user-agent-string-switcher
|
duckduckgo-privacy-essentials
|
||||||
|
return-youtube-dislikes
|
||||||
|
user-agent-string-switcher
|
||||||
]
|
]
|
||||||
else []
|
else []
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
|
||||||
userSettings,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user