migration
This commit is contained in:
119
X11/rofi/config.rasi
Normal file
119
X11/rofi/config.rasi
Normal file
@@ -0,0 +1,119 @@
|
||||
configuration {
|
||||
show-icons: true;
|
||||
font: "Fira Code Retina 12";
|
||||
display-drun: "";
|
||||
}
|
||||
|
||||
* {
|
||||
text-color: #E9E9E9;
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: #00000050;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 450px 550px;
|
||||
enabled: true;
|
||||
location: center;
|
||||
anchor: center;
|
||||
transparency: "real";
|
||||
children: ["mainbox"];
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border-radius: 10px;
|
||||
border: 2px;
|
||||
border-color: #BF9FD8;
|
||||
location: center;
|
||||
background-color: #0A041835;
|
||||
enabled: true;
|
||||
padding: 1.25em;
|
||||
spacing: 1.25em;
|
||||
children: [ "imageBox", "rightbox" ];
|
||||
orientation: horizontal;
|
||||
background-color: transparent;
|
||||
}
|
||||
rightbox {
|
||||
background-color: #0A041835;
|
||||
width: 45%;
|
||||
children: [ "inputbar", "listview" ];
|
||||
border-radius: 0.65em;
|
||||
border: 1px;
|
||||
border-color: #E5C38F;
|
||||
expand: true;
|
||||
}
|
||||
|
||||
imageBox {
|
||||
width: 45%;
|
||||
padding: 5px;
|
||||
expand: true;
|
||||
background-image: url("/home/kokopi/pictures/rofi-sqrs/sgsqr5.png", height);
|
||||
border-radius: 0.65em; // Optional, for rounded corners
|
||||
}
|
||||
|
||||
inputbar {
|
||||
border: 0 0 1px 0;
|
||||
children: [prompt,entry];
|
||||
border-color: #E5C38F;
|
||||
border-radius: 0px;
|
||||
background-color: #0A041835;
|
||||
}
|
||||
|
||||
prompt {
|
||||
padding: 16px 16px 16px 16px;
|
||||
border-radius:0px;
|
||||
border: 0 1px 0 0;
|
||||
border-color: #060813;
|
||||
text-color: #E5C38F;
|
||||
background-color: #0A041835;
|
||||
}
|
||||
|
||||
/* search bar */
|
||||
entry {
|
||||
padding: 16px;
|
||||
border: 0px;
|
||||
text-color: #BF9FD8;
|
||||
cursor: text;
|
||||
background-color: #0A041835;
|
||||
}
|
||||
|
||||
textbox {
|
||||
background-color: #2e343f;
|
||||
border: 0 0 1px 0;
|
||||
border-color: #282C33;
|
||||
padding: 8px 16px;
|
||||
background-color: #0A041835;
|
||||
}
|
||||
|
||||
listview {
|
||||
cycle: false;
|
||||
margin: 0 0 -1px 0;
|
||||
scrollbar: false;
|
||||
dynamic: true;
|
||||
border-radius: 0px;
|
||||
border: 0;
|
||||
background-color: #0A041835;
|
||||
}
|
||||
|
||||
element {
|
||||
border: 0;
|
||||
padding: 20px;
|
||||
border-radius: 0px;
|
||||
spacing: 1em; /* gap between element-text and element-icon */
|
||||
background-color: #0A041835;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: #0A041800;
|
||||
color: #E5C38F;
|
||||
}
|
||||
element-icon {
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: #BF9FD830;
|
||||
border-radius:0px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
73
X11/rofi/quickapps.rasi
Normal file
73
X11/rofi/quickapps.rasi
Normal file
@@ -0,0 +1,73 @@
|
||||
// Config //
|
||||
configuration {
|
||||
modi: "drun";
|
||||
show-icons: true;
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
|
||||
// Main //
|
||||
window {
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
cursor: "default";
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
background-color: @main-bg;
|
||||
}
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "listbox" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Lists //
|
||||
listbox {
|
||||
padding: 0em;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
listview {
|
||||
padding: 2px;
|
||||
spacing: 0em;
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
flow: horizontal;
|
||||
reverse: false;
|
||||
fixed-height: false;
|
||||
fixed-columns: false;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
orientation: vertical;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @main-fg;
|
||||
}
|
||||
element-icon {
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
}
|
||||
element-text {
|
||||
enabled: false;
|
||||
}
|
||||
19
X11/rofi/runrofi.sh
Executable file
19
X11/rofi/runrofi.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
IMAGE_DIR=~/pictures/rofi-sqrs
|
||||
THEME_FILE=~/.config/rofi/config.rasi
|
||||
LOG_FILE=~/.config/rofi/.randomized_image.log
|
||||
|
||||
IMAGE=$(find "$IMAGE_DIR" -type f | sort -R | head -n 1)
|
||||
LAST_IMAGE=$(cat ~/.config/rofi/.randomized_image.log)
|
||||
|
||||
while true; do
|
||||
if [[ "$IMAGE" != "$LAST_IMAGE" ]]; then
|
||||
echo "$IMAGE" > $LOG_FILE
|
||||
break
|
||||
fi
|
||||
IMAGE=$(find "$IMAGE_DIR" -type f | sort -R | head -n 1)
|
||||
done
|
||||
|
||||
sed -i "s|background-image: url(\".*\", height);|background-image: url(\"$IMAGE\", height);|" $THEME_FILE
|
||||
|
||||
rofi -show drun -theme $THEME_FILE
|
||||
85
X11/rofi/selector.rasi
Normal file
85
X11/rofi/selector.rasi
Normal file
@@ -0,0 +1,85 @@
|
||||
// Config //
|
||||
configuration {
|
||||
modi: "drun";
|
||||
show-icons: true;
|
||||
drun-display-format: "{name}";
|
||||
font: "JetBrainsMono Nerd Font 10";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
|
||||
// Main //
|
||||
window {
|
||||
enabled: true;
|
||||
fullscreen: false;
|
||||
transparency: "real";
|
||||
cursor: "default";
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
border: 0em;
|
||||
border-radius: 0em;
|
||||
border-color: transparent;
|
||||
background-color: @main-bg;
|
||||
}
|
||||
mainbox {
|
||||
enabled: true;
|
||||
orientation: horizontal;
|
||||
children: [ "dummy", "frame", "dummy" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
frame {
|
||||
children: [ "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Lists //
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 4em;
|
||||
padding: 4em;
|
||||
columns: 10;
|
||||
lines: 1;
|
||||
dynamic: false;
|
||||
fixed-height: false;
|
||||
fixed-columns: true;
|
||||
reverse: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
dummy {
|
||||
width: 2em;
|
||||
expand: false;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @select-bg;
|
||||
text-color: @select-fg;
|
||||
}
|
||||
element-icon {
|
||||
cursor: inherit;
|
||||
size: 10em;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
expand: false;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
10
X11/rofi/theme.rasi
Normal file
10
X11/rofi/theme.rasi
Normal file
@@ -0,0 +1,10 @@
|
||||
* {
|
||||
main-bg: #11111be6;
|
||||
main-fg: #cdd6f4ff;
|
||||
main-br: #cba6f7ff;
|
||||
main-ex: #f5e0dcff;
|
||||
select-bg: #b4befeff;
|
||||
select-fg: #11111bff;
|
||||
separatorcolor: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
Reference in New Issue
Block a user