add new context_menu and rework dock, programs can now be added to the dock my right clicking any program in the application launcher an choosing Add to Dock

This commit is contained in:
Rene
2022-08-15 15:18:51 +02:00
parent 9cea2f98cc
commit 268cb29a6b
22 changed files with 507 additions and 167 deletions

View File

@@ -468,6 +468,29 @@ Theme_config.application_launcher = {
end,
}
}
Theme_config.context_menu = {
bg = color["Grey900"],
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(8))
end,
fg = color["Grey100"],
entry = {
bg = color["Grey900"],
fg = color["Grey100"],
border_color = color["Grey800"],
border_width = dpi(2),
hover_fg = color["Teal200"],
hover_border = color["Teal200"],
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(4))
end,
icon_color = color["Grey100"],
icon_color_hover = color["Teal200"]
}
}
--#endregion
--[[

View File

@@ -70,32 +70,6 @@ User_config = {
]] --
dock_icon_size = dpi(64),
--[[
Add your programs to the dock. You need to provide the name of the .desktop file
You can find those in the /usr/share/applications or $HOME/.local/share/applications directory.
Some .desktop files are more hidden, for more information look at: $XDG_DATA_DIRS/applications
Example:
"com.alacritty.Alacritty.desktop",
"com.spotify.Client.desktop",
"firefox.desktop",
]] --
dock_programs = {
"com.alacritty.Alacritty.desktop",
"com.brave.Browser.desktop",
"steam.desktop",
"discord.desktop",
"spotify.desktop",
"code.desktop",
"arduino-arduinoide.desktop",
"us.zoom.Zoom.desktop",
"thunderbird.desktop",
"appimagekit_5de59b772d786d6e98102a035c80e40c-Ultimaker_Cura.desktop",
"blender.desktop",
"freecad.desktop",
"The Witcher 3 Wild Hunt.desktop",
"Microsoft Flight Simulator.desktop"
},
--[[
This is the program that will be started when clicking on the battery widget
If you don't want any just leave it as nil