merge: work
This commit is contained in:
commit
5a1baa270a
@ -67,7 +67,7 @@ window:
|
|||||||
#
|
#
|
||||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||||
# The value `0.0` is completely transparent and `1.0` is opaque.
|
# The value `0.0` is completely transparent and `1.0` is opaque.
|
||||||
opacity: 0.8
|
opacity: 0.9
|
||||||
|
|
||||||
|
|
||||||
# Startup Mode (changes require restart)
|
# Startup Mode (changes require restart)
|
||||||
|
@ -294,14 +294,14 @@ globalkeys = gears.table.join(
|
|||||||
awful.key(
|
awful.key(
|
||||||
{}, "XF86AudioRaiseVolume",
|
{}, "XF86AudioRaiseVolume",
|
||||||
function()
|
function()
|
||||||
awful.spawn("set-vol +5")
|
awful.spawn("set-vol +2")
|
||||||
end,
|
end,
|
||||||
{description = "raise volume", group = "shortcut"}
|
{description = "raise volume", group = "shortcut"}
|
||||||
),
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{}, "XF86AudioLowerVolume",
|
{}, "XF86AudioLowerVolume",
|
||||||
function()
|
function()
|
||||||
awful.spawn("set-vol -5")
|
awful.spawn("set-vol -2")
|
||||||
end,
|
end,
|
||||||
{description = "lower volume", group = "shortcut"}
|
{description = "lower volume", group = "shortcut"}
|
||||||
),
|
),
|
||||||
|
@ -7,4 +7,4 @@ require'lspconfig'.pyright.setup {
|
|||||||
vim.cmd("let g:black_linelength=79")
|
vim.cmd("let g:black_linelength=79")
|
||||||
|
|
||||||
-- keybindings
|
-- keybindings
|
||||||
vim.keymap.set("n", "<C-f>", ":Black<CR>")
|
vim.keymap.set("n", "<Leader>f", "<cmd>Black<CR>")
|
||||||
|
@ -27,5 +27,4 @@ return function(client, bufnr)
|
|||||||
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts)
|
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts)
|
||||||
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts)
|
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts)
|
||||||
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
||||||
vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
|
|
||||||
end
|
end
|
||||||
|
@ -13,8 +13,8 @@ set $wallpapers $HOME/.config/wallpapers
|
|||||||
set $lock swaylock -F -f -i $wallpapers/lock.png
|
set $lock swaylock -F -f -i $wallpapers/lock.png
|
||||||
set $screenshot grim - | wl-copy
|
set $screenshot grim - | wl-copy
|
||||||
set $screenshot_rect grim -g "$(slurp)" - | wl-copy
|
set $screenshot_rect grim -g "$(slurp)" - | wl-copy
|
||||||
set $raise_volume set-vol +5
|
set $raise_volume set-vol +2
|
||||||
set $lower_volume set-vol -5
|
set $lower_volume set-vol -2
|
||||||
set $raise_backlight set-light +10
|
set $raise_backlight set-light +10
|
||||||
set $lower_backlight set-light -10
|
set $lower_backlight set-light -10
|
||||||
|
|
||||||
|
@ -541,9 +541,9 @@
|
|||||||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
|
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
|
||||||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3
|
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3
|
||||||
# Show duration of the last command if takes at least this many seconds.
|
# Show duration of the last command if takes at least this many seconds.
|
||||||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
|
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0
|
||||||
# Show this many fractional digits. Zero means round to seconds.
|
# Show this many fractional digits. Zero means round to seconds.
|
||||||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
|
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=2
|
||||||
# Duration format: 1d 2h 3m 4s.
|
# Duration format: 1d 2h 3m 4s.
|
||||||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
|
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
|
3
.zshenv
3
.zshenv
@ -1,6 +1,7 @@
|
|||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
export VIRTUAL_ENV="$PYENV_ROOT"
|
||||||
|
|
||||||
path=(~/bin ~/.local/bin "$PYENV_ROOT"/bin $path)
|
path=(~/bin ~/.local/bin "$VIRTUAL_ENV"/bin $path)
|
||||||
|
|
||||||
export XDG_CACHE_HOME="$HOME"/.cache
|
export XDG_CACHE_HOME="$HOME"/.cache
|
||||||
export XDG_CONFIG_HOME="$HOME"/.config
|
export XDG_CONFIG_HOME="$HOME"/.config
|
||||||
|
47
bin/dkpurge
47
bin/dkpurge
@ -1,5 +1,35 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$1" == '-h' ] || [ "$1" == '--help' ]; then
|
||||||
|
cat << EOF
|
||||||
|
Usage: $0 [Default-answer]
|
||||||
|
Delete all Docker ressources.
|
||||||
|
root permission not necessary so the binary can be placed in
|
||||||
|
$HOME/[.local/]bin.
|
||||||
|
|
||||||
|
| Ressource | Answer | Description |
|
||||||
|
| ---------- | ------ | -------------------------- |
|
||||||
|
| Containers | [Y]es | Remove stopped containers |
|
||||||
|
| | [A]ll | Remove all containers |
|
||||||
|
| | [N]o | Skip |
|
||||||
|
| | | |
|
||||||
|
| Volumes | [Y]es | Remove unused volumes |
|
||||||
|
| | [A]ll | Remove unused volumes |
|
||||||
|
| | [N]o | Skip |
|
||||||
|
| | | |
|
||||||
|
| Images | [Y]es | Remove unused local images |
|
||||||
|
| | [A]ll | Remove all unused images |
|
||||||
|
| | [N]o | Skip |
|
||||||
|
| | | |
|
||||||
|
| Networks | [Y]es | Remove unused networks |
|
||||||
|
| | [A]ll | Remove unused networks |
|
||||||
|
| | [N]o | Skip |
|
||||||
|
EOF
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PS="$(docker container ls -aq 2> /dev/null)"
|
PS="$(docker container ls -aq 2> /dev/null)"
|
||||||
|
|
||||||
if [ "$?" != 0 ] && [ "$EUID" != 0 ]; then
|
if [ "$?" != 0 ] && [ "$EUID" != 0 ]; then
|
||||||
@ -13,12 +43,14 @@ NET="$(docker network ls -q 2> /dev/null)"
|
|||||||
|
|
||||||
DEFAULT_NET="$(docker network ls -q -f name=bridge -f name=host -f name=none)"
|
DEFAULT_NET="$(docker network ls -q -f name=bridge -f name=host -f name=none)"
|
||||||
|
|
||||||
|
ANS="$1"
|
||||||
|
[ -z "$1" ] && READ="read -r ANS"
|
||||||
|
|
||||||
if [ -n "$PS" ]; then
|
if [ -n "$PS" ]; then
|
||||||
docker container ls -a
|
docker container ls -a
|
||||||
|
|
||||||
echo -n "Prune Containers? [Y/n/a] "
|
echo -n "Prune Containers? [Y/n/a] "
|
||||||
read -r ANS
|
$READ
|
||||||
case "${ANS,,}" in
|
case "${ANS,,}" in
|
||||||
'y'|'yes'|'')
|
'y'|'yes'|'')
|
||||||
echo "$PS" | xargs docker rm 2> /dev/null
|
echo "$PS" | xargs docker rm 2> /dev/null
|
||||||
@ -34,7 +66,7 @@ if [ -n "$VOL" ]; then
|
|||||||
docker volume ls
|
docker volume ls
|
||||||
|
|
||||||
echo -n "Prune Volumes? [Ya/n] "
|
echo -n "Prune Volumes? [Ya/n] "
|
||||||
read -r ANS
|
$READ
|
||||||
case "${ANS,,}" in
|
case "${ANS,,}" in
|
||||||
'y'|'yes'|'a'|'all'|'')
|
'y'|'yes'|'a'|'all'|'')
|
||||||
echo "$VOL" | xargs docker volume rm -f 2> /dev/null
|
echo "$VOL" | xargs docker volume rm -f 2> /dev/null
|
||||||
@ -47,10 +79,15 @@ if [ -n "$IMG" ]; then
|
|||||||
docker image ls
|
docker image ls
|
||||||
|
|
||||||
echo -n "Prune Images? [Y/n/a] "
|
echo -n "Prune Images? [Y/n/a] "
|
||||||
read -r ANS
|
$READ
|
||||||
case "${ANS,,}" in
|
case "${ANS,,}" in
|
||||||
'y'|'yes'|'')
|
'y'|'yes'|'')
|
||||||
docker image prune -f
|
for img in $IMG; do
|
||||||
|
if docker image inspect "$img" | grep '"RepoTags": \[]' &> /dev/null; then
|
||||||
|
TO_CLEAN="$TO_CLEAN $img"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "$TO_CLEAN" | xargs docker image rm -f 2> /dev/null
|
||||||
;;
|
;;
|
||||||
'a'|'all')
|
'a'|'all')
|
||||||
echo "$IMG" | xargs docker image rm -f 2> /dev/null
|
echo "$IMG" | xargs docker image rm -f 2> /dev/null
|
||||||
@ -63,7 +100,7 @@ if [ -n "$NET" ] && [ "$NET" != "$DEFAULT_NET" ]; then
|
|||||||
docker network ls
|
docker network ls
|
||||||
|
|
||||||
echo -n "Prune Networks? [Ya/n] "
|
echo -n "Prune Networks? [Ya/n] "
|
||||||
read -r ANS
|
$READ
|
||||||
case "${ANS,,}" in
|
case "${ANS,,}" in
|
||||||
'y'|'yes'|'a'|'all'|'')
|
'y'|'yes'|'a'|'all'|'')
|
||||||
docker network prune -f
|
docker network prune -f
|
||||||
|
Loading…
Reference in New Issue
Block a user