Compare commits

...

5 Commits

6 changed files with 67 additions and 12 deletions

View File

@ -3,6 +3,8 @@
{{- $email := promptStringOnce . "email" "Email address for Git" -}}
{{- $fullname := promptStringOnce . "email" "Full name for Git" -}}
mode = "symlink"
[data]
systemprofile = {{ $systemprofile | quote }}
email = {{ $email | quote }}

View File

@ -10,3 +10,4 @@
[ -x {{ $fish_path }} ] && export SHELL={{ $fish_path }}
[[ -z $DISPLAY && $XDG_VTNR -eq 2 ]] && exec startx
[[ -z $WAYLAND_DISPLAY && $XDG_VTNR -eq 1 ]] && exec niri-session
exec "$SHELL"

View File

@ -14,3 +14,7 @@ border="777777aa"
[border]
width=2
radius=0
[key-bindings]
cancel="Control+C"
execute="Return Escape"

View File

@ -22,21 +22,28 @@
},
"clock": {
"format": "{:%H:%M}",
"tooltip-format": "{:%a %b %d, %Y (%Z / UTC%z)}",
"tooltip": true,
},
"network": {
"format-wifi": "⇌",
"format-disconnected": "⚠"
"format-wifi": "{signalStrength}% ",
"format-disconnected": "⚠",
"max-length": 20
},
"inhibitor": {
"format": "{icon} ",
"format-icons": {
"activated": "",
"deactivated": ""
},
"what": "idle",
},
"mpris": {
"title-len": 65,
"album-len": 0,
"dynamic-len": 65,
"dynamic-order": ["artist", "title"],
"format": "{dynamic} {status_icon}",
"format-paused": "{dynamic} {status_icon}",
"status-icons": {
"playing": "✗",
"paused": "•"
},
"format": "{dynamic} ♫",
"format-paused": "{dynamic}",
}
}

View File

@ -1,7 +1,48 @@
try:
from sympy import init_session, Rational
init_session()
"""
bashrc but for Python
R = Rational
Runs on both Python and IPython.
"""
from os import environ
print(f"\nUsing PYTHONSTARTUP file: {environ.get("PYTHONSTARTUP")}")
print("Read this file for information about custom macros/utilities.")
ipy = None
try:
from IPython.core.getipython import get_ipython
ipy = get_ipython()
except ImportError:
pass
def math_mode():
from sympy import init_session, Rational, pi
init_session()
global R
R = Rational
# eval last line
if ipy:
ipy.define_macro("ev", "N(_)")
global radians
def radians(angle):
return angle * 2 * pi / 360
def data_mode():
try:
import numpy as np
except ImportError:
pass
try:
import pandas as pd
except ImportError:
pass
try:
import matplotlib.pyplot as plt
except ImportError:
pass