Reworked a whole lot. New config file and theme config file for easier changes. Did #19. And much more
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
-----------------------------------------------------
|
||||
|
||||
return {
|
||||
['White'] = '#ffffffdd',
|
||||
['White'] = '#ffffff',
|
||||
['Black'] = '#000000',
|
||||
|
||||
['Grey50'] = '#fafafa',
|
||||
|
||||
@@ -9,28 +9,67 @@
|
||||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
local gears = require("gears")
|
||||
local color = require("src.theme.colors")
|
||||
local dpi = require("beautiful.xresources").apply_dpi
|
||||
|
||||
Theme_path = awful.util.getdir("config") .. "/src/theme/"
|
||||
Theme = {}
|
||||
|
||||
dofile(Theme_path .. "theme_variables.lua")
|
||||
--dofile(Theme_path .. "theme_config.lua")
|
||||
|
||||
-- Default font, change it in user_config, not here.
|
||||
Theme.font = User_config.font.bold
|
||||
|
||||
--#region Client variables
|
||||
Theme.useless_gap = dpi(5)
|
||||
Theme.border_width = dpi(0)
|
||||
Theme.border_normal = color["Grey800"]
|
||||
Theme.border_marked = color["Red200"]
|
||||
--#endregion
|
||||
|
||||
--#region Tooltip variables
|
||||
Theme.tooltip_border_color = color["Grey800"]
|
||||
Theme.tooltip_bg = color["Grey900"]
|
||||
Theme.tooltip_fg = color["CyanA200"]
|
||||
Theme.tooltip_border_width = dpi(4)
|
||||
Theme.tooltip_gaps = dpi(15)
|
||||
Theme.tooltip_shape = function(cr, width, heigth)
|
||||
gears.shape.rounded_rect(cr, width, heigth, dpi(4))
|
||||
end
|
||||
--#endregion
|
||||
|
||||
--#region Hotkeys variables
|
||||
Theme.hotkeys_bg = color["Grey900"]
|
||||
Theme.hotkeys_fg = color["White"]
|
||||
Theme.hotkeys_border_width = dpi(4)
|
||||
Theme.hotkeys_border_color = color["Grey800"]
|
||||
Theme.hotkeys_shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, dpi(12))
|
||||
end
|
||||
Theme.hotkeys_modifiers_fg = color["Cyan200"]
|
||||
Theme.hotkeys_description_font = User_config.font.bold
|
||||
Theme.hotkeys_font = User_config.font.bold
|
||||
Theme.hotkeys_group_margin = dpi(20)
|
||||
Theme.hotkeys_label_bg = color["Cyan200"]
|
||||
Theme.hotkeys_label_fg = color["Grey900"]
|
||||
--#endregion
|
||||
|
||||
Theme.awesome_icon = Theme_path .. "../assets/icons/ArchLogo.png"
|
||||
Theme.awesome_subicon = Theme_path .. "../assets/icons/ArchLogo.png"
|
||||
|
||||
-- Wallpaper
|
||||
beautiful.wallpaper = user_vars.wallpaper
|
||||
beautiful.wallpaper = User_config.wallpaper
|
||||
screen.connect_signal(
|
||||
'request::wallpaper',
|
||||
function(s)
|
||||
if beautiful.wallpaper then
|
||||
if type(beautiful.wallpaper) == 'string' then
|
||||
gears.wallpaper.maximized(beautiful.wallpaper, s)
|
||||
else
|
||||
beautiful.wallpaper(s)
|
||||
if beautiful.wallpaper then
|
||||
if type(beautiful.wallpaper) == 'string' then
|
||||
gears.wallpaper.maximized(beautiful.wallpaper, s)
|
||||
else
|
||||
beautiful.wallpaper(s)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
beautiful.init(Theme)
|
||||
|
||||
263
awesome/src/theme/theme_config.lua
Normal file
263
awesome/src/theme/theme_config.lua
Normal file
@@ -0,0 +1,263 @@
|
||||
-- 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"],
|
||||
}
|
||||
|
||||
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"],
|
||||
}
|
||||
|
||||
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["White"]
|
||||
}
|
||||
|
||||
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["White"],
|
||||
bg_urgent = color["RedA200"],
|
||||
fg_urgent = color["Grey900"],
|
||||
bg_focus = color["White"],
|
||||
bg_focus_pressed = "#dddddd",
|
||||
bg_focus_hover = color["White"],
|
||||
fg_focus = color["Grey900"],
|
||||
}
|
||||
|
||||
Theme_config.tasklist = {
|
||||
bg = "#3A475C",
|
||||
fg = color["White"],
|
||||
bg_urgent = color["RedA200"],
|
||||
fg_urgent = color["Grey900"],
|
||||
bg_focus = color["White"],
|
||||
bg_focus_pressed = "#dddddd",
|
||||
bg_focus_hover = color["White"],
|
||||
fg_focus = color["Grey900"],
|
||||
}
|
||||
--#endregion
|
||||
|
||||
--[[
|
||||
=======================
|
||||
=== Module Settings ===
|
||||
=======================
|
||||
|
||||
Here you can customize the modules.
|
||||
For functional changes visit the user_config.lua
|
||||
|
||||
]] --
|
||||
|
||||
Theme_config.notification_center = {
|
||||
bg = color["Grey900"],
|
||||
|
||||
-- Clear all button
|
||||
clear_all_button = {
|
||||
bg = color["Blue200"],
|
||||
fg = color["Grey900"],
|
||||
},
|
||||
|
||||
-- DnD button
|
||||
dnd = {
|
||||
|
||||
},
|
||||
|
||||
-- Notification_list
|
||||
notification_list = {
|
||||
|
||||
},
|
||||
|
||||
-- Profile widget
|
||||
profile = {
|
||||
|
||||
},
|
||||
|
||||
-- Song info widget
|
||||
song_info = {
|
||||
|
||||
},
|
||||
-- Spacing line widget
|
||||
spacing_line = {
|
||||
|
||||
},
|
||||
|
||||
-- Status bar widgets
|
||||
status_bar = {
|
||||
|
||||
},
|
||||
|
||||
-- Time Date widget
|
||||
time_date = {
|
||||
|
||||
},
|
||||
|
||||
-- Weather widget
|
||||
weather = {
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
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.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.titlebar = {
|
||||
bg = "#121212AA",
|
||||
close_button_bg = color["Red200"],
|
||||
close_button_fg = color["Grey900"],
|
||||
minimize_button_bg = color["Yellow200"],
|
||||
minimize_button_fg = color["Grey900"],
|
||||
maximize_button_bg = color["Green200"],
|
||||
maximize_button_fg = color["Grey900"],
|
||||
|
||||
}
|
||||
|
||||
Theme_config.volume_controller = {
|
||||
|
||||
}
|
||||
|
||||
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["CyanA200"],
|
||||
border_color = color["Grey800"],
|
||||
border_width = dpi(4),
|
||||
bg = color["Grey900"],
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
------------------------------------------------------------------------------------------
|
||||
-- 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["Grey800"]
|
||||
Theme.tooltip_bg = color["Grey900"]
|
||||
Theme.tooltip_fg = color["YellowA200"]
|
||||
Theme.tooltip_border_width = dpi(4)
|
||||
Theme.tooltip_gaps = dpi(15)
|
||||
Theme.tooltip_shape = function(cr, width, heigth)
|
||||
gears.shape.rounded_rect(cr, width, heigth, 5)
|
||||
end
|
||||
|
||||
Theme.notification_spacing = dpi(20)
|
||||
|
||||
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 = layout_path .. "floating.svg"
|
||||
Theme.layout_tile = layout_path .. "tile.svg"
|
||||
Theme.layout_dwindle = layout_path .. "dwindle.svg"
|
||||
Theme.layout_fairh = layout_path .. "fairh.svg"
|
||||
Theme.layout_fairv = layout_path .. "fairv.svg"
|
||||
Theme.layout_fullscreen = layout_path .. "fullscreen.svg"
|
||||
Theme.layout_max = layout_path .. "max.svg"
|
||||
Theme.layout_cornerne = layout_path .. "cornerne.svg"
|
||||
Theme.layout_cornernw = layout_path .. "cornernw.svg"
|
||||
Theme.layout_cornerse = layout_path .. "cornerse.svg"
|
||||
Theme.layout_cornersw = layout_path .. "cornersw.svg"
|
||||
329
awesome/src/theme/user_config.lua
Normal file
329
awesome/src/theme/user_config.lua
Normal file
@@ -0,0 +1,329 @@
|
||||
-------------------------------------------
|
||||
-- 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 &",
|
||||
"flatpak run com.spotify.Client",
|
||||
"discord",
|
||||
"/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1",
|
||||
"setxkbmap -option caps:swapescape",
|
||||
"whatsdesk"
|
||||
},
|
||||
|
||||
--[[
|
||||
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 = "LINE_POWER",
|
||||
|
||||
--[[
|
||||
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(50)
|
||||
]] --
|
||||
dock_icon_size = dpi(50),
|
||||
|
||||
--[[
|
||||
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",
|
||||
"firefox.desktop",
|
||||
"steam.desktop",
|
||||
"discord.desktop",
|
||||
"com.spotify.Client.desktop",
|
||||
"code.desktop",
|
||||
"arduino-arduinoide.desktop",
|
||||
"us.zoom.Zoom.desktop",
|
||||
"thunderbird.desktop",
|
||||
"com.mattermost.Desktop.desktop",
|
||||
"blender.desktop",
|
||||
"freecad.desktop",
|
||||
"The Witcher 3 Wild Hunt.desktop",
|
||||
"windows_11.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
|
||||
]] --
|
||||
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",
|
||||
"gpu_temp",
|
||||
"gpu_usage"
|
||||
},
|
||||
|
||||
--[[
|
||||
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 = {},
|
||||
|
||||
--[[
|
||||
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 = {
|
||||
"Gpu Usage",
|
||||
"Gpu Temperature",
|
||||
"Cpu Usage",
|
||||
"Cpu Temperature",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,138 +0,0 @@
|
||||
-------------------------------------------
|
||||
-- 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 = {
|
||||
|
||||
-- The battery that should be displayed in the battery widget.
|
||||
--[[
|
||||
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",
|
||||
|
||||
-- Here you can specify a battery to use. e.g. "/org/freedesktop/UPower/devices/battery_BAT0"
|
||||
-- Default is nil (use the internal battery)
|
||||
battery_path = nil,
|
||||
|
||||
-- This is opened when clicked on the battery icon, set it to whatever you like
|
||||
energy_manager = "xfce4-power-manager-settings",
|
||||
|
||||
-- Uses the openweather api https://home.openweathermap.org/api_keys
|
||||
-- City ID is also from there
|
||||
weather_secrets = {
|
||||
key = "",
|
||||
city_id = "",
|
||||
unit = "metric" -- "metric" or "imperial"
|
||||
},
|
||||
|
||||
-- Do not Disturb will turn off all notifications but keep the notification-list in the notification-center
|
||||
dnd = false,
|
||||
|
||||
-- Autotiling layouts
|
||||
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,
|
||||
},
|
||||
|
||||
-- Icon theme from /usr/share/icons
|
||||
icon_theme = "Papirus-Dark",
|
||||
|
||||
-- Write the terminal command to start anything here
|
||||
autostart = {
|
||||
"",
|
||||
},
|
||||
|
||||
-- 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",
|
||||
specify = "JetBrainsMono Nerd Font"
|
||||
},
|
||||
|
||||
-- This is your default Terminal
|
||||
terminal = "alacritty",
|
||||
|
||||
-- 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 = "thunar",
|
||||
|
||||
-- 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 (look in .local/share/applications for the .desktop file, that will contain the number you need)
|
||||
-- {"394360", "Name", true} true will tell the func that it's a steam game
|
||||
-- Use xprop | grep WM_CLASS and use the *SECOND* string
|
||||
-- { WM_CLASS, program, name, user_icon, isSteam }
|
||||
dock_programs = {
|
||||
{ "Alacritty", "alacritty", "Alacritty" },
|
||||
{ "firefox", "firefox", "Firefox" },
|
||||
{ "discord", "discord", "Discord" },
|
||||
{ "Spotify", "flatpak run com.spotify.Client", "Spotify" },
|
||||
{ "Code", "code", "Visual Studio Code" },
|
||||
{ "processing-app-Base", "arduino", "Arduino IDE" },
|
||||
{ "Zoom", "flatpak run us.zoom.Zoom", "Zoom" },
|
||||
{ "Thunderbird", "thunderbird", "Thunderbird" },
|
||||
{ "Mattermost", "mattermost-desktop", "Mattermost" },
|
||||
{ "Blender", "blender", "Blender" },
|
||||
{ "Steam", "steam", "Steam" },
|
||||
{ "FreeCAD", "freecad", "FreeCAD" },
|
||||
{ "Thunar", "thunar", "Dateien" },
|
||||
{ "Windows", "virsh start Windows_11", "Windows 11", "/home/crylia/Bilder/windows.png", false, 50 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user