-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.fish
89 lines (72 loc) · 6.29 KB
/
config.fish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
set fish_greeting ""
################################################################################
# fish setup
################################################################################
# sudo apt install fish
################################################################################
# prompt https://github.com/fish-shell/fish-shell/blob/master/share/functions/fish_prompt.fish
################################################################################
# also choose colors with fish_config
function fish_prompt --description 'Write out the prompt'
set -l last_pipestatus $pipestatus
set -l last_status $status
set -l normal (set_color normal)
if set -q VIRTUAL_ENV
echo -n -s "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
end
# Write pipestatus
set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
echo -n -s $normal "["(date "+%H:%M:%S")"]" (set_color 5E81AC) "[$USER]"(set_color 81A1C1) "["(prompt_hostname)"] " (set_color D08770) (prompt_pwd) $normal (fish_vcs_prompt) $normal $prompt_status $suffix " "
end
################################################################################
# z jump around - https://github.com/sjl/z-fish
################################################################################
. ~/.config/fish/z-fish/z.fish
################################################################################
# aliases
################################################################################
alias c='clear'
alias r='reset'
alias q='exit'
alias mv='mv -i'
alias ..="cd .."
alias ...='cd ../..'
alias ....='cd ../../..'
alias lll='ls -lh'
alias lll='ls -lha'
alias rm='rm -I'
alias install='sudo apt install'
alias update='sudo apt update'
alias upgrade='sudo apt upgrade'
alias vdd='vd $1 --csv-delimieter="|"'
alias weather='curl wttr.in/uzes'
alias speedtest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
################################################################################
# SYSTEM SERVICES
################################################################################
alias services-running='systemctl list-units --type=service --state=running'
alias services-failed='systemctl --failed'
function services-log --argument serv n
journalctl --lines=$n -f -u $serv -o cat
end
################################################################################
# GUAKE THEMES
################################################################################
alias guake_arthur="dconf write /apps/guake/style/font/palette \"'#3D3D35352A2A:#CDCD5C5C5C5C:#8686AFAF8080:#E8E8AEAE5B5B:#64649595EDED:#DEDEB8B88787:#B0B0C4C4DEDE:#BBBBAAAA9999:#555544444444:#CCCC55553333:#8888AAAA2222:#FFFFA7A75D5D:#8787CECEEBEB:#999966660000:#B0B0C4C4DEDE:#DDDDCCCCBBBB:#DDDDEEEEDDDD:#1C1C1C1C1C1C'\""
alias guake_day="dconf write /apps/guake/style/font/palette \"'#090903030000:#DBDB2D2D2020:#0101A2A25252:#FDFDEDED0202:#0101A0A0E4E4:#A1A16A6A9494:#B5B5E4E4F4F4:#A5A5A2A2A2A2:#5C5C58585555:#E8E8BBBBD0D0:#3A3A34343232:#4A4A45454343:#80807D7D7C7C:#D6D6D5D5D4D4:#CDCDABAB5353:#F7F7F7F7F7F7:#4A4A45454343:#F7F7F7F7F7F7'\""
alias guake_github="dconf write /apps/guake/style/font/palette \"'#3E3E3E3E3E3E:#97970B0B1616:#070796962A2A:#F8F8EEEEC7C7:#00003E3E8A8A:#E9E946469191:#8989D1D1ECEC:#FFFFFFFFFFFF:#666666666666:#DEDE00000000:#8787D5D5A2A2:#F1F1D0D00707:#2E2E6C6CBABA:#FFFFA2A29F9F:#1C1CFAFAFEFE:#FFFFFFFFFFFF:#3E3E3E3E3E3E:#F4F4F4F4F4F4'\""
alias guake_linux="dconf write /apps/guake/style/font/palette \"'#000000000000:#aaaa00000000:#0000aaaa0000:#aaaa55550000:#00000000aaaa:#aaaa0000aaaa:#0000aaaaaaaa:#aaaaaaaaaaaa:#555555555556:#ffff55555555:#5555ffff5555:#ffffffff5555:#55555555ffff:#ffff5555ffff:#5555ffffffff:#ffffffffffff:#ffffffffffff:#000000000000'\""
alias guake_sl="dconf write /apps/guake/style/font/palette \"'#000027273131:#d0d01b1b2424:#727289890505:#a5a577770505:#20207575c7c7:#c6c61b1b6e6e:#252591918585:#72729f9fcfcf:#00001e1e2626:#bdbd36361212:#46465a5a6161:#525267676f6f:#707081818383:#58585656b9b9:#818190908f8f:#fcfcf4f4dcdc:#525267676f6f:#fcfcf4f4dcdc'\""
alias guake_sdh="dconf write /apps/guake/style/font/palette \"'#000027273131:#D0D01B1B2424:#6B6BBEBE6C6C:#A5A577770505:#20207575C7C7:#C6C61B1B6E6E:#252591918585:#E9E9E2E2CBCB:#000063638888:#F4F415153B3B:#5050EEEE8484:#B1B17E7E2828:#17178D8DC7C7:#E1E14D4D8E8E:#0000B2B29E9E:#FCFCF4F4DCDC:#9B9BC1C1C2C2:#00001E1E2626'\""
alias guake_sd="dconf write /apps/guake/style/font/palette \"'#000027273131:#D0D01B1B2424:#727289890505:#A5A577770505:#20207575C7C7:#C6C61B1B6E6E:#252591918585:#E9E9E2E2CBCB:#00001E1E2626:#BDBD36361212:#46465A5A6161:#525267676F6F:#707081818383:#58585656B9B9:#818190908F8F:#FCFCF4F4DCDC:#707081818383:#00001E1E2626'\""
alias guake_sdarcula="dconf write /apps/guake/style/font/palette \"'#252529292A2A:#F2F248484040:#626296965555:#B6B688880000:#20207575C7C7:#79797F7FD4D4:#151596968D8D:#D2D2D8D8D9D9:#252529292A2A:#F2F248484040:#626296965555:#B6B688880000:#20207575C7C7:#79797F7FD4D4:#151596968D8D:#D2D2D8D8D9D9:#D2D2D8D8D9D9:#3D3D3F3F4141'\""
alias guake_nord="dconf write /apps/guake/style/font/palette \"'#3B3B42425252:#BFBF61616A6A:#A3A3BEBE8C8C:#EBEBCBCB8B8B:#8181A1A1C1C1:#B4B48E8EADAD:#8888C0C0D0D0:#E5E5E9E9F0F0:#4C4C56566A6A:#BFBF61616A6A:#A3A3BEBE8C8C:#EBEBCBCB8B8B:#8181A1A1C1C1:#B4B48E8EADAD:#8F8FBCBCBBBB:#ECECEFEFF4F4:#D8D8DEDEE9E9:#2E2E34344040'\""
alias guake_tomorrow="dconf write /apps/guake/style/font/palette \"'#000000000000:#C8C828282828:#71718C8C0000:#EAEAB7B70000:#41417171AEAE:#89895959A8A8:#3E3E99999F9F:#FFFFFEFEFEFE:#000000000000:#C8C828282828:#70708B8B0000:#E9E9B6B60000:#41417070AEAE:#89895858A7A7:#3D3D99999F9F:#FFFFFEFEFEFE:#4D4D4D4D4C4C:#FFFFFFFFFFFF'\""
################################################################################
# BLUETOOTH
################################################################################
alias WH-1000XM3-connect="bluetoothctl connect 14:3F:A6:A8:74:B8"
alias WH-1000XM3-disconnect="bluetoothctl disconnect 14:3F:A6:A8:74:B8"
alias UE-BOOM2-connect="bluetoothctl connect C0:28:8D:8F:98:30"
alias UE-BOOM2-disconnect="bluetoothctl disconnect C0:28:8D:8F:98:30"
alias bluetooth-connected="bluetoothctl devices | cut -f2 -d' ' | while read uuid; bluetoothctl info $uuid; end|grep -e 'Device\|Connected\|Name'"