From 93ff290def10592a829f6e74ad243d55139b5cd7 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Sun, 23 Oct 2016 14:43:14 +0200 Subject: [PATCH] Home is good now --- awesome/rc.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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