[DEV] add a basic config for awsome and sway
147
.bashrc
@ -3,8 +3,7 @@
|
||||
# for examples
|
||||
|
||||
setxkbmap fr
|
||||
|
||||
|
||||
XKB_DEFAULT_LAYOUT=fr
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
@ -27,139 +26,22 @@ HISTFILESIZE=2000
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# 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
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -l --color -h'
|
||||
alias la='ls -la --color -h'
|
||||
alias l='ls -CF --color -h'
|
||||
alias ls='ls --color -h'
|
||||
alias nedit='/home/edupin/.bin/nedit_script'
|
||||
alias gitlog='git log --graph --abbrev-commit --pretty=oneline --decorate'
|
||||
|
||||
alias cvsc='cvs -d :pserver:edupin@172.20.10.13/soft/cvs login'
|
||||
alias debug='cgdb -d arm-elf-gdb -x /tftpboot/sonde.gdb --cd=/tftpboot/'
|
||||
alias debug_raptor='cgdb -d /opt/arm-eglibc/bin/arm-none-linux-gnueabi-gdb --cd=/tftpboot/ --command=raptor_raptor.gdb --command=raptor_perso.gdb --command=pal_thread.gdb'
|
||||
alias debug_SDK='cgdb -d /prog/dev/SDK/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gdb --cd=/tftpboot/ --command=raptor_raptor.gdb --command=raptor_perso.gdb --command=pal_thread.gdb'
|
||||
|
||||
# outils personnels :
|
||||
PATH=$PATH:/home/edupin/.bin
|
||||
PATH=$PATH:/home/edupin/.local/bin
|
||||
PATH=$PATH:/home/edupin/.local/application/
|
||||
PATH=$PATH:/home/heero/.bin
|
||||
PATH=$PATH:/home/heero/.local/bin
|
||||
PATH=$PATH:/home/heero/.local/application/
|
||||
|
||||
#PS1='\[\033[01;32m\][\u]\[\033[00m\]\[\033[01;34m\]\w\[\033[01;33m\]$(__git_ps1 "(%s)")\[\033[00m\]\$ '
|
||||
PS1='\[\033[01;32m\][\u]\[\033[00m\]\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
|
||||
c_red='^[[31m'
|
||||
@ -219,24 +101,13 @@ parse_cvs_branch() {
|
||||
|
||||
|
||||
PS1='\033]0;$(workspaceMode.sh \w) \W\007\r\[\033[01;32m\][ \h : \u ]\[\033[01;33m\]$(parse_git_branch)$(parse_svn_branch)$(parse_cvs_branch)\[\033[00m\]\[\033[01;34m\]\w\[\033[00m\]\n\$ '
|
||||
#PS1="\u@\h:\w \$(parse_git_branch)\$ "
|
||||
|
||||
|
||||
|
||||
alias qc='qibuild configure'
|
||||
alias qm='qibuild make'
|
||||
alias qi='qibuild install'
|
||||
alias qd='qibuild deploy'
|
||||
|
||||
export UBUNTU_MENUPROXY=0
|
||||
export XAUTHORITY=/home/heero/.Xauthority
|
||||
|
||||
export PYTHONPATH=/home/edupin/work/pynaoqi-python2.7-2.0.3.11-linux64/
|
||||
|
||||
|
||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
|
||||
|
||||
|
||||
|
||||
|
||||
[[ oo $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
|
||||
|
||||
# force lang of output in english ==> better for developpement
|
||||
LANG=en_US.UTF-8
|
||||
|
||||
|
||||
|
27
.bin/gitcc
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
#Generate absurdeDate :
|
||||
|
||||
#GIT_COMMITTER_DATE="2012-11-06T22:35" git commit --amend --date "2012-11-06T22:35"
|
||||
# get the curent Day
|
||||
CURRENT_DATE=`date +%Y-%m-%d`
|
||||
# genetae the new Hour
|
||||
randHeure=`expr $RANDOM % 3`
|
||||
nombreHeure=`expr 21 + $randHeure`
|
||||
# generate minutes :
|
||||
minute=`expr $RANDOM % 59`
|
||||
#generate second
|
||||
seconde=`expr $RANDOM % 59`
|
||||
|
||||
LOCALTIME="$CURRENT_DATE T$nombreHeure:$minute:$seconde"
|
||||
|
||||
echo Set the commit TIME : \"$LOCALTIME\"
|
||||
echo "export GIT_COMMITTER_DATE=\"$LOCALTIME\" ; git commit -a --date \"$LOCALTIME\" -m \"$*\""
|
||||
|
||||
#plop=`GIT_COMMITTER_DATE=\"$LOCALTIME\" ; git commit -a --date \"$LOCALTIME\" -m \"$*\"`
|
||||
|
||||
#echo $plop
|
||||
|
||||
|
||||
|
16
.bin/tarGen.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
if [ -z $1 ] ; then
|
||||
echo "you must set the name of the folder to compress : $0 \"FOLDER_NAME\""
|
||||
exit -1
|
||||
fi
|
||||
folder=$1_`date +%Y-%m-%d_%Hh%Mm%Ss`.tar.gz
|
||||
|
||||
# clean tmp files:
|
||||
cd $1
|
||||
rm -rvf `find . -name "*~"` `find . -name "*.bck"`
|
||||
cd ..
|
||||
#compresse Data
|
||||
tar czvf $folder $1
|
||||
|
15
.bin/workspaceMode.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
dir=`pwd`
|
||||
dir="$1/plop"
|
||||
while [ $dir != "/" ] ; do
|
||||
dir="$(dirname "$dir")"
|
||||
if [ -e "$dir/.bashTitle.txt" ] ; then
|
||||
#echo "find=$dir/.bashTitle.txt"
|
||||
out="$(cat $dir/.bashTitle.txt | tr -d '\n')"
|
||||
echo -en $out
|
||||
break
|
||||
fi
|
||||
#echo "dir=$dir"
|
||||
done
|
||||
|
97
.config/awesome/archmenu.lua
Normal file
@ -0,0 +1,97 @@
|
||||
local menu98edb85b00d9527ad5acebe451b3fae6 = {
|
||||
{"Android File Transfer (MTP)", "android-file-transfer", "/usr/share/icons/hicolor/128x128/apps/android-file-transfer.png" },
|
||||
{"Archive Manager", "file-roller ", "/usr/share/icons/hicolor/16x16/apps/file-roller.png" },
|
||||
{"GVim", "gvim -f ", "/usr/share/icons/hicolor/48x48/apps/gvim.png" },
|
||||
{"Nemo", "nemo ", "/usr/share/icons/gnome/16x16/places/folder.png" },
|
||||
{"Qemu Launcher", "qemu-launcher"},
|
||||
{"Synergy", "synergy", "///usr/share/icons/synergy.ico" },
|
||||
{"ipython", "xterm -e ipython", "/usr/share/pixmaps/ipython.png" },
|
||||
}
|
||||
|
||||
local menude7a22a0c94aa64ba2449e520aa20c99 = {
|
||||
{"LibreOffice Math", "libreoffice --math ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-math.png" },
|
||||
}
|
||||
|
||||
local menud334dfcea59127bedfcdbe0a3ee7f494 = {
|
||||
{"Blender", "blender ", "/usr/share/icons/hicolor/16x16/apps/blender.png" },
|
||||
{"GNU Image Manipulation Program", "gimp-2.8 ", "/usr/share/icons/hicolor/16x16/apps/gimp.png" },
|
||||
{"Inkscape", "inkscape ", "/usr/share/icons/hicolor/16x16/apps/inkscape.png" },
|
||||
{"LibreOffice Draw", "libreoffice --draw ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-draw.png" },
|
||||
{"Shotwell", "shotwell ", "/usr/share/icons/hicolor/16x16/apps/shotwell.png" },
|
||||
{"XDot", "xdot "},
|
||||
}
|
||||
|
||||
local menuc8205c7636e728d448c2774e6a4a944b = {
|
||||
{"Audio assistant", "linphone --run-audio-assistant", "/usr/share/icons/hicolor/48x48/apps/linphone.png" },
|
||||
{"Avahi SSH Server Browser", "/usr/bin/bssh", "/usr/share/icons/gnome/16x16/devices/network-wired.png" },
|
||||
{"Avahi VNC Server Browser", "/usr/bin/bvnc", "/usr/share/icons/gnome/16x16/devices/network-wired.png" },
|
||||
{"Chromium", "chromium ", "/usr/share/icons/hicolor/16x16/apps/chromium.png" },
|
||||
{"FileZilla", "filezilla", "/usr/share/icons/hicolor/16x16/apps/filezilla.png" },
|
||||
{"Firefox", "firefox ", "/usr/share/icons/hicolor/16x16/apps/firefox.png" },
|
||||
{"Linphone", "linphone", "/usr/share/icons/hicolor/48x48/apps/linphone.png" },
|
||||
{"Opera", "opera ", "/usr/share/icons/hicolor/16x16/apps/opera.png" },
|
||||
{"XChat IRC", "xchat", "/usr/share/icons/hicolor/24x24/apps/xchat.png" },
|
||||
}
|
||||
|
||||
local menudf814135652a5a308fea15bff37ea284 = {
|
||||
{"LibreOffice", "libreoffice ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-startcenter.png" },
|
||||
{"LibreOffice Base", "libreoffice --base ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-base.png" },
|
||||
{"LibreOffice Calc", "libreoffice --calc ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-calc.png" },
|
||||
{"LibreOffice Draw", "libreoffice --draw ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-draw.png" },
|
||||
{"LibreOffice Impress", "libreoffice --impress ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-impress.png" },
|
||||
{"LibreOffice Math", "libreoffice --math ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-math.png" },
|
||||
{"LibreOffice Writer", "libreoffice --writer ", "/usr/share/icons/hicolor/16x16/apps/libreoffice-writer.png" },
|
||||
{"Sweet Home 3D", "sweethome3d ", "/usr/share/pixmaps/sweethome3d.png" },
|
||||
{"ePDFViewer", "epdfview ", "/usr/share/icons/hicolor/24x24/apps/epdfview.png" },
|
||||
}
|
||||
|
||||
local menue6f43c40ab1c07cd29e4e83e4ef6bf85 = {
|
||||
{"CMake", "cmake-gui ", "/usr/share/icons/hicolor/32x32/apps/CMakeSetup.png" },
|
||||
{"Meld", "meld ", "/usr/share/icons/hicolor/16x16/apps/meld.png" },
|
||||
{"OpenJDK 1.7.0 Monitoring & Management Console", "_BINDIR_/jconsole"},
|
||||
{"OpenJDK 1.7.0 Policy Tool", "_BINDIR_/policytool"},
|
||||
{"Qt Assistant", "assistant", "/usr/share/icons/hicolor/32x32/apps/assistant.png" },
|
||||
{"Qt Designer", "designer", "/usr/share/icons/hicolor/128x128/apps/QtProject-designer.png" },
|
||||
{"Qt Linguist", "linguist", "/usr/share/icons/hicolor/16x16/apps/linguist.png" },
|
||||
{"Qt QDbusViewer ", "qdbusviewer", "/usr/share/icons/hicolor/32x32/apps/qdbusviewer.png" },
|
||||
{"Qt4 Assistant ", "assistant-qt4", "/usr/share/icons/hicolor/32x32/apps/assistant-qt4.png" },
|
||||
{"Qt4 Designer", "designer-qt4", "/usr/share/icons/hicolor/128x128/apps/designer-qt4.png" },
|
||||
{"Qt4 Linguist ", "linguist-qt4", "/usr/share/icons/hicolor/16x16/apps/linguist-qt4.png" },
|
||||
{"Qt4 QDbusViewer ", "qdbusviewer-qt4", "/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt4.png" },
|
||||
{"ipython", "xterm -e ipython", "/usr/share/pixmaps/ipython.png" },
|
||||
}
|
||||
|
||||
local menu80d754c83abbbd4ef5d150904efcc86c = {
|
||||
{"XDot", "xdot "},
|
||||
}
|
||||
|
||||
local menu52dd1c847264a75f400961bfb4d1c849 = {
|
||||
{"Audacity", "env UBUNTU_MENUPROXY=0 audacity ", "/usr/share/icons/hicolor/16x16/apps/audacity.png" },
|
||||
{"HandBrake", "ghb "},
|
||||
{"Qt V4L2 test Utility", "qv4l2", "/usr/share/icons/hicolor/16x16/apps/qv4l2.png" },
|
||||
{"VLC media player", "/usr/bin/vlc --started-from-file ", "/usr/share/icons/hicolor/16x16/apps/vlc.png" },
|
||||
{"dPluzz (Download Pluzz and C+)", "python2 /usr/bin/dpluzz", "///usr/share/icons/dPluzz-ico.png" },
|
||||
}
|
||||
|
||||
local menuee69799670a33f75d45c57d1d1cd0ab3 = {
|
||||
{"Avahi Zeroconf Browser", "/usr/bin/avahi-discover", "/usr/share/icons/gnome/16x16/devices/network-wired.png" },
|
||||
{"Htop", "xterm -e htop", "/usr/share/pixmaps/htop.png" },
|
||||
{"Manage Printing", "/usr/bin/xdg-open http://localhost:631/", "/usr/share/icons/hicolor/16x16/apps/cups.png" },
|
||||
{"Oracle VM VirtualBox", "VirtualBox ", "/usr/share/icons/hicolor/16x16/mimetypes/virtualbox.png" },
|
||||
{"Terminator", "terminator", "/usr/share/icons/hicolor/16x16/apps/terminator.png" },
|
||||
{"UXTerm", "uxterm", "/usr/share/pixmaps/xterm-color_48x48.xpm" },
|
||||
{"XTerm", "xterm", "/usr/share/pixmaps/xterm-color_48x48.xpm" },
|
||||
}
|
||||
|
||||
xdgmenu = {
|
||||
{"Accessories", menu98edb85b00d9527ad5acebe451b3fae6},
|
||||
{"Education", menude7a22a0c94aa64ba2449e520aa20c99},
|
||||
{"Graphics", menud334dfcea59127bedfcdbe0a3ee7f494},
|
||||
{"Internet", menuc8205c7636e728d448c2774e6a4a944b},
|
||||
{"Office", menudf814135652a5a308fea15bff37ea284},
|
||||
{"Programming", menue6f43c40ab1c07cd29e4e83e4ef6bf85},
|
||||
{"Science & Math", menu80d754c83abbbd4ef5d150904efcc86c},
|
||||
{"Sound & Video", menu52dd1c847264a75f400961bfb4d1c849},
|
||||
{"System Tools", menuee69799670a33f75d45c57d1d1cd0ab3},
|
||||
}
|
||||
|
BIN
.config/awesome/background/background-images-1.jpg
Normal file
After Width: | Height: | Size: 113 KiB |
BIN
.config/awesome/background/background-images-10.jpg
Normal file
After Width: | Height: | Size: 286 KiB |
BIN
.config/awesome/background/background-images-11.jpg
Normal file
After Width: | Height: | Size: 308 KiB |
BIN
.config/awesome/background/background-images-12.jpg
Normal file
After Width: | Height: | Size: 303 KiB |
BIN
.config/awesome/background/background-images-13.jpg
Normal file
After Width: | Height: | Size: 280 KiB |
BIN
.config/awesome/background/background-images-14.jpg
Normal file
After Width: | Height: | Size: 171 KiB |
BIN
.config/awesome/background/background-images-15.jpg
Normal file
After Width: | Height: | Size: 177 KiB |
BIN
.config/awesome/background/background-images-16.jpg
Normal file
After Width: | Height: | Size: 200 KiB |
BIN
.config/awesome/background/background-images-17.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
.config/awesome/background/background-images-18.jpg
Normal file
After Width: | Height: | Size: 334 KiB |
BIN
.config/awesome/background/background-images-19.jpg
Normal file
After Width: | Height: | Size: 174 KiB |
BIN
.config/awesome/background/background-images-2.jpg
Normal file
After Width: | Height: | Size: 266 KiB |
BIN
.config/awesome/background/background-images-20.jpg
Normal file
After Width: | Height: | Size: 400 KiB |
BIN
.config/awesome/background/background-images-21.jpg
Normal file
After Width: | Height: | Size: 224 KiB |
BIN
.config/awesome/background/background-images-22.jpg
Normal file
After Width: | Height: | Size: 310 KiB |
BIN
.config/awesome/background/background-images-23.jpg
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
.config/awesome/background/background-images-24.jpg
Normal file
After Width: | Height: | Size: 276 KiB |
BIN
.config/awesome/background/background-images-25.jpg
Normal file
After Width: | Height: | Size: 553 KiB |
BIN
.config/awesome/background/background-images-26.jpg
Normal file
After Width: | Height: | Size: 602 KiB |
BIN
.config/awesome/background/background-images-27.jpg
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
.config/awesome/background/background-images-28.jpg
Normal file
After Width: | Height: | Size: 544 KiB |
BIN
.config/awesome/background/background-images-29.jpg
Normal file
After Width: | Height: | Size: 413 KiB |
BIN
.config/awesome/background/background-images-3.jpg
Normal file
After Width: | Height: | Size: 236 KiB |
BIN
.config/awesome/background/background-images-30.jpg
Normal file
After Width: | Height: | Size: 1006 KiB |
BIN
.config/awesome/background/background-images-31.jpg
Normal file
After Width: | Height: | Size: 402 KiB |
BIN
.config/awesome/background/background-images-4.jpg
Normal file
After Width: | Height: | Size: 250 KiB |
BIN
.config/awesome/background/background-images-5.jpg
Normal file
After Width: | Height: | Size: 170 KiB |
BIN
.config/awesome/background/background-images-6.jpg
Normal file
After Width: | Height: | Size: 224 KiB |
BIN
.config/awesome/background/background-images-7.jpg
Normal file
After Width: | Height: | Size: 285 KiB |
BIN
.config/awesome/background/background-images-8.jpg
Normal file
After Width: | Height: | Size: 270 KiB |
BIN
.config/awesome/background/background-images-9.jpg
Normal file
After Width: | Height: | Size: 200 KiB |
470
.config/awesome/rc.lua
Normal file
@ -0,0 +1,470 @@
|
||||
-- Standard awesome library
|
||||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
awful.rules = require("awful.rules")
|
||||
require("awful.autofocus")
|
||||
-- Widget and layout library
|
||||
local wibox = require("wibox")
|
||||
-- Theme handling library
|
||||
local beautiful = require("beautiful")
|
||||
-- Notification library
|
||||
local naughty = require("naughty")
|
||||
local menubar = require("menubar")
|
||||
|
||||
-- {{{ Error handling
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
-- another config (This code will only ever execute for the fallback config)
|
||||
if awesome.startup_errors then
|
||||
naughty.notify({ preset = naughty.config.presets.critical,
|
||||
title = "Oops, there were errors during startup!",
|
||||
text = awesome.startup_errors })
|
||||
end
|
||||
|
||||
-- Handle runtime errors after startup
|
||||
do
|
||||
local in_error = false
|
||||
awesome.connect_signal("debug::error", function (err)
|
||||
-- Make sure we don't go into an endless error loop
|
||||
if in_error then return end
|
||||
in_error = true
|
||||
|
||||
naughty.notify({ preset = naughty.config.presets.critical,
|
||||
title = "Oops, an error happened!",
|
||||
text = err })
|
||||
in_error = false
|
||||
end)
|
||||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- Themes define colours, icons, font and wallpapers.
|
||||
--beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua")
|
||||
beautiful.init("~/.config/awesome/theme/theme.lua")
|
||||
|
||||
-- This is used later as the default terminal and editor to run.
|
||||
terminal = "terminator"
|
||||
editor = os.getenv("EDITOR") or "edn"
|
||||
editor_cmd = terminal .. " -e " .. editor
|
||||
|
||||
-- Default modkey.
|
||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||
-- If you do not like this or do not have such a key,
|
||||
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
|
||||
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||
modkey = "Mod4"
|
||||
|
||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||
local layouts =
|
||||
{
|
||||
awful.layout.suit.floating,
|
||||
--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.max,
|
||||
--awful.layout.suit.max.fullscreen,
|
||||
--awful.layout.suit.magnifier
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Wallpaper
|
||||
if beautiful.wallpaper then
|
||||
for s = 1, screen.count() do
|
||||
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
|
||||
end
|
||||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Tags
|
||||
-- Define a tag table which hold all screen tags.
|
||||
tags = {}
|
||||
for s = 1, screen.count() do
|
||||
-- Each screen has its own tag table.
|
||||
--tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[10])
|
||||
tags[s] = awful.tag({ 1, 2, 3, 4, 5}, s, layouts[3])
|
||||
end
|
||||
-- }}}
|
||||
|
||||
|
||||
-- {{{ Menu
|
||||
-- Create a laucher widget and a main menu
|
||||
myawesomemenu = {
|
||||
{ "manual", terminal .. " -e man awesome" },
|
||||
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
||||
{ "restart", awesome.restart },
|
||||
{ "quit", awesome.quit }
|
||||
}
|
||||
|
||||
xdg_menu = require("archmenu")
|
||||
|
||||
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
|
||||
{ "Applications", xdgmenu },
|
||||
{ "Terminator", "terminator", "/usr/share/icons/hicolor/16x16/apps/terminator.png" },
|
||||
{ "Opera", "opera", "/usr/share/icons/hicolor/16x16/apps/opera.png" },
|
||||
{ "Chromium", "chromium", "/usr/share/icons/hicolor/16x16/apps/chromium.png" },
|
||||
{ "Thunar", "thunar" },
|
||||
{ "Edn", "edn", "/home/edupin/.local/application/edn.app/share/edn/icon.png"},
|
||||
{ "X-lock", "xlock"}
|
||||
}
|
||||
})
|
||||
|
||||
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
|
||||
menu = mymainmenu })
|
||||
|
||||
-- Menubar configuration
|
||||
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
||||
-- }}}
|
||||
|
||||
-- {{{ Wibox
|
||||
-- Create a textclock widget
|
||||
mytextclock = awful.widget.textclock()
|
||||
|
||||
-- Create a wibox for each screen and add it
|
||||
mywibox = {}
|
||||
mypromptbox = {}
|
||||
mylayoutbox = {}
|
||||
mytaglist = {}
|
||||
mytaglist.buttons = awful.util.table.join(
|
||||
awful.button({ }, 1, awful.tag.viewonly),
|
||||
awful.button({ modkey }, 1, awful.client.movetotag),
|
||||
awful.button({ }, 3, awful.tag.viewtoggle),
|
||||
awful.button({ modkey }, 3, awful.client.toggletag),
|
||||
awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end),
|
||||
awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end)
|
||||
)
|
||||
mytasklist = {}
|
||||
mytasklist.buttons = awful.util.table.join(
|
||||
awful.button({ }, 1, function (c)
|
||||
if c == client.focus then
|
||||
c.minimized = true
|
||||
else
|
||||
-- Without this, the following
|
||||
-- :isvisible() makes no sense
|
||||
c.minimized = false
|
||||
if not c:isvisible() then
|
||||
awful.tag.viewonly(c:tags()[1])
|
||||
end
|
||||
-- This will also un-minimize
|
||||
-- the client, if needed
|
||||
client.focus = c
|
||||
c:raise()
|
||||
end
|
||||
end),
|
||||
awful.button({ }, 3, function ()
|
||||
if instance then
|
||||
instance:hide()
|
||||
instance = nil
|
||||
else
|
||||
instance = awful.menu.clients({
|
||||
theme = { width = 250 }
|
||||
})
|
||||
end
|
||||
end),
|
||||
awful.button({ }, 4, function ()
|
||||
awful.client.focus.byidx(1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.button({ }, 5, function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end))
|
||||
|
||||
for s = 1, screen.count() do
|
||||
-- Create a promptbox for each screen
|
||||
mypromptbox[s] = awful.widget.prompt()
|
||||
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
|
||||
-- We need one layoutbox per screen.
|
||||
mylayoutbox[s] = awful.widget.layoutbox(s)
|
||||
mylayoutbox[s]:buttons(awful.util.table.join(
|
||||
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
|
||||
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
|
||||
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
|
||||
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
|
||||
-- Create a taglist widget
|
||||
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
|
||||
|
||||
-- Create a tasklist widget
|
||||
mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
|
||||
|
||||
-- Create the wibox
|
||||
mywibox[s] = awful.wibox({ position = "top", screen = s })
|
||||
|
||||
-- Widgets that are aligned to the left
|
||||
local left_layout = wibox.layout.fixed.horizontal()
|
||||
left_layout:add(mylauncher)
|
||||
left_layout:add(mytaglist[s])
|
||||
left_layout:add(mypromptbox[s])
|
||||
|
||||
-- Widgets that are aligned to the right
|
||||
local right_layout = wibox.layout.fixed.horizontal()
|
||||
if s == 1 then right_layout:add(wibox.widget.systray()) end
|
||||
right_layout:add(mytextclock)
|
||||
right_layout:add(mylayoutbox[s])
|
||||
|
||||
-- Now bring it all together (with the tasklist in the middle)
|
||||
local layout = wibox.layout.align.horizontal()
|
||||
layout:set_left(left_layout)
|
||||
layout:set_middle(mytasklist[s])
|
||||
layout:set_right(right_layout)
|
||||
|
||||
mywibox[s]:set_widget(layout)
|
||||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse bindings
|
||||
root.buttons(awful.util.table.join(
|
||||
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
||||
awful.button({ }, 4, awful.tag.viewnext),
|
||||
awful.button({ }, 5, awful.tag.viewprev)
|
||||
))
|
||||
-- }}}
|
||||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = awful.util.table.join(
|
||||
awful.key({ modkey, }, "z", function () awful.util.spawn("xlock") end),
|
||||
|
||||
awful.key({ modkey, }, "Left",
|
||||
function ()
|
||||
-- TODO : Do the first ID better ...
|
||||
if awful.tag.selected().name ~= "1" then
|
||||
awful.tag.viewprev()
|
||||
end
|
||||
end),
|
||||
awful.key({ modkey, }, "Right",
|
||||
function ()
|
||||
-- TODO : Do the last ID better ...
|
||||
if awful.tag.selected().name ~= "5" then
|
||||
awful.tag.viewnext()
|
||||
end
|
||||
end),
|
||||
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
|
||||
|
||||
awful.key({ modkey, }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey, }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
if client.focus then client.focus:raise() end
|
||||
end),
|
||||
awful.key({ modkey, }, "w", function () mymainmenu:show() end),
|
||||
|
||||
-- Layout manipulation
|
||||
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
|
||||
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
|
||||
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
|
||||
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
|
||||
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
|
||||
awful.key({ modkey, }, "Tab",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
if client.focus then
|
||||
client.focus:raise()
|
||||
end
|
||||
end),
|
||||
|
||||
-- Standard program
|
||||
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
|
||||
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
||||
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
||||
|
||||
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
|
||||
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
|
||||
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
|
||||
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
|
||||
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
|
||||
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
|
||||
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
|
||||
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
|
||||
|
||||
awful.key({ modkey, "Control" }, "n", awful.client.restore),
|
||||
|
||||
-- Prompt
|
||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
||||
|
||||
awful.key({ modkey }, "x",
|
||||
function ()
|
||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
||||
mypromptbox[mouse.screen].widget,
|
||||
awful.util.eval, nil,
|
||||
awful.util.getdir("cache") .. "/history_eval")
|
||||
end),
|
||||
-- Menubar
|
||||
awful.key({ modkey }, "p", function() menubar.show() end)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
|
||||
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
|
||||
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
|
||||
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
|
||||
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
|
||||
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
|
||||
awful.key({ modkey, }, "n",
|
||||
function (c)
|
||||
-- The client currently has the input focus, so it cannot be
|
||||
-- minimized, since minimized clients can't have the focus.
|
||||
c.minimized = true
|
||||
end),
|
||||
awful.key({ modkey, }, "m",
|
||||
function (c)
|
||||
c.maximized_horizontal = not c.maximized_horizontal
|
||||
c.maximized_vertical = not c.maximized_vertical
|
||||
end)
|
||||
)
|
||||
|
||||
-- Bind all key numbers to tags.
|
||||
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||
for i = 1, 9 do
|
||||
globalkeys = awful.util.table.join(globalkeys,
|
||||
-- View tag only.
|
||||
awful.key({ modkey }, "#" .. i + 9,
|
||||
function ()
|
||||
local screen = mouse.screen
|
||||
local tag = awful.tag.gettags(screen)[i]
|
||||
if tag then
|
||||
awful.tag.viewonly(tag)
|
||||
end
|
||||
end),
|
||||
-- Toggle tag.
|
||||
awful.key({ modkey, "Control" }, "#" .. i + 9,
|
||||
function ()
|
||||
local screen = mouse.screen
|
||||
local tag = awful.tag.gettags(screen)[i]
|
||||
if tag then
|
||||
awful.tag.viewtoggle(tag)
|
||||
end
|
||||
end),
|
||||
-- Move client to tag.
|
||||
awful.key({ modkey, "Shift" }, "#" .. i + 9,
|
||||
function ()
|
||||
if client.focus then
|
||||
local tag = awful.tag.gettags(client.focus.screen)[i]
|
||||
if tag then
|
||||
awful.client.movetotag(tag)
|
||||
end
|
||||
end
|
||||
end),
|
||||
-- Toggle tag.
|
||||
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
|
||||
function ()
|
||||
if client.focus then
|
||||
local tag = awful.tag.gettags(client.focus.screen)[i]
|
||||
if tag then
|
||||
awful.client.toggletag(tag)
|
||||
end
|
||||
end
|
||||
end))
|
||||
end
|
||||
|
||||
clientbuttons = awful.util.table.join(
|
||||
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
|
||||
awful.button({ modkey }, 1, awful.mouse.client.move),
|
||||
awful.button({ modkey }, 3, awful.mouse.client.resize))
|
||||
|
||||
-- Set keys
|
||||
root.keys(globalkeys)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Rules
|
||||
-- Rules to apply to new clients (through the "manage" signal).
|
||||
awful.rules.rules = {
|
||||
-- All clients will match this rule.
|
||||
{ rule = { },
|
||||
properties = { border_width = beautiful.border_width,
|
||||
border_color = beautiful.border_normal,
|
||||
focus = awful.client.focus.filter,
|
||||
raise = true,
|
||||
keys = clientkeys,
|
||||
buttons = clientbuttons } },
|
||||
{ rule = { class = "MPlayer" },
|
||||
properties = { floating = true } },
|
||||
{ rule = { class = "pinentry" },
|
||||
properties = { floating = true } },
|
||||
{ rule = { class = "gimp" },
|
||||
properties = { floating = true } },
|
||||
-- Set Firefox to always map on tags number 2 of screen 1.
|
||||
-- { rule = { class = "Firefox" },
|
||||
-- properties = { tag = tags[1][2] } },
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Signals
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- Enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup then
|
||||
-- Set the windows at the slave,
|
||||
-- i.e. put it at the end of others instead of setting it master.
|
||||
-- awful.client.setslave(c)
|
||||
|
||||
-- Put windows in a smart way, only if they does not set an initial position.
|
||||
if not c.size_hints.user_position and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
end
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
local buttons = awful.util.table.join(
|
||||
awful.button({ }, 1, function()
|
||||
client.focus = c
|
||||
c:raise()
|
||||
awful.mouse.client.move(c)
|
||||
end),
|
||||
awful.button({ }, 3, function()
|
||||
client.focus = c
|
||||
c:raise()
|
||||
awful.mouse.client.resize(c)
|
||||
end)
|
||||
)
|
||||
|
||||
-- Widgets that are aligned to the left
|
||||
local left_layout = wibox.layout.fixed.horizontal()
|
||||
left_layout:add(awful.titlebar.widget.iconwidget(c))
|
||||
left_layout:buttons(buttons)
|
||||
|
||||
-- Widgets that are aligned to the right
|
||||
local right_layout = wibox.layout.fixed.horizontal()
|
||||
right_layout:add(awful.titlebar.widget.floatingbutton(c))
|
||||
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
|
||||
right_layout:add(awful.titlebar.widget.stickybutton(c))
|
||||
right_layout:add(awful.titlebar.widget.ontopbutton(c))
|
||||
right_layout:add(awful.titlebar.widget.closebutton(c))
|
||||
|
||||
-- The title goes in the middle
|
||||
local middle_layout = wibox.layout.flex.horizontal()
|
||||
local title = awful.titlebar.widget.titlewidget(c)
|
||||
title:set_align("center")
|
||||
middle_layout:add(title)
|
||||
middle_layout:buttons(buttons)
|
||||
|
||||
-- Now bring it all together
|
||||
local layout = wibox.layout.align.horizontal()
|
||||
layout:set_left(left_layout)
|
||||
layout:set_right(right_layout)
|
||||
layout:set_middle(middle_layout)
|
||||
|
||||
awful.titlebar(c):set_widget(layout)
|
||||
end
|
||||
end)
|
||||
|
||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||
-- }}}
|
3
.config/awesome/theme/README
Normal file
@ -0,0 +1,3 @@
|
||||
Background images:
|
||||
Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||
Licensed under CC-BY-SA-3.0
|
BIN
.config/awesome/theme/background.png
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
.config/awesome/theme/background_white.png
Normal file
After Width: | Height: | Size: 265 KiB |
BIN
.config/awesome/theme/layouts/dwindle.png
Normal file
After Width: | Height: | Size: 967 B |
BIN
.config/awesome/theme/layouts/dwindlew.png
Normal file
After Width: | Height: | Size: 997 B |
BIN
.config/awesome/theme/layouts/fairh.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
.config/awesome/theme/layouts/fairhw.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
.config/awesome/theme/layouts/fairv.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
.config/awesome/theme/layouts/fairvw.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
.config/awesome/theme/layouts/floating.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
.config/awesome/theme/layouts/floatingw.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
.config/awesome/theme/layouts/fullscreen.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
.config/awesome/theme/layouts/fullscreenw.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
.config/awesome/theme/layouts/magnifier.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
.config/awesome/theme/layouts/magnifierw.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
.config/awesome/theme/layouts/max.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
.config/awesome/theme/layouts/maxw.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
.config/awesome/theme/layouts/spiral.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/awesome/theme/layouts/spiralw.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/awesome/theme/layouts/tile.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
.config/awesome/theme/layouts/tilebottom.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
.config/awesome/theme/layouts/tilebottomw.png
Normal file
After Width: | Height: | Size: 216 B |
BIN
.config/awesome/theme/layouts/tileleft.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
.config/awesome/theme/layouts/tileleftw.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
.config/awesome/theme/layouts/tiletop.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
.config/awesome/theme/layouts/tiletopw.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
.config/awesome/theme/layouts/tilew.png
Normal file
After Width: | Height: | Size: 168 B |
BIN
.config/awesome/theme/submenu.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
.config/awesome/theme/taglist/squarefw.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
.config/awesome/theme/taglist/squarew.png
Normal file
After Width: | Height: | Size: 193 B |
101
.config/awesome/theme/theme.lua
Normal file
@ -0,0 +1,101 @@
|
||||
---------------------------
|
||||
-- Default awesome theme --
|
||||
---------------------------
|
||||
|
||||
theme = {}
|
||||
|
||||
theme.font = "sans 8"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#cc5d6c"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
theme.bg_systray = theme.bg_normal
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
|
||||
theme.border_width = 1
|
||||
theme.border_normal = "#000000"
|
||||
theme.border_focus = "#535d6c"
|
||||
theme.border_marked = "#91231c"
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty]
|
||||
-- tasklist_[bg|fg]_[focus|urgent]
|
||||
-- titlebar_[bg|fg]_[normal|focus]
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
-- Display the taglist squares
|
||||
theme.taglist_squares_sel = "~/.config/awesome/theme/taglist/squarefw.png"
|
||||
theme.taglist_squares_unsel = "~/.config/awesome/theme/taglist/squarew.png"
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_submenu_icon = "~/.config/awesome/theme/submenu.png"
|
||||
theme.menu_height = 15
|
||||
theme.menu_width = 100
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
-- Define the image to load
|
||||
theme.titlebar_close_button_normal = "~/.config/awesome/theme/titlebar/close_normal.png"
|
||||
theme.titlebar_close_button_focus = "~/.config/awesome/theme/titlebar/close_focus.png"
|
||||
|
||||
theme.titlebar_ontop_button_normal_inactive = "~/.config/awesome/theme/titlebar/ontop_normal_inactive.png"
|
||||
theme.titlebar_ontop_button_focus_inactive = "~/.config/awesome/theme/titlebar/ontop_focus_inactive.png"
|
||||
theme.titlebar_ontop_button_normal_active = "~/.config/awesome/theme/titlebar/ontop_normal_active.png"
|
||||
theme.titlebar_ontop_button_focus_active = "~/.config/awesome/theme/titlebar/ontop_focus_active.png"
|
||||
|
||||
theme.titlebar_sticky_button_normal_inactive = "~/.config/awesome/theme/titlebar/sticky_normal_inactive.png"
|
||||
theme.titlebar_sticky_button_focus_inactive = "~/.config/awesome/theme/titlebar/sticky_focus_inactive.png"
|
||||
theme.titlebar_sticky_button_normal_active = "~/.config/awesome/theme/titlebar/sticky_normal_active.png"
|
||||
theme.titlebar_sticky_button_focus_active = "~/.config/awesome/theme/titlebar/sticky_focus_active.png"
|
||||
|
||||
theme.titlebar_floating_button_normal_inactive = "~/.config/awesome/theme/titlebar/floating_normal_inactive.png"
|
||||
theme.titlebar_floating_button_focus_inactive = "~/.config/awesome/theme/titlebar/floating_focus_inactive.png"
|
||||
theme.titlebar_floating_button_normal_active = "~/.config/awesome/theme/titlebar/floating_normal_active.png"
|
||||
theme.titlebar_floating_button_focus_active = "~/.config/awesome/theme/titlebar/floating_focus_active.png"
|
||||
|
||||
theme.titlebar_maximized_button_normal_inactive = "~/.config/awesome/theme/titlebar/maximized_normal_inactive.png"
|
||||
theme.titlebar_maximized_button_focus_inactive = "~/.config/awesome/theme/titlebar/maximized_focus_inactive.png"
|
||||
theme.titlebar_maximized_button_normal_active = "~/.config/awesome/theme/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = "~/.config/awesome/theme/titlebar/maximized_focus_active.png"
|
||||
|
||||
-- theme.wallpaper "/home/edupin/.config/awesome/background/background-images-15.jpg"
|
||||
wallpaper_cmd = "find ~/.config/awesome/background/ -type f -name '*.jpg' -o -name '*.png' | shuf -n 1 | xargs feh --bg-scale"
|
||||
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = "~/.config/awesome/theme/layouts/fairhw.png"
|
||||
theme.layout_fairv = "~/.config/awesome/theme/layouts/fairvw.png"
|
||||
theme.layout_floating = "~/.config/awesome/theme/layouts/floatingw.png"
|
||||
theme.layout_magnifier = "~/.config/awesome/theme/layouts/magnifierw.png"
|
||||
theme.layout_max = "~/.config/awesome/theme/layouts/maxw.png"
|
||||
theme.layout_fullscreen = "~/.config/awesome/theme/layouts/fullscreenw.png"
|
||||
theme.layout_tilebottom = "~/.config/awesome/theme/layouts/tilebottomw.png"
|
||||
theme.layout_tileleft = "~/.config/awesome/theme/layouts/tileleftw.png"
|
||||
theme.layout_tile = "~/.config/awesome/theme/layouts/tilew.png"
|
||||
theme.layout_tiletop = "~/.config/awesome/theme/layouts/tiletopw.png"
|
||||
theme.layout_spiral = "~/.config/awesome/theme/layouts/spiralw.png"
|
||||
theme.layout_dwindle = "~/.config/awesome/theme/layouts/dwindlew.png"
|
||||
|
||||
theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png"
|
||||
|
||||
-- Define the icon theme for application icons. If not set then the icons
|
||||
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
||||
theme.icon_theme = nil
|
||||
|
||||
return theme
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
BIN
.config/awesome/theme/titlebar/close_focus.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
.config/awesome/theme/titlebar/close_normal.png
Normal file
After Width: | Height: | Size: 849 B |
BIN
.config/awesome/theme/titlebar/floating_focus_active.png
Normal file
After Width: | Height: | Size: 598 B |
BIN
.config/awesome/theme/titlebar/floating_focus_inactive.png
Normal file
After Width: | Height: | Size: 584 B |
BIN
.config/awesome/theme/titlebar/floating_normal_active.png
Normal file
After Width: | Height: | Size: 841 B |
BIN
.config/awesome/theme/titlebar/floating_normal_inactive.png
Normal file
After Width: | Height: | Size: 564 B |
BIN
.config/awesome/theme/titlebar/maximized_focus_active.png
Normal file
After Width: | Height: | Size: 1013 B |
BIN
.config/awesome/theme/titlebar/maximized_focus_inactive.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
.config/awesome/theme/titlebar/maximized_normal_active.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/awesome/theme/titlebar/maximized_normal_inactive.png
Normal file
After Width: | Height: | Size: 744 B |
BIN
.config/awesome/theme/titlebar/ontop_focus_active.png
Normal file
After Width: | Height: | Size: 774 B |
BIN
.config/awesome/theme/titlebar/ontop_focus_inactive.png
Normal file
After Width: | Height: | Size: 702 B |
BIN
.config/awesome/theme/titlebar/ontop_normal_active.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
.config/awesome/theme/titlebar/ontop_normal_inactive.png
Normal file
After Width: | Height: | Size: 690 B |
BIN
.config/awesome/theme/titlebar/sticky_focus_active.png
Normal file
After Width: | Height: | Size: 833 B |
BIN
.config/awesome/theme/titlebar/sticky_focus_inactive.png
Normal file
After Width: | Height: | Size: 622 B |
BIN
.config/awesome/theme/titlebar/sticky_normal_active.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
.config/awesome/theme/titlebar/sticky_normal_inactive.png
Normal file
After Width: | Height: | Size: 623 B |
BIN
.config/sway/background/background-images-1.jpg
Executable file
After Width: | Height: | Size: 113 KiB |
BIN
.config/sway/background/background-images-10.jpg
Executable file
After Width: | Height: | Size: 286 KiB |
BIN
.config/sway/background/background-images-11.jpg
Executable file
After Width: | Height: | Size: 308 KiB |
BIN
.config/sway/background/background-images-12.jpg
Executable file
After Width: | Height: | Size: 303 KiB |
BIN
.config/sway/background/background-images-13.jpg
Executable file
After Width: | Height: | Size: 280 KiB |
BIN
.config/sway/background/background-images-14.jpg
Executable file
After Width: | Height: | Size: 171 KiB |
BIN
.config/sway/background/background-images-15.jpg
Executable file
After Width: | Height: | Size: 177 KiB |
BIN
.config/sway/background/background-images-16.jpg
Executable file
After Width: | Height: | Size: 200 KiB |
BIN
.config/sway/background/background-images-17.png
Executable file
After Width: | Height: | Size: 2.1 MiB |
BIN
.config/sway/background/background-images-18.jpg
Executable file
After Width: | Height: | Size: 334 KiB |
BIN
.config/sway/background/background-images-19.jpg
Executable file
After Width: | Height: | Size: 174 KiB |
BIN
.config/sway/background/background-images-2.jpg
Executable file
After Width: | Height: | Size: 266 KiB |
BIN
.config/sway/background/background-images-20.jpg
Executable file
After Width: | Height: | Size: 400 KiB |
BIN
.config/sway/background/background-images-21.jpg
Executable file
After Width: | Height: | Size: 224 KiB |