Added Rofi

This commit is contained in:
HeCodes2Much 2024-08-20 18:24:57 +01:00
parent 4253de8f65
commit 9d396c7796
No known key found for this signature in database
GPG Key ID: 772B2F0F09B01DBE
8 changed files with 740 additions and 0 deletions

10
.config/rofi/config.rasi Normal file
View File

@ -0,0 +1,10 @@
configuration {
modi: "combi,drun,filebrowser,keys,window,run,ssh";
font: "Hack Nerd Font 12";
combi-modi: "window,ssh";
}
@theme "repomenu"
listview {
lines: 20;
columns: 1;
}

View File

@ -0,0 +1,39 @@
# Linux
UCVls1GmFKf6WlTraIb_IaJg # DistroTube
UC2eYFnH61tmytImy1mTYvhA # Luke Smith
UCld68syR8Wi-GY_n4CaoJGA # Brodie Robertson
UCg6gPGh8HU2U01vaFCAsvmQ # Chris Titus Tech
UCCIHOP7e271SIumQgyl6XBQ # OldTechBloke
UCJdmdUp5BrsWsYVQUylCMLg # Erik Dubois
UCdGFLV7h9RGeTUX7wa5rqGw # Manjaro Linux
UCoryWpk4QVYKFCJul9KBdyw # Switched to Linux
UC5UAwBUum7CPN5buc-_N1Fw # The Linux Experiment
UCX_WM2O-X96URC5n66G-hvw # EF Linux
UCZiL6BoryLWxyapUuVYW27g # Average Linux User
UCylGUf9BvQooEFjgdNudoQg # The Linux Cast
UC8ENHE5xdFSwx71u3fDH5Xw # ThePrimeagen
UCRE3NFNtdjR96-H4QG4U1Fg # HexDSL
# UCfp-lNJy4QkIGnaEE6NtDSg # Terminal For Life
UCmw-QGOHbHA5cDAvwwqUTKQ # Zaney
#Minecraft
UChFur_NwVSbUozOcF_F2kMg # MumboJumbo
UC_GQ4mac4oN3wl1UdbFuTEA # ibxToyCat
UCRlEFn0L2G_DktbyvN0AZ5A # WadZee
UC9mvRrl9o7rG65ABsGVvDBw # Mysticat
UCuMJPFqazQI4SofSFEd-5zA # impulseSV
#Spirit
UC_8fJz5gAnhRqZ740QXlzmw # Jen McCarty
UCAk3t7WHs2zjsZpopox8Taw # Jonna Jinton
#Meditations
UCUSzc8BHGJPaYt0DjvscIzw # Woke Nation
UCM7XCXnxtYJkkMN0zf0tsSw # Meditation And Healing
#Music
UCMvETSFFkMOADyrGBj3gbWA # NerdOut
UCXBcDYUr89ImtOLYaHPiiPg # Marcus Veltri
# Myself
UCuKJ0LqxI8t2a9ATl1rWBGA # Myself

View File

@ -0,0 +1,124 @@
# permanently set alternative root dir. Use ":" to separate multiple roots
# which can be switched at runtime with shift+left/right
# root=/path/to/root
# rofi command. Make sure to have "$@" as last argument
_rofi () {
rofi -i -no-auto-select "$@"
}
# default command to generate passwords
_pwgen () {
pwgen -y "$@"
}
# image viewer to display qrcode of selected entry
# qrencode is needed to generate the image and a viewer
# that can read from pipes. Known viewers to work are feh and display
_image_viewer () {
feh -
# display
}
# It is possible to use wl-copy and wl-paste from wl-clipboard
# Just uncomment the lines with wl-copy and wl-paste
# and comment the xclip lines
#
_clip_in_primary() {
xclip
# wl-copy-p
}
_clip_in_clipboard() {
xclip -selection clipboard
# wl-copy
}
_clip_out_primary() {
xclip -o
# wl-paste -p
}
_clip_out_clipboard() {
xclip --selection clipboard -o
# wl-paste
}
# xdotool needs the keyboard layout to be set using setxkbmap
# You can do this in your autostart scripts (e.g. xinitrc)
# If for some reason, you cannot do this, you can set the command here.
# and set fix_layout to true
fix_layout=false
layout_cmd () {
setxkbmap us
}
# fields to be used
URL_field='url'
USERNAME_field='user'
AUTOTYPE_field='autotype'
# delay to be used for :delay keyword
delay=2
# rofi-pass needs to close itself before it can type passwords. Set delay here.
wait=0.2
# delay between keypresses when typing (in ms)
xdotool_delay=12
## Programs to be used
# Editor
EDITOR='vim -f'
# Browser
BROWSER='xdg-open'
## Misc settings
default_do='menu' # menu, autotype, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
auto_enter='false'
notify='false'
default_autotype='user :tab pass'
# color of the help messages
# leave empty for autodetection
help_color="#4872FF"
# Clipboard settings
# Possible options: primary, clipboard, both
clip=primary
# Seconds before clearing pass from clipboard
clip_clear=45
## Options for generating new password entries
# open new password entries in editor
edit_new_pass="true"
# default_user is also used for password files that have no user field.
#default_user="${ROFI_PASS_DEFAULT_USER-$(whoami)}"
#default_user2=mary_ann
#password_length=12
# Custom Keybindings
autotype="Alt+1"
type_user="Alt+2"
type_pass="Alt+3"
open_url="Alt+4"
copy_name="Alt+u"
copy_url="Alt+l"
copy_pass="Alt+p"
show="Alt+o"
copy_entry="Alt+2"
type_entry="Alt+1"
copy_menu="Alt+c"
action_menu="Alt+a"
type_menu="Alt+t"
help="Alt+h"
switch="Alt+x"
insert_pass="Alt+n"

View File

@ -0,0 +1,9 @@
configuration {
modi: "powermenu:powermenu";
font: "Hack Nerd Font 12";
}
@theme "powermenu"
listview {
lines: 6;
columns: 1;
}

View File

@ -0,0 +1,183 @@
* {
background: #283036;
foreground: #e5e9f0;
active-background: #434c5e;
active-foreground: @foreground;
normal-background: @background;
normal-foreground: @foreground;
urgent-background: #ff5959;
urgent-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
alternate-normal-background: @background;
alternate-normal-foreground: @foreground;
alternate-urgent-background: @background;
alternate-urgent-foreground: @foreground;
selected-active-background: #81a1c1;
selected-active-foreground: @foreground;
selected-normal-background: #434c5e;
selected-normal-foreground: @foreground;
selected-urgent-background: #ff5959;
selected-urgent-foreground: @foreground;
background-color: @background;
border-color: #59ff59;
spacing: 2;
text-font: "Hack Nerd Font 12";
}
element-text, element-icon {
background-color: inherit;
text-color: inherit;
}
#window {
background-color: @background;
location: 0;
width: 30%;
padding: 2.5ch;
font: @text-font;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 2px 2px 2px;
border-color: @border-color;
padding: 5px;
margin: 0px 0px 8px 0px;
}
#textbox {
text-color: @foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
background-color: @border-color;
padding: 2px;
margin: 0px 0px 10px 0px;
}
#prompt {
spacing: 0;
margin: 2px 6px 2px 6px;
background-color: @border-color;
text-color: @background;
padding: 4px;
}
#textbox-prompt-colon {
expand: false;
str: "->";
text-color: @active-foreground;
padding: 5px;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
padding: 5px;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#listview {
fixed-height: 0;
border: 2px 2px 2px 2px;
border-color: @border-color;
scrollbar: false;
padding: 5px;
}
#scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px 0px 0px;
border-color: @border-color;
}
#mode-switcher {
border: 2px 0px 0px ;
border-color: @border-color;
}
#button {
text-color: @normal-foreground;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 2px ;
}
#element {
border: 0;
padding: 6px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}

View File

@ -0,0 +1,183 @@
* {
background: #283036;
foreground: #e5e9f0;
active-background: #434c5e;
active-foreground: @foreground;
normal-background: @background;
normal-foreground: @foreground;
urgent-background: #ff5959;
urgent-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
alternate-normal-background: @background;
alternate-normal-foreground: @foreground;
alternate-urgent-background: @background;
alternate-urgent-foreground: @foreground;
selected-active-background: #81a1c1;
selected-active-foreground: @foreground;
selected-normal-background: #434c5e;
selected-normal-foreground: @foreground;
selected-urgent-background: #ff5959;
selected-urgent-foreground: @foreground;
background-color: @background;
border-color: #59ff59;
spacing: 2;
text-font: "Hack Nerd Font 12";
}
element-text, element-icon {
background-color: inherit;
text-color: inherit;
}
#window {
background-color: @background;
location: 0;
width: 50%;
padding: 2.5ch;
font: @text-font;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 2px 2px 2px;
border-color: @border-color;
padding: 5px;
margin: 0px 0px 8px 0px;
}
#textbox {
text-color: @foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
background-color: @border-color;
padding: 2px;
margin: 0px 0px 10px 0px;
}
#prompt {
spacing: 0;
margin: 2px 6px 2px 6px;
background-color: @border-color;
text-color: @background;
padding: 4px;
}
#textbox-prompt-colon {
expand: false;
str: "->";
text-color: @active-foreground;
padding: 5px;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
padding: 5px;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#listview {
fixed-height: 0;
border: 2px 2px 2px 2px;
border-color: @border-color;
scrollbar: false;
padding: 5px;
}
#scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px 0px 0px;
border-color: @border-color;
}
#mode-switcher {
border: 2px 0px 0px ;
border-color: @border-color;
}
#button {
text-color: @normal-foreground;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 2px ;
}
#element {
border: 0;
padding: 6px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}

View File

@ -0,0 +1,183 @@
* {
background: #283036;
foreground: #e5e9f0;
active-background: #434c5e;
active-foreground: @foreground;
normal-background: @background;
normal-foreground: @foreground;
urgent-background: #ff5959;
urgent-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
alternate-normal-background: @background;
alternate-normal-foreground: @foreground;
alternate-urgent-background: @background;
alternate-urgent-foreground: @foreground;
selected-active-background: #81a1c1;
selected-active-foreground: @foreground;
selected-normal-background: #434c5e;
selected-normal-foreground: @foreground;
selected-urgent-background: #ff5959;
selected-urgent-foreground: @foreground;
background-color: @background;
border-color: #59ff59;
spacing: 2;
text-font: "Hack Nerd Font 12";
}
element-text, element-icon {
background-color: inherit;
text-color: inherit;
}
#window {
background-color: @background;
location: 0;
width: 50%;
padding: 2.5ch;
font: @text-font;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 2px 2px 2px;
border-color: @border-color;
padding: 5px;
margin: 0px 0px 8px 0px;
}
#textbox {
text-color: @foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
background-color: @border-color;
padding: 2px;
margin: 0px 0px 10px 0px;
}
#prompt {
spacing: 0;
margin: 2px 6px 2px 6px;
background-color: @border-color;
text-color: @background;
padding: 4px;
}
#textbox-prompt-colon {
expand: false;
str: "->";
text-color: @active-foreground;
padding: 5px;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
padding: 5px;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#listview {
fixed-height: 0;
border: 2px 2px 2px 2px;
border-color: @border-color;
scrollbar: false;
padding: 5px;
}
#scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px 0px 0px;
border-color: @border-color;
}
#mode-switcher {
border: 2px 0px 0px ;
border-color: @border-color;
}
#button {
text-color: @normal-foreground;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 2px ;
}
#element {
border: 0;
padding: 6px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}

View File

@ -0,0 +1,9 @@
configuration {
modi: "wifimanager:wifimanager";
font: "Hack Nerd Font 12";
}
@theme "wifimanager"
listview {
lines: 6;
columns: 1;
}