Huge refractor and many fixes for dock, icons(again) etc
This commit is contained in:
195
awesome/src/theme/colors.lua
Normal file
195
awesome/src/theme/colors.lua
Normal file
@@ -0,0 +1,195 @@
|
||||
-----------------------------------------------------
|
||||
-- This is a table with almost all Material colors --
|
||||
-----------------------------------------------------
|
||||
|
||||
return {
|
||||
['White'] = '#ffffffdd',
|
||||
['Black'] = '#000000',
|
||||
|
||||
['Grey50'] = '#fafafa',
|
||||
['Grey100'] = '#f5f5f5',
|
||||
['Grey200'] = '#eeeeee',
|
||||
['Grey300'] = '#e0e0e0',
|
||||
['Grey400'] = '#bdbdbd',
|
||||
['Grey500'] = '#9e9e9e',
|
||||
['Grey600'] = '#757575',
|
||||
['Grey700'] = '#616161',
|
||||
['Grey800'] = '#424242',
|
||||
['Grey900'] = '#212121',
|
||||
|
||||
['Red50'] = '#ffebee',
|
||||
['Red100'] = '#ffcdd2',
|
||||
['Red200'] = '#ef9a9a',
|
||||
['Red300'] = '#e57373',
|
||||
['Red400'] = '#ef5350',
|
||||
['Red500'] = '#f44336',
|
||||
['Red600'] = '#e53935',
|
||||
['Red700'] = '#d32f2f',
|
||||
['Red800'] = '#c62828',
|
||||
['Red900'] = '#b71c1c',
|
||||
['RedA100'] = '#ff8a80',
|
||||
['RedA200'] = '#ff5252',
|
||||
['RedA400'] = '#ff1744',
|
||||
['RedA700'] = '#d50000',
|
||||
|
||||
['Pink50'] = '#fce4ec',
|
||||
['Pink100'] = '#f8bbd0',
|
||||
['Pink200'] = '#f48fb1',
|
||||
['Pink300'] = '#f06292',
|
||||
['Pink400'] = '#ec407a',
|
||||
['Pink500'] = '#e91e63',
|
||||
['Pink600'] = '#d81b60',
|
||||
['Pink700'] = '#c2185b',
|
||||
['Pink800'] = '#ad1457',
|
||||
['Pink900'] = '#880e4f',
|
||||
['PinkA100'] = '#ff80ab',
|
||||
['PinkA200'] = '#ff4081',
|
||||
['PinkA400'] = '#f50057',
|
||||
['PinkA700'] = '#c51162',
|
||||
|
||||
['Blue50'] = '#e3f2fd',
|
||||
['Blue100'] = '#bbdefb',
|
||||
['Blue200'] = '#90caf9',
|
||||
['Blue300'] = '#64b5f6',
|
||||
['Blue400'] = '#42a5f5',
|
||||
['Blue500'] = '#2196f3',
|
||||
['Blue600'] = '#1e88e5',
|
||||
['Blue700'] = '#1976d2',
|
||||
['Blue800'] = '#1565c0',
|
||||
['Blue900'] = '#0d47a1',
|
||||
['BlueA100'] = '#82b1ff',
|
||||
['BlueA200'] = '#448aff',
|
||||
['BlueA400'] = '#2979ff',
|
||||
['BlueA700'] = '#2962ff',
|
||||
|
||||
['Yellow50'] = '#fffde7',
|
||||
['Yellow100'] = '#fff9c4',
|
||||
['Yellow200'] = '#fff59d',
|
||||
['Yellow300'] = '#fff176',
|
||||
['Yellow400'] = '#ffee58',
|
||||
['Yellow500'] = '#ffeb3b',
|
||||
['Yellow600'] = '#fdd835',
|
||||
['Yellow700'] = '#fbc02d',
|
||||
['Yellow800'] = '#f9a825',
|
||||
['Yellow900'] = '#f57f17',
|
||||
['YellowA100'] = '#ffff8d',
|
||||
['YellowA200'] = '#ffff00',
|
||||
['YellowA400'] = '#ffea00',
|
||||
['YellowA700'] = '#ffd600',
|
||||
|
||||
['Teal50'] = '#e0f2f1',
|
||||
['Teal100'] = '#b2dfdb',
|
||||
['Teal200'] = '#80cbc4',
|
||||
['Teal300'] = '#4db6ac',
|
||||
['Teal400'] = '#26a69a',
|
||||
['Teal500'] = '#009688',
|
||||
['Teal600'] = '#00897b',
|
||||
['Teal700'] = '#00796b',
|
||||
['Teal800'] = '#00695c',
|
||||
['Teal900'] = '#004d40',
|
||||
['TealA100'] = '#a7ffeb',
|
||||
['TealA200'] = '#64ffda',
|
||||
['TealA400'] = '#1de9b6',
|
||||
['TealA700'] = '#00bfa5',
|
||||
|
||||
['Green50'] = '#e8f5e9',
|
||||
['Green100'] = '#c8e6c9',
|
||||
['Green200'] = '#a5d6a7',
|
||||
['Green300'] = '#81c784',
|
||||
['Green400'] = '#66bb6a',
|
||||
['Green500'] = '#4caf50',
|
||||
['Green600'] = '#43a047',
|
||||
['Green700'] = '#388e3c',
|
||||
['Green800'] = '#2e7d32',
|
||||
['Green900'] = '#1b5e20',
|
||||
['GreenA100'] = '#b9f6ca',
|
||||
['GreenA200'] = '#69f0ae',
|
||||
['GreenA400'] = '#00e676',
|
||||
['GreenA700'] = '#00c853',
|
||||
|
||||
['Orange50'] = '#fff3e0',
|
||||
['Orange100'] = '#ffe0b2',
|
||||
['Orange200'] = '#ffcc80',
|
||||
['Orange300'] = '#ffb74d',
|
||||
['Orange400'] = '#ffa726',
|
||||
['Orange500'] = '#ff9800',
|
||||
['Orange600'] = '#fb8c00',
|
||||
['Orange700'] = '#f57c00',
|
||||
['Orange800'] = '#ef6c00',
|
||||
['Orange900'] = '#e65100',
|
||||
['OrangeA100'] = '#ffd180',
|
||||
['OrangeA200'] = '#ffab40',
|
||||
['OrangeA400'] = '#ff9100',
|
||||
['OrangeA700'] = '#ff6d00',
|
||||
|
||||
['DeepOrange50'] = '#fbe9e7',
|
||||
['DeepOrange100'] = '#ffccbc',
|
||||
['DeepOrange200'] = '#ffab91',
|
||||
['DeepOrange300'] = '#ff8a65',
|
||||
['DeepOrange400'] = '#ff7043',
|
||||
['DeepOrange500'] = '#ff5722',
|
||||
['DeepOrange600'] = '#f4511e',
|
||||
['DeepOrange700'] = '#e64a19',
|
||||
['DeepOrange800'] = '#d84315',
|
||||
['DeepOrange900'] = '#bf360c',
|
||||
['DeepOrangeA100'] = '#ff9e80',
|
||||
['DeepOrangeA200'] = '#ff6e40',
|
||||
['DeepOrangeA400'] = '#ff3d00',
|
||||
['DeepOrangeA700'] = '#dd2c00',
|
||||
|
||||
['Purple50'] = '#F3E5F5',
|
||||
['Purple100'] = '#E1BEE7',
|
||||
['Purple200'] = '#CE93D8',
|
||||
['Purple300'] = '#BA68C8',
|
||||
['Purple400'] = '#AB47BC',
|
||||
['Purple500'] = '#9C27B0',
|
||||
['Purple600'] = '#8E24AA',
|
||||
['Purple700'] = '#7B1FA2',
|
||||
['Purple800'] = '#6A1B9A',
|
||||
['Purple900'] = '#4A148C',
|
||||
['PurpleA100'] = '#EA80FC',
|
||||
['PurpleA200'] = '#E040FB',
|
||||
['PurpleA500'] = '#D500F9',
|
||||
['PurpleA700'] = '#AA00FF',
|
||||
|
||||
['DeepPurple50'] = '#EDE7F6',
|
||||
['DeepPurple100'] = '#D1C4E9',
|
||||
['DeepPurple200'] = '#B39DDB',
|
||||
['DeepPurple300'] = '#9575CD',
|
||||
['DeepPurple400'] = '#7E57C2',
|
||||
['DeepPurple500'] = '#673AB7',
|
||||
['DeepPurple600'] = '#5E35B1',
|
||||
['DeepPurple700'] = '#512DA8',
|
||||
['DeepPurple800'] = '#4527A0',
|
||||
['DeepPurple900'] = '#311B92',
|
||||
['DeepPurpleA100'] = '#B388FF',
|
||||
['DeepPurpleA200'] = '#7C4DFF',
|
||||
['DeepPurpleA400'] = '#651FFF',
|
||||
['DeepPurpleA700'] = '#6200EA',
|
||||
|
||||
['LightBlue50'] = '#E1F5FE',
|
||||
['LightBlue100'] = '#B3E5FC',
|
||||
['LightBlue200'] = '#81D4FA',
|
||||
['LightBlue300'] = '#4FC3F7',
|
||||
['LightBlue400'] = '#29B6F6',
|
||||
['LightBlue500'] = '#03A9F4',
|
||||
['LightBlue600'] = '#039BE5',
|
||||
['LightBlue700'] = '#0288D1',
|
||||
['LightBlue800'] = '#0277BD',
|
||||
['LightBlue900'] = '#01579B',
|
||||
['LightBlueA100'] = '#80D8FF',
|
||||
['LightBlueA200'] = '#40C4FF',
|
||||
['LightBlueA400'] = '#00B0FF',
|
||||
['LightBlueA700'] = '#0091EA',
|
||||
|
||||
['BlueGrey50'] = '#ECEFF1',
|
||||
['BlueGrey100'] = '#CFD8DC',
|
||||
['BlueGrey200'] = '#B0BEC5',
|
||||
['BlueGrey300'] = '#90A4AE',
|
||||
['BlueGrey400'] = '#78909C',
|
||||
['BlueGrey500'] = '#607D8B',
|
||||
['BlueGrey600'] = '#546E7A',
|
||||
['BlueGrey700'] = '#455A64',
|
||||
['BlueGrey800'] = '#37474F',
|
||||
['BlueGrey900'] = '#263238'
|
||||
}
|
||||
37
awesome/src/theme/init.lua
Normal file
37
awesome/src/theme/init.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
--------------------------------------------------
|
||||
-- ██████╗██████╗ ██╗ ██╗██╗ ██╗ █████╗ --
|
||||
-- ██╔════╝██╔══██╗╚██╗ ██╔╝██║ ██║██╔══██╗ --
|
||||
-- ██║ ██████╔╝ ╚████╔╝ ██║ ██║███████║ --
|
||||
-- ██║ ██╔══██╗ ╚██╔╝ ██║ ██║██╔══██║ --
|
||||
-- ╚██████╗██║ ██║ ██║ ███████╗██║██║ ██║ --
|
||||
-- ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝╚═╝ ╚═╝ --
|
||||
--------------------------------------------------
|
||||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
local gears = require("gears")
|
||||
|
||||
Theme_path = awful.util.getdir("config") .. "/src/theme/"
|
||||
Theme = {}
|
||||
|
||||
dofile(Theme_path .. "theme_variables.lua")
|
||||
|
||||
Theme.awesome_icon = Theme_path .. "../assets/icons/ArchLogo.png"
|
||||
Theme.awesome_subicon = Theme_path .. "../assets/icons/ArchLogo.png"
|
||||
|
||||
-- Wallpaper
|
||||
beautiful.wallpaper = user_vars.wallpaper
|
||||
screen.connect_signal(
|
||||
'request::wallpaper',
|
||||
function(s)
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if beautiful.wallpaper then
|
||||
if type(beautiful.wallpaper) == 'string' then
|
||||
gears.wallpaper.maximized(beautiful.wallpaper, s)
|
||||
else
|
||||
beautiful.wallpaper(s)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
beautiful.init(Theme)
|
||||
95
awesome/src/theme/theme_variables.lua
Normal file
95
awesome/src/theme/theme_variables.lua
Normal file
@@ -0,0 +1,95 @@
|
||||
------------------------------------------------------------------------------------------
|
||||
-- This is the main themeing file, here are most colors changed --
|
||||
-- If you want to change individual widget colors you will need to edit them seperately --
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
-- Awesome Libs
|
||||
local color = require("src.theme.colors")
|
||||
local dpi = require("beautiful.xresources").apply_dpi
|
||||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/titlebar/"
|
||||
|
||||
Theme.font = user_vars.font.bold
|
||||
|
||||
Theme.bg_normal = color["Grey900"]
|
||||
Theme.bg_focus = color["Grey900"]
|
||||
Theme.bg_urgent = color["RedA200"]
|
||||
Theme.bg_minimize = color["White"]
|
||||
Theme.bg_systray = color["White"]
|
||||
|
||||
Theme.fg_normal = color["White"]
|
||||
Theme.fg_focus = color["White"]
|
||||
Theme.fg_urgent = color["White"]
|
||||
Theme.fg_minimize = color["White"]
|
||||
|
||||
Theme.useless_gap = dpi(5) -- Change this to 0 if you dont like window gaps
|
||||
Theme.border_width = dpi(0) -- Change this to 0 if you dont like borders
|
||||
Theme.border_normal = color["Grey800"]
|
||||
--Theme.border_focus = color["Red"] -- Doesnt work, no idea why; workaround is in signals.lua
|
||||
Theme.border_marked = color["Red400"]
|
||||
|
||||
--Theme.menu_submenu_icon = Theme_path .. "assets.ArchLogo.png"
|
||||
Theme.menu_height = dpi(40)
|
||||
Theme.menu_width = dpi(200)
|
||||
Theme.menu_bg_normal = color["Grey900"]
|
||||
Theme.menu_bg_focus = color["Grey800"]
|
||||
Theme.menu_fg_focus = color["White"]
|
||||
Theme.menu_border_color = color["Grey800"]
|
||||
Theme.menu_border_width = dpi(0)
|
||||
Theme.menu_shape = function(cr, width, heigth)
|
||||
gears.shape.rounded_rect(cr, width, heigth, 5)
|
||||
end
|
||||
|
||||
Theme.taglist_fg_focus = color["Grey900"]
|
||||
Theme.taglist_bg_focus = color["White"]
|
||||
|
||||
Theme.tooltip_border_color = color["Grey900"]
|
||||
Theme.tooltip_bg = color["Grey800"]
|
||||
Theme.tooltip_fg = color["White"]
|
||||
Theme.tooltip_border_width = dpi(0)
|
||||
Theme.tooltip_shape = function(cr, width, heigth)
|
||||
gears.shape.rounded_rect(cr, width, heigth, 5)
|
||||
end
|
||||
|
||||
Theme.notification_bg = color["Grey900"]
|
||||
Theme.notification_fg = color["White"]
|
||||
Theme.notification_border_width = dpi(0)
|
||||
Theme.notification_border_color = color["Grey900"]
|
||||
Theme.notification_shape = function(cr, width, heigth)
|
||||
gears.shape.rounded_rect(cr, width, heigth, 10)
|
||||
end
|
||||
Theme.notification_margin = dpi(10)
|
||||
Theme.notification_max_width = dpi(400)
|
||||
Theme.notification_max_height = dpi(1000)
|
||||
Theme.notification_icon_size = dpi(40)
|
||||
|
||||
Theme.titlebar_close_button_normal = icondir .. "close.svg"
|
||||
Theme.titlebar_maximized_button_normal = icondir .. "maximize.svg"
|
||||
Theme.titlebar_minimize_button_normal = icondir .. "minimize.svg"
|
||||
Theme.titlebar_maximized_button_active = icondir .. "maximize.svg"
|
||||
Theme.titlebar_maximized_button_inactive = icondir .. "maximize.svg"
|
||||
|
||||
Theme.bg_systray = color["BlueGrey800"]
|
||||
Theme.systray_icon_spacing = dpi(10)
|
||||
|
||||
Theme.hotkeys_bg = color["Grey900"]
|
||||
Theme.hotkeys_fg = color["White"]
|
||||
Theme.hotkeys_border_width = 0
|
||||
Theme.hotkeys_shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, 10)
|
||||
end
|
||||
Theme.hotkeys_description_font = user_vars.font.bold
|
||||
|
||||
-- Icon directory path
|
||||
local layout_path = Theme_path .. "../assets/layout/"
|
||||
|
||||
-- Here are the icons for the layouts defined, if you want to add more layouts go to main/layouts.lua
|
||||
Theme.layout_floating = gears.color.recolor_image(layout_path .. "floating.svg", color["Grey900"])
|
||||
Theme.layout_tile = gears.color.recolor_image(layout_path .. "tile.svg", color["Grey900"])
|
||||
--Theme.layout_dwindle = gears.color.recolor_image(layout_path .. "dwindle.svg", color["Grey900"])
|
||||
--Theme.layout_fairh = gears.color.recolor_image(layout_path .. "fairh.svg", color["Grey900"])
|
||||
--Theme.layout_fullscreen = gears.color.recolor_image(layout_path .. "fullscreen.svg", color["Grey900"])
|
||||
--Theme.layout_max = gears.color.recolor_image(layout_path .. "max.svg", color["Grey900"])
|
||||
89
awesome/src/theme/user_variables.lua
Normal file
89
awesome/src/theme/user_variables.lua
Normal file
@@ -0,0 +1,89 @@
|
||||
-------------------------------------------
|
||||
-- Uservariables are stored in this file --
|
||||
-------------------------------------------
|
||||
local awful = require("awful")
|
||||
local dpi = require("beautiful").xresources.apply_dpi
|
||||
local home = os.getenv("HOME")
|
||||
|
||||
-- If you want different default programs, wallpaper path or modkey; edit this file.
|
||||
user_vars = {
|
||||
|
||||
-- Autotiling layouts
|
||||
layouts = {
|
||||
awful.layout.suit.tile,
|
||||
awful.layout.suit.floating,
|
||||
awful.layout.suit.fair,
|
||||
},
|
||||
|
||||
-- Icon theme from /usr/share/icons
|
||||
icon_theme = "Papirus-Dark",
|
||||
|
||||
-- Write the terminal command to start anything here
|
||||
autostart = {
|
||||
"picom --experimental-backends",
|
||||
"xfce4-power-manager",
|
||||
"light-locker --lock-on-suspend --lock-on-lid &",
|
||||
"flatpak run com.spotify.Client",
|
||||
"discord",
|
||||
"/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1"
|
||||
},
|
||||
|
||||
-- Type 'ip a' and check your wlan and ethernet name
|
||||
network = {
|
||||
wlan = "wlo1",
|
||||
ethernet = "eno1"
|
||||
},
|
||||
|
||||
-- Set your font with this format:
|
||||
font = {
|
||||
regular = "JetBrainsMono Nerd Font, 14",
|
||||
bold = "JetBrainsMono Nerd Font, bold 14",
|
||||
extrabold = "JetBrainsMono Nerd Font, ExtraBold 14"
|
||||
},
|
||||
|
||||
-- This is your default Terminal
|
||||
terminal = "alacritty -o font.size=14",
|
||||
|
||||
-- This is the modkey 'mod4' = Super/Mod/WindowsKey, 'mod3' = alt...
|
||||
modkey = "Mod4",
|
||||
|
||||
-- place your wallpaper at this path with this name, you could also try to change the path
|
||||
wallpaper = home .. "/.config/awesome/src/assets/fuji.jpg",
|
||||
|
||||
-- Naming scheme for the powermenu, userhost = "user@hostname", fullname = "Firstname Surname", something else ...
|
||||
namestyle = "userhost",
|
||||
|
||||
-- List every Keyboard layout you use here comma seperated. (run localectl list-keymaps to list all averiable keymaps)
|
||||
kblayout = { "de", "ru" },
|
||||
|
||||
-- Your filemanager that opens with super+e
|
||||
file_manager = "nemo",
|
||||
|
||||
-- Screenshot program to make a screenshot when print is hit
|
||||
screenshot_program = "flameshot gui",
|
||||
|
||||
-- If you use the dock here is how you control its size
|
||||
dock_icon_size = dpi(50),
|
||||
|
||||
-- Add your programs exactly like in this example.
|
||||
-- First entry has to be how you would start the program in the terminal (just try it if you dont know yahoo it)
|
||||
-- Second can be what ever the fuck you want it to be (will be the displayed name if you hover over it)
|
||||
-- For steam games please use this format {"394360", "Name", true} true will tell the func that it's a steam game
|
||||
-- TODO: Add appimage support
|
||||
-- Theoretically you can put the appimage path as the first argument and it *should* work
|
||||
dock_programs = {
|
||||
{ "alacritty", "Alacritty" },
|
||||
{ "firefox", "Firefox" },
|
||||
{ "discord", "Discord" },
|
||||
{ "flatpak run com.spotify.Client", "Spotify" },
|
||||
{ "code", "Visual Studio Code" },
|
||||
{ "arduino", "Arduino IDE" },
|
||||
{ "zoom", "Zoom" },
|
||||
{ "thunderbird", "Thunderbird" },
|
||||
{ "mattermost-desktop", "Mattermost" },
|
||||
{ "blender", "Blender" },
|
||||
{ "steam", "Steams" },
|
||||
{ "freecad", "Freecad" },
|
||||
{ "nemo", "Dateien" }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user