not forgetting to update dotfiles
This commit is contained in:
2
.vimrc
2
.vimrc
@@ -30,7 +30,7 @@ set ttyfast " Let vim know we have a fast terminal, regardless o
|
|||||||
set encoding=utf-8 " Set default file encoding to utf-8
|
set encoding=utf-8 " Set default file encoding to utf-8
|
||||||
set paste " Set paste on
|
set paste " Set paste on
|
||||||
"colorscheme solarized " Use solarized color scheme
|
"colorscheme solarized " Use solarized color scheme
|
||||||
set background=light " With a dark background
|
set background=dark " With a dark background
|
||||||
syntax on " Enable/Disable syntax highlighting
|
syntax on " Enable/Disable syntax highlighting
|
||||||
"set relativenumber " Show relative line numbers from current line (instead of `set nu`)
|
"set relativenumber " Show relative line numbers from current line (instead of `set nu`)
|
||||||
"set number
|
"set number
|
||||||
|
|||||||
@@ -57,12 +57,12 @@ modkey = "Mod4"
|
|||||||
|
|
||||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
awful.layout.layouts = {
|
awful.layout.layouts = {
|
||||||
|
awful.layout.suit.fair,
|
||||||
|
awful.layout.suit.fair.horizontal,
|
||||||
awful.layout.suit.tile,
|
awful.layout.suit.tile,
|
||||||
awful.layout.suit.tile.left,
|
awful.layout.suit.tile.left,
|
||||||
awful.layout.suit.tile.bottom,
|
awful.layout.suit.tile.bottom,
|
||||||
awful.layout.suit.tile.top,
|
awful.layout.suit.tile.top,
|
||||||
awful.layout.suit.fair,
|
|
||||||
awful.layout.suit.fair.horizontal,
|
|
||||||
awful.layout.suit.spiral,
|
awful.layout.suit.spiral,
|
||||||
awful.layout.suit.spiral.dwindle,
|
awful.layout.suit.spiral.dwindle,
|
||||||
awful.layout.suit.floating,
|
awful.layout.suit.floating,
|
||||||
@@ -305,9 +305,62 @@ globalkeys = gears.table.join(
|
|||||||
{description = "select previous", group = "layout"}),
|
{description = "select previous", group = "layout"}),
|
||||||
|
|
||||||
-- Display Brightness
|
-- Display Brightness
|
||||||
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("/home/snarbutas/.bin/brightness +15") end),
|
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("/home/snarbutas/.bin/brightness +15", false) end),
|
||||||
awful.key({}, "XF86MonBrightnessDown",function () awful.util.spawn("/home/snarbutas/.bin/brightness -15") end),
|
awful.key({}, "XF86MonBrightnessDown",function () awful.util.spawn("/home/snarbutas/.bin/brightness -15", false) end),
|
||||||
|
-- Extend monitor
|
||||||
|
awful.key({ "Control", "Mod4" }, "e", function () awful.util.spawn("/home/snarbutas/.bin/dualhead", false) end),
|
||||||
|
-- Lock computer
|
||||||
awful.key({ "Control", "Mod4" }, "l", function () awful.util.spawn("i3lock -c 000000 -i /home/snarbutas/Pictures/spiral1.png") end),
|
awful.key({ "Control", "Mod4" }, "l", function () awful.util.spawn("i3lock -c 000000 -i /home/snarbutas/Pictures/spiral1.png") end),
|
||||||
|
awful.key({ "Control", "Mod4", "Shift" }, "l",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("i3lock -c 000000 -i /home/snarbutas/Pictures/spiral1.png")
|
||||||
|
awful.util.spawn("sleep 1")
|
||||||
|
awful.util.spawn("systemctl suspend")
|
||||||
|
end),
|
||||||
|
-- Audio controls
|
||||||
|
awful.key({ }, "XF86AudioMute",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("pamixer --sink 0 -t", false)
|
||||||
|
awful.spawn.easy_async("pamixer --sink 0 --get-mute", function(stdout, stderr, reason, exit_code)
|
||||||
|
naughty.notify {title = "mute", text = stdout, timeout = 0.5}
|
||||||
|
end)
|
||||||
|
end),
|
||||||
|
awful.key({ }, "XF86AudioMicMute",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("pamixer --source 1 -t", false)
|
||||||
|
awful.spawn.easy_async("pamixer --source 1 --get-mute", function(stdout, stderr, reason, exit_code)
|
||||||
|
naughty.notify {title = "mute mic", text = stdout, timeout = 0.5}
|
||||||
|
end)
|
||||||
|
end),
|
||||||
|
awful.key({ }, "XF86AudioLowerVolume",
|
||||||
|
function ()
|
||||||
|
awful.spawn.easy_async("pamixer --sink 0 -d 5 --get-volume", function(stdout, stderr, reason, exit_code)
|
||||||
|
naughty.notify {title = "Inc", text = stdout, timeout = 0.5}
|
||||||
|
end)
|
||||||
|
end),
|
||||||
|
awful.key({ }, "XF86AudioRaiseVolume",
|
||||||
|
function ()
|
||||||
|
awful.spawn.easy_async("pamixer --sink 0 -i 5 --get-volume", function(stdout, stderr, reason, exit_code)
|
||||||
|
naughty.notify {title = "Dec", text = stdout, timeout = 0.5}
|
||||||
|
end)
|
||||||
|
end),
|
||||||
|
awful.key({ "Control", "Mod4" }, "Up",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause", naughty.notify {title = "play/pause", timeout = 0.5, bg = "#ad11c7"})
|
||||||
|
end),
|
||||||
|
awful.key({ "Control", "Mod4" }, "Down",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop", naughty.notify {title = "Stop", timeout = 0.5, bg = "#ad11c7"})
|
||||||
|
end),
|
||||||
|
awful.key({ "Control", "Mod4" }, "Left",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous", naughty.notify {title = "Previous", timeout = 0.5, bg = "#ad11c7"})
|
||||||
|
end),
|
||||||
|
awful.key({ "Control", "Mod4" }, "Right",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next", naughty.notify {title = "Next", timeout = 0.5, bg = "#ad11c7"})
|
||||||
|
end),
|
||||||
|
|
||||||
awful.key({ modkey, "Control" }, "n",
|
awful.key({ modkey, "Control" }, "n",
|
||||||
function ()
|
function ()
|
||||||
local c = awful.client.restore()
|
local c = awful.client.restore()
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
### =============== Git prompt ================ ###
|
### =============== Git prompt ================ ###
|
||||||
source ".zsh-git-prompt/zshrc.sh"
|
source "/home/snarbutas/.zsh-git-prompt/zshrc.sh"
|
||||||
ZSH_THEME_GIT_PROMPT_BRANCH="%{\x1b[3m%}%{$fg[cyan]%}"
|
ZSH_THEME_GIT_PROMPT_BRANCH="%{\x1b[3m%}%{$fg[cyan]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}%{¤%G%}"
|
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}%{¤%G%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[blue]%}%{x%G%}"
|
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[blue]%}%{x%G%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[red]%}%{+%G%}"
|
ZSH_THEME_GIT_PROMPT_CHANGED="%{%F{196}%}%{+%G%}%F{reset}"
|
||||||
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg[red]%}%{↓%G%}"
|
ZSH_THEME_GIT_PROMPT_BEHIND="%{%F{196}%}%{↓%F{reset}%G%}"
|
||||||
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[blue]%}%{↑%G%}"
|
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[blue]%}%{↑%G%}"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="$fg[red]%}%{…%G%}"
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%F{196}%}%{…%F{reset}%G%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}%{✔%G%}"
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}%{✔%G%}"
|
||||||
### =============== Git prompt ================ ###
|
### =============== Git prompt ================ ###
|
||||||
|
|
||||||
@@ -56,8 +56,8 @@ LESSOPEN='|~/.lessfilter %s'
|
|||||||
PAGER="less"
|
PAGER="less"
|
||||||
EDITOR="vim"
|
EDITOR="vim"
|
||||||
VISUAL="${EDITOR}"
|
VISUAL="${EDITOR}"
|
||||||
TERM="xterm-256color"
|
#TERM="xterm-termite"
|
||||||
export PAGER EDITOR VISUAL TERM
|
export PAGER EDITOR VISUAL
|
||||||
|
|
||||||
## Setup the CDPATH with interesting directories
|
## Setup the CDPATH with interesting directories
|
||||||
typeset -U path cdpath fpath
|
typeset -U path cdpath fpath
|
||||||
@@ -141,12 +141,13 @@ for f in ~/.zsh.d/*.zsh; do
|
|||||||
source "$f"
|
source "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
eval "$(<~/.ssh/agent)"
|
||||||
# The next line updates PATH for the Google Cloud SDK.
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
if [ -f /Users/snarbutas/google-cloud-sdk/path.zsh.inc ]; then
|
if [ -f /home/snarbutas/google-cloud-sdk/path.zsh.inc ]; then
|
||||||
source '/Users/snarbutas/google-cloud-sdk/path.zsh.inc'
|
source '/home/snarbutas/google-cloud-sdk/path.zsh.inc'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The next line enables shell command completion for gcloud.
|
# The next line enables shell command completion for gcloud.
|
||||||
#if [ -f /Users/snarbutas/google-cloud-sdk/completion.zsh.inc ]; then
|
#if [ -f /home/snarbutas/google-cloud-sdk/completion.zsh.inc ]; then
|
||||||
# source '/Users/snarbutas/google-cloud-sdk/completion.zsh.inc'
|
# source '/home/snarbutas/google-cloud-sdk/completion.zsh.inc'
|
||||||
#fi
|
#fi
|
||||||
|
|||||||
Reference in New Issue
Block a user