From 7761040524593b0166e9d0b75fc5648aeccd256a Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 11 Sep 2023 20:41:02 +0100 Subject: [PATCH] Add picom to FreeBSD --- roles/freebsd/tasks/packages-gui.yml | 2 ++ roles/home-gui/files/picom.conf | 8 ++++++++ roles/home-gui/files/xinitrc | 8 ++++++++ roles/home-gui/tasks/dotfiles.yml | 4 ++++ 4 files changed, 22 insertions(+) create mode 100644 roles/home-gui/files/picom.conf diff --git a/roles/freebsd/tasks/packages-gui.yml b/roles/freebsd/tasks/packages-gui.yml index 3f80b7f..3c69b8b 100644 --- a/roles/freebsd/tasks/packages-gui.yml +++ b/roles/freebsd/tasks/packages-gui.yml @@ -29,6 +29,7 @@ - en_GB-libreoffice - firefox - git-gui + - hsetroot - icewm - keepassxc - liberation-fonts-ttf @@ -37,6 +38,7 @@ - noto-basic - noto-emoji - noto-extra + - picom - rxvt-unicode - tigervnc-viewer - xinput diff --git a/roles/home-gui/files/picom.conf b/roles/home-gui/files/picom.conf new file mode 100644 index 0000000..77eb505 --- /dev/null +++ b/roles/home-gui/files/picom.conf @@ -0,0 +1,8 @@ +fading = false; +inactive-opacity = 1.0; +shadow = true; +no-dock-shadow = true; +no-dnd-shadow = true; +shadow-exclude = [ + "class_g = 'TaskBar'" +]; diff --git a/roles/home-gui/files/xinitrc b/roles/home-gui/files/xinitrc index c9f9fda..f328e71 100755 --- a/roles/home-gui/files/xinitrc +++ b/roles/home-gui/files/xinitrc @@ -3,4 +3,12 @@ xset b off # Disable the audible bell. xrandr --dpi 96 # Set the fonts to the normal DPI. xrdb -load "$HOME/.Xresources" +if [ -x /usr/local/bin/piconf ] +then + /usr/local/bin/piconf -b +fi +if [ -x /usr/local/bin/hsetroot ] +then + /usr/local/bin/hsetroot -solid steelblue +fi exec icewm-session diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 9c1efba..07af92a 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -57,3 +57,7 @@ ansible.builtin.copy: src: "icewm/" dest: "{{ ansible_env.HOME }}/.icewm" +- name: Create $XDG_CONFIG_HOME/piconf.conf + ansible.builtin.copy: + src: "piconf.conf" + dest: "{{ ansible_env.XDG_CONFIG_HOME }}/piconf.conf"