Update to Latest
This commit is contained in:
parent
d1bbbcbb15
commit
71d6a8ab3b
157 changed files with 3467 additions and 5151 deletions
BIN
rofi/clipboard/.syncthing.clipboard.rasi.tmp
Normal file
BIN
rofi/clipboard/.syncthing.clipboard.rasi.tmp
Normal file
Binary file not shown.
BIN
rofi/clipboard/.syncthing.confirmation.rasi.tmp
Normal file
BIN
rofi/clipboard/.syncthing.confirmation.rasi.tmp
Normal file
Binary file not shown.
BIN
rofi/clipboard/.syncthing.launcher.sh.tmp
Normal file
BIN
rofi/clipboard/.syncthing.launcher.sh.tmp
Normal file
Binary file not shown.
127
rofi/clipboard/clipboard.rasi
Normal file
127
rofi/clipboard/clipboard.rasi
Normal file
|
@ -0,0 +1,127 @@
|
|||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 12";
|
||||
background: #11111b;
|
||||
background-alt: #313244;
|
||||
foreground: #eff1f5;
|
||||
selected: #cba6f7;
|
||||
active: #6E77FF;
|
||||
urgent: #8E3596;
|
||||
}
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 500px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
border-radius: 8px;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
background-color: transparent;
|
||||
orientation: vertical;
|
||||
children: [ "inputbar", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 28px 24px 0px 24px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
orientation: horizontal;
|
||||
children: [ "textbox-prompt-colon", "dummy", "entry" ];
|
||||
}
|
||||
|
||||
dummy {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
width: 250px;
|
||||
padding: 12px 16px 8px 16px;
|
||||
border-radius: 8px;
|
||||
background-color: @background-alt;
|
||||
text-color: inherit;
|
||||
cursor: text;
|
||||
placeholder: "Search";
|
||||
placeholder-color: inherit;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
font: "Font Awesome 5 Free 14";
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 11px 14px 11px 14px;
|
||||
border-radius: 100%;
|
||||
background-color: #a6e3a1;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 5;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 0px;
|
||||
margin: 32px 24px;
|
||||
border-radius: 8px;
|
||||
background-color: #1e1e2e;
|
||||
text-color: @foreground;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 12px 8px;
|
||||
border-radius: 8px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element.selected {
|
||||
background-color: @selected;
|
||||
text-color: @background;
|
||||
}
|
||||
element-icon {
|
||||
size: 0px;
|
||||
}
|
||||
element-text {
|
||||
padding: 0px 16px;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0;
|
||||
}
|
104
rofi/clipboard/confirmation.rasi
Normal file
104
rofi/clipboard/confirmation.rasi
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrainsMono Nerd Font Mono Bold 12";
|
||||
background: #11111b;
|
||||
selected: #cba6f7;
|
||||
active: #716251;
|
||||
urgent: #934A1C;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_BUTTONS=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 350px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 8px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
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: [ "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 2;
|
||||
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";
|
||||
}
|
||||
|
||||
/*****----- 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;
|
||||
}
|
||||
|
||||
/*****----- 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;
|
||||
}
|
|
@ -1,11 +1,30 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Directory and theme setup
|
||||
dir="$HOME/.config/rofi/clipboard/"
|
||||
theme='style'
|
||||
if [[ -z $(wl-paste) ]]; then
|
||||
dunstify -h string:x-dunst-stack-tag:clip_notif -t 4000 -u critical "Clipboard Manager" "Clipboard is empty"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo ${dir}
|
||||
dir="$HOME/.config/rofi/clipboard"
|
||||
|
||||
## Clipboard Search with Rofi and custom theme
|
||||
cliphist list | awk '{$1=""; print $0}' | rofi -dmenu -i -p "Search" -theme ${dir}/${theme}.rasi | wl-copy
|
||||
choice=$(echo -e "\t\uf1f8 Wipe Clipboard\n$(cliphist list)" | rofi -markup-rows -dmenu -display-columns 2 -theme ${dir}/clipboard.rasi)
|
||||
|
||||
if [[ $choice == *"Wipe Clipboard"* ]]; then
|
||||
yes=''
|
||||
no=''
|
||||
|
||||
confirmation=$(echo -e "<span foreground='#a6e3a1'>$yes</span>\n<span foreground='#f38ba8'>$no</span>" | \
|
||||
rofi -markup-rows -dmenu -p 'Confirmation' -mesg 'Are you Sure?' -theme ${dir}/confirmation.rasi)
|
||||
|
||||
if [[ $confirmation =~ "$yes" ]]; then
|
||||
cliphist wipe
|
||||
wl-copy -c
|
||||
dunstify -h string:x-dunst-stack-tag:clip_notif -t 4000 -u critical "Clipboard Manager" "Clipboard has been wiped"
|
||||
fi
|
||||
exit
|
||||
elif [[ -n $choice ]]; then
|
||||
cliphist decode "$choice" | wl-copy
|
||||
wtype -M ctrl -M shift -P v -s 500 -p v -m shift -m ctrl
|
||||
else
|
||||
exit
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue