Browse Source

small tweak for rofi

pull/10/head
JaKooLit 2 years ago
parent
commit
747a78071e
  1. 3
      config/hypr/initial-boot.sh
  2. 10
      config/hypr/scripts/DarkLight.sh
  3. BIN
      config/rofi/.current_wallpaper
  4. 37
      config/rofi/config-cliphist.rasi
  5. 28
      config/rofi/config-compact.rasi
  6. 19
      config/rofi/config-long.rasi
  7. 242
      config/rofi/config-power.rasi
  8. 28
      config/rofi/config-rofi-Beats.rasi
  9. 19
      config/rofi/config-short.rasi
  10. 15
      config/rofi/config.rasi
  11. 3
      config/rofi/pywal-color/Readme.md
  12. 1
      config/rofi/pywal-color/pywal-theme.rasi

3
config/hypr/initial-boot.sh

@ -14,6 +14,9 @@ if [ ! -f ~/.hyprland_startup_done ]; then
# Run wal with random wallpapers from ~/Pictures/wallpapers
wal -i ~/Pictures/wallpapers/*
echo "Pywal initialized"
#initial symlink for Pywal Dark and Light for Rofi Themes
ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi"
fi
fi

10
config/hypr/scripts/DarkLight.sh

@ -45,11 +45,11 @@ ln -sf "${waybar_config}/style/style-pywal.css" "${waybar_config}/style.css"
ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/styles/dunstrc"
# Symlink for rofi theme
#if [ "$next_mode" = "dark" ]; then
# ln -sf $dark_rofi_pywal "$HOME/.config/rofi/pywal-theme.rasi"
#else
# ln -sf $light_rofi_pywal "$HOME/.config/rofi/pywal-theme.rasi"
#fi
if [ "$next_mode" = "dark" ]; then
ln -sf $dark_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi"
else
ln -sf $light_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi"
fi
gtk_theme="${next_mode}_gtk_theme"
icon_theme="${next_mode}_icon_theme"

BIN
config/rofi/.current_wallpaper

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

37
config/rofi/config-cliphist.rasi

@ -18,25 +18,27 @@ configuration {
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
@import "~/.config/rofi/pywal-color/pywal-theme.rasi"
/* ---- Window ---- */
window {
width: 600px;
width: 30%;
height: 30%;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
color: transparent;
border: 2px;
border-color: @background;
cursor: "default";
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
enabled: true;
border-radius: 12px;
background-color: transparent;
border-radius: 10px;
}
/* ---- Mainbox ---- */
@ -45,9 +47,9 @@ mainbox {
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: ["listbox"];
children: [ "imagebox", "listbox" ];
}
/* ---- Imagebox ---- */
@ -63,9 +65,8 @@ listbox {
spacing: 20px;
background-color: transparent;
orientation: vertical;
children: [ "inputbar", "message", "listview" ];
children: [ "message", "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
@ -79,15 +80,13 @@ inputbar {
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: rgba(0,0,0,0.4);
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: " ";
background-color: transparent;
str: "🔎 ";
text-color: inherit;
}
@ -96,10 +95,8 @@ entry {
background-color: transparent;
text-color: inherit;
cursor: text;
placeholder: "Clipboard Search";
placeholder: "Choose";
placeholder-color: inherit;
border-radius: 10px;
border: 0px;
}
/* ---- Mode Switcher ---- */
@ -120,7 +117,7 @@ button {
}
button selected {
background-color: inherit;
background-color: @selected-normal-background;
text-color: @foreground;
}
@ -139,16 +136,16 @@ listview {
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: rgba(0,0,0,0.6);
border-radius: 10px;
border: 0px;
background-image: url("~/.config/rofi/.current_wallpaper", height);
}
/* ---- Element ---- */
element {
enabled: true;
padding: 10px;
margin: 5px;
padding: 5px;
margin: 2px;
cursor: pointer;
background-color: @background;
border-radius: 10px;
@ -171,7 +168,7 @@ element normal.active {
}
element selected.normal {
background-color: inherit;
background-color: @selected-normal-background;
text-color: @foreground;
}

28
config/rofi/config-compact.rasi

@ -18,18 +18,18 @@ configuration {
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
@import "~/.config/rofi/pywal-color/pywal-theme.rasi"
/* ---- Window ---- */
window {
width: 900px;
width: 30%;
height: 30%;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
color: transparent;
border: 2px;
border-color: @background;
cursor: "default";
@ -39,7 +39,6 @@ window {
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
/* ---- Mainbox ---- */
@ -48,7 +47,7 @@ mainbox {
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: [ "imagebox", "listbox" ];
}
@ -68,7 +67,6 @@ listbox {
orientation: vertical;
children: [ "message", "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
@ -82,15 +80,13 @@ inputbar {
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: rgba(0,0,0,0.5);
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "🔍";
background-color: transparent;
str: "🔎 ";
text-color: inherit;
}
@ -114,7 +110,7 @@ mode-switcher{
button {
padding: 10px;
border-radius: 10px;
background-color: rgba(0,0,0,0.5);
background-color: @background;
text-color: inherit;
cursor: pointer;
border: 0px;
@ -129,7 +125,7 @@ button selected {
listview {
enabled: true;
columns: 1;
lines: 6;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: false;
@ -140,18 +136,18 @@ listview {
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: rgba(0,0,0,0.4);
border-radius: 10px;
border: 0px;
background-image: url("~/.config/rofi/.current_wallpaper", height);
}
/* ---- Element ---- */
element {
enabled: true;
padding: 2px;
padding: 5px;
margin: 2px;
cursor: pointer;
background-color: rgba(0,0,0,0);
background-color: @background;
border-radius: 10px;
border: 0px;
}
@ -229,7 +225,7 @@ message {
textbox {
padding: 15px;
margin: 0px;
border-radius: 10px;
border-radius: 0px;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;

19
config/rofi/config-long.rasi

@ -18,17 +18,18 @@ configuration {
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
@import "~/.config/rofi/pywal-color/pywal-theme.rasi"
/* ---- Window ---- */
window {
width: 400px;
width: 20%;
height: 50%;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
color: transparent;
border: 2px;
border-color: @background;
cursor: "default";
@ -38,7 +39,6 @@ window {
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
/* ---- Mainbox ---- */
@ -47,7 +47,7 @@ mainbox {
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: [ "listbox" ];
}
@ -67,7 +67,6 @@ listbox {
orientation: vertical;
children: [ "inputbar", "message", "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
@ -81,7 +80,6 @@ inputbar {
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: rgba(0,0,0,0.5);
children: [ "textbox-prompt-colon", "entry" ];
}
@ -89,7 +87,6 @@ textbox-prompt-colon {
enabled: true;
expand: false;
str: "🔎 ";
background-color: transparent;
text-color: inherit;
}
@ -128,7 +125,7 @@ button selected {
listview {
enabled: true;
columns: 1;
lines: 14;
lines: 12;
cycle: true;
dynamic: true;
scrollbar: false;
@ -139,9 +136,9 @@ listview {
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: rgba(0,0,0,0.4);
border-radius: 10px;
border: 0px;
background-image: url("~/.config/rofi/.current_wallpaper", height);
}
/* ---- Element ---- */
@ -152,7 +149,7 @@ element {
cursor: pointer;
background-color: @background;
border-radius: 10px;
border: 2px;
border: 0px;
}
element normal.normal {

242
config/rofi/config-power.rasi

@ -1,242 +0,0 @@
/* ---- 💫 https://github.com/JaKooLit 💫 ---- */
/* ---- Configuration ---- */
configuration {
modi: "drun,run";
font: "Fira Code SemiBold 12";
show-icons: true;
display-drun: "";
display-run: "";
display-filebrowser: "";
display-window: "";
drun-display-format: "{name}";
hover-select: true;
me-select-entry: "MouseSecondary";
me-accept-entry: "MousePrimary";
window-format: "{w} · {c} · {t}";
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
/* ---- Window ---- */
window {
width: 400px;
x-offset: -14px;
y-offset: 65px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
border: 3px;
border-color: #FFFFFF;
cursor: "default";
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
/* ---- Mainbox ---- */
mainbox {
enabled: true;
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: ["listbox"];
}
/* ---- Imagebox ---- */
imagebox {
padding: 18px;
background-color: transparent;
orientation: vertical;
children: [ "inputbar", "dummy", "mode-switcher" ];
}
/* ---- Listbox ---- */
listbox {
spacing: 20px;
background-color: transparent;
orientation: vertical;
children: [ "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
}
/* ---- Inputbar ---- */
inputbar {
enabled: true;
text-color: @foreground;
spacing: 10px;
padding: 15px;
border-radius: 0px;
border-color: @foreground;
background-color: @background;
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "";
background-color: transparent;
text-color: inherit;
}
entry {
enabled: true;
background-color: transparent;
text-color: inherit;
cursor: text;
placeholder: "Search";
placeholder-color: inherit;
}
/* ---- Mode Switcher ---- */
mode-switcher{
enabled: true;
spacing: 20px;
background-color: transparent;
text-color: @foreground;
}
button {
padding: 10px;
border-radius: 10px;
background-color: @background;
text-color: inherit;
cursor: pointer;
border: 0px;
}
button selected {
background-color: @selected-normal-background;;
text-color: @foreground;
}
/* ---- Listview ---- */
listview {
enabled: true;
columns: 1;
lines: 2;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: @background;
border:0px;
}
/* ---- Element ---- */
element {
enabled: true;
padding: 10px;
margin: 5px;
cursor: pointer;
background-color: @background;
border-radius: 10px;
border: 2px;
}
element normal.normal {
background-color: inherit;
text-color: @foreground;
}
element normal.urgent {
background-color: inherit;
text-color: @foreground;
}
element normal.active {
background-color: inherit;
text-color: @foreground;
}
element selected.normal {
background-color: @selected-normal-background;;
text-color: @foreground;
}
element selected.urgent {
background-color: inherit;
text-color: @foreground;
}
element selected.active {
background-color: inherit;
text-color: @foreground;
}
element alternate.normal {
background-color: inherit;
text-color: @foreground;
}
element alternate.urgent {
background-color: inherit;
text-color: @foreground;
}
element alternate.active {
background-color: inherit;
text-color: @foreground;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 32px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
/*****----- Message -----*****/
message {
background-color: transparent;
border:0px;
margin:20px 0px 0px 0px;
padding:0px;
spacing:0px;
border-radius: 10px;
}
textbox {
padding: 15px;
margin: 0px;
border-radius: 0px;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
}
error-message {
padding: 15px;
border-radius: 20px;
background-color: @background;
text-color: @foreground;
}

28
config/rofi/config-rofi-Beats.rasi

@ -18,18 +18,18 @@ configuration {
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
@import "~/.config/rofi/pywal-color/pywal-theme.rasi"
/* ---- Window ---- */
window {
width: 900px;
width: 30%;
height: 34%;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
color: transparent;
border: 2px;
border-color: @background;
cursor: "default";
@ -39,7 +39,6 @@ window {
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
/* ---- Mainbox ---- */
@ -48,7 +47,7 @@ mainbox {
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: [ "imagebox", "listbox" ];
}
@ -68,7 +67,6 @@ listbox {
orientation: vertical;
children: [ "message", "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
@ -82,15 +80,13 @@ inputbar {
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: rgba(0,0,0,0.5);
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "🎧 🎶";
background-color: transparent;
str: "🔎 ";
text-color: inherit;
}
@ -114,7 +110,7 @@ mode-switcher{
button {
padding: 10px;
border-radius: 10px;
background-color: rgba(0,0,0,0.5);
background-color: @background;
text-color: inherit;
cursor: pointer;
border: 0px;
@ -129,7 +125,7 @@ button selected {
listview {
enabled: true;
columns: 1;
lines: 12;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: false;
@ -140,18 +136,18 @@ listview {
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: rgba(0,0,0,0.4);
border-radius: 10px;
border: 0px;
background-image: url("~/.config/rofi/.current_wallpaper", height);
}
/* ---- Element ---- */
element {
enabled: true;
padding: 2px;
padding: 5px;
margin: 2px;
cursor: pointer;
background-color: rgba(0,0,0,0);
background-color: @background;
border-radius: 10px;
border: 0px;
}
@ -229,7 +225,7 @@ message {
textbox {
padding: 15px;
margin: 0px;
border-radius: 10px;
border-radius: 0px;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;

19
config/rofi/config-short.rasi

@ -18,17 +18,18 @@ configuration {
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
@import "~/.config/rofi/pywal-color/pywal-theme.rasi"
/* ---- Window ---- */
window {
width: 400px;
width: 20%;
height: 50%;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
color: transparent;
border: 2px;
border-color: @background;
cursor: "default";
@ -38,7 +39,6 @@ window {
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
/* ---- Mainbox ---- */
@ -47,7 +47,7 @@ mainbox {
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: [ "listbox" ];
}
@ -67,7 +67,6 @@ listbox {
orientation: vertical;
children: [ "inputbar", "message", "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
@ -81,7 +80,6 @@ inputbar {
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: rgba(0,0,0,0.5);
children: [ "textbox-prompt-colon", "entry" ];
}
@ -89,7 +87,6 @@ textbox-prompt-colon {
enabled: true;
expand: false;
str: "🔎 ";
background-color: transparent;
text-color: inherit;
}
@ -128,7 +125,7 @@ button selected {
listview {
enabled: true;
columns: 1;
lines: 8;
lines: 12;
cycle: true;
dynamic: true;
scrollbar: false;
@ -139,9 +136,9 @@ listview {
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: rgba(0,0,0,0.4);
border-radius: 10px;
border: 0px;
background-image: url("~/.config/rofi/.current_wallpaper", height);
}
/* ---- Element ---- */
@ -152,7 +149,7 @@ element {
cursor: pointer;
background-color: @background;
border-radius: 10px;
border: 2px;
border: 0px;
}
element normal.normal {

15
config/rofi/config.rasi

@ -18,17 +18,18 @@ configuration {
}
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark.rasi"
@import "~/.config/rofi/pywal-color/pywal-theme.rasi"
/* ---- Window ---- */
window {
width: 900px;
width: 30%;
height: 30%;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
color: transparent;
border: 2px;
border-color: @background;
cursor: "default";
@ -38,7 +39,6 @@ window {
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
/* ---- Mainbox ---- */
@ -47,7 +47,7 @@ mainbox {
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
children: [ "imagebox", "listbox" ];
}
@ -67,7 +67,6 @@ listbox {
orientation: vertical;
children: [ "message", "listview" ];
}
/* ---- Dummy ---- */
dummy {
background-color: transparent;
@ -81,7 +80,6 @@ inputbar {
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: rgba(0,0,0,0.5);
children: [ "textbox-prompt-colon", "entry" ];
}
@ -89,7 +87,6 @@ textbox-prompt-colon {
enabled: true;
expand: false;
str: "🔎 ";
background-color: transparent;
text-color: inherit;
}
@ -139,9 +136,9 @@ listview {
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: rgba(0,0,0,0.4);
border-radius: 10px;
border: 0px;
background-image: url("~/.config/rofi/.current_wallpaper", height);
}
/* ---- Element ---- */

3
config/rofi/pywal-color/Readme.md

@ -0,0 +1,3 @@
# NOTE!!
This is symlink from ~/.cache/wal/colors-rofi-dark.rasi or ~/.cache/wal/colors-rofi-dark.rasi. Do not delete this folder and files else rofi theme wont be loaded.

1
config/rofi/pywal-color/pywal-theme.rasi

@ -0,0 +1 @@
This is for symlink. DO NOT delete
Loading…
Cancel
Save