Added i3lock and autolocking for laptop

This commit is contained in:
Random936 2024-10-15 09:55:55 -07:00
parent b7d9bb3122
commit 7841f1f052
3 changed files with 12 additions and 2 deletions

View File

@ -32,6 +32,8 @@
rofi rofi
polybar polybar
alacritty alacritty
i3lock-fancy
xautolock
autorandr autorandr
arandr arandr
xsel xsel

View File

@ -12,10 +12,12 @@
# Supported Filesystems # Supported Filesystems
boot.supportedFilesystems = [ "ntfs" ]; boot.supportedFilesystems = [ "ntfs" ];
# Hostname and User # Import default user config
networking.hostName = "randomctf";
users.users.random = import ./user.nix; users.users.random = import ./user.nix;
# Networking
networking.hostName = "randomctf";
# Temporary fix for service failure. # Temporary fix for service failure.
systemd.services.NetworkManager-wait-online.enable = lib.mkForce false; systemd.services.NetworkManager-wait-online.enable = lib.mkForce false;

View File

@ -19,6 +19,9 @@ bindsym $mod+Shift+f exec "google-chrome-stable"
bindsym $mod+Shift+e exec "emacsclient -c" bindsym $mod+Shift+e exec "emacsclient -c"
bindsym $mod+Shift+d exec "discord" bindsym $mod+Shift+d exec "discord"
# Lock screen with i3lock-fancy
bindsym $mod+Shift+x exec "i3lock-fancy"
# kill focused window # kill focused window
bindsym $mod+q kill bindsym $mod+q kill
bindsym $mod+Shift+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.focused_inactive #333333 #222222 #888888 #292d2e #eeeeee
client.unfocused #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 # Startup Applications
exec_always --no-startup-id "$HOME/.screenlayout/launch.sh &" # setup screen layout and wallpapers 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 exec_always --no-startup-id "$HOME/.scripts/autostart_desktop.sh &" # run autostart desktop apps