about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-25 07:26:59 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-27 13:05:30 -0800
commitb44ff8ec12ecfaad7f3a703e204841085e15d63f (patch)
treea118cceefe209d487af7104b65b7812521f8c542
parentswaylock: don't display the keyboard layout (diff)
downloadworld-b44ff8ec12ecfaad7f3a703e204841085e15d63f.tar.gz
wofi: tweak the UI
Diffstat (limited to '')
-rw-r--r--users/fcuny/desktop/wm/default.nix2
-rw-r--r--users/fcuny/desktop/wm/launcher.nix67
2 files changed, 26 insertions, 43 deletions
diff --git a/users/fcuny/desktop/wm/default.nix b/users/fcuny/desktop/wm/default.nix
index 0880b1c..15aadd7 100644
--- a/users/fcuny/desktop/wm/default.nix
+++ b/users/fcuny/desktop/wm/default.nix
@@ -33,7 +33,7 @@
     config = rec {
       modifier = "Mod4";
       terminal = "${config.programs.alacritty.package}/bin/alacritty";
-      menu = "${pkgs.wofi}/bin/wofi -S run";
+      menu = "${pkgs.wofi}/bin/wofi -S drun -p \"app:\" -L 10";
       bars = [
         {
           fonts = {
diff --git a/users/fcuny/desktop/wm/launcher.nix b/users/fcuny/desktop/wm/launcher.nix
index bc69e0d..da3af1a 100644
--- a/users/fcuny/desktop/wm/launcher.nix
+++ b/users/fcuny/desktop/wm/launcher.nix
@@ -6,72 +6,55 @@
   ];
 
   xdg.configFile."wofi/config".text = ''
-    xoffset=710
-    yoffset=275
-    show=drun
-    width=500
-    height=500
-    always_parse_args=true
-    show_all=true
-    print_command=true
-    layer=overlay
-    insensitive=true
-    prompt=
-    term=${config.wayland.windowManager.sway.config.terminal}
+    allow_images=true
+    image_size=20px
+    drun-display_generic=true
+    dynamic_lines=true
   '';
 
   xdg.configFile."wofi/style.css".text = ''
-    window {
-      margin: 0px;
-      border: 2px solid #414868;
-      border-radius: 5px;
-      background-color: #24283b;
+    *{
       font-family: monospace;
-      font-size: 12px;
     }
 
-    #input {
-      margin: 5px;
-      border: 1px solid #24283b;
-      color: #c0caf5;
-      background-color: #24283b;
+    window {
+      color: #CBD8EB;
+      background-color: rgba(27, 27, 28, 0.92);
+      border: 2px solid #75d5ff;
     }
 
-    #input image {
-      color: #c0caf5;
+    #input {
+      margin: 10px 0px;
+      border-radius: 0px;
+      border: none;
+      background: transparent;
+      color: white;
     }
 
     #inner-box {
-      margin: 5px;
-      border: none;
-      background-color: #24283b;
+      background-color: transparent;
     }
 
     #outer-box {
-      margin: 5px;
-      border: none;
-      background-color: #24283b;
-    }
-
-    #scroll {
       margin: 0px;
-      border: none;
+      padding:5px;
+      background-color: transparent;
     }
 
     #text {
-      margin: 5px;
-      border: none;
-      color: #c0caf5;
+      padding: 5px;
+      color: white;
     }
 
     #entry:selected {
-    	background-color: #414868;
-    	font-weight: normal;
+      color: #75d5ff;
+      background-color: transparent;
+      border: 0px;
     }
 
     #text:selected {
-      background-color: #414868;
-      font-weight: normal;
+      color: #75d5ff;
+      background-color: transparent;
     }
   '';
 }