Customize Rofi config (Launcher, PowerMenu)

This commit is contained in:
ayushDumasia 2025-03-07 08:22:06 +05:30
parent f488d56e4e
commit 20d43f9706
24 changed files with 138 additions and 179 deletions

0
rofi/bluetooth/bluetooth.sh Normal file → Executable file
View file

0
rofi/clipboard/clipboard.rasi Normal file → Executable file
View file

0
rofi/clipboard/confirmation.rasi Normal file → Executable file
View file

0
rofi/clipboard/style.rasi Normal file → Executable file
View file

29
rofi/launcher/style.rasi Normal file → Executable file
View file

@ -28,13 +28,13 @@ window {
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
width: 500px; width: 400px;
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
/* properties for all widgets */ /* properties for all widgets */
enabled: true; enabled: true;
border-radius: 8px; border-radius: 4px;
cursor: "default"; cursor: "default";
background-color: @background; background-color: @background;
} }
@ -60,18 +60,18 @@ listbox {
inputbar { inputbar {
enabled: true; enabled: true;
spacing: 8px; spacing: 8px;
padding: 32px 32px 0px 32px; padding: 16px 16px 0px 16px;
background-color: transparent; background-color: transparent;
text-color: @foreground; text-color: @foreground;
orientation: horizontal; orientation: horizontal;
children: [ "textbox-prompt-colon", "entry", "dummy", "mode-switcher" ]; children: [ "textbox-prompt-colon", "entry"];
} }
textbox-prompt-colon { textbox-prompt-colon {
enabled: true; enabled: true;
expand: false; expand: false;
str: ""; str: "Search";
padding: 12px 20px 12px 15px; padding: 12px 20px 12px 15px;
border-radius: 100%; border-radius: 4px;
background-color: #a6e3a1; background-color: #a6e3a1;
text-color: @background; text-color: @background;
} }
@ -80,11 +80,10 @@ entry {
expand: false; expand: false;
width: 200px; width: 200px;
padding: 12px 16px 8px 16px; padding: 12px 16px 8px 16px;
border-radius: 100%; border-radius: 4px;
background-color: @background-alt; background-color: @background;
text-color: inherit; text-color: inherit;
cursor: text; cursor: text;
placeholder: "Search";
placeholder-color: inherit; placeholder-color: inherit;
} }
dummy { dummy {
@ -101,8 +100,8 @@ mode-switcher{
} }
button { button {
padding: 12px 22px 12px 16px; padding: 12px 22px 12px 16px;
border-radius: 100%; border-radius: 4px;
background-color: @background-alt; background-color: @background;
text-color: inherit; text-color: inherit;
cursor: pointer; cursor: pointer;
} }
@ -126,8 +125,8 @@ listview {
fixed-columns: true; fixed-columns: true;
spacing: 8px; spacing: 8px;
margin: 32px 24px; margin: 16px 12px;
border-radius: 8px; border-radius: 4px;
background-color: #1e1e2e; background-color: #1e1e2e;
text-color: @foreground; text-color: @foreground;
cursor: "default"; cursor: "default";
@ -138,7 +137,7 @@ element {
enabled: true; enabled: true;
spacing: 0px; spacing: 0px;
padding: 8px; padding: 8px;
border-radius: 8px; border-radius: 4px;
background-color: transparent; background-color: transparent;
text-color: @foreground; text-color: @foreground;
cursor: pointer; cursor: pointer;
@ -169,7 +168,7 @@ message {
textbox { textbox {
padding: 0px; padding: 0px;
border-radius: 0px; border-radius: 0px;
background-color: @background-alt; background-color: @background;
text-color: @foreground; text-color: @foreground;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.5; horizontal-align: 0.5;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

50
rofi/powermenu/confirmation.rasi Normal file → Executable file
View file

@ -5,11 +5,12 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
* { * {
font: "JetBrainsMono Nerd Font Mono Bold 12"; font: "JetBrainsMono Nerd Font Mono 12";
background: #11111b; background: #11111b;
foreground: #cdd6f4;
selected: #cba6f7; selected: #cba6f7;
active: #716251; active: #f5e0dc;
urgent: #934A1C; urgent: #f38ba8;
} }
/* /*
@ -22,13 +23,13 @@ window {
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
width: 350px; width: 200px;
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 0px solid;
border-radius: 8px; border-radius: 4px;
border-color: @selected; border-color: @selected;
cursor: "default"; cursor: "default";
background-color: @background; background-color: @background;
@ -44,14 +45,14 @@ mainbox {
border-radius: 0px; border-radius: 0px;
border-color: @selected; border-color: @selected;
background-color: transparent; background-color: transparent;
children: [ "message", "listview" ]; children: [ "listview" ];
} }
/*****----- Listview -----*****/ /*****----- Listview -----*****/
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 1;
lines: 1; lines: 2;
cycle: true; cycle: true;
dynamic: true; dynamic: true;
scrollbar: false; scrollbar: false;
@ -61,7 +62,7 @@ listview {
fixed-columns: true; fixed-columns: true;
spacing: 16px; spacing: 16px;
padding: 32px; padding: 16px;
margin: 0px; margin: 0px;
background-color: transparent; background-color: transparent;
cursor: "default"; cursor: "default";
@ -70,35 +71,22 @@ listview {
/*****----- Elements -----*****/ /*****----- Elements -----*****/
element { element {
enabled: true; enabled: true;
padding: 17px; padding: 10px;
border-radius: 16px; border-radius: 4px;
background-color: #585b70; background-color: #313244;
text-color: #eff1f5;
cursor: pointer; cursor: pointer;
} }
element-text { element-text {
font: "Font Awesome 5 Free Bold 24"; font: "JetBrainsMono Nerd Font Mono 12";
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
cursor: inherit; cursor: inherit;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.5; horizontal-align: 0.5; /* Left align */
}
element selected.normal {
background-color: #8839ef;
} }
/*****----- Message -----*****/ element selected.normal {
message { background-color: #cba6f7;
enabled: true; text-color: #11111b;
margin: 0px 25px;
padding: 10px 20px;
border-radius: 0% 0% 100% 100%;
background-color: #f5c2e7;
}
textbox {
background-color: transparent;
text-color: #313244;
vertical-align: 0.5;
horizontal-align: 0.5;
} }

View file

@ -7,15 +7,24 @@ theme='style'
# CMDs # CMDs
uptime="`uptime -p | sed -e 's/up //g' | sed -e 's/hour/hr/g' | sed -e 's/minute/min/g'`" uptime="`uptime -p | sed -e 's/up //g' | sed -e 's/hour/hr/g' | sed -e 's/minute/min/g'`"
# # Options
# hibernate=' hibernate'
# shutdown=' Shutdown'
# reboot='⟳ Reboot'
# lock=' Lock'
# suspend=' Suspend'
# logout=' Logout'
# yes=' Yes'
# no=' No'
# Options # Options
hibernate='' hibernate='Hibernate'
shutdown='' shutdown='Shutdown'
reboot='⟳' reboot='Reboot'
lock='' lock='Lock'
suspend='' suspend='Suspend'
logout='' logout='Logout'
yes='' yes='yes'
no='' no='no'
# Rofi CMD # Rofi CMD
rofi_cmd() { rofi_cmd() {

104
rofi/powermenu/style.rasi Normal file → Executable file
View file

@ -5,78 +5,62 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
* { * {
font: "JetBrainsMono Nerd Font Mono Bold 12"; font: "JetBrainsMono Nerd Font Mono 12";
background: #11111b; background: #11111b;
background-alt: #f2cdcd; foreground: #cdd6f4;
foreground: #FFFFFF;
selected: #cba6f7; selected: #cba6f7;
active: #716251; active: #f5e0dc;
urgent: #934A1C; urgent: #f38ba8;
} }
/*
USE_BUTTONS=YES
*/
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/
window { window {
transparency: "real"; transparency: "real";
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
width: 600px; width: 300px;
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
padding: 0px; padding: 4px;
border: 0px solid; border-radius: 4px;
border-radius: 8px;
border-color: @selected;
cursor: "default";
background-color: @background; background-color: @background;
} }
/*****----- Main Box -----*****/ /*****----- Main Box -----*****/
mainbox { mainbox {
enabled: true; enabled: true;
spacing: 0px; spacing: 2px;
margin: 0px; margin: 4px;
padding: 0px; padding: 2px;
border: 0px solid; background-color: @background;
border-radius: 0px; children: [ "listview" ];
border-color: @selected;
background-color: transparent;
children: [ "inputbar", "message", "listview" ];
} }
/*****----- Inputbar -----*****/ /*****----- Inputbar -----*****/
inputbar { inputbar {
enabled: true; enabled: true;
spacing: 0px; background-color: @background;
padding: 102px 32px 80px 32px; text-color: @foreground;
border-radius: 0%;
background-color: transparent;
background-image: url("~/Downloads/wallpaper/Anime.png",width);
children: ["dummy", "prompt"]; children: ["dummy", "prompt"];
} }
prompt { prompt {
enabled: true; enabled: true;
padding: 8px; padding: 4px;
border-radius: 8px; border-radius: 4px;
background-color: #a6e3a1; background-color: #a6e3a1;
text-color: #313244; text-color: #313244;
} }
dummy {
background-color: transparent;
}
/*****----- Listview -----*****/ /*****----- Listview -----*****/
listview { listview {
enabled: true; enabled: true;
columns: 6; columns: 1;
lines: 1; lines: 6;
cycle: true; cycle: true;
dynamic: true; dynamic: true;
scrollbar: false; scrollbar: false;
@ -85,46 +69,44 @@ listview {
fixed-height: true; fixed-height: true;
fixed-columns: true; fixed-columns: true;
spacing: 16px; spacing: 4px;
padding: 32px; padding: 4px;
margin: 0px; background-color: @background;
background-color: transparent;
cursor: "default";
} }
/*****----- Elements -----*****/ /*****----- Elements (Text Instead of Icons) -----*****/
element { element {
enabled: true; enabled: true;
padding: 17px; padding: 10px;
border-radius: 16px; border-radius: 2px;
background-color: #585b70; background-color: #313244;
text-color: #eff1f5; text-color: #cdd6f4;
cursor: pointer; cursor: pointer;
} }
element selected.normal {
background-color: #cba6f7;
text-color: #1e1e2e;
}
element-text { element-text {
font: "Font Awesome 5 Free Bold 24"; font: "JetBrainsMono Nerd Font Mono 9";
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
cursor: inherit; cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
}
element selected.normal {
background-color: #cba6f7;
text-color: #313244;
} }
/*****----- Message -----*****/ /*****----- Message Box -----*****/
message { message {
enabled: true; enabled: true;
margin: 20px 150px 0px 150px; margin: 2px;
padding: 10px 20px; padding: 4px;
border-radius: 100%; border-radius: 2px;
background-color: #f5c2e7; background-color: #f5e0dc;
text-color: #1e1e2e;
} }
textbox { textbox {
background-color: transparent; background-color: transparent;
text-color: #313244; text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.5;
} }

0
rofi/search/search.sh Normal file → Executable file
View file

0
rofi/search/style.rasi Normal file → Executable file
View file

Binary file not shown.

0
rofi/wifi/enable.rasi Normal file → Executable file
View file

0
rofi/wifi/list.rasi Normal file → Executable file
View file

0
rofi/wifi/password.rasi Normal file → Executable file
View file

0
rofi/wifi/ssid.rasi Normal file → Executable file
View file

0
rofi/wifi/wifi.sh Normal file → Executable file
View file

View file

@ -1,19 +0,0 @@
#!/bin/bash
# Get the clipboard history from xclip
CLIPBOARD_HISTORY=~/clipboard_history.txt
# Save current clipboard content to a file
xclip -o -selection clipboard >> "$CLIPBOARD_HISTORY"
# Remove duplicate entries and keep the last few
awk '!seen[$0]++' "$CLIPBOARD_HISTORY" > "${CLIPBOARD_HISTORY}.tmp" && mv "${CLIPBOARD_HISTORY}.tmp" "$CLIPBOARD_HISTORY"
# Use rofi to select from clipboard history
SELECTED=$(cat "$CLIPBOARD_HISTORY" | rofi -dmenu -p "Clipboard:")
# Copy selected text back to clipboard
if [ -n "$SELECTED" ]; then
echo -n "$SELECTED" | xclip -selection clipboard
fi