Commit 417dac1
xxwhirlpool
·
2026-10-25 22:42:12 -0400 EDT
parent 1853830
laptop cleanup
5 files changed,
+35,
-18
+22,
-10
1@@ -85,26 +85,22 @@ fi
2 ######################################
3
4 # general
5-alias icat="kitty +kitten icat"
6+alias icat="kitten icat"
7 alias fd="fdfind"
8 alias neofetch="hyfetch"
9 alias fastfetch="hyfetch"
10 alias bat="batcat"
11 alias cat="bat --paging=never"
12-alias rced="micro ~/.bashrc && source ~/.bashrc"
13-alias ps="ps auxww"
14+alias rced="$EDITOR ~/.bashrc && source ~/.bashrc"
15 alias dd="askdd"
16 alias copy="xclip -sel clipboard"
17-alias open="xdg-open &>/dev/null"
18+alias open="xdg-open"
19 alias c="clear"
20 alias updupgr="sudo apt update && sudo apt upgrade"
21-alias freeze="freeze -c user"
22-alias glow="glow -p"
23 alias unfuckwifi="sudo systemctl restart NetworkManager"
24 alias uptime="uptime -p"
25 alias irc="senpai"
26-alias xmpp="profanity"
27-alias email="neomutt"
28+alias email="aerc"
29 alias ip="ip -c"
30
31 # some cd bookmarks
32@@ -124,20 +120,20 @@ alias gitall="git remote | xargs -L1 git push --all"
33 alias gyolo="git add . && git commit -m 'yolo'"
34 alias gitd="git diff --staged"
35 alias gitlc="git diff HEAD~"
36-alias gdiff="gitd"
37 alias gits="git status"
38 alias gita="git add ."
39
40 # dev
41 alias irb="rv run irb"
42 alias ipy="python3 -i"
43+alias ijs="node"
44
45 # vpn split tunnel aliases based on a small script @ ~/.local/bin/mvpn
46 alias mftp="mvpn filezilla"
47 alias mterm="mvpn kitty"
48
49 # servers
50-alias kssh="kitty +kitten ssh" # fujo, fujoat, goldstar, ncc1701
51+alias kssh="kitten ssh" # fujo, fujoat, goldstar, ncc1701
52
53 ######################################
54 # variables
55@@ -187,6 +183,16 @@ export GOPATH="$HOME/.go"
56 # editor
57 export EDITOR="/usr/bin/micro"
58
59+export ADDRBOOK_PATH="$HOME/.local/addrbook"
60+export PATH="$PATH:$HOME/.local/addrbook"
61+
62+export PATH="$PATH:$HOME/Scripts/perl"
63+export PATH="$PATH:$HOME/Scripts/python"
64+export PATH="$PATH:$HOME/Scripts/ruby"
65+export PATH="$PATH:$HOME/Scripts/shell"
66+
67+export PATH="$PATH:$HOME/Projects/mine/urlref.pl"
68+
69 ######################################
70 # functions
71 ######################################
72@@ -256,6 +262,12 @@ bitrate() {
73 echo "$(file "$1" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " " )" kbps
74 }
75
76+# this wouldn't work in a script
77+# so it's here
78+catfunc() {
79+ declare -f "$1" || echo "$1 does not exist"
80+}
81+
82 portfree() {
83 while
84 port=$(shuf -n 1 -i 1024-65535)
+0,
-3
1@@ -1,9 +1,6 @@
2 --output '%(title)s.%(ext)s'
3 --restrict-filenames
4
5---merge-output-format mkv
6---remux-video mkv
7-
8 --embed-subs
9 --embed-thumbnail
10 --embed-metadata
+6,
-2
1@@ -1,5 +1,9 @@
2 # misc
3
4-## ./sddm_themes/theme.conf
5+## `./sddm_themes/theme.conf`
6
7-copy to `/usr/share/sddm/themes/lubuntu/theme.conf`
8+copy to `/usr/share/sddm/themes/lubuntu/theme.conf`:
9+
10+```bash
11+sudo cp ./sddm_themes/themes.conf /usr/share/sddm/themes/lubuntu/theme.conf
12+```
+5,
-1
1@@ -1,3 +1,7 @@
2 # replace the login screen wallpaper
3
4-copy `$HOME/dotfiles/themes/wallpapers/3840x2160/login.png` to `/usr/share/sddm/themes/lubuntu/wall.png` (overwrite `wall.png`)
5+copy `$HOME/dotfiles/themes/wallpapers/3840x2160/login.png` to `/usr/share/sddm/themes/lubuntu/wall.png` (overwrite `wall.png`):
6+
7+```bash
8+sudo cp $HOME/dotfiles/themes/wallpapers/3840x2160/login.png /usr/share/sddm/themes/lubuntu/wall.png
9+```
R scripts/Scripts/ruby/paste.rb =>
scripts/Scripts/ruby/picopaste.rb
+2,
-2
1@@ -16,10 +16,10 @@ editor = ENV["EDITOR"] ||= "nano"
2 # open tmpfile in editor
3 system("#{editor} #{tmpfp}")
4
5-# check if tmpfile exists or is empty
6+# check if tmpfile doesn't exist or is empty
7 # if one or the other, exit here
8 if !File.exist?("#{tmpfp}") || File.empty?("#{tmpfp}")
9- puts "ERROR: #{tmpfp} does not exist or is empty"
10+ puts "error: #{tmpfp} does not exist or is empty"
11 exit 1
12 end
13