From 1f26d560fe7ab095ee8366d8384cbe0a2cbf0eb0 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 13 Sep 2018 16:54:24 +0200 Subject: [PATCH] Some work --- Xdefaults | 69 -------------------------------- awesome/background_widget.lua | 22 ++++++++++ awesome/rc.lua | 4 ++ awesome/themes/default/theme.lua | 12 +++--- 4 files changed, 32 insertions(+), 75 deletions(-) delete mode 100644 Xdefaults create mode 100644 awesome/background_widget.lua diff --git a/Xdefaults b/Xdefaults deleted file mode 100644 index 2afbf74..0000000 --- a/Xdefaults +++ /dev/null @@ -1,69 +0,0 @@ -! Xcursor.theme: whiteglass -! Xcursor.size: 16 - -! Urxvt Settings - -! Pas de barre de défilement -URxvt*scrollBar: False - -! Couleur d'arrière plan noir -URxvt*background: black - -! Couleur d'avant plan blanc -URxvt*foreground: white - -! Dimension du terminal -! URxvt*geometry: 120x40 - -! Lien cliquable -! Valeur possible pour l'option matcher button: 1=clic gauche, 2= clic milieu, 3=clic droit -! URxvt.perl-ext-common: default,matcher -! URxvt.urlLauncher: chromium -! URxvt.matcher.button: 3 - -! Prise en charge des onglets -! shift+bas ou clic sur NEW= ouvrir nouvel onglet, -! shift + fleche gauche/droite=navigation dans les onglets. -! ctrl + fleche gauche/droite= deplacement onglet -! ctrl+d ou taper exit = fermer onglet/terminal -! URxvt.perl-ext-common: default,tabbed -! URxvt.font: xft:Inconsolata-g for Powerline:size=13:antialias=true -! URxvt.font: xft:Inconsolata-g for Powerline:size=14:antialias=true -! URxvt.font: xft:Anonymice Powerline:size=14:antialias=true -! URxvt.font: xft:DejaVu Sans Mono for Powerline:size=12 -URxvt.font: xft:Ubuntu Mono derivative Powerline:antialias=true:size=14 -! URxvt.font: xft:Sauce Code Powerline Black:antialias=true:size=14 -! URxvt.font: xft:Monofur for Powerline:antialias=true:size=14 -! URxvt.font: xft:Monaco for Powerline:antialias=true:size=12 -! URxvt*font: xft:Terminess Powerline:size=14 -! URxvt.letterSpace: -1 -! URxvt.font: xft:Comic Sans MS:antialias=true:size=10 - -urxvt*depth: 32 -! urxvt.transparent:true -! URxvt*backgroundPixmap: /home/thomas/Pictures/Wallpapers/archwithout.png;style=tiled - -! Keycode fixes for Ctrl+direction in Vim -URxvt.keysym.C-Up: \033[1;5A -URxvt.keysym.C-Down: \033[1;5B -URxvt.keysym.C-Right: \033[1;5C -URxvt.keysym.C-Left: \033[1;5D -URxvt.keysym.C-Prior: \033[5;5~ -URxvt.keysym.C-Next: \033[6;5~ -URxvt.keysym.C-Home: \033[7;5~ -URxvt.keysym.C-End: \033[8;5~ - -URxvt.perl-ext-common: default,clipboard,new-window -URxvt*iso14755: False -URxvt*iso14755_52: False -URxvt.keysym.Shift-Control-C: perl:clipboard:copy -URxvt.keysym.Shift-Control-V: perl:clipboard:paste -URxvt.keysym.Shift-Control-E: perl:new-window -URxvt.clipboard.copycmd: xsel -ib -URxvt.clipboard.pastecmd: xsel -ob - -urxvt*scrollTtyOutput: false -urxvt*scrollTtyKeypress: true - -URxvt*color12: rgb:5c/5c/ff -URxvt.letterSpace: -1 diff --git a/awesome/background_widget.lua b/awesome/background_widget.lua new file mode 100644 index 0000000..f2338c6 --- /dev/null +++ b/awesome/background_widget.lua @@ -0,0 +1,22 @@ +local wibox = require('wibox') +local awful = require('awful') + +function add_background_widget(s) + + background_widget = awful.wibar({ + screen = s, + height = s.geometry.height, + bg = "#00000000", + }) + + local text = wibox.widget.textbox("Hello to you") + text.point = { x = 75, y = 200 } + + background_widget:setup { + layout = wibox.layout.manual, + text, + } + + background_widget:struts({left=0, right=0, top=0, bottom=0}) + +end diff --git a/awesome/rc.lua b/awesome/rc.lua index 8d02958..e7d9e2d 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -222,6 +222,7 @@ local volume = require('volume') local calendar = require('calendar') local launchbar = require('launchbar') local music = require('music') +local background = require('background_widget') local delimiter = wibox.widget.textbox(" | ") local function set_wallpaper(s) @@ -293,6 +294,9 @@ awful.screen.connect_for_each_screen(function(s) s.mylayoutbox, }, } + + add_background_widget(s) + end) -- }}} diff --git a/awesome/themes/default/theme.lua b/awesome/themes/default/theme.lua index a3f40a0..b1e2e4c 100644 --- a/awesome/themes/default/theme.lua +++ b/awesome/themes/default/theme.lua @@ -6,13 +6,13 @@ local theme = {} theme.font = "sans 8" -theme.bg_normal = "#222222" -theme.bg_focus = "#535d6c" -theme.bg_urgent = "#ff0000" -theme.bg_minimize = "#444444" +theme.bg_normal = "#22222299" +theme.bg_focus = "#535d6c99" +theme.bg_urgent = "#ff000099" +theme.bg_minimize = "#44444499" theme.bg_systray = theme.bg_normal -theme.fg_normal = "#aaaaaa" +theme.fg_normal = "#cccccc" theme.fg_focus = "#ffffff" theme.fg_urgent = "#ffffff" theme.fg_minimize = "#ffffff" @@ -76,7 +76,7 @@ theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/def theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png" theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png" -theme.wallpaper = "/usr/share/awesome/themes/default/background.png" +theme.wallpaper = "/home/thomas/Pictures/Wallpapers/arch-1920x1080.png" -- You can use your own layout icons like this: theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"