diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index fc73210..50158e9 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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"']] - awful.spawn.easy_async(command, function(stdout, stderr) - naughty.notify { - title = "Screenshot saved!", - text = stdout, - } - end) + --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, + --} + 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") diff --git a/.config/awesome/widgets.lua b/.config/awesome/widgets.lua index b40f4f6..e05f882 100644 --- a/.config/awesome/widgets.lua +++ b/.config/awesome/widgets.lua @@ -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 diff --git a/.zshrc b/.zshrc index 35bbe5e..7af698e 100644 --- a/.zshrc +++ b/.zshrc @@ -36,6 +36,7 @@ fi # Syntax highlighting source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source ~/.zplugins alias top=htop alias ll="ls -lh"