update dotfiles

This commit is contained in:
Simonas Narbutas
2019-04-04 12:58:21 +02:00
parent 9ed2094406
commit 84c6f841ce
8 changed files with 27 additions and 24 deletions

View File

View File

@@ -119,7 +119,7 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
-- Keyboard map indicator and switcher -- Keyboard map indicator and switcher
mykeyboardlayout = awful.widget.keyboardlayout() mykeyboardlayout = awful.widget.keyboardlayout()
-- Volume -- Volume
volumewidget = wibox.widget.textbox(awful.spawn.easy_async("pamixer --sink 0 --get-volume",function(stdout, stderr, reason, exit_code) volumewidget = wibox.widget.textbox(awful.spawn.easy_async("pamixer --sink ${pamixer --list-sinks |tail -1 |cut -d' ' -f1} --get-volume",function(stdout, stderr, reason, exit_code)
volumewidget:set_text(" 🔈:"..stdout) volumewidget:set_text(" 🔈:"..stdout)
end)) end))
-- Battery -- Battery
@@ -384,12 +384,12 @@ globalkeys = gears.table.join(
awful.key({ }, "XF86AudioMute", awful.key({ }, "XF86AudioMute",
function () function ()
awful.util.spawn("pamixer --sink 0 -t", false) awful.util.spawn("pamixer --sink 0 -t", false)
awful.spawn.easy_async("pamixer --sink 0 --get-mute", function(stdout, stderr, reason, exit_code) awful.spawn.easy_async_with_shell("pamixer --sink $(pamixer --list-sinks |tail -1 |cut -d' ' -f1) --get-mute", function(stdout, stderr, reason, exit_code)
naughty.notify {title = "mute", text = stdout, timeout = 0.5} naughty.notify {title = "mute", text = stdout, timeout = 0.5}
if string.match(stdout, "true" ) then if string.match(stdout, "true" ) then
volumewidget:set_text(" 🔇 ") volumewidget:set_text(" 🔇 ")
else else
awful.spawn.easy_async("pamixer --sink 0 --get-volume", function(stdout, stderr, reason, exit_code) awful.spawn.easy_async_with_shell("pamixer --sink $(pamixer --list-sinks |tail -1 |cut -d' ' -f1) --get-volume", function(stdout, stderr, reason, exit_code)
volumewidget:set_text(" 🔈:"..stdout) volumewidget:set_text(" 🔈:"..stdout)
naughty.notify {title = "Inc", text = stdout, timeout = 0.5} naughty.notify {title = "Inc", text = stdout, timeout = 0.5}
end) end)
@@ -405,17 +405,17 @@ globalkeys = gears.table.join(
end), end),
awful.key({ }, "XF86AudioLowerVolume", awful.key({ }, "XF86AudioLowerVolume",
function () function ()
awful.spawn.easy_async("pamixer --sink 0 -d 5 --get-volume", function(stdout, stderr, reason, exit_code) awful.spawn.easy_async_with_shell("pamixer --sink $(pamixer --list-sinks |tail -1 |cut -d' ' -f1) -d 5 --get-volume", function(stdout, stderr, reason, exit_code)
volumewidget:set_text(" 🔈:"..stdout) volumewidget:set_text(" 🔈:"..stdout)
naughty.notify {title = "Inc", text = stdout, timeout = 0.5} naughty.notify {title = "🔈↓", text = stdout, timeout = 0.5}
end) end)
end), end),
awful.key({ }, "XF86AudioRaiseVolume", awful.key({ }, "XF86AudioRaiseVolume",
function () function ()
awful.spawn.easy_async("pamixer --sink 0 -i 5 --get-volume", function(stdout, stderr, reason, exit_code) awful.spawn.easy_async_with_shell("pamixer --sink $(pamixer --list-sinks |tail -1 |cut -d' ' -f1) -i 5 --get-volume", function(stdout, stderr, reason, exit_code)
volumewidget:set_text(" 🔈:"..stdout) volumewidget:set_text(" 🔈:"..stdout)
naughty.notify {title = "Dec", text = stdout, timeout = 0.5} naughty.notify {title = "🔈↑", text = stdout, timeout = 0.5}
end) end)
end), end),
awful.key({ "Control", "Mod4" }, "Up", awful.key({ "Control", "Mod4" }, "Up",

View File

@@ -18,6 +18,12 @@ Host git.narbuto.lt
AddKeysToAgent yes AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_backute_gitea IdentityFile ~/.ssh/id_rsa_backute_gitea
Host gitlab.bol.io
User git
PubKeyAuthentication yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_bolcom_io_snarbutas
Host adm-gerrit-001 adm-gerrit-001.ams4.bolcom.net gerrit.internal.adm.bol.com gerrit.tools.bol.com Host adm-gerrit-001 adm-gerrit-001.ams4.bolcom.net gerrit.internal.adm.bol.com gerrit.tools.bol.com
User snarbutas User snarbutas
Port 29418 Port 29418

View File

@@ -55,7 +55,7 @@ LESSOPEN='|~/.lessfilter %s'
## Setup editor and pager variables ## Setup editor and pager variables
PAGER="less" PAGER="less"
EDITOR="vim" EDITOR="nvim"
VISUAL="${EDITOR}" VISUAL="${EDITOR}"
#TERM="xterm-termite" #TERM="xterm-termite"
export PAGER EDITOR VISUAL export PAGER EDITOR VISUAL

View File

@@ -1,6 +0,0 @@
for dir in /usr/bin /usr/sbin /sbin /bin ~/.bin; do
if test -d "$dir" && ! grep -q -e "^${dir}:" -e ":${dir}:" -e ":${dir}" <<< $PATH; then
PATH="${dir}:${PATH}"
fi
done
export PATH

1
.zsh.d/00-path.zsh Symbolic link
View File

@@ -0,0 +1 @@
/home/snarbutas/.yadm/alt/.zsh.d/00-path.zsh##Linux.epiphanius

View File

@@ -1,5 +1,6 @@
for dir in ~/.rbenv/bin ~/.rbenv/shims ~/.gem/ruby/*/bin(ocN); do #for dir in ~/.rbenv/bin ~/.rbenv/shims ~/.gem/ruby/*/bin(ocN); do
if test -d "$dir"; then # if test -d "$dir"; then
export PATH="${PATH}:${dir}" # export PATH="${PATH}:${dir}"
fi # fi
done #done
eval "$(rbenv init -)"

View File

@@ -4,17 +4,18 @@ else
alias ls='ls -F' alias ls='ls -F'
fi fi
alias ll='ls -ltrh' alias ll='ls -ltrh'
alias cat='bat'
if grep --color=auto >&/dev/null; then if grep --color=auto >&/dev/null; then
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias egrep='egrep --color=auto' alias egrep='egrep --color=auto'
fi fi
if which vim > /dev/null; then if which nvim > /dev/null; then
alias vi='vim' alias vi='nvim'
fi fi
alias find='noglob find' alias find='noglob find'
alias git='noglob git' alias git='noglob git'
alias history='history -100' alias history='history -2000'
alias gssh='gcloud compute ssh --ssh-flag "-J shd-gcp-jump-001.bolcom.net"' alias gssh='gcloud compute ssh --ssh-flag "-J shd-gcp-jump-001.bolcom.net"'

View File

@@ -1,4 +1,4 @@
if [[ "$TERM" == screen-256color ]] || [[ -n "$TMUX" ]]; then if [[ "$TERM" == screen-256color ]] || [[ -n "$TMUX" ]] || [[ "${TERM_PROGRAM}" == "code" ]]; then
return 1 return 1
fi fi