forked from BunsenLabs/bunsen-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbl-exitrc
195 lines (182 loc) · 5.89 KB
/
bl-exitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# DEFAULT BUTTON CONFIGURATION FOR bl-exit
#
# USING THE CLASSICAL STYLE
# -------------------------
#
# CASE:
# Use only lowercase in the BUTTONS section
#
# WARNING:
# Do not overwrite this file.
# It is a Debian conf file and may be changed by the package manager when
# a new version of bunsen-utilities is released.
#
# CONFIGURATION:
# To configure bl-exit buttons, copy this file to
#
# "$HOME/.config/bl-exit/bl-exitrc"
#
# and edit it according to your wishes.
#
# It is possible to group configurations for several buttons by adding a
# [default]
# section. All buttons that do not have a specific section will take the
# show and onerror values from this default section.
# show can take the values always | never | maybe
#
# maybe:
# the button will be shown and clickable when the action is
# possible. When the action is not possible (e.g. suspend when
# no swap file is present) the button will be inactive.
#
# onerror can take the values visual | novisual for feedback on error.
#
# USING THE MODERN STYLE
# ----------------------
#
# ICONS:
# Icon images are installed in "/usr/share/images/bunsen/exit/dark"
# You can use your own images by placing them in a directory of your
# choice in your HOME directory. We recommend "~/.local/share/bl-exit",
# but you are free to choose any directory you want.
# To activate those images, edit the 'iconpath' configuration option
# to:
# iconpath=~/.local/share/bl-exit:/usr/share/images/bunsen/exit/light
#
# This path is searched from left to right - just like PATH - to find
# your configured images.
#
# THEMES:
# The height of the bl-exit window will not be displayed less than the icon height.
# The default dark and light theme icons are 100x100px.
# NOTE: We install a "light" directory containing light icons for a dark theme
# and a 'dark' directory containing dark icons for a light theme.
# However, you are free to name your icon directory as you want and you can
# use any directory for any theme, by editing the 'iconpath' configuration
# option for that theme appropriately.
#
# STYLE:
# When the [style] section is not present or the combination of the values
# of options 'dir' and 'rcfile' point to a non-existent file, the buttons
# will take colors from the active gtk theme.
# So you can keep the section [style] and just switch the value of 'rcfile'
# from an existent file to 'None' for instance - to switch from a custom
# style to the current active gtk theme. (presuming there is no file 'None'
# in the directory 'dir')
#
# non-existing rcfile --> use current GTK theme
# existing rcfile --> use custom colors
#
# EDIT:
# To switch to the classic button layout, you can now set the 'theme'
# entry in the [theme] section to 'classic'
#
# To use custom styles, you MUST
# - create a subdirectory in "$HOME/.config/bl-exit"
# - specify that subdirectory in entry 'dir' of section [style] as an absolute path
# - specify the filename in entry 'rcfile' of section [style]
#
# We install example custom styles in "/etc/bl-exit/styles" that you can copy
# to "$HOME/.config/bl-exit/"...
#
### BUTTONS ############################################################
[cancel]
show = always
onerror = novisual
[logout]
show = always
onerror = novisual
[suspend]
show = always
onerror = novisual
[sleep]
show = always
onerror = novisual
[hibernate]
show = never
onerror = novisual
[hybridsleep]
show = never
onerror = novisual
[reboot]
show = always
onerror = novisual
[poweroff]
show = always
onerror = novisual
[style]
dir = styles
rcfile = None
### THEME to be used ###################################################
# When the [theme] section is not present or commented out
# or the [theme] section is present and the 'theme' entry is set to
# 'classic', use the 'classic' ButtonBox layout.
[theme]
# set the theme
theme = dark
### THEME settings #####################################################
[dark]
name=Dark Theme
author=MerlinElMago
#Overall height of the dialog.
dialogHeight=150
#Delay for the fade in counter
sleepDelay=0.003
#OverallOpacity of the dialog (0-100)
overallOpacity=100
#Space between Buttons
buttonSpacing=5
# path to icon files
iconpath=/usr/share/images/bunsen/exit/dark
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePoweroff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
windowWidthAdjustment=
[light]
name=Light Theme
author=BunsenLabs
#Overall height of the dialog.
dialogHeight=150
#Delay for the fade in counter
sleepDelay=0.003
#OverallOpacity of the dialog (0-100)
overallOpacity=100
#Space between Buttons
buttonSpacing=5
# path to icon files
iconpath=/usr/share/images/bunsen/exit/light
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePoweroff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
windowWidthAdjustment=
[minimal]
name = Minimal working theme
author = BunsenLabs
#Delay for the fade in counter
sleepDelay=0.003
#OverallOpacity of the dialog (0-100)
overallOpacity=75
# path to icon files
iconpath=/usr/share/images/bunsen/exit/light
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePowerOff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
windowWidthAdjustment=