Compare commits
No commits in common. "111ddfda2cdaacccf8d625548da9c6a5a997f60c" and "bcf7a4d38dc941e816e1f491b63417e959ba4c0a" have entirely different histories.
111ddfda2c
...
bcf7a4d38d
@ -1,3 +0,0 @@
|
||||
* {
|
||||
font: "Hack Nerd Font 12";
|
||||
}
|
||||
1
bin/rofi-launcher
Symbolic link
1
bin/rofi-launcher
Symbolic link
@ -0,0 +1 @@
|
||||
../launchers/launcher.sh
|
||||
@ -57,6 +57,7 @@ configuration {
|
||||
|
||||
/*---------- Window switcher settings ----------*/
|
||||
window-match-fields: "title,class,role,name,desktop";
|
||||
window-command: "wmctrl -i -R {window}";
|
||||
window-format: "{w} - {c} - {t:0}";
|
||||
window-thumbnail: false;
|
||||
|
||||
|
||||
159
dmenu/dropdown-text.rasi
Normal file
159
dmenu/dropdown-text.rasi
Normal file
@ -0,0 +1,159 @@
|
||||
|
||||
/*****----- 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;
|
||||
}
|
||||
17
dmenu/search.sh
Executable file
17
dmenu/search.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
@ -1,29 +0,0 @@
|
||||
#!/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
|
||||
@ -16,8 +16,8 @@ configuration {
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../palette/onedark.rasi"
|
||||
@import "../base/base.rasi"
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
@ -16,8 +16,8 @@ configuration {
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../palette/onedark.rasi"
|
||||
@import "../base/base.rasi"
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
@ -16,8 +16,8 @@ configuration {
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../palette/onedark.rasi"
|
||||
@import "../base/base.rasi"
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
23
launchers/launcher.sh
Executable file
23
launchers/launcher.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
@ -16,8 +16,8 @@ configuration {
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../palette/onedark.rasi"
|
||||
@import "../base/base.rasi"
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
@ -35,7 +35,7 @@ window {
|
||||
border: 0px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: black / 50%;
|
||||
background-color: black / 10%;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
@ -16,8 +16,8 @@ configuration {
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../palette/onedark.rasi"
|
||||
@import "../base/base.rasi"
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
@ -15,8 +15,8 @@ configuration {
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../../palette/onedark.rasi"
|
||||
@import "../../base/base.rasi"
|
||||
@import "../../shared/colors.rasi"
|
||||
@import "../../shared/fonts.rasi"
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
#!/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)
|
||||
8
shared/colors.rasi
Normal file
8
shared/colors.rasi
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
* Modified: spinach
|
||||
**/
|
||||
|
||||
@import "~/.config/rofi/colors/onedark.rasi"
|
||||
10
shared/fonts.rasi
Normal file
10
shared/fonts.rasi
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
* Modified : spinach
|
||||
**/
|
||||
|
||||
* {
|
||||
font: "Hack Nerd Font 12";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user