Jump to content

CDE: Difference between revisions

m
imported>User
No edit summary
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[File:CDE.png]]
{{low quality|This page contains pseudo-code which will not work out of the box.}}
{{warning|This article makes use of precarious stateful system manipulations (imperatively writing to <code>/etc</code>).}}
 
[[File:CDE.png|frameless|right]]


Aka '''cdesktopenv''' or '''Common Desktop Environment''' is a vintage desktop environment.
Aka '''cdesktopenv''' or '''Common Desktop Environment''' is a vintage desktop environment.


{{Note|this wiki article contains pseudo code which will not work out of the box and usage of stateful configuration (e.g. imperatively writing to /etc ). As of now, use this article as a blueprint for your own configuration}}
 
== Changing fonts ==
== Changing fonts ==
   sudo mkdir -p /etc/dt/config/xfonts
   sudo mkdir -p /etc/dt/config/xfonts
Line 60: Line 63:


== Creating an own program icon ==
== Creating an own program icon ==
Use Desktop_Apps/Create Action tool. Save actions under ~/.dt/appmanager


Icons should be in XPM or XBM format. Use the following configuration to convert from png icons
Icons should be in XPM or XBM format. Use the following configuration to convert from png icons
Line 84: Line 85:


   cde-icons /run/current-system/sw/share/icons/hicolor/512x512/apps/qutebrowser.png
   cde-icons /run/current-system/sw/share/icons/hicolor/512x512/apps/qutebrowser.png
Then select it in Desktop_Apps/Create Action tool. Save actions under ~/.dt/appmanager


== Setting icons on minimized programs ==
== Setting icons on minimized programs ==
 
Please note that not all programs support this
{{file|~/.Xdefaults|bash|<nowiki>
{{file|~/.Xdefaults|bash|<nowiki>
Dtwm*qutebrowser*iconImage:  qutebrowser
Dtwm*qutebrowser*iconImage:  qutebrowser
Line 115: Line 118:
   };
   };
</nowiki>}}
</nowiki>}}
Now copy the theme to home directory and adjust the colors to match your main CDE palette
Now copy the theme to home directory. Instead of Arizona.dp pick the palette you currently use in CDE for the match
   mkdir -p ~/.themes
   mkdir -p ~/.themes
   cp -Lr --no-preserve=mode /run/current-system/sw/share/themes/cdetheme ~/.themes/
   cp -Lr --no-preserve=mode /run/current-system/sw/share/themes/cdetheme ~/.themes/
Line 129: Line 132:
     <Key>XF86AudioRaiseVolume  root|icon|window|ifkey  f.exec "amixer set Master -q 5%+"
     <Key>XF86AudioRaiseVolume  root|icon|window|ifkey  f.exec "amixer set Master -q 5%+"
     <Key>XF86AudioMute          root|icon|window|ifkey  f.exec "amixer set Master -q toggle"
     <Key>XF86AudioMute          root|icon|window|ifkey  f.exec "amixer set Master -q toggle"
    # Replace light with program of choice to control brightness
     <Key>XF86MonBrightnessUp    root|icon|window|ifkey  f.exec "xbacklight -inc 1"
     <Key>XF86MonBrightnessUp    root|icon|window|ifkey  f.exec "light -A 1"
     <Key>XF86MonBrightnessDown  root|icon|window|ifkey  f.exec "xbacklight -dec 1"
     <Key>XF86MonBrightnessDown  root|icon|window|ifkey  f.exec "light -U 1"
   }
   }
== Battery widget ==
== Battery widget ==
Line 153: Line 155:
{{file|~/.dt/sessions/sessionetc|bash|<nowiki>
{{file|~/.dt/sessions/sessionetc|bash|<nowiki>
#!/bin/sh
#!/bin/sh
cde-battery
cde-battery &
</nowiki>}}
</nowiki>}}
Please read [[#Editing panel|Editing panel section]]
Please read [[#Editing panel|Editing panel section]]
Line 218: Line 220:
* https://sourceforge.net/p/cdesktopenv/wiki/CustomisingCDE/
* https://sourceforge.net/p/cdesktopenv/wiki/CustomisingCDE/


[[Category:Configuration]]
[[Category:Cookbook]]
[[Category:Guide]]
[[Category:Desktop environment]]
[[Category:Tutorial]]
[[Category:Desktop]]
trusted
596

edits