diff --git a/.alacritty.yml b/.alacritty.yml index a0b9c91..9ad0448 100644 --- a/.alacritty.yml +++ b/.alacritty.yml @@ -15,13 +15,13 @@ font: family: Source Code Pro style: Bold Italic - size: 10 + size: 9.5 # Colors (Molokai Dark) colors: # Default colors primary: - background: '#001359' + background: '#000020' foreground: '#F8F8F2' normal: @@ -47,5 +47,6 @@ colors: key_bindings: - { key: F11, action: ToggleFullscreen } -# window: -# decorations: None +window: + window.dynamic_padding: true + opacity: 0.5 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c9c0a66 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "awesome/lain"] + path = awesome/lain + url = https://github.com/lcpz/lain diff --git a/awesome/components/pastel/top-panel.lua b/awesome/components/pastel/top-panel.lua index 91f19f7..41d113e 100644 --- a/awesome/components/pastel/top-panel.lua +++ b/awesome/components/pastel/top-panel.lua @@ -13,8 +13,11 @@ local awful = require("awful") local beautiful = require("beautiful") local wibox = require("wibox") +local theme = require("theme") local gears = require("gears") +local lain = require("lain") local dpi = beautiful.xresources.apply_dpi +local icons = gears.filesystem.get_configuration_dir() .. "/icons/top-panel/" -- import widgets local task_list = require("widgets.task-list") @@ -28,6 +31,21 @@ local top_panel = {} -- =================================================================== +local updates_indicator = wibox.widget{ + { + layout = wibox.layout.fixed.horizontal, + { + { + widget = awful.widget.watch('bash -c "checkupdates | wc -l"', 360), + }, + top = 4, bottom = 4, left = 10, right = 10, + widget = wibox.container.margin + }, + wibox.widget.textbox(' Updates '), + }, + widget = wibox.container.background +} + top_panel.create = function(s) local panel = awful.wibar({ screen = s, @@ -35,6 +53,7 @@ top_panel.create = function(s) ontop = true, height = beautiful.top_panel_height, width = s.geometry.width, + bg = beautiful.bg_normal .. "99" }) panel:setup { @@ -45,10 +64,24 @@ top_panel.create = function(s) { layout = wibox.layout.fixed.horizontal, wibox.layout.margin(wibox.widget.systray(), dpi(5), dpi(5), dpi(5), dpi(5)), - require("widgets.bluetooth"), - require("widgets.network")(), - require("widgets.battery"), - wibox.layout.margin(require("widgets.layout-box"), dpi(5), dpi(5), dpi(5), dpi(5)) + updates_indicator, + wibox.widget.textbox(' | '), + lain.widget.mem({ + settings = function() + widget:set_markup(lain.util.markup.font(theme.font, " " .. mem_now.used .. " MB ")) + end, + }), + wibox.widget.textbox(' | '), + lain.widget.cpu({ + settings = function() + widget:set_markup(lain.util.markup.font(theme.font, " " .. cpu_now.usage .. "% ")) + end, + }), + wibox.widget.textbox(' | '), + awful.widget.watch('bash -c "sensors | grep Tctl | cut -f 10 -d \' \' | cut -c 2-"', 5), + wibox.widget.textbox(' | '), + wibox.layout.margin(require("widgets.layout-box"), dpi(5), dpi(5), dpi(5), dpi(5)), + wibox.widget.textbox(' '), } } @@ -69,6 +102,14 @@ top_panel.create = function(s) client.connect_signal("property::fullscreen", change_panel_visibility) client.connect_signal("focus", change_panel_visibility) + updates_indicator:connect_signal("button::press", function(c, _, _, button) + awful.spawn('kitty --single-instance -e bash -c "yay ; echo \'\nDone, press any key to exit...\' ; read"') + end) + + updates_indicator:connect_signal("mouse::enter", function(c) c:set_bg(theme.bg_normal .. "99") end) + updates_indicator:connect_signal("mouse::leave", function(c) c:set_bg(theme.bg_normal .. "20") end) + + end return top_panel diff --git a/awesome/components/pastel/wallpaper.lua b/awesome/components/pastel/wallpaper.lua index d6b48dd..21e3515 100644 --- a/awesome/components/pastel/wallpaper.lua +++ b/awesome/components/pastel/wallpaper.lua @@ -20,82 +20,7 @@ local naughty = require("naughty") -- =================================================================== -local is_blurred = false; - local wallpaper_dir = gears.filesystem.get_configuration_dir() .. "/wallpaper" local wallpaper = wallpaper_dir .. "/wallpaper.png" -local blurred_wallpaper = wallpaper_dir .. "/blurredWallpaper.png" awful.spawn.with_shell("feh --bg-fill " .. wallpaper) - ---- Check if a file or directory exists in this path -local function exists(file) - local ok, err, code = os.rename(file, file) - if not ok then - if code == 13 then - -- Permission denied, but it exists - return true - end - end - return ok, err -end - --- check if blurred wallpaper needs to be created -if not exists(blurred_wallpaper) then - naughty.notify({ - preset = naughty.config.presets.normal, - title = "Wallpaper", - text = "Generating blurred wallpaper..." - }) - -- uses image magick to create a blurred version of the wallpaper - awful.spawn.with_shell("convert -filter Gaussian -blur 0x30 " .. wallpaper .. " " .. blurred_wallpaper) -end - - --- =================================================================== --- Functionality --- =================================================================== - - --- changes to blurred wallpaper -local function blur() - if not is_blurred then - awful.spawn.with_shell("feh --bg-fill " .. blurred_wallpaper) - is_blurred = true - end -end - --- changes to normal wallpaper -local function unblur() - if is_blurred then - awful.spawn.with_shell("feh --bg-fill " .. wallpaper) - is_blurred = false - end -end - --- blur / unblur on tag change -tag.connect_signal("property::selected", function(t) - -- check if tag has any clients - for _ in pairs(t:clients()) do - blur() - return - end - -- unblur if tag has no clients - unblur() -end) - --- check if wallpaper should be blurred on client open -client.connect_signal("manage", function(c) - blur() -end) - --- check if wallpaper should be unblurred on client close -client.connect_signal("unmanage", function(c) - local t = awful.screen.focused().selected_tag - -- check if tag has any clients - for _ in pairs(t:clients()) do - return - end - -- unblur if tag has no clients - unblur() -end) diff --git a/awesome/components/volume-adjust.lua b/awesome/components/volume-adjust.lua index e34b398..e456e5c 100644 --- a/awesome/components/volume-adjust.lua +++ b/awesome/components/volume-adjust.lua @@ -28,10 +28,6 @@ local icon_dir = gears.filesystem.get_configuration_dir() .. "/icons/volume/" .. -- =================================================================== -local volume_icon = wibox.widget { - widget = wibox.widget.imagebox -} - -- create the volume_adjust component local volume_adjust = wibox({ screen = awful.screen.focused(), @@ -59,13 +55,10 @@ volume_adjust:setup { wibox.container.margin( volume_bar, dpi(14), dpi(20), dpi(20), dpi(20) ), - forced_height = offsety * 0.75, + forced_height = offsety, direction = "east", layout = wibox.container.rotate }, - wibox.container.margin( - volume_icon - ) } -- create a 4 second timer to hide the volume adjust @@ -87,13 +80,6 @@ awesome.connect_signal("volume_change", function(stdout) local volume_level = tonumber(stdout) volume_bar.value = volume_level - if (volume_level > 40) then - volume_icon:set_image(icon_dir .. "volume.png") - elseif (volume_level > 0) then - volume_icon:set_image(icon_dir .. "volume-low.png") - else - volume_icon:set_image(icon_dir .. "volume-off.png") - end end, false ) diff --git a/awesome/configuration/alacritty.yml b/awesome/configuration/alacritty.yml deleted file mode 100644 index 3443896..0000000 --- a/awesome/configuration/alacritty.yml +++ /dev/null @@ -1,560 +0,0 @@ -# Configuration for Alacritty, the GPU enhanced terminal emulator. - -# Any items in the `env` entry below will be added as -# environment variables. Some entries may override variables -# set by alacritty itself. -#env: - # TERM variable - # - # This value is used to set the `$TERM` environment variable for - # each instance of Alacritty. If it is not present, alacritty will - # check the local terminfo database and use `alacritty` if it is - # available, otherwise `xterm-256color` is used. - #TERM: alacritty - -window: - # Window dimensions (changes require restart) - # - # Specified in number of columns/lines, not pixels. - # If both are `0`, this setting is ignored. - #dimensions: - # columns: 0 - # lines: 0 - - # Window position (changes require restart) - # - # Specified in number of pixels. - # If the position is not set, the window manager will handle the placement. - #position: - # x: 0 - # y: 0 - - # Window padding (changes require restart) - # - # Blank space added around the window in pixels. This padding is scaled - # by DPI and the specified value is always added at both opposing sides. - padding: - x: 10 - y: 15 - - # Spread additional padding evenly around the terminal content. - #dynamic_padding: false - - # Window decorations - # - # Values for `decorations`: - # - full: Borders and title bar - # - none: Neither borders nor title bar - # - # Values for `decorations` (macOS only): - # - transparent: Title bar, transparent background and title bar buttons - # - buttonless: Title bar, transparent background, but no title bar buttons - #decorations: full - - # Startup Mode (changes require restart) - # - # Values for `startup_mode`: - # - Windowed - # - Maximized - # - Fullscreen - # - # Values for `startup_mode` (macOS only): - # - SimpleFullscreen - #startup_mode: Windowed - - # Window title - #title: Alacritty - - # Window class (Linux/BSD only): - #class: - # Application instance name - #instance: Alacritty - # General application class - #general: Alacritty - - # GTK theme variant (Linux/BSD only) - # - # Override the variant of the GTK theme. Commonly supported values are `dark` and `light`. - # Set this to `None` to use the default theme variant. - #gtk_theme_variant: None - -#scrolling: - # Maximum number of lines in the scrollback buffer. - # Specifying '0' will disable scrolling. - #history: 10000 - - # Number of lines the viewport will move for every line scrolled when - # scrollback is enabled (history > 0). - #multiplier: 3 - -# Font configuration -font: - # Normal (roman) font face - normal: - # Font family - # - # Default: - # - (macOS) Menlo - # - (Linux/BSD) monospace - # - (Windows) Consolas - family: MesloLGS NF - - # The `style` can be specified to pick a specific face. - #style: Regular - - # Bold font face - #bold: - # Font family - # - # If the bold family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Bold - - # Italic font face - #italic: - # Font family - # - # If the italic family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Italic - - # Bold italic font face - #bold_italic: - # Font family - # - # If the bold italic family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Bold Italic - - # Point size - size: 10.0 - - # Offset is the extra space around each character. `offset.y` can be thought of - # as modifying the line spacing, and `offset.x` as modifying the letter spacing. - #offset: - # x: 0 - # y: 0 - - # Glyph offset determines the locations of the glyphs within their cells with - # the default being at the bottom. Increasing `x` moves the glyph to the right, - # increasing `y` moves the glyph upwards. - #glyph_ofset: - # x: 0 - # y: 0 - - # Thin stroke font rendering (macOS only) - # - # Thin strokes are suitable for retina displays, but for non-retina screens - # it is recommended to set `use_thin_strokes` to `false` - # - # macOS >= 10.14.x: - # - # If the font quality on non-retina display looks bad then set - # `use_thin_strokes` to `true` and enable font smoothing by running the - # following command: - # `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO` - # - # This is a global setting and will require a log out or restart to take - # effect. - #use_thin_strokes: true - -# If `true`, bold text is drawn using the bright color variants. -#draw_bold_text_with_bright_colors: false - -# Colors (Tomorrow Night Bright) -colors: - # Default colors - primary: - background: '#1f2430' - # foreground: '#eaeaea' - - # Bright and dim foreground colors - # - # The dimmed foreground color is calculated automatically if it is not present. - # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` - # is `false`, the normal foreground color will be used. - #dim_foreground: '#9a9a9a' - #bright_foreground: '#ffffff' - - # Cursor colors - # - # Colors which should be used to draw the terminal cursor. If these are unset, - # the cursor color will be the inverse of the cell color. - #cursor: - # text: '#000000' - # cursor: '#ffffff' - - # Selection colors - # - # Colors which should be used to draw the selection area. If selection - # background is unset, selection color will be the inverse of the cell colors. - # If only text is unset the cell text color will remain the same. - #selection: - # text: '#eaeaea' - # background: '#404040' - - # Normal colors - normal: - black: '#191e2a' - red: '#ed8274' - green: '#a6cc70' - yellow: '#fad07b' - blue: '#6dcbfa' - magenta: '#cfbafa' - cyan: '#90e1c6' - white: '#c7c7c7' - - # Bright colors - bright: - black: '#686868' - red: '#f28779' - green: '#bae67e' - yellow: '#ffd580' - blue: '#73d0ff' - magenta: '#d4bfff' - cyan: '#95e6cb' - white: '#ffffff' - - # Dim colors - # - # If the dim colors are not set, they will be calculated automatically based - # on the `normal` colors. - #dim: - # black: '#000000' - # red: '#8c3336' - # green: '#7a8530' - # yellow: '#97822e' - # blue: '#506d8f' - # magenta: '#80638e' - # cyan: '#497e7a' - # white: '#9a9a9a' - - # Indexed Colors - # - # The indexed colors include all colors from 16 to 256. - # When these are not set, they're filled with sensible defaults. - # - # Example: - # `- { index: 16, color: '#ff00ff' }` - # - #indexed_colors: [] - -# Visual Bell -# -# Any time the BEL code is received, Alacritty "rings" the visual bell. Once -# rung, the terminal background will be set to white and transition back to the -# default background color. You can control the rate of this transition by -# setting the `duration` property (represented in milliseconds). You can also -# configure the transition function by setting the `animation` property. -# -# Values for `animation`: -# - Ease -# - EaseOut -# - EaseOutSine -# - EaseOutQuad -# - EaseOutCubic -# - EaseOutQuart -# - EaseOutQuint -# - EaseOutExpo -# - EaseOutCirc -# - Linear -# -# Specifying a `duration` of `0` will disable the visual bell. -#visual_bell: -# animation: EaseOutExpo -# duration: 0 -# color: '#ffffff' - -# Background opacity -# -# Window opacity as a floating point number from `0.0` to `1.0`. -# The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 1.0 - -#selection: - #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" - - # When set to `true`, selected text will be copied to the primary clipboard. - #save_to_clipboard: false - -# Allow terminal applications to change Alacritty's window title. -#dynamic_title: true - -#cursor: - # Cursor style - # - # Values for `style`: - # - ▇ Block - # - _ Underline - # - | Beam - #style: Block - - # If this is `true`, the cursor will be rendered as a hollow box when the - # window is not focused. - #unfocused_hollow: true - -# Live config reload (changes require restart) -#live_config_reload: true - -# Shell -# -# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`. -# Entries in `shell.args` are passed unmodified as arguments to the shell. -# -# Default: -# - (macOS) /bin/bash --login -# - (Linux/BSD) user login shell -# - (Windows) powershell -#shell: -# program: /bin/bash -# args: -# - --login - -# Startup directory -# -# Directory the shell is started in. If this is unset, or `None`, the working -# directory of the parent process will be used. -#working_directory: None - -# WinPTY backend (Windows only) -# -# Alacritty defaults to using the newer ConPTY backend if it is available, -# since it resolves a lot of bugs and is quite a bit faster. If it is not -# available, the the WinPTY backend will be used instead. -# -# Setting this option to `true` makes Alacritty use the legacy WinPTY backend, -# even if the ConPTY backend is available. -#winpty_backend: false - -# Send ESC (\x1b) before characters when alt is pressed. -#alt_send_esc: true - -#mouse: - # Click settings - # - # The `double_click` and `triple_click` settings control the time - # alacritty should wait for accepting multiple clicks as one double - # or triple click. - #double_click: { threshold: 300 } - #triple_click: { threshold: 300 } - - # If this is `true`, the cursor is temporarily hidden when typing. - #hide_when_typing: false - - #url: - # URL launcher - # - # This program is executed when clicking on a text which is recognized as a URL. - # The URL is always added to the command as the last parameter. - # - # When set to `None`, URL launching will be disabled completely. - # - # Default: - # - (macOS) open - # - (Linux/BSD) xdg-open - # - (Windows) explorer - #launcher: - # program: xdg-open - # args: [] - - # URL modifiers - # - # These are the modifiers that need to be held down for opening URLs when clicking - # on them. The available modifiers are documented in the key binding section. - #modifiers: None - -# Mouse bindings -# -# Mouse bindings are specified as a list of objects, much like the key -# bindings further below. -# -# To trigger mouse bindings when an application running within Alacritty captures the mouse, the -# `Shift` modifier is automatically added as a requirement. -# -# Each mouse binding will specify a: -# -# - `mouse`: -# -# - Middle -# - Left -# - Right -# - Numeric identifier such as `5` -# -# - `action` (see key bindings) -# -# And optionally: -# -# - `mods` (see key bindings) -#mouse_bindings: -# - { mouse: Middle, action: PasteSelection } - -# Key bindings -# -# Key bindings are specified as a list of objects. For example, this is the -# default paste binding: -# -# `- { key: V, mods: Control|Shift, action: Paste }` -# -# Each key binding will specify a: -# -# - `key`: Identifier of the key pressed -# -# - A-Z -# - F1-F24 -# - Key0-Key9 -# -# A full list with available key codes can be found here: -# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants -# -# Instead of using the name of the keys, the `key` field also supports using -# the scancode of the desired key. Scancodes have to be specified as a -# decimal number. This command will allow you to display the hex scancodes -# for certain keys: -# -# `showkey --scancodes`. -# -# Then exactly one of: -# -# - `chars`: Send a byte sequence to the running application -# -# The `chars` field writes the specified string to the terminal. This makes -# it possible to pass escape sequences. To find escape codes for bindings -# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside -# of tmux. Note that applications use terminfo to map escape sequences back -# to keys. It is therefore required to update the terminfo when changing an -# escape sequence. -# -# - `action`: Execute a predefined action -# -# - Copy -# - Paste -# - PasteSelection -# - IncreaseFontSize -# - DecreaseFontSize -# - ResetFontSize -# - ScrollPageUp -# - ScrollPageDown -# - ScrollLineUp -# - ScrollLineDown -# - ScrollToTop -# - ScrollToBottom -# - ClearHistory -# - Hide -# - Minimize -# - Quit -# - ToggleFullscreen -# - SpawnNewInstance -# - ClearLogNotice -# - ReceiveChar -# - None -# -# (macOS only): -# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space -# -# - `command`: Fork and execute a specified command plus arguments -# -# The `command` field must be a map containing a `program` string and an -# `args` array of command line parameter strings. For example: -# `{ program: "alacritty", args: ["-e", "vttest"] }` -# -# And optionally: -# -# - `mods`: Key modifiers to filter binding actions -# -# - Command -# - Control -# - Option -# - Super -# - Shift -# - Alt -# -# Multiple `mods` can be combined using `|` like this: -# `mods: Control|Shift`. -# Whitespace and capitalization are relevant and must match the example. -# -# - `mode`: Indicate a binding for only specific terminal reported modes -# -# This is mainly used to send applications the correct escape sequences -# when in different modes. -# -# - AppCursor -# - AppKeypad -# - Alt -# -# A `~` operator can be used before a mode to apply the binding whenever -# the mode is *not* active, e.g. `~Alt`. -# -# Bindings are always filled by default, but will be replaced when a new -# binding with the same triggers is defined. To unset a default binding, it can -# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for -# a no-op if you do not wish to receive input characters for that binding. -# -# If the same trigger is assigned to multiple actions, all of them are executed -# at once. -#key_bindings: - # (Windows, Linux, and BSD only) - #- { key: V, mods: Control|Shift, action: Paste } - #- { key: C, mods: Control|Shift, action: Copy } - #- { key: Insert, mods: Shift, action: PasteSelection } - #- { key: Key0, mods: Control, action: ResetFontSize } - #- { key: Equals, mods: Control, action: IncreaseFontSize } - #- { key: Add, mods: Control, action: IncreaseFontSize } - #- { key: Subtract, mods: Control, action: DecreaseFontSize } - #- { key: Minus, mods: Control, action: DecreaseFontSize } - - # (Windows only) - #- { key: Return, mods: Alt, action: ToggleFullscreen } - - # (macOS only) - #- { key: Key0, mods: Command, action: ResetFontSize } - #- { key: Equals, mods: Command, action: IncreaseFontSize } - #- { key: Add, mods: Command, action: IncreaseFontSize } - #- { key: Minus, mods: Command, action: DecreaseFontSize } - #- { key: K, mods: Command, action: ClearHistory } - #- { key: K, mods: Command, chars: "\x0c" } - #- { key: V, mods: Command, action: Paste } - #- { key: C, mods: Command, action: Copy } - #- { key: H, mods: Command, action: Hide } - #- { key: M, mods: Command, action: Minimize } - #- { key: Q, mods: Command, action: Quit } - #- { key: W, mods: Command, action: Quit } - #- { key: F, mods: Command|Control, action: ToggleFullscreen } - - #- { key: Paste, action: Paste } - #- { key: Copy, action: Copy } - #- { key: L, mods: Control, action: ClearLogNotice } - #- { key: L, mods: Control, chars: "\x0c" } - #- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt } - #- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt } - #- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt } - #- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt } - -#debug: - # Display the time it takes to redraw each frame. - #render_timer: false - - # Keep the log file after quitting Alacritty. - #persistent_logging: false - - # Log level - # - # Values for `log_level`: - # - None - # - Error - # - Warn - # - Info - # - Debug - # - Trace - #log_level: Warn - - # Print all received window events. - #print_events: falsef diff --git a/awesome/configuration/picom.conf b/awesome/configuration/picom.conf deleted file mode 100644 index 3e987d6..0000000 --- a/awesome/configuration/picom.conf +++ /dev/null @@ -1,61 +0,0 @@ -# Performance related -# Use OpenGL -backend = "glx"; - -glx-no-stencil = false; -glx-copy-from-front = false; # When enbled on intel GPU: screen broken until compton is killed. -glx-swap-method = 1 - -unredir-if-possible = true - -# === Rules === -shadow-exclude = [ - "class_g ?= 'slop'", - "class_g ?= 'Visualizer'", - "class_g ?= 'rofi'", - "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", - "window_type *= 'menu'", - "window_type = 'utility'", - "window_type = 'dock'", - "window_type = 'dropdown_menu'", - "window_type = 'popup_menu'" -] - -opacity-rule = [] - -focus-exclude = [ - "class_g ?= 'slop'", - "name = 'rofi'", - "class_g ?= 'Steam'", - "_NET_WM_WINDOW_TYPE@:a *= 'MENU'", - "window_type *= 'menu'", - "window_type = 'utility'", - "window_type = 'dropdown_menu'", - "window_type = 'popup_menu'" -] - -fade-exclude = [] - -# === Shadows === -# Enabled client-side shadows on windows. -shadow = false; -# Detect rounded corners -# (it doesn't really do anything for shadows) -detect-rounded-corners = false; - -# shadow-radius: The blur radius for shadows. (default 12) -# shadow-offset-x: The left offset for shadows. (default -15) -# shadow-offset-y: The top offset for shadows. (default -15) -# shadow-opacity: The translucency for shadows. (default .75) -shadow-radius = 14; -shadow-offset-x = -12; -shadow-offset-y = -12; -shadow-opacity = 0.3; - -# === Fading === -# Fade windows during opacity changes. -fading = true; -# The time between steps in a fade in milliseconds. (default 10). -fade-delta = 10; -# Fade windows in/out when opening/closing -no-fading-openclose = false; diff --git a/awesome/configuration/rofi.rasi b/awesome/configuration/rofi.rasi deleted file mode 100644 index 2cce41c..0000000 --- a/awesome/configuration/rofi.rasi +++ /dev/null @@ -1,95 +0,0 @@ -configuration { - show-icons: true; - icon-theme: "Tela-dark"; - font: "Iosevka Nerd Font 14"; - display-drun: ""; - drun-display-format: "{name}"; -} - -* { - background-color: transparent; - background: #1F2430; - background-alt: #E5E9F047; - text-color: #D8DEE9; - selected-text-color: #000000; - primary: #A3BE8C; - urgent: #BF616A; -} - -window { - transparency: "real"; - background-color: @background; -} - -inputbar { - background-color: #ffffff20; - text-color: @foreground; - border-radius: 12; - padding: 1.3%; - margin: 5% 30%; -} - -prompt { - enabled: true; - margin: 0 1% 0 0; -} - -entry { - font: "SF Pro Display 14"; - placeholder-color: #999999; - placeholder: "Search Applications"; - blink: true; -} - - -mainbox { - children: [ inputbar, listview ]; - padding: 5%; -} - -listview { - columns: 5; - layout: vertical; - spacing: 100; - margin: 5% 7%; -} - -element { - orientation: vertical; - padding: 2% 0; - border-radius: 4; -} - -element normal.urgent, element alternate.urgent { - background-color: @urgent; -} - -element normal.active, element alternate.active { - background-color: @background-alt; - color: @selected-text-color; -} - -element selected { - background-color: @background-alt; - color: @selected-text-color; -} - -element selected.urgent { - background-color: @urgent; -} - -element selected.active { - background-color: @background-alt; - color: @selected-text-color; -} - -element-icon { - size: 6%; -} - -element-text { - font: "SF Pro Display 14"; - padding: 10 0 0 0; - text-color: inherit; - horizontal-align: 0.5; -} diff --git a/awesome/icons/battery/battery-10.svg b/awesome/icons/battery/battery-10.svg deleted file mode 100644 index 19cbf1b..0000000 --- a/awesome/icons/battery/battery-10.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-20.svg b/awesome/icons/battery/battery-20.svg deleted file mode 100644 index 9f43900..0000000 --- a/awesome/icons/battery/battery-20.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-30.svg b/awesome/icons/battery/battery-30.svg deleted file mode 100644 index 7e24035..0000000 --- a/awesome/icons/battery/battery-30.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-40.svg b/awesome/icons/battery/battery-40.svg deleted file mode 100644 index 6d5f15a..0000000 --- a/awesome/icons/battery/battery-40.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-50.svg b/awesome/icons/battery/battery-50.svg deleted file mode 100644 index e2d0db0..0000000 --- a/awesome/icons/battery/battery-50.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-60.svg b/awesome/icons/battery/battery-60.svg deleted file mode 100644 index 2974479..0000000 --- a/awesome/icons/battery/battery-60.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-70.svg b/awesome/icons/battery/battery-70.svg deleted file mode 100644 index d0ac917..0000000 --- a/awesome/icons/battery/battery-70.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-80.svg b/awesome/icons/battery/battery-80.svg deleted file mode 100644 index a046a8f..0000000 --- a/awesome/icons/battery/battery-80.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-90.svg b/awesome/icons/battery/battery-90.svg deleted file mode 100644 index 2a4f448..0000000 --- a/awesome/icons/battery/battery-90.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-10.svg b/awesome/icons/battery/battery-charging-10.svg deleted file mode 100644 index e5945c1..0000000 --- a/awesome/icons/battery/battery-charging-10.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-100.svg b/awesome/icons/battery/battery-charging-100.svg deleted file mode 100644 index 9713fb3..0000000 --- a/awesome/icons/battery/battery-charging-100.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-20.svg b/awesome/icons/battery/battery-charging-20.svg deleted file mode 100644 index a7adc99..0000000 --- a/awesome/icons/battery/battery-charging-20.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-30.svg b/awesome/icons/battery/battery-charging-30.svg deleted file mode 100644 index 612cd6f..0000000 --- a/awesome/icons/battery/battery-charging-30.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-40.svg b/awesome/icons/battery/battery-charging-40.svg deleted file mode 100644 index f0e3a0d..0000000 --- a/awesome/icons/battery/battery-charging-40.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-50.svg b/awesome/icons/battery/battery-charging-50.svg deleted file mode 100644 index f0e3a0d..0000000 --- a/awesome/icons/battery/battery-charging-50.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-60.svg b/awesome/icons/battery/battery-charging-60.svg deleted file mode 100644 index 5cd577a..0000000 --- a/awesome/icons/battery/battery-charging-60.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-70.svg b/awesome/icons/battery/battery-charging-70.svg deleted file mode 100644 index 6af3dbe..0000000 --- a/awesome/icons/battery/battery-charging-70.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-80.svg b/awesome/icons/battery/battery-charging-80.svg deleted file mode 100644 index e48879a..0000000 --- a/awesome/icons/battery/battery-charging-80.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-90.svg b/awesome/icons/battery/battery-charging-90.svg deleted file mode 100644 index a045bb2..0000000 --- a/awesome/icons/battery/battery-charging-90.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging-outline.svg b/awesome/icons/battery/battery-charging-outline.svg deleted file mode 100644 index 4b2c706..0000000 --- a/awesome/icons/battery/battery-charging-outline.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-charging.svg b/awesome/icons/battery/battery-charging.svg deleted file mode 100644 index 97e03c5..0000000 --- a/awesome/icons/battery/battery-charging.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery-outline.svg b/awesome/icons/battery/battery-outline.svg deleted file mode 100644 index 75f5d38..0000000 --- a/awesome/icons/battery/battery-outline.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/battery/battery.svg b/awesome/icons/battery/battery.svg deleted file mode 100644 index 7289a0b..0000000 --- a/awesome/icons/battery/battery.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/awesome/icons/bluetooth/bluetooth-off.svg b/awesome/icons/bluetooth/bluetooth-off.svg deleted file mode 100644 index 9055c52..0000000 --- a/awesome/icons/bluetooth/bluetooth-off.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/awesome/icons/bluetooth/bluetooth.svg b/awesome/icons/bluetooth/bluetooth.svg deleted file mode 100644 index b11d5db..0000000 --- a/awesome/icons/bluetooth/bluetooth.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/awesome/icons/exit-screen/mirage/lock.png b/awesome/icons/exit-screen/mirage/lock.png deleted file mode 100644 index 99aa3c8..0000000 Binary files a/awesome/icons/exit-screen/mirage/lock.png and /dev/null differ diff --git a/awesome/icons/exit-screen/mirage/logout.png b/awesome/icons/exit-screen/mirage/logout.png deleted file mode 100644 index fa05757..0000000 Binary files a/awesome/icons/exit-screen/mirage/logout.png and /dev/null differ diff --git a/awesome/icons/exit-screen/mirage/power.png b/awesome/icons/exit-screen/mirage/power.png deleted file mode 100644 index 6879a0c..0000000 Binary files a/awesome/icons/exit-screen/mirage/power.png and /dev/null differ diff --git a/awesome/icons/exit-screen/mirage/restart.png b/awesome/icons/exit-screen/mirage/restart.png deleted file mode 100644 index 7c594cf..0000000 Binary files a/awesome/icons/exit-screen/mirage/restart.png and /dev/null differ diff --git a/awesome/icons/exit-screen/mirage/sleep.png b/awesome/icons/exit-screen/mirage/sleep.png deleted file mode 100644 index 2f8fdef..0000000 Binary files a/awesome/icons/exit-screen/mirage/sleep.png and /dev/null differ diff --git a/awesome/icons/folders/documents.png b/awesome/icons/folders/documents.png deleted file mode 100644 index 7de37f7..0000000 Binary files a/awesome/icons/folders/documents.png and /dev/null differ diff --git a/awesome/icons/folders/downloads.png b/awesome/icons/folders/downloads.png deleted file mode 100644 index 1cc4d5a..0000000 Binary files a/awesome/icons/folders/downloads.png and /dev/null differ diff --git a/awesome/icons/folders/home.png b/awesome/icons/folders/home.png deleted file mode 100644 index ef5554d..0000000 Binary files a/awesome/icons/folders/home.png and /dev/null differ diff --git a/awesome/icons/folders/trash.png b/awesome/icons/folders/trash.png deleted file mode 100644 index 2c8e544..0000000 Binary files a/awesome/icons/folders/trash.png and /dev/null differ diff --git a/awesome/icons/network/connected_notification.svg b/awesome/icons/network/connected_notification.svg deleted file mode 100644 index 23ebc45..0000000 --- a/awesome/icons/network/connected_notification.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/awesome/icons/network/loading.svg b/awesome/icons/network/loading.svg deleted file mode 100755 index cd7bc0e..0000000 --- a/awesome/icons/network/loading.svg +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-1-alert.svg b/awesome/icons/network/wifi-strength-1-alert.svg deleted file mode 100755 index 7a8de11..0000000 --- a/awesome/icons/network/wifi-strength-1-alert.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-1.svg b/awesome/icons/network/wifi-strength-1.svg deleted file mode 100755 index 9e90049..0000000 --- a/awesome/icons/network/wifi-strength-1.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-2-alert.svg b/awesome/icons/network/wifi-strength-2-alert.svg deleted file mode 100755 index 970987a..0000000 --- a/awesome/icons/network/wifi-strength-2-alert.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-2.svg b/awesome/icons/network/wifi-strength-2.svg deleted file mode 100755 index e65871e..0000000 --- a/awesome/icons/network/wifi-strength-2.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-3-alert.svg b/awesome/icons/network/wifi-strength-3-alert.svg deleted file mode 100755 index e1b5a5f..0000000 --- a/awesome/icons/network/wifi-strength-3-alert.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-3.svg b/awesome/icons/network/wifi-strength-3.svg deleted file mode 100755 index cec90d5..0000000 --- a/awesome/icons/network/wifi-strength-3.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-4-alert.svg b/awesome/icons/network/wifi-strength-4-alert.svg deleted file mode 100755 index 2d9d47d..0000000 --- a/awesome/icons/network/wifi-strength-4-alert.svg +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-4.svg b/awesome/icons/network/wifi-strength-4.svg deleted file mode 100755 index 259a3a9..0000000 --- a/awesome/icons/network/wifi-strength-4.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/awesome/icons/network/wifi-strength-off.svg b/awesome/icons/network/wifi-strength-off.svg deleted file mode 100755 index 12cb043..0000000 --- a/awesome/icons/network/wifi-strength-off.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/awesome/icons/network/wired-alert.svg b/awesome/icons/network/wired-alert.svg deleted file mode 100755 index 60ad378..0000000 --- a/awesome/icons/network/wired-alert.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/awesome/icons/network/wired-off.svg b/awesome/icons/network/wired-off.svg deleted file mode 100755 index 35481c0..0000000 --- a/awesome/icons/network/wired-off.svg +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/awesome/icons/network/wired.svg b/awesome/icons/network/wired.svg deleted file mode 100755 index 00441ac..0000000 --- a/awesome/icons/network/wired.svg +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/awesome/icons/tags/mirage/1-busy.png b/awesome/icons/tags/mirage/1-busy.png deleted file mode 100644 index 334eb70..0000000 Binary files a/awesome/icons/tags/mirage/1-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/1-inactive.png b/awesome/icons/tags/mirage/1-inactive.png deleted file mode 100644 index 75a0c8f..0000000 Binary files a/awesome/icons/tags/mirage/1-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/1.png b/awesome/icons/tags/mirage/1.png deleted file mode 100644 index de3e03b..0000000 Binary files a/awesome/icons/tags/mirage/1.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/2-busy.png b/awesome/icons/tags/mirage/2-busy.png deleted file mode 100644 index 6ff2131..0000000 Binary files a/awesome/icons/tags/mirage/2-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/2-inactive.png b/awesome/icons/tags/mirage/2-inactive.png deleted file mode 100644 index 6bf3578..0000000 Binary files a/awesome/icons/tags/mirage/2-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/2.png b/awesome/icons/tags/mirage/2.png deleted file mode 100644 index 95fd47d..0000000 Binary files a/awesome/icons/tags/mirage/2.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/3-busy.png b/awesome/icons/tags/mirage/3-busy.png deleted file mode 100644 index db71d0d..0000000 Binary files a/awesome/icons/tags/mirage/3-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/3-inactive.png b/awesome/icons/tags/mirage/3-inactive.png deleted file mode 100644 index 1411d7b..0000000 Binary files a/awesome/icons/tags/mirage/3-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/3.png b/awesome/icons/tags/mirage/3.png deleted file mode 100644 index 6db102b..0000000 Binary files a/awesome/icons/tags/mirage/3.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/4-busy.png b/awesome/icons/tags/mirage/4-busy.png deleted file mode 100644 index d968e41..0000000 Binary files a/awesome/icons/tags/mirage/4-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/4-inactive.png b/awesome/icons/tags/mirage/4-inactive.png deleted file mode 100644 index 869fa8c..0000000 Binary files a/awesome/icons/tags/mirage/4-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/4.png b/awesome/icons/tags/mirage/4.png deleted file mode 100644 index 0f61d3f..0000000 Binary files a/awesome/icons/tags/mirage/4.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/5-busy.png b/awesome/icons/tags/mirage/5-busy.png deleted file mode 100644 index 971c806..0000000 Binary files a/awesome/icons/tags/mirage/5-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/5-inactive.png b/awesome/icons/tags/mirage/5-inactive.png deleted file mode 100644 index 6eecfa6..0000000 Binary files a/awesome/icons/tags/mirage/5-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/5.png b/awesome/icons/tags/mirage/5.png deleted file mode 100644 index bdb26be..0000000 Binary files a/awesome/icons/tags/mirage/5.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/6-busy.png b/awesome/icons/tags/mirage/6-busy.png deleted file mode 100644 index 40178d4..0000000 Binary files a/awesome/icons/tags/mirage/6-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/6-inactive.png b/awesome/icons/tags/mirage/6-inactive.png deleted file mode 100644 index 2fec9b1..0000000 Binary files a/awesome/icons/tags/mirage/6-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/6.png b/awesome/icons/tags/mirage/6.png deleted file mode 100644 index b979d4e..0000000 Binary files a/awesome/icons/tags/mirage/6.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/7-busy.png b/awesome/icons/tags/mirage/7-busy.png deleted file mode 100644 index c10ca78..0000000 Binary files a/awesome/icons/tags/mirage/7-busy.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/7-inactive.png b/awesome/icons/tags/mirage/7-inactive.png deleted file mode 100644 index 7294de9..0000000 Binary files a/awesome/icons/tags/mirage/7-inactive.png and /dev/null differ diff --git a/awesome/icons/tags/mirage/7.png b/awesome/icons/tags/mirage/7.png deleted file mode 100644 index 2723d02..0000000 Binary files a/awesome/icons/tags/mirage/7.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/1.png b/awesome/icons/tags/pastel/1.png deleted file mode 100644 index 0687066..0000000 Binary files a/awesome/icons/tags/pastel/1.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/2.png b/awesome/icons/tags/pastel/2.png deleted file mode 100644 index 3a5e511..0000000 Binary files a/awesome/icons/tags/pastel/2.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/3.png b/awesome/icons/tags/pastel/3.png deleted file mode 100644 index 84a3b12..0000000 Binary files a/awesome/icons/tags/pastel/3.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/4.png b/awesome/icons/tags/pastel/4.png deleted file mode 100644 index 08f15fd..0000000 Binary files a/awesome/icons/tags/pastel/4.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/5.png b/awesome/icons/tags/pastel/5.png deleted file mode 100644 index 702facf..0000000 Binary files a/awesome/icons/tags/pastel/5.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/6.png b/awesome/icons/tags/pastel/6.png deleted file mode 100644 index 1330140..0000000 Binary files a/awesome/icons/tags/pastel/6.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/7.png b/awesome/icons/tags/pastel/7.png deleted file mode 100644 index 88b1869..0000000 Binary files a/awesome/icons/tags/pastel/7.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/8.png b/awesome/icons/tags/pastel/8.png deleted file mode 100644 index 237768b..0000000 Binary files a/awesome/icons/tags/pastel/8.png and /dev/null differ diff --git a/awesome/icons/tags/pastel/9.png b/awesome/icons/tags/pastel/9.png deleted file mode 100644 index 3d0a045..0000000 Binary files a/awesome/icons/tags/pastel/9.png and /dev/null differ diff --git a/awesome/icons/top-panel/mem.png b/awesome/icons/top-panel/mem.png new file mode 100755 index 0000000..ee6d480 Binary files /dev/null and b/awesome/icons/top-panel/mem.png differ diff --git a/awesome/icons/top-panel/updates.png b/awesome/icons/top-panel/updates.png new file mode 100644 index 0000000..a515a51 --- /dev/null +++ b/awesome/icons/top-panel/updates.png @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/awesome/icons/volume/mirage/volume-low.png b/awesome/icons/volume/mirage/volume-low.png deleted file mode 100644 index c83c514..0000000 Binary files a/awesome/icons/volume/mirage/volume-low.png and /dev/null differ diff --git a/awesome/icons/volume/mirage/volume-off.png b/awesome/icons/volume/mirage/volume-off.png deleted file mode 100644 index 4e5c360..0000000 Binary files a/awesome/icons/volume/mirage/volume-off.png and /dev/null differ diff --git a/awesome/icons/volume/mirage/volume.png b/awesome/icons/volume/mirage/volume.png deleted file mode 100644 index 243e811..0000000 Binary files a/awesome/icons/volume/mirage/volume.png and /dev/null differ diff --git a/awesome/icons/volume/pastel/volume-low.png b/awesome/icons/volume/pastel/volume-low.png deleted file mode 100644 index c21cd66..0000000 Binary files a/awesome/icons/volume/pastel/volume-low.png and /dev/null differ diff --git a/awesome/icons/volume/pastel/volume-off.png b/awesome/icons/volume/pastel/volume-off.png deleted file mode 100644 index c21cd66..0000000 Binary files a/awesome/icons/volume/pastel/volume-off.png and /dev/null differ diff --git a/awesome/icons/volume/pastel/volume.png b/awesome/icons/volume/pastel/volume.png deleted file mode 100644 index c21cd66..0000000 Binary files a/awesome/icons/volume/pastel/volume.png and /dev/null differ diff --git a/awesome/keys.lua b/awesome/keys.lua index 5502e2b..5f86d3a 100644 --- a/awesome/keys.lua +++ b/awesome/keys.lua @@ -138,7 +138,7 @@ keys.globalkeys = gears.table.join( -- Spawn terminal awful.key({modkey}, "Return", function() - awful.spawn("kitty --single-instance") + awful.spawn(apps.terminal) end, {description = "open a terminal", group = "launcher"} ), diff --git a/awesome/lain b/awesome/lain new file mode 160000 index 0000000..c489aa6 --- /dev/null +++ b/awesome/lain @@ -0,0 +1 @@ +Subproject commit c489aa63acc1364851e0e51152be3db5c75e145d diff --git a/awesome/rc.lua b/awesome/rc.lua index 3f00b09..dd9601e 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -8,6 +8,7 @@ -- Standard awesome libraries local gears = require("gears") +local naughty = require("naughty") local awful = require("awful") @@ -22,7 +23,7 @@ local theme_config_dir = gears.filesystem.get_configuration_dir() .. "/configura apps = { network_manager = "nm-connection-editor", -- recommended: nm-connection-editor power_manager = "", -- recommended: xfce4-power-manager - terminal = "kitty", + terminal = "alacritty", launcher = "/home/user/.toggle_rofi.sh", lock = "i3lock", screenshot = "scrot -e 'mv $f ~/Pictures/Screenshots/ 2>/dev/null'", @@ -147,11 +148,17 @@ require("awesomewm-vim-tmux-navigator") { -- experimental = true } +local handle_single_win = function(focused) + local hide = focused.maximized or focused.fullscreen --- window borders -client.connect_signal("focus", function(c) c.border_color = "#626363" end) + for i, c in ipairs(client.get()) do + if not c.floating and c.screen == focused.screen then + c.hidden = hide + end + end -client.connect_signal("border_animation_timer:timeout", function(c) c.border_color = "#626363" end) + focused.hidden = false +end --- Make border transparent black on unfocus -client.connect_signal("unfocus", function(c) c.border_color = "#00000000" end) +client.connect_signal("property::fullscreen", handle_single_win) +client.connect_signal("property::maximized", handle_single_win) diff --git a/awesome/theme.lua b/awesome/theme.lua index a1c7cdd..1b77d80 100644 --- a/awesome/theme.lua +++ b/awesome/theme.lua @@ -25,7 +25,7 @@ local theme = {} theme.name = "pastel" -- Font -theme.font = "Ubuntu 12" +theme.font = "Ubuntu 13" theme.title_font = "Ubuntu 12" -- Background @@ -71,7 +71,7 @@ theme.tasklist_fg_urgent = theme.fg_urgent theme.tasklist_fg_normal = theme.fg_normal -- Panel Sizing -theme.top_panel_height = dpi(27) +theme.top_panel_height = dpi(32) -- Notification Sizing theme.notification_max_width = dpi(350) diff --git a/awesome/wallpaper/blurredWallpaper.png b/awesome/wallpaper/blurredWallpaper.png deleted file mode 100644 index 2f663ee..0000000 Binary files a/awesome/wallpaper/blurredWallpaper.png and /dev/null differ diff --git a/awesome/wallpaper/wallpaper.png b/awesome/wallpaper/wallpaper.png index 5d4ca4b..54a9847 100644 Binary files a/awesome/wallpaper/wallpaper.png and b/awesome/wallpaper/wallpaper.png differ diff --git a/awesome/widgets/battery.lua b/awesome/widgets/battery.lua deleted file mode 100644 index 8cd753a..0000000 --- a/awesome/widgets/battery.lua +++ /dev/null @@ -1,144 +0,0 @@ --- ██████╗ █████╗ ████████╗████████╗███████╗██████╗ ██╗ ██╗ --- ██╔══██╗██╔══██╗╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗╚██╗ ██╔╝ --- ██████╔╝███████║ ██║ ██║ █████╗ ██████╔╝ ╚████╔╝ --- ██╔══██╗██╔══██║ ██║ ██║ ██╔══╝ ██╔══██╗ ╚██╔╝ --- ██████╔╝██║ ██║ ██║ ██║ ███████╗██║ ██║ ██║ --- ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ - -------------------------------------------------- --- Battery Widget for Awesome Window Manager --- Shows the battery status using the ACPI tool --- More details could be found here: --- https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget - --- @author Pavel Makhov --- @copyright 2017 Pavel Makhov -------------------------------------------------- - - --- =================================================================== --- Initialization --- =================================================================== - - -local awful = require("awful") -local watch = require("awful.widget.watch") -local wibox = require("wibox") -local clickable_container = require("widgets.clickable-container") -local gears = require("gears") -local dpi = require("beautiful").xresources.apply_dpi - -local PATH_TO_ICONS = os.getenv("HOME") .. "/.config/awesome/icons/battery/" - - --- =================================================================== --- Widget Creation --- =================================================================== - - -local widget = wibox.widget { - { - id = "icon", - widget = wibox.widget.imagebox, - resize = true - }, - layout = wibox.layout.fixed.horizontal -} - -local widget_button = clickable_container(wibox.container.margin(widget, dpi(7), dpi(7), dpi(7), dpi(7))) -widget_button:buttons( - gears.table.join( - awful.button({}, 1, nil, - function() - awful.spawn(apps.power_manager) - end - ) - ) -) --- Alternative to naughty.notify - tooltip. You can compare both and choose the preferred one -local battery_popup = awful.tooltip({ - objects = {widget_button}, - mode = "outside", - align = "left", - referred_positions = {"right", "left", "top", "bottom"} -}) - -local function show_battery_warning() - naughty.notify { - icon = PATH_TO_ICONS .. "battery-alert.svg", - icon_size = dpi(48), - text = "Huston, we have a problem", - title = "Battery is dying", - timeout = 5, - hover_timeout = 0.5, - position = "top_right", - bg = "#d32f2f", - fg = "#EEE9EF", - width = 248 - } -end - -local last_battery_check = os.time() - -watch("acpi -i", 1, - function(_, stdout) - local battery_info = {} - local capacities = {} - for s in stdout:gmatch("[^\r\n]+") do - local status, charge_str, time = string.match(s, ".+: (%a+), (%d?%d?%d)%%,?.*") - if status ~= nil then - table.insert(battery_info, {status = status, charge = tonumber(charge_str)}) - else - local cap_str = string.match(s, ".+:.+last full capacity (%d+)") - table.insert(capacities, tonumber(cap_str)) - end - end - - local capacity = 0 - for _, cap in ipairs(capacities) do - capacity = capacity + cap - end - - local charge = 0 - local status - for i, batt in ipairs(battery_info) do - if batt.charge >= charge then - status = batt.status -- use most charged battery status - -- this is arbitrary, and maybe another metric should be used - end - - charge = charge + batt.charge * capacities[i] - end - charge = charge / capacity - - if (charge >= 0 and charge < 15) then - if status ~= "Charging" and os.difftime(os.time(), last_battery_check) > 300 then - -- if 5 minutes have elapsed since the last warning - last_battery_check = time() - - show_battery_warning() - end - end - - local battery_icon_name = "battery" - - if status == "Charging" or status == "Full" then - battery_icon_name = battery_icon_name .. "-charging" - end - - local rounded_charge = math.floor(charge / 10) * 10 - if (rounded_charge == 0) then - battery_icon_name = battery_icon_name .. "-outline" - elseif (rounded_charge ~= 100) then - battery_icon_name = battery_icon_name .. "-" .. rounded_charge - end - - widget.icon:set_image(PATH_TO_ICONS .. battery_icon_name .. ".svg") - -- Update popup text - battery_popup.text = string.gsub(stdout, "\n$", "") - collectgarbage("collect") - end, - widget -) - -return widget_button diff --git a/awesome/widgets/bluetooth.lua b/awesome/widgets/bluetooth.lua deleted file mode 100644 index ed26692..0000000 --- a/awesome/widgets/bluetooth.lua +++ /dev/null @@ -1,82 +0,0 @@ --- ██████╗ ██╗ ██╗ ██╗███████╗████████╗ ██████╗ ██████╗ ████████╗██╗ ██╗ --- ██╔══██╗██║ ██║ ██║██╔════╝╚══██╔══╝██╔═══██╗██╔═══██╗╚══██╔══╝██║ ██║ --- ██████╔╝██║ ██║ ██║█████╗ ██║ ██║ ██║██║ ██║ ██║ ███████║ --- ██╔══██╗██║ ██║ ██║██╔══╝ ██║ ██║ ██║██║ ██║ ██║ ██╔══██║ --- ██████╔╝███████╗╚██████╔╝███████╗ ██║ ╚██████╔╝╚██████╔╝ ██║ ██║ ██║ --- ╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ - --- =================================================================== --- Initialization --- =================================================================== - - -local awful = require("awful") -local watch = require("awful.widget.watch") -local wibox = require("wibox") -local clickable_container = require("widgets.clickable-container") -local gears = require("gears") -local dpi = require("beautiful").xresources.apply_dpi - -local PATH_TO_ICONS = os.getenv("HOME") .. "/.config/awesome/icons/bluetooth/" -local checker - - --- =================================================================== --- Initialization --- =================================================================== - - -local widget = wibox.widget { - { - id = "icon", - widget = wibox.widget.imagebox, - resize = true - }, - layout = wibox.layout.align.horizontal -} - -local widget_button = clickable_container(wibox.container.margin(widget, dpi(7), dpi(7), dpi(7), dpi(7))) -widget_button:buttons( - gears.table.join( - awful.button({}, 1, nil, - function() - awful.spawn("blueman-manager") - end - ) - ) -) - -awful.tooltip( - { - objects = {widget_button}, - mode = "outside", - align = "right", - timer_function = function() - if checker ~= nil then - return "Bluetooth is on" - else - return "Bluetooth is off" - end - end, - preferred_positions = {"right", "left", "top", "bottom"} - } -) - -local last_bluetooth_check = os.time() -watch("bluetoothctl --monitor list", 5, - function(_, stdout) - -- Check if there bluetooth - checker = stdout:match("Controller") -- If 'Controller' string is detected on stdout - local widget_icon_nme - if (checker ~= nil) then - widget_icon_name = "bluetooth" - else - widget_icon_name = "bluetooth-off" - end - widget.icon:set_image(PATH_TO_ICONS .. widget_icon_name .. ".svg") - collectgarbage("collect") - end, - widget -) - -return widget_button diff --git a/awesome/widgets/calendar.lua b/awesome/widgets/calendar.lua deleted file mode 100644 index 52d51c4..0000000 --- a/awesome/widgets/calendar.lua +++ /dev/null @@ -1,71 +0,0 @@ --- ██████╗ █████╗ ██╗ ███████╗███╗ ██╗██████╗ █████╗ ██████╗ --- ██╔════╝██╔══██╗██║ ██╔════╝████╗ ██║██╔══██╗██╔══██╗██╔══██╗ --- ██║ ███████║██║ █████╗ ██╔██╗ ██║██║ ██║███████║██████╔╝ --- ██║ ██╔══██║██║ ██╔══╝ ██║╚██╗██║██║ ██║██╔══██║██╔══██╗ --- ╚██████╗██║ ██║███████╗███████╗██║ ╚████║██████╔╝██║ ██║██║ ██║ --- ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ - - --- =================================================================== --- Initialization --- =================================================================== - - -local awful = require("awful") -local gears = require("gears") -local wibox = require("wibox") -local beautiful = require("beautiful") -local dpi = beautiful.xresources.apply_dpi - -local calendar = {} - - --- =================================================================== --- Create Widget --- =================================================================== - - -calendar.create = function(screen) - -- Clock / Calendar 12h format - -- Get Time/Date format using `man strftime` - local clock_widget = wibox.widget.textclock("%l:%M %p", 1) - - -- Alternative to naughty.notify - tooltip. You can compare both and choose the preferred one - awful.tooltip({ - objects = {clock_widget}, - mode = "outside", - align = "right", - timer_function = function() - return os.date("The date today is %B %d, %Y.") - end, - preferred_positions = {"right", "left", "top", "bottom"}, - margin_leftright = dpi(8), - margin_topbottom = dpi(8) - }) - - local cal_shape = function(cr, width, height) - gears.shape.partially_rounded_rect(cr, width, height, false, false, true, true, 12) - end - - -- Calendar Widget - local month_calendar = awful.widget.calendar_popup.month({ - screen = screen, - start_sunday = true, - spacing = 10, - font = beautiful.title_font, - long_weekdays = true, - margin = 0, -- 10 - style_month = {border_width = 0, padding = 12, shape = cal_shape, padding = 25}, - style_header = {border_width = 0, bg_color = "#00000000"}, - style_weekday = {border_width = 0, bg_color = "#00000000"}, - style_normal = {border_width = 0, bg_color = "#00000000"}, - style_focus = {border_width = 0, bg_color = "#8AB4F8"}, - }) - - -- Attach calentar to clock_widget - month_calendar:attach(clock_widget, "tc" , { on_pressed = true, on_hover = false }) - - return clock_widget -end - -return calendar diff --git a/awesome/widgets/horizontal-separator.lua b/awesome/widgets/horizontal-separator.lua deleted file mode 100644 index d38a180..0000000 --- a/awesome/widgets/horizontal-separator.lua +++ /dev/null @@ -1,36 +0,0 @@ --- ██╗ ██╗ ██████╗ ██████╗ ██╗███████╗ ██████╗ ███╗ ██╗████████╗ █████╗ ██╗ --- ██║ ██║██╔═══██╗██╔══██╗██║╚══███╔╝██╔═══██╗████╗ ██║╚══██╔══╝██╔══██╗██║ --- ███████║██║ ██║██████╔╝██║ ███╔╝ ██║ ██║██╔██╗ ██║ ██║ ███████║██║ --- ██╔══██║██║ ██║██╔══██╗██║ ███╔╝ ██║ ██║██║╚██╗██║ ██║ ██╔══██║██║ --- ██║ ██║╚██████╔╝██║ ██║██║███████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║███████╗ --- ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ - --- ███████╗███████╗██████╗ █████╗ ██████╗ █████╗ ████████╗ ██████╗ ██████╗ --- ██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗ --- ███████╗█████╗ ██████╔╝███████║██████╔╝███████║ ██║ ██║ ██║██████╔╝ --- ╚════██║██╔══╝ ██╔═══╝ ██╔══██║██╔══██╗██╔══██║ ██║ ██║ ██║██╔══██╗ --- ███████║███████╗██║ ██║ ██║██║ ██║██║ ██║ ██║ ╚██████╔╝██║ ██║ --- ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ - --- =================================================================== --- Initialization --- =================================================================== - - -local wibox = require("wibox") -local dpi = require("beautiful").xresources.apply_dpi - - --- =================================================================== --- Widget Creation --- =================================================================== - - -local horizontal_separator = wibox.widget { - orientation = "horizontal", - forced_height = dpi(16), - opacity = 0.20, - widget = wibox.widget.separator -} - -return horizontal_separator diff --git a/awesome/widgets/network.lua b/awesome/widgets/network.lua deleted file mode 100755 index 400ff49..0000000 --- a/awesome/widgets/network.lua +++ /dev/null @@ -1,347 +0,0 @@ ----------------------------------------------------------------------------- ---- Simple Network Widget --- --- Depends: iproute2, iw --- --- --- @author manilarome <gerome.matilla07@gmail.com> --- @copyright 2020 manilarome --- @widget network ----------------------------------------------------------------------------- - -local awful = require('awful') -local wibox = require('wibox') -local gears = require('gears') -local naughty = require('naughty') -local dpi = require('beautiful').xresources.apply_dpi -local clickable_container = require('widgets.clickable-container') - -local config_dir = gears.filesystem.get_configuration_dir() -local widget_icon_dir = config_dir .. 'icons/network/' - -local network_mode = nil - -local return_button = function() - - local update_notify_no_access = true - local notify_no_access_quota = 0 - - local startup = true - local reconnect_startup = true - local notify_new_wifi_conn = false - - local widget = wibox.widget { - { - id = 'icon', - image = widget_icon_dir .. 'loading.svg', - widget = wibox.widget.imagebox, - resize = true - }, - layout = wibox.layout.align.horizontal - } - - local widget_button = wibox.widget { - { - widget, - margins = dpi(7), - widget = wibox.container.margin - }, - widget = clickable_container - } - - widget_button:buttons( - gears.table.join( - awful.button({}, 1, nil, - function() - awful.spawn(apps.network_manager, false) - end - ) - ) - ) - - local network_tooltip = awful.tooltip { - text = 'Loading...', - objects = {widget_button}, - mode = 'outside', - align = 'right', - preferred_positions = {'left', 'right', 'top', 'bottom'}, - margin_leftright = dpi(8), - margin_topbottom = dpi(8) - } - - local check_internet_health = [=[ - status_ping=0 - - packets="$(ping -q -w2 -c2 example.com | grep -o "100% packet loss")" - if [ ! -z "${packets}" ]; - then - status_ping=0 - else - status_ping=1 - fi - - if [ $status_ping -eq 0 ]; - then - echo 'Connected but no internet' - fi - ]=] - - -- Awesome/System startup - local update_startup = function() - if startup then - startup = false - end - end - - -- Consider reconnecting a startup - local update_reconnect_startup = function(status) - reconnect_startup = status - end - - -- Update tooltip - local update_tooltip = function(message) - network_tooltip:set_markup(message) - end - - local network_notify = function(message, title, app_name, icon) - naughty.notify({ - message = message, - title = title, - app_name = app_name, - icon = icon - }) - end - - -- Wireless mode / Update - local update_wireless = function() - - network_mode = 'wireless' - - -- Create wireless connection notification - local notify_connected = function(essid) - local message = 'You are now connected to \"' .. essid .. '\"' - local title = 'Connection Established' - local app_name = 'System Notification' - local icon = widget_icon_dir .. 'connected_notification.svg' - network_notify(message, title, app_name, icon) - end - - -- Get wifi essid and bitrate - local update_wireless_data = function(strength, healthy) - awful.spawn.easy_async_with_shell( - [[ - iw dev ]] .. network_interfaces.wlan .. [[ link - ]], - function(stdout) - local essid = stdout:match('SSID: (.-)\n') or 'N/A' - local bitrate = stdout:match('tx bitrate: (.+/s)') or 'N/A' - local message = 'Connected to: ' .. (essid or 'Loading...*') .. - '\nWireless Interface: ' .. network_interfaces.wlan .. - '\nWiFi-Strength: ' .. tostring(wifi_strength) .. '%' .. - '\nBit rate: ' .. tostring(bitrate) .. '' - - if healthy then - update_tooltip(message) - else - update_tooltip('Connected but no internet!\n' .. message) - end - - if reconnect_startup or startup then - notify_connected(essid) - update_reconnect_startup(false) - end - end - ) - end - - -- Update wifi icon based on wifi strength and health - local update_wireless_icon = function(strength) - awful.spawn.easy_async_with_shell( - check_internet_health, - function(stdout) - local widget_icon_name = 'wifi-strength' - if not stdout:match('Connected but no internet') then - if startup or reconnect_startup then - awesome.emit_signal('system::network_connected') - end - widget_icon_name = widget_icon_name .. '-' .. tostring(strength) - update_wireless_data(wifi_strength_rounded, true) - else - widget_icon_name = widget_icon_name .. '-' .. tostring(strength) .. '-alert' - update_wireless_data(wifi_strength_rounded, false) - end - widget.icon:set_image(widget_icon_dir .. widget_icon_name .. '.svg') - end - ) - end - - -- Get wifi strength - local update_wireless_strength = function() - awful.spawn.easy_async_with_shell( - [[ - awk 'NR==3 {printf "%3.0f" ,($3/70)*100}' /proc/net/wireless - ]], - function(stdout) - if not tonumber(stdout) then - return - end - wifi_strength = tonumber(stdout) - local wifi_strength_rounded = math.floor(wifi_strength / 25 + 0.5) - update_wireless_icon(wifi_strength_rounded) - end - ) - end - - update_wireless_strength() - update_startup() - end - - local update_wired = function() - - network_mode = 'wired' - - local notify_connected = function() - local message = 'Connected to internet with \"' .. network_interfaces.lan .. '\"' - local title = 'Connection Established' - local app_name = 'System Notification' - local icon = widget_icon_dir .. 'wired.svg' - network_notify(message, title, app_name, icon) - end - - awful.spawn.easy_async_with_shell( - check_internet_health, - function(stdout) - - local widget_icon_name = 'wired' - - if stdout:match('Connected but no internet') then - widget_icon_name = widget_icon_name .. '-alert' - update_tooltip( - 'Connected but no internet!' .. - '\nEthernet Interface: ' .. network_interfaces.lan .. '' - ) - else - update_tooltip('Ethernet Interface: ' .. network_interfaces.lan .. '') - if startup or reconnect_startup then - awesome.emit_signal('system::network_connected') - notify_connected() - update_startup(false) - end - update_reconnect_startup(false) - end - widget.icon:set_image(widget_icon_dir .. widget_icon_name .. '.svg') - end - ) - end - - local update_disconnected = function() - - local notify_wireless_disconnected = function(essid) - local message = 'Wi-Fi network has been disconnected' - local title = 'Connection Disconnected' - local app_name = 'System Notification' - local icon = widget_icon_dir .. 'wifi-strength-off.svg' - network_notify(message, title, app_name, icon) - end - - local notify_wired_disconnected = function(essid) - local message = 'Ethernet network has been disconnected' - local title = 'Connection Disconnected' - local app_name = 'System Notification' - local icon = widget_icon_dir .. 'wired-off.svg' - network_notify(message, title, app_name, icon) - end - - local widget_icon_name = 'wifi-strength-off' - - if network_mode == 'wireless' then - widget_icon_name = 'wifi-strength-off' - if not reconnect_startup then - update_reconnect_startup(true) - notify_wireless_disconnected() - end - elseif network_mode == 'wired' then - widget_icon_name = 'wired-off' - if not reconnect_startup then - update_reconnect_startup(true) - notify_wired_disconnected() - end - end - update_tooltip('Network is currently disconnected') - widget.icon:set_image(widget_icon_dir .. widget_icon_name .. '.svg') - end - - local check_network_mode = function() - awful.spawn.easy_async_with_shell( - [=[ - wireless="]=] .. tostring(network_interfaces.wlan) .. [=[" - wired="]=] .. tostring(network_interfaces.lan) .. [=[" - net="/sys/class/net/" - - wired_state="down" - wireless_state="down" - network_mode="" - - # Check network state based on interface's operstate value - function check_network_state() { - # Check what interface is up - if [[ "${wireless_state}" == "up" ]]; - then - network_mode='wireless' - elif [[ "${wired_state}" == "up" ]]; - then - network_mode='wired' - else - network_mode='No internet connection' - fi - } - - # Check if network directory exist - function check_network_directory() { - if [[ -n "${wireless}" && -d "${net}${wireless}" ]]; - then - wireless_state="$(cat "${net}${wireless}/operstate")" - fi - if [[ -n "${wired}" && -d "${net}${wired}" ]]; then - wired_state="$(cat "${net}${wired}/operstate")" - fi - check_network_state - } - - # Start script - function print_network_mode() { - # Call to check network dir - check_network_directory - # Print network mode - printf "${network_mode}" - } - - print_network_mode - - ]=], - function(stdout) - local mode = stdout:gsub('%\n', '') - if stdout:match('No internet connection') then - update_disconnected() - elseif stdout:match('wireless') then - update_wireless() - elseif stdout:match('wired') then - update_wired() - end - end - ) - end - - local network_updater = gears.timer { - timeout = 5, - autostart = true, - call_now = true, - callback = function() - check_network_mode() - end - } - - return widget_button -end - -return return_button diff --git a/awesome/widgets/tag-list.lua b/awesome/widgets/tag-list.lua deleted file mode 100644 index 11559d6..0000000 --- a/awesome/widgets/tag-list.lua +++ /dev/null @@ -1,168 +0,0 @@ --- ████████╗ █████╗ ██████╗ ██╗ ██╗███████╗████████╗ --- ╚══██╔══╝██╔══██╗██╔════╝ ██║ ██║██╔════╝╚══██╔══╝ --- ██║ ███████║██║ ███╗ ██║ ██║███████╗ ██║ --- ██║ ██╔══██║██║ ██║ ██║ ██║╚════██║ ██║ --- ██║ ██║ ██║╚██████╔╝ ███████╗██║███████║ ██║ --- ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝╚══════╝ ╚═╝ - --- =================================================================== --- Initialization --- =================================================================== - - -local awful = require('awful') -local wibox = require('wibox') -local dpi = require('beautiful').xresources.apply_dpi -local capi = {button = button} -local clickable_container = require('widgets.clickable-container') -local modkey = require('keys').modkey - --- define module table -local tag_list = {} - - --- =================================================================== --- Widget Creation Functions --- =================================================================== - - --- Create buttons -local function create_buttons(buttons, object) - if buttons then - local btns = {} - for _, b in ipairs(buttons) do - -- Create a proxy button object: it will receive the real - -- press and release events, and will propagate them to the - -- button object the user provided, but with the object as - -- argument. - local btn = capi.button {modifiers = b.modifiers, button = b.button} - btn:connect_signal('press', - function() - b:emit_signal('press', object) - end - ) - btn:connect_signal('release', - function() - b:emit_signal('release', object) - end - ) - btns[#btns + 1] = btn - end - - return btns - end -end - --- Update the taglist -local function list_update(w, buttons, label, data, objects) - -- update the widgets, creating them if needed - w:reset() - for i, o in ipairs(objects) do - local cache = data[o] - local ib, tb, bgb, tbm, ibm, l, bg_clickable - if cache then - ib = cache.ib - tb = cache.tb - bgb = cache.bgb - tbm = cache.tbm - ibm = cache.ibm - else - local icondpi = 10 - ib = wibox.widget.imagebox() - tb = wibox.widget.textbox() - bgb = wibox.container.background() - tbm = wibox.container.margin(tb, dpi(4), dpi(16)) - ibm = wibox.container.margin(ib, dpi(icondpi), dpi(icondpi), dpi(icondpi), dpi(icondpi)) - l = wibox.layout.fixed.horizontal() - bg_clickable = clickable_container() - - -- All of this is added in a fixed widget - l:fill_space(true) - l:add(ibm) - bg_clickable:set_widget(l) - - -- And all of this gets a background - bgb:set_widget(bg_clickable) - - bgb:buttons(create_buttons(buttons, o)) - - data[o] = { - ib = ib, - tb = tb, - bgb = bgb, - tbm = tbm, - ibm = ibm - } - end - - local text, bg, bg_image, icon, args = label(o, tb) - args = args or {} - - bgb:set_bg(bg) - if type(bg_image) == 'function' then - -- TODO: Why does this pass nil as an argument? - bg_image = bg_image(tb, o, nil, objects, i) - end - - bgb:set_bgimage(bg_image) - if icon then - ib.image = icon - else - ibm:set_margins(0) - end - - bgb.shape = args.shape - bgb.shape_border_width = args.shape_border_width - bgb.shape_border_color = args.shape_border_color - - w:add(bgb) - end -end - --- create the tag list widget -tag_list.create = function(s) - return awful.widget.taglist( - s, - awful.widget.taglist.filter.all, - awful.util.table.join( - awful.button({}, 1, - function(t) - t:view_only() - end - ), - awful.button({modkey}, 1, - function(t) - if client.focus then - client.focus:move_to_tag(t) - t:view_only() - end - end - ), - awful.button({}, 3, - awful.tag.viewtoggle - ), - awful.button({modkey}, 3, - function(t) - if client.focus then - client.focus:toggle_tag(t) - end - end - ), - awful.button({}, 4, - function(t) - awful.tag.viewprev(t.screen) - end - ), - awful.button({}, 5, - function(t) - awful.tag.viewnext(t.screen) - end - ) - ), - {}, - list_update, - wibox.layout.fixed.vertical() - ) -end - -return tag_list diff --git a/awesome/widgets/task-list.lua b/awesome/widgets/task-list.lua index 2046b49..7eda949 100644 --- a/awesome/widgets/task-list.lua +++ b/awesome/widgets/task-list.lua @@ -71,7 +71,7 @@ local function list_update(w, buttons, label, data, objects) else ib = wibox.widget.imagebox() tb = wibox.widget.textbox() - cb = clickable_container(wibox.container.margin(wibox.widget.imagebox(ICON_DIR .. "close.svg"), dpi(6), dpi(6), dpi(6), dpi(6))) + cb = clickable_container(wibox.container.margin(wibox.widget.imagebox(ICON_DIR .. "close.svg"), dpi(9), dpi(9), dpi(9), dpi(9))) cb.shape = gears.shape.circle cbm = wibox.container.margin(cb, dpi(4), dpi(8), dpi(2), dpi(2)) -- 4, 8 ,12 ,12 -- close button cbm:buttons(gears.table.join(awful.button({}, 1, nil, @@ -82,7 +82,7 @@ local function list_update(w, buttons, label, data, objects) bg_clickable = clickable_container() bgb = wibox.container.background() tbm = wibox.container.margin(tb, dpi(4), dpi(4)) - ibm = wibox.container.margin(ib, dpi(6), dpi(6), dpi(6), dpi(6)) -- 12 is default top and bottom margin --app icon + ibm = wibox.container.margin(ib, dpi(9), dpi(9), dpi(9), dpi(9)) -- 12 is default top and bottom margin --app icon l = wibox.layout.fixed.horizontal() ll = wibox.layout.fixed.horizontal() diff --git a/kitty/kitty.conf b/kitty/kitty.conf index 770be82..e523bcd 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -7,5 +7,5 @@ font_family Source Code Pro bold_font auto italic_font auto bold_italic_font auto -font_size 15 +font_size 14.5 cursor_shape block