This commit is contained in:
Clay Gomera 2022-12-07 23:13:08 -04:00
parent ab393f7cc3
commit eedd491e51
12 changed files with 1948 additions and 1847 deletions

View file

@ -4,7 +4,7 @@ local gears = require("gears")
local awful = require("awful")
local theme = require("ui.theme")
-- Textclock widget
mytextclock = wibox.widget.textclock()
local mytextclock = wibox.widget.textclock()
screen.connect_signal("request::desktop_decoration", function(s)
-- Tag names for each screen
awful.tag(

View file

@ -20,7 +20,7 @@ theme.bar_bg_two = "#e0af68"
theme.bar_bg_tre = "#9ece6a"
theme.bar_bg_for = "#7aa2f7"
theme.bar_bg_fiv = "#bb9af7"
theme.bar_clock = "#9aa5ce"
theme.bar_clock = "#41a6b5"
--- }}}
-- {{{ Colors

View file

@ -13,16 +13,16 @@ for battery in /sys/class/power_supply/BAT?*; do
[ -n "${capacity+x}" ] && printf " "
# Sets up the status and capacity
case "$(cat "$battery/status" 2>&1)" in
"Full") status="" ;;
"Discharging") status="" ;;
"Charging") status="" ;;
"Not charging") status="" ;;
"Unknown") status="" ;;
"Full") status=" " ;;
"Discharging") status="" ;;
"Charging") status=" " ;;
"Not charging") status=" " ;;
"Unknown") status="" ;;
*) exit 1 ;;
esac
capacity="$(cat "$battery/capacity" 2>&1)"
# Will make a warn variable if discharging and low
[ "$status" = "" ] && [ "$capacity" -le 25 ] && warn=""
[ "$status" = " " ] && [ "$capacity" -le 100 ] && warn=""
# Prints the info
printf "%s%s%d%%%s" "$status" "$warn " "$capacity" " $pwr"; unset warn
done && printf "\\n"

View file

@ -1,6 +1,6 @@
#!/bin/bash
# Prints the current volume or 🔇 if muted.
[ $(pamixer --get-mute) = true ] && echo " " && exit
[ "$(pamixer --get-mute)" = true ] && echo " " && exit
vol="$(pamixer --get-volume)"
if [ "$vol" -gt "50" ]; then
icon=""

View file

@ -1,7 +1,103 @@
@theme "/usr/share/rofi/themes/gruvbox-dark-hard.rasi"
configuration{
modi: "run,drun,window";
lines: 5;
font: "mononoki Nerd Font 14";
show-icons: true;
display-window: "Window";
display-drun: "Search";
terminal: "alacritty";
drun-display-format: "{icon} {name}";
location: 0;
disable-history: false;
hide-scrollbar: true;
display-drun: "  Apps ";
display-run: "  Run ";
display-window: " 﩯 Window";
display-Network: " 󰤨 Network";
sidebar-mode: true;
dpi: 100;
}
@theme "tokyonight"
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 380px;
width: 850;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 3px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}

View file

@ -302,7 +302,7 @@ original_args=("$@")
# rofi command to pipe into. Extra arguments to rofi_blue are passed through to rofi. This
# allows the user to set fonts, sizes, colours, etc.
run_rofi() {
rofi -dmenu "${original_args[@]}" -b -l 5 -i -p "$1"
rofi -dmenu "${original_args[@]}" -p "$1"
}
case "$1" in

View file

@ -5,11 +5,11 @@
# - Dependencies: rofi (Everything else can be changed)
# Show list of options
EDITOR="alacritty -e nvim"
EDITOR="emacsclient -c -a emacs"
cd "$HOME" || exit 0
file=1
while [ "$file" ]; do
file=$(fd -LHpd 1 | rofi -dmenu -b -l 10 -p "File to edit: $(basename $(pwd))")
file=$(fd -LHpd 1 | rofi -dmenu -p "File to edit: $(basename "$(pwd)")")
if [ -e "$file" ]; then
owd=$(pwd)
if [ -d "$file" ]; then

View file

@ -21,7 +21,7 @@ case "$1" in
fi
;;
"")
bash $0 list | rofi -dmenu -b -i -l 10 -p 'Emoji: ' | bash $0 copy
bash $0 list | rofi -dmenu -p 'Emoji: ' | bash $0 copy
;;
esac
@ -492,39 +492,39 @@ women holding hands 👭
woman and man holding hands 👫
men holding hands 👬
kiss 💏
kiss: woman man 👩‍❤️‍💋‍👨
kiss: man man 👨‍❤️‍💋‍👨
kiss: woman woman 👩‍❤️‍💋‍👩
kiss: woman n 👩‍❤️‍💋‍👨
kiss: man n 👨‍❤️‍💋‍👨
kiss: woman n 👩‍❤️‍💋‍👩
couple with heart 💑
couple with heart: woman man 👩‍❤️‍👨
couple with heart: man man 👨‍❤️‍👨
couple with heart: woman woman 👩‍❤️‍👩
couple with heart: woman man 👩‍❤️‍👩
family 👪
family: man woman boy 👨‍👩‍👦
family: man woman girl 👨‍👩‍👧
family: man wo boy 👨‍👩‍👦
family: man wom girl 👨‍👩‍👧
family: man woman girl boy 👨‍👩‍👧‍👦
family: man woman boy boy 👨‍👩‍👦‍👦
family: man woman girl girl 👨‍👩‍👧‍👧
family: man man boy 👨‍👨‍👦
family: man man girl 👨‍👨‍👧
family: man boy 👨‍👨‍👦
family: man m girl 👨‍👨‍👧
family: man man girl boy 👨‍👨‍👧‍👦
family: man man boy boy 👨‍👨‍👦‍👦
family: man man girl girl 👨‍👨‍👧‍👧
family: woman woman boy 👩‍👩‍👦
family: woman woman girl 👩‍👩‍👧
family: woman wo boy 👩‍👩‍👦
family: woman wom girl 👩‍👩‍👧
family: woman woman girl boy 👩‍👩‍👧‍👦
family: woman woman boy boy 👩‍👩‍👦‍👦
family: woman woman girl girl 👩‍👩‍👧‍👧
family: man boy 👨‍👦
family: man boy boy 👨‍👦‍👦
family: man boy 👨‍👦‍👦
family: man girl 👨‍👧
family: man girl boy 👨‍👧‍👦
family: man girl girl 👨‍👧‍👧
family: man g boy 👨‍👧‍👦
family: man gi girl 👨‍👧‍👧
family: woman boy 👩‍👦
family: woman boy boy 👩‍👦‍👦
family: woman boy 👩‍👦‍👦
family: woman girl 👩‍👧
family: woman girl boy 👩‍👧‍👦
family: woman girl girl 👩‍👧‍👧
family: woman g boy 👩‍👧‍👦
family: woman gi girl 👩‍👧‍👧
speaking head 🗣️
bust in silhouette 👤
busts in silhouette 👥
@ -1520,7 +1520,7 @@ VS button 🆚
Japanese “here” button 🈁
Japanese “service charge” button 🈂️
Japanese “monthly amount” button 🈷️
Japanese “not free of charge” button 🈶
Japanese “not free of charge” butto 🈶
Japanese “reserved” button 🈯
Japanese “bargain” button 🉐
Japanese “discount” button 🈹
@ -1670,7 +1670,7 @@ flag: Guinea 🇬🇳
flag: Guadeloupe 🇬🇵
flag: Equatorial Guinea 🇬🇶
flag: Greece 🇬🇷
flag: South Georgia & South Sandwich Islands 🇬🇸
flag: South Georgia & South Sandwiclands 🇬🇸
flag: Guatemala 🇬🇹
flag: Guam 🇬🇺
flag: Guinea-Bissau 🇬🇼
@ -1687,7 +1687,7 @@ flag: Ireland 🇮🇪
flag: Israel 🇮🇱
flag: Isle of Man 🇮🇲
flag: India 🇮🇳
flag: British Indian Ocean Territory 🇮🇴
flag: British Indian Ocean Territor 🇮🇴
flag: Iraq 🇮🇶
flag: Iran 🇮🇷
flag: Iceland 🇮🇸

View file

@ -26,7 +26,7 @@ pwr4=" Cancel"
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
## MAIN ACTION COMMAND ##
action=$(echo -e "$options" | rofi -dmenu -b -l 7 -i -p " ")
action=$(echo -e "$options" | rofi -dmenu -p "  Power Options ")
case "$action" in
$option1*)
pkill X;;
@ -40,7 +40,14 @@ case "$action" in
betterlockscreen -l;;
$option6*)
currentpwr=$(powerprofilesctl get)
pwraction=$(echo -e "$pwrs" | rofi -dmenu -b -l 4 -i -p "Current profile is: ${currentpwr} | Select profile:")
if [ "$currentpwr" = "performance" ]; then
currentpwr=" Performance"
elif [ "$currentpwr" = "power-saver" ]; then
currentpwr=" Power Saver"
elif [ "$currentpwr" = "balanced" ]; then
currentpwr=" Balanced"
fi
pwraction=$(echo -e "$pwrs" | rofi -dmenu -p " Select profile | Current profile: ${currentpwr} ")
case "$pwraction" in
$pwr1*)
powerprofilesctl set performance && notify-send "Power profile switched to performance";;

View file

@ -23,7 +23,7 @@ dels="$del1\n$del2\n$del3"
## DELAY FUNCTION ##
delays() {
del=$(echo -e "$dels" | rofi -dmenu -b -l 3 -i -p "Select: ");
del=$(echo -e "$dels" | rofi -dmenu -p "Select: ");
case $del in
$del1)
scrot -d 3 && notify-send "Screenshot saved";;
@ -50,7 +50,7 @@ area() {
}
## MAIN ACTION ##
choice=$(echo -e "$chos" | rofi -dmenu -b -l 4 -i -p "Select: ")
choice=$(echo -e "$chos" | rofi -dmenu -p "Select: ")
case $choice in
$cho1)
screen;;

View file

@ -5,12 +5,12 @@
# - Dependencies: rofi, fd, feh
## MAIN VARIABLES AND COMMANDS ##
walldir="Pictures/Wallpapers/" # wallpapers folder, change it to yours, make sure that it ends with a /
walldir="Pictures/Wallpapers/Main/" # wallpapers folder, change it to yours, make sure that it ends with a /
cd "$walldir" || exit
## SELECT PICTURE FUNCTION ##
selectpic() {
wallpaper=$(fd -p "$walldir" | rofi -dmenu -l 10 -b -i -p "Select a wallpaper:")
wallpaper=$(fd -p "$walldir" | rofi -dmenu -p "Select a wallpaper:")
if [ "$wallpaper" ]; then
chosenwall=$wallpaper
else
@ -28,7 +28,7 @@ option5="Scale"
options="$option1\n$option2\n$option3\n$option4\n$option5"
## MAIN ACTION ##
action=$(echo -e "$options" | rofi -dmenu -l 10 -b -i -p "Chose the format:")
action=$(echo -e "$options" | rofi -dmenu -p "Chose the format:")
case "$action" in
$option1*)
feh --bg-fill "$chosenwall";;

View file

@ -5,9 +5,7 @@
# - Dependencies: rofi, NetworkManager
## ROFI VARIABLES ##
ROFI1="rofi -dmenu -l 10 -b -i -p"
ROFI2="rofi -dmenu -l 1 -b -p"
ROFI3="rofi -dmenu -l 6 -b -i -p"
ROFI="rofi -dmenu -p"
## MAIN OPTIONS ##
option1=" Turn on WiFi"
@ -45,12 +43,12 @@ disconnect() {
connect() {
notify-send "Scannig networks, please wait"
sleep 1
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $ROFI1 "Select Wifi  :" | cut -d' ' -f1)
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $ROFI "Select Wifi  :" | cut -d' ' -f1)
}
## SELECT PASSWORD FUNCTION ##
password() {
pass=$(echo " " | $ROFI2 "Enter Password  :")
pass=$(echo " " | $ROFI "Enter Password  :")
}
## MAIN CONNECTION COMMAND ##
@ -71,7 +69,7 @@ check() {
}
## MAIN ACTION COMMANDS ##
cases=$(echo -e "$options" | $ROFI3 "What do you want to do?" )
cases=$(echo -e "$options" | $ROFI "  Wifi Settings " )
case "$cases" in
$option1*)
turnon;;