rofi better

This commit is contained in:
Benjamin Kyd
2023-01-26 11:46:37 +00:00
parent 23f36498dd
commit b05cdb9930
19 changed files with 1588 additions and 3 deletions

View File

@@ -0,0 +1,64 @@
<h3 align="center">
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png" width="100" alt="Logo"/><br/>
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
Catppuccin for <a href="https://github.com/catppuccin/rofi">Rofi - Deathemonic Theme</a>
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
</h3>
<p align="center">
<a href="https://github.com/catppuccin/rofi/stargazers"><img src="https://img.shields.io/github/stars/catppuccin/rofi?colorA=363a4f&colorB=b7bdf8&style=for-the-badge"></a>
<a href="https://github.com/catppuccin/rofi/issues"><img src="https://img.shields.io/github/issues/catppuccin/rofi?colorA=363a4f&colorB=f5a97f&style=for-the-badge"></a>
<a href="https://github.com/catppuccin/rofi/contributors"><img src="https://img.shields.io/github/contributors/catppuccin/rofi?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
</p>
<p align="center">
<img src="https://raw.githubusercontent.com/catppuccin/rofi/main/assets/deathemonic-rofi-launcher.png"/></br>
<img src="https://raw.githubusercontent.com/catppuccin/rofi/main/assets/deathemonic-rofi-powermenu.png"/></br>
<img src="https://raw.githubusercontent.com/catppuccin/rofi/main/assets/deathemonic-rofi-runmenu.png"/></br>
<img src="https://raw.githubusercontent.com/catppuccin/rofi/main/assets/deathemonic-rofi-screenshot.png"/></br>
</p>
## Usage
1. Clone this repository locally
```sh
git clone https://github.com/catppuccin/rofi && cd rofi/deathemonic
```
2. Copy the content of this Theme to Rofi's config location
```sh
cp -r * ~/.config/rofi
```
3. Open Rofi with your Shortcutmanager (in this case sxhkd)
```sh
super + {d,r,p,s}
sh $HOME/.config/rofi/bin/{launcher,runner,powermenu,screenshot}
```
### Keybinds
Key | Action |
|---|---|
|Meta + D | Open the Launcher |
|Meta + R| Open the Run Menu (Run Commands without opening a terminal)|
|Meta + P | Open the Powermenu |
|Meta + S | Open the Screenshot Menu |
## 💝 Thanks to
- [Deathemonic](https://github.com/Deathemonic)
- [justTOBBI](https://github.com/justTOBBI)
&nbsp;
<p align="center">
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true" />
</p>
<p align="center">
Copyright &copy; 2021-present <a href="https://github.com/catppuccin" target="_blank">Catppuccin Org</a>
</p>
<p align="center">
<a href="https://github.com/catppuccin/catppuccin/blob/main/LICENSE"><img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8"/></a>
</p>

11
home/.config/rofi/bin/launcher Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
rofi \
-show drun \
-modi run,drun,ssh \
-scroll-method 0 \
-drun-match-fields all \
-drun-display-format "{name}" \
-no-drun-show-actions \
-terminal kitty \
-kb-cancel Alt-F1 \
-theme "$HOME"/.config/rofi/config/launcher.rasi

119
home/.config/rofi/bin/powermenu Executable file
View File

@@ -0,0 +1,119 @@
#!/usr/bin/env bash
rofi_command="rofi -theme $HOME/.config/rofi/config/powermenu.rasi"
uptime=$(uptime -p | sed -e 's/up //g')
# Options
if [[ "$DIR" == "powermenus" ]]; then
shutdown=""
reboot=""
lock=""
suspend=""
logout=""
ddir="$HOME/.config/rofi/config"
else
# For some reason the Icons are mess up I don't know why but to fix it uncomment section 2 and comment section 1 but if the section 1 icons are mess up uncomment section 2 and comment section 1
# Buttons
layout=`cat $HOME/.config/rofi/config/powermenu.rasi | grep BUTTON | cut -d'=' -f2 | tr -d '[:blank:],*/'`
if [[ "$layout" == "TRUE" ]]; then
# Section 1
shutdown=""
reboot=""
lock=""
suspend=""
logout=""
# Section 2
# shutdown="襤"
# reboot="ﰇ"
# lock=""
# suspend="鈴"
# logout=" "
else
# Section 1
shutdown=" Shutdown"
reboot=" Restart"
lock=" Lock"
suspend=" Sleep"
logout=" Logout"
# Section 2
# shutdown="襤Shutdown"
# reboot="ﰇ Restart"
# lock=" Lock"
# suspend="鈴Sleep"
# logout=" Logout"
fi
ddir="$HOME/.config/rofi/config"
fi
# Ask for confirmation
rdialog () {
rofi -dmenu\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
-theme "$ddir/confirm.rasi"
}
# Display Help
show_msg() {
rofi -theme "$ddir/askpass.rasi" -e "Options : yes / no / y / n"
}
# Variable passed to rofi
options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
chosen="$(echo -e "$options" | $rofi_command -p "UP - $uptime" -dmenu -selected-row 0)"
case $chosen in
$shutdown)
ans=$(rdialog &)
if [[ $ans == "yes" ]] || [[ $ans == "YES" ]] || [[ $ans == "y" ]]; then
systemctl poweroff
elif [[ $ans == "no" ]] || [[ $ans == "NO" ]] || [[ $ans == "n" ]]; then
exit
else
show_msg
fi
;;
$reboot)
ans=$(rdialog &)
if [[ $ans == "yes" ]] || [[ $ans == "YES" ]] || [[ $ans == "y" ]]; then
systemctl reboot
elif [[ $ans == "no" ]] || [[ $ans == "NO" ]] || [[ $ans == "n" ]]; then
exit
else
show_msg
fi
;;
$lock)
sh $HOME/.local/bin/lock
;;
$suspend)
ans=$(rdialog &)
if [[ $ans == "yes" ]] || [[ $ans == "YES" ]] || [[ $ans == "y" ]]; then
mpc -q pause
amixer set Master mute
sh $HOME/.local/bin/lock
systemctl suspend
elif [[ $ans == "no" ]] || [[ $ans == "NO" ]] || [[ $ans == "n" ]]; then
exit
else
show_msg
fi
;;
$logout)
ans=$(rdialog &)
if [[ $ans == "yes" ]] || [[ $ans == "YES" ]] || [[ $ans == "y" ]]; then
bspc quit
elif [[ $ans == "no" ]] || [[ $ans == "NO" ]] || [[ $ans == "n" ]]; then
exit
else
show_msg
fi
;;
esac

6
home/.config/rofi/bin/runner Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
rofi \
-show run \
-scroll-method 0 \
-terminal kitty \
-theme "$HOME"/.config/rofi/config/runner.rasi

101
home/.config/rofi/bin/screenshot Executable file
View File

@@ -0,0 +1,101 @@
#!/usr/bin/env bash
rofi_command="rofi -theme $HOME/.config/rofi/config/screenshot.rasi"
time=`date +%Y-%m-%d-%I-%M-%S`
geometry=`xrandr | head -n1 | cut -d',' -f2 | tr -d '[:blank:],current'`
dir="`xdg-user-dir PICTURES`/Screenshots"
file="Screenshot_${time}_${geometry}.png"
# Icons
icon1="$HOME/.config/dunst/icons/collections.svg"
icon2="$HOME/.config/dunst/icons/timer.svg"
# Buttons
layout=`cat $HOME/.config/rofi/config/screenshot.rasi | grep BUTTON | cut -d'=' -f2 | tr -d '[:blank:],*/'`
if [[ "$layout" == "TRUE" ]]; then
screen=""
area=""
window="缾"
infive="靖"
inten="福"
else
screen=" Capture Desktop"
area=" Capture Area"
window="缾 Capture Window"
infive="靖 Take in 3s"
inten="福 Take in 10s"
fi
# Notify and view screenshot
notify_view () {
dunstify -u low --replace=699 -i $icon1 "Copied to clipboard."
viewnior ${dir}/"$file"
if [[ -e "$dir/$file" ]]; then
dunstify -u low --replace=699 -i $icon1 "Screenshot Saved."
else
dunstify -u low --replace=699 -i $icon1 "Screenshot Deleted."
fi
}
# countdown
countdown () {
for sec in `seq $1 -1 1`; do
dunstify -t 1000 --replace=699 -i $icon2 "Taking shot in : $sec"
sleep 1
done
}
# take shots
shotnow () {
cd ${dir} && sleep 0.5 && maim -u -f png | tee "$file" | xclip -selection clipboard -t image/png
notify_view
}
shot5 () {
countdown '3'
sleep 1 && cd ${dir} && maim -u -f png | tee "$file" | xclip -selection clipboard -t image/png
notify_view
}
shot10 () {
countdown '10'
sleep 1 && cd ${dir} && maim -u -f png | tee "$file" | xclip -selection clipboard -t image/png
notify_view
}
shotwin () {
cd ${dir} && maim -u -f png -i `xdotool getactivewindow` | tee "$file" | xclip -selection clipboard -t image/png
notify_view
}
shotarea () {
cd ${dir} && maim -u -f png -s -b 2 -c 0.35,0.55,0.85,0.25 -l | tee "$file" | xclip -selection clipboard -t image/png
notify_view
}
if [[ ! -d "$dir" ]]; then
mkdir -p "$dir"
fi
# Variable passed to rofi
options="$screen\n$area\n$window\n$infive\n$inten"
chosen="$(echo -e "$options" | $rofi_command -p 'Take A Shot' -dmenu -selected-row 0)"
case $chosen in
$screen)
shotnow
;;
$area)
shotarea
;;
$window)
shotwin
;;
$infive)
shot5
;;
$inten)
shot10
;;
esac

View File

@@ -1 +1,18 @@
@theme "/usr/share/rofi/themes/android_notification.rasi"
configuration{
modi: "run,drun,window";
icon-theme: "Oranchelo";
show-icons: true;
terminal: "alacritty";
drun-display-format: "{icon} {name}";
location: 0;
disable-history: false;
hide-scrollbar: true;
display-drun: "  Apps ";
display-run: "  Run ";
display-window: " 﩯 Window";
display-Network: " 󰤨 Network";
sidebar-mode: true;
}
@theme "catppuccin-mocha"

View File

@@ -0,0 +1,24 @@
@import "colors.rasi"
@import "font.rasi"
* {
background-color: @BG;
text-color: @FG;
}
window {
width: 250px;
padding: 20px;
border: 0px 0px 2px 0px;
border-radius: 8px;
border-color: @BDR;
location: 0;
x-offset: 0;
y-offset: -4%;
}
entry {
expand: true;
width: 150px;
text-color: @BDR;
}

View File

@@ -0,0 +1,151 @@
configuration {
show-icons: false;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 300px;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
margin: 0px 8px 0px 8px;
padding: 8px;
background-color: @IMG;
text-color: @BG;
border: 0px 0px 0px 0px;
border-color: @BDR;
border-radius: 10px;
}
textbox-prompt-colon {
expand: false;
str: "";
border-radius: 100%;
background-color: @SEL;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon, prompt, entry ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 7;
spacing: 4px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 4px;
padding: 6px 6px 6px 6px;
}
element-icon {
background-color: inherit;
text-color: inherit;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 2px 0px 2px 6px;
}
element normal.urgent,
element alternate.urgent {
background-color: @UGT;
text-color: @FG;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @BGA;
text-color: @FG;
}
element selected {
background-color: @BGA;
text-color: @SEL;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element selected.urgent {
background-color: @UGT;
text-color: @FG;
}
element selected.active {
background-color: @BGA;
color: @FG;
}

View File

@@ -0,0 +1,12 @@
* {
BG: #1E1D2Fff;
BGA: #89DCEBff;
FG: #D9E0EEff;
FGA: #F28FADff;
BDR: #96CDFBff;
SEL: #1E1E2Eff;
UGT: #F28FADff;
IMG: #FAE3B0ff;
OFF: #575268ff;
ON: #ABE9B3ff;
}

View File

@@ -0,0 +1,24 @@
@import "colors.rasi"
@import "font.rasi"
* {
background-color: @BG;
text-color: @FG;
}
window {
width: 200px;
padding: 20px;
border: 0px 0px 2px 0px;
border-radius: 8px;
border-color: @BDR;
location: 0;
x-offset: 0;
y-offset: -4%;
}
entry {
expand: true;
width: 150px;
text-color: @BDR;
}

View File

@@ -0,0 +1,3 @@
* {
font: "Iosevka 24";
}

View File

@@ -0,0 +1,145 @@
configuration {
show-icons: true;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 1000px;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
padding: 8px;
background-color: @BG;
text-color: @IMG;
}
textbox-prompt-colon {
expand: false;
str: "";
border-radius: 100%;
background-color: @SEL;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "Search...";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon, prompt, entry ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 7;
spacing: 4px;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 4px;
padding: 6px 6px 6px 6px;
}
element-icon {
background-color: inherit;
text-color: inherit;
horizontal-align: 0.5;
vertical-align: 0.5;
size: 40;
color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 2px 0px 2px 2px;
}
element normal.urgent,
element alternate.urgent {
background-color: @UGT;
text-color: @FG;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @BGA;
text-color: @FG;
}
element selected {
background-color: @BGA;
text-color: @SEL;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element selected.urgent {
background-color: @UGT;
text-color: @FG;
}
element selected.active {
background-color: @BGA;
color: @FG;
}

View File

@@ -0,0 +1,153 @@
configuration {
show-icons: false;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
/* Line Responsible For Button Layouts */
/* BUTTON = FALSE */
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 400px;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
margin: 0px 0px 0px 8px;
padding: 8px;
background-color: @BG;
text-color: @FG;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
}
textbox-prompt-colon {
expand: false;
str: "ﱘ";
border-radius: 100%;
background-color: @BG;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "Search...";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon, prompt ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 3;
lines: 2;
spacing: 15px;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BGA;
text-color: @SEL;
orientation: horizontal;
border-radius: 10px;
padding: 8px;
}
element-icon {
background-color: inherit;
text-color: inherit;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0.5;
vertical-align: 0.5;
margin: 2px 0px 0px 0px;
}
element selected {
background-color: @IMG;
text-color: @BG;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element.active,
element.selected.urgent {
background-color: @ON;
text-color: @BG;
border-color: @ON;
}
element.selected.urgent {
border-color: @BDR;
}
element.urgent,
element.selected.active {
background-color: @OFF;
text-color: @BG;
border-color: @OFF;
}
element.selected.active {
border-color: @BDR;
}

View File

@@ -0,0 +1,150 @@
configuration {
show-icons: false;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 300px;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
margin: 0px 0px 0px 8px;
padding: 8px;
background-color: @BG;
text-color: @FG;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
}
textbox-prompt-colon {
expand: false;
str: "";
border-radius: 100%;
background-color: @BG;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "Search...";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [textbox-prompt-colon, prompt ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 4;
spacing: 4px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 10px;
padding: 6px 6px 6px 6px;
}
element-icon {
background-color: inherit;
text-color: inherit;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 2px 0px 2px 6px;
}
element selected {
background-color: @IMG;
text-color: @BG;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element.active,
element.selected.urgent {
background-color: @ON;
text-color: @BG;
border-color: @ON;
}
element.selected.urgent {
border-color: @BDR;
}
element.urgent,
element.selected.active {
background-color: @OFF;
text-color: @BG;
border-color: @OFF;
}
element.selected.active {
border-color: @BDR;
}

View File

@@ -0,0 +1,151 @@
configuration {
show-icons: false;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 400px;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
margin: 0px 8px 0px 8px;
padding: 8px;
background-color: @IMG;
text-color: @BG;
border: 0px 0px 0px 0px;
border-color: @BDR;
border-radius: 10px;
}
textbox-prompt-colon {
expand: false;
str: "直";
border-radius: 100%;
background-color: @SEL;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon, prompt, entry ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 7;
spacing: 4px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 4px;
padding: 6px 6px 6px 6px;
}
element-icon {
background-color: inherit;
text-color: inherit;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 2px 0px 2px 6px;
}
element normal.urgent,
element alternate.urgent {
background-color: @UGT;
text-color: @FG;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @BGA;
text-color: @FG;
}
element selected {
background-color: @BGA;
text-color: @SEL;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element selected.urgent {
background-color: @UGT;
text-color: @FG;
}
element selected.active {
background-color: @BGA;
color: @FG;
}

View File

@@ -0,0 +1,155 @@
configuration {
show-icons: true;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 4;
}
@import "font.rasi"
@import "colors.rasi"
/* Line Responsible For Button Layouts */
/* BUTTON = TRUE */
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BGA;
border-radius: 10px;
width: 110px;
x-offset: -1%;
y-offset: 0;
}
prompt {
enabled: true;
margin: 0px 0px 0px 8px;
padding: 8px;
background-color: @BG;
text-color: @FG;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
}
textbox-prompt-colon {
expand: false;
str: "";
border-radius: 100%;
background-color: @BG;
text-color: @BG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "Search...";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 5;
spacing: 15px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 10px;
padding: 20px;
}
element-icon {
background-color: inherit;
text-color: inherit;
horizontal-align: 0.5;
vertical-align: 0.5;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
font: "feather 20";
expand: true;
horizontal-align: 0.5;
vertical-align: 0.5;
margin: 0px 0px 0px 0px;
}
element selected {
background-color: @BGA;
text-color: @SEL;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element.active,
element.selected.urgent {
background-color: @ON;
text-color: @BG;
border-color: @ON;
}
element.selected.urgent {
border-color: @BDR;
}
element.urgent,
element.selected.active {
background-color: @OFF;
text-color: @BG;
border-color: @OFF;
}
element.selected.active {
border-color: @BDR;
}

View File

@@ -0,0 +1,147 @@
configuration {
show-icons: false;
display-run: "";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 350px;
location: center;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
padding: 8px;
background-color: @BG;
text-color: @IMG;
}
textbox-prompt-colon {
expand: false;
str: "ﲵ";
border-radius: 100%;
background-color: @BG;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "Run...";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon, prompt, entry ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 5;
spacing: 4px;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 4px;
padding: 6px 6px 6px 6px;
}
element-icon {
background-color: inherit;
text-color: inherit;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 2px 0px 2px 2px;
}
element normal.urgent,
element alternate.urgent {
background-color: @UGT;
text-color: @FG;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @BGA;
text-color: @FG;
}
element selected {
background-color: @BGA;
text-color: @SEL;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element selected.urgent {
background-color: @UGT;
text-color: @FG;
}
element selected.active {
background-color: @BGA;
color: @FG;
}

View File

@@ -0,0 +1,153 @@
configuration {
show-icons: false;
display-drun: "";
drun-display-format: "{icon} {name}";
disable-history: false;
click-to-exit: true;
location: 0;
}
@import "font.rasi"
@import "colors.rasi"
/* Line Responsible For Button Layouts */
/* BUTTON = FALSE */
window {
transparency: "real";
background-color: @BG;
text-color: @FG;
border: 2px;
border-color: @BDR;
border-radius: 10px;
width: 300px;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
margin: 0px 0px 0px 8px;
padding: 8px;
background-color: @BG;
text-color: @FG;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
}
textbox-prompt-colon {
expand: false;
str: "";
border-radius: 100%;
background-color: @BG;
text-color: @FG;
padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10";
}
entry {
background-color: @BG;
text-color: @FG;
placeholder-color: @FG;
expand: true;
horizontal-align: 0;
placeholder: "Search...";
blink: true;
border: 0px 0px 2px 0px;
border-color: @BDR;
border-radius: 10px;
padding: 8px;
}
inputbar {
children: [ textbox-prompt-colon, prompt ];
background-color: @BG;
text-color: @FG;
expand: false;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @BDR;
margin: 0px 0px 0px 0px;
padding: 0px;
position: center;
}
case-indicator {
background-color: @BG;
text-color: @FG;
spacing: 0;
}
listview {
background-color: @BG;
columns: 1;
lines: 5;
spacing: 4px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @BG;
children: [ inputbar, listview ];
spacing: 15px;
padding: 15px;
}
element {
background-color: @BG;
text-color: @FG;
orientation: horizontal;
border-radius: 10px;
padding: 6px 6px 6px 6px;
}
element-icon {
background-color: inherit;
text-color: inherit;
size: 0px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 2px 0px 2px 6px;
}
element selected {
background-color: @BGA;
text-color: @SEL;
border: 0px 0px 0px 0px;
border-radius: 10px;
border-color: @BDR;
}
element.active,
element.selected.urgent {
background-color: @ON;
text-color: @BG;
border-color: @ON;
}
element.selected.urgent {
border-color: @BDR;
}
element.urgent,
element.selected.active {
background-color: @OFF;
text-color: @BG;
border-color: @OFF;
}
element.selected.active {
border-color: @BDR;
}

View File

@@ -38,8 +38,7 @@ bindsym $mod+Return exec kitty
bindsym $mod+Shift+q kill
# start program launcher
bindsym $mod+d exec --no-startup-id "rofi -show drun -modes drun,window,filebrowser"
bindsym $mod+Shift+d exec --no-startup-id "rofi -show filebrowser -modes filebrowser,window"
bindsym $mod+d exec --no-startup-id "sh $HOME/.config/rofi/bin/launcher"
# launch categorized menu
bindsym $mod+z exec --no-startup-id morc_menu