Browse Source

Add physlock and a few other nice things to nix config

Taylor Bockman 9 years ago
parent
commit
a9dd1d7392
  1. BIN
      dotfiles/xmonad/lib/Bar.o
  2. BIN
      dotfiles/xmonad/lib/PerWorkspaceDirs.o
  3. BIN
      dotfiles/xmonad/lib/Spacing.o
  4. BIN
      dotfiles/xmonad/lib/XMonad/Layout/BinarySpacePartition.o
  5. BIN
      dotfiles/xmonad/xmonad-x86_64-linux
  6. 8
      dotfiles/xmonad/xmonad.hs
  7. BIN
      dotfiles/xmonad/xmonad.o
  8. 1
      nix/audio/default.nix
  9. 2
      nix/configuration.nix
  10. 8
      nix/games/default.nix
  11. 24
      nix/security/default.nix
  12. 1
      nix/software/default.nix

BIN
dotfiles/xmonad/lib/Bar.o

Binary file not shown.

BIN
dotfiles/xmonad/lib/PerWorkspaceDirs.o

Binary file not shown.

BIN
dotfiles/xmonad/lib/Spacing.o

Binary file not shown.

BIN
dotfiles/xmonad/lib/XMonad/Layout/BinarySpacePartition.o

Binary file not shown.

BIN
dotfiles/xmonad/xmonad-x86_64-linux

Binary file not shown.

8
dotfiles/xmonad/xmonad.hs

@ -194,7 +194,7 @@ main = do
`additionalKeys`
[((myModMask , xK_q ), spawn restartXmonad)
,((myModMask .|. shiftMask , xK_c ), kill)
,((myModMask .|. shiftMask , xK_b ), spawn "google-chrome-stable")
,((myModMask .|. shiftMask , xK_b ), spawn "chromium")
,((myModMask .|. shiftMask , xK_p ), spawn "mpc prev")
,((myModMask .|. shiftMask , xK_n ), spawn "mpc next")
,((myModMask .|. shiftMask , xK_i ), spawn "xcalib -invert -alter")
@ -252,9 +252,9 @@ main = do
,((0 , xF86XK_Sleep ), spawn "pm-suspend")
,((0 , xF86XK_MonBrightnessUp ), spawn "xbacklight -inc 10")
,((0 , xF86XK_MonBrightnessDown ), spawn "xbacklight -dec 10")
,((0 , xF86XK_AudioMute), spawn "~/scripts/dvol2 -t")
,((0 , xF86XK_AudioLowerVolume), spawn "~/scripts/dvol2 -d 2 & mplayer /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")
,((0 , xF86XK_AudioRaiseVolume ), spawn "~/scripts/dvol2 -i 2 & mplayer /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")
,((0 , xF86XK_AudioMute), spawn "amixer -q set Master toggle")
,((0 , xF86XK_AudioLowerVolume), spawn "amixer -q set Master 5%-")
,((0 , xF86XK_AudioRaiseVolume ), spawn "amixer -q set Master 5%+")
]
`additionalMouseBindings`
[((myModMask, 6), \_ -> moveTo Next NonEmptyWS)

BIN
dotfiles/xmonad/xmonad.o

Binary file not shown.

1
nix/audio/default.nix

@ -2,6 +2,7 @@
{
environment.systemPackages = with pkgs; [
pulseaudioFull # Audio
spotify # Spotify
];
hardware = {

2
nix/configuration.nix

@ -8,7 +8,9 @@
./audio
./input
./users
./security
./development
./games
./comms
./software
];

8
nix/games/default.nix

@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nethack
steam
tibia
];
}

24
nix/security/default.nix

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
physlock
];
# Set sudo to use user home
security.sudo.extraConfig = ''
Defaults !always_set_home
Defaults env_keep+="HOME"
'';
services = {
# Configure physlock
physlock = {
enable = true;
user = "taylor";
lockOn = {
suspend = true;
hibernate = true;
};
};
};
}

1
nix/software/default.nix

@ -5,6 +5,7 @@
chromium # Browser
gtk # For GTK+ themes
htop # System monitor
libreoffice # Libreoffice
mplayer # Video player
xdotool # Diagnostic tool for mouse and keyboard
];

Loading…
Cancel
Save