summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htop/htoprc4
-rwxr-xr-xscripts/icstocal9
-rw-r--r--zsh/.zshrc12
3 files changed, 16 insertions, 9 deletions
diff --git a/htop/htoprc b/htop/htoprc
index dff7b74..be9b5bf 100644
--- a/htop/htoprc
+++ b/htop/htoprc
@@ -42,7 +42,7 @@ tree_view=1
sort_key=46
tree_sort_key=46
sort_direction=-1
-tree_sort_direction=1
+tree_sort_direction=-1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
@@ -51,7 +51,7 @@ screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU P
.tree_view=1
.tree_view_always_by_pid=0
.sort_direction=-1
-.tree_sort_direction=1
+.tree_sort_direction=-1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_PRIORITY
diff --git a/scripts/icstocal b/scripts/icstocal
index 94e8700..3d086ca 100755
--- a/scripts/icstocal
+++ b/scripts/icstocal
@@ -41,12 +41,15 @@ while line != "END:VCALENDAR\n":
summaries.append(line[8:].strip())
elif line.startswith("DTSTART"):
start = line.lstrip("DTSTART")
+ n = 0
+ while start[n] != ":":
+ n+=1
year = ""
month = ""
day = ""
hour = ""
min = ""
- for i in range(len(start)):
+ for i in range(n + 1, len(start)):
if i >= 1 and i <= 4:
year += start[i]
elif i == 5 or i == 6:
@@ -65,9 +68,11 @@ while line != "END:VCALENDAR\n":
starts.append([year, month, day, hour, min])
elif line.startswith("DTEND"):
end = line.lstrip("DTEND")
+ while start[n] != ":":
+ n+=1
hour = ""
min = ""
- for i in range(len(end)):
+ for i in range(n + 1, len(end)):
if i == 10:
hour += end[i]
elif i == 11:
diff --git a/zsh/.zshrc b/zsh/.zshrc
index b949cd7..4952998 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,11 +1,11 @@
-# Created by newuser for 5.9
-curl -s https://zeus.ionis-it.com/api/group/428/ics/EOVYjD9jk5 >/tmp/calendar.ics
+[ -f "$ZDOTDIR/paliasrc" ] && source "$ZDOTDIR/paliasrc" # Private aliases
+
+curl -s $CAL_PERSO | grep -v END:VCALENDAR >/tmp/calendar.ics
+curl -s $CAL_SCHOOL | grep -v BEGIN:VCALENDAR >>/tmp/calendar.ics
icstocal /tmp/calendar.ics /tmp/calendar >/dev/null
flashfetch
quand
-
-[ -f "$ZDOTDIR/paliasrc" ] && source "$ZDOTDIR/paliasrc" # Private aliases
autoload -U colors && colors # Load colors
PS1="%B%(?.0.%F{red}%?) %F{blue}%n %F{green}%~ %f$%b "
@@ -29,7 +29,9 @@ alias rps="echo help | nc ratakor.com 9998"
alias nv="nvim"
alias cdmnt="sudo mount -t iso9660 -o ro /dev/sr0 $HOME/cdrom"
alias py="python3"
-alias wtr="curl wttr.in"
+alias wtr="curl wttr.in/Lyon"
+alias doc="$HOME/Documents"
+alias usbmnt="sudo mount /dev/sdb1 $HOME/usb"
autoload -U compinit
zstyle ':completion:*' menu select