update gitignore

This commit is contained in:
Rene
2022-08-25 02:02:14 +02:00
parent 7a9b93aa65
commit f2e6709f6b
3 changed files with 865 additions and 3 deletions

4
.gitignore vendored
View File

@@ -1,6 +1,4 @@
awesome/.idea awesome/.idea
awesome/.vscode awesome/.vscode
awesome/start-xephyr.sh awesome/start-xephyr.sh
awesome/src/config awesome/src/config/**
awesome/src/theme/theme_config.lua
awesome/src/theme/user_config.lua

View File

@@ -0,0 +1,558 @@
-- Awesome Libs
local color = require("src.theme.colors")
local dpi = require("beautiful.xresources").apply_dpi
local gears = require("gears")
Theme_config = {}
--[[
=======================
=== Widget Settings ===
=======================
Every widget can be customized with a custom color.
You can change the color and other theme related settings here.
For functional changes visit the user_config.lua
]] --
--#region Widget Settings
Theme_config.audio = {
bg = color["Yellow200"],
fg = color["Grey900"],
}
Theme_config.battery = {
bg = color["Purple200"],
fg = color["Grey900"],
}
Theme_config.bluetooth = {
bg = color["Blue200"],
fg = color["Grey900"],
}
Theme_config.clock = {
bg = color["Orange200"],
fg = color["Grey900"],
}
Theme_config.cpu_freq = {
bg = color["Blue200"],
fg = color["Grey900"],
}
Theme_config.cpu_temp = {
fg = color["Grey900"],
bg_low = color["Green200"],
bg_mid = color["Orange200"],
bg_high = color["Red200"],
}
Theme_config.cpu_usage = {
bg = color["Blue200"],
fg = color["Grey900"],
}
Theme_config.date = {
bg = color["Teal200"],
fg = color["Grey900"],
}
Theme_config.gpu_usage = {
bg = color["Green200"],
fg = color["Grey900"],
}
Theme_config.gpu_temp = {
fg = color["Grey900"],
bg_low = color["Green200"],
bg_mid = color["Orange200"],
bg_high = color["Red200"],
}
Theme_config.kblayout = {
bg = color["Green200"],
fg = color["Grey900"],
bg_container = color["Grey900"],
border_color_container = color["Grey800"],
item = {
bg = color["Grey800"],
fg_long = color["Red200"],
fg_short = color["Purple200"],
bg_selected = color["DeepPurple200"],
fg_selected = color["Grey900"],
}
}
Theme_config.layout_list = {
bg = color["LightBlue200"],
fg = color["Grey900"],
}
Theme_config.network = {
bg = color["Red200"],
fg = color["Grey900"],
notify_icon_color = color["Grey100"]
}
Theme_config.power_button = {
bg = color["Red200"],
fg = color["Grey900"],
}
Theme_config.ram_info = {
bg = color["Red200"],
fg = color["Grey900"],
}
Theme_config.systray = {
bg = "#3A475C",
}
Theme_config.taglist = {
bg = "#3A475C",
fg = color["Grey100"],
bg_urgent = color["RedA200"],
fg_urgent = color["Grey900"],
bg_focus = color["Grey100"],
bg_focus_pressed = "#dddddd",
bg_focus_hover = color["Grey100"],
fg_focus = color["Grey900"],
}
Theme_config.tasklist = {
bg = "#3A475C",
fg = color["Grey100"],
bg_urgent = color["RedA200"],
fg_urgent = color["Grey900"],
bg_focus = color["Grey100"],
bg_focus_pressed = "#dddddd",
bg_focus_hover = color["Grey100"],
fg_focus = color["Grey900"],
}
--#endregion
--[[
=======================
=== Module Settings ===
=======================
Here you can customize the modules.
For functional changes visit the user_config.lua
]] --
--#region Module Settings
Theme_config.notification = {
border_color = color["Grey800"],
border_width = dpi(4),
bg = color["Grey900"],
spacing = dpi(10),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(10))
end,
shape_inside = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(4))
end,
position = "bottom_right",
timeout = 3,
corner_spacing = dpi(20),
bg_urgent = color["Grey900"],
fg_urgent_title = color["RedA200"],
fg_urgent_message = color["Red200"],
fg_urgent_app_name = color["RedA400"],
fg_normal_title = color["Pink200"],
fg_normal_message = "#ffffffaa",
bg_normal = color["Grey900"],
spotify_button_icon_color = color["Cyan200"],
action_bg = color["Grey800"],
action_fg = color["Green200"],
icon_color = color["Teal200"],
fg_appname = color["Teal200"],
fg_time = color["Teal200"],
fg_close = color["Teal200"],
bg_close = color["Grey900"],
title_border_color = color["Grey800"],
title_border_width = dpi(2),
}
Theme_config.notification_center = {
bg = color["Grey900"],
border_color = color["Grey800"],
border_width = dpi(4),
spacing_color = color["Grey800"],
-- Clear all button
clear_all_button = {
bg = color["Blue200"],
fg = color["Grey900"],
},
-- DnD button
dnd = {
bg = color["Grey900"],
fg = color["Pink200"],
disabled = color["Grey700"],
enabled = color["Purple200"],
border_disabled = color["Grey800"],
border_enabled = color["Purple200"],
},
-- Notification_list
notification_list = {
timer_fg = color["Teal200"],
close_color = color["Teal200"],
close_bg = color["Grey900"],
icon = color["Teal200"],
title_fg = color["Teal200"],
title_border_color = color["Grey800"],
title_border_width = dpi(2),
notification_border_color = color["Grey800"],
notification_bg = color["Grey900"],
notification_border_width = dpi(4),
notification_shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, 8)
end
},
-- Profile widget
profile = {
username_icon_color = color["Blue200"],
os_prefix_icon_color = color["Blue200"],
kernel_icon_color = color["Blue200"],
uptime_icon_color = color["Blue200"],
fg = color["Green200"],
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(8))
end
},
-- Song info widget
song_info = {
shuffle_disabled = color["Grey800"],
shuffle_enabled = color["Green200"],
repeat_disabled = color["Grey800"],
repeat_single = color["Green200"],
repeat_all = color["Green200"],
prev_enabled = color["Teal200"],
next_enabled = color["Teal200"],
play_enabled = color["Teal200"],
prev_hover = color["Teal300"],
next_hover = color["Teal300"],
play_hover = color["Teal300"],
title_fg = color["Pink200"],
artist_fg = color["Teal200"],
duration_fg = color["Teal200"],
progress_color = color["Purple200"],
progress_background_color = color["Grey800"],
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(8))
end
},
-- Spacing line widget
spacing_line = {
color = color["Grey800"],
},
-- Status bar widgets
status_bar = {
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(10))
end,
bar_bg_color = color["Grey800"],
cpu_usage_color = color["Cyan200"],
cpu_temp_color = color["Blue200"],
ram_usage_color = color["Red200"],
gpu_usage_color = color["Green200"],
gpu_temp_color = color["Green200"],
volume_color = color["Yellow200"],
microphone_color = color["Blue200"],
backlight_color = color["Pink200"],
battery_color = color["Purple200"],
},
-- Time Date widget
time_date = {
},
-- Weather widget
weather = {
description_fg = color["LightBlue200"],
line_color = color["Grey800"],
speed_icon_color = color["OrangeA200"],
humidity_icon_color = color["OrangeA200"],
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(12))
end
},
}
Theme_config.bluetooth_controller = {
icon_color = color["Purple200"],
icon_color_dark = color["Grey900"],
con_button_color = color["Blue200"],
device_bg = color["Grey900"],
device_bg_hover = "#313131",
device_fg_hover = color["LightBlue100"],
device_fg = color["LightBlue200"],
device_border_color = color["Grey800"],
device_border_width = dpi(2),
con_device_border_color = color["Grey800"],
con_device_border_width = dpi(2),
connected_bg = color["Grey800"],
connected_fg = color["Purple200"],
connected_icon_color = color["Purple200"],
discovered_icon_color = color["LightBlue200"],
discovered_bg = color["Grey800"],
discovered_fg = color["LightBlue200"],
container_border_color = color["Grey800"],
container_border_width = dpi(4),
container_bg = color["Grey900"],
}
Theme_config.brightness_osd = {
bg = color["Grey900"],
fg = color["Blue200"],
border_color = color["Grey800"],
border_width = dpi(4),
bar_bg_active = color["Blue200"],
bar_bg = color["Grey800"],
icon_color = color["Blue200"],
}
Theme_config.center_bar = {
bg = color["Grey900"],
}
Theme_config.dock = {
element_bg = color["Grey900"],
element_focused_bg = color["Grey800"],
element_focused_hover_bg = color["Grey800"],
element_focused_hover_fg = color["Grey100"],
bg = color["Grey900"],
indicator_bg = color["Grey600"],
indicator_focused_bg = color["YellowA200"],
indicator_urgent_bg = color["RedA200"],
indicator_maximized_bg = color["GreenA200"],
indicator_bg_mindicator_minimized_bginimized = color["BlueA200"],
indicator_fullscreen_bg = color["PurpleA200"],
}
Theme_config.left_bar = {
bg = color["Grey900"],
}
Theme_config.powermenu = {
container_bg = "#21212188",
button_fg = color["Grey900"],
shutdown_button_bg = color["Blue200"],
reboot_button_bg = color["Red200"],
suspend_button_bg = color["Yellow200"],
lock_button_bg = color["Green200"],
logout_button_bg = color["Orange200"],
}
Theme_config.right_bar = {
bg = color["Grey900"],
}
Theme_config.titlebar = {
bg = "#121212AA",
close_button = {
border_color = "#00000000",
bg = "#00000000",
fg = color["Grey100"],
hover_border = color["Red800"],
hover_bg = color["Red800"] .. "bb",
hover_fg = color["Red800"],
},
minimize_button = {
border_color = "#00000000",
fg = color["Grey100"],
bg = "#00000000",
hover_border = color["Orange800"],
hover_fg = color["Orange800"],
hover_bg = color["Orange800"] .. "bb",
},
maximize_button = {
border_color = "#00000000",
fg = color["Grey100"],
bg = "#00000000",
hover_border = color["Green800"],
hover_fg = color["Green800"],
hover_bg = color["Green800"] .. "bb",
},
}
Theme_config.volume_controller = {
bg = color["Grey900"],
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(12))
end,
device_bg = color["Grey900"],
device_border_color = color["Grey800"],
device_border_width = dpi(2),
device_shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(4))
end,
device_headphones_fg = color["Purple200"],
device_microphone_fg = color["Blue200"],
device_headphones_selected_bg = color["Purple200"],
device_headphones_selected_fg = color["Grey900"],
device_microphone_selected_bg = color["Blue200"],
device_microphone_selected_fg = color["Grey900"],
device_headphones_selected_border_color = color["Purple200"],
device_microphone_selected_border_color = color["Blue200"],
device_headphones_selected_icon_color = color["Purple200"],
device_microphone_selected_icon_color = color["Blue200"],
device_icon_color = color["Grey900"],
list_border_color = color["Grey800"],
list_border_width = dpi(2),
list_shape = function(cr, width, height)
gears.shape.partially_rounded_rect(cr, width, height, false, false, true, true, dpi(4))
end,
list_bg = color["Grey800"],
list_headphones_fg = color["Purple200"],
list_microphone_fg = color["Blue200"],
selector_shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(4))
end,
volume_fg = color["Purple200"],
microphone_fg = color["Blue200"],
}
Theme_config.volume_osd = {
bg = color["Grey900"],
fg = color["Purple200"],
border_color = color["Grey800"],
border_width = dpi(4),
bar_bg_active = color["Purple200"],
bar_bg = color["Grey800"],
icon_color = color["Purple200"],
}
Theme_config.window_switcher = {
element_bg = color["Grey800"],
element_fg = color["Green200"],
border_color = color["Grey800"],
border_width = dpi(4),
bg = color["Grey900"],
selected_fg = color["CyanA200"],
selected_border_color = color["Purple200"],
selected_bg = "#313131"
}
Theme_config.application_launcher = {
bg = color["Grey900"],
border_color = color["Grey800"],
border_width = dpi(4),
application = {
border_color = color["Grey800"],
border_color_active = color["Purple200"],
border_width = dpi(2),
bg = "#313131",
fg = color["Grey100"],
hover_bg = color["Grey700"],
},
searchbar = {
bg = color["Grey900"],
fg = color["Grey100"],
fg_hint = color["Grey700"],
fg_cursor = color["Grey900"],
bg_cursor = color["Grey100"],
border_color = color["Grey800"],
border_width = dpi(2),
icon_color = color["Grey900"],
icon_background = color["LightBlue200"],
hover_bg = color["Grey800"],
hover_fg = color["Purple200"],
hover_border = color["Grey700"],
border_active = color["LightBlue200"],
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(4))
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
--[[
========================
=== General Settings ===
========================
Here are some general settings for borders, tooltips etc
]] --
--#region General Settings
Theme_config.window = {
border_width = dpi(2),
border_normal = color["Grey800"],
border_marked = color["Red200"],
useless_gap = dpi(5)
}
Theme_config.tooltip = {
bg = color["Grey900"],
fg = color["CyanA200"],
border_color = color["Grey800"],
border_width = dpi(4),
gaps = dpi(15),
shape = function(cr, width, heigth)
gears.shape.rounded_rect(cr, width, heigth, dpi(4))
end
}
Theme_config.hotkeys = {
bg = color["Grey900"],
fg = color["Grey100"],
border_color = color["Grey800"],
border_width = dpi(4),
shape = function(cr, width, heigth)
gears.shape.rounded_rect(cr, width, heigth, dpi(12))
end,
modifiers_fg = color["Cyan200"],
description_font = User_config.font.bold,
font = User_config.font.bold,
group_margin = dpi(20),
label_bg = color["Cyan200"],
label_fg = color["Grey900"],
}
--#endregion

View File

@@ -0,0 +1,306 @@
-------------------------------------------
-- 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_config = {
--[[
Autostart programms, shell commands etc.
Wrap shell commands into `bash -c ''`
Example:
Firefox: "firefox"
Custom Script: "bash -c 'myscript'"
Flatpak application: flatpak run com.example.App
]] --
autostart = {
"picom --experimental-backends",
"xfce4-power-manager",
"light-locker --lock-on-suspend --lock-on-lid &",
"/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1",
"setxkbmap -option caps:swapescape",
"protonmail-bridge"
},
--[[
The battery that should be displayed in the battery widget.
This can allow you to for example display your phone's battery
You can choose from one of these values (default is internal battery):
"UNKNOWN"
"LINE_POWER"
"TABLET"
"COMPUTER"
"GAMING_INPUT"
"LAST"
"BATTERY"
"UPS"
"MONITOR"
"MOUSE"
"KEYBOARD"
"PDA"
"PHONE"
"MEDIA_PLAYER"
More information at: https://lazka.github.io/pgi-docs/UPowerGlib-1.0/enums.html#UPowerGlib.DeviceKind.KEYBOARD
]] --
battery_kind = "BATTERY",
--[[
If your battery is not found you can specify its path here.
If you don't specify a path, then UPower will use the first it can find.
Example:
battery_path = "/org/freedesktop/UPower/devices/battery_BAT0"
]] --
battery_path = nil,
--[[
DnD or 'Do not Disturb' will prevent notifications from poping up.
This is just a default value, you can toggle it in the notification-center, but it won't be saved.
]] --
dnd = false,
--[[
Dock program size in dpi.
Example:
dock_size = dpi(48)
]] --
dock_icon_size = dpi(64),
--[[
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
]] --
energy_manager = "xfce4-power-manager-settings",
--[[
Your filemanager. Will be opened with <super> + <e>
]] --
file_manager = "thunar",
--[[
The font that will be used on all widgets/modules etc.
First is the regular font, second is the bold font and third the extra bold font.
Specify is used when I needed a custom font size/weight.
Example:
font = {
regular = "JetBrainsMono Nerd Font, 14",
bold = "JetBrainsMono Nerd Font, bold 14",
extrabold = "JetBrainsMono Nerd Font, ExtraBold 14",
specify = "JetBrainsMono Nerd Font"
}
]] font = {
regular = "JetBrainsMono Nerd Font, 14",
bold = "JetBrainsMono Nerd Font, bold 14",
extrabold = "JetBrainsMono Nerd Font, ExtraBold 14",
specify = "JetBrainsMono Nerd Font"
},
--[[
The icon theme name must be exactly as the folder is called
The folder can be in any $XDG_DATA_DIRS/icons/[icon_theme_name]
]] --
icon_theme = "Papirus-Dark",
-- List every Keyboard layout you use here comma seperated. (run localectl list-keymaps to list all averiable keymaps)
--[[
Keyboard layouts for the keyboard widget.
Specify every layout you want to use or leave it as is.
Example:
kblayout = { "de", "ru", "us" }
]] --
kblayout = { "de", "ru" },
--[[
This is a list of every layout you can use.
Remove every that you don't want to use.
]] --
layouts = {
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.floating,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.corner.nw,
awful.layout.suit.corner.ne,
awful.layout.suit.corner.sw,
awful.layout.suit.corner.se,
awful.layout.suit.magnifier,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.spiral.dwindle,
},
--[[
The modkey is <Super>(<Meta> or <Windows Key>) default
Run xmodmap -pm to see a list of all possible keys.
Example:
"mod1" <-- Is Alt_L
"mod2" <-- is Numlock
"mod3" <-- Nothing on my system
"mod4" <-- for the super/windows key
"mod5" <-- for the shift key
]] --
modkey = "Mod4",
--[[
This is the naming sheme used for the powermenu and maybe some other places in the future.
Example:
"userhost" <-- Will display "username@hostname"
"fullname" <-- Will display "Firstname Surname"
"?" <-- Will display "?"
]] --
namestyle = "userhost",
--[[
This is used to identify your network adapters.
Use this command `ip a` to get your lan or wlan name.
Example:
wlan = "wlo1",
ethernet = "eno1"
]] --
network = {
wlan = "wlo1",
ethernet = "eno1"
},
--[[
This is the program that will be executed when hitting the print key.
]] --
screenshot_program = "flameshot gui",
--[[
These are the status bar widgets which are to be found in the notification-center.
You can add or remove them to your linking, here is a full list:
"cpu_usage"
"cpu_temp"
"ram_usage"
"microphone"
"volume"
"gpu_temp"
"gpu_usage"
"battery"
"backlight"
]] --
status_bar_widgets = {
"cpu_usage",
"cpu_temp",
"ram_usage",
"microphone",
"volume",
"backlight",
"battery"
},
--[[
This is the default terminal, Alacritty is the default.
]] --
terminal = "alacritty",
--[[
Add every client that should get no titlebar.
Use xprop WM_ClASS to get the class of the window.
!Always use the right(second) string!
Example:
titlebar_exception = {
"firefox",
"discord",
"Spotify"
}
]] --
titlebar_exception = {},
--[[
The titlebar position can be "left" (default) or "top"
Example:
titlebar_position = "top"
]] --
titlebar_position = "top",
--[[
This is the path to your wallpaper.
home is $HOME, you can also use an absolute path.
]] --
wallpaper = home .. "/.config/awesome/src/assets/fuji.jpg",
--[[
This is the weather widget.
You can use the openweather api to get your city ID. https://home.openweathermap.org/api_keys
Example:
weather_api_key = "your_api_key",
weather_city_id = "your_city_id",
unit = "metric" or "imperial"
]] weather_secrets = {
key = "e71b00168ca7219563dde4514a425b14",
city_id = "2864118",
unit = "metric"
},
--[[
You can configure your bar's here, if you leave it empty the bar will not be shown.
If you have multiple monitors you can add [N] where N is to the table below to get a per screen configuration.
Here is a full list of every widget you can use:
Widgets:
"Audio" <-- Displays the volume and can show the Audio Menu
"Battery" <-- Displays the battery percentage
"Bluetooth" <-- Displays the bluetooth status and can open the Bluetooth Menu
"Clock" <-- Displays a clock
"Cpu Frequency" <-- Shows the CPU Frequency in MHz
"Cpu Temperature" <-- Shows the CPU Temperature in Celsius
"Cpu Usage" <-- Shows the CPU Usage in %
"Date" <-- Displays the current date
"Gpu Temperature" <-- Shows the GPU Temperature in Celsius
"Gpu Usage" <-- Shows the GPU Usage in %
"Keyboard Layout" <-- Shows the current keyboard layout and can open the Keyboard Menu
"Tiling Layout" <-- Shows the current tiling layout
"Network" <-- Shows the current network connection and strength and can open the Network Menu
"Power Button" <-- Opens the Session menu
"Ram Usage" <-- Shows the RAM Usage in x/y GB
"Systray" <-- Shows the systray
"Taglist" <-- Shows all tags per screen and their open programs
"Tasklist" <-- Shows all programs per tag
!The order goes from left to right!
]]
widgets = {
[1] = {
left_bar = {
"Tiling Layout",
"Systray",
"Taglist"
},
center_bar = {
"Tasklist"
},
right_bar = {
"Battery",
"Bluetooth",
"Audio",
"Keyboard Layout",
"Date",
"Clock",
"Power Button"
}
},
[2] = {
left_bar = {
"Tiling Layout",
"Taglist"
},
center_bar = {
"Tasklist"
},
right_bar = {
"Ram Usage",
"Audio",
"Keyboard Layout",
"Network",
"Date",
"Clock",
"Power Button"
}
}
}
}