diff --git a/README.md b/README.md index b197672..7da8b99 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,6 @@ My current setup is [Linux Mint Vera](https://linuxmint.com/edition.php?id=302) - firefox config? extensions? host own synchronizer? - i3 stutters - disable system reports -- wallpaper #### Neovim diff --git a/roles/i3/files/bg-saved.cfg b/roles/i3/files/bg-saved.cfg new file mode 100644 index 0000000..737777c --- /dev/null +++ b/roles/i3/files/bg-saved.cfg @@ -0,0 +1,4 @@ +[xin_-1] +file=/home/pim/Pictures/wallpapers/orphans.png +mode=0 +bgcolor=#000000 diff --git a/roles/i3/files/config b/roles/i3/files/config index 39a2e6b..390f39e 100644 --- a/roles/i3/files/config +++ b/roles/i3/files/config @@ -23,6 +23,8 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet +exec --no-startup-id nitrogen --restore + # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status @@ -145,8 +147,8 @@ bindsym $mod+Escape exec i3lock set $mode_screen Screen layout: [h]ome [m]obile bindsym $mod+s mode "$mode_screen" mode "$mode_screen" { - bindsym h exec ~/.config/i3/scripts/home.sh, mode "default" - bindsym m exec ~/.config/i3/scripts/mobile.sh, mode "default" + bindsym h exec --no-startup-id ~/.config/i3/scripts/home.sh, mode "default" + bindsym m exec --no-startup-id ~/.config/i3/scripts/mobile.sh, mode "default" bindsym Escape mode "default" bindsym Return mode "default" diff --git a/roles/i3/files/nitrogen.cfg b/roles/i3/files/nitrogen.cfg new file mode 100644 index 0000000..bc053bd --- /dev/null +++ b/roles/i3/files/nitrogen.cfg @@ -0,0 +1,12 @@ +[geometry] +posx=0 +posy=18 +sizex=1916 +sizey=1161 + +[nitrogen] +view=icon +recurse=true +sort=alpha +icon_caps=false +dirs=/home/pim/Pictures/wallpapers; diff --git a/roles/i3/files/scripts/home.sh b/roles/i3/files/scripts/home.sh index ad163ac..9575c28 100755 --- a/roles/i3/files/scripts/home.sh +++ b/roles/i3/files/scripts/home.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP-1 --off --output DP-1 --primary --mode 1920x1200 --pos 0x0 --rotate normal --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off +xrandr --output eDP-1 --off --output DP-1 --primary --mode 1920x1200 --pos 0x0 --rotate normal --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off && nitrogen --restore diff --git a/roles/i3/files/scripts/mobile.sh b/roles/i3/files/scripts/mobile.sh index 384a5ef..1cd8508 100755 --- a/roles/i3/files/scripts/mobile.sh +++ b/roles/i3/files/scripts/mobile.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off +xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off && nitrogen --restore diff --git a/roles/i3/files/wallpapers/orphans.png b/roles/i3/files/wallpapers/orphans.png new file mode 100644 index 0000000..b440af5 Binary files /dev/null and b/roles/i3/files/wallpapers/orphans.png differ diff --git a/roles/i3/tasks/main.yml b/roles/i3/tasks/main.yml index 9f4a010..5a32596 100644 --- a/roles/i3/tasks/main.yml +++ b/roles/i3/tasks/main.yml @@ -5,6 +5,7 @@ - i3-wm - rofi - i3lock + - nitrogen - name: Create i3 config directory file: path: ~/.config/i3 @@ -18,3 +19,19 @@ src: "{{ role_path }}/files/scripts" dest: ~/.config/i3 mode: preserve +- name: Copy wallpapers + copy: + src: "{{ role_path }}/files/wallpapers" + dest: ~/Pictures +- name: Create nitrogen config directory + file: + path: ~/.config/nitrogen + state: directory +- name: Copy nitrogen.cfg + copy: + src: "{{ role_path }}/files/nitrogen.cfg" + dest: ~/.config/nitrogen/nitrogen.cfg +- name: Copy bg-saved.cfg + copy: + src: "{{ role_path }}/files/bg-saved.cfg" + dest: ~/.config/nitrogen/bg-saved.cfg