Added i3lock and autolocking for laptop
This commit is contained in:
parent
b7d9bb3122
commit
7841f1f052
@ -32,6 +32,8 @@
|
||||
rofi
|
||||
polybar
|
||||
alacritty
|
||||
i3lock-fancy
|
||||
xautolock
|
||||
autorandr
|
||||
arandr
|
||||
xsel
|
||||
|
@ -12,10 +12,12 @@
|
||||
# Supported Filesystems
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
|
||||
# Hostname and User
|
||||
networking.hostName = "randomctf";
|
||||
# Import default user config
|
||||
users.users.random = import ./user.nix;
|
||||
|
||||
# Networking
|
||||
networking.hostName = "randomctf";
|
||||
|
||||
# Temporary fix for service failure.
|
||||
systemd.services.NetworkManager-wait-online.enable = lib.mkForce false;
|
||||
|
||||
|
@ -19,6 +19,9 @@ bindsym $mod+Shift+f exec "google-chrome-stable"
|
||||
bindsym $mod+Shift+e exec "emacsclient -c"
|
||||
bindsym $mod+Shift+d exec "discord"
|
||||
|
||||
# Lock screen with i3lock-fancy
|
||||
bindsym $mod+Shift+x exec "i3lock-fancy"
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+q kill
|
||||
bindsym $mod+Shift+q kill
|
||||
@ -148,6 +151,9 @@ client.focused #555555 #555555 #ffffff #333333 #0000ff
|
||||
client.focused_inactive #333333 #222222 #888888 #292d2e #eeeeee
|
||||
client.unfocused #333333 #222222 #888888 #292d2e #eeeeee
|
||||
|
||||
# Auto lock the screen after X minutes
|
||||
exec "xautolock -detectsleep -time 3 -locker i3lock-fancy"
|
||||
|
||||
# Startup Applications
|
||||
exec_always --no-startup-id "$HOME/.screenlayout/launch.sh &" # setup screen layout and wallpapers
|
||||
exec_always --no-startup-id "$HOME/.scripts/autostart_desktop.sh &" # run autostart desktop apps
|
||||
|
Loading…
x
Reference in New Issue
Block a user