vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 61cabebc480fc065f60bfdee010ddf63444b107e
parent c72980d9a64e568a5681bb673d3a6a7bef5e6a1a
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  4 Nov 2019 20:51:50 +0300

change suspend function

Diffstat:
M.config/sxhkd/sxhkdrc | 10+++++++---
A.local/bin/suspendsys | 4++++
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -30,6 +30,10 @@ mod1 + c $TERMINAL -e calcurse super + shift + m $TERMINAL -e pulsemixer +super + shift + c + mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title='mpvfloat' /dev/video0 +mod1 + ctrl + k + killall screenkey || screenkey # Nightmode commands @@ -61,11 +65,11 @@ XF86AudioPlay # Power Keys super + shift + n - ask "shutdown now" "Are you sure you want to shutdown?" + ask "sudo -A shutdown -h now" "Are you sure you want to shutdown?" super + shift + r - ask "reboot" "Are you sure you want to reboot?" + ask "sudo -A shutdown -r now" "Are you sure you want to reboot?" super + shift + s - systemctl suspend + $HOME/.local/bin/suspendsys # Other diff --git a/.local/bin/suspendsys b/.local/bin/suspendsys @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +command -V systemctl >/dev/null 2>&1 && systemctl suspend && exit 0 +sudo -A zzz