Stuff
This commit is contained in:
parent
9ec50004c1
commit
b4a87e8ac9
|
@ -9,7 +9,7 @@ local beautiful = require("beautiful")
|
||||||
local previous_percent = 0
|
local previous_percent = 0
|
||||||
|
|
||||||
function batteryInfo()
|
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')
|
local percentage = fd:read('*all')
|
||||||
fd:close()
|
fd:close()
|
||||||
return tonumber(percentage)
|
return tonumber(percentage)
|
||||||
|
|
|
@ -14,6 +14,7 @@ local menubar = require("menubar")
|
||||||
local vicious = require("vicious")
|
local vicious = require("vicious")
|
||||||
|
|
||||||
home = "/home/thomas"
|
home = "/home/thomas"
|
||||||
|
browser = "chromium"
|
||||||
|
|
||||||
os.execute('xset m 16/1 0')
|
os.execute('xset m 16/1 0')
|
||||||
os.setlocale("fr_FR.UTF-8")
|
os.setlocale("fr_FR.UTF-8")
|
||||||
|
@ -79,7 +80,7 @@ function change_wallpaper(path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
change_wallpaper('1200custom.png')
|
change_wallpaper('arch2.png')
|
||||||
|
|
||||||
-- Widgets
|
-- Widgets
|
||||||
local volume = require("volume")
|
local volume = require("volume")
|
||||||
|
@ -374,11 +375,13 @@ globalkeys = awful.util.table.join(
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- Chromium
|
-- Chromium
|
||||||
awful.key({ }, "XF86HomePage", function () os.execute('firefox&') end),
|
awful.key({ }, "XF86HomePage", function () os.execute('$BROWSER &') end),
|
||||||
awful.key({ modkey}, "a", function () os.execute('firefox&')
|
awful.key({ modkey}, "a", function () os.execute(browser .. '&')
|
||||||
naughty.notify({
|
naughty.notify({
|
||||||
title = "Firefox starting...",
|
title = browser .. " starting...",
|
||||||
text = awesome.startup_errors }) end),
|
text = awesome.startup_errors })
|
||||||
|
end
|
||||||
|
),
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "Tab", function() os.execute('xdotool key Caps_Lock') end)
|
awful.key({modkey, "Shift"}, "Tab", function() os.execute('xdotool key Caps_Lock') end)
|
||||||
)
|
)
|
||||||
|
|
1
vimrc
1
vimrc
|
@ -105,6 +105,7 @@ let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" BACKUPS ###########################################################{{{
|
" BACKUPS ###########################################################{{{
|
||||||
|
set dir=$HOME/.vim/swp//
|
||||||
autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . escape(substitute(expand('%:p'), "/", "%", "g"), "%")
|
autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . escape(substitute(expand('%:p'), "/", "%", "g"), "%")
|
||||||
|
|
||||||
if exists('+undofile')
|
if exists('+undofile')
|
||||||
|
|
Loading…
Reference in New Issue