This commit is contained in:
Thomas FORGIONE 2016-10-21 10:29:31 +02:00
parent 9ec50004c1
commit b4a87e8ac9
3 changed files with 11 additions and 7 deletions

View File

@ -9,7 +9,7 @@ local beautiful = require("beautiful")
local previous_percent = 0
function batteryInfo()
local fd = io.popen('acpi | cut -d ":" -f 2 | cut -d "," -f 2 | tr -d "%"')
local fd = io.popen('acpi | tail -n 1 | cut -d ":" -f 2 | cut -d "," -f 2 | tr -d "%"')
local percentage = fd:read('*all')
fd:close()
return tonumber(percentage)

View File

@ -14,6 +14,7 @@ local menubar = require("menubar")
local vicious = require("vicious")
home = "/home/thomas"
browser = "chromium"
os.execute('xset m 16/1 0')
os.setlocale("fr_FR.UTF-8")
@ -79,7 +80,7 @@ function change_wallpaper(path)
end
end
change_wallpaper('1200custom.png')
change_wallpaper('arch2.png')
-- Widgets
local volume = require("volume")
@ -374,11 +375,13 @@ globalkeys = awful.util.table.join(
end),
-- Chromium
awful.key({ }, "XF86HomePage", function () os.execute('firefox&') end),
awful.key({ modkey}, "a", function () os.execute('firefox&')
awful.key({ }, "XF86HomePage", function () os.execute('$BROWSER &') end),
awful.key({ modkey}, "a", function () os.execute(browser .. '&')
naughty.notify({
title = "Firefox starting...",
text = awesome.startup_errors }) end),
title = browser .. " starting...",
text = awesome.startup_errors })
end
),
awful.key({modkey, "Shift"}, "Tab", function() os.execute('xdotool key Caps_Lock') end)
)

1
vimrc
View File

@ -105,6 +105,7 @@ let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1
" }}}
" BACKUPS ###########################################################{{{
set dir=$HOME/.vim/swp//
autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . escape(substitute(expand('%:p'), "/", "%", "g"), "%")
if exists('+undofile')