diff --git a/home/.config/awesome/configurations/autostart b/home/.config/awesome/configurations/autostart new file mode 100644 index 0000000..f2b1028 --- /dev/null +++ b/home/.config/awesome/configurations/autostart @@ -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 📦" & + diff --git a/home/.config/awesome/themes/icons/other/pfp-3.jpg b/home/.config/awesome/themes/icons/other/pfp-3.jpg new file mode 100644 index 0000000..b778664 Binary files /dev/null and b/home/.config/awesome/themes/icons/other/pfp-3.jpg differ diff --git a/home/.config/awesome/ui/widgets/button.lua b/home/.config/awesome/ui/widgets/button.lua new file mode 100644 index 0000000..71648d9 --- /dev/null +++ b/home/.config/awesome/ui/widgets/button.lua @@ -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 = "" .. text .. "", + widget = wibox.widget.textbox + } + + textWidget:connect_signal("mouse::enter", function() + textWidget.markup = + "" .. text .. "" + end) + textWidget:connect_signal("mouse::leave", function() + textWidget.markup = "" .. text .. + "" + end) + + return textWidget +end + +return button \ No newline at end of file diff --git a/home/.config/awesome/ui/widgets/sidebar_button.lua b/home/.config/awesome/ui/widgets/sidebar_button.lua new file mode 100644 index 0000000..fe33d6e --- /dev/null +++ b/home/.config/awesome/ui/widgets/sidebar_button.lua @@ -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') diff --git a/home/.config/gtk-3.0/bookmarks b/home/.config/gtk-3.0/bookmarks new file mode 100644 index 0000000..6b0833b --- /dev/null +++ b/home/.config/gtk-3.0/bookmarks @@ -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 diff --git a/themes/sddm/faces/luca.face2.icon b/themes/sddm/faces/luca.face2.icon new file mode 100644 index 0000000..b778664 Binary files /dev/null and b/themes/sddm/faces/luca.face2.icon differ