Fixs
This commit is contained in:
parent
6f8acf2168
commit
bf06134e52
6 changed files with 196 additions and 0 deletions
42
home/.config/awesome/configurations/autostart
Normal file
42
home/.config/awesome/configurations/autostart
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
autostart="nm-applet xfce4-power-manager"
|
||||||
|
for program in $autostart; do
|
||||||
|
pidof -s "$program" || setsid -f "$program"
|
||||||
|
done >/dev/null 2>&1
|
||||||
|
|
||||||
|
# Applets :
|
||||||
|
#nm-applet &
|
||||||
|
#blueman-applet &
|
||||||
|
#volumeicon &
|
||||||
|
#xfce4-power-manager &
|
||||||
|
|
||||||
|
# Polkit :
|
||||||
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
|
|
||||||
|
# Keybord auto-repeat :
|
||||||
|
xset r rate 300 50 &
|
||||||
|
|
||||||
|
# Clipordmanager :
|
||||||
|
clipmenud &
|
||||||
|
|
||||||
|
# Wallpaper :
|
||||||
|
nitrogen --restore &
|
||||||
|
|
||||||
|
# conky
|
||||||
|
#killall conky &
|
||||||
|
#conky -c ~/.config/conky/Gotham/Gotham.conf &
|
||||||
|
#conky -c ~/.config/conky/Gotham/Gotham2.conf &
|
||||||
|
|
||||||
|
# Sevices info :
|
||||||
|
#echo "false" > /tmp/blue_light_state
|
||||||
|
|
||||||
|
# Compositor :
|
||||||
|
#autostart="picom"
|
||||||
|
#for program in $autostart; do
|
||||||
|
# pidof -s "$program" || setsid -f "$program"
|
||||||
|
#done >/dev/null 2>&1
|
||||||
|
|
||||||
|
# Updates :
|
||||||
|
#notify-send -t 8000 "You have $(checkupdates | wc -l) update 📦" &
|
||||||
|
|
BIN
home/.config/awesome/themes/icons/other/pfp-3.jpg
Normal file
BIN
home/.config/awesome/themes/icons/other/pfp-3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
108
home/.config/awesome/ui/widgets/button.lua
Normal file
108
home/.config/awesome/ui/widgets/button.lua
Normal file
|
@ -0,0 +1,108 @@
|
||||||
|
local wibox = require("wibox")
|
||||||
|
local beautiful = require("beautiful")
|
||||||
|
local dpi = beautiful.xresources.apply_dpi
|
||||||
|
local gears = require("gears")
|
||||||
|
|
||||||
|
local button = {}
|
||||||
|
|
||||||
|
button.create = function(image, size, radius, margin, bg, bg_hover, bg_press,
|
||||||
|
command)
|
||||||
|
local button_image = wibox.widget {
|
||||||
|
image = image,
|
||||||
|
forced_height = size,
|
||||||
|
forced_width = size,
|
||||||
|
widget = wibox.widget.imagebox
|
||||||
|
}
|
||||||
|
|
||||||
|
local button = wibox.widget {
|
||||||
|
{button_image, margins = dpi(margin), widget = wibox.container.margin},
|
||||||
|
bg = bg,
|
||||||
|
shape = function(cr, width, height)
|
||||||
|
gears.shape.rounded_rect(cr, width, height, dpi(radius))
|
||||||
|
end,
|
||||||
|
widget = wibox.container.background
|
||||||
|
}
|
||||||
|
|
||||||
|
button:connect_signal("button::press", function()
|
||||||
|
button.bg = bg_press
|
||||||
|
command()
|
||||||
|
end)
|
||||||
|
|
||||||
|
button:connect_signal("button::leave", function() button.bg = bg end)
|
||||||
|
button:connect_signal("mouse::enter", function() button.bg = bg_hover end)
|
||||||
|
button:connect_signal("mouse::leave", function() button.bg = bg end)
|
||||||
|
|
||||||
|
button.update_image = function(image) button_image.image = image end
|
||||||
|
|
||||||
|
return button
|
||||||
|
end
|
||||||
|
|
||||||
|
button.create_widget = function(widget, command)
|
||||||
|
local button = wibox.widget {
|
||||||
|
{widget, margins = dpi(10), widget = wibox.container.margin},
|
||||||
|
bg = beautiful.bg_normal,
|
||||||
|
shape = function(cr, width, height)
|
||||||
|
gears.shape.rounded_rect(cr, width, height, dpi(10))
|
||||||
|
end,
|
||||||
|
widget = wibox.container.background
|
||||||
|
}
|
||||||
|
|
||||||
|
button:connect_signal("button::press", function()
|
||||||
|
button.bg = beautiful.bg_very_light
|
||||||
|
command()
|
||||||
|
end)
|
||||||
|
|
||||||
|
button:connect_signal("button::leave",
|
||||||
|
function() button.bg = beautiful.bg_normal end)
|
||||||
|
button:connect_signal("mouse::enter",
|
||||||
|
function() button.bg = beautiful.bg_light end)
|
||||||
|
button:connect_signal("mouse::leave",
|
||||||
|
function() button.bg = beautiful.bg_normal end)
|
||||||
|
|
||||||
|
return button
|
||||||
|
end
|
||||||
|
|
||||||
|
button.create_image = function(image, image_hover)
|
||||||
|
local image_widget = wibox.widget {
|
||||||
|
image = image,
|
||||||
|
widget = wibox.widget.imagebox
|
||||||
|
}
|
||||||
|
|
||||||
|
image_widget:connect_signal("mouse::enter",
|
||||||
|
function() image_widget.image = image_hover end)
|
||||||
|
image_widget:connect_signal("mouse::leave",
|
||||||
|
function() image_widget.image = image end)
|
||||||
|
|
||||||
|
return image_widget
|
||||||
|
end
|
||||||
|
|
||||||
|
button.create_image_onclick = function(image, image_hover, onclick)
|
||||||
|
local image = button.create_image(image, image_hover)
|
||||||
|
|
||||||
|
local container = wibox.widget {image, widget = wibox.container.background}
|
||||||
|
|
||||||
|
container:connect_signal("button::press", onclick)
|
||||||
|
|
||||||
|
return container
|
||||||
|
end
|
||||||
|
|
||||||
|
button.create_text = function(color, color_hover, text, font)
|
||||||
|
local textWidget = wibox.widget {
|
||||||
|
font = font,
|
||||||
|
markup = "<span foreground='" .. color .. "'>" .. text .. "</span>",
|
||||||
|
widget = wibox.widget.textbox
|
||||||
|
}
|
||||||
|
|
||||||
|
textWidget:connect_signal("mouse::enter", function()
|
||||||
|
textWidget.markup =
|
||||||
|
"<span foreground='" .. color_hover .. "'>" .. text .. "</span>"
|
||||||
|
end)
|
||||||
|
textWidget:connect_signal("mouse::leave", function()
|
||||||
|
textWidget.markup = "<span foreground='" .. color .. "'>" .. text ..
|
||||||
|
"</span>"
|
||||||
|
end)
|
||||||
|
|
||||||
|
return textWidget
|
||||||
|
end
|
||||||
|
|
||||||
|
return button
|
41
home/.config/awesome/ui/widgets/sidebar_button.lua
Normal file
41
home/.config/awesome/ui/widgets/sidebar_button.lua
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
-- ## Sidebar button ##
|
||||||
|
-- ~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
-- Requirements :
|
||||||
|
-- ~~~~~~~~~~~~~~
|
||||||
|
local gears = require("gears")
|
||||||
|
local awful = require("awful")
|
||||||
|
local wibox = require("wibox")
|
||||||
|
local beautiful = require('beautiful')
|
||||||
|
local dpi = require('beautiful').xresources.apply_dpi
|
||||||
|
local sidebar = require("ui.sidebar")
|
||||||
|
|
||||||
|
|
||||||
|
local sidebar_icon = wibox.widget{
|
||||||
|
markup = "",
|
||||||
|
font = theme.taglist_font,
|
||||||
|
valign = "center",
|
||||||
|
align = "center",
|
||||||
|
widget = wibox.widget.textbox
|
||||||
|
}
|
||||||
|
|
||||||
|
--sidebar_icon:buttons{gears.table.join(
|
||||||
|
-- awful.button({ }, 1, function ()
|
||||||
|
-- sidebar.toggle(s)
|
||||||
|
-- end)
|
||||||
|
--)}
|
||||||
|
sidebar_icon:connect_signal(
|
||||||
|
"button::press",
|
||||||
|
function()
|
||||||
|
sidebar_icon.opacity = 0.6
|
||||||
|
sidebar.toggle(s)
|
||||||
|
end)
|
||||||
|
sidebar_icon:connect_signal(
|
||||||
|
"button::release",
|
||||||
|
function()
|
||||||
|
sidebar_icon.opacity = 1
|
||||||
|
end)
|
||||||
|
|
||||||
|
--return sidebar_icon
|
||||||
|
return awful.widget.only_on_screen(sidebar_icon, 'primary')
|
5
home/.config/gtk-3.0/bookmarks
Normal file
5
home/.config/gtk-3.0/bookmarks
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
file:///home/luca/Documents Documents
|
||||||
|
file:///home/luca/Downloads Downloads
|
||||||
|
file:///home/luca/Music Music
|
||||||
|
file:///home/luca/Pictures Pictures
|
||||||
|
file:///home/luca/Videos Videos
|
BIN
themes/sddm/faces/luca.face2.icon
Normal file
BIN
themes/sddm/faces/luca.face2.icon
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
Loading…
Add table
Add a link
Reference in a new issue