From 21e6ea77f54102836583910261cd5f17200340bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 18 Jul 2019 18:49:12 +0100 Subject: [PATCH] add blueman --- lock.sh | 12 +++--------- nixos/home.nix | 2 +- nixos/user-xsession.nix | 1 + 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lock.sh b/lock.sh index 00df0da7..b4db9e51 100755 --- a/lock.sh +++ b/lock.sh @@ -5,12 +5,6 @@ export PRIMARY_DISPLAY="$(xrandr | awk '/ primary/{print $1}')" xidlehook \ --not-when-fullscreen \ --not-when-audio \ - --timer normal 60 \ - 'xrandr --output "$PRIMARY_DISPLAY" --brightness .1' \ - 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' \ - --timer primary 10 \ - 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1; physlock -d' \ - '' \ - --timer normal 600 \ - 'systemctl suspend' \ - '' + --timer normal 180 'xrandr --output "$PRIMARY_DISPLAY" --brightness .1' 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' \ + --timer primary 10 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1; physlock -d' \ + --timer normal 600 'systemctl suspend' diff --git a/nixos/home.nix b/nixos/home.nix index 1d4bdc35..c99b0851 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -13,7 +13,7 @@ in }; }; home.packages = with pkgs; [ - wirelesstools ranger xpdf apvlv unstable.xidlehook + wirelesstools ranger xpdf apvlv unstable.xidlehook blueman keepass fontconfig nodejs rustup gcc gdb binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy openjdk11 gimp restic glxinfo discord diff --git a/nixos/user-xsession.nix b/nixos/user-xsession.nix index d514893c..818a6e87 100644 --- a/nixos/user-xsession.nix +++ b/nixos/user-xsession.nix @@ -17,6 +17,7 @@ in { command = "exec autorandr -c"; always = true; notification = false; } { command = "exec i3-sensible-terminal"; always = false; notification = false; } { command = "exec $HOME/dev/dotfiles/lock.sh"; always = false; notification = false; } + { command = "exec blueman-applet"; always = false; notification = false; } ]; window = { hideEdgeBorders = "horizontal";