Guest User

Untitled

a guest
Jun 13th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. gnome-screensaver-command -l
  2.  
  3. gnome-screensaver
  4.  
  5. gnome-screensaver-command -l
  6.  
  7. DISPLAY=:0 gnome-screensaver-command -l
  8.  
  9. mkdir ~/bin
  10.  
  11. #!/bin/bash
  12. gnome-screensaver-command -l
  13.  
  14. chmod +x ~/bin/lock
  15.  
  16. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
  17. # exists.
  18.  
  19. vim ~/.profile # or one of the the other files if they exist
  20.  
  21. # set PATH so it includes user's private bin directories
  22. PATH="$HOME/bin:$HOME/.local/bin:$PATH"
  23.  
  24. you@yourUbuntu:~$ lock
Add Comment
Please, Sign In to add comment