diff --git a/.bashrc b/.bashrc index 22b2a34..182c63e 100644 --- a/.bashrc +++ b/.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 diff --git a/.bin/gitcc b/.bin/gitcc new file mode 100755 index 0000000..7e242b2 --- /dev/null +++ b/.bin/gitcc @@ -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 + + + \ No newline at end of file diff --git a/.bin/tarGen.sh b/.bin/tarGen.sh new file mode 100755 index 0000000..2e40ee0 --- /dev/null +++ b/.bin/tarGen.sh @@ -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 + diff --git a/.bin/workspaceMode.sh b/.bin/workspaceMode.sh new file mode 100755 index 0000000..8ea8702 --- /dev/null +++ b/.bin/workspaceMode.sh @@ -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 + diff --git a/.config/awesome/archmenu.lua b/.config/awesome/archmenu.lua new file mode 100644 index 0000000..c28d6b0 --- /dev/null +++ b/.config/awesome/archmenu.lua @@ -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}, +} + diff --git a/.config/awesome/background/background-images-1.jpg b/.config/awesome/background/background-images-1.jpg new file mode 100644 index 0000000..4e9d2be Binary files /dev/null and b/.config/awesome/background/background-images-1.jpg differ diff --git a/.config/awesome/background/background-images-10.jpg b/.config/awesome/background/background-images-10.jpg new file mode 100644 index 0000000..1f36c29 Binary files /dev/null and b/.config/awesome/background/background-images-10.jpg differ diff --git a/.config/awesome/background/background-images-11.jpg b/.config/awesome/background/background-images-11.jpg new file mode 100644 index 0000000..649926f Binary files /dev/null and b/.config/awesome/background/background-images-11.jpg differ diff --git a/.config/awesome/background/background-images-12.jpg b/.config/awesome/background/background-images-12.jpg new file mode 100644 index 0000000..3d9b075 Binary files /dev/null and b/.config/awesome/background/background-images-12.jpg differ diff --git a/.config/awesome/background/background-images-13.jpg b/.config/awesome/background/background-images-13.jpg new file mode 100644 index 0000000..2bf05f7 Binary files /dev/null and b/.config/awesome/background/background-images-13.jpg differ diff --git a/.config/awesome/background/background-images-14.jpg b/.config/awesome/background/background-images-14.jpg new file mode 100644 index 0000000..56d80bf Binary files /dev/null and b/.config/awesome/background/background-images-14.jpg differ diff --git a/.config/awesome/background/background-images-15.jpg b/.config/awesome/background/background-images-15.jpg new file mode 100644 index 0000000..008d11e Binary files /dev/null and b/.config/awesome/background/background-images-15.jpg differ diff --git a/.config/awesome/background/background-images-16.jpg b/.config/awesome/background/background-images-16.jpg new file mode 100644 index 0000000..8907799 Binary files /dev/null and b/.config/awesome/background/background-images-16.jpg differ diff --git a/.config/awesome/background/background-images-17.png b/.config/awesome/background/background-images-17.png new file mode 100644 index 0000000..be7024c Binary files /dev/null and b/.config/awesome/background/background-images-17.png differ diff --git a/.config/awesome/background/background-images-18.jpg b/.config/awesome/background/background-images-18.jpg new file mode 100644 index 0000000..0770a76 Binary files /dev/null and b/.config/awesome/background/background-images-18.jpg differ diff --git a/.config/awesome/background/background-images-19.jpg b/.config/awesome/background/background-images-19.jpg new file mode 100644 index 0000000..4146e9b Binary files /dev/null and b/.config/awesome/background/background-images-19.jpg differ diff --git a/.config/awesome/background/background-images-2.jpg b/.config/awesome/background/background-images-2.jpg new file mode 100644 index 0000000..e22dc2d Binary files /dev/null and b/.config/awesome/background/background-images-2.jpg differ diff --git a/.config/awesome/background/background-images-20.jpg b/.config/awesome/background/background-images-20.jpg new file mode 100644 index 0000000..d1cb053 Binary files /dev/null and b/.config/awesome/background/background-images-20.jpg differ diff --git a/.config/awesome/background/background-images-21.jpg b/.config/awesome/background/background-images-21.jpg new file mode 100644 index 0000000..63a4570 Binary files /dev/null and b/.config/awesome/background/background-images-21.jpg differ diff --git a/.config/awesome/background/background-images-22.jpg b/.config/awesome/background/background-images-22.jpg new file mode 100644 index 0000000..32d5594 Binary files /dev/null and b/.config/awesome/background/background-images-22.jpg differ diff --git a/.config/awesome/background/background-images-23.jpg b/.config/awesome/background/background-images-23.jpg new file mode 100644 index 0000000..c47b49e Binary files /dev/null and b/.config/awesome/background/background-images-23.jpg differ diff --git a/.config/awesome/background/background-images-24.jpg b/.config/awesome/background/background-images-24.jpg new file mode 100644 index 0000000..a2f76af Binary files /dev/null and b/.config/awesome/background/background-images-24.jpg differ diff --git a/.config/awesome/background/background-images-25.jpg b/.config/awesome/background/background-images-25.jpg new file mode 100644 index 0000000..89b6ad6 Binary files /dev/null and b/.config/awesome/background/background-images-25.jpg differ diff --git a/.config/awesome/background/background-images-26.jpg b/.config/awesome/background/background-images-26.jpg new file mode 100644 index 0000000..f41ff6c Binary files /dev/null and b/.config/awesome/background/background-images-26.jpg differ diff --git a/.config/awesome/background/background-images-27.jpg b/.config/awesome/background/background-images-27.jpg new file mode 100644 index 0000000..f7ef28e Binary files /dev/null and b/.config/awesome/background/background-images-27.jpg differ diff --git a/.config/awesome/background/background-images-28.jpg b/.config/awesome/background/background-images-28.jpg new file mode 100644 index 0000000..5d04bc8 Binary files /dev/null and b/.config/awesome/background/background-images-28.jpg differ diff --git a/.config/awesome/background/background-images-29.jpg b/.config/awesome/background/background-images-29.jpg new file mode 100644 index 0000000..322ed8e Binary files /dev/null and b/.config/awesome/background/background-images-29.jpg differ diff --git a/.config/awesome/background/background-images-3.jpg b/.config/awesome/background/background-images-3.jpg new file mode 100644 index 0000000..01513a9 Binary files /dev/null and b/.config/awesome/background/background-images-3.jpg differ diff --git a/.config/awesome/background/background-images-30.jpg b/.config/awesome/background/background-images-30.jpg new file mode 100644 index 0000000..df96482 Binary files /dev/null and b/.config/awesome/background/background-images-30.jpg differ diff --git a/.config/awesome/background/background-images-31.jpg b/.config/awesome/background/background-images-31.jpg new file mode 100644 index 0000000..8855a83 Binary files /dev/null and b/.config/awesome/background/background-images-31.jpg differ diff --git a/.config/awesome/background/background-images-4.jpg b/.config/awesome/background/background-images-4.jpg new file mode 100644 index 0000000..2ae105f Binary files /dev/null and b/.config/awesome/background/background-images-4.jpg differ diff --git a/.config/awesome/background/background-images-5.jpg b/.config/awesome/background/background-images-5.jpg new file mode 100644 index 0000000..a67f21c Binary files /dev/null and b/.config/awesome/background/background-images-5.jpg differ diff --git a/.config/awesome/background/background-images-6.jpg b/.config/awesome/background/background-images-6.jpg new file mode 100644 index 0000000..8ce8b31 Binary files /dev/null and b/.config/awesome/background/background-images-6.jpg differ diff --git a/.config/awesome/background/background-images-7.jpg b/.config/awesome/background/background-images-7.jpg new file mode 100644 index 0000000..0152808 Binary files /dev/null and b/.config/awesome/background/background-images-7.jpg differ diff --git a/.config/awesome/background/background-images-8.jpg b/.config/awesome/background/background-images-8.jpg new file mode 100644 index 0000000..a904e4e Binary files /dev/null and b/.config/awesome/background/background-images-8.jpg differ diff --git a/.config/awesome/background/background-images-9.jpg b/.config/awesome/background/background-images-9.jpg new file mode 100644 index 0000000..9b360c0 Binary files /dev/null and b/.config/awesome/background/background-images-9.jpg differ diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua new file mode 100644 index 0000000..5de6d8e --- /dev/null +++ b/.config/awesome/rc.lua @@ -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) +-- }}} diff --git a/.config/awesome/theme/README b/.config/awesome/theme/README new file mode 100644 index 0000000..1ddb349 --- /dev/null +++ b/.config/awesome/theme/README @@ -0,0 +1,3 @@ +Background images: + Mikael Eriksson + Licensed under CC-BY-SA-3.0 diff --git a/.config/awesome/theme/background.png b/.config/awesome/theme/background.png new file mode 100644 index 0000000..d72a39e Binary files /dev/null and b/.config/awesome/theme/background.png differ diff --git a/.config/awesome/theme/background_white.png b/.config/awesome/theme/background_white.png new file mode 100644 index 0000000..363ddd6 Binary files /dev/null and b/.config/awesome/theme/background_white.png differ diff --git a/.config/awesome/theme/layouts/dwindle.png b/.config/awesome/theme/layouts/dwindle.png new file mode 100644 index 0000000..943ece5 Binary files /dev/null and b/.config/awesome/theme/layouts/dwindle.png differ diff --git a/.config/awesome/theme/layouts/dwindlew.png b/.config/awesome/theme/layouts/dwindlew.png new file mode 100644 index 0000000..36de1ba Binary files /dev/null and b/.config/awesome/theme/layouts/dwindlew.png differ diff --git a/.config/awesome/theme/layouts/fairh.png b/.config/awesome/theme/layouts/fairh.png new file mode 100644 index 0000000..b4e289d Binary files /dev/null and b/.config/awesome/theme/layouts/fairh.png differ diff --git a/.config/awesome/theme/layouts/fairhw.png b/.config/awesome/theme/layouts/fairhw.png new file mode 100644 index 0000000..514d66d Binary files /dev/null and b/.config/awesome/theme/layouts/fairhw.png differ diff --git a/.config/awesome/theme/layouts/fairv.png b/.config/awesome/theme/layouts/fairv.png new file mode 100644 index 0000000..e5aad70 Binary files /dev/null and b/.config/awesome/theme/layouts/fairv.png differ diff --git a/.config/awesome/theme/layouts/fairvw.png b/.config/awesome/theme/layouts/fairvw.png new file mode 100644 index 0000000..f97ce56 Binary files /dev/null and b/.config/awesome/theme/layouts/fairvw.png differ diff --git a/.config/awesome/theme/layouts/floating.png b/.config/awesome/theme/layouts/floating.png new file mode 100644 index 0000000..cbc7804 Binary files /dev/null and b/.config/awesome/theme/layouts/floating.png differ diff --git a/.config/awesome/theme/layouts/floatingw.png b/.config/awesome/theme/layouts/floatingw.png new file mode 100644 index 0000000..7ddf7ae Binary files /dev/null and b/.config/awesome/theme/layouts/floatingw.png differ diff --git a/.config/awesome/theme/layouts/fullscreen.png b/.config/awesome/theme/layouts/fullscreen.png new file mode 100644 index 0000000..46716f5 Binary files /dev/null and b/.config/awesome/theme/layouts/fullscreen.png differ diff --git a/.config/awesome/theme/layouts/fullscreenw.png b/.config/awesome/theme/layouts/fullscreenw.png new file mode 100644 index 0000000..2c3cfad Binary files /dev/null and b/.config/awesome/theme/layouts/fullscreenw.png differ diff --git a/.config/awesome/theme/layouts/magnifier.png b/.config/awesome/theme/layouts/magnifier.png new file mode 100644 index 0000000..1476555 Binary files /dev/null and b/.config/awesome/theme/layouts/magnifier.png differ diff --git a/.config/awesome/theme/layouts/magnifierw.png b/.config/awesome/theme/layouts/magnifierw.png new file mode 100644 index 0000000..97c1d11 Binary files /dev/null and b/.config/awesome/theme/layouts/magnifierw.png differ diff --git a/.config/awesome/theme/layouts/max.png b/.config/awesome/theme/layouts/max.png new file mode 100644 index 0000000..fe70bef Binary files /dev/null and b/.config/awesome/theme/layouts/max.png differ diff --git a/.config/awesome/theme/layouts/maxw.png b/.config/awesome/theme/layouts/maxw.png new file mode 100644 index 0000000..d8debb8 Binary files /dev/null and b/.config/awesome/theme/layouts/maxw.png differ diff --git a/.config/awesome/theme/layouts/spiral.png b/.config/awesome/theme/layouts/spiral.png new file mode 100644 index 0000000..a24faf5 Binary files /dev/null and b/.config/awesome/theme/layouts/spiral.png differ diff --git a/.config/awesome/theme/layouts/spiralw.png b/.config/awesome/theme/layouts/spiralw.png new file mode 100644 index 0000000..f34ceb0 Binary files /dev/null and b/.config/awesome/theme/layouts/spiralw.png differ diff --git a/.config/awesome/theme/layouts/tile.png b/.config/awesome/theme/layouts/tile.png new file mode 100644 index 0000000..071a385 Binary files /dev/null and b/.config/awesome/theme/layouts/tile.png differ diff --git a/.config/awesome/theme/layouts/tilebottom.png b/.config/awesome/theme/layouts/tilebottom.png new file mode 100644 index 0000000..aeedbe2 Binary files /dev/null and b/.config/awesome/theme/layouts/tilebottom.png differ diff --git a/.config/awesome/theme/layouts/tilebottomw.png b/.config/awesome/theme/layouts/tilebottomw.png new file mode 100644 index 0000000..f42da9d Binary files /dev/null and b/.config/awesome/theme/layouts/tilebottomw.png differ diff --git a/.config/awesome/theme/layouts/tileleft.png b/.config/awesome/theme/layouts/tileleft.png new file mode 100644 index 0000000..ab55e08 Binary files /dev/null and b/.config/awesome/theme/layouts/tileleft.png differ diff --git a/.config/awesome/theme/layouts/tileleftw.png b/.config/awesome/theme/layouts/tileleftw.png new file mode 100644 index 0000000..c18e7b4 Binary files /dev/null and b/.config/awesome/theme/layouts/tileleftw.png differ diff --git a/.config/awesome/theme/layouts/tiletop.png b/.config/awesome/theme/layouts/tiletop.png new file mode 100644 index 0000000..3febc35 Binary files /dev/null and b/.config/awesome/theme/layouts/tiletop.png differ diff --git a/.config/awesome/theme/layouts/tiletopw.png b/.config/awesome/theme/layouts/tiletopw.png new file mode 100644 index 0000000..daf965f Binary files /dev/null and b/.config/awesome/theme/layouts/tiletopw.png differ diff --git a/.config/awesome/theme/layouts/tilew.png b/.config/awesome/theme/layouts/tilew.png new file mode 100644 index 0000000..c722a35 Binary files /dev/null and b/.config/awesome/theme/layouts/tilew.png differ diff --git a/.config/awesome/theme/submenu.png b/.config/awesome/theme/submenu.png new file mode 100644 index 0000000..b2778e2 Binary files /dev/null and b/.config/awesome/theme/submenu.png differ diff --git a/.config/awesome/theme/taglist/squarefw.png b/.config/awesome/theme/taglist/squarefw.png new file mode 100644 index 0000000..2a86430 Binary files /dev/null and b/.config/awesome/theme/taglist/squarefw.png differ diff --git a/.config/awesome/theme/taglist/squarew.png b/.config/awesome/theme/taglist/squarew.png new file mode 100644 index 0000000..913f2ca Binary files /dev/null and b/.config/awesome/theme/taglist/squarew.png differ diff --git a/.config/awesome/theme/theme.lua b/.config/awesome/theme/theme.lua new file mode 100644 index 0000000..fa7655d --- /dev/null +++ b/.config/awesome/theme/theme.lua @@ -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 diff --git a/.config/awesome/theme/titlebar/close_focus.png b/.config/awesome/theme/titlebar/close_focus.png new file mode 100644 index 0000000..a5b7958 Binary files /dev/null and b/.config/awesome/theme/titlebar/close_focus.png differ diff --git a/.config/awesome/theme/titlebar/close_normal.png b/.config/awesome/theme/titlebar/close_normal.png new file mode 100644 index 0000000..46377f9 Binary files /dev/null and b/.config/awesome/theme/titlebar/close_normal.png differ diff --git a/.config/awesome/theme/titlebar/floating_focus_active.png b/.config/awesome/theme/titlebar/floating_focus_active.png new file mode 100644 index 0000000..3447bb2 Binary files /dev/null and b/.config/awesome/theme/titlebar/floating_focus_active.png differ diff --git a/.config/awesome/theme/titlebar/floating_focus_inactive.png b/.config/awesome/theme/titlebar/floating_focus_inactive.png new file mode 100644 index 0000000..644a46f Binary files /dev/null and b/.config/awesome/theme/titlebar/floating_focus_inactive.png differ diff --git a/.config/awesome/theme/titlebar/floating_normal_active.png b/.config/awesome/theme/titlebar/floating_normal_active.png new file mode 100644 index 0000000..daec971 Binary files /dev/null and b/.config/awesome/theme/titlebar/floating_normal_active.png differ diff --git a/.config/awesome/theme/titlebar/floating_normal_inactive.png b/.config/awesome/theme/titlebar/floating_normal_inactive.png new file mode 100644 index 0000000..23aa61a Binary files /dev/null and b/.config/awesome/theme/titlebar/floating_normal_inactive.png differ diff --git a/.config/awesome/theme/titlebar/maximized_focus_active.png b/.config/awesome/theme/titlebar/maximized_focus_active.png new file mode 100644 index 0000000..78a2914 Binary files /dev/null and b/.config/awesome/theme/titlebar/maximized_focus_active.png differ diff --git a/.config/awesome/theme/titlebar/maximized_focus_inactive.png b/.config/awesome/theme/titlebar/maximized_focus_inactive.png new file mode 100644 index 0000000..0743060 Binary files /dev/null and b/.config/awesome/theme/titlebar/maximized_focus_inactive.png differ diff --git a/.config/awesome/theme/titlebar/maximized_normal_active.png b/.config/awesome/theme/titlebar/maximized_normal_active.png new file mode 100644 index 0000000..5e93cb6 Binary files /dev/null and b/.config/awesome/theme/titlebar/maximized_normal_active.png differ diff --git a/.config/awesome/theme/titlebar/maximized_normal_inactive.png b/.config/awesome/theme/titlebar/maximized_normal_inactive.png new file mode 100644 index 0000000..9ccc482 Binary files /dev/null and b/.config/awesome/theme/titlebar/maximized_normal_inactive.png differ diff --git a/.config/awesome/theme/titlebar/ontop_focus_active.png b/.config/awesome/theme/titlebar/ontop_focus_active.png new file mode 100644 index 0000000..f954bed Binary files /dev/null and b/.config/awesome/theme/titlebar/ontop_focus_active.png differ diff --git a/.config/awesome/theme/titlebar/ontop_focus_inactive.png b/.config/awesome/theme/titlebar/ontop_focus_inactive.png new file mode 100644 index 0000000..ced2171 Binary files /dev/null and b/.config/awesome/theme/titlebar/ontop_focus_inactive.png differ diff --git a/.config/awesome/theme/titlebar/ontop_normal_active.png b/.config/awesome/theme/titlebar/ontop_normal_active.png new file mode 100644 index 0000000..b3a65ca Binary files /dev/null and b/.config/awesome/theme/titlebar/ontop_normal_active.png differ diff --git a/.config/awesome/theme/titlebar/ontop_normal_inactive.png b/.config/awesome/theme/titlebar/ontop_normal_inactive.png new file mode 100644 index 0000000..ba710d4 Binary files /dev/null and b/.config/awesome/theme/titlebar/ontop_normal_inactive.png differ diff --git a/.config/awesome/theme/titlebar/sticky_focus_active.png b/.config/awesome/theme/titlebar/sticky_focus_active.png new file mode 100644 index 0000000..1106399 Binary files /dev/null and b/.config/awesome/theme/titlebar/sticky_focus_active.png differ diff --git a/.config/awesome/theme/titlebar/sticky_focus_inactive.png b/.config/awesome/theme/titlebar/sticky_focus_inactive.png new file mode 100644 index 0000000..6f508a5 Binary files /dev/null and b/.config/awesome/theme/titlebar/sticky_focus_inactive.png differ diff --git a/.config/awesome/theme/titlebar/sticky_normal_active.png b/.config/awesome/theme/titlebar/sticky_normal_active.png new file mode 100644 index 0000000..8b4f685 Binary files /dev/null and b/.config/awesome/theme/titlebar/sticky_normal_active.png differ diff --git a/.config/awesome/theme/titlebar/sticky_normal_inactive.png b/.config/awesome/theme/titlebar/sticky_normal_inactive.png new file mode 100644 index 0000000..fe5d19e Binary files /dev/null and b/.config/awesome/theme/titlebar/sticky_normal_inactive.png differ diff --git a/.config/sway/background/background-images-1.jpg b/.config/sway/background/background-images-1.jpg new file mode 100755 index 0000000..4e9d2be Binary files /dev/null and b/.config/sway/background/background-images-1.jpg differ diff --git a/.config/sway/background/background-images-10.jpg b/.config/sway/background/background-images-10.jpg new file mode 100755 index 0000000..1f36c29 Binary files /dev/null and b/.config/sway/background/background-images-10.jpg differ diff --git a/.config/sway/background/background-images-11.jpg b/.config/sway/background/background-images-11.jpg new file mode 100755 index 0000000..649926f Binary files /dev/null and b/.config/sway/background/background-images-11.jpg differ diff --git a/.config/sway/background/background-images-12.jpg b/.config/sway/background/background-images-12.jpg new file mode 100755 index 0000000..3d9b075 Binary files /dev/null and b/.config/sway/background/background-images-12.jpg differ diff --git a/.config/sway/background/background-images-13.jpg b/.config/sway/background/background-images-13.jpg new file mode 100755 index 0000000..2bf05f7 Binary files /dev/null and b/.config/sway/background/background-images-13.jpg differ diff --git a/.config/sway/background/background-images-14.jpg b/.config/sway/background/background-images-14.jpg new file mode 100755 index 0000000..56d80bf Binary files /dev/null and b/.config/sway/background/background-images-14.jpg differ diff --git a/.config/sway/background/background-images-15.jpg b/.config/sway/background/background-images-15.jpg new file mode 100755 index 0000000..008d11e Binary files /dev/null and b/.config/sway/background/background-images-15.jpg differ diff --git a/.config/sway/background/background-images-16.jpg b/.config/sway/background/background-images-16.jpg new file mode 100755 index 0000000..8907799 Binary files /dev/null and b/.config/sway/background/background-images-16.jpg differ diff --git a/.config/sway/background/background-images-17.png b/.config/sway/background/background-images-17.png new file mode 100755 index 0000000..be7024c Binary files /dev/null and b/.config/sway/background/background-images-17.png differ diff --git a/.config/sway/background/background-images-18.jpg b/.config/sway/background/background-images-18.jpg new file mode 100755 index 0000000..0770a76 Binary files /dev/null and b/.config/sway/background/background-images-18.jpg differ diff --git a/.config/sway/background/background-images-19.jpg b/.config/sway/background/background-images-19.jpg new file mode 100755 index 0000000..4146e9b Binary files /dev/null and b/.config/sway/background/background-images-19.jpg differ diff --git a/.config/sway/background/background-images-2.jpg b/.config/sway/background/background-images-2.jpg new file mode 100755 index 0000000..e22dc2d Binary files /dev/null and b/.config/sway/background/background-images-2.jpg differ diff --git a/.config/sway/background/background-images-20.jpg b/.config/sway/background/background-images-20.jpg new file mode 100755 index 0000000..d1cb053 Binary files /dev/null and b/.config/sway/background/background-images-20.jpg differ diff --git a/.config/sway/background/background-images-21.jpg b/.config/sway/background/background-images-21.jpg new file mode 100755 index 0000000..63a4570 Binary files /dev/null and b/.config/sway/background/background-images-21.jpg differ diff --git a/.config/sway/background/background-images-22.jpg b/.config/sway/background/background-images-22.jpg new file mode 100755 index 0000000..32d5594 Binary files /dev/null and b/.config/sway/background/background-images-22.jpg differ diff --git a/.config/sway/background/background-images-23.jpg b/.config/sway/background/background-images-23.jpg new file mode 100755 index 0000000..c47b49e Binary files /dev/null and b/.config/sway/background/background-images-23.jpg differ diff --git a/.config/sway/background/background-images-24.jpg b/.config/sway/background/background-images-24.jpg new file mode 100755 index 0000000..a2f76af Binary files /dev/null and b/.config/sway/background/background-images-24.jpg differ diff --git a/.config/sway/background/background-images-25.jpg b/.config/sway/background/background-images-25.jpg new file mode 100755 index 0000000..89b6ad6 Binary files /dev/null and b/.config/sway/background/background-images-25.jpg differ diff --git a/.config/sway/background/background-images-26.jpg b/.config/sway/background/background-images-26.jpg new file mode 100755 index 0000000..f41ff6c Binary files /dev/null and b/.config/sway/background/background-images-26.jpg differ diff --git a/.config/sway/background/background-images-27.jpg b/.config/sway/background/background-images-27.jpg new file mode 100755 index 0000000..f7ef28e Binary files /dev/null and b/.config/sway/background/background-images-27.jpg differ diff --git a/.config/sway/background/background-images-28.jpg b/.config/sway/background/background-images-28.jpg new file mode 100755 index 0000000..5d04bc8 Binary files /dev/null and b/.config/sway/background/background-images-28.jpg differ diff --git a/.config/sway/background/background-images-29.jpg b/.config/sway/background/background-images-29.jpg new file mode 100755 index 0000000..322ed8e Binary files /dev/null and b/.config/sway/background/background-images-29.jpg differ diff --git a/.config/sway/background/background-images-3.jpg b/.config/sway/background/background-images-3.jpg new file mode 100755 index 0000000..01513a9 Binary files /dev/null and b/.config/sway/background/background-images-3.jpg differ diff --git a/.config/sway/background/background-images-30.jpg b/.config/sway/background/background-images-30.jpg new file mode 100755 index 0000000..df96482 Binary files /dev/null and b/.config/sway/background/background-images-30.jpg differ diff --git a/.config/sway/background/background-images-31.jpg b/.config/sway/background/background-images-31.jpg new file mode 100755 index 0000000..8855a83 Binary files /dev/null and b/.config/sway/background/background-images-31.jpg differ diff --git a/.config/sway/background/background-images-4.jpg b/.config/sway/background/background-images-4.jpg new file mode 100755 index 0000000..2ae105f Binary files /dev/null and b/.config/sway/background/background-images-4.jpg differ diff --git a/.config/sway/background/background-images-5.jpg b/.config/sway/background/background-images-5.jpg new file mode 100755 index 0000000..a67f21c Binary files /dev/null and b/.config/sway/background/background-images-5.jpg differ diff --git a/.config/sway/background/background-images-6.jpg b/.config/sway/background/background-images-6.jpg new file mode 100755 index 0000000..8ce8b31 Binary files /dev/null and b/.config/sway/background/background-images-6.jpg differ diff --git a/.config/sway/background/background-images-7.jpg b/.config/sway/background/background-images-7.jpg new file mode 100755 index 0000000..0152808 Binary files /dev/null and b/.config/sway/background/background-images-7.jpg differ diff --git a/.config/sway/background/background-images-8.jpg b/.config/sway/background/background-images-8.jpg new file mode 100755 index 0000000..a904e4e Binary files /dev/null and b/.config/sway/background/background-images-8.jpg differ diff --git a/.config/sway/background/background-images-9.jpg b/.config/sway/background/background-images-9.jpg new file mode 100755 index 0000000..9b360c0 Binary files /dev/null and b/.config/sway/background/background-images-9.jpg differ diff --git a/.config/sway/config b/.config/sway/config new file mode 100755 index 0000000..36d6264 --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,249 @@ +# Default config for sway +# +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 + + +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l + +#workspace_layout +workspace_layout tabbed + +### Output configuration +# +# Default wallpaper (more resolutions are available in /usr/share/sway/) +output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill +# +# Example configuration: +# +# output HDMI-A-1 resolution 1920x1080 position 1920,0 +# +# You can get the names of your outputs by running: swaymsg -t get_outputs + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# The escape symbol "\" has to be removed. +# Read `man 5 sway-input` for more information about this section. + +### Key bindings +# +# Basics: +# + # start a terminal + bindsym $mod+Return exec terminator + + # kill focused window + bindsym $mod+Shift+q kill + + # dmenu with mod+d for arbituary programs + bindsym $mod+d exec dmenu_run -p "Run:" -l 10 + + # Drag floating windows by holding down $mod and left mouse button. + # Resize them with right mouse button + $mod. + # Despite the name, also works for non-floating windows. + # Change normal to inverse to use left mouse button for resizing and right + # mouse button for dragging. + floating_modifier $mod normal + + # reload the configuration file + bindsym $mod+Shift+c reload + + # exit sway (logs you out of your wayland session) + bindsym $mod+Shift+e exit +# +# Moving around: +# + # Move your focus around + bindsym $mod+Alt+$left focus left + bindsym $mod+Alt+$down focus down + bindsym $mod+Alt+$up focus up + bindsym $mod+Alt+$right focus right + # or use $mod+[up|down|left|right] + bindsym $mod+Alt+Left focus left + bindsym $mod+Alt+Down focus down + bindsym $mod+Alt+Up focus up + bindsym $mod+Alt+Right focus right + + # _move_ the focused window with the same, but add Shift + bindsym $mod+Shift+$left move left + bindsym $mod+Shift+$down move down + bindsym $mod+Shift+$up move up + bindsym $mod+Shift+$right move right + # ditto, with arrow keys + bindsym $mod+Shift+Left move left + bindsym $mod+Shift+Down move down + bindsym $mod+Shift+Up move up + bindsym $mod+Shift+Right move right +# +# Workspaces: +# + # switch to workspace + bindsym $mod+F1 workspace 1 + bindsym $mod+F2 workspace 2 + bindsym $mod+F3 workspace 3 + bindsym $mod+F4 workspace 4 + bindsym $mod+F5 workspace 5 + bindsym $mod+F6 workspace 6 + bindsym $mod+F7 workspace 7 + bindsym $mod+F8 workspace 8 + bindsym $mod+F9 workspace 9 + bindsym $mod+F10 workspace 10 + bindsym $mod+F11 workspace 11 + bindsym $mod+F12 workspace 12 + # move focused container to workspace + bindsym $mod+Shift+F1 move container to workspace 1 + bindsym $mod+Shift+F2 move container to workspace 2 + bindsym $mod+Shift+F3 move container to workspace 3 + bindsym $mod+Shift+F4 move container to workspace 4 + bindsym $mod+Shift+F5 move container to workspace 5 + bindsym $mod+Shift+F6 move container to workspace 6 + bindsym $mod+Shift+F7 move container to workspace 7 + bindsym $mod+Shift+F8 move container to workspace 8 + bindsym $mod+Shift+F9 move container to workspace 9 + bindsym $mod+Shift+F10 move container to workspace 10 + bindsym $mod+Shift+F11 move container to workspace 11 + bindsym $mod+Shift+F12 move container to workspace 12 + # Note: workspaces can have any name you want, not just numbers. + # We just use 1-1 as the default. + bindsym $mod+Left workspace prev_on_output + bindsym $mod+Right workspace next_on_output + +# +# Layout stuff: +# + # You can "split" the current object of your focus with + # $mod+b or $mod+v, for horizontal and vertical splits + # respectively. + bindsym $mod+b splith + bindsym $mod+v splitv + + # Switch the current container between different layout styles + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + + # Make the current focus fullscreen + bindsym $mod+f fullscreen + + # Toggle the current focus between tiling and floating mode + bindsym $mod+Shift+space floating toggle + + # Swap focus between the tiling area and the floating area + bindsym $mod+space focus mode_toggle + + # move focus to the parent container + bindsym $mod+a focus parent +# +# Scratchpad: +# + # Sway has a "scratchpad", which is a bag of holding for windows. + # You can send windows there and get them back later. + + # Move the currently focused window to the scratchpad + bindsym $mod+Shift+minus move scratchpad + + # Show the next scratchpad window or hide the focused scratchpad window. + # If there are multiple scratchpad windows, this command cycles through them. + bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10 px or 10 ppt + bindsym $down resize grow height 10 px or 10 ppt + bindsym $up resize shrink height 10 px or 10 ppt + bindsym $right resize grow width 10 px or 10 ppt + + # ditto, with arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position buttom + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + +include /etc/sway/config.d/*o + +set $MENU "Terminator Chromium Opera Edn Gimp Vlc swayLock" +bindsym Menu mode $MENU +mode $MENU { + bindsym m exec gimp, mode "default" + bindsym c exec chromium, mode "default" + bindsym o exec opera, mode "default" + bindsym v exec vlc, mode "default" + bindsym t exec terminator --profile ranger, mode "default" + bindsym e exec edn, mode "default" + bindsym l exec swaylock, mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +output "*" background ~/.config/sway/background/background-images-18.jpg fill + + +# Screenshots + bindsym Print exec swaygrab ~/Download/$(date +"%Y-%m-%d_%H:%M:%S.png") + + +# volume controls (special keys on keyboard) + bindsym XF86AudioMute exec pa-adjust mute + bindsym XF86AudioLowerVolume exec pa-adjust minus + bindsym XF86AudioRaiseVolume exec pa-adjust plus + bindsym $mod+XF86AudioLowerVolume exec pa-adjust seekb + bindsym $mod+XF86AudioRaiseVolume exec pa-adjust seekf + bindsym $mod+Shift+XF86AudioLowerVolume exec pa-adjust seekbb + bindsym $mod+Shift+XF86AudioRaiseVolume exec pa-adjust seekff +# music controls (special keys on keyboard) + bindsym XF86AudioNext exec stewdio skip + bindsym XF86AudioPlay exec stewdio play + bindsym XF86AudioPrev exec stewdio dmenu-search + bindsym $mod+XF86AudioPlay exec stewdio qfav + bindsym $mod+XF86AudioNext exec stewdio dmenu-queue +# i3-lock on mod+pause + #bindsym XF86Sleep exec swaylock -i `wallpaper` -s stretch + #bindsym $mod+XF86Sleep exec swaylock -c 00000000 + bindsym $mod+Pause exec swaylock --image ~/.config/sway/background/*14.jpg + +exec startup sway + diff --git a/.config/sway/config.d/battery b/.config/sway/config.d/battery new file mode 100755 index 0000000..5774fa9 --- /dev/null +++ b/.config/sway/config.d/battery @@ -0,0 +1,67 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 +} + +order += "ipv6" +order += "disk /" +order += "run_watch DHCP" +order += "run_watch VPN" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery 1" +order += "volume master" +order += "load" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery 1 { + format = "%status %percentage %remaining" + last_full_capacity = true + integer_battery_capacity = true + path = /org/freedesktop/UPower/devices/battery_BAT +} + +run_watch DHCP { + pidfile = "/var/run/dhclient*.pid" +} + +run_watch VPN { + pidfile = "/var/run/vpnc/pid" +} + +tztime local { + format = "%Y-%m-%d %I:%M:%S" +} + +load { + format = "%1min" +} + +disk "/" { + format = "%avail" +} + +volume master { +format = "%volume" +device = "default" +mixer = "Master" +} \ No newline at end of file diff --git a/.config/sway/config.d/rules b/.config/sway/config.d/rules new file mode 100755 index 0000000..468c362 --- /dev/null +++ b/.config/sway/config.d/rules @@ -0,0 +1,5 @@ +for_window [id="nautilus"] border pixel +for_window [id="gnome-calculator"] floating enable; border pixel +for_window [class="chromium"] border none +for_window [title="Soundnode"] border none +for_window [title=".*QEMU.*"] border none; fullscreen enable