/** * Copyright (C) 2020-2023 Aditya Shakya **/ /*****----- Configuration -----*****/ configuration { modi: "run"; show-icons: true; display-drun: ""; display-run: ""; display-filebrowser: ""; drun-display-format: "{name}"; } /*****----- Global Properties -----*****/ @import "shared/colors.rasi" /*****----- Main Window -----*****/ window { /* properties for window widget */ transparency: "real"; location: center; anchor: center; fullscreen: false; width: 600px; x-offset: 0px; y-offset: 0px; /* properties for all widgets */ enabled: true; margin: 0px; padding: 0px; border: 2px solid; border-radius: 15px; border-color: @border; cursor: "default"; background-color: @background; } /*****----- Main Box -----*****/ mainbox { enabled: true; spacing: 10px; margin: 0px; padding: 30px; background-color: transparent; children: [ "inputbar", "listview" ]; } /*****----- Inputbar -----*****/ inputbar { enabled: true; spacing: 10px; margin: 0px; padding: 10px; border-radius: 0px; background-color: @background-alt; text-color: @foreground; children: [ "textbox-prompt-colon", "entry" ]; } prompt { enabled: true; background-color: inherit; text-color: inherit; } textbox-prompt-colon { enabled: true; padding: 0px; expand: false; str: ""; background-color: inherit; text-color: inherit; } entry { enabled: true; padding: 0px; background-color: inherit; text-color: inherit; cursor: text; placeholder: "Run..."; placeholder-color: inherit; } /*****----- Listview -----*****/ listview { enabled: true; columns: 2; lines: 6; cycle: true; dynamic: true; scrollbar: false; layout: vertical; reverse: false; fixed-height: true; fixed-columns: true; spacing: 5px; background-color: transparent; text-color: @foreground; cursor: "default"; } scrollbar { handle-width: 5px ; handle-color: @selected; border-radius: 10px; background-color: @background-alt; } /*****----- Elements -----*****/ element { enabled: true; spacing: 10px; margin: 0px; padding: 6px; border-radius: 0px; background-color: transparent; text-color: @foreground; cursor: pointer; } element normal.normal, element alternate.normal { background-color: var(background); text-color: var(foreground); } element normal.urgent, element alternate.urgent, element selected.active { background-color: var(urgent); text-color: var(background); } element normal.active, element alternate.active, element selected.urgent { background-color: var(active); text-color: var(background); } element selected.normal { background-color: var(selected); text-color: var(background); } element-icon { background-color: transparent; text-color: inherit; size: 24px; cursor: inherit; } element-text { background-color: transparent; text-color: inherit; highlight: inherit; cursor: inherit; vertical-align: 0.5; horizontal-align: 0.0; } /*****----- Mode Switcher -----*****/ mode-switcher{ enabled: true; spacing: 10px; margin: 0px; padding: 0px 250px; background-color: transparent; text-color: @foreground; } button { padding: 10px; border-radius: 0px; background-color: @background-alt; text-color: inherit; cursor: pointer; } button selected { background-color: var(urgent); text-color: var(background); } /*****----- Message -----*****/ message { enabled: true; margin: 0px; padding: 10px; border-radius: 0px; background-color: @background-alt; text-color: @foreground; } textbox { background-color: transparent; text-color: @foreground; vertical-align: 0.5; horizontal-align: 0.0; highlight: none; placeholder-color: @foreground; blink: true; markup: true; } error-message { padding: 30px; background-color: @background; text-color: @foreground; }