diff options
author | zachir <zachir@librem.one> | 2023-10-19 09:44:53 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-10-19 09:44:53 -0500 |
commit | 35dd00dc4fd5c221d4f254536dc014a4c7d22a87 (patch) | |
tree | d9730c72737e29b7a51578572ec96d223b253436 | |
parent | b767b5daf3d79944b2d72675690ff8d629783ae8 (diff) |
CLA: remove unnecessary stuff for awesome config
-rw-r--r-- | awesome/rc.lua | 109 |
1 files changed, 7 insertions, 102 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index 54d17aa..7712739 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -66,12 +66,10 @@ local bling = require("bling") -- Widget definitions/initializations -local battery_widget = require("awesome-wm-widgets.batteryarc-widget.batteryarc") local mpd_widget = require("awesome-wm-widgets.mpdarc-widget.mpdarc") local volume_widget = require("awesome-wm-widgets.volume-widget.volume") local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget") local cpu_widget = require("awesome-wm-widgets.cpu-widget.cpu-widget") -local brightness_widget = require("awesome-wm-widgets.brightness-widget.brightness") local net_speed = require("awesome-wm-widgets.net-speed-widget.net-speed") -- Disable keybindings @@ -82,6 +80,10 @@ local inertmode = false local spawnatbottom = false +-- terminal +terminal="kitty" +editor = os.getenv("EDITOR") or "nvim" +editor_cmd = terminal .. " -e " .. editor -- Default modkey. -- Usually, Mod4 is the key with a logo between Control and Alt. @@ -113,17 +115,6 @@ awful.layout.layouts = { -- Config function definitions {{{ -function crcparse(substr) - local file=assert(io.open(config_dir .. "/computerrc","r")) - local line = "" - repeat - line=file:read("*line") - if line and line:find(string.format("^%s=",substr)) then - return string.sub(line,#substr + 2,-1) - end - until not line -end - function terminal_sp_cmd (spc, cmd, geo) if terminal == "st" then cflag = "-c" @@ -158,25 +149,6 @@ end -- }}} --- {{{ crcparse Definitions - --- terminal -terminal="kitty" -editor = os.getenv("EDITOR") or "nvim" -editor_cmd = terminal .. " -e " .. editor - --- is linux -function is_linux () - return crcparse("OS") == "Linux" -end - --- is openbsd -function is_obsd () - return crcparse("OS") == "OpenBSD" -end - --- }}} - --{{{ bling scratchpad definitions --{{{ sphtop local sphtop = bling.module.scratchpad { @@ -430,41 +402,6 @@ awful.screen.connect_for_each_screen(function(s) -- Create the wibox s.mywibox = awful.wibar({ position = "top", screen = s, height = 36}) - if (crcparse("snd") == "pipewire") or (crcparse("snd") == "pulseaudio") or (crcparse("snd") == "pulse") then - snd="pulse" - else - snd="default" - end - - net = crcparse("inet") - - batt = crcparse("batt") - - light = crcparse("bl") - - if batt == "y" then - battery = battery_widget { - font = font, - arc_thickness = 2, - show_current_level = false, - size = 18, - timeout = 10, - main_color = beautiful.fg_color, - bg_color = "#ffffff11", - low_level_color = "#e53935", - medium_level_color = "#c0ca33", - warning_msg_title = "Houston, we have a problem", - warning_msg_text = "Battery is dying", - warning_msg_position = "bottom_right", -- "bottom_right" is default, or top_right, top_left, bottom_left, bottom_right, top_middle, bottom_middle - warning_msg_icon = "~/.config/awesome/awesome-wm-widgets/batteryarc-widget/spaceman.jpg", - enable_battery_warning = true, - show_notification_mode = "on_click", -- "on_hover" is default, or "on_click" or "off" - notification_position = "top_right" -- "top_left is default, or top_right, top_left, bottom_left, bottom_right, top_middle, bottom_middle - } - else - battery = nil - end - -- Add widgets to the wibox ---[[ Uncomment for Linux s.mywibox:setup { @@ -480,8 +417,8 @@ awful.screen.connect_for_each_screen(function(s) layout = wibox.layout.fixed.horizontal, mpd_widget, net_speed { - font = beautiful.font2, - interface = net + font = "mononoki Nerd Font Mono 6", + interface = "enp5s0" }, ram_widget({ color_used=beautiful.bg_focus, @@ -501,44 +438,12 @@ awful.screen.connect_for_each_screen(function(s) process_info_max_length=-1, timeout=1 }), - brightness_widget { - type = "arc", - program = light, - step = 5, - base = 20, - path_to_icon = "/usr/share/icons/Paper/scalable/status/display-brightness-symbolic.svg", - timeout = 1, - tooltip = false, - percentage = false - }, volume_widget { path_to_icon = "/usr/share/icons/Paper/scalable/status/audio-volume-muted-symbolic.svg", widget_type = "arc", mute_color = "#ff111111", - device = snd, + device = "pulse", }, - battery, - mykeyboardlayout, - wibox.widget.systray(), - mytextclock, - s.mylayoutbox, - }, - } - --]] - --[[ Uncomment for OpenBSD - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - mylauncher, - s.mytaglist, - s.mypromptbox, - }, - s.mytasklist, -- Middle widget - { - layout = wibox.layout.fixed.horizontal, - mpd_widget, mykeyboardlayout, wibox.widget.systray(), mytextclock, |