update stuff

This commit is contained in:
ksyasuda 2021-11-02 16:03:18 -07:00
parent f011fa6f5e
commit 41b035ed4d
12 changed files with 594 additions and 38 deletions

View File

@ -152,6 +152,14 @@
;; (add-to-list 'company-backends 'company-jedi)) ;; (add-to-list 'company-backends 'company-jedi))
;;; gif screencast
(with-eval-after-load 'gif-screencast
(define-key gif-screencast-mode-map (kbd "<f8>") 'gif-screencast-toggle-pause))
(global-set-key (kbd "<f9>") 'gif-screencast-start-or-stop)
;;; HOOKS ;;; HOOKS

View File

@ -71,3 +71,4 @@
(package! fira-code-mode) (package! fira-code-mode)
(package! lsp-ui) (package! lsp-ui)
(package! company-quickhelp) (package! company-quickhelp)
(package! gif-screencast)

View File

@ -2,5 +2,5 @@
type = custom/text type = custom/text
content = content =
content-padding = 1 content-padding = 1
content-foreground = #C1BF10 content-foreground = #d19a66
click-left = kcolorchooser click-left = kcolorchooser

View File

@ -3,5 +3,5 @@ type = custom/text
content = content =
content-padding = 1 content-padding = 1
content-foreground = #fc8353 content-foreground = #fc8353
click-left = exec ~/scripts/flameshot_gui.sh click-left = flameshot gui
click-right = flameshot config click-right = flameshot config

View File

@ -79,7 +79,7 @@ font-1 = "Iosevka Nerd Font:pixelsize=11;3"
font-2 = Weather Icons:size=12;1 font-2 = Weather Icons:size=12;1
font-3 = "Source Han Sans JP:pixelsize=11;antialias=true;3" font-3 = "Source Han Sans JP:pixelsize=11;antialias=true;3"
dpi = 100 dpi = 110
;========================================================== ;==========================================================
@ -93,7 +93,8 @@ scroll-down = i3wm-wsprev
modules-left = menu workspaces network-desktop bluetooth-desktop package-updates-trigger package-updates modules-left = menu workspaces network-desktop bluetooth-desktop package-updates-trigger package-updates
# modules-center = spotify-prev spotify-bar spotify-next jdate package-updates-trigger package-updates # modules-center = spotify-prev spotify-bar spotify-next jdate package-updates-trigger package-updates
modules-center = mpd-prev custom-mpd mpd-next playerctl-prev playerctl-show playerctl-next ; modules-center = mpd-prev custom-mpd mpd-next playerctl-prev playerctl-show playerctl-next
modules-center = mpd-prev custom-mpd mpd-next
# modules-right = network bluetooth2 volume battery openweathermap-fullfeatured date powermenu # modules-right = network bluetooth2 volume battery openweathermap-fullfeatured date powermenu
modules-right = flameshot color-picker jdate volume openweathermap-fullfeatured date powermenu modules-right = flameshot color-picker jdate volume openweathermap-fullfeatured date powermenu

View File

@ -1,6 +0,0 @@
/** Basic config file **/
configuration {
show-icons: true;
icon-theme: "Papirus";
}

122
rofi/dracula.rasi Normal file
View File

@ -0,0 +1,122 @@
/*Dracula theme based on the Purple official rofi theme*/
* {
font: "Jetbrains Mono 12";
foreground: #f8f8f2;
background: #282a36;
active-background: #6272a4;
urgent-background: #ff5555;
selected-background: @active-background;
selected-urgent-background: @urgent-background;
selected-active-background: @active-background;
separatorcolor: @active-background;
bordercolor: @active-background;
}
#window {
background-color: @background;
border: 1;
border-radius: 6;
border-color: @bordercolor;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @bordercolor;
spacing: 2px ;
scrollbar: false;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#element.normal.normal {
background-color: @background;
text-color: @foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @foreground;
}
#element.selected.normal {
background-color: @selected-background;
text-color: @foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @foreground;
}
#element.alternate.normal {
background-color: @background;
text-color: @foreground;
}
#element.alternate.urgent {
background-color: @urgent-background;
text-color: @foreground;
}
#element.alternate.active {
background-color: @active-background;
text-color: @foreground;
}
#scrollbar {
width: 2px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
#button.selected {
background-color: @selected-background;
text-color: @foreground;
}
#inputbar {
spacing: 0;
text-color: @foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @foreground;
}
#entry {
spacing: 0;
text-color: @foreground;
}
#prompt {
spacing: 0;
text-color: @foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @foreground;
}

147
rofi/flat-orange.rasi Normal file
View File

@ -0,0 +1,147 @@
/**
* ROFI Color theme
* User: mbfraga
* Copyright: Martin B. Fraga
*/
/* global settings and color variables */
* {
maincolor: #ed8712;
highlight: bold #ed8712;
urgentcolor: #e53714;
fgwhite: #cfcfcf;
blackdarkest: #1d1d1d;
blackwidget: #262626;
blackentry: #292929;
blackselect: #303030;
darkgray: #848484;
scrollbarcolor: #505050;
font: "DejaVu Sans Mono Regular 14";
background-color: @blackdarkest;
}
window {
background-color: @blackdarkest;
anchor: north;
location: north;
y-offset: 20%;
}
mainbox {
background-color: @blackdarkest;
spacing:0px;
children: [inputbar, message, mode-switcher, listview];
}
message {
padding: 6px 10px;
background-color:@blackwidget;
}
textbox {
text-color:@darkgray;
background-color:@blackwidget;
}
listview {
fixed-height: false;
dynamic: true;
scrollbar: true;
spacing: 0px;
padding: 1px 0px 0px 0px;
margin: 0px 0px 1px 0px;
background: @blackdarkest;
}
element {
padding: 2px 15px;
}
element normal.normal {
padding: 0px 15px;
background-color: @blackentry;
text-color: @fgwhite;
}
element normal.urgent {
background-color: @blackentry;
text-color: @urgentcolor;
}
element normal.active {
background-color: @blackentry;
text-color: @maincolor;
}
element selected.normal {
background-color: @blackselect;
text-color: @fgwhite;
}
element selected.urgent {
background-color: @urgentcolor;
text-color: @blackdarkest;
}
element selected.active {
background-color: @maincolor;
text-color: @blackdarkest;
}
element alternate.normal {
background-color: @blackentry;
text-color: @fgwhite;
}
element alternate.urgent {
background-color: @blackentry;
text-color: @urgentcolor;
}
element alternate.active {
background-color: @blackentry;
text-color: @maincolor;
}
scrollbar {
background-color: @blackwidget;
handle-color: @darkgray;
handle-width: 15px;
}
mode-switcher {
background-color: @blackwidget;
}
button {
background-color: @blackwidget;
text-color: @darkgray;
}
button selected {
text-color: @maincolor;
}
inputbar {
background-color: @blackdarkest;
spacing: 0px;
}
prompt {
padding: 6px 9px;
background-color: @maincolor;
text-color:@blackwidget;
}
entry {
padding:6px 10px;
background-color:@blackwidget;
text-color:@fgwhite;
}
case-indicator {
padding:6px 10px;
text-color:@maincolor;
background-color:@blackwidget;
}

183
rofi/meh.rasi Normal file
View File

@ -0,0 +1,183 @@
configuration {
font: "Open Sans 15";
display-drun: "Dmenu";
scroll-method: 0;
disable-history: false;
sidebar-mode: true;
}
* {
selected-normal-foreground: rgba ( 255, 147, 5, 100 % );
foreground: rgba ( 196, 203, 212, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 45, 48, 59, 1 % );
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 249, 249, 249, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 204, 102, 102, 100 % );
alternate-urgent-background: rgba ( 75, 81, 96, 90 % );
active-foreground: rgba ( 101, 172, 255, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 249, 249, 249, 100 % );
alternate-active-background: rgba ( 45, 48, 59, 88 % );
background: rgba ( 45, 48, 59, 88 % );
alternate-normal-foreground: @foreground;
normal-background: rgba ( 45, 48, 59, 1 % );
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 24, 26, 32, 100 % );
border-color: rgba ( 124, 131, 137, 100 % );
spacing: 2;
separatorcolor: rgba ( 45, 48, 59, 1 % );
urgent-background: rgba ( 45, 48, 59, 15 % );
selected-urgent-background: rgba ( 165, 66, 66, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 29, 31, 33, 17 % );
selected-active-background: rgba ( 26, 28, 35, 100 % );
black: #1d1d1d;
blackwidget: #262626;
}
window {
background-color: @background;
border: 0;
anchor: north;
location: north;
y-offset: 25%;
padding: 25;
width: 69%;
}
listview {
lines: 12;
columns: 2;
}
mainbox {
border: 0;
padding: 12;
}
message {
border: 2px 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
text-color: @active-foreground;
padding: 6px 10px;
}
textbox {
text-color: @foreground;
background-color: @blackwidget;
}
listview {
dynamic: true;
fixed-height: 0;
border: 8px 0px 0px ;
border-color: @separatorcolor;
spacing: 10px ;
scrollbar: false;
padding: 2px 0px 0px 0px;
margin: 0px 0px 1px 0px;
}
element {
border: 2px;
border-color: #d19a66;
padding: 2px 15px;
}
element-text {
background-color: inherit;
text-color: inherit;
}
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: #51afef;
border-color: #51afef;
}
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;
border-color: #1E90FF;
text-color: #1E90FF;
}
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; */
text-color: #51afef;
border-color: #51afef;
}
scrollbar {
width: 4px ;
border: 0;
handle-color: @normal-foreground;
handle-width: 8px ;
padding: 0;
}
mode-switcher {
border: 2px 0px 0px ;
border-color: @separatorcolor;
}
button {
spacing: 0;
text-color: @normal-foreground;
}
button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 5px ;
}
case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
entry {
padding: 6px 10px;
spacing: 0;
text-color: @normal-foreground;
}
prompt {
spacing: 0;
text-color: #51afef;
padding: 5px 0px;
}
inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
padding: 15px 0px;
}
textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: #51afef;
padding: 5px 0px;
}

100
rofi/onedark.rasi Normal file
View File

@ -0,0 +1,100 @@
/*
* ROFI One Dark
*
* Based on OneDark.vim (https://github.com/joshdick/onedark.vim)
*
* Author: Benjamin Stauss
* User: me-benni
*
*/
* {
black: #000000;
red: #eb6e67;
green: #95ee8f;
yellow: #f8c456;
blue: #6eaafb;
mangenta: #d886f3;
cyan: #6cdcf7;
emphasis: #50536b;
text: #dfdfdf;
text-alt: #b2b2b2;
fg: #abb2bf;
bg: #282c34;
spacing: 0;
background-color: transparent;
font: "Knack Nerd Font 14";
text-color: @text;
}
window {
transparency: "real";
fullscreen: true;
background-color: #282c34dd;
}
mainbox {
padding: 30% 30%;
}
inputbar {
margin: 0px 0px 20px 0px;
children: [prompt, textbox-prompt-colon, entry, case-indicator];
}
prompt {
text-color: @blue;
}
textbox-prompt-colon {
expand: false;
str: ":";
text-color: @text-alt;
}
entry {
margin: 0px 10px;
}
listview {
spacing: 5px;
dynamic: true;
scrollbar: false;
}
element {
padding: 5px;
text-color: @text-alt;
highlight: bold #95ee8f; /* green */
border-radius: 3px;
}
element selected {
background-color: @emphasis;
text-color: @text;
}
element urgent, element selected urgent {
text-color: @red;
}
element active, element selected active {
text-color: @purple;
}
message {
padding: 5px;
border-radius: 3px;
background-color: @emphasis;
border: 1px;
border-color: @cyan;
}
button selected {
padding: 5px;
border-radius: 3px;
background-color: @emphasis;
}

View File

@ -3,23 +3,23 @@
get_icon() { get_icon() {
case $1 in case $1 in
# Icons for weather-icons # Icons for weather-icons
01d) icon="";; 01d) icon="" ;;
01n) icon="";; 01n) icon="" ;;
02d) icon="";; 02d) icon="" ;;
02n) icon="";; 02n) icon="" ;;
03*) icon="";; 03*) icon="" ;;
04*) icon="";; 04*) icon="" ;;
09d) icon="";; 09d) icon="" ;;
09n) icon="";; 09n) icon="" ;;
10d) icon="";; 10d) icon="" ;;
10n) icon="";; 10n) icon="" ;;
11d) icon="";; 11d) icon="" ;;
11n) icon="";; 11n) icon="" ;;
13d) icon="";; 13d) icon="" ;;
13n) icon="";; 13n) icon="" ;;
50d) icon="";; 50d) icon="" ;;
50n) icon="";; 50n) icon="" ;;
*) icon=""; *) icon="" ;;
# Icons for Font Awesome 5 Pro # Icons for Font Awesome 5 Pro
# 01d) icon="";; # 01d) icon="";;
@ -46,15 +46,15 @@ get_duration() {
osname=$(uname -s) osname=$(uname -s)
case $osname in case $osname in
*BSD) date -r "$1" -u +%H:%M;; *BSD) date -r "$1" -u +%H:%M ;;
*) date --date="@$1" -u +%H:%M;; *) date --date="@$1" -u +%H:%M ;;
esac esac
} }
KEY="6865df0d489817348e4c7941aaa6cdeb" KEY="6865df0d489817348e4c7941aaa6cdeb"
# CITY="Ann Arbor" # CITY="Ann Arbor"
CITY="Los Angeles" CITY="Los%20Angeles"
UNITS="imperial" UNITS="imperial"
SYMBOL="°" SYMBOL="°"
@ -66,9 +66,9 @@ if [ -n "$CITY" ]; then
else else
CITY_PARAM="q=$CITY" CITY_PARAM="q=$CITY"
fi fi
current=$(curl -sf "$API/weather?appid=$KEY&$CITY_PARAM&units=$UNITS") current=$(curl -sf "$API/weather?appid=$KEY&$CITY_PARAM&units=$UNITS")
forecast=$(curl -sf "$API/forecast?appid=$KEY&$CITY_PARAM&units=$UNITS&cnt=1") forecast=$(curl -sf "$API/forecast?appid=$KEY&$CITY_PARAM&units=$UNITS&cnt=1")
# echo "$current | $forecast"
else else
location=$(curl -sf https://location.services.mozilla.com/v1/geolocate?key=geoclue) location=$(curl -sf https://location.services.mozilla.com/v1/geolocate?key=geoclue)
@ -88,7 +88,6 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
forecast_temp=$(echo "$forecast" | jq ".list[].main.temp" | cut -d "." -f 1) forecast_temp=$(echo "$forecast" | jq ".list[].main.temp" | cut -d "." -f 1)
forecast_icon=$(echo "$forecast" | jq -r ".list[].weather[0].icon") forecast_icon=$(echo "$forecast" | jq -r ".list[].weather[0].icon")
if [ "$current_temp" -gt "$forecast_temp" ]; then if [ "$current_temp" -gt "$forecast_temp" ]; then
trend="" trend=""
elif [ "$forecast_temp" -gt "$current_temp" ]; then elif [ "$forecast_temp" -gt "$current_temp" ]; then
@ -97,7 +96,6 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
trend="" trend=""
fi fi
sun_rise=$(echo "$current" | jq ".sys.sunrise") sun_rise=$(echo "$current" | jq ".sys.sunrise")
sun_set=$(echo "$current" | jq ".sys.sunset") sun_set=$(echo "$current" | jq ".sys.sunset")
now=$(date +%s) now=$(date +%s)
@ -107,11 +105,11 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
now2_symbol="" now2_symbol=""
if [ "$sun_rise" -gt "$now" ]; then if [ "$sun_rise" -gt "$now" ]; then
daytime="$(get_duration "$((sun_rise-now))")" daytime="$(get_duration "$((sun_rise - now))")"
elif [ "$sun_set" -gt "$now" ]; then elif [ "$sun_set" -gt "$now" ]; then
daytime="$(get_duration "$((sun_set-now))")" daytime="$(get_duration "$((sun_set - now))")"
else else
daytime="$(get_duration "$((sun_rise-now))")" daytime="$(get_duration "$((sun_rise - now))")"
fi fi
# WITH TREND AND DAYTIME # WITH TREND AND DAYTIME

View File

@ -11,7 +11,9 @@ ARGS=(
"Quit" "Quit"
) )
CHOICE=$(printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/rofidmenu.rasi -dmenu -l 5 -i -p "SSH Helper") CHOICE=$(
printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/flat-orange.rasi -dmenu -l 5 -i -p "SSH Helper"
)
if [[ "$CHOICE" == "Quit" ]]; then if [[ "$CHOICE" == "Quit" ]]; then
printf "%s\n" "NICE" && exit 1 printf "%s\n" "NICE" && exit 1