Customize Rofi config (Launcher, PowerMenu)
This commit is contained in:
parent
f488d56e4e
commit
20d43f9706
24 changed files with 138 additions and 179 deletions
0
rofi/bluetooth/bluetooth.sh
Normal file → Executable file
0
rofi/bluetooth/bluetooth.sh
Normal file → Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
rofi/clipboard/clipboard.rasi
Normal file → Executable file
0
rofi/clipboard/clipboard.rasi
Normal file → Executable file
0
rofi/clipboard/confirmation.rasi
Normal file → Executable file
0
rofi/clipboard/confirmation.rasi
Normal file → Executable file
0
rofi/clipboard/style.rasi
Normal file → Executable file
0
rofi/clipboard/style.rasi
Normal file → Executable file
Binary file not shown.
29
rofi/launcher/style.rasi
Normal file → Executable file
29
rofi/launcher/style.rasi
Normal file → Executable file
|
@ -28,13 +28,13 @@ window {
|
|||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 500px;
|
||||
width: 400px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
@ -60,18 +60,18 @@ listbox {
|
|||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 8px;
|
||||
padding: 32px 32px 0px 32px;
|
||||
padding: 16px 16px 0px 16px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
orientation: horizontal;
|
||||
children: [ "textbox-prompt-colon", "entry", "dummy", "mode-switcher" ];
|
||||
children: [ "textbox-prompt-colon", "entry"];
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
str: "Search";
|
||||
padding: 12px 20px 12px 15px;
|
||||
border-radius: 100%;
|
||||
border-radius: 4px;
|
||||
background-color: #a6e3a1;
|
||||
text-color: @background;
|
||||
}
|
||||
|
@ -80,11 +80,10 @@ entry {
|
|||
expand: false;
|
||||
width: 200px;
|
||||
padding: 12px 16px 8px 16px;
|
||||
border-radius: 100%;
|
||||
background-color: @background-alt;
|
||||
border-radius: 4px;
|
||||
background-color: @background;
|
||||
text-color: inherit;
|
||||
cursor: text;
|
||||
placeholder: "Search";
|
||||
placeholder-color: inherit;
|
||||
}
|
||||
dummy {
|
||||
|
@ -101,8 +100,8 @@ mode-switcher{
|
|||
}
|
||||
button {
|
||||
padding: 12px 22px 12px 16px;
|
||||
border-radius: 100%;
|
||||
background-color: @background-alt;
|
||||
border-radius: 4px;
|
||||
background-color: @background;
|
||||
text-color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -126,8 +125,8 @@ listview {
|
|||
fixed-columns: true;
|
||||
|
||||
spacing: 8px;
|
||||
margin: 32px 24px;
|
||||
border-radius: 8px;
|
||||
margin: 16px 12px;
|
||||
border-radius: 4px;
|
||||
background-color: #1e1e2e;
|
||||
text-color: @foreground;
|
||||
cursor: "default";
|
||||
|
@ -138,7 +137,7 @@ element {
|
|||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
|
@ -169,7 +168,7 @@ message {
|
|||
textbox {
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
background-color: @background-alt;
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 43 KiB |
72
rofi/powermenu/confirmation.rasi
Normal file → Executable file
72
rofi/powermenu/confirmation.rasi
Normal file → Executable file
|
@ -5,11 +5,12 @@ configuration {
|
|||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrainsMono Nerd Font Mono Bold 12";
|
||||
background: #11111b;
|
||||
selected: #cba6f7;
|
||||
active: #716251;
|
||||
urgent: #934A1C;
|
||||
font: "JetBrainsMono Nerd Font Mono 12";
|
||||
background: #11111b;
|
||||
foreground: #cdd6f4;
|
||||
selected: #cba6f7;
|
||||
active: #f5e0dc;
|
||||
urgent: #f38ba8;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -22,13 +23,13 @@ window {
|
|||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 350px;
|
||||
width: 200px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
|
@ -44,14 +45,14 @@ mainbox {
|
|||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
children: [ "message", "listview" ];
|
||||
children: [ "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 2;
|
||||
lines: 1;
|
||||
columns: 1;
|
||||
lines: 2;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
|
@ -59,9 +60,9 @@ listview {
|
|||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
|
||||
spacing: 16px;
|
||||
padding: 32px;
|
||||
padding: 16px;
|
||||
margin: 0px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
|
@ -69,36 +70,23 @@ listview {
|
|||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 17px;
|
||||
border-radius: 16px;
|
||||
background-color: #585b70;
|
||||
text-color: #eff1f5;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "Font Awesome 5 Free Bold 24";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: #8839ef;
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
background-color: #313244;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
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;
|
||||
element-text {
|
||||
font: "JetBrainsMono Nerd Font Mono 12";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5; /* Left align */
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: #cba6f7;
|
||||
text-color: #11111b;
|
||||
}
|
|
@ -7,15 +7,24 @@ theme='style'
|
|||
# CMDs
|
||||
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
|
||||
hibernate=''
|
||||
shutdown=''
|
||||
reboot='⟳'
|
||||
lock=''
|
||||
suspend=''
|
||||
logout=''
|
||||
yes=''
|
||||
no=''
|
||||
hibernate='Hibernate'
|
||||
shutdown='Shutdown'
|
||||
reboot='Reboot'
|
||||
lock='Lock'
|
||||
suspend='Suspend'
|
||||
logout='Logout'
|
||||
yes='yes'
|
||||
no='no'
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
|
|
172
rofi/powermenu/style.rasi
Normal file → Executable file
172
rofi/powermenu/style.rasi
Normal file → Executable file
|
@ -1,130 +1,112 @@
|
|||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrainsMono Nerd Font Mono Bold 12";
|
||||
background: #11111b;
|
||||
background-alt: #f2cdcd;
|
||||
foreground: #FFFFFF;
|
||||
selected: #cba6f7;
|
||||
active: #716251;
|
||||
urgent: #934A1C;
|
||||
font: "JetBrainsMono Nerd Font Mono 12";
|
||||
background: #11111b;
|
||||
foreground: #cdd6f4;
|
||||
selected: #cba6f7;
|
||||
active: #f5e0dc;
|
||||
urgent: #f38ba8;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_BUTTONS=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 600px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 300px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 8px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
enabled: true;
|
||||
spacing: 2px;
|
||||
margin: 4px;
|
||||
padding: 2px;
|
||||
background-color: @background;
|
||||
children: [ "listview" ];
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 102px 32px 80px 32px;
|
||||
border-radius: 0%;
|
||||
background-color: transparent;
|
||||
background-image: url("~/Downloads/wallpaper/Anime.png",width);
|
||||
children: ["dummy", "prompt"];
|
||||
enabled: true;
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
children: ["dummy", "prompt"];
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
background-color: #a6e3a1;
|
||||
text-color: #313244;
|
||||
}
|
||||
|
||||
dummy {
|
||||
background-color: transparent;
|
||||
enabled: true;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
background-color: #a6e3a1;
|
||||
text-color: #313244;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 16px;
|
||||
padding: 32px;
|
||||
margin: 0px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 4px;
|
||||
padding: 4px;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
/*****----- Elements (Text Instead of Icons) -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 17px;
|
||||
border-radius: 16px;
|
||||
background-color: #585b70;
|
||||
text-color: #eff1f5;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "Font Awesome 5 Free Bold 24";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: #cba6f7;
|
||||
text-color: #313244;
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 2px;
|
||||
background-color: #313244;
|
||||
text-color: #cdd6f4;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
element selected.normal {
|
||||
background-color: #cba6f7;
|
||||
text-color: #1e1e2e;
|
||||
}
|
||||
|
||||
element-text {
|
||||
font: "JetBrainsMono Nerd Font Mono 9";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
/*****----- Message Box -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 20px 150px 0px 150px;
|
||||
padding: 10px 20px;
|
||||
border-radius: 100%;
|
||||
background-color: #f5c2e7;
|
||||
enabled: true;
|
||||
margin: 2px;
|
||||
padding: 4px;
|
||||
border-radius: 2px;
|
||||
background-color: #f5e0dc;
|
||||
text-color: #1e1e2e;
|
||||
}
|
||||
|
||||
textbox {
|
||||
background-color: transparent;
|
||||
text-color: #313244;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
|
0
rofi/search/search.sh
Normal file → Executable file
0
rofi/search/search.sh
Normal file → Executable file
0
rofi/search/style.rasi
Normal file → Executable file
0
rofi/search/style.rasi
Normal file → Executable file
Binary file not shown.
0
rofi/wifi/enable.rasi
Normal file → Executable file
0
rofi/wifi/enable.rasi
Normal file → Executable file
0
rofi/wifi/list.rasi
Normal file → Executable file
0
rofi/wifi/list.rasi
Normal file → Executable file
0
rofi/wifi/password.rasi
Normal file → Executable file
0
rofi/wifi/password.rasi
Normal file → Executable file
0
rofi/wifi/ssid.rasi
Normal file → Executable file
0
rofi/wifi/ssid.rasi
Normal file → Executable file
0
rofi/wifi/wifi.sh
Normal file → Executable file
0
rofi/wifi/wifi.sh
Normal file → Executable file
Binary file not shown.
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue