add modular bashrc

This commit is contained in:
Pim Kunis 2023-03-04 14:28:09 +01:00
parent 3391f67080
commit 04aba0d670
16 changed files with 49 additions and 21 deletions
roles/i3
files/scripts
tasks

View file

@ -2,4 +2,4 @@
SCREEN_RESOLUTION="$(xdpyinfo | grep dimensions | cut -d' ' -f7)"
BGCOLOR="000000"
convert "/home/pim/Pictures/wallpapers/orphans.png" -gravity Center -background \#$BGCOLOR -resize "$SCREEN_RESOLUTION" RGB:- | i3lock --raw "$SCREEN_RESOLUTION":rgb -c $BGCOLOR -i /dev/stdin --nofork
convert "/home/pim/Pictures/wallpapers/orphans.png" -gravity Center -background \#$BGCOLOR -resize "$SCREEN_RESOLUTION" RGB:- | i3lock --raw "$SCREEN_RESOLUTION":rgb -c $BGCOLOR -i /dev/stdin

View file

@ -8,6 +8,8 @@
- rofi
- nitrogen
- xss-lock
- arandr
- autorandr
- name: Create i3 config directory
file:
path: ~/.config/i3
@ -37,3 +39,11 @@
copy:
src: "{{ role_path }}/files/bg-saved.cfg"
dest: ~/.config/nitrogen/bg-saved.cfg
- name: Handle lid close
become: true
ini_file:
path: /etc/systemd/logind.conf
section: Login
option: HandleLidSwitch
value: suspend
no_extra_spaces: true