Compare commits
13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
715651ffa8 | ||
|
|
0bae1471b2 | ||
|
|
e8c79d69e1 | ||
|
|
63472d5b51 | ||
|
|
6109fcdb48 | ||
|
|
b1e61391c4 | ||
|
|
407e8af538 | ||
|
|
7a64c68df7 | ||
|
|
02ad955e9c | ||
|
|
1d6d7238d0 | ||
| bd2db8dcf7 | |||
| 4d296eba2a | |||
| c2099170a7 |
15 changed files with 47 additions and 19 deletions
|
|
@ -4,7 +4,6 @@ alias myip="curl http://ip.ie.mk/get"
|
|||
alias ls="ls --color"
|
||||
alias grep="grep --color"
|
||||
alias virsh="virsh --connect qemu:///system"
|
||||
alias cal="cal -m"
|
||||
alias genpasswd="strings /dev/urandom | tr -cd '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c 32; echo"
|
||||
alias du="dust -r"
|
||||
alias jsonpp="python -m json.tool"
|
||||
|
|
|
|||
|
|
@ -23,16 +23,31 @@ shopt -s histappend
|
|||
[[ -f $HOME/.bash_colors ]] && source "$HOME/.bash_colors"
|
||||
[[ -f $HOME/.bash_functions ]] && source "$HOME/.bash_functions"
|
||||
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
while read -r completion ; do source "$completion" ; done < <(find $HOME/.bash_completion/*)
|
||||
|
||||
# Save working dir on every prompt.
|
||||
# export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"; pwd > $HOME/.cwd'
|
||||
export PS1="${Blue}\d \A ${Off}${Yellow}\u@\h: ${Off}\w ${Green}\$(parse_branch git)${BRed}\$(parse_branch fossil)${Off}\n-$ "
|
||||
|
||||
# more is less
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# Use fzf if installed.
|
||||
hash fzf 2>/dev/null && eval "$(fzf --bash)"
|
||||
export FZF_DEFAULT_OPTS='--border=horizontal --info=inline --no-reverse --height=50%'
|
||||
export FZF_DEFAULT_OPTS='--border=horizontal --info=inline --no-reverse --height=30%'
|
||||
|
||||
# Use gpg-agent as ssh agent (and get a nice graphical prompt).
|
||||
unset SSH_AGENT_PID
|
||||
|
|
|
|||
|
|
@ -407,9 +407,6 @@ history = 100000
|
|||
save_to_clipboard = true
|
||||
semantic_escape_chars = ",│`|:\"' ()[]{}<>\t"
|
||||
|
||||
[terminal.shell]
|
||||
program = "/bin/bash"
|
||||
|
||||
[window]
|
||||
decorations = "full"
|
||||
dynamic_padding = false
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[storage]
|
||||
driver = "overlay"
|
||||
runroot = "/run/user/1000"
|
||||
graphroot = "/home/vladan/.local/share/containers/storage"
|
||||
graphroot = "/home/vladanpopovic/.local/share/containers/storage"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[user]
|
||||
email = vladanovic@gmail.com
|
||||
email = vladan.popovic@hm.com
|
||||
name = Vladan Popovic
|
||||
[core]
|
||||
excludesfile = /home/vladan/.config/git/ignore
|
||||
|
|
|
|||
6
dotfiles/.config/nvim/after/lsp/ruff.lua
Normal file
6
dotfiles/.config/nvim/after/lsp/ruff.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-- ~/.config/nvim/after/lsp/ruff.lua
|
||||
return {
|
||||
cmd = { "ruff", "server" },
|
||||
filetypes = { "python" },
|
||||
root_dir = vim.fs.root(0, { ".git/", "pyproject.toml" }),
|
||||
}
|
||||
|
|
@ -67,6 +67,7 @@ end
|
|||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
|
||||
vim.lsp.enable('ty')
|
||||
vim.lsp.enable('ruff')
|
||||
|
||||
local servers = {
|
||||
"clangd",
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ dap.adapters.lldb = {
|
|||
type = 'server',
|
||||
port = "${port}",
|
||||
executable = {
|
||||
command = '/usr/bin/lldb-dap',
|
||||
command = '/usr/bin/lldb-dap-18',
|
||||
args = { "--port", "${port}" },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,9 @@
|
|||
@theme "sidebar"
|
||||
|
||||
configuration {
|
||||
/* modes: "combi,drun,run,ssh,filebrowser";*/
|
||||
modes: "combi,drun,run,ssh,filebrowser";
|
||||
font: "mono 12";
|
||||
location: 0;
|
||||
yoffset: -150;
|
||||
xoffset: 1920;
|
||||
fixed-num-lines: true;
|
||||
show-icons: true;
|
||||
terminal: "alacritty";
|
||||
|
|
@ -21,7 +19,7 @@ configuration {
|
|||
icon-theme: "Papyrus";
|
||||
/* drun-match-fields: "name,generic,exec,categories,keywords";*/
|
||||
/* drun-categories: ;*/
|
||||
/* drun-show-actions: false;*/
|
||||
drun-show-actions: true;
|
||||
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/
|
||||
/* drun-url-launcher: "xdg-open";*/
|
||||
/* disable-history: false;*/
|
||||
|
|
@ -38,7 +36,6 @@ configuration {
|
|||
/* parse-known-hosts: true;*/
|
||||
combi-modes: "drun,run,ssh,filebrowser";
|
||||
matching: "fuzzy";
|
||||
|
||||
/* tokenize: true;*/
|
||||
/* m: "-5";*/
|
||||
/* filter: ;*/
|
||||
|
|
@ -77,3 +74,7 @@ configuration {
|
|||
sorting-method: "name";
|
||||
}
|
||||
}
|
||||
window {
|
||||
transparency: "real";
|
||||
width: 1000px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
### Variables
|
||||
#
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
set $mod Mod4
|
||||
set $mod Mod1
|
||||
# Home row direction keys, like vim
|
||||
set $left h
|
||||
set $down j
|
||||
|
|
|
|||
|
|
@ -17,6 +17,14 @@ input 1:1:AT_Translated_Set_2_keyboard {
|
|||
xkb_options "grp:caps_toggle"
|
||||
}
|
||||
|
||||
input "6127:24704:Lite-On_Tech_Lenovo_USB_Travel_Keyboard_with_Ultra_Nav" {
|
||||
xkb_layout "us,mk"
|
||||
xkb_options "grp:caps_toggle"'
|
||||
}
|
||||
input "6127:24704:Lite-On_Tech_Lenovo_USB_Travel_Keyboard_with_Ultra_Nav_Mouse" {
|
||||
scroll_method on_button_down
|
||||
}
|
||||
|
||||
# Pulse Audio controls
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% #decrease sound volume
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
bindsym $mod+Shift+Right move right
|
||||
#
|
||||
# Workspaces:
|
||||
#
|
||||
#/home/vladanpopovic/.config/sway/config.d/10-variables.conf
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace 1
|
||||
bindsym $mod+2 workspace 2
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
},
|
||||
"network": {
|
||||
"tooltip": false,
|
||||
"interface": "wlp3s0*",
|
||||
"interface": "wlp*",
|
||||
"format-wifi": " {essid} ({signalStrength}%)",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
||||
"format-linked": "{ifname} (No IP)",
|
||||
|
|
|
|||
|
|
@ -14,3 +14,4 @@ export PYTHONDONTWRITEBYTECODE=1
|
|||
export PYTHONUSERBASE=$HOME/.env/python
|
||||
export TZ="Europe/Belgrade"
|
||||
export FZF_DEFAULT_OPTS='--border=horizontal --info=inline --no-reverse --height=50%'
|
||||
export KUBE_CONFIG_PATH=$HOME/.kube/config
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
default-cache-ttl 3600
|
||||
pinentry-program /usr/bin/pinentry-qt5
|
||||
pinentry-program /usr/bin/pinentry-gnome3
|
||||
max-cache-ttl 72000
|
||||
default-cache-ttl 72000
|
||||
max-cache-ttl-ssh 72000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue