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()
|
volume.update()
|
||||||
end,
|
end,
|
||||||
{description = "unmute audio", group = "audio"}),
|
{description = "unmute audio", group = "audio"}),
|
||||||
awful.key({ modkey }, "Print",
|
awful.key({ }, "Print",
|
||||||
function ()
|
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)
|
awful.spawn.easy_async(command, function(stdout, stderr)
|
||||||
naughty.notify {
|
--naughty.notify {
|
||||||
title = "Screenshot saved!",
|
-- title = "Screenshot saved!",
|
||||||
text = stdout,
|
-- text = stdout,
|
||||||
}
|
--}
|
||||||
end)
|
end)
|
||||||
|
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(
|
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 pasystray")
|
||||||
awful.util.spawn_with_shell("run-once blueman-applet")
|
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 conky")
|
||||||
--awful.util.spawn_with_shell("run-once dropboxd")
|
--awful.util.spawn_with_shell("run-once dropboxd")
|
||||||
--awful.util.spawn_with_shell("run-once light-locker")
|
--awful.util.spawn_with_shell("run-once light-locker")
|
||||||
|
|
|
@ -94,9 +94,7 @@ mytextclock:set_widget(mytextclock_text)
|
||||||
mytextclock:set_bg('#512da8')
|
mytextclock:set_bg('#512da8')
|
||||||
|
|
||||||
-- CPU temperature
|
-- CPU temperature
|
||||||
local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon1/temp1_input"
|
local tempfile = "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input"
|
||||||
--local tempfile = "/sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon2/temp1_input"
|
|
||||||
|
|
||||||
if file_exists(tempfile) == false then
|
if file_exists(tempfile) == false then
|
||||||
tempfile = "/sys/class/thermal/thermal_zone0/temp"
|
tempfile = "/sys/class/thermal/thermal_zone0/temp"
|
||||||
end
|
end
|
||||||
|
|
1
.zshrc
1
.zshrc
|
@ -36,6 +36,7 @@ fi
|
||||||
|
|
||||||
# Syntax highlighting
|
# Syntax highlighting
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
source ~/.zplugins
|
||||||
|
|
||||||
alias top=htop
|
alias top=htop
|
||||||
alias ll="ls -lh"
|
alias ll="ls -lh"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user