/** * Copyright (C) 2020-2023 Aditya Shakya **/ /*****----- Configuration -----*****/ configuration { modi: "drun"; show-icons: false; display-drun: "Applications"; drun-display-format: "{name}"; } /*****----- Global Properties -----*****/ @import "shared/colors.rasi" @import "shared/fonts.rasi" /* USE_ICON=NO */ /*****----- Main Window -----*****/ window { transparency: "real"; location: southeast; anchor: southeast; fullscreen: false; width: 450px; x-offset: -10px; y-offset: -44px; enabled: true; margin: 0px; padding: 0px; border: 0px solid; border-radius: 10px; border-color: @selected; background-color: @background; cursor: "default"; } /*****----- Main Box -----*****/ mainbox { enabled: true; spacing: 10px; margin: 0px; padding: 30px; border: 0px solid; border-radius: 0px 0px 0px 0px; border-color: @selected; background-color: transparent; children: [ "inputbar", "listview", "message" ]; } /*****----- Inputbar -----*****/ inputbar { enabled: true; spacing: 0px; margin: 0px; padding: 0px; border: 0px solid; border-radius: 16px; border-color: @selected; background-color: @background-alt; text-color: @foreground; children: [ "textbox-prompt-colon", "prompt" ]; } prompt { enabled: true; padding: 12px; border-radius: 16px; background-color: inherit; text-color: inherit; } textbox-prompt-colon { enabled: true; expand: false; str: " System"; padding: 12px; border-radius: 16px; background-color: @selected; text-color: @background; } entry { enabled: true; padding: 12px; background-color: inherit; text-color: inherit; cursor: text; placeholder: "Command..."; placeholder-color: inherit; } /*****----- Listview -----*****/ listview { enabled: true; columns: 3; lines: 2; cycle: true; dynamic: true; scrollbar: false; layout: vertical; reverse: false; fixed-height: true; fixed-columns: true; spacing: 10px; margin: 0px; padding: 0px; border: 0px solid; border-radius: 0px; border-color: @selected; background-color: transparent; text-color: @foreground; cursor: "default"; } scrollbar { handle-width: 5px ; handle-color: @selected; border-radius: 0px; background-color: @background-alt; } /*****----- Elements -----*****/ element { enabled: true; padding: 20px 10px; border: 0px solid; border-radius: 16px; border-color: @selected; background-color: transparent; text-color: @foreground; cursor: pointer; } element-text { background-color: transparent; text-color: inherit; cursor: inherit; vertical-align: 0.5; horizontal-align: 0.5; } element normal.normal, element alternate.normal { background-color: var(background-alt); 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); } /*****----- Message -----*****/ message { enabled: true; margin: 0px; padding: 10px; border: 0px solid; border-radius: 16px; border-color: @selected; background-color: @background-alt; text-color: @foreground; } error-message { padding: 15px; border: 2px solid; border-radius: 0px; border-color: @selected; background-color: @background; text-color: @foreground; } textbox { background-color: @background-alt; text-color: @foreground; vertical-align: 0.5; horizontal-align: 0.5; highlight: none; }