Updates
This commit is contained in:
parent
68d9e6e0e9
commit
91c289bb2e
@ -41,10 +41,10 @@ case $1 in
|
|||||||
# Select wallpaper with rofi
|
# Select wallpaper with rofi
|
||||||
"select")
|
"select")
|
||||||
|
|
||||||
selected=$( find "$HOME/wallpaper" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec basename {} \; | sort | while read rfile
|
selected=$( find "$HOME/wallpaper" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec basename {} \; | sort -R | while read rfile
|
||||||
do
|
do
|
||||||
echo -en "$rfile\x00icon\x1f$HOME/wallpaper/${rfile}\n"
|
echo -en "$rfile\x00icon\x1f$HOME/wallpaper/${rfile}\n"
|
||||||
done | rofi -dmenu -replace -l 6 -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
done | rofi -dmenu -replace -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
||||||
if [ ! "$selected" ]; then
|
if [ ! "$selected" ]; then
|
||||||
echo "No wallpaper selected"
|
echo "No wallpaper selected"
|
||||||
exit
|
exit
|
||||||
|
@ -40,7 +40,7 @@ case $1 in
|
|||||||
|
|
||||||
# Select wallpaper with rofi
|
# Select wallpaper with rofi
|
||||||
"select")
|
"select")
|
||||||
selected=$( find "$HOME/wallpaper" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec basename {} \; | sort | while read rfile
|
selected=$( find "$HOME/wallpaper" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec basename {} \; | sort -R | while read rfile
|
||||||
do
|
do
|
||||||
echo -en "$rfile\x00icon\x1f$HOME/wallpaper/${rfile}\n"
|
echo -en "$rfile\x00icon\x1f$HOME/wallpaper/${rfile}\n"
|
||||||
done | rofi -dmenu -replace -l 6 -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
done | rofi -dmenu -replace -l 6 -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
||||||
|
@ -14,11 +14,6 @@ configuration {
|
|||||||
modi: "drun,run";
|
modi: "drun,run";
|
||||||
font: "Fira Sans Bold 10";
|
font: "Fira Sans Bold 10";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
icon-theme: "kora";
|
|
||||||
display-drun: "APPS";
|
|
||||||
display-run: "RUN";
|
|
||||||
display-filebrowser: "FILES";
|
|
||||||
display-window: "WINDOW";
|
|
||||||
hover-select: true;
|
hover-select: true;
|
||||||
me-select-entry: "";
|
me-select-entry: "";
|
||||||
me-accept-entry: "MousePrimary";
|
me-accept-entry: "MousePrimary";
|
||||||
@ -33,7 +28,7 @@ configuration {
|
|||||||
|
|
||||||
/* ---- Window ---- */
|
/* ---- Window ---- */
|
||||||
window {
|
window {
|
||||||
width: 400px;
|
width: 761px;
|
||||||
x-offset: 0px;
|
x-offset: 0px;
|
||||||
y-offset: 65px;
|
y-offset: 65px;
|
||||||
spacing: 0px;
|
spacing: 0px;
|
||||||
@ -59,7 +54,6 @@ mainbox {
|
|||||||
spacing: 0px;
|
spacing: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
background-image: @current-image;
|
|
||||||
children: ["listbox"];
|
children: ["listbox"];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,19 +133,16 @@ button selected {
|
|||||||
listview {
|
listview {
|
||||||
enabled: true;
|
enabled: true;
|
||||||
columns: 1;
|
columns: 1;
|
||||||
lines: 8;
|
|
||||||
cycle: true;
|
cycle: true;
|
||||||
dynamic: true;
|
dynamic: false;
|
||||||
scrollbar: false;
|
scrollbar: true;
|
||||||
layout: vertical;
|
layout: horizontal;
|
||||||
reverse: false;
|
reverse: false;
|
||||||
fixed-height: true;
|
spacing: 10px;
|
||||||
fixed-columns: true;
|
|
||||||
spacing: 0px;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
border:0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- Element ---- */
|
/* ---- Element ---- */
|
||||||
@ -163,49 +154,59 @@ element {
|
|||||||
background-color: @background;
|
background-color: @background;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
border: 2px;
|
border: 2px;
|
||||||
|
layout: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
element normal.normal {
|
element normal.normal {
|
||||||
|
border-color: @color11;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element normal.urgent {
|
element normal.urgent {
|
||||||
|
border-color: @color11;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element normal.active {
|
element normal.active {
|
||||||
|
border-color: @color11;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected.normal {
|
element selected.normal {
|
||||||
background-color: @color11;
|
border-color: @foreground;
|
||||||
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected.urgent {
|
element selected.urgent {
|
||||||
|
border-color: @foreground;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected.active {
|
element selected.active {
|
||||||
|
border-color: @foreground;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element alternate.normal {
|
element alternate.normal {
|
||||||
|
border-color: @color11;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element alternate.urgent {
|
element alternate.urgent {
|
||||||
|
border-color: @color11;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element alternate.active {
|
element alternate.active {
|
||||||
|
border-color: @color11;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
@ -213,8 +214,9 @@ element alternate.active {
|
|||||||
element-icon {
|
element-icon {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
text-color: inherit;
|
text-color: inherit;
|
||||||
size: 60px;
|
size: 100px;
|
||||||
cursor: inherit;
|
cursor: inherit;
|
||||||
|
horizontal-align: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text {
|
element-text {
|
||||||
@ -223,6 +225,7 @@ element-text {
|
|||||||
cursor: inherit;
|
cursor: inherit;
|
||||||
vertical-align: 0.5;
|
vertical-align: 0.5;
|
||||||
horizontal-align: 0.1;
|
horizontal-align: 0.1;
|
||||||
|
enabled: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Message -----*****/
|
/*****----- Message -----*****/
|
||||||
|
Loading…
Reference in New Issue
Block a user