Compare commits
3 Commits
bcf7a4d38d
...
111ddfda2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
111ddfda2c | ||
|
|
eda5bf9f74 | ||
|
|
d04eab7465 |
3
base/base.rasi
Normal file
3
base/base.rasi
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
* {
|
||||||
|
font: "Hack Nerd Font 12";
|
||||||
|
}
|
||||||
@ -1 +0,0 @@
|
|||||||
../launchers/launcher.sh
|
|
||||||
@ -57,7 +57,6 @@ configuration {
|
|||||||
|
|
||||||
/*---------- Window switcher settings ----------*/
|
/*---------- Window switcher settings ----------*/
|
||||||
window-match-fields: "title,class,role,name,desktop";
|
window-match-fields: "title,class,role,name,desktop";
|
||||||
window-command: "wmctrl -i -R {window}";
|
|
||||||
window-format: "{w} - {c} - {t:0}";
|
window-format: "{w} - {c} - {t:0}";
|
||||||
window-thumbnail: false;
|
window-thumbnail: false;
|
||||||
|
|
||||||
|
|||||||
@ -1,159 +0,0 @@
|
|||||||
|
|
||||||
/*****----- Configuration -----*****/
|
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
|
||||||
@import "../shared/colors.rasi"
|
|
||||||
@import "../shared/fonts.rasi"
|
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
|
||||||
window {
|
|
||||||
transparency: "real";
|
|
||||||
fullscreen: false;
|
|
||||||
width: 750px;
|
|
||||||
x-offset: 0px;
|
|
||||||
y-offset: 0px;
|
|
||||||
|
|
||||||
enabled: true;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
border: 0px solid;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-color: @selected;
|
|
||||||
background-color: @background;
|
|
||||||
cursor: "default";
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****----- Main Box -----*****/
|
|
||||||
mainbox {
|
|
||||||
enabled: true;
|
|
||||||
spacing: 10px;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 10px;
|
|
||||||
border: 0px solid;
|
|
||||||
border-radius: 0px 0px 0px 0px;
|
|
||||||
border-color: @selected;
|
|
||||||
background-color: transparent;
|
|
||||||
children: [ "inputbar", "listview" ];
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****----- Inputbar -----*****/
|
|
||||||
inputbar {
|
|
||||||
enabled: true;
|
|
||||||
spacing: 10px;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid;
|
|
||||||
border-radius: 4px;
|
|
||||||
border-color: @selected;
|
|
||||||
background-color: @background;
|
|
||||||
text-color: @foreground;
|
|
||||||
children: [ "prompt", "entry" ];
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
enabled: true;
|
|
||||||
background-color: inherit;
|
|
||||||
text-color: inherit;
|
|
||||||
}
|
|
||||||
textbox-prompt-colon {
|
|
||||||
enabled: true;
|
|
||||||
expand: false;
|
|
||||||
str: "::";
|
|
||||||
background-color: inherit;
|
|
||||||
text-color: inherit;
|
|
||||||
}
|
|
||||||
entry {
|
|
||||||
enabled: true;
|
|
||||||
background-color: inherit;
|
|
||||||
text-color: inherit;
|
|
||||||
cursor: text;
|
|
||||||
placeholder: "Search";
|
|
||||||
placeholder-color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****----- Listview -----*****/
|
|
||||||
listview {
|
|
||||||
enabled: true;
|
|
||||||
columns: 1;
|
|
||||||
lines: 7;
|
|
||||||
cycle: true;
|
|
||||||
dynamic: true;
|
|
||||||
scrollbar: false;
|
|
||||||
layout: vertical;
|
|
||||||
reverse: false;
|
|
||||||
fixed-height: true;
|
|
||||||
fixed-columns: true;
|
|
||||||
|
|
||||||
spacing: 0px;
|
|
||||||
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;
|
|
||||||
spacing: 10px;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 0px solid;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-color: @selected;
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
orientation: horizontal;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
element normal.normal {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
element selected.normal {
|
|
||||||
border: 1px solid;
|
|
||||||
border-radius: 4px;
|
|
||||||
border-color: @selected;
|
|
||||||
background-color: @background;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
element-icon {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: inherit;
|
|
||||||
size: 32px;
|
|
||||||
cursor: inherit;
|
|
||||||
}
|
|
||||||
element-text {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: inherit;
|
|
||||||
highlight: inherit;
|
|
||||||
cursor: inherit;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
horizontal-align: 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****----- Message -----*****/
|
|
||||||
error-message {
|
|
||||||
padding: 10px;
|
|
||||||
border: 0px solid;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-color: @selected;
|
|
||||||
background-color: black / 10%;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
textbox {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
horizontal-align: 0.0;
|
|
||||||
highlight: none;
|
|
||||||
}
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#
|
|
||||||
## Rofi : Launcher (Modi Drun, Run, File Browser, Window)
|
|
||||||
# ## Available Styles
|
|
||||||
#
|
|
||||||
## dropdown-transparent dropdown-text
|
|
||||||
## fullscreen-transparent small-transparent
|
|
||||||
|
|
||||||
dir="$HOME/.config/rofi/dmenu"
|
|
||||||
theme='dropdown-text'
|
|
||||||
|
|
||||||
## Run
|
|
||||||
rofi \
|
|
||||||
-dmenu \
|
|
||||||
-i \
|
|
||||||
-p "$1" \
|
|
||||||
-theme ${dir}/${theme}.rasi
|
|
||||||
29
launcher/rofi.sh
Executable file
29
launcher/rofi.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROFI_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/rofi"
|
||||||
|
THEME="${1:-small-transparent}" # first arg
|
||||||
|
MODE="${2:-drun}" # second arg
|
||||||
|
|
||||||
|
THEME_FILE="${ROFI_DIR}/themes/${THEME}.rasi"
|
||||||
|
CONFIG_FILE="${ROFI_DIR}/config/config.rasi"
|
||||||
|
|
||||||
|
# Optional: allow extra rofi args after mode/theme
|
||||||
|
shift $(( $# > 0 ? 1 : 0 )) || true
|
||||||
|
shift $(( $# > 0 ? 1 : 0 )) || true
|
||||||
|
|
||||||
|
if [[ "$MODE" == "dmenu" ]] ; then
|
||||||
|
exec rofi \
|
||||||
|
-config "${CONFIG_FILE}" \
|
||||||
|
-theme "${THEME_FILE}" \
|
||||||
|
-dmenu \
|
||||||
|
"$@"
|
||||||
|
|
||||||
|
else
|
||||||
|
exec rofi \
|
||||||
|
-config "${CONFIG_FILE}" \
|
||||||
|
-theme "${THEME_FILE}" \
|
||||||
|
-show "${MODE}" \
|
||||||
|
"$@"
|
||||||
|
fi
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
## Author : Aditya Shakya (adi1090x)
|
|
||||||
## Github : @adi1090x
|
|
||||||
## Modified : spinach
|
|
||||||
#
|
|
||||||
## Rofi : Launcher (Modi Drun, Run, File Browser, Window)
|
|
||||||
#
|
|
||||||
## Available Styles
|
|
||||||
#
|
|
||||||
## dropdown-transparent dropdown-text
|
|
||||||
## fullscreen-transparent small-transparent
|
|
||||||
|
|
||||||
dir="$HOME/.config/rofi/launchers"
|
|
||||||
theme='small-transparent'
|
|
||||||
# theme override
|
|
||||||
if [[ -n "$1" ]] ; then
|
|
||||||
theme="$1"
|
|
||||||
fi
|
|
||||||
## Run
|
|
||||||
rofi \
|
|
||||||
-show drun \
|
|
||||||
-theme ${dir}/${theme}.rasi
|
|
||||||
@ -15,8 +15,8 @@ configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
/*****----- Global Properties -----*****/
|
||||||
@import "../../shared/colors.rasi"
|
@import "../../palette/onedark.rasi"
|
||||||
@import "../../shared/fonts.rasi"
|
@import "../../base/base.rasi"
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
window {
|
window {
|
||||||
|
|||||||
13
scripts/wallpaper-picker.sh
Executable file
13
scripts/wallpaper-picker.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
WALL_DIR="${1:-$HOME/.local/share/wallpapers}"
|
||||||
|
|
||||||
|
# Build list: display text = filename; icon = thumbnail of file; payload = full path
|
||||||
|
# Use NUL + unit-separator fields per rofi's extended dmenu protocol.
|
||||||
|
while IFS= read -r -d '' f; do
|
||||||
|
base="$(basename "$f")"
|
||||||
|
printf '%s\0icon\x1fthumbnail://%s\0info\x1f%s\n' "$base" "$f" "$f"
|
||||||
|
done < <(find "$WALL_DIR" -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.webp' \) -print0 | sort -z)
|
||||||
|
|
||||||
|
# Run rofi dmenu, capturing the selected line (which includes the base text)
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/**
|
|
||||||
*
|
|
||||||
* Author : Aditya Shakya (adi1090x)
|
|
||||||
* Github : @adi1090x
|
|
||||||
* Modified: spinach
|
|
||||||
**/
|
|
||||||
|
|
||||||
@import "~/.config/rofi/colors/onedark.rasi"
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
/**
|
|
||||||
*
|
|
||||||
* Author : Aditya Shakya (adi1090x)
|
|
||||||
* Github : @adi1090x
|
|
||||||
* Modified : spinach
|
|
||||||
**/
|
|
||||||
|
|
||||||
* {
|
|
||||||
font: "Hack Nerd Font 12";
|
|
||||||
}
|
|
||||||
@ -16,8 +16,8 @@ configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
/*****----- Global Properties -----*****/
|
||||||
@import "../shared/colors.rasi"
|
@import "../palette/onedark.rasi"
|
||||||
@import "../shared/fonts.rasi"
|
@import "../base/base.rasi"
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
window {
|
window {
|
||||||
@ -16,8 +16,8 @@ configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
/*****----- Global Properties -----*****/
|
||||||
@import "../shared/colors.rasi"
|
@import "../palette/onedark.rasi"
|
||||||
@import "../shared/fonts.rasi"
|
@import "../base/base.rasi"
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
window {
|
window {
|
||||||
@ -16,8 +16,8 @@ configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
/*****----- Global Properties -----*****/
|
||||||
@import "../shared/colors.rasi"
|
@import "../palette/onedark.rasi"
|
||||||
@import "../shared/fonts.rasi"
|
@import "../base/base.rasi"
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
window {
|
window {
|
||||||
@ -11,13 +11,13 @@
|
|||||||
configuration {
|
configuration {
|
||||||
modi: "drun";
|
modi: "drun";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
display-drun: "";
|
display-drun: " ";
|
||||||
drun-display-format: "{name}";
|
drun-display-format: "{name}";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
/*****----- Global Properties -----*****/
|
||||||
@import "../shared/colors.rasi"
|
@import "../palette/onedark.rasi"
|
||||||
@import "../shared/fonts.rasi"
|
@import "../base/base.rasi"
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
window {
|
window {
|
||||||
@ -35,7 +35,7 @@ window {
|
|||||||
border: 0px solid;
|
border: 0px solid;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
border-color: @selected;
|
border-color: @selected;
|
||||||
background-color: black / 10%;
|
background-color: black / 50%;
|
||||||
cursor: "default";
|
cursor: "default";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,8 +16,8 @@ configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Global Properties -----*****/
|
/*****----- Global Properties -----*****/
|
||||||
@import "../shared/colors.rasi"
|
@import "../palette/onedark.rasi"
|
||||||
@import "../shared/fonts.rasi"
|
@import "../base/base.rasi"
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
window {
|
window {
|
||||||
Loading…
x
Reference in New Issue
Block a user