Compare commits
5 Commits
003933c2ef
...
de4acf9f95
Author | SHA1 | Date | |
---|---|---|---|
de4acf9f95 | |||
bdcbb19b08 | |||
b20f75f5e2 | |||
9d2378218b | |||
1e0ac0030b |
@ -3,6 +3,8 @@
|
|||||||
{{- $email := promptStringOnce . "email" "Email address for Git" -}}
|
{{- $email := promptStringOnce . "email" "Email address for Git" -}}
|
||||||
{{- $fullname := promptStringOnce . "email" "Full name for Git" -}}
|
{{- $fullname := promptStringOnce . "email" "Full name for Git" -}}
|
||||||
|
|
||||||
|
mode = "symlink"
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
systemprofile = {{ $systemprofile | quote }}
|
systemprofile = {{ $systemprofile | quote }}
|
||||||
email = {{ $email | quote }}
|
email = {{ $email | quote }}
|
||||||
|
@ -10,3 +10,4 @@
|
|||||||
[ -x {{ $fish_path }} ] && export SHELL={{ $fish_path }}
|
[ -x {{ $fish_path }} ] && export SHELL={{ $fish_path }}
|
||||||
[[ -z $DISPLAY && $XDG_VTNR -eq 2 ]] && exec startx
|
[[ -z $DISPLAY && $XDG_VTNR -eq 2 ]] && exec startx
|
||||||
[[ -z $WAYLAND_DISPLAY && $XDG_VTNR -eq 1 ]] && exec niri-session
|
[[ -z $WAYLAND_DISPLAY && $XDG_VTNR -eq 1 ]] && exec niri-session
|
||||||
|
exec "$SHELL"
|
||||||
|
@ -14,3 +14,7 @@ border="777777aa"
|
|||||||
[border]
|
[border]
|
||||||
width=2
|
width=2
|
||||||
radius=0
|
radius=0
|
||||||
|
|
||||||
|
[key-bindings]
|
||||||
|
cancel="Control+C"
|
||||||
|
execute="Return Escape"
|
||||||
|
@ -22,21 +22,28 @@
|
|||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:%H:%M}",
|
"format": "{:%H:%M}",
|
||||||
|
"tooltip-format": "{:%a %b %d, %Y (%Z / UTC%z)}",
|
||||||
|
"tooltip": true,
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format-wifi": "⇌",
|
"format-wifi": "{signalStrength}% ",
|
||||||
"format-disconnected": "⚠"
|
"format-disconnected": "⚠",
|
||||||
|
"max-length": 20
|
||||||
|
},
|
||||||
|
"inhibitor": {
|
||||||
|
"format": "{icon} ",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": "",
|
||||||
|
"deactivated": ""
|
||||||
|
},
|
||||||
|
"what": "idle",
|
||||||
},
|
},
|
||||||
"mpris": {
|
"mpris": {
|
||||||
"title-len": 65,
|
"title-len": 65,
|
||||||
"album-len": 0,
|
"album-len": 0,
|
||||||
"dynamic-len": 65,
|
"dynamic-len": 65,
|
||||||
"dynamic-order": ["artist", "title"],
|
"dynamic-order": ["artist", "title"],
|
||||||
"format": "{dynamic} {status_icon}",
|
"format": "{dynamic} ♫",
|
||||||
"format-paused": "{dynamic} {status_icon}",
|
"format-paused": "{dynamic}",
|
||||||
"status-icons": {
|
|
||||||
"playing": "✗",
|
|
||||||
"paused": "•"
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,48 @@
|
|||||||
try:
|
"""
|
||||||
from sympy import init_session, Rational
|
bashrc but for Python
|
||||||
init_session()
|
|
||||||
|
|
||||||
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:
|
except ImportError:
|
||||||
pass
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user