summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/X/dunst/dunstrc12
-rw-r--r--config/essentials/nvim/after/plugin/autoclose.lua2
-rw-r--r--config/essentials/nvim/after/plugin/luasnip.lua10
-rw-r--r--config/essentials/nvim/lua/user/packer.lua1
-rw-r--r--config/essentials/nvim/lua/user/remap.lua1
-rw-r--r--config/essentials/nvim/lua/user/zk.lua5
-rw-r--r--config/essentials/zsh/.zshrc30
-rw-r--r--config/essentials/zsh/aliases.zsh24
-rw-r--r--config/essentials/zsh/functions.zsh16
-rw-r--r--config/extra/mutt/configs/raymaekers.luca@gmail.com2
-rw-r--r--config/extra/mutt/configs/tlast.hirende@gmail.com2
-rw-r--r--config/extra/mutt/configs/tlast723@gmail.com2
-rw-r--r--config/extra/mutt/configs/tlast@murena.io2
-rw-r--r--config/home/.zshenv1
-rw-r--r--config/hyprland/hypr/hyprland.conf4
-rwxr-xr-xconfig/hyprland/hypr/startup.sh5
-rw-r--r--config/theme/user-dirs.dirs8
17 files changed, 98 insertions, 29 deletions
diff --git a/config/X/dunst/dunstrc b/config/X/dunst/dunstrc
index f4d3a29..71998b9 100644
--- a/config/X/dunst/dunstrc
+++ b/config/X/dunst/dunstrc
@@ -33,7 +33,7 @@
origin = top-center
# Offset from the origin
- offset = 10x26
+ offset = 0x10
# Scale factor. It is auto-detected if value is 0.
scale = 0
@@ -90,7 +90,7 @@
frame_width = 1
# Defines color of the frame around the notification window.
- frame_color = "#00000"
+ frame_color = "#969B95"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
@@ -212,7 +212,7 @@
max_icon_size = 32
# Paths to default icons (only neccesary when not using recursive icon lookup)
- icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
+ icon_path = /usr/share/icons/
### History ###
@@ -316,9 +316,9 @@
timeout = 6
[urgency_normal]
- background = "#393d4b"
- foreground = "#80a0c0"
- frame_color = "#81a1c1"
+ background = "#b48ead"
+ foreground = "#2e3440"
+ frame_color = "#2e3440"
timeout = 5
# Icon for notifications with normal urgency, uncomment to enable
#default_icon = /path/to/icon
diff --git a/config/essentials/nvim/after/plugin/autoclose.lua b/config/essentials/nvim/after/plugin/autoclose.lua
index 9dffb8a..89078ef 100644
--- a/config/essentials/nvim/after/plugin/autoclose.lua
+++ b/config/essentials/nvim/after/plugin/autoclose.lua
@@ -14,7 +14,7 @@ require("autoclose").setup({
["`"] = { escape = true, close = true, pair = "``"},
},
options = {
- disabled_filetypes = { "text", "telekasten", "diff", "gitcommit", "fugitive" },
+ disabled_filetypes = { "text", "telekasten", "groff", "diff", "gitcommit", "fugitive" },
disable_when_touch = true,
},
})
diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua
index eabc0be..d1da9b3 100644
--- a/config/essentials/nvim/after/plugin/luasnip.lua
+++ b/config/essentials/nvim/after/plugin/luasnip.lua
@@ -72,6 +72,11 @@ ls.add_snippets("html", {
</html>
]],
{i(1, "title"), i(2), i(3, "Header"), i(0)})),
+ s("sty", fmt(
+ [[
+ <link rel="stylesheet" type="text/css" href="{}">{}
+ ]],
+ { i(1), i(0) })),
})
ls.add_snippets("java", {
@@ -183,6 +188,11 @@ ls.add_snippets("javascript", {
]],
{ i(1), i(2, "res.send(\"Hello world!\")"), i(0) })),
s("cerr", t "console.error('Error:', err);"),
+ s("gel", fmt(
+ [[
+ let {} = document.getElementById('{}');{}
+ ]],
+ { i(1), rep(1), i(0) })),
})
ls.add_snippets("telekasten", {
diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua
index 3933838..c9e27a2 100644
--- a/config/essentials/nvim/lua/user/packer.lua
+++ b/config/essentials/nvim/lua/user/packer.lua
@@ -40,6 +40,7 @@ return require('packer').startup(function(use)
use('ojroques/vim-oscyank', {branch = "main"})
use("potamides/pantran.nvim")
use('alx741/vinfo')
+ use('github/copilot.vim')
-- objects
use('michaeljsmith/vim-indent-object')
diff --git a/config/essentials/nvim/lua/user/remap.lua b/config/essentials/nvim/lua/user/remap.lua
index 25052f7..0fe4164 100644
--- a/config/essentials/nvim/lua/user/remap.lua
+++ b/config/essentials/nvim/lua/user/remap.lua
@@ -64,6 +64,7 @@ vim.keymap.set("n", "<Leader>x", "<cmd>!chmod +x %<cr>", { noremap = true, silen
-- replace
vim.keymap.set("n", "<Leader>sf", [[:%s/\<<C-r><C-w>\>/<C-r><C-w><C-w>/gI<Left><Left><Left>]])
vim.keymap.set("n", "<Leader>sl", [[:s/\<<C-r><C-w>\>/<C-r><C-w><C-w>/gI<Left><Left><Left>]])
+vim.keymap.set("n", "<LocalLeader>f", "<cmd>.!fold -w 80 -s<cr>")
-- write
vim.keymap.set("n", "<LocalLeader>w", "<cmd>write<cr>", { noremap = true })
diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua
index e70b9cc..a5e06d8 100644
--- a/config/essentials/nvim/lua/user/zk.lua
+++ b/config/essentials/nvim/lua/user/zk.lua
@@ -45,6 +45,11 @@ require('telekasten').setup({
template_new_note = home .. "/" .. "templates/new_note.md",
new_note_filename = "title",
},
+ SoftwareDesign = {
+ home = home .. "/" .. "SoftwareDesign",
+ template_new_note = home .. "/" .. "templates/new_note.md",
+ new_note_filename = "title",
+ },
businessIT = {
home = home .. "/" .. "businessIT",
template_new_note = home .. "/" .. "templates/new_note.md",
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 8ba4ece..83da0f6 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -28,7 +28,7 @@ zle -N add-surround surround
zle -N change-surround surround
compinit
-if grep -qi "debian\|ubuntu" /etc/os-release 2> /dev/null
+if grep -qi "debian\|ubuntu" /etc/os-release 2>/dev/null
then
sfiles=(
/usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
@@ -65,6 +65,21 @@ bindkey "^Xe" edit-command-line
bindkey "^[." insert-last-word
bindkey "^['" quote-line
+isTextFile()
+{
+ if [ ! -f "$1" ]
+ then
+ return 1
+ fi
+
+ file_type=$(file -b --mime-type "$1")
+ if [[ "$file_type" == text/* ]]
+ then
+ return
+ fi
+ return 1
+}
+
# rehash hook
zshcache_time="$(date +%s%N)"
autoload -Uz add-zsh-hook
@@ -97,7 +112,18 @@ function osc7 {
print -n "\e]7;file://${HOSTNAME}${uri}\e\\"
}
add-zsh-hook -Uz chpwd osc7
-
+command_not_found_handler () {
+ isTextFile "$1" ||
+ echo "zsh: command not found: $1" >&2
+}
+# open file with file name
+open_file() {
+ if [ ${1:0:2} != "./" ] && isTextFile "$1"
+ then
+ "$EDITOR" "$1"
+ fi
+}
+add-zsh-hook -Uz preexec open_file
# prompt
PS1=' %B%(#.%F{1}.%F{13})[%n%b%f@%B%F{6}%m]%b%f %3~ '
diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh
index ad0fbd9..ae29c35 100644
--- a/config/essentials/zsh/aliases.zsh
+++ b/config/essentials/zsh/aliases.zsh
@@ -1,7 +1,7 @@
#!/bin/zsh
# s/alias \([^-]\)/alias -g \1
-if grep -qi "debian\|ubuntu" /etc/os-release
+if grep -qi "debian\|ubuntu" /etc/os-release 2> /dev/null
then
alias aptup='apt update && apt upgrade -y'
fi
@@ -19,6 +19,7 @@ else
alias -g clipp='xclip -selection clipboard -r'
alias -g clipo='xclip -o -selection clipboard -r'
fi
+alias clipic='clipo > /tmp/pic.png'
# Programs
alias vi='nvim'
@@ -53,7 +54,7 @@ alias lst3='ls --tree -L3'
alias ls.='ls -dl .*'
which exa >/dev/null 2>&1 &&
alias ls='exa --sort extension --group-directories-first' ||
- alias ls='ls --color --group-directories-fist --sort=extension'
+ alias ls='ls --color --group-directories-first --sort=extension'
# pacman aliases
alias pac='pacman'
@@ -118,6 +119,7 @@ alias vidlen='ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i'
alias whatsmyip='curl -s "ifconfig.co"'
alias icognito='unset HISTFILE'
alias webcam='v4l2-ctl --set-fmt-video=width=1280,height=720; mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0 --profile=low-latency --untimed --no-resume-playback'
+alias capture='echo "Y" | wf-recorder -o "$(hyprctl -j monitors | jq -r '\''.[].name'\'' | fzf)" --codec=vp8_vaapi --device=/dev/dri/renderD128 -f output.webm -D'
alias qrclipo='qrencode -s 16 "$(clipo)" -o - | imv -w "imv - $(clipo)" -'
alias airpods='bluetoothctl connect 60:93:16:24:00:10'
alias hotpsot='nmcli dev wifi hotspot ifname wlan0 ssid wiefie password "peepeepoopoo"'
@@ -130,23 +132,27 @@ xargs -I {} ln -sf "$HOME/.config/mutt/configs/{}" $HOME/.config/mutt/muttrc'
alias fusephone='sshfs myphone: /media/phone'
alias ttyper='ttyper -l english1000 -w 100'
+alias wgup='doas wg-quick up wg0'
+alias wgdown='doas wg-quick down wg0'
+
# NPM
alias npi="npm init --yes"
# Python
alias penv='python3 -m venv env'
+alias phttp='python3 -m http.server'
alias pipreq='pip install -r requirements.txt'
alias -g '...'='../..'
alias -g '....'='../../..'
alias -g bg='&; disown'
-alias -g cx='chmod +x'
-alias -g ch='chown ${USER}:${USER} -R'
+alias cx='chmod +x'
+alias ch='chown ${USER}:${USER} -R'
alias -g hl='--help |& less -r'
alias kll='killall'
alias pi='ping archlinux.org -c4'
-alias -g sba='source env/bin/activate || source bin/activate'
-alias -g smc='systemctl'
+alias sba='source env/bin/activate || source bin/activate'
+alias smc='systemctl'
alias ssc='doas smc'
alias smcu='smc --user'
alias zsr='source ${ZDOTDIR:-$HOME}/.zshrc && rehash'
@@ -197,6 +203,7 @@ alias cdd='cd $HOME/dl'
alias cdp='cd $HOME/pics'
alias cdrs='cd /srv/'
alias cdng='cd /etc/nginx'
+alias czo='cd $HOME/zot/'
# googoo aliases
alias o.='o .'
@@ -218,10 +225,6 @@ alias fzps='ps aux | tail +2 | fzf --bind \
alias asf='alias | fzf'
alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp"
-alias -s conf="$EDITOR"
-alias -s txt="$EDITOR"
-alias -s c="$EDITOR"
-alias -s z80="$EDITOR"
alias -s zip='unzip -l'
alias -s tar='tar tf'
@@ -229,6 +232,7 @@ alias dcb='docker build'
alias dcbt='docker build -t'
alias dce='docker exec'
alias dcet='docker exec -it'
+alias dcmp='docker compose up -d'
alias cfg='git --git-dir=$HOME/src/dotfiles/.git --work-tree=$HOME/src/dotfiles'
# oh-my-zsh git aliases
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index 3243750..5c4d609 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -29,7 +29,7 @@ nvf() {
fi
if test -f "$match"
then
- vim "$match" && return
+ $EDITOR "$match" && return
else
die "no match." && return 1
fi
@@ -103,10 +103,10 @@ esc () {
}
delfile () {
- curl "${2:-https://up.kallipso.be/delete/$1}"
+ curl "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"
}
upfile () {
- curl -F "file=@\"$1\"" ${2:-http://0x0.st}
+ curl -F "file=@\"$1\"" ${2:-https://upfast.cronyakatsuki.xyz}
}
sgd () {
@@ -250,3 +250,13 @@ fpass () {
fzf |
xargs pass show -c
}
+
+oclip ()
+{
+ printf "\033]52;c;$(echo -n "$@" | base64)\a"
+}
+
+sms ()
+{
+ ssh phone sendmsg "$1" "'$2'"
+}
diff --git a/config/extra/mutt/configs/raymaekers.luca@gmail.com b/config/extra/mutt/configs/raymaekers.luca@gmail.com
index 5dded3d..ffb7003 100644
--- a/config/extra/mutt/configs/raymaekers.luca@gmail.com
+++ b/config/extra/mutt/configs/raymaekers.luca@gmail.com
@@ -1,6 +1,6 @@
set from = "raymaekers.luca@gmail.com"
set realname = "Raymaekers Luca"
-set my_pass = "`pass tokens/raymaekers.luca@gmail.com`"
+set my_pass = "`pass keys/tokens/gmail/raymaekers.luca@gmail.com`"
# IMAP settings
set imap_user = "raymaekers.luca@gmail.com"
diff --git a/config/extra/mutt/configs/tlast.hirende@gmail.com b/config/extra/mutt/configs/tlast.hirende@gmail.com
index c33d04a..14dac98 100644
--- a/config/extra/mutt/configs/tlast.hirende@gmail.com
+++ b/config/extra/mutt/configs/tlast.hirende@gmail.com
@@ -1,6 +1,6 @@
set from = "tlast.hirende@gmail.com"
set realname = "Raymaekers Luca"
-set my_pass = "`pass tokens/tlast.hirende@gmail.com`"
+set my_pass = "`pass keys/tokens/gmail/tlast.hirende@gmail.com`"
# IMAP settings
set imap_user = "tlast.hirende@gmail.com"
diff --git a/config/extra/mutt/configs/tlast723@gmail.com b/config/extra/mutt/configs/tlast723@gmail.com
index d646673..44d68ea 100644
--- a/config/extra/mutt/configs/tlast723@gmail.com
+++ b/config/extra/mutt/configs/tlast723@gmail.com
@@ -1,6 +1,6 @@
set from = "tlast723@gmail.com"
set realname = "Raymaekers Luca"
-set my_pass = "`pass tokens/tlast723@gmail.com`"
+set my_pass = "`pass keys/tokens/gmail/tlast723@gmail.com`"
# IMAP settings
set imap_user = "tlast723@gmail.com"
diff --git a/config/extra/mutt/configs/tlast@murena.io b/config/extra/mutt/configs/tlast@murena.io
index 1f59296..a1db524 100644
--- a/config/extra/mutt/configs/tlast@murena.io
+++ b/config/extra/mutt/configs/tlast@murena.io
@@ -1,5 +1,5 @@
set my_user = "tlast@murena.io"
-set my_pass = "`pass tokens/tlast@murena.io`"
+set my_pass = "`pass keys/tokens/tlast@murena.io`"
set smtp_url = "smtp://$my_user:$my_pass@mail.ecloud.global:587/"
set imap_user = $my_user
diff --git a/config/home/.zshenv b/config/home/.zshenv
index ab0d6bc..d1cd73a 100644
--- a/config/home/.zshenv
+++ b/config/home/.zshenv
@@ -42,6 +42,7 @@ export QT_QPA_PLATFORMTHEME="qt5ct"
# export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
# export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
+export PASSWORD_STORE_DIR="$HOME/src/password-store"
export PASSWORD_STORE_CLIP_TIME=5
# old
diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf
index 36f85a5..8aa437e 100644
--- a/config/hyprland/hypr/hyprland.conf
+++ b/config/hyprland/hypr/hyprland.conf
@@ -4,9 +4,7 @@ monitor=,preferred,auto,1
source = ./env.conf
-exec-once = gammastep & waybar
-exec-once = swaybg -i ~/pics/wallpaper
-exec-once = wl-paste --watch cliphist store
+exec-once = $HOME/.config/hypr/startup.sh
input {
kb_layout = us
diff --git a/config/hyprland/hypr/startup.sh b/config/hyprland/hypr/startup.sh
new file mode 100755
index 0000000..ab0e48b
--- /dev/null
+++ b/config/hyprland/hypr/startup.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+swaybg -i ~/pics/wallpaper &
+waybar &
+gammastep &
+wl-paste --watch cliphist store &
diff --git a/config/theme/user-dirs.dirs b/config/theme/user-dirs.dirs
new file mode 100644
index 0000000..d5389fd
--- /dev/null
+++ b/config/theme/user-dirs.dirs
@@ -0,0 +1,8 @@
+XDG_DOCUMENTS_DIR="$HOME/docs"
+XDG_DOWNLOAD_DIR="$HOME/dl"
+XDG_MUSIC_DIR="$HOME/music"
+XDG_PICTURES_DIR="$HOME/pics"
+XDG_PUBLICSHARE_DIR="$HOME/"
+XDG_VIDEOS_DIR="$HOME/vids"
+XDG_DESKTOP_DIR="$HOME/"
+XDG_TEMPLATES_DIR="$HOME/"