dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5ef711319edcffc8e2f6031bcf61a7c3842c17a6
parent cfa0c1aa98defb5eaef3e61b8d988c9d2836d61f
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