not forgetting to update dotfiles
This commit is contained in:
@@ -57,12 +57,12 @@ modkey = "Mod4"
|
||||
|
||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||
awful.layout.layouts = {
|
||||
awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.tile,
|
||||
awful.layout.suit.tile.left,
|
||||
awful.layout.suit.tile.bottom,
|
||||
awful.layout.suit.tile.top,
|
||||
awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.spiral,
|
||||
awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.floating,
|
||||
@@ -305,9 +305,62 @@ globalkeys = gears.table.join(
|
||||
{description = "select previous", group = "layout"}),
|
||||
|
||||
-- Display Brightness
|
||||
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("/home/snarbutas/.bin/brightness +15") end),
|
||||
awful.key({}, "XF86MonBrightnessDown",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", 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", "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",
|
||||
function ()
|
||||
local c = awful.client.restore()
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
### =============== 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_STAGED="%{$fg[green]%}%{¤%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[blue]%}%{x%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[red]%}%{+%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg[red]%}%{↓%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_CHANGED="%{%F{196}%}%{+%G%}%F{reset}"
|
||||
ZSH_THEME_GIT_PROMPT_BEHIND="%{%F{196}%}%{↓%F{reset}%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%}"
|
||||
### =============== Git prompt ================ ###
|
||||
|
||||
@@ -56,8 +56,8 @@ LESSOPEN='|~/.lessfilter %s'
|
||||
PAGER="less"
|
||||
EDITOR="vim"
|
||||
VISUAL="${EDITOR}"
|
||||
TERM="xterm-256color"
|
||||
export PAGER EDITOR VISUAL TERM
|
||||
#TERM="xterm-termite"
|
||||
export PAGER EDITOR VISUAL
|
||||
|
||||
## Setup the CDPATH with interesting directories
|
||||
typeset -U path cdpath fpath
|
||||
@@ -141,12 +141,13 @@ for f in ~/.zsh.d/*.zsh; do
|
||||
source "$f"
|
||||
done
|
||||
|
||||
eval "$(<~/.ssh/agent)"
|
||||
# The next line updates PATH for the Google Cloud SDK.
|
||||
if [ -f /Users/snarbutas/google-cloud-sdk/path.zsh.inc ]; then
|
||||
source '/Users/snarbutas/google-cloud-sdk/path.zsh.inc'
|
||||
if [ -f /home/snarbutas/google-cloud-sdk/path.zsh.inc ]; then
|
||||
source '/home/snarbutas/google-cloud-sdk/path.zsh.inc'
|
||||
fi
|
||||
|
||||
# The next line enables shell command completion for gcloud.
|
||||
#if [ -f /Users/snarbutas/google-cloud-sdk/completion.zsh.inc ]; then
|
||||
# source '/Users/snarbutas/google-cloud-sdk/completion.zsh.inc'
|
||||
#if [ -f /home/snarbutas/google-cloud-sdk/completion.zsh.inc ]; then
|
||||
# source '/home/snarbutas/google-cloud-sdk/completion.zsh.inc'
|
||||
#fi
|
||||
|
||||
Reference in New Issue
Block a user