aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 14:49:02 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 14:49:02 -0700
commit3eb7a627c3a34e3089d34313ecc699131795578c (patch)
tree795f034a0515804780c8b3137a6ede8adbc67912 /home
parentalacritty: use light colors (diff)
downloadinfra-3eb7a627c3a34e3089d34313ecc699131795578c.tar.gz
home: move css/config for wofi to external files
Diffstat (limited to 'home')
-rw-r--r--home/wm/wofi/config4
-rw-r--r--home/wm/wofi/default.nix54
-rw-r--r--home/wm/wofi/style.css43
3 files changed, 49 insertions, 52 deletions
diff --git a/home/wm/wofi/config b/home/wm/wofi/config
new file mode 100644
index 0000000..95dedba
--- /dev/null
+++ b/home/wm/wofi/config
@@ -0,0 +1,4 @@
+allow_images=true
+image_size=20px
+drun-display_generic=true
+dynamic_lines=true
diff --git a/home/wm/wofi/default.nix b/home/wm/wofi/default.nix
index 9ccb4be..f1e1663 100644
--- a/home/wm/wofi/default.nix
+++ b/home/wm/wofi/default.nix
@@ -3,57 +3,7 @@ let isEnabled = config.my.home.wm.windowManager == "sway";
in {
config = lib.mkIf isEnabled {
home.packages = with pkgs; [ wofi ];
- xdg.configFile."wofi/config".text = ''
- allow_images=true
- image_size=20px
- drun-display_generic=true
- dynamic_lines=true
- '';
-
- xdg.configFile."wofi/style.css".text = ''
- *{
- font-family: monospace;
- }
-
- window {
- color: #5E81AC;
- background-color: rgba(27, 27, 28, 0.92);
- border: 2px solid #75d5ff;
- }
-
- #input {
- margin: 10px 0px;
- border-radius: 0px;
- border: none;
- background: transparent;
- color: white;
- }
-
- #inner-box {
- background-color: transparent;
- }
-
- #outer-box {
- margin: 0px;
- padding:5px;
- background-color: transparent;
- }
-
- #text {
- padding: 5px;
- color: white;
- }
-
- #entry:selected {
- color: #75d5ff;
- background-color: transparent;
- border: 0px;
- }
-
- #text:selected {
- color: #75d5ff;
- background-color: transparent;
- }
- '';
+ xdg.configFile."wofi/config".source = ./config;
+ xdg.configFile."wofi/style.css".source = ./style.css;
};
}
diff --git a/home/wm/wofi/style.css b/home/wm/wofi/style.css
new file mode 100644
index 0000000..bf6f2aa
--- /dev/null
+++ b/home/wm/wofi/style.css
@@ -0,0 +1,43 @@
+*{
+ font-family: monospace;
+}
+
+window {
+ color: #5E81AC;
+ background-color: rgba(27, 27, 28, 0.92);
+ border: 2px solid #75d5ff;
+}
+
+#input {
+ margin: 10px 0px;
+ border-radius: 0px;
+ border: none;
+ background: transparent;
+ color: white;
+}
+
+#inner-box {
+ background-color: transparent;
+}
+
+#outer-box {
+ margin: 0px;
+ padding:5px;
+ background-color: transparent;
+}
+
+#text {
+ padding: 5px;
+ color: white;
+}
+
+#entry:selected {
+ color: #75d5ff;
+ background-color: transparent;
+ border: 0px;
+}
+
+#text:selected {
+ color: #75d5ff;
+ background-color: transparent;
+}