diff --git a/awesome/rc.lua b/awesome/rc.lua index 5cecf2a..a83d78c 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -13,8 +13,8 @@ naughty = require("naughty") local menubar = require("menubar") local vicious = require("vicious") -home = "/home/thomas" -browser = "chromium" +home = os.getenv('HOME') +browser = "firefox" os.execute('xset m 16/1 0') os.setlocale("fr_FR.UTF-8") @@ -65,7 +65,7 @@ function file_exists(name) end function change_wallpaper(path) - path = '/home/thomas/Pictures/Wallpapers/' .. path + path = home .. '/Pictures/Wallpapers/' .. path if not file_exists(path) then return @@ -371,7 +371,7 @@ globalkeys = awful.util.table.join( -- Print screen keys awful.key({ }, "Print", function () - os.execute('gnome-screenshot -fp "`echo -n "/home/thomas/Pictures/Captures/Capture du " && date "+%Y-%m-%d %H:%M:%S"`.png"') + os.execute('gnome-screenshot -fp "`echo -n ' .. home .. '"/Pictures/Captures/Capture du " && date "+%Y-%m-%d %H:%M:%S"`.png"') end), -- Chromium