Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # i3wm Transparent Lock screen.
  2.  
  3. # Warning: If executed multiple times, unlock isn't possible anymore, use with caution!
  4.  
  5. ## Description
  6. Block computer for input, but remain graphical output as usual.
  7. Can be used for example to watch a movie on your laptop but forbid any input during that.
  8.  
  9. ## Downside
  10. Not tested thouroughly yet, and only tested on Debian 9
  11. probably won't work if you already use Compton
  12.  
  13. ## Instructions
  14.  
  15. ### Install required programs
  16. sudo apt install compton
  17.  
  18.  
  19. ### Extend your i3 config
  20. Add (depending on what you want) the following lines to your i3 config at `~/.config/i3/config`
  21.  
  22. - ```bindsym $mod+m exec ~/.config/i3/lock_transparent.sh```
  23.  
  24. ### Create the script that locks the screen
  25.  
  26. Create file `~/.config/i3/lock_transparent.sh` with the following contents:
  27. ```bash
  28. #!/bin/bash
  29.  
  30. compton --config ~/.config/compton/compton.conf -f &
  31. i3lock_standard -n
  32. pkill compton
  33. ```
  34. execute `chmod +x ~/.config/i3/lock_transparent.sh` to make the script executable
  35.  
  36. ### Compton config
  37. Create file `~/.config/compton/compton.conf` with the following contents:
  38.  
  39. ```
  40. mark-ovredir-focused = true;
  41. inactive-opacity = 0.7;
  42. opacity-rule = [ "0:name *= 'i3lock'" ];
  43. ```
  44.  
  45. might need to restart or login again, not sure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement