Added UI configs
Added Rofi Config Added Tint2 Config Added eww Config Updated Xmonad config for ui panels Added auth loader for zsh Added window corner radius to picom
parent
4df25f8223
commit
857aa26499
@ -0,0 +1,405 @@
|
||||
#+TITLE: Rofi Configuration
|
||||
|
||||
* Main Configuration
|
||||
#+begin_src js :tangle ~/.config/rofi/config.rasi :mkdirp yes
|
||||
configuration {
|
||||
show-icons: true;
|
||||
icon-theme: "candy-icons";
|
||||
}
|
||||
#+end_src
|
||||
|
||||
* Launcher
|
||||
** Black Launcher
|
||||
#+begin_src css :tangle ~/.config/rofi/launcher/black_launcher.rasi :mkdirp yes
|
||||
* {
|
||||
al: #00000000;
|
||||
bg: #010101ff;
|
||||
se: #ffd5cdff;
|
||||
fg: #444;
|
||||
ac: #BA68C8ff;
|
||||
red: #EC7875ff;
|
||||
green: #61C766ff;
|
||||
yellow: #FDD835ff;
|
||||
blue: #42A5F5ff;
|
||||
purple: #BA68C8ff;
|
||||
cyan: #4DD0E1ff;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
** Style
|
||||
#+begin_src css :tangle ~/.config/rofi/launcher/style.rasi :mkdirp yes
|
||||
configuration {
|
||||
lines: 10;
|
||||
columns: 1;
|
||||
font: "Museo Sans 12";
|
||||
bw: 0;
|
||||
location: 0;
|
||||
padding: 0;
|
||||
fixed-num-lines: true;
|
||||
show-icons: true;
|
||||
icon-theme: "candy-icons";
|
||||
sidebar-mode: true;
|
||||
separator-style: "none";
|
||||
hide-scrollbar: true;
|
||||
fullscreen: false;
|
||||
fake-transparency: false;
|
||||
scroll-method: 0;
|
||||
window-format: "[{w}] ··· {c} ··· {t}";
|
||||
click-to-exit: true;
|
||||
show-match: false;
|
||||
combi-hide-mode-prefix: false;
|
||||
display-window: " ";
|
||||
display-windowcd: " ";
|
||||
display-run: " ";
|
||||
display-ssh: " ";
|
||||
display-drun: " ";
|
||||
display-combi: " ";
|
||||
}
|
||||
|
||||
@import "black_launcher.rasi"
|
||||
|
||||
* {
|
||||
background-color: @bg;
|
||||
}
|
||||
|
||||
window {
|
||||
border: 0px;
|
||||
border-color: @ac;
|
||||
border-radius: 12px;
|
||||
padding: 30;
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
prompt {
|
||||
spacing: 0;
|
||||
border: 0;
|
||||
text-color: @fg;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: " ";
|
||||
margin: 0px 4px 0px 0px;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
entry {
|
||||
spacing: 0;
|
||||
text-color: @fg;
|
||||
}
|
||||
|
||||
case-indicator {
|
||||
spacing: 0;
|
||||
text-color: @fg;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
spacing: 0px;
|
||||
text-color: @fg;
|
||||
padding: 1px;
|
||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border: 0px;
|
||||
border-color: @ac;
|
||||
padding: 6;
|
||||
}
|
||||
|
||||
listview {
|
||||
fixed-height: 0;
|
||||
border: 0px;
|
||||
border-color: @ac;
|
||||
spacing: 4px;
|
||||
scrollbar: false;
|
||||
padding: 5px 5px 0px 5px;
|
||||
}
|
||||
|
||||
element {
|
||||
border: 0px;
|
||||
border-radius: 4px;
|
||||
padding: 5px;
|
||||
}
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
element normal.normal {
|
||||
background-color: @bg;
|
||||
text-color: @fg;
|
||||
}
|
||||
element normal.urgent {
|
||||
background-color: @bg;
|
||||
text-color: @red;
|
||||
}
|
||||
element normal.active {
|
||||
background-color: @green;
|
||||
text-color: @bg;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @fg;
|
||||
text-color: @bg;
|
||||
}
|
||||
element selected.urgent {
|
||||
background-color: @bg;
|
||||
text-color: @red;
|
||||
}
|
||||
element selected.active {
|
||||
background-color: @fg;
|
||||
text-color: @bg;
|
||||
}
|
||||
element alternate.normal {
|
||||
background-color: @bg;
|
||||
text-color: @fg;
|
||||
}
|
||||
element alternate.urgent {
|
||||
background-color: @bg;
|
||||
text-color: @fg;
|
||||
}
|
||||
element alternate.active {
|
||||
background-color: @bg;
|
||||
text-color: @fg;
|
||||
}
|
||||
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
sidebar {
|
||||
border: 0px;
|
||||
border-color: @ac;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: @fg;
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
text-color: @bg;
|
||||
border: 0px;
|
||||
border-radius: 4px;
|
||||
border-color: @fg;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @ac;
|
||||
text-color: @fg;
|
||||
border: 0px;
|
||||
border-radius: 4px;
|
||||
border-color: @fg;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
width: 4px;
|
||||
border: 0px;
|
||||
handle-color: @fg;
|
||||
handle-width: 8px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
message {
|
||||
border: 0px;
|
||||
border-color: @ac;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: @fg;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
|
||||
|
||||
* Power Menu
|
||||
** Black powermenu
|
||||
|
||||
#+begin_src js :tangle ~/.config/rofi/powermenu/black_powermenu.rasi :mkdirp yes
|
||||
* {
|
||||
background-alt: #121212ff;
|
||||
background: #121212ff;
|
||||
selected: #ffd5cdff;
|
||||
foreground: #eeeeeeff;
|
||||
ac: #ea907aff;
|
||||
red: #D35D6Eff;
|
||||
green: #90c861ff;
|
||||
yellow: #FDD835ff;
|
||||
blue: #84afdbff;
|
||||
purple: #c47eb7ff;
|
||||
cyan: #4DD0E1ff;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
* Card Circle
|
||||
#+begin_src js :tangle ~/.config/rofi/powermenu/card_circle.rasi :mkdirp yes
|
||||
configuration {
|
||||
font: "Museo Sans 18";
|
||||
show-icons: false;
|
||||
icon-theme: "Papirus";
|
||||
drun-display-format: "{name}";
|
||||
disable-history: false;
|
||||
fullscreen: false;
|
||||
hide-scrollbar: true;
|
||||
sidebar-mode: false;
|
||||
}
|
||||
|
||||
@import "black_powermenu.rasi"
|
||||
|
||||
window {
|
||||
transparency: "real";
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
border-radius: 12px;
|
||||
height: 22%;
|
||||
width: 37%;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: false;
|
||||
padding: 0.5% 0.5% 0.5% 0%;
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: true;
|
||||
str: "Goodbye, Axarva";
|
||||
background-color: @background;
|
||||
text-color: @selected;
|
||||
padding: 3% 0.5% 0% 0%;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ textbox-prompt-colon ];
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
expand: false;
|
||||
border: 0% 0.2% 0.2% 0%;
|
||||
border-radius: 0% 100% 100% 100%;
|
||||
border-color: @border;
|
||||
margin: 0% 3% 0% 9.5%;
|
||||
padding: 0.5%;
|
||||
position: center;
|
||||
}
|
||||
|
||||
listview {
|
||||
background-color: @background;
|
||||
margin: 0% 0% 0% 0%;
|
||||
spacing: 1%;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: horizontal;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @background;
|
||||
children: [ inputbar, listview ];
|
||||
spacing: 1.5%;
|
||||
padding: 0.1% 0% 0% 2%;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: @background-alt;
|
||||
text-color: @selected;
|
||||
orientation: horizontal;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
expand: true;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
margin: 2.5% 1.7% 2.5% 1.7%;
|
||||
}
|
||||
|
||||
element normal.urgent,
|
||||
element alternate.urgent {
|
||||
background-color: @urgent;
|
||||
text-color: @foreground;
|
||||
border-radius: 0.2%;
|
||||
}
|
||||
|
||||
element normal.active,
|
||||
element alternate.active {
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @background;
|
||||
text-color: @red;
|
||||
border: 0% 0.2% 0.2% 0%;
|
||||
border-radius: 100%;
|
||||
border-color: @border;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @urgent;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @background-alt;
|
||||
color: @foreground;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
* Confirm
|
||||
#+begin_src js :tangle ~/.config/rofi/powermenu/confirm.rasi :mkdirp yes
|
||||
@import "black_powermenu.rasi"
|
||||
* {
|
||||
background-color: @background;
|
||||
text-color: @selected;
|
||||
font: "Museo Sans 12";
|
||||
}
|
||||
|
||||
window {
|
||||
width: 225px;
|
||||
padding: 25px;
|
||||
border: 1px;
|
||||
border-radius: 12px;
|
||||
border-color: @border;
|
||||
location: center;
|
||||
y-offset: -2em;
|
||||
}
|
||||
|
||||
entry {
|
||||
expand: true;
|
||||
text-color: @border;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
* Message
|
||||
#+begin_src js :tangle ~/.config/rofi/powermenu/message.rasi :mkdirp yes
|
||||
@import "black_powermenu.rasi"
|
||||
* {
|
||||
background-color: @background;
|
||||
text-color: @selected;
|
||||
font: "Museo Sans 12";
|
||||
}
|
||||
|
||||
window {
|
||||
width: 360px;
|
||||
padding: 25px;
|
||||
border: 1px;
|
||||
border-radius: 12px;
|
||||
border-color: @border;
|
||||
location: center;
|
||||
y-offset: -2em;
|
||||
}
|
||||
|
||||
entry {
|
||||
expand: true;
|
||||
text-color: @border;
|
||||
}
|
||||
#+end_src
|
@ -0,0 +1,125 @@
|
||||
* Send to Remarkable
|
||||
Sends a PDF or EPUB to a Remarkble. Remarkable must be configured in ssh_config as "remarkable"
|
||||
#+begin_src sh :tangle ~/.local/bin/toremarkable :mkdirp yes :shebang #!/bin/bash
|
||||
REMARKABLE_HOST=${REMARKABLE_HOST:-remarkable}
|
||||
REMARKABLE_XOCHITL_DIR=${REMARKABLE_XOCHITL_DIR:-.local/share/remarkable/xochitl/}
|
||||
TARGET_DIR="${REMARKABLE_HOST}:${REMARKABLE_XOCHITL_DIR}"
|
||||
|
||||
# Check if we have something to do
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Transfer PDF or EPUB document(s) to a reMarkable tablet."
|
||||
echo "See comments/documentation at start of script."
|
||||
echo "usage: $(basename $0) [ -r ] path-to-file [path-to-file]..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RESTART_XOCHITL_DEFAULT=${RESTART_XOCHITL_DEFAULT:-0}
|
||||
RESTART_XOCHITL=${RESTART_XOCHITL_DEFAULT}
|
||||
if [ "$1" = "-r" ] ; then
|
||||
shift
|
||||
if [ $RESTART_XOCHITL_DEFAULT -eq 0 ] ; then
|
||||
echo Switching
|
||||
RESTART_XOCHITL=1
|
||||
else
|
||||
RESTART_XOCHITL=0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create directory where we prepare the files as the reMarkable expects them
|
||||
tmpdir=$(mktemp -d)
|
||||
|
||||
# Loop over the command line arguments,
|
||||
# which we expect are paths to the files to be transferred
|
||||
for filename in "$@" ; do
|
||||
|
||||
# reMarkable documents appear to be identified by universally unique IDs (UUID),
|
||||
# so we generate one for the document at hand
|
||||
uuid=$(uuidgen | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
extension="${filename##*.}"
|
||||
|
||||
# Copy the file itself
|
||||
cp -- "$filename" "${tmpdir}/${uuid}.${extension}"
|
||||
|
||||
# Add metadata
|
||||
# The lastModified item appears to contain the date in milliseconds since Epoch
|
||||
cat <<EOF >>${tmpdir}/${uuid}.metadata
|
||||
{
|
||||
"deleted": false,
|
||||
"lastModified": "$(date +%s)000",
|
||||
"metadatamodified": false,
|
||||
"modified": false,
|
||||
"parent": "",
|
||||
"pinned": false,
|
||||
"synced": false,
|
||||
"type": "DocumentType",
|
||||
"version": 1,
|
||||
"visibleName": "$(basename -- "$filename" ".$extension")"
|
||||
}
|
||||
EOF
|
||||
|
||||
if [ "$extension" = "pdf" ]; then
|
||||
# Add content information
|
||||
cat <<EOF >${tmpdir}/${uuid}.content
|
||||
{
|
||||
"extraMetadata": {
|
||||
},
|
||||
"fileType": "pdf",
|
||||
"fontName": "",
|
||||
"lastOpenedPage": 0,
|
||||
"lineHeight": -1,
|
||||
"margins": 100,
|
||||
"pageCount": 1,
|
||||
"textScale": 1,
|
||||
"transform": {
|
||||
"m11": 1,
|
||||
"m12": 1,
|
||||
"m13": 1,
|
||||
"m21": 1,
|
||||
"m22": 1,
|
||||
"m23": 1,
|
||||
"m31": 1,
|
||||
"m32": 1,
|
||||
"m33": 1
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
# Add cache directory
|
||||
mkdir ${tmpdir}/${uuid}.cache
|
||||
|
||||
# Add highlights directory
|
||||
mkdir ${tmpdir}/${uuid}.highlights
|
||||
|
||||
# Add thumbnails directory
|
||||
mkdir ${tmpdir}/${uuid}.thumbnails
|
||||
|
||||
elif [ "$extension" = "epub" ]; then
|
||||
|
||||
# Add content information
|
||||
cat <<EOF >${tmpdir}/${uuid}.content
|
||||
{
|
||||
"fileType": "epub"
|
||||
}
|
||||
EOF
|
||||
|
||||
else
|
||||
echo "Unknown extension: $extension, skipping $filename"
|
||||
rm -rf ${tmpdir}/*
|
||||
continue
|
||||
fi
|
||||
|
||||
# Transfer files
|
||||
echo "Transferring $filename as $uuid"
|
||||
scp -r ${tmpdir}/* "${TARGET_DIR}"
|
||||
rm -rf ${tmpdir}/*
|
||||
done
|
||||
|
||||
rm -rf ${tmpdir}
|
||||
|
||||
if [ $RESTART_XOCHITL -eq 1 ] ; then
|
||||
echo "Restarting Xochitl..."
|
||||
ssh ${REMARKABLE_HOST} "systemctl restart xochitl"
|
||||
echo "Done."
|
||||
fi
|
||||
#+end_src
|
Loading…
Reference in New Issue