Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularisArt committed Feb 18, 2024
1 parent 494417e commit 3f8f8d9
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 13 deletions.
1 change: 1 addition & 0 deletions aspects/dotfiles/files/.config/dunst/dunstrc
4 changes: 2 additions & 2 deletions aspects/dotfiles/files/.config/polybar/modules.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ interval = 0

[module/current-course]
type = custom/script
exec = cat "/home/singularis/.local/share/current_course"
exec = cat "/home/hashem/.local/share/current_course"
click-left = python3 ~/Documents/school-setup/main.py --rofi-course
click-right = python3 ~/Documents/school-setup/main.py --rofi-notes
click-middel = python3 ~/Documents/school-setup/main.py --rofi-assignments

[module/class-info]
type = custom/script
exec = TZ="America/Vancouver" python3 -u /home/singularis/Documents/school-setup/main.py -ca
exec = TZ="America/Vancouver" python3 -u /home/hashem/Documents/school-setup/main.py -ca
click-left = sensible-browser "https://calendar.google.com/calendar/" -- &
interval = 60
tail = true
Expand Down
1 change: 1 addition & 0 deletions aspects/dotfiles/files/.config/rofi/config.rasi
6 changes: 1 addition & 5 deletions aspects/dotfiles/files/.local/bin/rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ class Rofi:
pyperclip.copy("")


def main():
if __name__ == "__main__":
r = Rofi()
r.display_passwords()


if __name__ == "__main__":
main()
9 changes: 7 additions & 2 deletions aspects/dotfiles/files/.local/bin/sxhkd/mounter
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

rofi() {
/usr/bin/rofi -markup-rows -kb-row-down Down -kb-custom-1 Ctrl+n -no-fixed-num-lines "$@"
}

IFS='
'

Expand Down Expand Up @@ -27,10 +31,10 @@ test -n "$alldrives"
chosen="$(echo "$alldrives" | rofi -dmenu -p "Mount which drive?" -i)"

getmount(){
mp="$(echo -e "/mnt\n/media\n/mount\n/home" | rofi -dmenu -i -p "Mount this drive where?")"
mp="$(echo -e "/mnt\n/mnt/$USER\n/media\n/run/media/$USER\n/mount\n/home" | rofi -dmenu -i -p "Mount this drive where?")"
test -n "$mp"
if [ ! -d "$mp" ]; then
mkdiryn=$(printf "No\\nYes" | dmenu -i -p "$mp does not exist. Create it?")
mkdiryn=$(printf "No\\nYes" | rofi -dmenu -i -p "$mp does not exist. Create it?")
[ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || sudo -A mkdir -p "$mp")
fi
}
Expand All @@ -53,4 +57,5 @@ getmount

sudo mkdir -p "$mp/$drivename"
sudo -A mount "/dev/mapper/$drivename" "$mp/$drivename"
sudo chown -R "$USER":"$USER" "$mp/$drivename"
notify-send "Mounted" "Mounted $chosen to $mp/$drivename"
4 changes: 4 additions & 0 deletions aspects/dotfiles/files/.local/bin/sxhkd/unmounter
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

rofi() {
/usr/bin/rofi -markup-rows -kb-row-down Down -kb-custom-1 Ctrl+n -no-fixed-num-lines "$@"
}

set -e

mounteddroids="$(grep simple-mtpfs /etc/mtab | awk '{print "📱" $2}')"
Expand Down
2 changes: 1 addition & 1 deletion aspects/dotfiles/files/.local/bin/systemd/mailsync
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "$num" -gt 0 ]; then
echo "mbsync is already running."; exit ;
fi

export HOME=/home/singularis
export HOME=/home/hashem
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
Expand Down
Binary file modified aspects/dotfiles/vars/private.yaml
Binary file not shown.
Binary file modified aspects/email/vars/private.yaml
Binary file not shown.
3 changes: 2 additions & 1 deletion aspects/node/aspect.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"description": "All required node libraries",
"libraries": {
"node": {}
}
},
"packages": {}
}
Empty file added aspects/nvim/vars/private.yaml
Empty file.
3 changes: 2 additions & 1 deletion aspects/python/aspect.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"description": "All required python libraries",
"libraries": {
"python": {}
}
},
"packages": {}
}
3 changes: 2 additions & 1 deletion aspects/systemd/aspect.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
".config": {
"systemd": "public"
}
}
},
"packages": {}
}

0 comments on commit 3f8f8d9

Please sign in to comment.