more silencing and logging
This commit is contained in:
parent
a3ec83cbdf
commit
8cddac0d56
6
xinitrc
6
xinitrc
@ -33,15 +33,15 @@ fi
|
|||||||
|
|
||||||
# Forking graphical programs
|
# Forking graphical programs
|
||||||
forklog() {
|
forklog() {
|
||||||
nohup $* | logger &
|
$* 2>&1 | logger &
|
||||||
}
|
}
|
||||||
|
|
||||||
forklog redshift
|
forklog redshift
|
||||||
forklog dunst
|
forklog dunst
|
||||||
forklog xcape -t 100 -e 'Super_L=Scroll_Lock;Shift_L=Escape'
|
forklog xcape -t 100 -e 'Super_L=Scroll_Lock;Shift_L=Escape'
|
||||||
forklog feh --bg-scale '/home/felix/Pictures/lain.png'
|
forklog feh --bg-scale '/home/felix/Pictures/lain.png'
|
||||||
forklog xautolock -time 1 -locker xsecurelock &
|
forklog xautolock -time 1 -locker xsecurelock
|
||||||
forklog xset dpms 0 0 50 s off &
|
forklog xset dpms 0 0 50 s off
|
||||||
|
|
||||||
# Start herbstluftwm in locked mode. Is unlocked after autostart.
|
# Start herbstluftwm in locked mode. Is unlocked after autostart.
|
||||||
exec xmonad
|
exec xmonad
|
||||||
|
@ -40,7 +40,10 @@ runInTerminal :: [Char] -> [Char] -> [Char]
|
|||||||
runInTerminal e n = myTerminal ++ " -name " ++ n ++ " -e " ++ e
|
runInTerminal e n = myTerminal ++ " -name " ++ n ++ " -e " ++ e
|
||||||
|
|
||||||
logged :: [Char] -> [Char]
|
logged :: [Char] -> [Char]
|
||||||
logged m = "nohup " ++ m ++ " | logger"
|
logged m = m ++ " 2>&1 | logger"
|
||||||
|
|
||||||
|
silent :: [Char] -> [Char]
|
||||||
|
silent m = m ++ " > /dev/null 2>&1"
|
||||||
|
|
||||||
-- Whether focus follows the mouse pointer.
|
-- Whether focus follows the mouse pointer.
|
||||||
myFocusFollowsMouse :: Bool
|
myFocusFollowsMouse :: Bool
|
||||||
@ -184,9 +187,9 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||||||
-- Restart xmonad
|
-- Restart xmonad
|
||||||
, ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
|
, ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
|
||||||
|
|
||||||
, ((0, xF86XK_AudioMute), spawn "sound_control.sh toggle")
|
, ((0, xF86XK_AudioMute), spawn $ silent "sound_control.sh toggle")
|
||||||
, ((0, xF86XK_AudioRaiseVolume), spawn "sound_control.sh up")
|
, ((0, xF86XK_AudioRaiseVolume), spawn $ silent "sound_control.sh up")
|
||||||
, ((0, xF86XK_AudioLowerVolume), spawn "sound_control.sh down")
|
, ((0, xF86XK_AudioLowerVolume), spawn $ silent "sound_control.sh down")
|
||||||
, ((0, xF86XK_AudioNext), spawn "mpc -q next")
|
, ((0, xF86XK_AudioNext), spawn "mpc -q next")
|
||||||
, ((0, xF86XK_AudioPlay), spawn "mpc -q toggle")
|
, ((0, xF86XK_AudioPlay), spawn "mpc -q toggle")
|
||||||
, ((0, xF86XK_AudioPrev), spawn "mpc -q prev")
|
, ((0, xF86XK_AudioPrev), spawn "mpc -q prev")
|
||||||
|
Loading…
Reference in New Issue
Block a user