Browse Source

Ubuntu start script, HERO ticker, Chrome default browser

ubuntu
Kevin Mok 17 hours ago
parent
commit
82baa8a23d
Signed by: Kevin-Mok GPG Key ID: FB0DA56BEB5D98F3
  1. 19
      aliases/key_aliases.tmpl
  2. 13
      aliases/key_dirs.tmpl
  3. 2
      aliases/key_files.tmpl
  4. 7
      dot_config/fish/config.fish.tmpl
  5. 3
      dot_config/i3/config.tmpl
  6. 19
      dot_config/i3blocks/i3blocks.conf.tmpl
  7. 13
      dot_config/mimeapps-ffox.list
  8. 10
      dot_config/mimeapps.list
  9. 4
      dot_imwheelrc
  10. 5
      dot_xinitrc.tmpl
  11. 36
      scripts/executable_glhf-metadata
  12. 16
      scripts/executable_ubuntu-start

19
aliases/key_aliases.tmpl

@ -51,7 +51,8 @@ ngb "sudo nvim /etc/default/grub"
mgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" mgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
# a "bat" # a "bat"
b "bat"
#b "bat"
b "vimpager"
# ba "bat *" # ba "bat *"
awkp "awk -F',' '{print \$0}'" awkp "awk -F',' '{print \$0}'"
cpr "cp -r" cpr "cp -r"
@ -417,6 +418,7 @@ bw "buku --immutable 1 -w -1"
# ]]] buku # # ]]] buku #
ca "currency CAD USD" ca "currency CAD USD"
us "currency USD CAD" us "currency USD CAD"
qe "currency USD CAD 1"
cc "calcurse" cc "calcurse"
ccc "calcurse -D ~/.calcurse/alt-cals/class" ccc "calcurse -D ~/.calcurse/alt-cals/class"
cci "calcurse -i" cci "calcurse -i"
@ -484,7 +486,7 @@ pcp "pycp"
pmv "pymv" pmv "pymv"
py "python" py "python"
q "qalc '" q "qalc '"
qe "qalc -e '1USD to CAD'"
#qe "qalc -e '1USD to CAD'"
qg "qalculate-gtk" qg "qalculate-gtk"
r "ranger" r "ranger"
rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)" rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)"
@ -514,6 +516,7 @@ tas3 "tmux a -t school-3 || tmux new -s school-3"
tas4 "tmux a -t school-4 || tmux new -s school-4" tas4 "tmux a -t school-4 || tmux new -s school-4"
tal "tmux a" tal "tmux a"
tc "clear && tmux clear-history" tc "clear && tmux clear-history"
th "thunar . &"
# tk "tmux kill-server" # tk "tmux kill-server"
tks "tmux kill-session -t" tks "tmux kill-session -t"
tksv "tmux kill-server" tksv "tmux kill-server"
@ -552,7 +555,7 @@ pg "pass generate -c"
ps "pass show" ps "pass show"
psr "pass rm" psr "pass rm"
psi "pass show info | bat" psi "pass show info | bat"
pev "pass edit finances/visa"
pev "pass edit finances/visa-cash"
xc "xclip -selection clipboard" xc "xclip -selection clipboard"
xo "xclip -o >" xo "xclip -o >"
@ -932,7 +935,7 @@ rt "python ~/coding/rt-scraper/!rt-scraper.py"
# ada-mario [[[ # # ada-mario [[[ #
mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_head" mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_head"
med "printf '\033c' && bear make clean eye_detector && ./eye_detector"
#med "printf '\033c' && bear make clean eye_detector && ./eye_detector"
mft "printf '\033c' && bear make clean face_detector && ./face_detector" mft "printf '\033c' && bear make clean face_detector && ./face_detector"
rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out" rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out"
# gpsb "git push bitbucket" # gpsb "git push bitbucket"
@ -1058,6 +1061,14 @@ ttlo "timetrace start look@job"
ttle "timetrace start leetcode@job" ttle "timetrace start leetcode@job"
ts "npx tsc" ts "npx tsc"
njs "node src/download-json.js"
xi "npx ts-node src/index.ts"
xs "npx ts-node src/sync.ts"
#xsv "nodemon --exec node --loader ts-node/esm src/server.ts"
#xsv "npx nodemon"
xsv "nodemon --exec tsx src/server.ts"
cl "npx ts-node src/cli.ts list-nfts -p 5 -t 100"
clw "watch npx ts-node src/cli.ts list-nfts -p 5 -t 100"
# ]]] work # # ]]] work #

13
aliases/key_dirs.tmpl

@ -5,7 +5,7 @@
bg ~/Pictures/Backgrounds bg ~/Pictures/Backgrounds
cf ~/linux-config/dot_config cf ~/linux-config/dot_config
cfg ~/.config cfg ~/.config
cff ~/.config/fish
cfgf ~/.config/fish
ch ~/Documents/chat ch ~/Documents/chat
dc ~/Documents/chat/discord dc ~/Documents/chat/discord
da /mnt/ipad/DCIM/101APPLE da /mnt/ipad/DCIM/101APPLE
@ -23,7 +23,7 @@ lfv2 /mnt/linux-files-2/Videos
lfv2s /mnt/linux-files-2/Videos/shows lfv2s /mnt/linux-files-2/Videos/shows
lfy /mnt/linux-files/Videos/yt lfy /mnt/linux-files/Videos/yt
a2 /mnt/linux-files-2/arch-2/full/home/kevin a2 /mnt/linux-files-2/arch-2/full/home/kevin
me /run/media/kevin
medi /media/kevin
o / o /
pd ~/.password-store pd ~/.password-store
pfp /mnt/linux-files-2/arch-2/full/home/kevin/Pictures/profile-pics pfp /mnt/linux-files-2/arch-2/full/home/kevin/Pictures/profile-pics
@ -149,7 +149,7 @@ Css ~/Pictures/screenshots/mobile/codm
fn ~/Documents/fortnite fn ~/Documents/fortnite
fnc /mnt/linux-files/Videos/yt/fortnite/clips/4 fnc /mnt/linux-files/Videos/yt/fortnite/clips/4
fni /mnt/ipad/DCIM/100APPLE fni /mnt/ipad/DCIM/100APPLE
fnm ~/Documents/fortnite/pics/maps
#fnm ~/Documents/fortnite/pics/maps
fnn ~/Documents/fortnite/notes fnn ~/Documents/fortnite/notes
fnp ~/Documents/fortnite/pics fnp ~/Documents/fortnite/pics
fns ~/Documents/fortnite/stats/api fns ~/Documents/fortnite/stats/api
@ -282,6 +282,13 @@ anb ~/coding/ai-nft-proj/backend
anf ~/coding/ai-nft-proj/frontend anf ~/coding/ai-nft-proj/frontend
tt ~/coding/try-eliza-twitter-client tt ~/coding/try-eliza-twitter-client
me ~/coding/me-sniper
mef ~/coding/me-sniper-fe
med ~/coding/me-sniper-discord
me2 ~/coding/me-sniper-2
mu ~/coding/stakemetrix
# ]]] sch # # ]]] sch #
# personal [[[ # # personal [[[ #

2
aliases/key_files.tmpl

@ -46,7 +46,7 @@ hh ~/.habitctl/habits
hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log
id ~/Documents/journal/todo/ideas.md id ~/Documents/journal/todo/ideas.md
ig ./.gitignore ig ./.gitignore
jt ~/Documents/journal/todo/25/1.md
jt ~/Documents/journal/todo/25/2.md
k ~/linux-config/dot_config/kitty/kitty.conf k ~/linux-config/dot_config/kitty/kitty.conf
lh ~/Documents/listening-history/polarbier.csv lh ~/Documents/listening-history/polarbier.csv
mc ~/coding/mf-site/assets/sass/main.scss mc ~/coding/mf-site/assets/sass/main.scss

7
dot_config/fish/config.fish.tmpl

@ -139,7 +139,6 @@ set -xU LOCAL_KOGITO_SERVICE_PORT "32000"
# set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT" # set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT"
set -x FLASK_DEBUG 1 set -x FLASK_DEBUG 1
set -x DB_NAME "covid_monitor"
set -x FULLNODE_API_INFO wss://api.chain.love set -x FULLNODE_API_INFO wss://api.chain.love
@ -149,6 +148,8 @@ set -x IPAD_IMG 18
set -x LIBVIRT_DEFAULT_URI qemu:///system set -x LIBVIRT_DEFAULT_URI qemu:///system
set --erase DB_NAME
# ]]] universal var's # # ]]] universal var's #
# fish-specific [[[ # # fish-specific [[[ #
@ -224,8 +225,8 @@ abbr bun "backup nzxt"
abbr bupp "backup-phone-pics" abbr bupp "backup-phone-pics"
#abbr ca "cad-to-us" #abbr ca "cad-to-us"
abbr cccs "sync-alt-cal class" abbr cccs "sync-alt-cal class"
abbr cl "clip"
abbr cli "clip-ipad"
#abbr cl "clip"
#abbr cli "clip-ipad"
abbr cpc "copy cat" abbr cpc "copy cat"
abbr cpe "copy echo" abbr cpe "copy echo"
abbr cpp "copy echo (pwd)" abbr cpp "copy echo (pwd)"

3
dot_config/i3/config.tmpl

@ -21,10 +21,11 @@ exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editi
# exec --no-startup-id i3-msg 'workspace $ws1; exec $term' # exec --no-startup-id i3-msg 'workspace $ws1; exec $term'
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"' # exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
exec --no-startup-id i3-msg 'workspace $ws3; exec chrome'
# exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy'
# exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' # exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft'
exec --no-startup-id i3-msg workspace $ws6; exec discord exec --no-startup-id i3-msg workspace $ws6; exec discord
exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop'
#exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop'
# exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school' # exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school'
# ]]] startup # # ]]] startup #

19
dot_config/i3blocks/i3blocks.conf.tmpl

@ -35,6 +35,13 @@ color=#cbe4ff
# TICKER=ETH-USD # TICKER=ETH-USD
# interval=30 # interval=30
[dexscreener]
label=HERO
#CHAIN=solana
#PAIR=B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV
command=/home/kevin/.config/i3blocks/scripts/dexscreener abstract 0x3771b51b5a705338fa19702f249afcaa94b0cd8c
interval=5
[kraken] [kraken]
label=BTC label=BTC
#TICKER=BTCUSDC #TICKER=BTCUSDC
@ -71,12 +78,12 @@ label=PIXL
command=/home/kevin/.config/i3blocks/scripts/dexscreener ethereum 0x31c0ba10e4e12be6cdceb612e5e829d977532bfc command=/home/kevin/.config/i3blocks/scripts/dexscreener ethereum 0x31c0ba10e4e12be6cdceb612e5e829d977532bfc
interval=30 interval=30
[dexscreener]
label=PENGU
#CHAIN=solana
#PAIR=B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV
command=/home/kevin/.config/i3blocks/scripts/dexscreener solana B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV
interval=5
#[dexscreener]
#label=PENGU
##CHAIN=solana
##PAIR=B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV
#command=/home/kevin/.config/i3blocks/scripts/dexscreener solana B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV
#interval=5
#[dexscreener-fdv] #[dexscreener-fdv]
#label=TRUMP #label=TRUMP

13
dot_config/mimeapps-ffox.list

@ -1,9 +1,9 @@
[Default Applications] [Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=chromium.desktop
x-scheme-handler/unknown=chromium.desktop
text/html=firefox_firefox.desktop
x-scheme-handler/http=firefox_firefox.desktop
x-scheme-handler/https=firefox_firefox.desktop
x-scheme-handler/about=firefox_firefox.desktop
x-scheme-handler/unknown=firefox_firefox.desktop
x-scheme-handler/ftp=firefox.desktop x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop x-scheme-handler/chrome=firefox.desktop
application/x-extension-htm=firefox.desktop application/x-extension-htm=firefox.desktop
@ -17,6 +17,8 @@ message/rfc822=userapp-Thunderbird-DQE3YZ.desktop
image/jpeg=sxiv.desktop image/jpeg=sxiv.desktop
image/png=sxiv.desktop image/png=sxiv.desktop
x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop
x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop
video/mp4=mpv.desktop
[Added Associations] [Added Associations]
x-scheme-handler/http=firefox.desktop; x-scheme-handler/http=firefox.desktop;
@ -31,3 +33,4 @@ application/json=firefox.desktop;
image/jpeg=gimp.desktop;imv.desktop; image/jpeg=gimp.desktop;imv.desktop;
text/markdown=nvim.desktop; text/markdown=nvim.desktop;
image/png=imv.desktop; image/png=imv.desktop;
video/mp4=mpv.desktop;

10
dot_config/mimeapps.list

@ -1,9 +1,9 @@
[Default Applications] [Default Applications]
text/html=firefox_firefox.desktop
x-scheme-handler/http=firefox_firefox.desktop
x-scheme-handler/https=firefox_firefox.desktop
x-scheme-handler/about=firefox_firefox.desktop
x-scheme-handler/unknown=firefox_firefox.desktop
text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop
x-scheme-handler/ftp=firefox.desktop x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop x-scheme-handler/chrome=firefox.desktop
application/x-extension-htm=firefox.desktop application/x-extension-htm=firefox.desktop

4
dot_imwheelrc

@ -3,5 +3,5 @@
/* None, Down, Button5, 3 */ /* None, Down, Button5, 3 */
/* None, Up, Button4, .5 */ /* None, Up, Button4, .5 */
/* None, Down, Button5, .5 */ /* None, Down, Button5, .5 */
None, Up, Button4, .1
None, Down, Button5, .1
None, Up, Button4, .01
None, Down, Button5, .01

5
dot_xinitrc.tmpl

@ -13,10 +13,9 @@ redshift -O 3000
xset r rate $XSET_DELAY $XSET_RATE xset r rate $XSET_DELAY $XSET_RATE
# exec /home/kevin/Downloads/dwm/reload-dwm.sh # exec /home/kevin/Downloads/dwm/reload-dwm.sh
{{ if eq .chezmoi.hostname "nzxt" }}
# dunst & # dunst &
/usr/lib/notification-daemon-1.0/notification-daemon & /usr/lib/notification-daemon-1.0/notification-daemon &
compton -b
picom &
imwheel & imwheel &
numlockx on & numlockx on &
start-pulseaudio-x11 & start-pulseaudio-x11 &
@ -24,8 +23,6 @@ start-pulseaudio-x11 &
# wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")" && /home/kevin/st/make-st.sh & # wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")" && /home/kevin/st/make-st.sh &
# wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") & # wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") &
wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") & wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") &
{{ end }}
exec i3
# # Statusbar loop # # Statusbar loop
# while true; do # while true; do

36
scripts/executable_glhf-metadata

@ -0,0 +1,36 @@
#!/usr/bin/env python
import requests
def get_tier_value(num):
url = f"https://www.glhfers.com/api/rom-metadata/{num}"
try:
response = requests.get(url)
response.raise_for_status() # Raise an error for bad status codes
data = response.json()
# Find the Tier trait value
for attribute in data.get("attributes", []):
if attribute.get("trait_type") == "Tier":
return attribute.get("value")
# value = attribute.get("value")
return "Tier not found"
except requests.exceptions.RequestException as e:
return f"Error fetching data: {e}"
def main():
while True:
try:
num = input("Enter a number: ")
if num.lower() == 'exit':
break
num = int(num) # Convert input to integer
tier_value = get_tier_value(num)
print(f"{tier_value}")
except ValueError:
print("Invalid input. Please enter a number or 'exit' to quit.")
if __name__ == "__main__":
main()

16
scripts/executable_ubuntu-start

@ -0,0 +1,16 @@
#!/bin/bash
picom &
pulseaudio --start
imwheel
xmodmap ~/.Xmodmap
redshift -O 3000
xset r rate $XSET_DELAY $XSET_RATE
/usr/lib/notification-daemon-1.0/notification-daemon &
picom &
imwheel &
numlockx on &
start-pulseaudio-x11 &
wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") &
Loading…
Cancel
Save