Awesome now uses rc.lua to launch the required software
This commit is contained in:
parent
379ebcf00d
commit
3cbe6dae30
|
@ -517,17 +517,34 @@ for i = 1, 9 do
|
|||
volume.update()
|
||||
end,
|
||||
{description = "unmute audio", group = "audio"}),
|
||||
awful.key({ modkey }, "Print",
|
||||
awful.key({ }, "Print",
|
||||
function ()
|
||||
local command = [[bash -c 'escrotum "$(xdg-user-dir PICTURES)/%Y-%m-%d_%T_screenshot.png"']]
|
||||
--local command = [[bash -c 'escrotum "$(xdg-user-dir PICTURES)/%Y-%m-%d_%T_screenshot.png"']]
|
||||
for i=1,screen:count() do
|
||||
local command = "bash -c 'flameshot screen -n ".. i-1 .." -p \"$(xdg-user-dir PICTURES)/\"'"
|
||||
awful.spawn.easy_async(command, function(stdout, stderr)
|
||||
naughty.notify {
|
||||
title = "Screenshot saved!",
|
||||
text = stdout,
|
||||
}
|
||||
--naughty.notify {
|
||||
-- title = "Screenshot saved!",
|
||||
-- text = stdout,
|
||||
--}
|
||||
end)
|
||||
end
|
||||
end,
|
||||
{description = "Take screenshot", group = "audio"})
|
||||
{description = "Take screenshot", group = "video"}),
|
||||
awful.key({ 'Shift' }, "Print",
|
||||
function ()
|
||||
--local command = [[bash -c 'escrotum "$(xdg-user-dir PICTURES)/%Y-%m-%d_%T_screenshot.png"']]
|
||||
for i=1,screen:count() do
|
||||
local command = "bash -c 'flameshot gui -p \"$(xdg-user-dir PICTURES)/\"'"
|
||||
awful.spawn.easy_async(command, function(stdout, stderr)
|
||||
--naughty.notify {
|
||||
-- title = "Screenshot saved!",
|
||||
-- text = stdout,
|
||||
--}
|
||||
end)
|
||||
end
|
||||
end,
|
||||
{description = "Take screenshot", group = "video"})
|
||||
)
|
||||
|
||||
clientbuttons = awful.util.table.join(
|
||||
|
@ -730,6 +747,10 @@ end)
|
|||
|
||||
awful.util.spawn_with_shell("run-once pasystray")
|
||||
awful.util.spawn_with_shell("run-once blueman-applet")
|
||||
awful.util.spawn_with_shell("run-once nm-applet")
|
||||
awful.util.spawn_with_shell("run-once 'nextcloud --background'")
|
||||
awful.util.spawn_with_shell("run-once 'udiskie --tray --notify --automount'")
|
||||
awful.util.spawn_with_shell("run-once 'mpd /home/lanxu/.config/mpd/mpd.conf'")
|
||||
--awful.util.spawn_with_shell("run-once conky")
|
||||
--awful.util.spawn_with_shell("run-once dropboxd")
|
||||
--awful.util.spawn_with_shell("run-once light-locker")
|
||||
|
|
|
@ -94,9 +94,7 @@ mytextclock:set_widget(mytextclock_text)
|
|||
mytextclock:set_bg('#512da8')
|
||||
|
||||
-- CPU temperature
|
||||
local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon1/temp1_input"
|
||||
--local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon2/temp1_input"
|
||||
|
||||
local tempfile = "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input"
|
||||
if file_exists(tempfile) == false then
|
||||
tempfile = "/sys/class/thermal/thermal_zone0/temp"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user