mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-30 00:04:59 +01:00
Add screensaver/lockscreen keybind
This commit is contained in:
parent
f366268cc2
commit
ab5ca1acfc
|
@ -344,7 +344,9 @@ globalkeys = gears.table.join(
|
||||||
-- Prompt
|
-- Prompt
|
||||||
-- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
-- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
||||||
-- {description = "run prompt", group = "launcher"}),
|
-- {description = "run prompt", group = "launcher"}),
|
||||||
|
-- Screensaver/lockscreen
|
||||||
|
awful.key({ modkey, "Control" }, "l", function() awful.util.spawn("xscreensaver-command -lock") end,
|
||||||
|
{ description = "lock screen", group = "lockscreen" }),
|
||||||
-- dmenu
|
-- dmenu
|
||||||
awful.key({ modkey }, "r", function() awful.util.spawn("dmenu_run") end,
|
awful.key({ modkey }, "r", function() awful.util.spawn("dmenu_run") end,
|
||||||
{ description = "show dmenu", group = "launcher" }),
|
{ description = "show dmenu", group = "launcher" }),
|
||||||
|
@ -616,7 +618,7 @@ awful.spawn.once("killall volumeicon")
|
||||||
awful.spawn.once("lxpolkit") -- Let's run an lxpolkit
|
awful.spawn.once("lxpolkit") -- Let's run an lxpolkit
|
||||||
awful.spawn.once("picom") -- Compositor
|
awful.spawn.once("picom") -- Compositor
|
||||||
awful.spawn.once("nm-applet") -- Network Manager applet
|
awful.spawn.once("nm-applet") -- Network Manager applet
|
||||||
awful.spawn.once("autorandr -l dual") -- Load my dual monitor autorandr config
|
-- awful.spawn("autorandr -l dual") -- Load my dual monitor autorandr config
|
||||||
awful.spawn.once("volumeicon") -- Volume icon
|
awful.spawn.once("volumeicon") -- Volume icon
|
||||||
|
|
||||||
-- Wallpaper
|
-- Wallpaper
|
||||||
|
|
12
setup
12
setup
|
@ -5,12 +5,12 @@ echo "Setting up the stuff..."
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
|
||||||
if [[ "$(uname -a)" == *"Ubuntu"* ]]
|
if [[ "$(cat /etc/os-release)" == *"Ubuntu"* ]]
|
||||||
then
|
then
|
||||||
echo "Updating Ubuntu"
|
echo "Updating Ubuntu"
|
||||||
sudo apt update && sudo apt upgrade
|
sudo apt update && sudo apt upgrade
|
||||||
echo "Installing tools/utils"
|
echo "Installing tools/utils"
|
||||||
sudo apt install ripgrep fd-find make stow tmux lxsession thunar power-profiles-daemon playerctl network-manager-gnome volumeicon-alsa picom
|
sudo apt install ripgrep fd-find make stow tmux lxsession thunar power-profiles-daemon playerctl network-manager-gnome volumeicon-alsa picom autorandr arandr
|
||||||
|
|
||||||
echo "Installing arc-icon-theme"
|
echo "Installing arc-icon-theme"
|
||||||
mkdir -p ~/git
|
mkdir -p ~/git
|
||||||
|
@ -21,11 +21,11 @@ else
|
||||||
echo "Updating Arch"
|
echo "Updating Arch"
|
||||||
sudo pacman -Syyu
|
sudo pacman -Syyu
|
||||||
echo "Installing tools/utils"
|
echo "Installing tools/utils"
|
||||||
sudo pacman -S ripgrep fd neovim make stow tmux awesome dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 power-profiles-daemon thermald acpi arc-icon-theme playerctl
|
sudo pacman -S ripgrep fd neovim make stow tmux awesome dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 -profiles-daemon thermald acpi arc-icon-theme playerctl
|
||||||
|
|
||||||
sudo systemctl enable --now power-profiles-daemon
|
# sudo systemctl enable --now power-profiles-daemon
|
||||||
sudo thermald --systemd
|
# sudo thermald --systemd
|
||||||
sudo power-profiles-daemon set performance
|
# sudo power-profiles-daemon set performance
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue