Updated config

This commit is contained in:
Eduard Urbach 2024-06-23 11:23:10 +02:00
parent 2449bfbccc
commit a789bfb97a
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
4 changed files with 7 additions and 6 deletions

View File

@ -74,6 +74,7 @@ alias hex "hexdump -C"
alias log "journalctl"
alias utc "date -u +'%Y-%m-%dT%H:%M:%SZ'"
alias dl "yt-dlp -x -f bestaudio"
alias mirror "wget -mpEk"
# Close all windows
alias closeall "wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic"

View File

@ -1,7 +1,6 @@
# Apps
$browser = firefox
$email = evolution
$files = nemo
$logout = wlogout
$lockscreen = swaylock
$menu = fuzzel
@ -12,6 +11,7 @@ $wallpaper = waypaper
# Terminal based
$editor = $terminal -e nvim
$files = $terminal -e yazi
$center = [float;size 960 540;center]
$floating = $center $terminal
$systeminfo = $center $terminal --hold -e fastfetch

View File

@ -23,5 +23,4 @@ bindle = $mod, S, exec, wtype ß
bindle = $mod, F, exec, wtype 🤣
bindle = $mod, H, exec, wtype ❤️
bindle = $mod, P, exec, wtype 🙏
bindle = $mod, T, exec, wtype 👍
bindle = $mod, W, exec, wtype 👋

View File

@ -7,15 +7,16 @@ map("n", "U", "<cmd>redo<cr>", "Redo")
map("n", "<Bslash>", "<cmd>ToggleWord<cr>", "Toggle word")
map("n", "<C-q>", "<cmd>close<cr>", "Close window")
map("n", "<leader>l", "<cmd>Lazy<cr>", "Lazy")
map({"n", "v"}, "q", "<cmd>qa<cr>", "Quit all")
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
map({"n", "i"}, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
map({"n", "i", "s", "v"}, "<C-s>", "<cmd>w<cr><esc>", "Save file")
-- Add or delete empty lines
map("n", "<C-j>", "<cmd>set paste<cr>m`o<esc>``<cmd>set nopaste<cr>", "Add empty line below")
map("n", "<C-k>", "<cmd>set paste<cr>m`O<esc>``<cmd>set nopaste<cr>", "Add empty line above")
map("n", "<A-j>", "m`<cmd>+g/\\m^\\s*$/d<cr>``<cmd>noh<cr>", "Delete empty line below")
map("n", "<A-k>", "m`<cmd>-g/\\m^\\s*$/d<cr>``<cmd>noh<cr>", "Delete empty line above")
map("n", "<C-j>", "<cmd>set paste<cr>m`O<esc>``<cmd>set nopaste<cr>", "Add empty line above")
map("n", "<C-k>", "m`<cmd>-g/\\m^\\s*$/d<cr>``<cmd>noh<cr>", "Delete empty line above")
map("n", "<A-j>", "<cmd>set paste<cr>m`o<esc>``<cmd>set nopaste<cr>", "Add empty line below")
map("n", "<A-k>", "m`<cmd>+g/\\m^\\s*$/d<cr>``<cmd>noh<cr>", "Delete empty line below")
-- Quick movement
map("n", "J", "}", "Next paragraph")