From 217c2ef0f1515c9445e3b5bcaf88d81f9ca40928 Mon Sep 17 00:00:00 2001 From: ziro Date: Sun, 19 Apr 2020 14:32:48 +0700 Subject: [PATCH] + Added rofi director --- .config/rofi/config | 2 + .config/rofi/config.rasi | 3 + .config/rofi/theme/Android/colors.rasi | 22 ++++ .config/rofi/theme/Android/five.rasi | 111 ++++++++++++++++ .config/rofi/theme/Android/four.rasi | 110 ++++++++++++++++ .config/rofi/theme/Android/grid.rasi | 102 +++++++++++++++ .config/rofi/theme/Android/launcher.rasi | 121 ++++++++++++++++++ .config/rofi/theme/Android/six.rasi | 110 ++++++++++++++++ .config/rofi/theme/Android/three.rasi | 110 ++++++++++++++++ .config/rofi/theme/askpass.rasi | 52 ++++++++ .config/rofi/theme/colorschemes/arc.rasi | 8 ++ .config/rofi/theme/colorschemes/ziDark.rasi | 8 ++ .config/rofi/theme/prompt.rasi | 39 ++++++ .config/rofi/theme/sidebar.rasi | 135 ++++++++++++++++++++ 14 files changed, 933 insertions(+) create mode 100755 .config/rofi/config create mode 100755 .config/rofi/config.rasi create mode 100755 .config/rofi/theme/Android/colors.rasi create mode 100755 .config/rofi/theme/Android/five.rasi create mode 100755 .config/rofi/theme/Android/four.rasi create mode 100755 .config/rofi/theme/Android/grid.rasi create mode 100755 .config/rofi/theme/Android/launcher.rasi create mode 100755 .config/rofi/theme/Android/six.rasi create mode 100755 .config/rofi/theme/Android/three.rasi create mode 100755 .config/rofi/theme/askpass.rasi create mode 100755 .config/rofi/theme/colorschemes/arc.rasi create mode 100755 .config/rofi/theme/colorschemes/ziDark.rasi create mode 100755 .config/rofi/theme/prompt.rasi create mode 100755 .config/rofi/theme/sidebar.rasi diff --git a/.config/rofi/config b/.config/rofi/config new file mode 100755 index 0000000..d59c7ba --- /dev/null +++ b/.config/rofi/config @@ -0,0 +1,2 @@ +rofi.icon-theme: "oomox-dark" +rofi.m: 0 diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi new file mode 100755 index 0000000..63ac9f3 --- /dev/null +++ b/.config/rofi/config.rasi @@ -0,0 +1,3 @@ +configuration { +} + diff --git a/.config/rofi/theme/Android/colors.rasi b/.config/rofi/theme/Android/colors.rasi new file mode 100755 index 0000000..d183bf1 --- /dev/null +++ b/.config/rofi/theme/Android/colors.rasi @@ -0,0 +1,22 @@ +/* + * Change the colorscheme for every menu simply by editing this file... + * + * Available Color Schemes + * // Dark + * material-dark/amber material-dark/blue material-dark/blue_grey material-dark/brown material-dark/cyan material-dark/deep_orange + * material-dark/deep_purple material-dark/green material-dark/grey material-dark/indigo material-dark/light_blue material-dark/light_green + * material-dark/lime material-dark/orange material-dark/pink material-dark/purple material-dark/red material-dark/teal + * material-dark/yellow + * // Light + * material-light/amber material-light/blue material-light/blue_grey material-light/brown material-light/cyan material-light/deep_orange + * material-light/deep_purple material-light/green material-light/grey material-light/indigo material-light/light_blue material-light/light_green + * material-light/lime material-light/orange material-light/pink material-light/purple material-light/red material-light/teal + * material-light/yellow + * + * // Other + * adapta, adapta-nokto, arc, arc-dark, adwaita, gruvbox, dark + * armchair, darkpink, fresh, inside, party, sirin + * + */ + +@import "../colorschemes/ziDark.rasi" diff --git a/.config/rofi/theme/Android/five.rasi b/.config/rofi/theme/Android/five.rasi new file mode 100755 index 0000000..24da578 --- /dev/null +++ b/.config/rofi/theme/Android/five.rasi @@ -0,0 +1,111 @@ + +/* + * + * Author : Aditya Shakya (adi1090x) + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Reddit : @adi1090x + * + */ + +@import "colors.rasi" + +* { + /* General */ + text-font: "Comfortaa 12"; + icon-font: "feather 18"; + + option-6-listview-spacing: 6px; + menu-window-padding: 6px 6px; + menu-element-padding: 20px 0px 15px -10px; +} + +#window { + width: 6%; + height: 46.6%; + anchor: east; + location: east; + x-offset: -1%; + y-offset: 0%; + border: 0px; + border-radius: 12px; +} + +* { + background-color: @background; + text-color: @foreground; + font: @icon-font; +} + +#horibox { + children: [ listview ]; +} + +#listview { + layout: vertical; +} + +#element { + border: 0px; + border-radius: 10px; + padding: @option-element-padding; + background-color: @background-light; +} + +#element.selected { + background-color: @accent; + text-color: @background; +} + +* { + font: @text-font; +} + +#window { + padding: @menu-window-padding; + children: [ inputbar, horibox ]; +} + +#inputbar { + enabled: false; + children: [ textbox-prompt-colon, prompt ]; + margin: @menu-inputbar-margin; +} + +#listview { + spacing: @option-6-listview-spacing; + lines: 3; +} + +#element { + font: @icon-font; + border: @menu-element-border; + padding: @menu-element-padding; + border-color: @background-light; +} + +#element.selected { + border-color: @accent; +} + +element.active, +element.selected.urgent { + background-color: @on; + text-color: @background; + border-color: @on; +} + +element.selected.urgent { + border-color: @accent; +} + +element.urgent, +element.selected.active { + background-color: @off; + text-color: @background; + border-color: @off; +} + +element.selected.active { + border-color: @accent; +} diff --git a/.config/rofi/theme/Android/four.rasi b/.config/rofi/theme/Android/four.rasi new file mode 100755 index 0000000..12e60e7 --- /dev/null +++ b/.config/rofi/theme/Android/four.rasi @@ -0,0 +1,110 @@ +/* + * + * Author : Aditya Shakya (adi1090x) + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Reddit : @adi1090x + * + */ + +@import "colors.rasi" + +* { + /* General */ + text-font: "Comfortaa 12"; + icon-font: "feather 18"; + + option-6-listview-spacing: 5px 5px 5px 5px; + menu-window-padding: 6px 6px; + menu-element-padding: 20px 0px 15px -10px; +} + +#window { + width: 6%; + height: 37%; + anchor: east; + location: east; + x-offset: -1%; + y-offset: 0%; + border: 0px; + border-radius: 12px; +} + +* { + background-color: @background; + text-color: @foreground; + font: @icon-font; +} + +#horibox { + children: [ listview ]; +} + +#listview { + layout: vertical; +} + +#element { + border: 0px; + border-radius: 10px; + padding: @option-element-padding; + background-color: @background-light; +} + +#element.selected { + background-color: @accent; + text-color: @background; +} + +* { + font: @text-font; +} + +#window { + padding: @menu-window-padding; + children: [ inputbar, horibox ]; +} + +#inputbar { + enabled: false; + children: [ textbox-prompt-colon, prompt ]; + margin: @menu-inputbar-margin; +} + +#listview { + spacing: @option-6-listview-spacing; + lines: 3; +} + +#element { + font: @icon-font; + border: @menu-element-border; + padding: @menu-element-padding; + border-color: @background-light; +} + +#element.selected { + border-color: @accent; +} + +element.active, +element.selected.urgent { + background-color: @on; + text-color: @background; + border-color: @on; +} + +element.selected.urgent { + border-color: @accent; +} + +element.urgent, +element.selected.active { + background-color: @off; + text-color: @background; + border-color: @off; +} + +element.selected.active { + border-color: @accent; +} diff --git a/.config/rofi/theme/Android/grid.rasi b/.config/rofi/theme/Android/grid.rasi new file mode 100755 index 0000000..e65cc95 --- /dev/null +++ b/.config/rofi/theme/Android/grid.rasi @@ -0,0 +1,102 @@ +/* + * + * Author : Aditya Shakya (adi1090x) + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Reddit : @adi1090x + * + */ + +configuration { + drun-display-format: "{icon} {name}"; + display-drun: "Applications"; + show-icons: true; + icon-theme: "oomox-dark"; + location: 0; + yoffset: 0; + xoffset: 0; + columns: 2; + fake-transparency: false; + hide-scrollbar: true; + bw: 0; + fullscreen: false; + show-icons: true; + terminal: "termite"; + sidebar-mode: false; +} + +@import "colors.rasi" + +* { + text-font: "Iosevka 12"; + + inputbar-margin: 3px 3px; + prompt-padding: 10px 10px; + entry-padding: 10px 0px 10px 0px; + list-element-padding: 10px; + list-element-margin: @inputbar-margin; + list-element-border: 0px 4px 0px 4px; + + apps-textbox-prompt-colon-padding: 10px -5px 0px 0px; +} + +#window { + width: 50%; + height: 60%; + padding: 40px 40px; + border: 0px; + border-radius: 14px; +} + +* { + background-color: @background; + text-color: @foreground; + font: @text-font; +} + +inputbar, +prompt, +textbox-prompt-colon, +entry { + background-color: @background-light; + border: 0px; + border-radius: 10px; +} + +#inputbar { + children: [ prompt, textbox-prompt-colon, entry ]; + margin: @inputbar-margin; +} + +#prompt { + padding: @prompt-padding; + background-color: @accent; + text-color: @background; +} + +#textbox-prompt-colon { + expand: false; + str: " :: "; + padding: @apps-textbox-prompt-colon-padding; +} + +#entry { + text-color: @accent; + padding: @entry-padding; +} + +#element { + padding: @list-element-padding; + margin: @list-element-margin; + border: @list-element-border; + background-color: @background-light; + border-color: @background-light; + border-radius: 10px; +} + +#element.selected { + background-color: @background-focus; + text-color: @accent; + border-color: @accent; + border-radius: 10px; +} diff --git a/.config/rofi/theme/Android/launcher.rasi b/.config/rofi/theme/Android/launcher.rasi new file mode 100755 index 0000000..7e10ff7 --- /dev/null +++ b/.config/rofi/theme/Android/launcher.rasi @@ -0,0 +1,121 @@ +/* + * + * Author : Aditya Shakya (adi1090x) + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Reddit : @adi1090x + * + */ + +configuration { + drun-display-format: "{icon}"; + display-drun: "Apps"; + show-icons: true; + icon-theme: "Papirus"; + location: 0; + yoffset: 0; + xoffset: 0; + fake-transparency: false; + hide-scrollbar: true; + bw: 0; + fullscreen: false; + show-icons: true; + terminal: "termite"; + sidebar-mode: false; +} + +// light +/* +* { +ac: #5294E2; +bg: #ffffff; +bg-alt: #EAEAEA; +fg: #ffffff; +} +*/ + +// dark + +* { +ac: #37b0ff; +bg: #2f3640; +bg-alt: #434758; +fg: #f5f6fa; +} + + +// blur +/* +* { +ac: #0000008c; +bg: #00000080; +bg-alt: #00000040; +fg: #e5e5e5; +} +*/ + +* { + background-color: #00000000; + font: "FantasqueSansMono Nerd Font 36"; +} + +window { + height: 52%; + width: 20%; + anchor: east; + location: east; + x-offset: -1%; + transparency: "real"; +} + +mainbox { + children: [ inputbar, listview ]; + padding: 0% 0% 0% 0%; + background-color: @bg; + border: 0; + border-radius: 12; + border-color: @bg; +} + +listview { + columns: 3; + padding: 8; + spacing: 10; +} + +element { + border: 0; + text-color: @fg; + background-color: @bg-alt; + orientation: vertical; + padding: 12 12 12 16; + border-radius: 8; +} + +element selected { + background-color: @ac; + border-color: @bg; + text-color: @fg; +} + +inputbar { + children: [entry]; + padding: 4 4 4 4; + margin: 1% 0.5%; + /* change this colors to change style*/ + background-color: @ac; + border: 0 0 0 0; + border-radius: 8; + border-color: @fg; +} + +prompt { + enabled: false; +} + +entry { + font: "FantasqueSansMono Nerd Font 12"; + text-color: @fg; + padding: 8 12 8 12; +} + diff --git a/.config/rofi/theme/Android/six.rasi b/.config/rofi/theme/Android/six.rasi new file mode 100755 index 0000000..f96392a --- /dev/null +++ b/.config/rofi/theme/Android/six.rasi @@ -0,0 +1,110 @@ +/* + * + * Author : Aditya Shakya (adi1090x) + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Reddit : @adi1090x + * + */ + +@import "colors.rasi" + +* { + /* General */ + text-font: "Comfortaa 12"; + icon-font: "feather 18"; + + option-6-listview-spacing: 6px; + menu-window-padding: 6px 6px; + menu-element-padding: 20px 0px 15px -10px; +} + +#window { + width: 6%; + height: 55.6%; + anchor: east; + location: east; + x-offset: -1%; + y-offset: 0%; + border: 0px; + border-radius: 12px; +} + +* { + background-color: @background; + text-color: @foreground; + font: @icon-font; +} + +#horibox { + children: [ listview ]; +} + +#listview { + layout: vertical; +} + +#element { + border: 0px; + border-radius: 10px; + padding: @option-element-padding; + background-color: @background-light; +} + +#element.selected { + background-color: @accent; + text-color: @background; +} + +* { + font: @text-font; +} + +#window { + padding: @menu-window-padding; + children: [ inputbar, horibox ]; +} + +#inputbar { + enabled: false; + children: [ textbox-prompt-colon, prompt ]; + margin: @menu-inputbar-margin; +} + +#listview { + spacing: @option-6-listview-spacing; + lines: 3; +} + +#element { + font: @icon-font; + border: @menu-element-border; + padding: @menu-element-padding; + border-color: @background-light; +} + +#element.selected { + border-color: @accent; +} + +element.active, +element.selected.urgent { + background-color: @on; + text-color: @background; + border-color: @on; +} + +element.selected.urgent { + border-color: @accent; +} + +element.urgent, +element.selected.active { + background-color: @off; + text-color: @background; + border-color: @off; +} + +element.selected.active { + border-color: @accent; +} diff --git a/.config/rofi/theme/Android/three.rasi b/.config/rofi/theme/Android/three.rasi new file mode 100755 index 0000000..3ec7c79 --- /dev/null +++ b/.config/rofi/theme/Android/three.rasi @@ -0,0 +1,110 @@ +/* + * + * Author : Aditya Shakya (adi1090x) + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Reddit : @adi1090x + * + */ + +@import "colors.rasi" + +* { + /* General */ + text-font: "Comfortaa 12"; + icon-font: "feather 18"; + + option-6-listview-spacing: 6px; + menu-window-padding: 6px 6px; + menu-element-padding: 20px 0px 15px -10px; +} + +#window { + width: 6%; + height: 28.2%; + anchor: east; + location: east; + x-offset: -1%; + y-offset: 0%; + border: 0px; + border-radius: 12px; +} + +* { + background-color: @background; + text-color: @foreground; + font: @icon-font; +} + +#horibox { + children: [ listview ]; +} + +#listview { + layout: vertical; +} + +#element { + border: 0px; + border-radius: 10px; + padding: @option-element-padding; + background-color: @background-light; +} + +#element.selected { + background-color: @accent; + text-color: @background; +} + +* { + font: @text-font; +} + +#window { + padding: @menu-window-padding; + children: [ inputbar, horibox ]; +} + +#inputbar { + enabled: false; + children: [ textbox-prompt-colon, prompt ]; + margin: @menu-inputbar-margin; +} + +#listview { + spacing: @option-6-listview-spacing; + lines: 3; +} + +#element { + font: @icon-font; + border: @menu-element-border; + padding: @menu-element-padding; + border-color: @background-light; +} + +#element.selected { + border-color: @accent; +} + +element.active, +element.selected.urgent { + background-color: @on; + text-color: @background; + border-color: @on; +} + +element.selected.urgent { + border-color: @accent; +} + +element.urgent, +element.selected.active { + background-color: @off; + text-color: @background; + border-color: @off; +} + +element.selected.active { + border-color: @accent; +} diff --git a/.config/rofi/theme/askpass.rasi b/.config/rofi/theme/askpass.rasi new file mode 100755 index 0000000..95b2d00 --- /dev/null +++ b/.config/rofi/theme/askpass.rasi @@ -0,0 +1,52 @@ +/* + * by Siddharth Dushantha 2020 + * A very minimal graphical helper for sudo's askpass. + * + * Preview: https://0x0.st/iu4y.png + * + * WARNING: This is by no means the most secure method + * to implement a graphical interface for askpass + * + * Put the code below in a location such as ~/bin/askpass-rofi + * #!/usr/bin/env bash + * rofi -dmenu\ + * -password\ + * -i\ + * -no-fixed-num-lines\ + * -p "Password:"\ + * -theme ~/.config/rofi/themes/askpass.rasi + * + * Then the code below in your bashrc, zshrc, or something similar + * SUDO_ASKPASS=~/bin/askpass-rofi + * + */ + + +* { + background-color: #111116; + text-color: #D8DEE9; + font: "SF Mono 12"; +} + +#window { + /* Change the this according to your screen width */ + width: 380px; + + /* Change this value according to your screen height */ + y-offset: -10%; + + /* This padding is given just for aesthetic purposes */ + padding: 40px; +} + + +#entry { + /* + * For some reason, without this option, a dash/hyphen appears + * at the end of the entry + */ + expand: true; + + /* Keeping using 200px so that long passwords can be typed */ + width: 200px; +} diff --git a/.config/rofi/theme/colorschemes/arc.rasi b/.config/rofi/theme/colorschemes/arc.rasi new file mode 100755 index 0000000..a5c211b --- /dev/null +++ b/.config/rofi/theme/colorschemes/arc.rasi @@ -0,0 +1,8 @@ +* { + accent: #5294E2; + background: #FFFFFF; + background-light: #E7E8EB; + foreground: #333333; + on: #44ad4d; + off: #e34039; +} diff --git a/.config/rofi/theme/colorschemes/ziDark.rasi b/.config/rofi/theme/colorschemes/ziDark.rasi new file mode 100755 index 0000000..72baed6 --- /dev/null +++ b/.config/rofi/theme/colorschemes/ziDark.rasi @@ -0,0 +1,8 @@ +* { + accent: #37b0ff; + background: #2f3640; + background-light: #434758; + foreground: #f5f6fa; + on: #2affb9; + off: #e84118; +} diff --git a/.config/rofi/theme/prompt.rasi b/.config/rofi/theme/prompt.rasi new file mode 100755 index 0000000..f373fb6 --- /dev/null +++ b/.config/rofi/theme/prompt.rasi @@ -0,0 +1,39 @@ +/** + * This theme is intended for a 5 items wide menu on a 1920x1080 pixels resolution. + * You may have to tweak values such as the window padding if you have a different resolution. + */ +* { + font: "Ubuntu Nerd Font 45"; +} +#window { + background-color: #353b48; + text-color: transparent; + width: 100%; + height: 35%; + padding: 43px 80px; + children: [ horibox ]; +} +#prompt{ + font: "Ubuntu Nerd Font 10"; +} +#horibox { + background-color: transparent; + children: [ listview ]; +} +#listview { + background-color: transparent; + layout: horizontal; + spacing: 50px; + margin: 0px; + lines: 8; +} +#element { +anchor: center; +text-color: #dcdde1; + padding: 60px 70px 55px -9px; +background-color: rgba(0,0,0,0.5); +} +#element.selected { + background-color: #00a8ff; + text-color: #f5f6fa; +} diff --git a/.config/rofi/theme/sidebar.rasi b/.config/rofi/theme/sidebar.rasi new file mode 100755 index 0000000..f385449 --- /dev/null +++ b/.config/rofi/theme/sidebar.rasi @@ -0,0 +1,135 @@ +/** + * User: OG by deadguy, Modded by ZiRO + * Copyright: deadguy + */ + +configuration { + modi: "drun,run,window"; + display-drun: "Activate"; + display-run: "Execute"; + display-window: "Window"; + show-icons: true; + icon-theme: "oomox-dark"; + sidebar-mode: true; +} + +* { + background-color: #2f3640; + text-color: #f5f6fa; + selbg: #00a8ff; + actbg: #0097e6; + urgbg: #e84118; + winbg: #f5f6fa; + + selected-normal-foreground: @winbg; + normal-foreground: @text-color; + selected-normal-background: @actbg; + normal-background: @background-color; + + selected-urgent-foreground: @background-color; + urgent-foreground: @text-color; + selected-urgent-background: @urgbg; + urgent-background: @background-color; + + selected-active-foreground: @winbg; + active-foreground: @text-color; + selected-active-background: @actbg; + active-background: @selbg; + + line-margin: 2; + line-padding: 2; + separator-style: "none"; + hide-scrollbar: "true"; + margin: 0; + padding: 0; +} + +window { + location: west; + anchor: west; + height: 100%; + width: 22%; + orientation: horizontal; + children: [mainbox]; + font: "Iosevka 10"; +} + +mainbox { + spacing: 0.8em; + children: [ entry,listview,mode-switcher ]; +} + +button { padding: 5px 2px; } + +button selected { + background-color: @active-background; + text-color: @active-foreground; +} + +inputbar { + padding: 5px; + spacing: 5px; +} + +listview { + padding: 2px; + spacing: 0em; + dynamic: false; + cycle: true; +} + +element { padding: 8px; } + + +entry { + expand: false; + text-color: @normal-foreground; + vertical-align: 1; + padding: 5px; +} + +element normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} + +element normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} + +element normal.active { + background-color: @active-background; + text-color: @active-foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +element selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +} + +element selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; +} + +element alternate.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} + +element alternate.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} + +element alternate.active { + background-color: @active-background; + text-color: @active-foreground; +} +