diff --git a/roles/home-gui/files/icewm/README.menu b/roles/home-gui/files/icewm/README.menu new file mode 100644 index 0000000..f5d3c0a --- /dev/null +++ b/roles/home-gui/files/icewm/README.menu @@ -0,0 +1,5 @@ +Use the "wmconfig" program to build the menu as follows: + + wmconfig --output icewm > ~/.icewm/menu + +The "wmconfig" program can be found in /usr/ports/x11-wm/wmconfig. diff --git a/roles/home-gui/files/icewm/keys b/roles/home-gui/files/icewm/keys new file mode 100644 index 0000000..1d67e3a --- /dev/null +++ b/roles/home-gui/files/icewm/keys @@ -0,0 +1,4 @@ +key "Ctrl+Alt+L" xscreensaver-command -lock +key "Ctrl+Alt+M" /bin/sh -c "exec ~/data/code/sh/toggle-trackpad.sh" +key "Ctrl+Alt+T" urxvt +key "Ctrl+Alt+V" gvim diff --git a/roles/home-gui/files/icewm/menu b/roles/home-gui/files/icewm/menu new file mode 100644 index 0000000..5155654 --- /dev/null +++ b/roles/home-gui/files/icewm/menu @@ -0,0 +1,11 @@ +prog "Terminal" xterm urxvt +prog "Midnight Commander" file urxvt -geometry 120x40 -e mc +menu "Terminals" folder { + prog "XTerm (80x10)" xterm urxvt -geometry 80x10 + prog "XTerm (80x24)" xterm urxvt -geometry 80x24 + prog "XTerm (120x40)" xterm urxvt -geometry 120x40 +} +separator +includeprog icewm-menu-fdo --no-sub-cats +separator +prog "!!! XKill !!!" xkill xkill diff --git a/roles/home-gui/files/icewm/preferences b/roles/home-gui/files/icewm/preferences new file mode 100644 index 0000000..ba47400 --- /dev/null +++ b/roles/home-gui/files/icewm/preferences @@ -0,0 +1,16 @@ +DateFormat="%F W%V-%u" +DesktopBackgroundCenter=1 +DesktopBackgroundColor="steelblue" +LockCommand="xscreensaver-command -lock" +ModSuperIsCtrlAlt=0 +MsgBoxDefaultAction=1 +OpaqueMove=0 +OpaqueResize=0 +ShowHelp=0 +ShowThemesMenu=0 +TaskBarAtTop=1 +TaskBarShowAPMStatus=1 +TaskBarShowMailboxStatus=0 +TimeFormat="%T" +Win95Keys=1 +WorkspaceNames=" 1 ", " 2 ", " 3 ", " 4 " diff --git a/roles/home-gui/files/icewm/theme b/roles/home-gui/files/icewm/theme new file mode 100644 index 0000000..61ab440 --- /dev/null +++ b/roles/home-gui/files/icewm/theme @@ -0,0 +1 @@ +Theme="acp/default.theme" diff --git a/roles/home-gui/files/icewm/themes/acp/close.xpm b/roles/home-gui/files/icewm/themes/acp/close.xpm new file mode 100644 index 0000000..426bc08 --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/close.xpm @@ -0,0 +1,23 @@ +/* XPM */ +static char *maximize_xpm[] = { +"16 16 3 1", +"F c #FFFFFF", +"B c #808080", +" c #C0C0C0", +" ", +" ", +" FF FF ", +" F B F B ", +" F B F B ", +" F BF B ", +" F B ", +" F B ", +" F B ", +" F B ", +" F BB B ", +" F B B B ", +" F B B B ", +" BB BB ", +" ", +" ", +}; diff --git a/roles/home-gui/files/icewm/themes/acp/default.theme b/roles/home-gui/files/icewm/themes/acp/default.theme new file mode 100644 index 0000000..8647992 --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/default.theme @@ -0,0 +1,26 @@ +Look=motif +TitleBarHeight=18 +TitleButtonsSupported="mris" + +ColorNormalBorder="rgb:C0/C0/C0" +ColorActiveBorder="rgb:5F/9F/9F" +ColorNormalButton="rgb:C0/C0/C0" +ColorNormalTitleBar="rgb:A0/A0/A0" +ColorActiveTitleBar="rgb:5F/9F/9F" +ColorNormalTitleBarText="rgb:00/00/00" +ColorActiveTitleBarText="rgb:FF/FF/FF" +ColorNormalMenu="rgb:C0/C0/C0" +ColorActiveMenuItem="rgb:A0/A0/A0" +ColorNormalMenuItemText="rgb:00/00/00" +ColorActiveMenuItemText="rgb:00/00/00" +ColorDisabledMenuItemText="rgb:80/80/80" +ColorMoveSizeStatus="rgb:C0/C0/C0" +ColorMoveSizeStatusText="rgb:00/00/00" +ColorDefaultTaskBar="rgb:C0/C0/C0" +ColorNormalTaskBarApp="rgb:C0/C0/C0" +ColorNormalTaskBarAppText="rgb:00/00/00" +ColorActiveTaskBarApp="rgb:E0/E0/E0" +ColorActiveTaskBarAppText="rgb:00/00/00" +ColorScrollBar="rgb:C0/C0/C0" +ColorScrollBarSlider="rgb:C0/C0/C0" +ColorScrollBarButtonArrow="rgb:C0/C0/C0" diff --git a/roles/home-gui/files/icewm/themes/acp/maximize.xpm b/roles/home-gui/files/icewm/themes/acp/maximize.xpm new file mode 100644 index 0000000..ce40ab5 --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/maximize.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static char *maximize_xpm[] = { +"16 16 3 1", +" c #c0c0c0", +"W c #FFFFFF", +"D c #808080", +" ", +" ", +" WWWWWWWWWWW ", +" W D ", +" W D ", +" W D ", +" W D ", +" W D ", +" W D ", +" W D ", +" W D ", +" W D ", +" W D ", +" DDDDDDDDDDD ", +" ", +" "}; diff --git a/roles/home-gui/files/icewm/themes/acp/menu.xpm b/roles/home-gui/files/icewm/themes/acp/menu.xpm new file mode 100644 index 0000000..b86a8dd --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/menu.xpm @@ -0,0 +1,21 @@ +/* XPM */ +static char * mini-x_xpm[] = { +"16 16 2 1", +" c none s none", +". c #FF0000", +" ", +" ", +" ", +" .... . ", +" .... . ", +" .... . ", +" .... . ", +" ... . ", +" . .. ", +" . .... ", +" . .... ", +" . .... ", +" . .... ", +" . .... ", +" ", +" "}; diff --git a/roles/home-gui/files/icewm/themes/acp/minimize.xpm b/roles/home-gui/files/icewm/themes/acp/minimize.xpm new file mode 100644 index 0000000..9b2e9df --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/minimize.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char * minimize_xpm[] = { +"16 16 3 1", +" c #C0C0C0", +"W c #FFFFFF", +"D c #808080", +" ", +" ", +" ", +" ", +" ", +" ", +" WWWWW ", +" W D ", +" W D ", +" W D ", +" W D ", +" DDDDD ", +" ", +" ", +" ", +" ", +" ", +" "}; diff --git a/roles/home-gui/files/icewm/themes/acp/restore.xpm b/roles/home-gui/files/icewm/themes/acp/restore.xpm new file mode 100644 index 0000000..cbacc81 --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/restore.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static char *restore_xpm[] = { +"16 16 3 1", +" c #c0c0c0", +"W c #FFFFFF", +"D c #808080", +" ", +" ", +" DDDDDDDDDDD ", +" D W ", +" D W ", +" D W ", +" D W ", +" D W ", +" D W ", +" D W ", +" D W ", +" D W ", +" D W ", +" WWWWWWWWWWW ", +" ", +" "}; diff --git a/roles/home-gui/files/icewm/themes/acp/rolldown.xpm b/roles/home-gui/files/icewm/themes/acp/rolldown.xpm new file mode 100644 index 0000000..06d70ff --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/rolldown.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static char *maximize_xpm[] = { +"16 16 3 1", +" c #c0c0c0", +"W c #FFFFFF", +"D c #808080", +" ", +" ", +" DDDDDDDDDDD ", +" D W ", +" D W ", +" D W ", +" D W ", +" WWWWWWWWWWW ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; diff --git a/roles/home-gui/files/icewm/themes/acp/rollup.xpm b/roles/home-gui/files/icewm/themes/acp/rollup.xpm new file mode 100644 index 0000000..c8df1c6 --- /dev/null +++ b/roles/home-gui/files/icewm/themes/acp/rollup.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static char *maximize_xpm[] = { +"16 16 3 1", +" c #c0c0c0", +"W c #FFFFFF", +"D c #808080", +" ", +" ", +" WWWWWWWWWWW ", +" W D ", +" W D ", +" W D ", +" W D ", +" DDDDDDDDDDD ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; diff --git a/roles/home-gui/files/icewm/toolbar b/roles/home-gui/files/icewm/toolbar new file mode 100644 index 0000000..4b551bf --- /dev/null +++ b/roles/home-gui/files/icewm/toolbar @@ -0,0 +1,4 @@ +prog "Terminal" xterm urxvt +prog "Midnight Commander" file xterm -geometry 120x40 -e mc +prog "GVIM" vim gvim +prog "Firefox" firefox-esr firefox diff --git a/roles/home-gui/files/icewm/winoptions b/roles/home-gui/files/icewm/winoptions new file mode 100644 index 0000000..8d6b1d8 --- /dev/null +++ b/roles/home-gui/files/icewm/winoptions @@ -0,0 +1,2 @@ +xclock.tray: Exclusive +xconsole.tray: Exclusive diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 3c06bde..11674b7 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -53,3 +53,7 @@ ansible.builtin.copy: src: "fonts.conf" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig/fonts.conf" +- name: Create $HOME/.icewm + ansible.builtin.copy: + src: "icewm" + dest: "{{ ansible_env.HOME }}/.icewm"