Dans Openbox, quel est le meilleur moyen pour rajouter des lanceurs d'appli ?
Ajouter des lanceurs
Ajouter des lanceurs
#1Messageil y a 10 ansDans Openbox, quel est le meilleur moyen pour rajouter des lanceurs d'appli ?
Ajouter des lanceurs
#2Messageil y a 10 ans-si tu les veux sur le bureau, il suffit d'installer ce qu'il faut pour avoir des icônes sur le bureau, comme un gestionnaire de fichiers qui le fait (Pcmanfm par exemple). dans ce cas, tu peux virer Nitrogen.
-tu peux mettre un panneau qui propose un vrai menu et permet de mettre des lanceurs, comme Fbpanel, et enlever Tint.
-tu peux mettre un dock, mais si tu n'as pas activé la composition (Compton), il t'en faut un qui peut s'en passer, comme Cairo-dock, Awn (moins beau sans composition), ou Docky.
on peut aussi piquer des applications chez Xfce (Xfdesktop pour le bureau à icones, ou le panel) mais il y a pas mal de dépendances si on veut que ça marche bien; le Lxpanel de Lxde est bien aussi, mais autant installer Lxde dans ce cas...
Ajouter des lanceurs
#3Messageil y a 10 ansAjouter des lanceurs
#4Messageil y a 10 ansMerci de vos réponses.
Une barre avec des lanceurs m'irait très bien.
J'ai regardé fbpanel, mais je n'ai pas vraiment compris comment m'en sortir avec.
Et placer quelques icônes sur le bureau aussi.
Ajouter des lanceurs
#5Messageil y a 10 anspar exemple, pour mettre des lanceur, c'est le plugin "launchbar", et voici un exemple:
Plugin {
type = launchbar
config {
button {
icon = file-manager
tooltip = File Manager
action = dolphin
}
button {
icon = terminal
tooltip = Terminal
action = konsole
}
button {
icon = web-browser
tooltip = Web Browser
action = firefox
}
}
}
pour les autres plugins, tout est documenté dans le fichier...
on peut aussi mettre un dossier "images" dans ~/.config/fbpanel/, et y placer les images qui pourraient être nécessaires pour certains plugins, par exemple, un logo Manjaro pour le menu; Fbpanel ira automatiquement chercher les images dont le chemin n'est pas indiqué dans ce dossier
Ajouter des lanceurs
#6Messageil y a 10 ansAjouter des lanceurs
#7Messageil y a 10 anspour le lancer automatiquement, c'est pareil que Tint, donc si tu remplaces l'un par l'autre, tu peux simplement éditer cette ligne dans ~/.config/openbox/autostart
(sleep 1s && tint2) &
et remplacer par:
(sleep 1s && fbpanel) &
NB: si tu gardes les deux, il faudrait supprimer le systray dans l'un des deux...
Ajouter des lanceurs
#8Messageil y a 10 ansLoubrix a écrit :tout dépend où tu les veux et quels sont tes habitudes...
-si tu les veux sur le bureau, il suffit d'installer ce qu'il faut pour avoir des icônes sur le bureau, comme un gestionnaire de fichiers qui le fait (Pcmanfm par exemple). dans ce cas, tu peux virer Nitrogen.
Une fois installé pcmanfm et viré nitrogen, quels sont les fichiers à bricoler pour mettre des icônes sur ce bureau ?
Ajouter des lanceurs
#9Messageil y a 10 anspcmanfm --desktop &
et ne pas oublier de supprimer la ligne avec Nitrogen.
au passage, pour changer le fond d'écran, ouvrir "pcmanfm --desktop-pref" (je ne me rappelle plus s'il y a une entrée dans le menu).
Ajouter des lanceurs
#10Messageil y a 10 ansLoubrix a écrit :au passage, pour changer le fond d'écran, ouvrir "pcmanfm --desktop-pref" (je ne me rappelle plus s'il y a une entrée dans le menu).
Merci ; il y a bien une entrée dans le menu "Desktop Préférences".
Il me reste encore à voir pour fbpanel.
Ajouter des lanceurs
#11Messageil y a 10 ansDéjà une chose, après l'installation le fichier de profil par défaut n'est pas créé automatiquement, il faut lancer en terminal fbpanel pour le faire.
Ensuite ce p***** de m**** de fichier est en rosbif ;
puisque tu maîtrises le britiche, si je veux la barre en bas avec par exemple firefox et thunderbird
edit : actuellement je n'ai pas l'affichage de cette barre
########################################
## fbpanel configuration file ##
########################################
# DESCRIPTION
# Configuration file consists of mandatory 'Global' block that MUST come first,
# and optionally one or more 'Plugin' block.
# Lines having '#' as first non-blank char or blank lines are ignored
# Keywords are not case-sensitive
# Values are case-sensitive
# Value of variable is a text from first non-blank char after '='
# till the last non-blank char. '#' is NOT treated as coment in this context
# 'Global' block describes global parameters like position, size and
# some NETWM settings
# Global {
# # screen edge
# # legal values are: left, right, top, bottom
# edge = bottom
# # allignment of a panel
# # legal values are: left, right, center
# allign = left
# # length of margin (in pixels)
# # legal values are numbers
# margin = 0
# # widthtype specifies how panel width is calculated
# # legal values are: request, pixel, percent
# # request - follow widgets' size requests. can shrink or grow dynamically
# # pixel - occupy fixed number of pixels, then 'width' variable holds a number
# # percent - be 'width' precent of an edge.
# widthType = percent
# # numerical value of width (not applicable for 'request' widthtype)
# # legal values are numbers
# width = 80
# # heighttype specifies how panel height is calculated
# # legal values are: pixel
# # pixel - ocupy fixed number of pixels, then 'height' variable holds a number
# heightType = pixel
# # numerical value of height (if applicable)
# # legal values are numbers
# height = 28
# # Identify panel window type as dock
# # legal values are boolean
# setDockType = true
# # Reserve panel's space so that it will not be covered by maximazied windows
# # legal values are boolean
# # setPartialStrut = true
# # Transparency stuff:
# # tintColor is a color to composite on root background given as #RRGGBB or as name
# # alpha is transparency of the tint color.
# # transparent = true
# # tintColor = #FFFFFF
# or
# # tintColor = white
# # alpha = 127
# # Autohide
# # autoHide = false
# # heightWhenHidden = 2
# }
# 'Plugin' block specifies a plugin to load. It has same syntax for both
# builtin and external plugins.
# First parameter is 'type'. It's mandatory and must come first
# Legal values are plugin names. Names of builtin plugins are:
# separator - visual separator
# wincmd - 'show desktop' button
# taskbar - lists all opened windows (tasks)
# launchbar - bar with launch button
# image - just shows an image
# dclock - digital clock
# space - just seize space
# pager - thumbnailed view of the desktop
# tray - tray for XEMBED icons (aka docklets)
# expand - specifies if plugin can accomodate extra space or not [optional]
# padding - extra padding around plugin [optional]
# config {} - block of plugin's private configuration.
# This part is plugin dependant
#
# Plugin {
# type = wincmd
# config {
# image = ~/.fbpanel/images/Desktop2.png
# tooltip = Left click to iconify all windows. Middle click to shade them.
# }
# }
Global {
edge = bottom
allign = center
margin = 0
widthtype = percent
width = 86
height = 24
transparent = true
tintcolor = #ffffff
alpha = 28
setdocktype = true
setpartialstrut = true
autohide = false
heightWhenHidden = 2
roundcorners = true
roundcornersradius = 7
layer = none
MaxElemHeight = 32
}
Plugin {
type = space
config {
size = 2
}
}
Plugin {
type = menu
config {
IconSize = 22
#icon = start-here
icon = logo
systemmenu {
}
separator {
}
menu {
name = Computer
icon = computer
item {
name = Terminal
icon = terminal
action = x-terminal
}
item {
name = Lock Display
icon = gnome-lockscreen
action = slock
}
separator {
}
item {
name = Reboot
icon = gnome-session-reboot
action = sudo reboot
}
item {
name = Shutdown
icon = gnome-session-halt
action = sudo shutdown -h now
}
item {
name = logout
icon = gnome-session-logout
action = /usr/lib/fbpanel/xlogout
}
}
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = launchbar
config {
button {
icon = file-manager
tooltip = File Manager
action = thunar
}
button {
icon = terminal
tooltip = Terminal
action = x-terminal
}
button {
icon = web-browser
tooltip = Web Browser
action = firefox
}
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = wincmd
config {
icon = gnome-fs-desktop
tooltip = Left click to iconify all windows. Middle click to shade them.
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = taskbar
expand = true
config {
ShowIconified = true
ShowMapped = true
ShowAllDesks = false
tooltips = true
IconsOnly = false
MaxTaskWidth = 150
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = pager
config {
showwallpaper = true
}
}
Plugin {
type = space
config {
size = 10
}
}
Plugin {
type = mem
expand = false
padding = 2
config {
ShowSwap = false
}
}
Plugin {
type = cpu
config {
Color = green
}
}
Plugin {
type = net
expand = false
padding = 0
config {
#interface = ppp0
interface = eth0
# set connection limits to make traffic graph more accurate
TxLimit = 20
RxLimit = 190
TxColor = violet
RxColor = blue
}
}
Plugin {
type = space
config {
size = 10
}
}
plugin {
type = volume
}
#plugin {
# type = battery
#}
Plugin {
type = tray
}
Plugin {
type = space
config {
size = 10
}
}
# Digital Clock
Plugin {
type = dclock
config {
ShowSeconds = false
HoursView = 24
TooltipFmt = %A %x
#Action = xmessage Please define some command &
}
}
# Text Clock
# ClockFmt: (string) Clock format string. May contain strftime conversion
# specifications and Pango markup information.
# TooltipFmt: (string) Tooltip format string.
# Action: (string) Shell command to execute when clock is clicked.
# ShowCalendar: (boolean) Show a GTK calendar widget when the clock is
# clicked. Only valid if Action is unset.
# ShowTooltip: (boolean) Show tooltip for clock.
#Plugin {
# type = tclock
# config {
# ClockFmt = <b>%I:%M</b>
# # 2 line view, time in bold above and date below
# # ClockFmt = <span font="Sans 8"><b>%-l:%M</b> %P
%a %B %-e</span>
# TooltipFmt = %A %x
# #Action = xmessage Please define some command &
# ShowCalendar = false
# ShowTooltip = true
# }
#}
# 'icons' plugin lets you customize window icons.
# these changes apply to entire desktop
Plugin {
type = icons
config {
DefaultIcon = /usr/share/fbpanel/images/default.xpm
application {
icon = gnome-terminal
ClassName = XTerm
}
application {
icon = gnome-terminal
ClassName = mlterm
}
application {
icon = gnome-terminal
ClassName = URxvt
}
application {
icon = gnome-emacs
ClassName = Emacs
}
application {
icon = mozilla-firefox
ClassName = Firefox-bin
}
application {
icon = mozilla-firefox
ClassName = Firefox
}
}
}
Ajouter des lanceurs
#12Messageil y a 10 ans ########################################
## fbpanel configuration file ##
########################################
# DESCRIPTION
# Configuration file consists of mandatory 'Global' block that MUST come first,
# and optionally one or more 'Plugin' block.
# Lines having '#' as first non-blank char or blank lines are ignored
# Keywords are not case-sensitive
# Values are case-sensitive
# Value of variable is a text from first non-blank char after '='
# till the last non-blank char. '#' is NOT treated as coment in this context
# 'Global' block describes global parameters like position, size and
# some NETWM settings
# Global {
# # screen edge
# # legal values are: left, right, top, bottom
# edge = bottom
# # allignment of a panel
# # legal values are: left, right, center
# allign = left
# # length of margin (in pixels)
# # legal values are numbers
# margin = 0
# # widthtype specifies how panel width is calculated
# # legal values are: request, pixel, percent
# # request - follow widgets' size requests. can shrink or grow dynamically
# # pixel - occupy fixed number of pixels, then 'width' variable holds a number
# # percent - be 'width' precent of an edge.
# widthType = percent
# # numerical value of width (not applicable for 'request' widthtype)
# # legal values are numbers
# width = 80
# # heighttype specifies how panel height is calculated
# # legal values are: pixel
# # pixel - ocupy fixed number of pixels, then 'height' variable holds a number
# heightType = pixel
# # numerical value of height (if applicable)
# # legal values are numbers
# height = 28
# # Identify panel window type as dock
# # legal values are boolean
# setDockType = true
# # Reserve panel's space so that it will not be covered by maximazied windows
# # legal values are boolean
# # setPartialStrut = true
# # Transparency stuff:
# # tintColor is a color to composite on root background given as #RRGGBB or as name
# # alpha is transparency of the tint color.
# # transparent = true
# # tintColor = #FFFFFF
# or
# # tintColor = white
# # alpha = 127
# # Autohide
# # autoHide = false
# # heightWhenHidden = 2
# }
# 'Plugin' block specifies a plugin to load. It has same syntax for both
# builtin and external plugins.
# First parameter is 'type'. It's mandatory and must come first
# Legal values are plugin names. Names of builtin plugins are:
# separator - visual separator
# wincmd - 'show desktop' button
# taskbar - lists all opened windows (tasks)
# launchbar - bar with launch button
# image - just shows an image
# dclock - digital clock
# space - just seize space
# pager - thumbnailed view of the desktop
# tray - tray for XEMBED icons (aka docklets)
# expand - specifies if plugin can accomodate extra space or not [optional]
# padding - extra padding around plugin [optional]
# config {} - block of plugin's private configuration.
# This part is plugin dependant
#
# Plugin {
# type = wincmd
# config {
# image = ~/.fbpanel/images/Desktop2.png
# tooltip = Left click to iconify all windows. Middle click to shade them.
# }
# }
Global {
edge = bottom
allign = center
margin = 0
widthtype = percent
width = 100
height = 24
transparent = true
tintcolor = #ffffff
alpha = 28
setdocktype = true
setpartialstrut = true
autohide = false
heightWhenHidden = 2
roundcorners = true
roundcornersradius = 7
layer = none
MaxElemHeight = 32
}
Plugin {
type = space
config {
size = 2
}
}
Plugin {
type = menu
config {
IconSize = 22
#icon = start-here
icon = logo
systemmenu {
}
separator {
}
menu {
name = Computer
icon = computer
item {
name = Terminal
icon = terminal
action = x-terminal
}
item {
name = Lock Display
icon = gnome-lockscreen
action = slock
}
separator {
}
item {
name = Reboot
icon = gnome-session-reboot
action = systemctl reboot
}
item {
name = Shutdown
icon = gnome-session-halt
action = systemctl halt
}
item {
name = logout
icon = gnome-session-logout
action = /usr/lib/fbpanel/xlogout
}
}
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = launchbar
config {
button {
icon = file-manager
tooltip = Gestionnaire de fichiers
action = pcmanfm
}
button {
icon = thunderbird
tooltip = Client mail
action = thunderbird
}
button {
icon = web-browser
tooltip = Navigateur Web
action = firefox
}
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = wincmd
config {
icon = gnome-fs-desktop
tooltip = Left click to iconify all windows. Middle click to shade them.
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = taskbar
expand = true
config {
ShowIconified = true
ShowMapped = true
ShowAllDesks = false
tooltips = true
IconsOnly = false
MaxTaskWidth = 150
}
}
Plugin {
type = space
config {
size = 15
}
}
Plugin {
type = pager
config {
showwallpaper = true
}
}
Plugin {
type = space
config {
size = 10
}
}
Plugin {
type = mem
expand = false
padding = 2
config {
ShowSwap = false
}
}
Plugin {
type = cpu
config {
Color = green
}
}
Plugin {
type = net
expand = false
padding = 0
config {
#interface = ppp0
interface = eth0
# set connection limits to make traffic graph more accurate
TxLimit = 20
RxLimit = 190
TxColor = violet
RxColor = blue
}
}
Plugin {
type = space
config {
size = 10
}
}
plugin {
type = volume
}
#plugin {
# type = battery
#}
Plugin {
type = tray
}
Plugin {
type = space
config {
size = 10
}
}
# Digital Clock
Plugin {
type = dclock
config {
ShowSeconds = false
HoursView = 24
TooltipFmt = %A %x
#Action = xmessage Please define some command &
}
}
# Text Clock
# ClockFmt: (string) Clock format string. May contain strftime conversion
# specifications and Pango markup information.
# TooltipFmt: (string) Tooltip format string.
# Action: (string) Shell command to execute when clock is clicked.
# ShowCalendar: (boolean) Show a GTK calendar widget when the clock is
# clicked. Only valid if Action is unset.
# ShowTooltip: (boolean) Show tooltip for clock.
#Plugin {
# type = tclock
# config {
# ClockFmt = <b>%I:%M</b>
# # 2 line view, time in bold above and date below
# # ClockFmt = <span font="Sans 8"><b>%-l:%M</b> %P
%a %B %-e</span>
# TooltipFmt = %A %x
# #Action = xmessage Please define some command &
# ShowCalendar = false
# ShowTooltip = true
# }
#}
# 'icons' plugin lets you customize window icons.
# these changes apply to entire desktop
Plugin {
type = icons
config {
DefaultIcon = /usr/share/fbpanel/images/default.xpm
application {
icon = gnome-terminal
ClassName = XTerm
}
application {
icon = gnome-terminal
ClassName = mlterm
}
application {
icon = gnome-terminal
ClassName = URxvt
}
application {
icon = gnome-emacs
ClassName = Emacs
}
application {
icon = mozilla-firefox
ClassName = Firefox-bin
}
application {
icon = mozilla-firefox
ClassName = Firefox
}
}
}
ton icône de menu, elle a pas une extension ? et si elle n'est pas dans le dossier images, il faut le chemin complet (sauf si elle est fournie avec Fbpanel.
pour la position il est en bas au centre, taille 100% largeur 24px hauteur, couleur blanc transparent (alpha 28).
si ne se lance pas, lance le depuis un terminal pour voir l'erreur.
je t'ai mis trois lanceurs, mais il faut que tu mettes des icônes dans le dossier images et que tu les indique dans le plugin launchbar.
Ajouter des lanceurs
#13Messageil y a 10 anston icône de menu, elle a pas une extension ? et si elle n'est pas dans le dossier images, il faut le chemin complet (sauf si elle est fournie avec Fbpanel.
pour la position il est en bas au centre, taille 100% largeur 24px hauteur, couleur blanc transparent (alpha 28).
si ne se lance pas, lance le depuis un terminal pour voir l'erreur.
je t'ai mis trois lanceurs, mais il faut que tu mettes des icônes dans le dossier images et que tu les indique dans le plugin launchbar.
Voilà le contenu de /usr/share/fbpanel/images : il y a des icônes battery.png, dclock.png, default.xpm, gnome-session-halt.png, gnome-session-reboot.png, logo.png
Il doit me manquer quelque chose, voila le retour :
$ fbpanel
volume: can't open /dev/mixer
fbpanel: can't start plugin volume
Pour les icônes à rajouter, ce sont celles des lanceurs que je veux, c'est ça ?
Ajouter des lanceurs
#14Messageil y a 10 ansPlugin {
type = menu
config {
IconSize = 22
#icon = start-here
icon = logo.png
pour ton erreur, commente la partie du plugin son:
# plugin {
# type = volume
# }
à la place tu peux en mettre un autre qui s'affichera dans le systray (pn-mixer par exemple).
et pour les icônes des autres trucs, soit tu les mets dans ce dossier, et tu indiques juste leur nom, soit tu indiques le chemin complet de chaque icone dans ton système.
Ajouter des lanceurs
#15Messageil y a 10 ansAjouter des lanceurs
#16Messageil y a 10 ansAprès modifications, pas de fbpanel au démarrage ; j'ai regardé .config/openbox/autostart et il y a bien :
## Panel
(sleep ls && tint2) &
(sleep ls && fbpanel) &
tint2 en haut et fbpanel en bas.
En lançant fbpanel dans un terminal, cette barre s'affiche bien en bas.
edit : stupide faute de frappe : au lieu de mettre
(sleep 1s && fbpanel) &
j'avais mis
(sleep ls && fbpanel) &
affiché comme ça on ne voit pas l'erreur mais il y en a bien une et j'étais tombé dans le panneau.
Il faut voir :
edit : stupide faute de frappe : au lieu de mettre (sleep 1s && fbpanel) & j'avais mis (sleep ls && fbpanel) &
Maintenant on voit l'erreur.
Ajouter des lanceurs
#17Messageil y a 10 ansles copier-coller peuvent servir aussi, au lieu de recopier, parce que ce que je t'ai donné était correct, et je me grattais la tête en me demandant pourquoi ça marchait pas chez toi...
Ajouter des lanceurs
#19Messageil y a 10 ansMaintenant j'ai un panneau avec des lanceurs (d'ailleurs je regarde aussi avec xfce4-panel à la place de fbpanel), j'ai la possibilité de mettre des icônes sur le bureau avec pcmanfm.
Juste encore un petit truc, avec pcmanfm à la place de nitrogen, le conky se retrouve sous le fond d'écran (en tout cas il n'est plus visible).
Que faut-il modifier dans ce conky pour l'avoir en avant-plan (p***** de britiche ) ?
## ManjaroBox Conky Configuration Script
##
## Written by Carl Duff & Ugo Yak
## Website: www.manjaro.org - Forum: http://forum.manjaro.org/
##
# Basic Settings
background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 600
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color Black
default_shade_color 000000
default_outline_color d9d7d6
alignment tr
gap_x 5
gap_y 400
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
## ManjaroBang Conky Display
##
## Note - if internet connection speeds do not show, then enter 'ip addr' into the terminal
## to identify your correct Wireless and Ethernet connection names (e.g. wlo1, eno1)
##
TEXT
${font sans:bold:size=18}${alignr}${color #35BF5C}${time %e} ${color #BEBEBE}${time %B}${color #35BF5C} ${time %Y}${color #BEBEBE} ${time %l:%M}${font sans:bold:size=15}${time %p}${voffset -8}
${color #BEBEBE}${hr 1}${voffset -4}
${font sans:bold:size=9}${alignr}${color #35BF5C}CPU ${color #BEBEBE}${cpu cpu0}% - ${color #35BF5C}RAM ${color #BEBEBE}$mem ${color #B22222} / ${color #BEBEBE}$memmax - ${color #35BF5C}HD ${color #BEBEBE}$fs_used ${color #B22222} / ${color #BEBEBE} $fs_size${voffset 2}
${font sans:bold:size=9}${alignr}${color #35BF5C}Battery ${color #BEBEBE}$battery_percent% - ${color #35BF5C}Uptime ${color #BEBEBE}$uptime_short - ${color #35BF5C}Desktop ${color #BEBEBE}$desktop${voffset 3}
${hr 1}${voffset 6}
${font sans:bold:size=9}${alignr}${color #35BF5C}Shift + Left-Mouse
${alignr}${color #BEBEBE}Drag Window${voffset -5}
${font sans:bold:size=9}${alignr}${color #35BF5C}Super + d
${alignr}${color #BEBEBE}Toggle Desktop${voffset -5}
${font sans:bold:size=9}${alignr}${color #35BF5C}Super + f
${alignr}${color #BEBEBE}File Manager${voffset -5}
${font sans:bold:size=9}${alignr}${color #35BF5C}Super + m
${alignr}${color #BEBEBE}DMenu${voffset -5}
${font sans:bold:size=9}${alignr}${color #35BF5C}Super + s
${alignr}${color #BEBEBE}Synapse${voffset -5}
${font sans:bold:size=9}${alignr}${color #35BF5C}Super + t
${alignr}${color #BEBEBE}Terminal${voffset -5}
${font sans:bold:size=9}${alignr}${color #35BF5C}Super + x
${alignr}${color #BEBEBE}Logout...
Ajouter des lanceurs
#20Messageil y a 10 ansdans cet optique, il est plus intéressant d'utiliser un panneau vraiment conçu pour être autonome, et si Fbpanel te plait pas, y'en a d'autres: Lxpanel, Pypanel, Perlpanel...