diff --git a/.guix-channel b/.guix-channel index 6b897d0..fbd9710 100644 --- a/.guix-channel +++ b/.guix-channel @@ -1,4 +1,3 @@ (channel (version 0) - (directory "modules") (url "https://codeberg.org/anemofilia/radix.git")) diff --git a/README.md b/README.md index 7481572..4607d2b 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,6 @@ # GNU/Radix - - -

-This repository features my [GNU Guix](https://guix.gnu.org/) configuration and custom channel. -![awesome-1](./screenshots/awesome-1.jpg) -![awesome-2](./screenshots/awesome-2.jpg) - -## Here you can find (at the moment) -### my personal configurations of -- awesome -- doas -- fish -- git -- GNU Bash -- GNU Emacs -- GNU Info -- kakoune -- lf -- mpv -- newsraft -- thinkfan -- zathura - -### and some (not too impressive) [guile modules](https://codeberg.org/anemofilia/radix/src/branch/main/modules/radix) +This repository features my [GNU Guix](https://guix.gnu.org/) channel. (Most packages and services here are, at least intended, to be upstreamed.) ## Usage To update Radix along with Guix via guix pull, write the following definition to ~/.config/guix/channels.scm, diff --git a/files/awesome/rc.lua b/files/awesome/rc.lua deleted file mode 100644 index f3ee515..0000000 --- a/files/awesome/rc.lua +++ /dev/null @@ -1,900 +0,0 @@ --- awesome_mode: api-level=4:screen=on --- If LuaRocks is installed, make sure that packages installed through it are --- found (e.g. lgi). If LuaRocks is not installed, do nothing. -pcall(require, "luarocks.loader") - --- @DOC_REQUIRE_SECTION@ --- Standard awesome library -local gears = require("gears") -local awful = require("awful") - require("awful.autofocus") - require("collision")() - --- Widget and layout library -local wibox = require("wibox") - --- Theme handling library -local beautiful = require("beautiful") - --- Notification library -local naughty = require("naughty") - --- Declarative object management -local ruled = require("ruled") -local menubar = require("menubar") -local hotkeys_popup = require("awful.hotkeys_popup") - --- Freedesktop -local freedesktop = require("freedesktop") - --- Lain utils -local lain = require("lain") - --- DPI -local dpi = require("beautiful.xresources").apply_dpi - --- Table -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - --- Enable hotkeys help widget for VIM and other apps --- when client with a matching name is opened: --- require("awful.hotkeys_popup.keys") - --- {{{ Error handling --- Check if awesome encountered an error during startup and fell back to --- another config (This code will only ever execute for the fallback config) --- @DOC_ERROR_HANDLING@ -naughty.connect_signal("request::display_error", function(message, startup) - naughty.notification { - urgency = "critical", - title = "Oops, an error happened"..(startup and " during startup!" or "!"), - message = message - } -end) --- }}} - --- {{{ Variable definitions --- @DOC_LOAD_THEME@ --- Themes define colours, icons, font and wallpapers. -beautiful.init(gears.filesystem.get_dir("config").."/themes/current.lua") -local theme = beautiful.get() - --- @DOC_DEFAULT_APPLICATIONS@ --- This is used later as the default terminal and editor to run. -terminal = os.getenv("TERMINAL") -editor = os.getenv("EDITOR") -browser = os.getenv("BROWSER") -editor_cmd = terminal.." -e "..editor -file_manager = terminal.." -g 137x31-320+16 -c Lf -e /home/radio/.local/bin/lf/lfrun" -irc_client = terminal.." -g 137x31-320+16 -c Weechat -e weechat" -rss_reader = terminal.." -g 137x31-320+16 -e newsraft" -music_player = terminal.." -g 137x31-320+16 -e ncmpcpp" -link_handler = "dmenu_link" - --- Default modkey. --- Usually, Mod4 is the key with a logo between Control and Alt. --- If you do not like this or do not have such a key, --- I suggest you to remap Mod4 to another key using xmodmap or other tools. --- However, you can use another modifier like Mod1, but it may interact with others. -modkey = "Mod4" -altkey = "Mod1" --- }}} - --- {{{ Menu --- @DOC_MENU@ --- Create a launcher widget and a main menu -myawesomemenu = { - { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, - { "manual", terminal .. " -e man awesome" }, - { "edit config", editor_cmd .. " " .. awesome.conffile }, - { "restart", awesome.restart }, - { "quit", function() awesome.quit() end }, -} - -mymainmenu = freedesktop.menu.build { - before = { - { "awesome", myawesomemenu }, - -- other triads can be put here - }, - after = { - { "open terminal", terminal }, - -- other triads can be put here - } -} - -mylauncher = awful.widget.launcher({ - image = beautiful.awesome_icon, - menu = mymainmenu -}) - --- Menubar configuration -menubar.utils.terminal = terminal --- }}} - --- {{{ Tag layout --- @DOC_LAYOUT@ --- Table of layouts to cover with awful.layout.inc, order matters. -tag.connect_signal("request::default_layouts", - function() - awful.layout.append_default_layouts({ - awful.layout.suit.tile, - awful.layout.suit.tile.bottom, - awful.layout.suit.max, - }) - end) --- }}} - --- {{{ Wallpaper --- @DOC_WALLPAPER@ -screen.connect_signal("request::wallpaper", - function(s) - awful.wallpaper { - screen = s, - widget = { - { - image = beautiful.wallpaper, - upscale = true, - downscale = true, - widget = wibox.widget.imagebox, - }, - valign = "center", - halign = "center", - tiled = false, - widget = wibox.container.tile, - } - } - end) --- }}} - --- {{{ Wibar -local markup = lain.util.markup -local separators = lain.util.separators - --- Keyboard map indicator and switcher -mykeyboardlayout = awful.widget.keyboardlayout() - --- Create a textclock widget -mytextclock = wibox.widget.textclock() - -local clock = awful.widget.watch( - "date +'%a %d %b %R'", 60, - function(widget, stdout) - widget:set_markup(" " .. markup.font(beautiful.font, stdout)) - end -) - --- Calendar -beautiful.cal = lain.widget.cal({ - icons = "", - attach_to = { clock }, - notification_preset = { - font = beautiful.font, - fg = beautiful.fg_normal, - bg = beautiful.bg_normal - } -}) - --- MPD -local musicplr = terminal .. " -title Music -g 137x31-320+16 -e ncmpcpp" -local mpdicon = wibox.widget.imagebox(beautiful.widget_music) -mpdicon:buttons(my_table.join( - awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end), - awful.button({ }, 1, function () - os.execute("mpc prev") - beautiful.mpd.update() - end), - awful.button({ }, 2, function () - os.execute("mpc toggle") - beautiful.mpd.update() - end), - awful.button({ }, 3, function () - os.execute("mpc next") - beautiful.mpd.update() - end))) -beautiful.mpd = lain.widget.mpd({ - settings = function() - if mpd_now.state == "play" then - artist = mpd_now.artist .. " " - title = mpd_now.title .. " " - mpdicon:set_image(beautiful.widget_music_on) - elseif mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - else - artist = "" - title = "" - mpdicon:set_image(beautiful.widget_music) - end - - widget:set_markup(markup.font(beautiful.font, markup("#8581E0", artist) .. title)) - end -}) - --- MEM -local memicon = wibox.widget.imagebox(beautiful.widget_mem) -local mem = lain.widget.mem({ - settings = function() - widget:set_markup(markup.font(beautiful.font, mem_now.used .. "MB ")) - end -}) - --- CPU -local cpuicon = wibox.widget.imagebox(beautiful.widget_cpu) -local cpu = lain.widget.cpu({ - settings = function() - widget:set_markup(markup.font(beautiful.font, cpu_now.usage .. "% ")) - end -}) - --- Coretemp -local tempicon = wibox.widget.imagebox(beautiful.widget_temp) -local temp = lain.widget.temp({ - settings = function() - widget:set_markup(markup.font(beautiful.font, math.ceil(coretemp_now) .. "°C ")) - end -}) - --- Battery -local baticon = wibox.widget.imagebox(beautiful.widget_battery) -local bat = lain.widget.bat({ - settings = function() - if bat_now.status and bat_now.status ~= "N/A" then - if bat_now.ac_status == 1 then - baticon:set_image(beautiful.widget_ac) - elseif bat_now.perc and tonumber(bat_now.perc) < 25 then - baticon:set_image(beautiful.widget_battery_20) - elseif bat_now.perc and tonumber(bat_now.perc) < 45 then - baticon:set_image(beautiful.widget_battery_40) - elseif bat_now.perc and tonumber(bat_now.perc) < 65 then - baticon:set_image(beautiful.widget_battery_60) - elseif bat_now.perc and tonumber(bat_now.perc) < 85 then - baticon:set_image(beautiful.widget_battery_80) - else - baticon:set_image(beautiful.widget_battery_100) - end - widget:set_markup(markup.font(beautiful.font, bat_now.perc .. "% ")) - else - widget:set_markup(markup.font(beautiful.font, "AC ")) - baticon:set_image(beautiful.widget_ac) - end - end -}) - --- ALSA volume -local volicon = wibox.widget.imagebox(beautiful.widget_vol) -beautiful.volume = lain.widget.alsa({ - settings = function() - if volume_now.status == "off" then - volicon:set_image(beautiful.widget_vol_mute) - elseif volume_now.level then - if tonumber(volume_now.level) == 0 then - volicon:set_image(beautiful.widget_vol_no) - elseif tonumber(volume_now.level) <= 50 then - volicon:set_image(beautiful.widget_vol_low) - else - volicon:set_image(beautiful.widget_vol) - end - end - - widget:set_markup(markup.font(beautiful.font, volume_now.level .. "% ")) - end -}) -beautiful.volume.widget:buttons( - awful.util.table.join( - awful.button({}, 4, function () - awful.util.spawn("amixer set Master 1%+") - beautiful.volume.update() - end), - awful.button({}, 5, function () - awful.util.spawn("amixer set Master 1%-") - beautiful.volume.update() - end) -)) - --- Net -local netdownicon = wibox.widget.imagebox(beautiful.widget_netdown) -local netdowninfo = wibox.widget.textbox() -local netupicon = wibox.widget.imagebox(beautiful.widget_netup) -local netupinfo = lain.widget.net({ - settings = function() - widget:set_markup(markup.font(beautiful.font, net_now.sent .. " ")) - netdowninfo:set_markup(markup.font(beautiful.font, net_now.received .. " ")) - end -}) - --- Separators -local spr = wibox.widget.textbox(' ') -local arrl_dl = separators.arrow_left(beautiful.bg_focus, "alpha") -local arrl_ld = separators.arrow_left("alpha", beautiful.bg_focus) - --- @DOC_FOR_EACH_SCREEN@ -screen.connect_signal("request::desktop_decoration", function(s) - -- Each screen has its own tag table. - awful.tag({ "α", "β", "γ", "δ", "ε", "ζ", "η" }, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - - -- Create an imagebox widget which will contain an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox { - screen = s, - buttons = { - awful.button({ }, 1, function () awful.layout.inc( 1) end), - awful.button({ }, 3, function () awful.layout.inc(-1) end), - awful.button({ }, 4, function () awful.layout.inc(-1) end), - awful.button({ }, 5, function () awful.layout.inc( 1) end), - } - } - - -- Create a taglist widget - s.mytaglist = awful.widget.taglist { - screen = s, - filter = awful.widget.taglist.filter.all, - buttons = { - 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) - 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), - } - } - - -- @TASKLIST_BUTTON@ - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist { - screen = s, - filter = awful.widget.tasklist.filter.currenttags, - buttons = { - awful.button({ }, 1, function (c) - c:activate { context = "tasklist", action = "toggle_minimization" } - end), - awful.button({ }, 3, function() awful.menu.client_list { theme = { width = 250 } } end), - awful.button({ }, 4, function() awful.client.focus.byidx(-1) end), - awful.button({ }, 5, function() awful.client.focus.byidx( 1) end), - } - } - - -- @DOC_WIBAR@ - -- Create the wibox - s.mywibox = awful.wibar { - height = dpi(19), - position = "top", - screen = s, - -- @DOC_SETUP_WIDGETS@ - widget = { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - --mylauncher, - s.mytaglist, - s.mypromptbox, - }, - -- Middle widget - s.mytasklist, - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - --mykeyboardlayout, - --wibox.widget.systray(), - spr, - arrl_ld, - wibox.container.background(netdownicon, beautiful.bg_focus), - wibox.container.background(netdowninfo, beautiful.bg_focus), - wibox.container.background(netupicon, beautiful.bg_focus), - wibox.container.background(netupinfo.widget, beautiful.bg_focus), - arrl_dl, - wibox.container.background(memicon, beautiful.bg_normal), - wibox.container.background(mem.widget, beautiful.bg_normal), - arrl_ld, - wibox.container.background(cpuicon, beautiful.bg_focus), - wibox.container.background(cpu.widget, beautiful.bg_focus), - arrl_dl, - wibox.container.background(tempicon, beautiful.bg_normal), - wibox.container.background(temp.widget, beautiful.bg_normal), - arrl_ld, - wibox.container.background(volicon, beautiful.bg_focus), - wibox.container.background(beautiful.volume.widget, beautiful.bg_focus), - arrl_dl, - wibox.container.background(baticon, beautiful.bg_normal), - wibox.container.background(bat.widget, beautiful.bg_normal), - arrl_ld, - wibox.container.background(clock, beautiful.bg_focus), - wibox.container.background(spr, beautiful.bg_focus), - arrl_dl, - wibox.container.background(s.mylayoutbox, beautiful.bg_normal), - }, - } - } -end) - --- }}} - --- {{{ Mouse bindings --- @DOC_ROOT_BUTTONS@ -awful.mouse.append_global_mousebindings({ - awful.button({ }, 2, function () mymainmenu:toggle() end), - --awful.button({ }, 4, awful.tag.viewprev), - --awful.button({ }, 5, awful.tag.viewnext), -}) --- }}} - --- {{{ Key bindings --- @DOC_GLOBAL_KEYBINDINGS@ - --- General Awesome keys -awful.keyboard.append_global_keybindings({ - awful.key({ modkey, }, "s", - function () hotkeys_popup.widget.new( - { width = 909, - height = 0.525*awful.screen.focused().workarea.height, - font = "Meslo LG M DZ 8", - description_font = "Meslo LG M DZ 8"}):show_help() end, - {description="show help", group="awesome"}), - awful.key({ modkey, "Control" }, "r", awesome.restart, - {description = "reload awesome", group = "awesome"}), - awful.key({ modkey, "Control" }, "q", awesome.quit, - {description = "quit awesome", group = "awesome"}), - awful.key({ altkey, }, "Print", function () - os.execute("screenshot activewindow") end, - {description = "print focused window", group = "launcher"}), - awful.key({ }, "Print", function () - os.execute("screenshot selectregion") end, - {description = "print selected region", group = "launcher"}), - awful.key({ }, "XF86WebCam", function () - os.execute("cam") end, - {description = "run cam", group = "launcher"}), - awful.key({ modkey, }, "c", function () - awful.spawn("keepassxc") end, - {description = "run keepassxc", group = "launcher"}), - awful.key({ modkey, }, "a", function () - awful.spawn("telegram-desktop") end, - {description = "run telegram-desktop", group = "launcher"}), - awful.key({ modkey, }, "r", function () - awful.spawn.with_shell("notify-send $(rem)") end, - {description = "run telegram-desktop", group = "launcher"}), - awful.key({ modkey, }, "w", function () - awful.spawn.raise_or_spawn(irc_client) end, - {description = "run irc client", group = "launcher"}), - awful.key({ modkey, }, "e", function () - awful.spawn(editor_cmd) end, - {description = "run editor", group = "launcher"}), - awful.key({ modkey, }, "Down", function () - awful.spawn(music_player) end, - {description = "run music player", group = "launcher"}), - awful.key({ modkey, }, "b", function () - awful.spawn(browser) end, - {description = "run browser", group = "launcher"}), - awful.key({ modkey, }, "d", function () - awful.spawn(file_manager) end, - {description = "run file manager", group = "launcher"}), - awful.key({ }, "XF86Launch1", function () - awful.spawn.raise_or_spawn(rss_reader) end, - {description = "run newsraft", group = "launcher"}), - awful.key({"Mod4" }, "x", function () - os.execute("xkill") end, - {description = "launch xkill", group = "launcher"}), - awful.key({"Mod4" }, "z", function () - os.execute("anna") end, - {description = "loot some ships", group = "launcher"}), - awful.key({"Mod4" }, "g", function () - awful.spawn(terminal.." -e guix repl") end, - {description = "run link handler", group = "launcher"}), - awful.key({ modkey, }, "Return", function () - awful.spawn(terminal) end, - {description = "run terminal", group = "launcher",}), - awful.key({ modkey, }, ":", function () - awful.screen.focused().mypromptbox:run() end, - {description = "run prompt", group = "launcher"}), -}) - --- Tags related keybindings -awful.keyboard.append_global_keybindings({ - awful.key({ modkey, }, "h", awful.tag.viewprev, - {description = "focus previous tag", group = "tag"}), - awful.key({ modkey, }, "l", awful.tag.viewnext, - {description = "focus next tag", group = "tag"}), - awful.key({ modkey, }, "Escape", awful.tag.history.restore, - {description = "go back", group = "tag"}), -}) - --- Focus related keybindings -awful.keyboard.append_global_keybindings({ - awful.key({ modkey, }, "j", function () - awful.client.focus.byidx( 1) end, - {description = "focus previous by index", group = "client"} - ), - awful.key({ modkey, }, "k", function () - awful.client.focus.byidx(-1) end, - {description = "focus next by index", group = "client"} - ), - awful.key({ modkey, }, "Tab", function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end, - {description = "go back", group = "client"}), - awful.key({ modkey, "Control" }, "h", function () - awful.screen.focus_relative( 1) end, - {description = "focus the next screen", group = "screen"}), - awful.key({ modkey, "Control" }, "l", function () - awful.screen.focus_relative(-1) end, - {description = "focus the previous screen", group = "screen"}), - awful.key({ modkey, "Control" }, ".", function () - local c = awful.client.restore() - -- Focus restored client - if c then - c:activate { raise = true, context = "key.unminimize" } - end - end, - {description = "restore minimized", group = "client"}), -}) - --- Layout related keybindings -awful.keyboard.append_global_keybindings({ - awful.key({ modkey, }, "u", awful.client.urgent.jumpto, - {description = "jump to urgent client", group = "client"}), - awful.key({ modkey, "Control" }, "h", function () - awful.tag.incnmaster( 1, nil, true) end, - {description = "increase the number of master clients", group = "layout"}), - awful.key({ modkey, "Control" }, "l", function () - awful.tag.incnmaster(-1, nil, true) end, - {description = "decrease the number of master clients", group = "layout"}), - awful.key({ modkey, }, "space", function () - awful.layout.inc( 1) end, - {description = "select next", group = "layout"}), - awful.key({ modkey, "Control" }, "space", function () - awful.layout.inc(-1) end, - {description = "select previous", group = "layout"}), -}) - --- @DOC_NUMBER_KEYBINDINGS@ - -awful.keyboard.append_global_keybindings({ - awful.key { - modifiers = { modkey }, - keygroup = "numrow", - description = "only view tag", - group = "tag", - on_press = function (index) - local screen = awful.screen.focused() - local tag = screen.tags[index] - if tag then - tag:view_only() - end - end, - }, - awful.key { - modifiers = { modkey, "Control" }, - keygroup = "numrow", - description = "toggle tag", - group = "tag", - on_press = function (index) - local screen = awful.screen.focused() - local tag = screen.tags[index] - if tag then - awful.tag.viewtoggle(tag) - end - end, - }, - awful.key { - modifiers = { modkey, "Shift" }, - keygroup = "numrow", - description = "move focused client to tag", - group = "tag", - on_press = function (index) - if client.focus then - local tag = client.focus.screen.tags[index] - if tag then - client.focus:move_to_tag(tag) - end - end - end, - }, - awful.key { - modifiers = { modkey, "Control", "Shift" }, - keygroup = "numrow", - description = "toggle focused client on tag", - group = "tag", - on_press = function (index) - if client.focus then - local tag = client.focus.screen.tags[index] - if tag then - client.focus:toggle_tag(tag) - end - end - end, - }, -}) - --- Audio related keybindings -awful.keyboard.append_global_keybindings({ - awful.key({ }, "XF86AudioRaiseVolume", function () - awful.util.spawn("amixer -q set Master 1%+", false) end, - {description = "volume up", group = "hotkeys"}), - awful.key({ }, "XF86AudioLowerVolume", function () - awful.util.spawn("amixer -q set Master 1%-", false) end, - {description = "volume down", group = "hotkeys"}), - awful.key({ }, "XF86AudioMute", function () - awful.util.spawn("amixer -D set Master 1+ toggle", false) end, - {description = "toggle mute", group = "hotkeys"}), -}) - --- MPD related keybinds -awful.keyboard.append_global_keybindings({ - awful.key({ }, "XF86AudioPlay", function () - os.execute("mpc toggle") - end, - {description = "mpc toggle", group = "widgets"}), - awful.key({ }, "XF86AudioStop", function () - os.execute("mpc stop") - end, - {description = "mpc stop", group = "widgets"}), - awful.key({ }, "XF86AudioPrev", function () - os.execute("mpc prev") - end, - {description = "mpc prev", group = "widgets"}), - awful.key({ }, "XF86AudioNext", function () - os.execute("mpc next") - end, - {description = "mpc next", group = "widgets"}), -}) - --- Generic hotkeys -awful.keyboard.append_global_keybindings({ - awful.key({ "Control", }, "space", function() - naughty.destroy_all_notifications() end, - {description = "destroy notifications", group = "hotkeys"}), - awful.key({ }, "XF86Sleep", function () - os.execute("doas zzz") end, - {description = "Sleep", group = "hotkeys"}), - awful.key({ }, "XF86Battery", function () - os.execute("i3lock -u -i /home/radio/Pictures/guix-artwork/backgrounds/guix-silver-checkered-16-9.svg") end, - {description = "lock screen", group = "hotkeys"}), -}) - --- Show/hide wibox -awful.keyboard.append_global_keybindings({ - awful.key({ modkey }, "Up", function () - for s in screen do - s.mywibox.visible = not s.mywibox.visible - end - end, - {description = "toggle wibox", group = "awesome"}), -}) - --- @DOC_CLIENT_BUTTONS@ -client.connect_signal("request::default_mousebindings", function() - awful.mouse.append_client_mousebindings({ - awful.button({ }, 1, function (c) - c:activate { context = "mouse_click" } end), - awful.button({ modkey, }, 1, function (c) - c:activate { context = "mouse_click", action = "mouse_move" } end), - awful.button({ modkey, }, 3, function (c) - c:activate { context = "mouse_click", action = "mouse_resize"} end), - }) -end) - --- @DOC_CLIENT_KEYBINDINGS@ -client.connect_signal("request::default_keybindings", function() - awful.keyboard.append_client_keybindings({ - awful.key({ modkey, }, "f", function (c) - c.fullscreen = not c.fullscreen - c:raise() - end, - {description = "toggle fullscreen", group = "client"}), - awful.key({ modkey, }, "q", function (c) - c:kill() end, - {description = "close", group = "client"}), - awful.key({ modkey, "Shift" }, "Return", function (c) - c:swap(awful.client.getmaster()) end, - {description = "move to master", group = "client"}), - awful.key({ modkey, }, "o", function (c) - c:move_to_screen() end, - {description = "move to screen", group = "client"}), - awful.key({ modkey, }, "t", function (c) - c.ontop = not c.ontop end, - {description = "toggle keep on top", group = "client"}), - awful.key({ modkey, }, ".", function (c) - c.minimized = true end , - {description = "minimize", group = "client"}), - awful.key({ modkey, }, "m", lain.util.magnify_client, - {description = "toggle magnify", group = "client"})}) -end) - --- }}} - --- {{{ Rules --- Rules to apply to new clients. --- @DOC_RULES@ -ruled.client.connect_signal("request::rules", function() - -- @DOC_GLOBAL_RULE@ - -- All clients will match this rule. - ruled.client.append_rule { - id = "global", - rule = { }, - properties = { - focus = awful.client.focus.filter, - raise = true, - screen = awful.screen.preferred, - placement = awful.placement.no_overlap+awful.placement.no_offscreen - } - } - - -- @DOC_FLOATING_RULE@ - -- Floating clients. - ruled.client.append_rule { - id = "floating", - rule_any = { - instance = { - "copyq", - "pinentry" - }, - class = { - "Arandr", - "TelegramDesktop", - "KeePassXC", - "Gpick", - "Keepassxc", - "Tor Browser", - "Weechat", - "Wpa_gui", - "veromix", - "xtightvncviewer" - }, - -- Note that the name property shown in xprop might be set slightly after creation of the client - -- and the name shown there might not match defined rules here. - name = { - "Event Tester", -- xev. - }, - role = { - "AlarmWindow", -- Thunderbird's calendar. - "ConfigManager", -- Thunderbird's about:config. - "pop-up", -- e.g. Browser's (detached) Developer Tools. - } - }, - properties = { floating = true } - } - - -- Please st, respect my size hints :( - ruled.client.append_rule { - id = "respeitador de size hints", - rule_any = { - class = {"Emacs", "st-256color"}, - }, - properties = { size_hints_honor = false } - } - - -- @DOC_ONTOP_RULE@ - -- Ontop clients. - ruled.client.append_rule { - id = "ontop", - rule_any = { - name = { "Media viewer" }, - class = { "mpv" }, - }, - properties = { ontop = true }, - } - - -- Establish a default size and position for telegram - ruled.client.append_rule { - id = "TelegramDesktop", - rule_any = { - class = { "TelegramDesktop" }, - }, - except_any = { - name = { "Choose Files", "Media viewer" } - }, - properties = { - above = true, - placement = awful.placement.centered, - width = 380, - height = awful.screen.focused().workarea.height - 4 * beautiful.useless_gap - 2 - } - } - - -- @DOC_DIALOG_RULE@ - -- Add titlebars to normal clients and dialogs - ruled.client.append_rule { - -- @DOC_CSD_TITLEBARS@ - id = "titlebars", - rule_any = { type = { "normal", "dialog" } }, - properties = { titlebars_enabled = false } - } - -end) --- }}} - --- {{{ Titlebars --- @DOC_TITLEBARS@ --- Add a titlebar if titlebars_enabled is set to true in the rules. -client.connect_signal("request::titlebars", function(c) - -- buttons for the titlebar - local buttons = { - awful.button({ }, 1, function() - c:activate { context = "titlebar", action = "mouse_move" } - end), - awful.button({ }, 3, function() - c:activate { context = "titlebar", action = "mouse_resize"} - end), - } - - awful.titlebar(c).widget = { - { -- Left - awful.titlebar.widget.iconwidget(c), - buttons = buttons, - layout = wibox.layout.fixed.horizontal - }, - { -- Middle - { -- Title - halign = "center", - widget = awful.titlebar.widget.titlewidget(c) - }, - buttons = buttons, - layout = wibox.layout.flex.horizontal - }, - { -- Right - awful.titlebar.widget.floatingbutton (c), - awful.titlebar.widget.maximizedbutton(c), - awful.titlebar.widget.stickybutton (c), - awful.titlebar.widget.ontopbutton (c), - awful.titlebar.widget.closebutton (c), - layout = wibox.layout.fixed.horizontal() - }, - layout = wibox.layout.align.horizontal - } -end) --- }}} - ---{{{ Autorun programs -autorun = true -autorunApps = { - "xrdb -load /home/radio/.config/x11/xresources", - "keepassxc", - "/home/radio/.profile", - "setxkbmap -layout 'us,br' -option 'grp:menu_switch,parens:swap_brackets,caps:swapescape'", - "xmodmap /home/radio/.config/x11/xmodmap", - "xset r rate 160 35", - "xset b off", - "xbanish", - "oneko -tofocus -speed 20 -fg '#101010' -bg '#606060'", - "oneko -tofocus -speed 22 -position 0x0+25+0", - } -if autorun then - for app = 1, #autorunApps do - awful.util.spawn(autorunApps[app]) - end -end ----}}} - - --- {{{ Notifications - -ruled.notification.connect_signal('request::rules', function() - -- All notifications will match this rule. - ruled.notification.append_rule { - rule = { }, - properties = { - screen = awful.screen.preferred, - implicit_timeout = 5, - } - } -end) - -naughty.connect_signal("request::display", function(n) - naughty.layout.box { notification = n } -end) - --- }}} - --- Enable sloppy focus, so that focus follows mouse. -client.connect_signal("mouse::enter", function(c) - c:activate { context = "mouse_enter", raise = false } -end) diff --git a/files/awesome/themes/anemofilia-old/icons/ac.png b/files/awesome/themes/anemofilia-old/icons/ac.png deleted file mode 100755 index 92c74fd..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/ac.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/ac.png~ b/files/awesome/themes/anemofilia-old/icons/ac.png~ deleted file mode 100755 index 1298817..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/ac.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_100.png b/files/awesome/themes/anemofilia-old/icons/battery_100.png deleted file mode 100644 index 428b4ed..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_100.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_20.png b/files/awesome/themes/anemofilia-old/icons/battery_20.png deleted file mode 100644 index 8e4305f..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_20.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_40.png b/files/awesome/themes/anemofilia-old/icons/battery_40.png deleted file mode 100644 index ad6fc38..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_40.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_60.png b/files/awesome/themes/anemofilia-old/icons/battery_60.png deleted file mode 100644 index f7c6d78..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_60.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_80.png b/files/awesome/themes/anemofilia-old/icons/battery_80.png deleted file mode 100644 index 7f31597..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_80.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_empty.png b/files/awesome/themes/anemofilia-old/icons/battery_empty.png deleted file mode 100755 index b841ace..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_empty.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_empty.png~ b/files/awesome/themes/anemofilia-old/icons/battery_empty.png~ deleted file mode 100755 index 84645aa..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_empty.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/battery_low.png~ b/files/awesome/themes/anemofilia-old/icons/battery_low.png~ deleted file mode 100755 index 8d44edf..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/battery_low.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/centerwork.png b/files/awesome/themes/anemofilia-old/icons/centerwork.png deleted file mode 100755 index 9071516..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/centerwork.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/centerworkh.png b/files/awesome/themes/anemofilia-old/icons/centerworkh.png deleted file mode 100755 index b1d1379..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/centerworkh.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/cpu.png b/files/awesome/themes/anemofilia-old/icons/cpu.png deleted file mode 100755 index e493262..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/cpu.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/cpu.png~ b/files/awesome/themes/anemofilia-old/icons/cpu.png~ deleted file mode 100755 index 985eb65..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/cpu.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/dwindle.png b/files/awesome/themes/anemofilia-old/icons/dwindle.png deleted file mode 100755 index 649ea99..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/dwindle.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/fairh.png b/files/awesome/themes/anemofilia-old/icons/fairh.png deleted file mode 100755 index 66b7125..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/fairh.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/fairv.png b/files/awesome/themes/anemofilia-old/icons/fairv.png deleted file mode 100755 index 13c4836..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/fairv.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/floating1.png b/files/awesome/themes/anemofilia-old/icons/floating1.png deleted file mode 100644 index 05cca28..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/floating1.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/hdd.png b/files/awesome/themes/anemofilia-old/icons/hdd.png deleted file mode 100755 index 0fb6833..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/hdd.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/keyboardicon.png b/files/awesome/themes/anemofilia-old/icons/keyboardicon.png deleted file mode 100644 index 13e2a24..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/keyboardicon.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/magnifier.png b/files/awesome/themes/anemofilia-old/icons/magnifier.png deleted file mode 100755 index 60d3e0d..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/magnifier.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/mail.png b/files/awesome/themes/anemofilia-old/icons/mail.png deleted file mode 100755 index 75a02fb..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/mail.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/mail_on.png b/files/awesome/themes/anemofilia-old/icons/mail_on.png deleted file mode 100755 index d5a15b2..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/mail_on.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/max.png b/files/awesome/themes/anemofilia-old/icons/max.png deleted file mode 100755 index 0cba687..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/max.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/max.png~ b/files/awesome/themes/anemofilia-old/icons/max.png~ deleted file mode 100755 index bea6b55..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/max.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/mem.png b/files/awesome/themes/anemofilia-old/icons/mem.png deleted file mode 100755 index 5b2910e..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/mem.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/net.png b/files/awesome/themes/anemofilia-old/icons/net.png deleted file mode 100755 index bc42fdc..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/net.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/net_down.png b/files/awesome/themes/anemofilia-old/icons/net_down.png deleted file mode 100755 index a7e76ae..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/net_down.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/net_down.png~ b/files/awesome/themes/anemofilia-old/icons/net_down.png~ deleted file mode 100755 index 09433b1..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/net_down.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/net_up.png b/files/awesome/themes/anemofilia-old/icons/net_up.png deleted file mode 100755 index 827db64..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/net_up.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/net_up.png~ b/files/awesome/themes/anemofilia-old/icons/net_up.png~ deleted file mode 100755 index 395d014..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/net_up.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/net_wired.png b/files/awesome/themes/anemofilia-old/icons/net_wired.png deleted file mode 100755 index e8cc2bd..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/net_wired.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/note.png b/files/awesome/themes/anemofilia-old/icons/note.png deleted file mode 100755 index 4cadb42..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/note.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/note_on.png b/files/awesome/themes/anemofilia-old/icons/note_on.png deleted file mode 100755 index ac4c19e..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/note_on.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/scissors.png b/files/awesome/themes/anemofilia-old/icons/scissors.png deleted file mode 100755 index f8c700d..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/scissors.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/spiral.png b/files/awesome/themes/anemofilia-old/icons/spiral.png deleted file mode 100755 index d9ee0f6..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/spiral.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/submenu.png b/files/awesome/themes/anemofilia-old/icons/submenu.png deleted file mode 100755 index b55ebce..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/submenu.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/task.png b/files/awesome/themes/anemofilia-old/icons/task.png deleted file mode 100755 index 9701b68..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/task.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/temp.png b/files/awesome/themes/anemofilia-old/icons/temp.png deleted file mode 100755 index a0cf39f..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/temp.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/tile1.png b/files/awesome/themes/anemofilia-old/icons/tile1.png deleted file mode 100644 index 3f1b72f..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/tile1.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/tilebottom1.png b/files/awesome/themes/anemofilia-old/icons/tilebottom1.png deleted file mode 100644 index 03120f0..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/tilebottom1.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/tileleft1.png b/files/awesome/themes/anemofilia-old/icons/tileleft1.png deleted file mode 100644 index 16b12ce..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/tileleft1.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/tiletop1.png b/files/awesome/themes/anemofilia-old/icons/tiletop1.png deleted file mode 100644 index f16a015..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/tiletop1.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/close_focus.png b/files/awesome/themes/anemofilia-old/icons/titlebar/close_focus.png deleted file mode 100755 index b2051b0..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/close_focus.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/close_normal.png b/files/awesome/themes/anemofilia-old/icons/titlebar/close_normal.png deleted file mode 100755 index da6028c..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/close_normal.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_active.png deleted file mode 100755 index 5fe84c0..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_inactive.png deleted file mode 100755 index 47f19f6..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_active.png deleted file mode 100755 index 576fa36..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_inactive.png deleted file mode 100755 index 4adc5e9..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_active.png deleted file mode 100755 index 7d9a11a..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_inactive.png deleted file mode 100755 index bce1d00..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_active.png deleted file mode 100755 index 9f24945..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_inactive.png deleted file mode 100755 index 2e56d32..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_active.png deleted file mode 100755 index 41a69e2..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_inactive.png deleted file mode 100755 index 2f3a2be..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_active.png deleted file mode 100755 index 0f937b7..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_inactive.png deleted file mode 100755 index a9a3206..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_active.png deleted file mode 100755 index a9bc8a2..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_inactive.png deleted file mode 100755 index 5493d8e..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_active.png b/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_active.png deleted file mode 100755 index 1e150f5..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_active.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_inactive.png b/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_inactive.png deleted file mode 100755 index 7e6c99b..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_inactive.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol.png b/files/awesome/themes/anemofilia-old/icons/vol.png deleted file mode 100644 index 17335e7..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol.png~ b/files/awesome/themes/anemofilia-old/icons/vol.png~ deleted file mode 100644 index 7c3be43..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol_low.png b/files/awesome/themes/anemofilia-old/icons/vol_low.png deleted file mode 100644 index 2c78312..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol_low.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol_low.png~ b/files/awesome/themes/anemofilia-old/icons/vol_low.png~ deleted file mode 100644 index c85a146..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol_low.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol_mute.png b/files/awesome/themes/anemofilia-old/icons/vol_mute.png deleted file mode 100644 index bb6e4cb..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol_mute.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol_mute.png~ b/files/awesome/themes/anemofilia-old/icons/vol_mute.png~ deleted file mode 100644 index 8f3b431..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol_mute.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol_no.png b/files/awesome/themes/anemofilia-old/icons/vol_no.png deleted file mode 100644 index 8576456..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol_no.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/icons/vol_no.png~ b/files/awesome/themes/anemofilia-old/icons/vol_no.png~ deleted file mode 100644 index 0649889..0000000 Binary files a/files/awesome/themes/anemofilia-old/icons/vol_no.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia-old/theme.lua b/files/awesome/themes/anemofilia-old/theme.lua deleted file mode 100644 index e10956c..0000000 --- a/files/awesome/themes/anemofilia-old/theme.lua +++ /dev/null @@ -1,380 +0,0 @@ ---[[ - _ __ _ _ _ _ _ - / \ _ __ ___ _ __ ___ ___ / _(_| (_) __ _ | |_| |__ ___ _ __ ___ ___ - / _ \ | '_ \ / _ | '_ ` _ \ / _ \| |_| | | |/ _` | | __| '_ \ / _ | '_ ` _ \ / _ \ - / ___ \| | | | __| | | | | | (_) | _| | | | (_| | | |_| | | | __| | | | | | __/ -/_/ \_|_| |_|\___|_| |_| |_|\___/|_| |_|_|_|\__,_| \__|_| |_|\___|_| |_| |_|\___| - - ---]] -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local os = os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/anemofilia" -theme.wallpaper = os.getenv("HOME") .. "Pictures/Wallpapers/\wall" --theme.dir .. "/wall.png" -theme.font = "Meslo LG M DZ 9" -theme.fg_normal = "#DDDDDD" -theme.fg_focus = "#8581E0"--"#EA6F81" -theme.fg_urgent = "#DCE081"--"#CC9393" -theme.bg_normal = "#1A1A1A" -theme.bg_focus = "#313131" -theme.bg_urgent = "#1A1A1A" -theme.border_width = dpi(1) -theme.border_normal = "#3F3F3F" -theme.border_focus = "#8581E0"--"#7F7F7F" -theme.border_marked = "#CC9393" -theme.tasklist_bg_focus = "#1A1A1A" -theme.titlebar_bg_focus = theme.bg_focus -theme.titlebar_bg_normal = theme.bg_normal -theme.titlebar_fg_focus = theme.fg_focus -theme.menu_height = dpi(20) -theme.menu_width = dpi(140) -theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.layout_tile = theme.dir .. "/icons/tile1.png" -theme.layout_tileleft = theme.dir .. "/icons/tileleft1.png" -theme.layout_tilebottom = theme.dir .. "/icons/tilebottom1.png" -theme.layout_tiletop = theme.dir .. "/icons/tiletop1.png" -theme.layout_fairv = theme.dir .. "/icons/fairv.png" -theme.layout_fairh = theme.dir .. "/icons/fairh.png" -theme.layout_spiral = theme.dir .. "/icons/spiral.png" -theme.layout_dwindle = theme.dir .. "/icons/dwindle.png" -theme.layout_max = theme.dir .. "/icons/max.png" -theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png" -theme.layout_magnifier = theme.dir .. "/icons/magnifier.png" -theme.layout_floating = theme.dir .. "/icons/floating1.png" -theme.widget_ac = theme.dir .. "/icons/ac.png" -theme.widget_battery_100 = theme.dir .. "/icons/battery_100.png" -theme.widget_battery_80 = theme.dir .. "/icons/battery_80.png" -theme.widget_battery_60 = theme.dir .. "/icons/battery_60.png" -theme.widget_battery_40 = theme.dir .. "/icons/battery_40.png" -theme.widget_battery_20 = theme.dir .. "/icons/battery_20.png" -theme.widget_mem = theme.dir .. "/icons/mem.png" -theme.widget_cpu = theme.dir .. "/icons/cpu.png" -theme.widget_temp = theme.dir .. "/icons/temp.png" -theme.widget_netdown = theme.dir .. "/icons/net_down.png" -theme.widget_netup = theme.dir .. "/icons/net_up.png" -theme.widget_hdd = theme.dir .. "/icons/hdd.png" -theme.widget_music = theme.dir .. "/icons/note.png" -theme.widget_music_on = theme.dir .. "/icons/note_on.png" -theme.widget_vol = theme.dir .. "/icons/vol.png" -theme.widget_vol_low = theme.dir .. "/icons/vol_low.png" -theme.widget_vol_no = theme.dir .. "/icons/vol_no.png" -theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png" -theme.widget_mail = theme.dir .. "/icons/mail.png" -theme.widget_mail_on = theme.dir .. "/icons/mail_on.png" -theme.tasklist_plain_task_name = false -theme.tasklist_disable_icon = true -theme.gap_single_client = true -theme.useless_gap = dpi(4) -theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" -theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" -theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png" -theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png" -theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png" -theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png" -theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png" - -local markup = lain.util.markup -local separators = lain.util.separators - -local mykeyboardlayout = awful.widget.keyboardlayout:new() - --- Textclock -local clockicon = wibox.widget.imagebox(theme.widget_clock) -local clock = awful.widget.watch( - "date +'%a %d %b %R'", 60, - function(widget, stdout) - widget:set_markup(" " .. markup.font(theme.font, stdout)) - end -) - --- Calendar -theme.cal = lain.widget.cal({ - icons = "", - attach_to = { clock }, - notification_preset = { - font = theme.font, - fg = theme.fg_normal, - bg = theme.bg_normal - } -}) ---]]-- - --- Mail IMAP check -local mailicon = wibox.widget.imagebox(theme.widget_mail) ---[[ commented because it needs to be set before use -mailicon:buttons(my_table.join(awful.button({ }, 1, function () awful.spawn(mail) end))) -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "luisguilhermecoelho@usp.br", - password = "ZeugmaTau-6,283Anemofilia", - settings = function() - if mailcount > 0 then - widget:set_markup(markup.font(theme.font, " " .. mailcount .. " ")) - mailicon:set_image(theme.widget_mail_on) - else - widget:set_text("") - mailicon:set_image(theme.widget_mail) - end - end -}) ---]] - --- MPD -local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp" -local mpdicon = wibox.widget.imagebox(theme.widget_music) -mpdicon:buttons(my_table.join( - awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end), - awful.button({ }, 1, function () - os.execute("mpc prev") - theme.mpd.update() - end), - awful.button({ }, 2, function () - os.execute("mpc toggle") - theme.mpd.update() - end), - awful.button({ }, 3, function () - os.execute("mpc next") - theme.mpd.update() - end))) -theme.mpd = lain.widget.mpd({ - settings = function() - if mpd_now.state == "play" then - artist = mpd_now.artist .. " " - title = mpd_now.title .. " " - mpdicon:set_image(theme.widget_music_on) - elseif mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - else - artist = "" - title = "" - mpdicon:set_image(theme.widget_music) - end - - widget:set_markup(markup.font(theme.font, markup("#EA6F81", artist) .. title)) - end -}) - --- MEM -local memicon = wibox.widget.imagebox(theme.widget_mem) -local mem = lain.widget.mem({ - settings = function() - widget:set_markup(markup.font(theme.font, mem_now.used .. "MB ")) - end -}) - --- CPU -local cpuicon = wibox.widget.imagebox(theme.widget_cpu) -local cpu = lain.widget.cpu({ - settings = function() - widget:set_markup(markup.font(theme.font, cpu_now.usage .. "% ")) - end -}) - --- Coretemp -local tempicon = wibox.widget.imagebox(theme.widget_temp) -local temp = lain.widget.temp({ - settings = function() - widget:set_markup(markup.font(theme.font, math.ceil(coretemp_now) .. "°C ")) - end -}) - --- / fs -local fsicon = wibox.widget.imagebox(theme.widget_hdd) ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10" }, - settings = function() - widget:set_markup(markup.font(theme.font, " " .. fs_now["/"].percentage .. "% ")) - end -}) ---]] - --- Battery -local baticon = wibox.widget.imagebox(theme.widget_battery) -local bat = lain.widget.bat({ - settings = function() - if bat_now.status and bat_now.status ~= "N/A" then - if bat_now.ac_status == 1 then - baticon:set_image(theme.widget_ac) - elseif bat_now.perc and tonumber(bat_now.perc) < 25 then - baticon:set_image(theme.widget_battery_20) - elseif bat_now.perc and tonumber(bat_now.perc) < 45 then - baticon:set_image(theme.widget_battery_40) - elseif bat_now.perc and tonumber(bat_now.perc) < 65 then - baticon:set_image(theme.widget_battery_60) - elseif bat_now.perc and tonumber(bat_now.perc) < 85 then - baticon:set_image(theme.widget_battery_80) - else - baticon:set_image(theme.widget_battery_100) - end - widget:set_markup(markup.font(theme.font, bat_now.perc .. "% ")) - else - widget:set_markup(markup.font(theme.font, "AC ")) - baticon:set_image(theme.widget_ac) - end - end -}) - --- ALSA volume -local volicon = wibox.widget.imagebox(theme.widget_vol) -theme.volume = lain.widget.alsa({ - settings = function() - if volume_now.status == "off" then - volicon:set_image(theme.widget_vol_mute) - elseif tonumber(volume_now.level) == 0 then - volicon:set_image(theme.widget_vol_no) - elseif tonumber(volume_now.level) <= 50 then - volicon:set_image(theme.widget_vol_low) - else - volicon:set_image(theme.widget_vol) - end - - widget:set_markup(markup.font(theme.font, volume_now.level .. "% ")) - end -}) -theme.volume.widget:buttons(awful.util.table.join( - awful.button({}, 4, function () - awful.util.spawn("amixer set Master 1%+") - theme.volume.update() - end), - awful.button({}, 5, function () - awful.util.spawn("amixer set Master 1%-") - theme.volume.update() - end) -)) - --- Net -local netdownicon = wibox.widget.imagebox(theme.widget_netdown) -local netdowninfo = wibox.widget.textbox() -local netupicon = wibox.widget.imagebox(theme.widget_netup) -local netupinfo = lain.widget.net({ - settings = function() - widget:set_markup(markup.font(theme.font, net_now.sent .. " ")) - netdowninfo:set_markup(markup.font(theme.font, net_now.received .. " ")) - end -}) - --- System tray -local systray = wibox.widget.systray() -systray:set_base_size(20) -systray:set_reverse(true) - --- Separators -local spr = wibox.widget.textbox(' ') -local arrl_dl = separators.arrow_left(theme.bg_focus, "alpha") -local arrl_ld = separators.arrow_left("alpha", theme.bg_focus) - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(19), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - --spr, - s.mytaglist, - s.mypromptbox, - spr, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - --systray, - spr, - --arrl_dl, - --wibox.container.background(mpdicon, theme.bg_focus), - --wibox.container.background(theme.mpd.widget, theme.bg_focus), - arrl_ld, - --wibox.container.background(mailicon, theme.bg_focus), - --wibox.container.background(theme.mail.widget, theme.bg_focus), - wibox.container.background(netdownicon, theme.bg_focus), - wibox.container.background(netdowninfo, theme.bg_focus), - wibox.container.background(netupicon, theme.bg_focus), - wibox.container.background(netupinfo.widget, theme.bg_focus), - arrl_dl, - wibox.container.background(memicon, theme.bg_normal), - wibox.container.background(mem.widget, theme.bg_normal), - arrl_ld, - wibox.container.background(cpuicon, theme.bg_focus), - wibox.container.background(cpu.widget, theme.bg_focus), - arrl_dl, - wibox.container.background(tempicon, theme.bg_normal), - wibox.container.background(temp.widget, theme.bg_normal), - arrl_ld, - --wibox.container.background(fsicon, theme.bg_focus), - --wibox.container.background(theme.fs.widget, theme.bg_focus), - --arrl_dl, - wibox.container.background(volicon, theme.bg_focus), - wibox.container.background(theme.volume.widget, theme.bg_focus), - arrl_dl, - wibox.container.background(baticon, theme.bg_normal), - wibox.container.background(bat.widget, theme.bg_normal), - arrl_ld, - --wibox.container.background(neticon, theme.bg_focus), - --wibox.container.background(net.widget, theme.bg_focus), - --arrl_dl, - wibox.container.background(clock, theme.bg_focus), - wibox.container.background(spr, theme.bg_focus), - arrl_dl, - wibox.container.background(s.mylayoutbox, theme.bg_normal), - - }, - } -end - -return theme diff --git a/files/awesome/themes/anemofilia-old/wall.png b/files/awesome/themes/anemofilia-old/wall.png deleted file mode 100644 index 3d4d2e0..0000000 Binary files a/files/awesome/themes/anemofilia-old/wall.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/anemofilia-background.png b/files/awesome/themes/anemofilia/anemofilia-background.png deleted file mode 100644 index 7ab8fd3..0000000 Binary files a/files/awesome/themes/anemofilia/anemofilia-background.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/awesome-icon.png b/files/awesome/themes/anemofilia/awesome-icon.png deleted file mode 100644 index 70978d3..0000000 Binary files a/files/awesome/themes/anemofilia/awesome-icon.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/ac.png b/files/awesome/themes/anemofilia/icons/ac.png deleted file mode 100755 index 92c74fd..0000000 Binary files a/files/awesome/themes/anemofilia/icons/ac.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/battery_100.png b/files/awesome/themes/anemofilia/icons/battery_100.png deleted file mode 100644 index 428b4ed..0000000 Binary files a/files/awesome/themes/anemofilia/icons/battery_100.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/battery_20.png b/files/awesome/themes/anemofilia/icons/battery_20.png deleted file mode 100644 index 8e4305f..0000000 Binary files a/files/awesome/themes/anemofilia/icons/battery_20.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/battery_40.png b/files/awesome/themes/anemofilia/icons/battery_40.png deleted file mode 100644 index ad6fc38..0000000 Binary files a/files/awesome/themes/anemofilia/icons/battery_40.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/battery_60.png b/files/awesome/themes/anemofilia/icons/battery_60.png deleted file mode 100644 index f7c6d78..0000000 Binary files a/files/awesome/themes/anemofilia/icons/battery_60.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/battery_80.png b/files/awesome/themes/anemofilia/icons/battery_80.png deleted file mode 100644 index 7f31597..0000000 Binary files a/files/awesome/themes/anemofilia/icons/battery_80.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/battery_empty.png b/files/awesome/themes/anemofilia/icons/battery_empty.png deleted file mode 100755 index b841ace..0000000 Binary files a/files/awesome/themes/anemofilia/icons/battery_empty.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/cpu.png b/files/awesome/themes/anemofilia/icons/cpu.png deleted file mode 100755 index e493262..0000000 Binary files a/files/awesome/themes/anemofilia/icons/cpu.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/mail.png b/files/awesome/themes/anemofilia/icons/mail.png deleted file mode 100755 index 75a02fb..0000000 Binary files a/files/awesome/themes/anemofilia/icons/mail.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/mail_on.png b/files/awesome/themes/anemofilia/icons/mail_on.png deleted file mode 100755 index 168c289..0000000 Binary files a/files/awesome/themes/anemofilia/icons/mail_on.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/mail_on.png~ b/files/awesome/themes/anemofilia/icons/mail_on.png~ deleted file mode 100755 index d5a15b2..0000000 Binary files a/files/awesome/themes/anemofilia/icons/mail_on.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/mem.png b/files/awesome/themes/anemofilia/icons/mem.png deleted file mode 100755 index 5b2910e..0000000 Binary files a/files/awesome/themes/anemofilia/icons/mem.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/net_down.png b/files/awesome/themes/anemofilia/icons/net_down.png deleted file mode 100755 index a7e76ae..0000000 Binary files a/files/awesome/themes/anemofilia/icons/net_down.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/net_up.png b/files/awesome/themes/anemofilia/icons/net_up.png deleted file mode 100755 index 827db64..0000000 Binary files a/files/awesome/themes/anemofilia/icons/net_up.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/net_wired.png b/files/awesome/themes/anemofilia/icons/net_wired.png deleted file mode 100755 index e8cc2bd..0000000 Binary files a/files/awesome/themes/anemofilia/icons/net_wired.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/note.png b/files/awesome/themes/anemofilia/icons/note.png deleted file mode 100755 index 4cadb42..0000000 Binary files a/files/awesome/themes/anemofilia/icons/note.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/note_on.png b/files/awesome/themes/anemofilia/icons/note_on.png deleted file mode 100755 index 0013fd9..0000000 Binary files a/files/awesome/themes/anemofilia/icons/note_on.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/note_on.png~ b/files/awesome/themes/anemofilia/icons/note_on.png~ deleted file mode 100755 index ac4c19e..0000000 Binary files a/files/awesome/themes/anemofilia/icons/note_on.png~ and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/screenlog.0 b/files/awesome/themes/anemofilia/icons/screenlog.0 deleted file mode 100644 index e69de29..0000000 diff --git a/files/awesome/themes/anemofilia/icons/temp.png b/files/awesome/themes/anemofilia/icons/temp.png deleted file mode 100755 index a0cf39f..0000000 Binary files a/files/awesome/themes/anemofilia/icons/temp.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/vol.png b/files/awesome/themes/anemofilia/icons/vol.png deleted file mode 100644 index a22a620..0000000 Binary files a/files/awesome/themes/anemofilia/icons/vol.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/vol_low.png b/files/awesome/themes/anemofilia/icons/vol_low.png deleted file mode 100644 index 2c78312..0000000 Binary files a/files/awesome/themes/anemofilia/icons/vol_low.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/vol_mute.png b/files/awesome/themes/anemofilia/icons/vol_mute.png deleted file mode 100644 index bb6e4cb..0000000 Binary files a/files/awesome/themes/anemofilia/icons/vol_mute.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/icons/vol_no.png b/files/awesome/themes/anemofilia/icons/vol_no.png deleted file mode 100644 index 8576456..0000000 Binary files a/files/awesome/themes/anemofilia/icons/vol_no.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/fairv.png b/files/awesome/themes/anemofilia/layouts/fairv.png deleted file mode 100755 index 13c4836..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/fairv.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/farih.png b/files/awesome/themes/anemofilia/layouts/farih.png deleted file mode 100644 index 66b7125..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/farih.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/floating.png b/files/awesome/themes/anemofilia/layouts/floating.png deleted file mode 100644 index 05cca28..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/floating.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/max.png b/files/awesome/themes/anemofilia/layouts/max.png deleted file mode 100755 index 0cba687..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/max.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/tile.png b/files/awesome/themes/anemofilia/layouts/tile.png deleted file mode 100644 index 3f1b72f..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/tile.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/tilebottom.png b/files/awesome/themes/anemofilia/layouts/tilebottom.png deleted file mode 100644 index 03120f0..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/tilebottom.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/tileleft.png b/files/awesome/themes/anemofilia/layouts/tileleft.png deleted file mode 100644 index 16b12ce..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/tileleft.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/layouts/tiletop.png b/files/awesome/themes/anemofilia/layouts/tiletop.png deleted file mode 100644 index f16a015..0000000 Binary files a/files/awesome/themes/anemofilia/layouts/tiletop.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/taglist/square_sel.png b/files/awesome/themes/anemofilia/taglist/square_sel.png deleted file mode 100644 index 2ebe2bb..0000000 Binary files a/files/awesome/themes/anemofilia/taglist/square_sel.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/taglist/square_unsel.png b/files/awesome/themes/anemofilia/taglist/square_unsel.png deleted file mode 100644 index 4e9ef5d..0000000 Binary files a/files/awesome/themes/anemofilia/taglist/square_unsel.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/taglist/squarefz.png b/files/awesome/themes/anemofilia/taglist/squarefz.png deleted file mode 100644 index 0927720..0000000 Binary files a/files/awesome/themes/anemofilia/taglist/squarefz.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/taglist/squarez.png b/files/awesome/themes/anemofilia/taglist/squarez.png deleted file mode 100644 index 9b41c26..0000000 Binary files a/files/awesome/themes/anemofilia/taglist/squarez.png and /dev/null differ diff --git a/files/awesome/themes/anemofilia/theme.lua b/files/awesome/themes/anemofilia/theme.lua deleted file mode 100644 index b6cf648..0000000 --- a/files/awesome/themes/anemofilia/theme.lua +++ /dev/null @@ -1,105 +0,0 @@ ---[[ -░█████╗░███╗░░██╗███████╗███╗░░░███╗░█████╗░███████╗██╗██╗░░░░░██╗░█████╗░ -██╔══██╗████╗░██║██╔════╝████╗░████║██╔══██╗██╔════╝██║██║░░░░░██║██╔══██╗ -███████║██╔██╗██║█████╗░░██╔████╔██║██║░░██║█████╗░░██║██║░░░░░██║███████║ -██╔══██║██║╚████║██╔══╝░░██║╚██╔╝██║██║░░██║██╔══╝░░██║██║░░░░░██║██╔══██║ -██║░░██║██║░╚███║███████╗██║░╚═╝░██║╚█████╔╝██║░░░░░██║███████╗██║██║░░██║ -╚═╝░░╚═╝╚═╝░░╚══╝╚══════╝╚═╝░░░░░╚═╝░╚════╝░╚═╝░░░░░╚═╝╚══════╝╚═╝╚═╝░░╚═╝ -▀▀█▀▀ █░░█ █▀▀ █▀▄▀█ █▀▀ -░░█░░ █▀▀█ █▀▀ █░▀░█ █▀▀ -░░▀░░ ▀░░▀ ▀▀▀ ▀░░░▀ ▀▀▀ --]] - -local themes_path = require("gears.filesystem").get_dir("config").."/themes/" -local rnotification = require("ruled.notification") -local dpi = require("beautiful.xresources").apply_dpi - --- Main -local theme = {} -theme.dir = themes_path .. "anemofilia" -theme.wallpaper = theme.dir .. "/anemofilia-background.png" - --- Styles -theme.font = "Meslo LG M DZ 9" -theme.notification_font = theme.font - --- Colors -theme.fg_normal = "#DDDDDD" -theme.fg_focus = "#8581E0" -theme.fg_urgent = "#DCE081" -theme.bg_normal = "#1A1A1A" -theme.bg_focus = "#313131" -theme.bg_urgent = "#1A1A1A" -theme.bg_systray = theme.bg_normal -theme.tasklist_bg_focus = theme.bg_normal - --- Tasklist -theme.tasklist_disable_icon = true - --- {{{ Borders -theme.useless_gap = dpi(4) -theme.border_width = dpi(1) -theme.border_color_normal = "#3F3F3F" -theme.border_color_active = "#8581E0" -theme.border_color_marked = "#CC9393" - --- Titlebars -theme.titlebar_bg_focus = "#3F3F3F" -theme.titlebar_bg_normal = "#3F3F3F" - --- Wibox icons - theme.widget_ac = theme.dir .. "/icons/ac.png" - theme.widget_battery_100 = theme.dir .. "/icons/battery_100.png" - theme.widget_battery_80 = theme.dir .. "/icons/battery_80.png" - theme.widget_battery_60 = theme.dir .. "/icons/battery_60.png" - theme.widget_battery_40 = theme.dir .. "/icons/battery_40.png" - theme.widget_battery_20 = theme.dir .. "/icons/battery_20.png" - theme.widget_mem = theme.dir .. "/icons/mem.png" - theme.widget_cpu = theme.dir .. "/icons/cpu.png" - theme.widget_temp = theme.dir .. "/icons/temp.png" - theme.widget_netdown = theme.dir .. "/icons/net_down.png" - theme.widget_netup = theme.dir .. "/icons/net_up.png" - theme.widget_hdd = theme.dir .. "/icons/hdd.png" - theme.widget_music = theme.dir .. "/icons/note.png" - theme.widget_music_on = theme.dir .. "/icons/note_on.png" - theme.widget_vol = theme.dir .. "/icons/vol.png" - theme.widget_vol_low = theme.dir .. "/icons/vol_low.png" - theme.widget_vol_no = theme.dir .. "/icons/vol_no.png" - theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png" - --- Menu -theme.menu_height = dpi(20) -theme.menu_width = dpi(140) - --- Taglist -theme.taglist_squares_sel = theme.dir .. "/taglist/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/taglist/square_unsel.png" - --- Misc -theme.awesome_icon = theme.dir .. "/awesome-icon.png" - --- Layout -theme.layout_tile = theme.dir .. "/layouts/tile.png" -theme.layout_tileleft = theme.dir .. "/layouts/tileleft.png" -theme.layout_tilebottom = theme.dir .. "/layouts/tilebottom.png" -theme.layout_tiletop = theme.dir .. "/layouts/tiletop.png" -theme.layout_fairv = theme.dir .. "/layouts/fairv.png" -theme.layout_fairh = theme.dir .. "/layouts/fairh.png" -theme.layout_max = theme.dir .. "/layouts/max.png" -theme.layout_fullscreen = theme.dir .. "/layouts/fullscreen.png" -theme.layout_magnifier = theme.dir .. "/layouts/magnifier.png" -theme.layout_floating = theme.dir .. "/layouts/floating.png" --- }}} - --- Set different colors for urgent notifications. -rnotification.connect_signal('request::rules', function() - rnotification.append_rule { - rule = { urgency = 'critical' }, - properties = { - bg = '#ff0000', - fg = '#ffffff' - } - } -end) - -return theme diff --git a/files/bash/bash-functions b/files/bash/bash-functions deleted file mode 100644 index fe080cf..0000000 --- a/files/bash/bash-functions +++ /dev/null @@ -1,5 +0,0 @@ -tf() { setsid -f "$@" >/dev/null 2>&1 & disown; } -doas() { [ $# -eq 0 ] && $(which doas) -s || $(which doas) "$@"; } -man() { kak -e "evaluate-commands man $1"; } -zxz(){ printf "$1\n$(curl -F file=@$1 http://0x0.st)\n"; } - diff --git a/files/bash/bash-profile b/files/bash/bash-profile deleted file mode 100644 index 1b87029..0000000 --- a/files/bash/bash-profile +++ /dev/null @@ -1,10 +0,0 @@ -# Set up the system, user profile, and related variables. -# /etc/profile will be sourced by bash automatically -# Set up the home environment profile. -if [ -f ~/.profile ]; then source ~/.profile; fi - -# Honor per-interactive-shell startup file -if [ -f ~/.bashrc ]; then source ~/.bashrc; fi -. "$GUIX_PROFILE/etc/profile" -[ "$(tty)" = "/dev/tty1" ] && sx 1>/dev/null 2>&1 - diff --git a/files/bash/bashrc b/files/bash/bashrc deleted file mode 100644 index 2bb10df..0000000 --- a/files/bash/bashrc +++ /dev/null @@ -1,47 +0,0 @@ -alias df="df -h" -alias diff="diff --color=auto" -alias grep="grep --color=auto" -alias ip="ip --color=auto" -alias ls="ls --color=auto --group-directories-first --classify -hlv" -alias ln="ln -sfn" -alias info="info --init-file $XDG_CONFIG_HOME/infokeys" -alias m="yt-dlp --prefer-free-formats --extract-audio" -alias v="yt-dlp --prefer-free-formats" -alias present="xrandr --output LVDS-1 --mode 1366x768 --scale 1x1 --output VGA-1 --same-as LVDS-1 --mode 1920x1080 --scale 0.711x0.711" -alias lf="$XDG_CONFIG_HOME/lf/lfrun" -alias gpg="gpg --homedir $XDG_DATA_HOME/gnupg" -alias radio="https://radio.vern.cc" -alias ':e'="kak" -alias ':q'="exit" - -[ -f /etc/bashrc ] && source /etc/bashrc -export PATH="$PATH:$(du $HOME/.local/bin/ \ - | cut -f2 \ - | tr '\n' ':' \ - | sed 's/:*$//')" -export SHELL -if [[ $- != *i* ]]; then - [[ -n "$SSH_CLIENT" ]] && source /etc/profile - return -fi -PS1='${GUIX_ENVIRONMENT:+[env ${GUIX_ENVIRONMENT}]\n}\u at \W $(git branch &>/dev/null && git branch 2>/dev/null | sed -n "s/* \(.*\)/on \1 /p")> ' -[ "$TERM" = "linux" ] && {\ - echo -en "\e]P0"'070707' - echo -en "\e]P1"'df6760' - echo -en "\e]P2"'8be760' - echo -en "\e]P3"'ffd17a' - echo -en "\e]P4"'9688d9' - echo -en "\e]P5"'86adff' - echo -en "\e]P6"'86adff' - echo -en "\e]P7"'f1f1f1' - echo -en "\e]P8"'070707' - echo -en "\e]P9"'df6760' - echo -en "\e]PA"'8be760' - echo -en "\e]PB"'ffd17a' - echo -en "\e]PC"'9688d9' - echo -en "\e]PD"'86adff' - echo -en "\e]PE"'86adff' - echo -en "\e]PF"'f1f1f1' -} -trap 'printf "\033]0;%s\007" "${BASH_COMMAND//[^[:print:]]/}"' DEBUG - diff --git a/files/doas/doas-completion b/files/doas/doas-completion deleted file mode 100644 index 8aab5ae..0000000 --- a/files/doas/doas-completion +++ /dev/null @@ -1,56 +0,0 @@ -# bash completion for doas(8) -*- shell-script -*- - -_doas() -{ - local cur prev words cword split - _init_completion -s || return - - local i mode=normal - - [[ $mode == normal ]] && - for ((i = 1; i <= cword; i++)); do - if [[ ${words[i]} != -* ]]; then - local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin - local root_command=${words[i]} - _command_offset $i - return - fi - if [[ ${words[i]} == -@(!(-*)e*|-edit) ]]; then - mode=edit - break - fi - [[ ${words[i]} == \ - -@(user|other-user|group|close-from|prompt|!(-*)[uUgCp]) ]] && - ((i++)) - done - - case "$prev" in - --user | --other-user | -!(-*)[uU]) - COMPREPLY=($(compgen -u -- "$cur")) - return - ;; - --group | -!(-*)g) - COMPREPLY=($(compgen -g -- "$cur")) - return - ;; - --close-from | --prompt | -!(-*)[Cp]) - return - ;; - esac - - $split && return - - if [[ $cur == -* ]]; then - local opts=$(_parse_help "$1") - COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur")) - [[ ${COMPREPLY-} == *= ]] && compopt -o nospace - return - fi - if [[ $mode == edit ]]; then - _filedir - fi -} && - complete -F _doas doas - -# ex: filetype=sh - diff --git a/files/emacs/init.el b/files/emacs/init.el deleted file mode 100644 index c53f0d7..0000000 --- a/files/emacs/init.el +++ /dev/null @@ -1,229 +0,0 @@ -;; Who am I? -(setq user-full-name "Luis Guilherme Coelho" - user-email-address "lgcoelho@disroot.org" - copyright-names-regexp (format "%s <%s>" - user-full-name - user-mail-address)) -(load-file "~/projects/code/scm/guix/etc/copyright.el") - -;; Emacs directories -(setq user-emacs-directory "~/.config/emacs") - -;; Organizing backups -(setq backup-directory-alist - '(("." . "~/.local/share/emacs/saves"))) - -;; Emacs load path -(add-to-list 'load-path - "~/.guix-home/profile/share/emacs/site-lisp") -(setq-default buffer-file-coding-system - 'utf-8-unix) - -;; Garbage collection -(setq gc-cons-threshold (* 50 1000 1000)) - -;; No more tabs -(setq-default indent-line-function 'insert-tab - indent-tabs-mode nil) - -;; Profile emacs startup -(add-hook 'emacs-startup-hook - (lambda () (message - "*:** Emacs loaded in %s seconds with %d garbage collections." - (emacs-init-time "%.2f") - gcs-done))) - -;; Disable compiler and large file warnings - (setq native-comp-async-report-warnings-errors nil - large-file-warning-threshold nil) - -;; Remove start message and scratch message -(setq inhibit-startup-message t - initial-scratch-message nil) - -;; Enable some minor modes globally -(dolist (mode '(server-mode ; Emacs server - savehist-mode ; Command history - column-number-mode ; Cursor column number - global-prettify-symbols-mode ; Pretty symbols - delete-selection-mode)) ; Normal selection behavior - (funcall mode 1)) - -;; Disable some minor modes globally -(dolist (mode '(tool-bar-mode menu-bar-mode ; Menus - scroll-bar-mode ; Scroll-bar - tooltip-mode ; Tooltip - indent-tabs-mode ; Tabs - blink-cursor-mode ; Cursor - fringe-mode)) ; Fringe - (funcall mode 0)) - -;; Line numbers settings -(setq display-line-numbers-type 'relative - display-line-numbers-current-absolute t - display-line-numbers-grow-only t - display-line-numbers-width-start t) - -;; Display whitespaces -(setq-default fill-column 80) -(setq whitespace-display-mappings - '((space-mark ?\ [?⋅] [?.]) - (space-mark ?\xA0 [?⋅] [?_]) - (newline-mark ?\n [?¬ ?\n] [?$ ?\n]) - (tab-mark ?\t [?» ?\t] [?\\ ?\t]))) -(dolist (mode '(text-mode-hook - prog-mode-hook - conf-mode-hook)) - (add-hook mode (lambda () - (setq display-line-numbers-witdth - (length (format "%s" (count-lines (point-max) - (point-min))))) - (dolist (mode '(display-line-numbers-mode - rainbow-delimiters-mode - display-fill-column-indicator-mode - whitespace-mode)) - (funcall mode 1))))) -(add-hook 'org-mode-hook - (lambda () - (dolist (mode '(whitespace-mode - display-fill-column-indicator-mode)) - (funcall mode 0)) - (setq org-pretty-entities t))) - -;; Aesthetics -(load-theme 'meimuna t) -(setq cursor-type 'box) - -;; Smooth scroll -(setq scroll-step 1) - -;; Please never show me a dialog box again -(setq use-dialog-box nil) - -;; IRC -(setq circe-nick "anemofilia") -(setq circe-channels '("#emacs" - "#gnu" - "#guile" - "#guix" - "#libreboot")) - -;; EMMS -(setq emms-player-list '(emms-player-mpv)) - -;(require 'setup) -;(setup-define :pkg -; (lambda (feature-or-package) -; `(unless (locate-file ,(symbol-name feature-or-package) -; load-path -; (get-load-suffixes)) -; (:package ',feature-or-package))) -; :documentation "Install PACKAGE if it is not available locally. -;This macro can be used as NAME, and it will replace itself with -;the first PACKAGE." -; :repeatable t -; :shorthand #'cadr) -; -;(setup-define :disabled -; (lambda () `,(setup-quit)) -; :documentation "Always stop evaluating the body.") -; -;(setup-define :load-after -; (lambda (features &rest body) -; (let ((body `(progn -; (require ',(setup-get 'feature)) -; ,@body))) -; (dolist (feature (if (listp features) -; (nreverse features) -; (list features))) -; (setq body `(with-eval-after-load ',feature ,body))) -; body)) -; :documentation "Load the current feature after FEATURES." -; :indent 1) -; -;(setup-define :file-match -; (lambda (regexp) -; `(add-to-list 'auto-mode-alist (cons ,regexp ',(setup-get 'mode)))) -; :documentation "Associate the current mode with files that match REGEXP." -; :debug '(form) -; :repeatable t) -; -;(setup-define :leader -; (lambda (&rest args) -; `(with-eval-after-load 'general -; (general-define-key ,@args -; :states 'normal -; :keymaps 'override -; :prefix "SPC" -; :global-prefix "C-SPC"))) -; :documentation "Define a leader keybind" -; :debug '(form) -; :indent 0) -; -;(setup-define :local-leader -; (lambda (&rest args) -; `(with-eval-after-load 'general -; (let ((map ',(setup-get 'map))) -; (general-define-key ,@args -; :states 'normal -; :keymaps map -; :prefix "SPC m" -; :global-prefix "C-SPC m")))) -; :documentation "Define a local leader keybind" -; :debug '(form) -; :indent 0) -; -;(setup-define :ignore-buffers -; (lambda (&rest buffers) -; `(setq ignored-buffers (append ignored-buffers ',buffers))) -; :documentation "Ignore buffers") -; -;(setup-define :display-rule -; (lambda (condition &rest actions) -; `(add-to-list 'display-buffer-alist '(,condition . ,actions))) -; :documentation "Add to display buffer alist") -; -;(setup (:pkg kakoune) -; (:option ryo-modal-cursor-type 'box -; ryo-modal-cursor-color "#8581E0") -; (:global "" -; (lambda () -; (interactive) -; (if (minibufferp) -; (keyboard-escape-quit) -; (ryo-modal-mode)))) -; (kakoune-setup-keybinds) -; (ryo-modal-keys -; ("M-s" mc/split-region))) -;: -;;; Use a real file manager -;(setup (:pkg dirvish) -; (:hook hl-line-mode) -; (:option dirvish-attributes nil -; dirvish-listing-switches '(--group-directories-first --classify)) -; ;'(vc-state subtree-state all-the-icons collapse git-msg file-time file-size)) -; (dirvish-override-dired-mode)) -; -;(setup (:pkg org-bullets org-present org-roam org-modern)) -;(setup (:pkg elfeed elfeed-org)) -;(setup (:pkg geiser geiser-guile macrostep-geiser)) -;(setup (:pkg cape corfu corfu-doc consult-lsp vertico orderless)) - -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(custom-enabled-themes '(meimuna)) - '(custom-safe-themes - '("5df271e8c563dcd5b7be07ab5b5a615567b20a36b7c748475df0bb512332f0e1" "c202b7618764218b8ecb21a13c5dc9b318f0879f54105847fa5e1868afb19369" "044d60490c760e63bd39232445702271257a47ab384a3871649ea03a3d2b430a" "322a73057be183963dcd4fbfaa859e636fc8aa5f76f2a24f32a8ee5cc73be484" "671f76d55e2917bcae38168c2363fc21a335683583543b3fe49018cf5542908d" "f2db82bef0fb3e3922053605326d82b3e6494aed5c938440358710e9b78da7d9" "47263df55a6df473a5b9ba13107523f285db25dbbfd793ed5beaf47b7ec11c8e" "452da09d018e5f7bffa1e293c224c8711aa37dc9e7dd1dce24c9be6a0f6067c3" "f2c28b88fc49c9577269afcfdbf4630135c2bc2a4813f379c9a8a3979953e706" "38d107472028475f6d47938a91abf170587b718f4ca84f258ea8d72babe25201" "12bd9d840d3e0f54c607ca63acca59b083eca3cb18b9e5c7b34dfb6a400eaf4b" default)) - '(package-selected-packages - '(eat mines setup kakoune magit-popup edit-indirect bui geiser-guile auctex)) - '(whitespace-style - '(face trailing tabs spaces lines lines-tail lines-char newline missing-newline-at-eof empty indentation::tab indentation::space indentation big-indent space-after-tab::tab space-after-tab::space space-after-tab space-before-tab::tab space-before-tab::space space-before-tab space-mark tab-mark newline-mark))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(whitespace-line ((t nil)))) diff --git a/files/emacs/meimuna-theme.el b/files/emacs/meimuna-theme.el deleted file mode 100644 index d02f596..0000000 --- a/files/emacs/meimuna-theme.el +++ /dev/null @@ -1,131 +0,0 @@ -(deftheme meimuna - "Created 2022-01-11.") - -(custom-theme-set-faces - 'meimuna - '(cursor ((t (:background "#8581e0" :foreground "#ffffff")))) - '(fixed-pitch ((t (:family "Monospace")))) - '(variable-pitch ((((type w32)) (:foundry "outline" :family "Arial")) (t (:family "Sans Serif")))) - '(escape-glyph ((t (:background "#211d3c" :foreground "khaki")))) - '(homoglyph ((t (:foreground "khaki")))) - '(minibuffer-prompt ((t (:foreground "#8581e0")))) - '(highlight ((t (:background "#8581e0" :foreground "black")))) - '(region ((t (:extend t :background "#1F102f")))) - '(shadow ((t (:foreground "#999999")))) - '(secondary-selection ((t (:extend t :background "#9a9a9a")))) - '(font-lock-builtin-face ((t (:foreground "#ffd17a")))) - '(font-lock-comment-delimiter-face ((t (:foreground "#86adff")))) - '(font-lock-comment-face ((t (:foreground "#86adff")))) - '(font-lock-constant-face ((t (:foreground "#df6760")))) - '(font-lock-doc-face ((t (:foreground "#9a99e7" :inherit font-lock-string-face)))) - '(font-lock-function-name-face ((t (:foreground "#86adff")))) - '(font-lock-keyword-face ((t (:foreground "#8681e0")))) - '(font-lock-negation-char-face ((t nil))) - '(font-lock-preprocessor-face ((t (:inherit font-lock-builtin-face)))) - '(font-lock-regexp-grouping-backslash ((t (:inherit (bold))))) - '(font-lock-regexp-grouping-construct ((t (:inherit bold)))) - '(font-lock-string-face ((t (:foreground "#fc97ff")))) - '(font-lock-type-face ((t (:foreground "#ffd17a")))) - '(font-lock-variable-name-face ((t nil))) - '(font-lock-warning-face ((t (:foreground "#dce081" :weight bold)))) - '(button ((t (:inherit (link))))) - '(link ((t (:foreground "#8c86e4" :underline (:color foreground-color :style line))))) - '(link-visited ((t (:foreground "#999999" :inherit link)))) - '(fringe ((t (:foreground "#506080" :background "#111111")))) - '(header-line ((default (:inherit (mode-line))) (((type tty)) (:underline (:color foreground-color :style line) :inverse-video nil)) (((class color grayscale) (background light)) (:box nil :foreground "grey20" :background "grey90")) (((class color grayscale) (background dark)) (:box nil :foreground "grey90" :background "grey20")) (((class mono) (background light)) (:underline (:color foreground-color :style line) :box nil :inverse-video nil :foreground "black" :background "white")) (((class mono) (background dark)) (:underline (:color foreground-color :style line) :box nil :inverse-video nil :foreground "white" :background "black")))) - '(tooltip ((t (:foreground "#FFFFFF" :background "#5f5e8a")))) - '(mode-line ((t (:background "#303030" :foreground "#9688d9")))) - '(mode-line-buffer-id ((t (:weight bold :box nil)))) - '(mode-line-emphasis ((t (:weight bold)))) - '(mode-line-highlight ((t (:box nil)))) - '(mode-line-inactive ((t (:background "#111111" :foreground "dim gray")))) - '(isearch ((t (:foreground "white" :background "#5533AA")))) - '(isearch-fail ((t (:foreground "#999")))) - '(lazy-highlight ((t (:inherit default :background "#8581e0")))) - '(match ((t (:background "#8581e0" :foreground "white")))) - '(next-error ((t (:inherit (region))))) - '(query-replace ((t (:inherit isearch :background "khaki" :foreground "#101010")))) - '(line-number-current-line ((t (:inherit line-number :background "#313131" :foreground "#8581e0")))) - '(line-number ((t (:inherit (shadow default))))) - '(line-number-major-tick ((((class color grayscale) (background light)) (:bold t :background "grey85")) (((class color grayscale) (background dark)) (:bold t :background "grey75")) (t (:inherit (line-number))))) - '(org-document-title ((t (:height 1.2 :underline nil :inherit org-level-1)))) - '(org-level-1 ((t (:inherit default :extend t :foreground "#f6f3e8" :height 1.1 :family "Sans Serif")))) - '(org-level-2 ((t (:family "Sans Serif" :height 1.0 :foreground "#f6f3e8" :extend t :inherit default)))) - '(org-level-3 ((t (:foreground "#f6f3e8" :extend t :inherit default)))) - '(org-level-4 ((t (:inherit default :extend t :foreground "#f6f3e8")))) - '(org-level-5 ((t (:inherit default :extend t :foreground "#f6f3e8")))) - '(org-level-6 ((t (:extend t :foreground "#f6f3e8" :inherit (default))))) - '(org-level-7 ((t (:extend t :foreground "#f6f3e8" :inherit (default))))) - '(org-level-8 ((t (:extend t :foreground "#f6f3e8" :inherit (default))))) - '(org-todo ((t (:foreground "#00ff00" :weight bold)))) - '(org-done ((t (:foreground "#ff0000" :weight bold)))) - '(org-table ((t (:foreground "#999999")))) - '(org-ellipsis ((t (:foreground "#fff")))) - '(org-block-begin-line ((t (:background "#606590" :extend t :inherit \#fff)))) - '(org-block-end-line ((t (:inherit \#fff :extend t :background "#606590")))) - '(org-scheduled ((t (:foreground "#606590" :weight bold)))) - '(org-date ((t (:underline (:color foreground-color :style line) :foreground "#8c86e4")))) - '(org-tag ((t (:bold t)))) - '(org-warning ((t (:inherit font-lock-warning-face)))) - '(org-headline-todo ((t (:foreground "#fff")))) - '(org-sexp-date ((t (:foreground "#999999")))) - '(org-agenda-date ((t (:foreground "#999999")))) - '(org-date-selected ((t (:foreground "#999999" :inverse-video t)))) - '(org-footnote ((t (:underline (:color foreground-color :style line) :style ni :foreground "#8c86e4")))) - '(org-agenda-date-today ((t (:inherit org-agenda-date :foreground "#444083" :weight bold)))) - '(org-agenda-date-weekend ((t (:inherit org-agenda-date :foreground "#444083" :weight bold)))) - '(org-formula ((t (:foreground "khaki")))) - '(org-scheduled-previously ((t (:foreground "khaki")))) - '(org-upcoming-deadline ((t (:foreground "khaki" :weight bold)))) - '(org-document-info ((t (:foreground "#fff")))) - '(org-drawer ((t (:foreground "#999999")))) - '(org-latex-and-related ((t (:foreground "#fff")))) - '(org-scheduled-today ((t (:foreground "khaki" :weight ultra-bold)))) - '(org-time-grid ((t (:foreground "#8c86e4")))) - '(whitespace-space ((t (:inherit default :foreground "#606060")))) - '(whitespace-hspace ((t (:inherit whitespace-space)))) - '(whitespace-tab ((t (:inherit whitespace-space)))) - '(whitespace-newline ((t (:inherit whitespace-space)))) - '(whitespace-trailing ((t (:inherit whitespace-space)))) - '(whitespace-space-before-tab ((t (:inherit whitespace-space)))) - '(whitespace-indentation ((t (:inherit whitespace-space)))) - '(whitespace-big-indent ((t (:inherit whitespace-space)))) - '(whitespace-empty ((t (:extend t :inherit whitespace-space)))) - '(whitespace-space-after-tab ((t (:inherit whitespace-space)))) - '(whitespace-missing-newline-at-eof ((t (:inherit whitespace-space)))) - '(whitespace-line ((t nil))) - '(fill-column-indicator ((t (:foreground "#303030" :background "#303030" :inherit shadow)))) - '(rainbow-delimiters-depth-1-face ((t (:inherit rainbow-delimiters-base-face :foreground "#a790d3")))) - '(rainbow-delimiters-depth-2-face ((t (:inherit rainbow-delimiters-base-face :foreground "#6cdae0")))) - '(rainbow-delimiters-depth-3-face ((t (:inherit rainbow-delimiters-base-face :foreground "#ff7f50")))) - '(rainbow-delimiters-depth-4-face ((t (:inherit rainbow-delimiters-base-face :foreground "#ffea8c")))) - '(rainbow-delimiters-depth-5-face ((t (:inherit rainbow-delimiters-base-face :foreground "#83dcaf")))) - '(rainbow-delimiters-depth-6-face ((t (:inherit rainbow-delimiters-base-face :foreground "#eba4d4")))) - '(rainbow-delimiters-depth-7-face ((t (:inherit rainbow-delimiters-base-face :foreground "#8b5be7")))) - '(rainbow-delimiters-unmatched-face ((t (:inherit default)))) - '(rainbow-delimiters-mismatched-face ((t (:inherit default)))) - '(rainbow-delimiters-base-error-face ((default (:inherit (rainbow-delimiters-base-face))) (t (:foreground "#88090B")))) - '(trailing-whitespace ((t (:inherit whitespace-space)))) - '(hl-line ((t (:inherit highlight :extend t)))) - '(dired-broken-symlink ((t (:foreground "red1" :weight bold)))) - '(eros-result-overlay-face ((t (:foreground "#808080")))) - '(eat-term-color-1 ((t (:background "#df6760" :foreground "#df6760")))) - '(eat-term-color-0 ((t (:inherit (ansi-color-black))))) - '(eat-term-color-2 ((t (:background "#8be760" :foreground "#8be760")))) - '(eat-term-color-3 ((t (:background "#ffd17a" :foreground "#ffd17a")))) - '(eat-term-color-4 ((t (:background "#9688d9" :foreground "#9688d9")))) - '(eat-term-color-5 ((t (:background "#fc97ff" :foreground "#fc97ff")))) - '(eat-term-color-6 ((t (:background "#86adff" :foreground "#86adff")))) - '(eat-term-color-7 ((t (:background "#f1f1f1" :foreground "#f1f1f1")))) - '(eat-term-color-8 ((t (:background "#808080" :foreground "#808080")))) - '(eat-term-color-9 ((t (:inherit eat-term-color-1)))) - '(eat-term-color-10 ((t (:inherit eat-term-color-2)))) - '(eat-term-color-11 ((t (:inherit eat-term-color-3)))) - '(eat-term-color-12 ((t (:inherit eat-term-color-4)))) - '(eat-term-color-13 ((t (:inherit eat-term-color-5)))) - '(eat-term-color-14 ((t (:inherit eat-term-color-6)))) - '(eat-term-color-15 ((t (:background "#f1f1f1" :foreground "#f1f1f1")))) - '(default ((t (:inherit nil :extend nil :stipple nil :background "#101010" :foreground "#f0f0f0" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "PfEd" :family "Meslo LG M DZ")))) - '(geiser-font-lock-repl-output ((t (:foreground "#d0d0d0"))))) - -(provide-theme 'meimuna) diff --git a/files/fish/completions/config.fish b/files/fish/completions/config.fish deleted file mode 100644 index d714361..0000000 --- a/files/fish/completions/config.fish +++ /dev/null @@ -1,3 +0,0 @@ -if status is-interactive - # Commands to run in interactive sessions can go here -end diff --git a/files/fish/completions/fish_variables b/files/fish/completions/fish_variables deleted file mode 100644 index 1a82b8a..0000000 --- a/files/fish/completions/fish_variables +++ /dev/null @@ -1,31 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __fish_initialized:3400 -SETUVAR fish_color_autosuggestion:555\x1ebrblack -SETUVAR fish_color_cancel:\x2dr -SETUVAR fish_color_command:blue -SETUVAR fish_color_comment:red -SETUVAR fish_color_cwd:green -SETUVAR fish_color_cwd_root:red -SETUVAR fish_color_end:green -SETUVAR fish_color_error:brred -SETUVAR fish_color_escape:brcyan -SETUVAR fish_color_history_current:\x2d\x2dbold -SETUVAR fish_color_host:normal -SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_normal:normal -SETUVAR fish_color_operator:brcyan -SETUVAR fish_color_param:cyan -SETUVAR fish_color_quote:yellow -SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold -SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_status:red -SETUVAR fish_color_user:brgreen -SETUVAR fish_color_valid_path:\x2d\x2dunderline -SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_completion:normal -SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di -SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline -SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/files/fish/conf.d/key-bindings.fish b/files/fish/conf.d/key-bindings.fish deleted file mode 100644 index 9c2605c..0000000 --- a/files/fish/conf.d/key-bindings.fish +++ /dev/null @@ -1,144 +0,0 @@ -set -l init_mode insert - -if contains -- $argv[1] insert default visual - set init_mode $argv[1] -else if set -q argv[1] - # We should still go on so the bindings still get set. - echo "Unknown argument $argv" >&2 -end - -# Inherit shared key bindings. -# Do this first so vi-bindings win over default. -for mode in insert default visual - __fish_shared_key_bindings -s -M $mode -end - -# Add a way to switch from insert to normal (command) mode. -# Note if we are paging, we want to stay in insert mode -# See #2871 -bind -s --user -M insert \e "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end" - -# Default (command) mode -bind -s --user :q exit -bind -s --user -m insert \cc cancel-commandline repaint-mode -bind -s --user -M default h backward-char -bind -s --user -M default l forward-char -bind -s --user -M visual h begin-selection backward-char -bind -s --user -M visual l begin-selection forward-char -bind -s --user -m insert \n execute -bind -s --user -m insert \r execute -bind -s --user -m insert o insert-line-under repaint-mode -bind -s --user -m insert O insert-line-over repaint-mode -bind -s --user -m insert i repaint-mode -bind -s --user -m insert I beginning-of-line repaint-mode -bind -s --user -m insert a forward-single-char repaint-mode -bind -s --user -m insert A end-of-line repaint-mode - -# Selection keys (if in default mode) -bind -s --user -M default -m visual H begin-selection backward-char -bind -s --user -M default -m visual L begin-selection forward-char -bind -s --user -M default -m visual J begin-selection down-or-search -bind -s --user -M default -m visual K begin-selection up-or-search -bind -s --user -M default -m visual x beginning-of-line begin-selection end-of-line -# TODO: Implement x when already in visual mode -# (if already in visual mode) -bind -s --user -M visual H backward-char -bind -s --user -M visual L forward-char -bind -s --user -M visual J backward-char -bind -s --user -M visual K backward-char - -# Goto keys -bind -s --user gh end-selection beginning-of-line -bind -s --user gj end-selection end-of-buffer -bind -s --user gk end-selection beginning-of-buffer -bind -s --user gl end-selection end-of-line -bind -s --user gg end-selection beginning-of-buffer - -# (Goto+Selection) keys -bind -s --user -M default -m visual gH begin-selection beginning-of-line -bind -s --user -M default -m visual gJ begin-selection end-of-buffer -bind -s --user -M default -m visual gK begin-selection beginning-of-buffer -bind -s --user -M default -m visual gL begin-selection end-of-line -bind -s --user -M visual gH beginning-of-line -bind -s --user -M visual gJ end-of-buffer -bind -s --user -M visual gK beginning-of-buffer -bind -s --user -M visual gL end-of-line - -# Undo keys -bind -s --user u undo -bind -s --user U redo - -# History navigation -bind -s --user / history-pager --sets-mode insert repaint - -bind -s --user k up-or-search -bind -s --user j down-or-search -bind -s --user b -m visual backward-word -bind -s --user B -m visual backward-bigword -bind -s --user w -m visual forward-word forward-single-char -bind -s --user W -m visual forward-bigword forward-single-char - -# Backspace deletes a char in insert mode -bind -s --user -M insert -k backspace backward-delete-char -bind -s --user -M insert \ch backward-delete-char -bind -s --user -M insert \x7f backward-delete-char - -bind -s --user -M visual d kill-selection - -bind -s --user '~' togglecase-char forward-single-char -bind -s --user gu downcase-word -bind -s --user gU upcase-word - -bind -s --user J end-of-line delete-char -bind -s --user K 'man (commandline -t) 2>/dev/null; or echo -n \a' - -bind -s --user y yank-selection - -bind -s --user -m normal -M visual f forward-jump -bind -s --user -m normal -M visual t forward-jump-till -bind -s --user -m normal -M visual F backward-jump -bind -s --user -m normal -M visual T backward-jump-till - -bind -s --user p forward-char yank -bind -s --user P yank -bind -s --user gp yank-pop - -# same vim 'pasting' note as upper -bind -s --user '"*p' forward-char "commandline -i ( xsel -p; echo )[1]" -bind -s --user '"*P' "commandline -i ( xsel -p; echo )[1]" - -# -# Lowercase r, enters replace_one mode -# -bind -s --user -m replace_one r repaint-mode -bind -s --user -M replace_one -m default '' delete-char self-insert backward-char repaint-mode -bind -s --user -M replace_one -m default \r 'commandline -f delete-char; commandline -i \n; commandline -f backward-char; commandline -f repaint-mode' -bind -s --user -M replace_one -m default \e cancel repaint-mode - -# -# Uppercase R, enters replace mode -# -bind -s --user -m replace R repaint-mode -bind -s --user -M replace '' delete-char self-insert -bind -s --user -M replace -m insert \r execute repaint-mode -bind -s --user -M replace -m default \e cancel repaint-mode - -bind -s --user -M visual -m insert c kill-selection end-selection repaint-mode -bind -s --user -M visual -m default '~' togglecase-selection end-selection repaint-mode - -bind -s --user -M visual -m default \cc end-selection repaint-mode -bind -s --user -M visual -m default \e end-selection repaint-mode - -# Make it easy to turn an unexecuted command into a comment in the shell history. Also, remove -# the commenting chars so the command can be further edited then executed. -bind -s --user -M default \# __fish_toggle_comment_commandline -bind -s --user -M visual \# __fish_toggle_comment_commandline -bind -s --user -M replace \# __fish_toggle_comment_commandline - -# Set the cursor shape -# After executing once, this will have defined functions listening for the variable. -# Therefore it needs to be before setting fish_bind_mode. -set -g fish_vi_cursor inclusive -set -g fish_cursor_selection_mode inclusive - -set fish_bind_mode $init_mode diff --git a/files/fish/functions/fish_custom_functions.fish b/files/fish/functions/fish_custom_functions.fish deleted file mode 100644 index 9724080..0000000 --- a/files/fish/functions/fish_custom_functions.fish +++ /dev/null @@ -1,25 +0,0 @@ -function xdg-user-directory - eval (string join '' 'echo $XDG_' \ - (string replace '@' '' (string upper $argv[1])) \ - '_DIR') -end - -function bang-bang - echo "$history[1]" -end - -function bang-bang-k - set -l k (string replace '!!:' '' $argv[1]) - set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) - echo $arr[$k] -end - -function bang-dollar - set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) - echo $arr[-1] -end - -function bang-star - set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) - echo $arr[..-2] -end diff --git a/files/fish/functions/fish_greeting.fish b/files/fish/functions/fish_greeting.fish deleted file mode 100644 index 018520b..0000000 --- a/files/fish/functions/fish_greeting.fish +++ /dev/null @@ -1,2 +0,0 @@ -function fish_greeting -end diff --git a/files/fish/functions/fish_prompt.fish b/files/fish/functions/fish_prompt.fish deleted file mode 100644 index 0bb7dea..0000000 --- a/files/fish/functions/fish_prompt.fish +++ /dev/null @@ -1,77 +0,0 @@ -# Utilities - -function blue - set_color blue; printf $argv; set_color normal -end -function normal - set_color normal; printf $argv; set_color normal -end - -function displayed_string_length - string replace -ra -- '\x1b.*?[mGKH]' '' "$argv" | string length -end - -function padding - printf "%-"$argv[1]"s%s" " " "$output" -end - -# Current working directory prompt -function fish_cwd_prompt - set -l cwd (pwd) - switch "$cwd" - case "$HOME" - printf "~" - case "/" - printf "/" - case "*" - set -l parent_dir (dirname $cwd) - switch "$parent_dir" - case "$HOME" - printf "~/%s" (basename $cwd) - case "/" - printf "/%s" (basename $cwd) - case "*" - printf "%s/%s" (basename $parent_dir) (basename $cwd) - end - end -end - -# Guix environment prompt -function fish_environment_prompt - normal "(env "; blue "%s" (basename $GUIX_ENVIRONMENT); normal ")" -end - -# Actual prompt -function fish_prompt - if test -n "$GUIX_ENVIRONMENT" - set -l fish_environment_prompt_length \ - (displayed_string_length (fish_environment_prompt)) - set -l fish_git_prompt_length \ - (displayed_string_length (fish_git_prompt)) - - fish_environment_prompt - printf (padding (math $COLUMNS - $fish_environment_prompt_length \ - - $fish_git_prompt_length)) - fish_git_prompt | string replace -ra ' ' '' - printf '\n' - else - function fish_right_prompt - fish_git_prompt - end - end - - set -g fish_key_bindings fish_vi_key_bindings - switch "$fish_key_bindings" - case fish_vi_key_bindings fish_hybrid_key_bindings - test $fish_bind_mode = 'default' && normal ':' || normal '+' - end - - blue (whoami); normal ' at '; blue (prompt_hostname) - normal ' in '; blue (fish_cwd_prompt) - normal ' > ' -end - -function fish_default_mode_prompt -d "Display vi prompt mode" - # Do nothing -end - diff --git a/files/fish/variables.fish b/files/fish/variables.fish deleted file mode 100644 index 1a82b8a..0000000 --- a/files/fish/variables.fish +++ /dev/null @@ -1,31 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __fish_initialized:3400 -SETUVAR fish_color_autosuggestion:555\x1ebrblack -SETUVAR fish_color_cancel:\x2dr -SETUVAR fish_color_command:blue -SETUVAR fish_color_comment:red -SETUVAR fish_color_cwd:green -SETUVAR fish_color_cwd_root:red -SETUVAR fish_color_end:green -SETUVAR fish_color_error:brred -SETUVAR fish_color_escape:brcyan -SETUVAR fish_color_history_current:\x2d\x2dbold -SETUVAR fish_color_host:normal -SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_normal:normal -SETUVAR fish_color_operator:brcyan -SETUVAR fish_color_param:cyan -SETUVAR fish_color_quote:yellow -SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold -SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_status:red -SETUVAR fish_color_user:brgreen -SETUVAR fish_color_valid_path:\x2d\x2dunderline -SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_completion:normal -SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di -SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline -SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/files/git/config b/files/git/config deleted file mode 100644 index 6b7db66..0000000 --- a/files/git/config +++ /dev/null @@ -1,27 +0,0 @@ -[user] - email = lgcoelho@disroot.org - name = Luis Guilherme Coelho - signingkey = F164709E5FC7B32BAEC79F371F2E76ACE3F531C8 -[color] - ui = true -[core] - editor = kak -[filter "lfs"] - required = true - clean = git-lfs clean -- %f - smudge = git-lfs smudge -- %f - process = git-lfs filter-process -[init] - defaultBranch = main -[usern] - name = anemofilia -[alias] - see = log --graph --oneline - see-all = log --graph --all --oneline - last = log -1 HEAD - unstage = reset HEAD - root = rev-parse --show-toplevel -[credential] - helper = cache -[commit] - gpgsign = true diff --git a/files/info b/files/info deleted file mode 100644 index 2c1edb3..0000000 --- a/files/info +++ /dev/null @@ -1,51 +0,0 @@ -#info -gk first-node -gj last-node -\mb beginning-of-node -\me end-of-node -j next-line -k prev-line -f scroll-forward-page-only -^f scroll-forward-page-only -\m\ scroll-forward-page-only -z scroll-forward-page-only-set-window -b scroll-backward-page-only -^b scroll-backward-page-only -w scroll-backward-page-only-set-window -\kd select-reference-this-line -^j down-line -^k up-line -d scroll-half-screen-down -^d scroll-half-screen-down -u scroll-half-screen-up -^u scroll-half-screen-up -K next-node -J prev-node -TAB up-node -' last-node -\mt top-node -\md dir-node -^xg goto-node -I goto-invocation-node -n search-next -N search-previous -\mf xref-item -^xr xref-item -\mg select-reference-this-line -^x^j select-reference-this-line -^x^m select-reference-this-line -^c abort-key -\mh get-info-help-node -:q quit -ZZ quit - -#echo-area -\mh echo-area-backward -\ml echo-area-forward -\m0 echo-area-beg-of-line -\m$ echo-area-end-of-line -\mw echo-area-forward-word -\mx echo-area-delete -\mu echo-area-abort -^v echo-area-quoted-insert -\mX echo-area-kill-word diff --git a/files/kak/autoload/colorscheme.kak b/files/kak/autoload/colorscheme.kak deleted file mode 100644 index dbdad10..0000000 --- a/files/kak/autoload/colorscheme.kak +++ /dev/null @@ -1,52 +0,0 @@ -# Kakoune default color scheme - -# For Code -face global value red -face global type yellow -face global variable green -face global module green -face global function cyan -face global string magenta -face global keyword blue -face global operator yellow -face global attribute green -face global comment cyan -face global documentation comment -face global meta magenta -face global builtin default+b - -# For markup -face global title blue -face global header cyan -face global mono green -face global block magenta -face global link cyan -face global bullet blue -face global list yellow - -# builtin faces -face global Default default,default -face global PrimarySelection black,blue+fg -face global SecondarySelection black,rgb:9a9a9a -face global PrimaryCursor black,blue+fg -face global SecondaryCursor black,rgb:9a9a9a -face global PrimaryCursorEol black,blue+fg -face global SecondaryCursorEol black,rgb:9a9a9a -face global LineNumbers default,default -face global LineNumberCursor rgb:8581e0,rgb:313131 -face global MenuForeground rgb:151515,blue -face global MenuBackground blue,rgb:151515 -face global MenuInfo blue,rgb:151515 ## was cyan -face global Information blue,rgb:232323 -face global Error default -face global DiagnosticError red -face global DiagnosticWarning yellow -face global StatusLine blue,rgb:313131 -face global StatusLineMode rgb:313131,blue -face global StatusLineInfo blue,rgb:313131 -face global StatusLineValue blue,rgb:313131 -face global StatusCursor default+r -face global Prompt white,default -face global MatchingChar default,default+b -face global Whitespace default,default+fd -face global BufferPadding blue,default diff --git a/files/kak/kakrc b/files/kak/kakrc deleted file mode 100644 index 42ecb7b..0000000 --- a/files/kak/kakrc +++ /dev/null @@ -1,477 +0,0 @@ -#________ Options ___________ -# Keep status bar in the default place -set-option -add global ui_options terminal_status_on_top=false - -# Set an invisible padding char -set-option -add global ui_options terminal_padding_char= - -# Always keep two lines and two columns displayed around the cursor -set-option global scrolloff 2,2 - -# No assistant -set-option -add global ui_options terminal_assistant=cat - -hook global ModuleLoaded x11 %{ - set-option global termcmd "%sh{echo $TERMINAL} -e " -} # Set termcmd - -# __________ Commands __________ -define-command -override lf-open \ - -docstring 'pick a file with lf' %{ - terminal dash -c %{ - # Local variables - kak_buffile=$1 kak_session=$2 kak_client=$3 - - # Create temporary file for selection - lf_tmp=$(mktemp "${TMPDIR:-/tmp}"/lf-open.XXXXXXXXXX) - - # Get working directory of current buffer - kak_pwd=$(dirname "${kak_buffile}") - - # Pick a file with lf - $(lf -selection-path "${lf_tmp}" "${kak_pwd}") - - # Get first line of selection file (ignoring multiple selections) - filename=$(head -n 1 "${lf_tmp}") - - # Only echo a command back if there was a selection - if [ -n "$filename" ]; then - # Construct the command to pass to kakoune - kak_cmd="evaluate-commands -client $kak_client edit $filename" - - # Echo the command back to the parent session - echo $kak_cmd | kak -p $kak_session - fi - } -- %val{buffile} %val{session} %val{client} -} - -define-command -override cron \ - -docstring 'edit cron services' %{ - execute-keys ': e ~/.config/cron/' -} - -define-command -override todo \ - -docstring 'edit todo list' %{ - edit '~/areas/meta/todo' -} - -define-command -override guix-todo \ - -docstring 'edit todo list' %{ - edit '~/projects/code/org/guix-todo/todo.org' -} - -declare-option str radix '~/projects/code/scm/radix' -define-command -override radix \ - -docstring 'edit files in the radix git repository' %{ - execute-keys ":e %opt{radix}/" -} - -define-command -override home \ - -docstring 'edit home declaration' %{ - edit "%opt{radix}/home-environments/%sh{whoami}.scm" -} - -define-command -override system \ - -docstring 'edit system declaration' %{ - edit "%opt{radix}/operating-systems/%sh{hostname}.scm" -} - -declare-option str radix_files "%opt{radix}/files" -define-command -override files \ - -docstring 'edit dotfiles' %{ - execute-keys ":e %opt{radix_files}/" -} - -declare-option str radix_modules "%opt{radix}/modules/radix" -define-command -override modules \ - -docstring 'edit radix modules' %{ - execute-keys ":e %opt{radix_modules}/" -} - -declare-option str radix_services "%opt{radix_modules}/services" -define-command -override services \ - -docstring 'edit radix services' %{ - execute-keys ":e %opt{radix_services}/" -} - -declare-option str radix_packages "%opt{radix_modules}/packages" -define-command -override packages \ - -docstring 'edit radix packages' %{ - execute-keys ":e %opt{radix_packages}/" -} - -declare-option str radix_home_services "%opt{radix_modules}/home/services" -define-command -override home-services \ - -docstring 'edit radix home services' %{ - execute-keys ":e %opt{radix_home_services}/" -} - -define-command -override colorscheme-config \ - -docstring 'edit colorscheme configuration file' %{ - edit "%opt{radix_files}/kak/autoload/colorscheme.kak" -} - -define-command -override config \ - -docstring 'edit kakoune main configuration file' %{ - edit "%opt{radix_files}/kak/kakrc" -} - -define-command -override rss \ - -docstring 'edit rss feeds file' %{ - edit "%opt{radix_files}/newsraft/feeds" -} - -define-command -override remind \ - -docstring 'edit reminders' %{ - execute-keys ': e /home/radio/.local/share/reminders/' -} - -define-command -params 1 -override tex-project \ - -docstring 'edit or create a new tex-project' %{ - evaluate-commands 'cd ~/Projects/latex/' - nop %sh{ mkdir -p "$1" } - evaluate-commands 'cd "%arg{1}"' - nop %sh{ - [ -s $1.tex ] || cat ../example/example.tex \ - | sed "s/example/$1/" > "$1.tex"; - } - edit "%arg{1}.tex" - execute-keys '16gA' -} -define-command -override open-buffer-picker \ - -docstring 'open-buffer-picker: Opens buffer picker.' %{ - prompt buffer: -buffer-completion %{ buffer %val{text} } -} - -define-command -override toggle-readonly \ - -docstring 'changes buffer readonly option current state' %{ - set-option buffer readonly %sh{ "$kak_opt_readonly" && echo false || echo true } -} - -define-command -override qalc \ - -params .. %{echo %sh{qalc ${@}}} \ - -docstring 'compute equation with Qalculate!' -complete-command qalc shell-script-candidates %{ - { echo $(qalc --list-functions | head -n -3) - echo $(qalc --list-variables | head -n -3) } | tr ' ' '\n' | sort | uniq -} - -define-command diff-buffers -override -params 2 \ - -docstring 'show the diff of two buffers'%{ - evaluate-commands %sh{ - file1=$(mktemp) - file2=$(mktemp) - echo " - evaluate-commands -buffer '$1' write -force $file1 - evaluate-commands -buffer '$2' write -force $file2 - edit! -scratch *diff-buffers* - set buffer filetype diff - set-register | 'diff -u $file1 $file2; rm $file1 $file2' - execute-keys !gg - " -}} -complete-command diff-buffers buffer - -# __________ Hidden commands __________ -define-command -override -hidden edit-from-file %{ - execute-keys ":edit %sh{dirname $kak_buffile}/" -} - -define-command -override -hidden spawn-terminal-from-file %{ - set-register b "%sh{pwd}" - change-directory "%sh{dirname $kak_buffile}" - evaluate-commands "terminal %sh{echo $SHELL} -c" - change-directory "%reg{b}" -} # Spawn a terminal in the current buffer's file directory - -# __________ Mappings __________ -map global normal ': buffer-previous' -map global normal Y ': yank-helperu' \ - -docstring 'yank non-selections' - -map global normal D '"ad%d"a' \ - -docstring 'yank and delete non-selections' - -map global normal '"ad%"a' \ - -docstring 'delete non-selections (not yanking)' - -map global user ': spawn-terminal-from-file' \ - -docstring "open a new terminal within the current file's directory" - -map global user c ': comment-line' \ - -docstring 'comment-line' - -map global user ': comment-block' \ - -docstring 'comment-block' - -map global user D '| date +"%d %b %Y %a" -f -' \ - -docstring 'parse date to 01 Feb 2001 Tue format' - -map global user d ': lf-open' \ - -docstring 'pick a file with lf' - -map global user e ":edit-from-file" \ - -docstring "edit a file, searching from current file's directory" - -map global user l ': enter-user-mode lsp' \ - -docstring 'enter lsp user mode' - -try %{ declare-user-mode open-sel } -map global user o ': enter-user-mode open-sel' \ - -docstring 'enter open-sel user mode' - -map global user r ': remind' \ - -docstring 'edit reminders' - -map global user s ': enter-user-mode surround' \ - -docstring 'enter surround user mode' - -map global user u ': echo -markup "{Information}U+%sh{printf ''%04x'' ""$kak_cursor_char_value""}"' \ - -docstring 'show the value of the selected unicode char' - -map global user q ': delete-buffer' \ - -docstring 'delete current buffer' - -map global user Q ': delete-buffer!' \ - -docstring 'delete current buffer' - -map global open-sel b '$ icecat $kak_reg_dot & disown' \ - -docstring 'on browser' - -map global open-sel m '$ mpv $kak_reg_dot & disown' \ - -docstring 'on mpv' - -map global goto b ': open-buffer-picker' \ - -docstring 'buffer' - -map global normal = ': prompt math: %{exec "a %val{text}esc>|qalc -t +u8 -f -ret>"}' \ - -docstring 'Replace selection by the result of some operation over it' - -map global object 'c,'\ - -docstring 'whitespaces' - -try %{ declare-user-mode git } -map global git l ': git log' -docstring 'log' -map global git c ': git commit' -docstring 'commit' -map global git d ': git diff' -docstring 'diff' -map global git s ': git status' -docstring 'status' -map global git h ': git show-diff' -docstring 'show diff' -map global git H ': git-hide-diff' -docstring 'hide diff' - -# __________ Hooks __________ -hook -group config global BufCreate 'kakrc' %{ - set-option buffer filetype kak -} # Set kakrc's filetype to kak - -hook -group config global BufCreate '.*\.(bash_profile|profile|bashrc|bash_aliases)' %{ - set-option buffer filetype sh -} # Set filetype of bash configuration files to sh - -hook global BufCreate '\*scratch\*' %{ - execute-keys '%' -} # Remove the *scratch* message - -hook global BufCreate .* %{ - add-highlighter buffer/ number-lines -relative -hlcursor -} # Set relative line numbers and visual line break - -hook global BufWritePost ".*/kakrc" %{ - source "%val{buffile}" -} # Source kakrc on save - -hook global BufOpenFile '.*\.clj' %{ - terminal dash -c "cd $(dirname $kak_buffile); lein repl" -} # Set defaults for clojure coding - -hook global BufWritePost "%val{config}/autoload/colorscheme.kak" %{ - source "%val{config}/autoload/colorscheme.kak" - evaluate-commands palette-gutter -} # Automatically source colorscheme.kak on save - -hook global BufOpenFile "%val{config}/autoload/colorscheme.kak" %{ - evaluate-commands palette-gutter -} # Display faces in the colorscheme file - -hook global BufOpenFile .* %{ - add-highlighter buffer/ wrap -indent -word -marker '↩' - add-highlighter buffer/ show-whitespaces -tab '→' -} # Set highlighters for file buffers - -hook global BufCreate '\*scratch\*' %{ - add-highlighter buffer/ wrap -indent -word -marker '↩' - add-highlighter buffer/ show-whitespaces -tab '→' -} # Set highlighters for scratch buffers - -hook global InsertCompletionShow .* %{ - map window insert - map window insert -} -hook global InsertCompletionHide .* %{ - map window insert - map window insert -} # Use tab for completion movement - -hook -group config global BufSetOption filetype=kak %{ - set-option buffer indentwidth 2 - set-option buffer line_comment_token '#' -} # Kakscript comment tokens - -hook -group config global BufSetOption filetype=scheme %{ - #map buffer normal '' ': echo %sh{ guile -c "(display $kak_reg_dot)" }' - set-option buffer indentwidth 2 - set-option buffer line_comment_token ';;' - set-option buffer block_comment_tokens '#|' '|#' - evaluate-commands 'rainbow-enable' -} # Guile Scheme - -hook -group config global BufSetOption filetype=clojure %{ - set-option buffer indentwidth 2 - set-option window formatcmd 'zprint' - set-option window lintcmd 'clj-kondo' - set-option buffer line_comment_t - set-option buffer block_comment_tokens '(comment' ')' - evaluate-commands 'rainbow-enable' -} # Clojure comment tokens - -hook -group config global BufSetOption filetype=scheme %{ - set-option buffer indentwidth 2 - set-option window formatcmd 'guix style --whole-file' - set-option buffer line_comment_t ';;' - set-option buffer block_comment_tokens '#|' '|#' -} # Scheme comment tokens - -hook -group config global BufSetOption filetype=(c|cpp) %{ - set-option window formatcmd 'clazy' - set-option buffer line_comment_token '//' - set-option buffer block_comment_tokens '/*' '*/' -} # C and C++ comment tokens - -hook -group config global BufSetOption filetype=python %{ - set-option buffer line_comment_token '#' - set-option buffer block_comment_tokens '"""' '"""' -} # Python comment token tokens - -hook -group config global BufSetOption filetype=lua %{ - set-option buffer line_comment_token '--' - set-option buffer block_comment_tokens '[[--' '--]]' -} # Lua comment tokens - -hook -group config global BufSetOption filetype=(sh|dash) %{ - set-option window formatcmd 'shfmt' - set-option window lintcmd 'shellharden' - set-option buffer line_comment_token '#' - set-option buffer block_comment_tokens "<<'####'" '###' -} # Shell comment tokens - -hook -group config global BufSetOption filetype=zig %{ - set-option buffer line_comment_token '//' -} # Zig comment tokens - -hook global WinSetOption filetype=kak %{ - hook global NormalIdle .* %{ - evaluate-commands -save-regs 'a' %{ - try %{ - execute-keys -draft w"ay - evaluate-commands %sh{ ( - color="${kak_reg_a}" - inverted_color=$(echo "${color}" | perl -pe 'tr/0123456789abcdefABCDEF/fedcba9876543210543210/') - printf "%s\n" "evaluate-commands -client $kak_client %{ try %{ - echo -markup %{{rgb:${inverted_color},rgb:${color}+b} #${color} } - }}" | kak -p $kak_session - ) >/dev/null 2>&1 /dev/null 2>&1 & -}} - -cmd __cd :cd "$1" - -# cd -cmd cd ${{ - kill $pid - eval "inotifywait -me MODIFY $1 | \ - while read LINE; do send $id :reload; done &" - pid=$! - send $id :__cd -}} - -# Share on telegram -cmd send ${{ - wmctrl -x -a TelegramDesktop - telegram-desktop -sendpath \ - $(for f in $fx; do readlink -f $f; done) -}} - -# Open lf config -cmd config $$EDITOR "~/projects/code/scm/radix/files/lf/lfrc" - -# mkdir with :mkdir -cmd mkdir %mkdir -- "$@" - -# rename file -cmd rename %mv "$f" $(echo "$@" | sed 's/ /\ /g') - -# Open editor -cmd edit ${{ - setsid -f "$TERMINAL -e $EDITOR $f" & -}} - -# Change file mode bits -cmd chmod %chmod "$@" && echo "Mode bits changed" & lf -remote reload - -# Copy filename without extension -cmd yank-basename $basename -a -- $fx | head -c-1 | xclip --clipboard - -# Upload selected files to 0x0 and yank it's path and link -cmd share %printf "$fx\n $(curl -F file="@$fx" http://0x0.st)" | xsel -b && echo "File shared" - -# Rotate file -cmd rotate-file %{{ - case "$1" in - right) direction=1;; - left) direction=-1;; - *) direction=0;; - esac - case $(file --mime-type "$f" -bL) in - image/*) convert "$f" -rotate $((90*direction)) "$f";; - application/pdf) pdftk "$f" cat 1-end"$1" output "rotated-${f##*/}" \ - && rm "$f" \ - && mv "rotated-${f##*/}" "$f";; - video/*) ffmpeg -i "$f" -vf "transpose=$((direction+1))" "rotated-${f##*/}" \ - && rm "$f" \ - && mv "rotated-${f##*/}" "$f";; - inode/directory) for file in $(ls "$f"); do rotate "$1" "$file"; done;; - esac - echo "File rotated" -}} - -# Rotate selected files -cmd rotate %{{ - case "$1" in - right) direction=1;; - left) direction=-1;; - *) direction=0;; - esac - for file in "$fx"; do - case $(file --mime-type "${file}" -bL) in - image/*) convert "${file}" -rotate $((90*direction)) "${file}";; - application/pdf) pdftk "${file}" cat 1-end"$1" output "rotated-${file##*/}" \ - && rm "${file}" \ - && mv "rotated-${file##*/}" "$file";; - video/*) ffmpeg -i "${file}" -vf "transpose=$((direction+1))" "rotated-${file##*/}" \ - && rm "${file}" \ - && mv "rotated-${file##*/}" "${file}";; - esac - done - echo "File rotated!" -}} - -cmd extract ${{ - set -f - case $f in - *.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;; - *.tar.gz|*.tgz) tar xzvf $f;; - *.tar.xz|*.txz) tar xJvf $f;; - *.zip) unzip $f;; - *.rar) unrar x $f;; - *.7z) 7z x $f;; - esac -}} - -cmd compress ${{ - set -f - mkdir $1 - cp -r $fx $1 - tar czf $1.tar.gz $1 - rm -rf $1 -}} - -cmd newfold %{{ - set -f - mkdir -- "$1" - mv -- $fx "$1" -}} - -cmd term &{{ - setsid -f $TERMINAL >/dev/null 2>&1 & disown -}} - -cmd e :edit -cmd q :quit - -# Bindings -# Remove some defaults -map n -map e -map r -map dd - -# File openers -map ee $$EDITOR "$f" -map e! $doas $EDITOR "$f" -map b &setsid -f $BROWSER "$f" - -# Basic functions -mao l cd "$f" -map c copy && echo "$fx" | xsel -b -map d delete -map x cut -map open -map delete -map rc push :rename -map re $lf -remote "send $id :rename$(printf '%q' ${f##*/})" -map set hidden! -map push $ -map push :newfold -map :rotate right -map :rotate left -map :term - -# Movement -map gk top -map gj bottom -map gD cd ~/desktop -map gc cd ~/.config -map gd cd ~/documents -map gl cd ~/.local/share/downloads -map gm cd ~/music -map gp cd ~/pictures -map gv cd ~/videos - -# run on startup -cmd on-cd &{{ - # '&' commands run silently in background (which is what we want here), - # but are not connected to stdout. - # To make sure our escape sequence still reaches stdout we pipe it to /dev/tty - printf "\033]0; $(pwd | sed "s|$HOME|~|;s|.*/||g") - lf\007" > /dev/tty -}} - -# also run at startup -on-cd - -%[ $LF_LEVEL -eq 1 ] || echo "Warning: You're in a nested lf instance of depth $LF_LEVEL!" diff --git a/files/mpv/input.conf b/files/mpv/input.conf deleted file mode 100644 index 9cb8e78..0000000 --- a/files/mpv/input.conf +++ /dev/null @@ -1,105 +0,0 @@ -# mpv keybindings -# -# Location of user-defined bindings: ~/.config/mpv/input.conf -# -# List of commands and further details: DOCS/man/input.rst -# List of special keys: --input-keylist -# Keybindings testing mode: mpv --input-test --force-window --idle -# -# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore'). -# -# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with -# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal). -# -# The default keybindings are hardcoded into the mpv binary. -# You can disable them completely with: --no-input-default-bindings - -h no-osd seek -5 # seek 5 seconds backward -l no-osd seek 5 # seek 5 seconds forward -Ctrl+h no-osd sub-seek -1 # seek to the previous subtitle -Ctrl+l no-osd sub-seek 1 # seek to the next subtitle -Ctrl+ESC revert-seek # undo the previous (or marked) seek - -j add sub-pos +1 # move subtitles down -k add sub-pos -1 # move subtitles up - -Shift+l add chapter -1 # seek to the previous chapter -Shift+h add chapter 1 # seek to the next chapter - -Ctrl+Shift+h sub-step -1 # change subtitle timing such that the previous subtitle is displayed -Ctrl+Shift+l sub-step 1 # change subtitle timing such that the next subtitle is displayed - -Alt+h add video-pan-x 0.1 # move the video right -Alt+l add video-pan-x -0.1 # move the video left -Alt+k add video-pan-y 0.1 # move the video down -Alt+j add video-pan-y -0.1 # move the video up - -Alt++ add video-zoom 0.1 # zoom in -Alt+- add video-zoom -0.1 # zoom out -Alt+ESC set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 # reset zoom and pan settings - -[ add speed 0.25 # decrease the playback speed -] add speed 0.25 # increase the playback speed -ESC set speed 1.0 # reset the speed to normal - -#XF86_PLAY cycle pause # toggle pause/playback mode -#XF86_PAUSE cycle pause # toggle pause/playback mode -#Xf86_NEXT playlist-next # skip to the next file -#Xf86_PREV playlist-prev # skip to the previous file - -VOLUME_UP add volume 1 -VOLUME_DOWN add volume -1 -m cycle mute # toggle mute - -1 add contrast -1 -2 add contrast 1 -3 add brightness -1 -4 add brightness 1 -5 add gamma -1 -6 add gamma 1 -7 add saturation -1 -8 add saturation 1 - -SPACE cycle pause # toggle pause/playback mode -q quit # Are u kidding me? -Q quit-watch-later # exit and remember the playback position - -. frame-step # advance one frame and pause -, frame-back-step # go back by one frame and pause - -ENTER script-binding console/enable # open the console - -i script-binding stats/display-stats-toggle # toggle displaying information and statistics - -> add sub-delay -0.1 # shift subtitles 100 ms earlier -< add sub-delay +0.1 # delay subtitles by 100 ms -Ctrl+Shift++ add sub-scale +0.1 # increase the subtitle font size -Ctrl+Shift+- add sub-scale -0.1 # decrease the subtitle font size -#j cycle sub # switch subtitle track -#J cycle sub down # switch subtitle track backwards -#v cycle sub-visibility # hide or show the subtitles -#Alt+v cycle secondary-sub-visibility # hide or show the secondary subtitles - -#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio -#ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier - -s screenshot # take a screenshot of the video in its original resolution with subtitles -S screenshot window # take a screenshot of the window with OSD and subtitles -Alt+s screenshot each-frame # automatically screenshot every frame; issue this command again to stop taking screenshots - -#d cycle deinterlace # toggle the deinterlacing filter -#V cycle sub-ass-vsfilter-aspect-compat # toggle stretching SSA/ASS subtitles with anamorphic videos to match the historical renderer -#u cycle-values sub-ass-override "force" "no" # toggle overriding SSA/ASS subtitle styles with the normal styles - -#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect) -a vf toggle hflip # Flip video like a mirror - - -#E cycle edition # switch edition -#l ab-loop # set/clear A-B loop points -#L cycle-values loop-file "inf" "no" # toggle infinite looping -#ctrl+h cycle-values hwdec "auto" "no" # toggle hardware decoding - -F8 show-text ${playlist} # show the playlist -F9 show-text ${track-list} # show the list of video, audio and sub tracks - diff --git a/files/mpv/lua-settings/torque-progressbar.conf b/files/mpv/lua-settings/torque-progressbar.conf deleted file mode 100644 index bc98770..0000000 --- a/files/mpv/lua-settings/torque-progressbar.conf +++ /dev/null @@ -1,108 +0,0 @@ -#[=[ mouse zone settings ]=]# -# Height of area at the bottom of the screen that expands the bar and -# shows times when mouse is hovered over it. Pixels. -hover-zone-height=40 -# The height of the area at the top of the screen that shows the file -# name when the mouse is hovered over it. Pixels. -top-hover-zone-height=40 - -#[=[ default color settings ]=]-- -# Default foreground and background colors. Will be used for all color -# settings (except chapter-marker-before) unless set explicitly. -# Format is BGR hex because ASS is dumb. -foreground=FC799E -background=2D2D2D - -#[=[ progress bar options ]=]# -# whether or not to draw the progress bar at all. -enable-bar=yes -# [[ bar size options ]] # -# Inactive bar height. Pixels. Bar is invisible when inactive if 0. -bar-height-inactive=0 -# Active (i.e. hovered) bar height. Pixels. -bar-height-active=18 -# [[ bar color options ]] # -# Progress bar foreground color. BGR hex. -bar-foreground=FC799E -bar-background=2D2D2D - -#[=[ elapsed time options ]=]# -enable-elapsed-time=yes -# Elapsed time foreground and background colors. BGR hex. -elapsed-foreground=FC799E -elapsed-background=2D2D2D - -#[=[ remaining time options ]=]# -enable-remaining-time=yes -# Remaining time foreground and background colors. BGR hex. -remaining-foreground=FC799E -remaining-background=2D2D2D - -#[=[ hover time options ]=]# -enable-hover-time=yes -# Hover time foreground and background colors. BGR hex. -hover-time-foreground=FC799E -hover-time-background=2D2D2D - -#[=[ title display options ]=]# -enable-title=yes -# Font size for the title. Integer. -title-font-size=12 -# Title/playlist foreground and background colors. BGR hex. -title-foreground=FC799E -title-background=2D2D2D - -#[=[ pause indicator options ]=]# -# Flash an icon in the center of the screen when pausing/unpausing. -pause-indicator=yes -# Pause indicator foreground and background colors. BGR hex. -pause-indicator-foreground=FC799E -pause-indicator-background=2D2D2D - -#[=[ chapter marker options ]=]# -# Enable or disable chapter position markers on the progress bar -# entirely. -enable-chapter-markers=yes -# [[ chapter marker size options ]] # -# Width of chapter markers in pixels. Probably want an even number. -chapter-marker-width=2 -# Width of chapter markers in pixels when the seek bar is active. -# Still probably want an even number. -chapter-marker-width-active=4 -# Fraction of the height of the active progress bar that chapter -# markers. 0 is 0, 1 is the height of the active progress bar. -chapter-marker-active-height-fraction=1 -# [[ chapter marker color options ]] # -# color of chapter marker before/after it has been passed. BGR hex. -chapter-marker-before=7A77F2 -chapter-marker-after=2D2D2D - -#[=[ timing options ]=]# -# Amount of time (in seconds) to display OSD when button is pressed. -request-display-duration=2 -# How often the display is redrawn, in seconds. Affects smoothness of -# animations, but lower values may use more CPU (the default is -# negligible on my old C2D, and looks okay to me) -redraw-period=0.03 - -#[=[ /!\ FONT SIZE/METRICS STUFF. CHANGE AT YOUR OWN RISK /!\ ]=]# -# Font for displaying the title and times. Changing this may warrant -# modifying some of the font metrics numbers below for proper -# display. Not recommended. -font=Source Sans Pro Semibold -# Font size for time elapsed and remaining. -time-font-size=30 -# Font size for hover time. -hover-time-font-size=26 -# Manually calculated collision/placement metrics based on font -# sizes. Probably want to change these if you change the font or -# sizes. Unfortunately, my automated solution isnt easy to set up. -# Pixels. -hover-time-left-margin=120 -hover-time-right-margin=130 -# These primarily affect animations. If the script thinks the items -# are off screen, they wont be drawn. Positive numbers will look -# goofy. -elapsed-offscreen-pos=-100 -remaining-offscreen-pos=-100 -title-offscreen-pos=-40 diff --git a/files/mpv/mpv.conf b/files/mpv/mpv.conf deleted file mode 100644 index b2bb20c..0000000 --- a/files/mpv/mpv.conf +++ /dev/null @@ -1,78 +0,0 @@ -cover-art-auto = no -no-keepaspect-window -no-terminal - -## GIF -[extension.webm] -loop-file = inf -[extension.gif] -loop-file = inf -osc = no - -## Music -[extension.opus] -no-video -[extension.mp3] -no-video -[extension.flac] -no-video -[extension.ogg] -no-video - -## Screenshot -screenshot-format=png -screenshot-tag-colorspace=yes -screenshot-high-bit-depth=yes -screenshot-sw=yes -screenshot-png-compression=0 -screenshot-png-filter=0 -screenshot-template='%F%wM%wS' - -## Image -# classic opengl-hq parameter, change at will -scale=spline36 -cscale=spline36 -dscale=mitchell -dither-depth=auto -correct-downscaling -sigmoid-upscaling -# debanding seems rarely useful with images -#deband -# dark grey background instead of pure black -background=0.2 - -## MISC -mute=yes -# the osc is mostly useful for videos -osc=no -# don't try to autoload subtitles or audio files -sub-auto=no -audio-file-auto=no -# get rid of the useless V: 00:00:00 / 00:00:00 line -term-status-msg= - -# replace mpv with mvi in the window title -title="${?media-title:${media-title}}${!media-title:No file} - mvi" - -# don't slideshow by default -image-display-duration=inf -# loop files in case of webms or gifs -loop-file=inf -# and loop the whole playlist -loop-playlist=inf - -# you need this if you plan to use drag-to-pan or pan-follows-cursor with MOUSE_LEFT -window-dragging=no - -#according to haasn, aspect ratio info for PNG and JPG is "universally bust" -[extension.png] -video-aspect-override=no - -[extension.jpg] -video-aspect-override=no - -[extension.jpeg] -profile=extension.jpg - -[silent] -msg-level=all=no diff --git a/files/newsraft/config b/files/newsraft/config deleted file mode 100644 index 18f4466..0000000 --- a/files/newsraft/config +++ /dev/null @@ -1,28 +0,0 @@ -# Set some settings -set global-section-name All -set color-list-item-important-fg black -set color-list-item-important-bg red - -set color-list-item-unread-fg blue -set color-list-feed-unread-fg blue -set color-list-section-unread-fg blue - -set scrolloff 2 - -# Remove some binds -unbind g -unbind y -unbind v - -bind s status-history-menu - -# Bind some binds -bind y exec echo %l | xsel -b -bind b exec setsid -f icecat %l >/dev/null 2>&1 & disown -bind m exec setsid -f mpv %l >/dev/null 2>&1 & disown -bind v exec setsid -f nsxiv-url %l >/dev/null 2>&1 & disown -bind c exec kak ~/.config/newsraft/config -bind gk select-first -bind gj select-last -bind R reload-all -bind z exec ~/bin/bookmark %l diff --git a/files/newsraft/feeds b/files/newsraft/feeds deleted file mode 100644 index 44d2374..0000000 --- a/files/newsraft/feeds +++ /dev/null @@ -1,120 +0,0 @@ -@ Articles -https://bt.ht/atom.xml "Brad Taunt" -https://rss.app/feeds/k6IcXeqAm5sNQXth.xml "Cem Keylan" -https://cyber.dabamos.de/blog/feed.rss "Cyber Dabamos" -https://drewdevault.com/blog/index.xml "Drew Devault" -https://edwardsnowden.substack.com/feed "Edward Snowden" {60} -https://feeds.twit.tv/floss.xml "Floss Weekly" -https://forums.freebsd.org/forums/howtos-and-faqs-moderated.39/index.rss "FreeBSD Forum Hacks and FAQ's" -https://forums.freebsd.org/forums/-/index.rss "FreeBSD Forum Index" -https://m7.rs/feed.xml "Gabriel Fontes (Based)" -https://gsthnz.com/posts/index.xml "Gustavo Heinz" -https://lukesmith.xyz/rss.xml "Luke Smith" {60} -https://www.privacytools.io/guides/rss.xml "Privacy Tools" -https://ohhelloana.blog/feed.xml "Oh Hello Ana" -https://stallman.org/rss/rss.xml "Richard Stallman" -https://simonsafar.com/index.xml "Simon Safar" -https://www.thedroneely.com/posts/rss.xml "Thedro Neely" -https://wilw.dev/rss.xml "Will Webberley's blog" - -@ Chess -https://yewtu.be/feed/channel/UCQHX6ViZmPsWiYSFAyS0a3Q "Gotham Chess" -https://yewtu.be/feed/channel/UCwWm-fABiYbcL7ro8qONd6Q "GM Krikor" -https://yewtu.be/feed/channel/UCweCc7bSMX5J4jEH7HFImng "GMHikaru" -https://yewtu.be/feed/channel/UCSAo4zvM1oAJ_i4C6q6ejBA "Raffael Chess" -https://yewtu.be/feed/channel/UC5K-TQsItHnNLjqYf8A3CTw "Xadrez Brasil" - -@ Politics {60} -https://yewtu.be/feed/channel/UCkSjy-IOEq-eMtarZl2uH1Q "Arthur do Val" -https://yewtu.be/feed/channel/UC7-Pp09PJX_SYP9oyMzUAtg "Assim disse o João" -https://odysee.com/$/rss/@Fhoer:f "Fhoer" -https://yewtu.be/feed/channel/UCqbz_4hrf2D58UFBOleuFnQ "História Cabeluda" -https://yewtu.be/feed/channel/UCAMExYqcweM7PUebKfmLdFA "História Pública" -https://odysee.com/$/rss/@ideiasradicais:a4 "Ideias Radicais" -https://yewtu.be/feed/channel/UCpHQyEuBXwYBvXC1_NResCg "Kim Kataguiri" -https://yewtu.be/feed/channel/UCCmh3nJayT-7jEM6hg2vP9Q "Laura Sabino" -https://www.yewtu.be/feed/channel/UCk5BcU1rOy6hepflk7_q_Pw "Meteoro Brasil" -https://yewtu.be/feed/channel/UCZdJE8KpuFm6NRafHTEIC-g "Tempero Drag" -https://yewtu.be/feed/channel/UC0fGGprihDIlQ3ykWvcb9hg "Tese Onze" - -@ Hacker Videos {60} -https://odysee.com/$/rss/@blenderdumbass:f "Blender Dumbass" -https://odysee.com/$/rss/@BrodieRobertson:5 "Brodie Robertson" -https://odysee.com/$/rss/@debxp:9 "Debxp" -https://odysee.com/$/rss/@DistroTube:2 "Distrotube" -https://yewtu.be/feed/channel/UCAXxhRve_scJJdJI4cwRSLg "Eriberto Mota" -https://fossandcrafts.org/rss-feed-ogg.rss "Foss && Crafts" -https://odysee.com/$/rss/@rossmanngroup:a "Louis Rossman" -https://odysee.com/$/rss/@Luke:7 "Luke Smith" -https://odysee.com/$/rss/@AlphaNerd:8 "Mental Outlaw" -https://odysee.com/$/rss/@monerocommunityworkgroup:8 "Monero Community Workgroup" -https://odysee.com/$/rss/@Mythologos:3 "Mythologos" -https://odysee.com/$/rss/@kretcheu2001:8 "Paulo Kretcheu" -https://odysee.com/$/rss/@slackjeff:1 "Slackjeff" -https://yewtu.be/feed/channel/UCjr2bPAyPV7t35MvcgT3W8Q "The Hated One" -https://odysee.com/$/rss/@TheLinuxExperiment:e "The Linux Experiment" - -@ Enviromental News {720} -https://www.greenpeace.org/brasil/feed/ "Greenpeace - Brasil" -https://www.greenpeace.org/international/feed/ "Greenpeace - International" -https://revistaforum.com.br/rss/feed.html?r=5 "Revista Fórum - Meio Ambiente" - -@ Free Software Projects {86400} -https://guix.gnu.org/feeds/blog.atom "Guix System" -https://hpc.guix.info/blog/feed.xml "Guix High Performance Computing" -https://www.hyperbola.info/feeds/news/ "HyperbolaBSD News" - -@ Social Media {180} -https://rsshub.app/acm/amturingaward "A.M. Turing Award" -https://www.reddit.com/r/bash/.rss "r/bash" -https://www.reddit.com/r/commandline/.rss "r/commandline" -https://rsshub.app/twitter/user/CppCon "Twitter: CppCon" -https://rsshub.app/twitter/user/CppStack "Twitter: C++ StackOverflow" -https://rsshub.app/twitter/user/cppnow "Twitter: C++ Now" -https://rsshub.app/twitter/user/meetingcpp "Twitter: Meeting C++" -https://rsshub.app/twitter/user/CppLibHunt "Twitter: C++ LibHunt" -https://rsshub.app/atcoder/contest/en/upcoming "Upcoming Contests - At Coder" - -@ Mathematics and Computer Science {60} -https://yewtu.be/feed/channel/UCYO_jab_esuFRV4b17AJtAw "3Blue1Brown" -https://yewtu.be/feed/channel/UCzBjutX2PmitNF4avysL-vg "Aleph 0" -https://yewtu.be/feed/channel/UC9-y-6csu5WGm29I7JiwpnA "Computerphile" -https://yewtu.be/feed/channel/UCq7UdlqyyZA7Bi-OB5xIU5Q "James Boyer" -https://yewtu.be/feed/channel/UC0-gvTKzYKQcjzKcSPfeIkA "Kinertia" -https://yewtu.be/feed/channel/UC1_uAIS3r8Vu6JjXWvastJg "Mathologer" -https://yewtu.be/feed/channel/UC6jM0RFkr4eSkzT5Gx0HOAw "Michael Penn" -https://yewtu.be/feed/channel/UCoxcjq-8xIDTYp3uz647V5A "Numberphile" - -@ News {60} -https://agencia.fapesp.br/rss/ "Agência Fapesp" -https://baixacultura.org/feed/ "Baixa Cultura" -https://www.brasildefato.com.br/rss2.xml "Brasil de Fato" -https://static.fsf.org/fsforg/rss/news.xml "Free Software Foundation" -https://hnrss.org/newest?q=C%2B%2B+OR+mesh+OR+GNU+OR+Free+Software+OR+P2P "Hacker News" -https://theintercept.com/feed/?lang=pt "Intercept - Brasil" -https://theintercept.com/feed/?lang=en "Intercept - International" -https://morss.it/https://jornal.usp.br/ "Jornal USP" -https://www.nexojornal.com.br/rss.xml "Nexo Jornalismo" -https://nucleo.jor.br/rss/ "Núcleo Jornalismo" -https://www.phoronix.com/rss.php "Phoronix" -https://revistaforum.com.br/rss/feed.html?r=96 "Revista Fórum - Brasil" -https://revistaforum.com.br/rss/feed.html?r=4 "Revista Fórum - Internacional" -https://revistaforum.com.br/rss/feed.html?r=1 "Revista Fórum - Política" -https://revistaforum.com.br/rss/feed.html?r=735 "Revista Fórum - Tecnologia" -http://rss.slashdot.org/Slashdot/slashdotMain "Slashdot" - -@ Vegan {10} -https://yewtu.be/feed/channel/UCYamjJAo9qHUIN1jLYEDN4w "Eduardo Corassa" -https://yewtu.be/feed/channel/UCZ6JHFBaDUJ9wfo41HSII_w "Fábio Chaves" - -@ Nutrition {600} -https://yewtu.be/feed/channel/UCvyxOb6wDUGmMZFbV3cJeXg "Giancarlo Eidler" -https://yewtu.be/feed/channel/UCptCWTO2uq6jXcJLEvRhr8g "Dr Eric Slywitch" - -@ Calisthenics {600} -https://yewtu.be/feed/channel/UCjnHUDK6r4N56E6TfXEl2UQ "Minus The Gym" -https://yewtu.be/feed/channel/UCZpudmBAy0s4_cU9Ms4zCyA "Pinho Calistenia" -https://yewtu.be/feed/channel/UCb7LDXHmRPW1rk5Ld_DyhPA "Ricardo Calistenia" -https://yewtu.be/feed/channel/UCdoHSpmoR4XwmGMDZ4ZpYvw "Scott Burnhard" -https://yewtu.be/feed/channel/UCpyhJZhJQWKDdJCR07jPY-Q "Simnett Nutrition" -https://yewtu.be/feed/channel/UC41yTzQIzrCr7Edij7Ha4wA "The Jacked Vegan" diff --git a/files/thinkfan/thinkfan.conf b/files/thinkfan/thinkfan.conf deleted file mode 100644 index bb0884f..0000000 --- a/files/thinkfan/thinkfan.conf +++ /dev/null @@ -1,16 +0,0 @@ -fans: -- tpacpi: /proc/acpi/ibm/fan -sensors: - - hwmon: /sys/devices/platform/coretemp.0/hwmon - indices: [1,2,3] -levels: - - [0, 0, 35] - - [1, 30, 40] - - [2, 35, 45] - - [3, 40, 50] - - [4, 45, 55] - - [5, 50, 60] - - [6, 55, 65] - - [7, 60, 70] - - ["level full-speed", 65, 260] - diff --git a/home-environments/radio.scm b/home-environments/radio.scm deleted file mode 100644 index 9fcd881..0000000 --- a/home-environments/radio.scm +++ /dev/null @@ -1,370 +0,0 @@ -(define-module (home-environments radio) - #|GNU|# - #:use-module (gnu) - #:use-module ((gnu home) #:select (this-home-environment)) - #:use-module ((gnu home) #:hide (this-home-environment) - #:prefix user-) - #:use-module (gnu home services) - - #|GNU packages|# - #|A|# #:use-module (gnu packages admin) - #|B|# #:use-module (gnu packages bittorrent) - #|C|# #:use-module (gnu packages c) - #:use-module (gnu packages calendar) - #:use-module (gnu packages curl) - #|D|# #:use-module (gnu packages disk) - #:use-module (gnu packages databases) - #|F|# #:use-module (gnu packages file) - #:use-module (gnu packages fonts) - #:use-module (gnu packages freedesktop) - #|G|# #:use-module (gnu packages games) - #:use-module (gnu packages gnome) - #:use-module (gnu packages gnu-doc) - #:use-module (gnu packages gnupg) - #:use-module (gnu packages guile-xyz) - #|I|# #:use-module (gnu packages image-viewers) - #|L|# #:use-module (gnu packages linux) - #|M|# #:use-module (gnu packages maths) - #:use-module (gnu packages minetest) - #|P|# #:use-module (gnu packages password-utils) - #:use-module (gnu packages pdf) - #:use-module (gnu packages pulseaudio) - #|S|# #:use-module (gnu packages scheme) - #:use-module (gnu packages shells) - #:use-module (gnu packages ssh) - #:use-module (gnu packages suckless) - #|T|# #:use-module (gnu packages telegram) - #:use-module (gnu packages text-editors) - #:use-module (gnu packages tor-browsers) - #:use-module (gnu packages toys) - #|V|# #:use-module (gnu packages version-control) - #:use-module (gnu packages video) - #|W|# #:use-module (gnu packages wm) - #|X|# #:use-module (gnu packages xdisorg) - #:use-module (gnu packages xorg) - - #|GNU home services|# - #|D|# #:use-module (gnu home services desktop) - #|G|# #:use-module (gnu home services guix) - #|M|# #:use-module (gnu home services mcron) - #|S|# #:use-module (gnu home services ssh) - #:use-module (gnu home services shepherd) - #:use-module (gnu home services sound) - - #|Guix|# - #:use-module (guix channels) - - #|Radix|# - #:use-module (radix utils) - #:use-module (radix home services) - - #|Radix packages|# - #|I|# #:use-module (radix packages image-viewers) - #|F|# #:use-module (radix packages fonts) - #|P|# #:use-module (radix packages pdf) - #|S|# #:use-module (radix packages seninha) - #:use-module (radix packages syndication) - #|W|# #:use-module (radix packages wm) - - #|Radix home services|# - #|G|# #:use-module (radix home services gnupg) - #|S|# #:use-module (radix home services shells) - #|X|# #:use-module (radix home services xdg) - - #|Radio|# - #|S|# #:use-module ((radio fish-abbreviations) #:prefix fish-abbreviations:) - - #|Radio files|# - #|A|# #:use-module ((radio files awesome) #:prefix file:awesome-) - #|E|# #:use-module ((radio files emacs) #:prefix file:emacs-) - #|F|# #:use-module ((radio files fish) #:prefix file:fish-) - #|G|# #:use-module ((radio files git) #:prefix file:git-) - #|I|# #:use-module ((radio files info) #:prefix file:info-) - #|K|# #:use-module ((radio files kakoune) #:prefix file:kak-) - #|L|# #:use-module ((radio files lf) #:prefix file:lf-) - #|M|# #:use-module ((radio files mpv) #:prefix file:mpv-) - #|N|# #:use-module ((radio files newsraft) #:prefix file:newsraft-) - - - #:export (home-environment)) - -(define home-environment - (user-home-environment - (packages - (list #|admin |# neofetch netcat-openbsd - #|bittorrent |# aria2 qbittorrent - #|c |# c-intro-and-ref - #|calendar |# remind - #|curl |# curl - #|disk |# lf - #|databases |# recutils - #|file |# file - #|fonts |# font-arabic-misc font-liberation font-meslo-lg-dz - font-misc-misc font-un font-wqy-zenhei - #|freedesktop |# xdg-utils - #|games |# minetest supertuxkart xonotic - #|gnome |# adwaita-icon-theme - #|gnu-doc |# gnu-standards - #|gnupg |# gnupg pinentry - #|guile-xyz |# haunt - #|image-viewers |# imv ueberzug++ - #|linux |# alsa-utils - #|math |# libqalculate - #|password-utils|# keepassxc - #|pdf |# sioyek - #|pulseaudio |# pamixer pavucontrol - #|scheme |# sicp - #|seninha |# fmutils - #|ssh |# openssh - #|suckless |# xst - #|syndication |# newsraft - #|telegram |# telegram-desktop - #|tor-browsers |# mullvadbrowser torbrowser - #|toys |# oneko - #|vesion-control|# git - #|video |# ffmpeg mpv yt-dlp - #|wm |# awesome-next - #|xdisorg |# maim wmctrl xbanish xclip xinit xsel - #|xorg |# setxkbmap xinput xf86-input-libinput xkill xmodmap - xorg-server xrdb xset)) - - (services - (list #|XDG services|# - (service home-xdg-user-directories-service-type - (home-xdg-user-directories-configuration - (desktop "$HOME/areas") - (documents "$HOME/areas/documents") - (download "$HOME/.local/share/downloads") - (music "$HOME/media/music") - (pictures "$HOME/media/pictures") - (videos "$HOME/media/videos") - (publicshare "") - (templates ""))) - - (service home-xdg-mime-applications-service-type - (home-xdg-mime-applications-configuration - (default (associate-right - ('mullvadbrowser.desktop - `("text/html" - "application/xhtml+xml" - "application/x-extension-htm" - "application/x-extension-xhtml" - "application/x-extension-xht" - "x-scheme-handler/http" - "x-scheme-handler/https")) - ('kak.desktop - `("text/plain" - "text/troff" - "text/xml" - "text/x-c" - "text/x-c++" - "text/x-diff" - "text/x-lisp" - "text/x-scheme" - "text/x-shellscript" - "text/x-tex")) - ('lf.desktop - `("inode/directory" - "x-scheme-handler/ftp" - "x-scheme-handler/nfs" - "x-scheme-handler/smb" - "x-scheme-handler/ssh" - "application/x-directory")) - ('mpv.desktop - `("image/gif" - "audio/mpeg" - "audio/ogg" - "audio/opus" - "audio/x-opus+ogg" - "video/mp4" - "video/x-matroska" - "video/webm")) - ('imv.desktop - `("image/avif" - "image/bmp" - "image/jpeg" - "image/png" - "image/svg+xml" - "image/webp")) - ('sioyek.desktop - `("image/vnd.djvu" - "application/pdf" - "application/epub+zip")))))) - - (service home-xdg-configuration-files-service-type - `(("awesome/rc.lua" ,file:awesome-config) - ("awesome/themes/current.lua" ,file:awesome-theme) - ("emacs/init.el" ,file:emacs-init) - ("emacs/theme.el" ,file:emacs-theme) - ("fish/functions" ,file:fish-functions) - ("fish/conf.d" ,file:fish-config) - ("git" ,file:git-config) - ("info" ,file:info-config) - ("kak/kakrc" ,file:kak-config) - ("kak/autoload/colorscheme.kak" ,file:kak-colorscheme) - ("lf" ,file:lf-config) - ("mpv" ,file:mpv-config) - ("newsraft" ,file:newsraft-config))) - - #|Guix service|# - (simple-service 'channels-service - home-channels-service-type - (list (channel - (name 'radix) - (url "https://codeberg.org/anemofilia/radix.git") - (branch "main") - (introduction - (make-channel-introduction - "f9130e11e35d2c147c6764ef85542dc58dc09c4f" - (openpgp-fingerprint - (format #f "F164 709E 5FC7 B32B AEC7 ~ - 9F37 1F2E 76AC E3F5 31C8"))))))) - - #|Shepherd service|# - (service home-shepherd-service-type) - - #|Shell services|# - (service home-fish-service-type - (home-fish-configuration - (config (list file:fish-custom-functions)) - (environment-variables - `(#|GNU Privacy Guard|# - ("GPG_TTY" . "(tty)") - - #|Remind|# - ("DOTREMINDERS" . "$XDG_DATA_HOME/reminders") - - #|GTK|# - ("GTK_RC_FILES" . "$XDG_CONFIG_HOME/gtk-2.0/gtkrc") - - #|Ncurses|# - ("TERMINFO" . "$XDG_DATA_HOME/terminfo"))) - (aliases - `(#|Common aliases|# - ("df" . "df -h") - ("du" . "du -h") - ("diff" . "diff --color=auto") - ("grep" . "grep --color=auto") - ("ip" . "ip --color=auto") - ("ls" . ,(format #f "ls --color=auto ~ - --group-directories-first ~ - --classify ~ - -hv")) - - #|Clear terminal screen without ncurses|# - ("clear" . "printf \"\\033c\"") - - #|Make ln idempotent|# - ("ln" . "ln -sfn") - - #|Kakoune bindings for info|# - ("info" . "info --init-file $XDG_CONFIG_HOME/info") - - #|Easy presentation setup with xrandr|# - ("present" . ,(format #f "xrandr --output LVDS-1 ~ - --mode 1366x768 ~ - --scale 1x1 ~ - --output VGA-1 ~ - --same-as LVDS-1 ~ - --mode 1920x1080 ~ - --scale 0.711x0.711")) - - #|Display images in lf using ueberzug|# - ("lf" . "$HOME/.local/bin/lf/lfrun") - - #|Listen to libre music on vern's radio|# - ("radio" . "https://radio.vern.cc") - - #|Kakoune aliases for the shell|# - ("':e'" . "kak") - ("':q'" . "exit"))) - (abbreviations - `(,@fish-abbreviations:bookmarks - ,@fish-abbreviations:channels - ,@fish-abbreviations:config - ,@fish-abbreviations:download/upload - ,@fish-abbreviations:extensions - ,@fish-abbreviations:guix - ,@fish-abbreviations:history - ,@fish-abbreviations:para - ,@fish-abbreviations:quick-edit - ,@fish-abbreviations:terminal-emulators - ,@fish-abbreviations:user-dirs)))) - - (simple-service 'environment-variables-service - home-environment-variables-service-type - `(#|Shells|# - ("PATH" . "$HOME/.local/bin:$PATH") - ("ENV" . "$XDG_CONFIG_HOME/dash/init.sh") - ("INPUTRC" . "$XDG_CONFIG_HOME/readline/inputrc") - ("XINITRC" . "$XDG_CONFIG_HOME/x11/xinitrc") - - #|Guile|# - ("GUILE_WARN_DEPRECATED" . "detailed") - ("GUILE_HISTORY" . "$XDG_CACHE_HOME/guile/history") - ("GUILE_LOAD_PATH" - . ,(format #f "$HOME/areas/code/scm~?~?" - "~@{:$HOME/areas/code/scm/~a~}" - '(ajatt - radix/modules - radix/home-environments - radix/operating-systems) - "~@{:~a/share/guile/site/3.0~}" - '($HOME/.guix-home/profile - $XDG_CONFIG_HOME/guix/current - /run/current-system/profile))) - - #|Language|# - ("LANG" . "en_US.UTF-8") - ("LANGUAGE" . "en_US.UTF-8") - ("LC_COLLATE" . "C") - - #|Default applications|# - ("BROWSER" . "mullvadbrowser") - ("EDITOR" . "kak") - ("FCEDIT" . "kak") - ("PAGER" . "less") - ("READER" . "sioyek") - ("SHELL" . "fish") - ("TERMINAL" . "xst") - ("VISUAL" . "kak") - ("WM" . "awesome"))) - - (service home-openssh-service-type - (home-openssh-configuration - (hosts (list (openssh-host - (name "codeberg.org") - (host-name "codeberg.org") - (user "git") - (identity-file "~/.ssh/codeberg")) - (openssh-host - (name "github.com") - (host-name "github.com") - (user "git") - (identity-file "~/.ssh/github")) - (openssh-host - (name "*.onion") - (identity-file "~/.ssh/codeberg") - (proxy - (proxy-command - "nc -x 127.0.0.1:9050 -X5 %h %p"))))) - (authorized-keys #f))) - - (service home-gpg-agent-service-type - (home-gpg-agent-configuration - (gnupghome ".local/share/gnupg") - (pinentry-program - (file-append pinentry "/bin/pinentry-curses")))) - - #|Session services|# - (service home-dbus-service-type) - - #|Sound services|# - (service home-pipewire-service-type) - - #|Mcron service|# - (service home-mcron-service-type - (home-mcron-configuration - (jobs (list #~(job "30 5 * * *" - "mpv --shuffle ~/media/music"))))))))) -home-environment diff --git a/home-environments/radio/files/awesome.scm b/home-environments/radio/files/awesome.scm deleted file mode 100644 index 23ad811..0000000 --- a/home-environments/radio/files/awesome.scm +++ /dev/null @@ -1,10 +0,0 @@ -(define-module (radio files awesome) - #:use-module (gnu) - #:export (config theme)) - -(define config - (local-file "../../../files/awesome/rc.lua")) - -(define theme - (local-file "../../../files/awesome/themes/anemofilia/theme.lua")) - diff --git a/home-environments/radio/files/doas.scm b/home-environments/radio/files/doas.scm deleted file mode 100644 index d6f3899..0000000 --- a/home-environments/radio/files/doas.scm +++ /dev/null @@ -1,6 +0,0 @@ -(define-module (radio files doas) - #:use-module (gnu) - #:export (completion)) - -(define completion - (local-file "../../../files/doas/doas-completion")) diff --git a/home-environments/radio/files/emacs.scm b/home-environments/radio/files/emacs.scm deleted file mode 100644 index 63fccd7..0000000 --- a/home-environments/radio/files/emacs.scm +++ /dev/null @@ -1,9 +0,0 @@ -(define-module (radio files emacs) - #:use-module (gnu) - #:export (init theme)) - -(define init - (local-file "../../../files/emacs/init.el")) - -(define theme - (local-file "../../../files/emacs/meimuna-theme.el")) diff --git a/home-environments/radio/files/fish.scm b/home-environments/radio/files/fish.scm deleted file mode 100644 index 686acf4..0000000 --- a/home-environments/radio/files/fish.scm +++ /dev/null @@ -1,16 +0,0 @@ -(define-module (radio files fish) - #:use-module (gnu) - #:export (functions - custom-functions - config)) - -(define functions - (local-file "../../../files/fish/functions" - #:recursive? #t)) - -(define custom-functions - (local-file "../../../files/fish/functions/fish_custom_functions.fish")) - -(define config - (local-file "../../../files/fish/conf.d" - #:recursive? #t)) diff --git a/home-environments/radio/files/git.scm b/home-environments/radio/files/git.scm deleted file mode 100644 index efda2ad..0000000 --- a/home-environments/radio/files/git.scm +++ /dev/null @@ -1,7 +0,0 @@ -(define-module (radio files git) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/git" - #:recursive? #t)) diff --git a/home-environments/radio/files/info.scm b/home-environments/radio/files/info.scm deleted file mode 100644 index e05176e..0000000 --- a/home-environments/radio/files/info.scm +++ /dev/null @@ -1,6 +0,0 @@ -(define-module (radio files info) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/info")) diff --git a/home-environments/radio/files/kakoune.scm b/home-environments/radio/files/kakoune.scm deleted file mode 100644 index 0bfce18..0000000 --- a/home-environments/radio/files/kakoune.scm +++ /dev/null @@ -1,10 +0,0 @@ -(define-module (radio files kakoune) - #:use-module (gnu) - #:export (config colorscheme)) - -(define config - (local-file "../../../files/kak/kakrc")) - -(define colorscheme - (local-file "../../../files/kak/autoload/colorscheme.kak")) - diff --git a/home-environments/radio/files/lf.scm b/home-environments/radio/files/lf.scm deleted file mode 100644 index 923be43..0000000 --- a/home-environments/radio/files/lf.scm +++ /dev/null @@ -1,7 +0,0 @@ -(define-module (radio files lf) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/lf" - #:recursive? #t)) diff --git a/home-environments/radio/files/mpv.scm b/home-environments/radio/files/mpv.scm deleted file mode 100644 index 6000f28..0000000 --- a/home-environments/radio/files/mpv.scm +++ /dev/null @@ -1,7 +0,0 @@ -(define-module (radio files mpv) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/mpv" - #:recursive? #t)) diff --git a/home-environments/radio/files/newsraft.scm b/home-environments/radio/files/newsraft.scm deleted file mode 100644 index 440feab..0000000 --- a/home-environments/radio/files/newsraft.scm +++ /dev/null @@ -1,7 +0,0 @@ -(define-module (radio files newsraft) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/newsraft" - #:recursive? #t)) diff --git a/home-environments/radio/files/zathura.scm b/home-environments/radio/files/zathura.scm deleted file mode 100644 index b015fc5..0000000 --- a/home-environments/radio/files/zathura.scm +++ /dev/null @@ -1,7 +0,0 @@ -(define-module (radio files zathura) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/zathura" - #:recursive? #t)) diff --git a/home-environments/radio/fish-abbreviations.scm b/home-environments/radio/fish-abbreviations.scm deleted file mode 100644 index 36b0ad0..0000000 --- a/home-environments/radio/fish-abbreviations.scm +++ /dev/null @@ -1,170 +0,0 @@ -(define-module (radio fish-abbreviations) - #:use-module (ice-9 curried-definitions) - #:use-module (radix home services shells) - #:export (bookmarks - channels - config - download/upload - extensions - guix - history - para - quick-edit - terminal-emulators - user-dirs)) - -(define at - (symbol-prefix-proc '@)) - -(define para - (map (lambda (dir) - (abbreviation - (name (at dir)) - (position 'anywhere) - (expansion (format #f "~~/~:[~;.~]~a" - (equal? dir 'archive) - dir)))) - '(areas projects resources archive))) - -(define user-dirs - (map (lambda (dir) - (abbreviation - (name (at dir)) - (position 'anywhere) - (expansion - (fish-function "xdg-user-directory")))) - '(desktop documents download music - pictures publicshare templates videos))) - -(define extensions - (map (lambda (extension) - (abbreviation - (name (at extension)) - (position 'anywhere) - (expansion - ((symbol-prefix-proc '~/projects/code/) extension)))) - '(c clj cpp el html kak md nasm org pl py scm sh tex zig))) - -(define channels - (map (lambda (channel) - (abbreviation - (name (at channel)) - (position 'anywhere) - (expansion - ((symbol-prefix-proc '~/projects/code/scm/) channel)))) - '(ajatt guix radix))) - -(define (edit . files) - (string-join (cons "$EDITOR" - (map symbol->string files)))) - -(define quick-edit - (list (abbreviation - (name ':e) - (expansion (edit))) - (abbreviation - (name ':system) - (expansion (edit '/etc/config.scm))) - (abbreviation - (name ':home) - (expansion - (edit '~/.config/guix/home.scm))) - (abbreviation - (name ':todo) - (expansion - (edit '~/areas/organization/todo))))) - -(define bookmarks - (map (lambda (bookmark) - (abbreviation - (name ((symbol-prefix-proc ':) bookmark)) - (position 'anywhere) - (expansion - (edit ((symbol-prefix-proc '~/resources/bookmarks/) bookmark))))) - '(emacs guile guix haunt misc))) - -(define history - (list (abbreviation - (name '!!) - (position 'anywhere) - (expansion - (fish-function "bang-bang"))) - (abbreviation - (name '!!:k) - (position 'anywhere) - (pattern "!!:[0-9]+") - (expansion - (fish-function "bang-bang-k"))) - (abbreviation - (name '!$) - (position 'anywhere) - (expansion - (fish-function "bang-dollar"))) - (abbreviation - (name '!*) - (position 'anywhere) - (expansion - (fish-function "bang-star"))))) - -(define config - (let* ((radix '~/areas/code/scm/radix) - (user (string->symbol (getlogin))) - (os (string->symbol (gethostname)))) - (list (abbreviation - (name (at user)) - (position 'anywhere) - (expansion - (format #f "~a/home-environments/~a" radix user))) - (abbreviation - (name (at os)) - (position 'anywhere) - (expansion - (format #f "~a/operating-systems/~a" radix os)))))) - -(define guix - (list (abbreviation - (name '!dgen) - (position 'anywhere) - (expansion "guix % delete-generations 2w")) - (abbreviation - (name '!repair) - (expansion "doas guix build --repair")) - (abbreviation - (name '!pull) - (position 'anywhere) - (expansion "guix pull")) - (abbreviation - (name '!home) - (expansion - "guix home reconfigure ~/.config/guix/home.scm")) - (abbreviation - (name '!system) - (expansion - "doas guix system reconfigure /etc/config.scm")))) - -(define terminal-emulators - (list (abbreviation - (name 'tf) - (position 'anywhere) - (expansion - "setsid -f %>/dev/null 2>&1 & disown")))) - -(define download/upload - (list (abbreviation - (name 'a) - (expansion "aria2c -j 10 '%'")) - (abbreviation - (name 'i) - (expansion "ipfs get %")) - (abbreviation - (name 'm) - (expansion - "yt-dlp --prefer-free-formats --extract-audio '%'")) - (abbreviation - (name 'v) - (expansion - "yt-dlp --prefer-free-formats '%'")) - (abbreviation - (name 'z) - (expansion - "curl -F file=@% https://0x0.st | xsel -b")))) diff --git a/manifests/clojure.scm b/manifests/clojure.scm deleted file mode 100644 index f50ad06..0000000 --- a/manifests/clojure.scm +++ /dev/null @@ -1,11 +0,0 @@ -(use-modules (gnu packages clojure) - (gnu packages java) - (gnu packages node)) - -(packages->manifest - (list clojure - clojure-core-match - clojure-instaparse - clojure-tools - node - openjdk21)) diff --git a/manifests/emacs.scm b/manifests/emacs.scm deleted file mode 100644 index 82cbe26..0000000 --- a/manifests/emacs.scm +++ /dev/null @@ -1,32 +0,0 @@ -(use-modules (guix profiles) - (gnu packages emacs) - (gnu packages emacs-xyz) - (gnu packages guile-xyz)) - -(packages->manifest - (list #|emacs |# emacs - #|emacs-xyz |# - #| • completion |# emacs-cape emacs-corfu emacs-corfu-doc - emacs-consult-lsp emacs-vertico - #| • centering |# emacs-olivetti - #| • file manager |# emacs-dirvish - #| • fuzzy-finder |# emacs-orderless - #| • guile |# emacs-arei guile-ares-rs - emacs-macrostep-geiser emacs-geiser-eros - #| • guix |# emacs-guix emacs-direnv - #| • haunt |# emacs-ox-haunt - #| • icons |# emacs-all-the-icons - #| • irc |# emacs-circe - #| • kakoune |# emacs-kakoune emacs-phi-search-mc emacs-ryo-modal - #| • latex |# emacs-auctex emacs-latex-preview-pane - #| • linter |# emacs-flycheck emacs-flycheck-guile - #| • maps |# emacs-osm - #| • music player |# emacs-emms - #| • org |# emacs-org-bullets emacs-org-fragtog - emacs-org-present emacs-org-roam emacs-org-modern - #| • pulsar |# emacs-pulsar - #| • rss |# emacs-elfeed emacs-elfeed-org - #| • s-exps |# emacs-lispy emacs-rainbow-delimiters - #| • ease config |# emacs-setup - #| • typing |# emacs-typing - #| • terminal |# emacs-eat)) diff --git a/manifests/guile.scm b/manifests/guile.scm deleted file mode 100644 index a6bf1c8..0000000 --- a/manifests/guile.scm +++ /dev/null @@ -1,16 +0,0 @@ -(use-modules - (guix profiles) - (gnu packages scheme) - (gnu packages guile) - (gnu packages guile-xyz) - (radix packages guile-xyz)) - -(packages->manifest - (list guile-machine-code - guile-srfi-197 - guile-srfi-232 - guile-quickcheck - guile-reader - guile-smc - slib)) - diff --git a/manifests/idris.scm b/manifests/idris.scm deleted file mode 100644 index 68eeeb3..0000000 --- a/manifests/idris.scm +++ /dev/null @@ -1,11 +0,0 @@ -(use-modules - (guix profiles) - (gnu packages idris) - (gnu packages emacs-xyz)) - -(packages->manifest - (list idris - idris-lightyear - idris-bifunctors - idris-lens)) - diff --git a/manifests/tex.scm b/manifests/tex.scm deleted file mode 100644 index 924cee4..0000000 --- a/manifests/tex.scm +++ /dev/null @@ -1,17 +0,0 @@ -(use-modules (guix profiles) - (gnu packages tex)) - -(packages->manifest - (list texlive-collection-basic - texlive-collection-fontsextra - texlive-collection-fontsrecommended - texlive-collection-latex - texlive-collection-latexextra - texlive-collection-latexrecommended - texlive-collection-luatex - texlive-collection-langportuguese - texlive-collection-langenglish - texlive-collection-langfrench - texlive-collection-mathscience - texlive-collection-pictures - texlive-scheme-minimal)) diff --git a/manifests/theorem-proving.scm b/manifests/theorem-proving.scm deleted file mode 100644 index 7d6e42a..0000000 --- a/manifests/theorem-proving.scm +++ /dev/null @@ -1,9 +0,0 @@ -(use-modules (guix profiles) - (gnu packages agda) - (gnu packages cedille) - (gnu packages coq)) - -(packages->manifest - (list #|agda |# agda agda-ial agda-stdlib agda-categories - #|cedille|# ;cedille <- currently broken - #|coq |# coq coq-interval coq-equations coq-semantics)) diff --git a/modules/radix/secrets.scm b/modules/radix/secrets.scm deleted file mode 100644 index 11286fb..0000000 --- a/modules/radix/secrets.scm +++ /dev/null @@ -1,11 +0,0 @@ -(define-module (radix secrets) - #:use-module (gnu) - #:export (%radio-password %root-password)) - -(define %radio-password - (string-append "$6$abc$YPieZeEBpa7oUo62ytkieOKzTNso/iGRSeB.GvH" - "9A3qM78WRGWIiQlK9gImWrLJw0ll18pjVgDNNamGeUV44G/")) - -(define %root-password - (string-append "$6$adsfc$51FzeGnMnVnyYiVotX8siJKUPFj8Na4aQRI7Ri" - "LXfttd5CrX8Ut1M5iteLWlEtNNDMlmFIuKTEegoR5L9avOA1")) diff --git a/operating-systems/buer.scm b/operating-systems/buer.scm deleted file mode 100644 index 082337f..0000000 --- a/operating-systems/buer.scm +++ /dev/null @@ -1,359 +0,0 @@ -(define-module (operating-systems buer) - #|GNU|# - #:use-module (gnu) - #:use-module ((gnu system) #:select (operating-system) - #:prefix gnu:) - - #|GNU packages|# - #|A|# #:use-module (gnu packages admin) - #:use-module (gnu packages android) - #|B|# #:use-module (gnu packages base) - #|C|# #:use-module (gnu packages certs) - #:use-module (gnu packages compression) - #|G|# #:use-module (gnu packages gawk) - #:use-module (gnu packages guile) - #:use-module (gnu packages guile-xyz) - #|L|# #:use-module (gnu packages less) - #:use-module (gnu packages linux) - #|M|# #:use-module (gnu packages man) - #|T|# #:use-module (gnu packages texinfo) - #:use-module (gnu packages text-editors) - #|V|# #:use-module (gnu packages vpn) - - #|GNU services|# - #|A|# #:use-module (gnu services admin) - #:use-module (gnu services avahi) - #|D|# #:use-module (gnu services dbus) - #:use-module (gnu services desktop) - #|M|# #:use-module (gnu services mcron) - #|N|# #:use-module (gnu services linux) - #:use-module (gnu services networking) - #|P|# #:use-module (gnu services pm) - #|S|# #:use-module (gnu services sound) - #:use-module (gnu services sysctl) - - #|Guix|# - #:use-module (guix) - - #|Radix|# - #|A|# #:use-module (radix artwork) - #|C|# #:use-module (radix combinators) - #|S|# #:use-module (radix secrets) - #|U|# #:use-module (radix utils) - - #|Radix packages|# - #|A|# #:use-module (radix packages admin) - #|L|# #:use-module (radix packages linux) - #|S|# #:use-module (radix packages shells) - - #|Radix services|# - #|A|# #:use-module (radix services admin) - #|P|# #:use-module (radix services pm) - - #|Radix system|# - #|S|# #:use-module (radix system security) - #:use-module (radix system setuid) - - #|M|# #:use-module (radix system monitoring) - - #|Buer files|# - #|S|# #:use-module ((buer files substitute-keys) #:prefix substitute-key:) - #:use-module ((buer files ssh-keys) #:prefix ssh-key:) - #|T|# #:use-module ((buer files thinkfan) #:prefix file:thinkfan-) - - #|SRFIs|# - #:use-module (srfi srfi-1) - - #:export (operating-system)) - -(define operating-system - (gnu:operating-system - (host-name "buer") - (timezone "America/Sao_Paulo") - (locale "en_US.utf8") - - (keyboard-layout - (keyboard-layout "us,br" - #:options `("grp:menu_switch" - "parens:swap_brackets" - "caps:swapescape"))) - - (bootloader - (bootloader-configuration - (bootloader grub-bootloader) - (targets `("/dev/sda")) - (timeout 1) - (theme (grub-theme - (color-normal - '((fg . light-gray) (bg . black))) - (color-highlight - '((fg . black) (bg . light-gray))) - (image (file-append %artwork-repository - "/backgrounds/guix-silver-16-9.svg")) - (gfxmode `("1280x720x32")))))) - - (kernel linux-libre-6.7) - (kernel-arguments - (cons* "modprobe.blacklist=usbmouse,usbkbd,pcspkr" - "thinkpad_acpi.fan_control=1" - (filter (negate (partial string-prefix? "debugfs")) - %kicksecure-kernel-arguments))) - - (file-systems - (cons* (file-system - (device (file-system-label "guix-root")) - (mount-point "/") - (type "ext4")) - (file-system - (device (file-system-label "home")) - (mount-point "/home") - (type "ext4")) - %base-file-systems)) - - (users - (cons* (user-account - (name "radio") - (password %radio-password) - (home-directory "/home/radio") - (shell (file-append dash-next "/bin/dash")) - (uid 1000) - (group "users") - (supplementary-groups `("audio" "adbusers" "video" "wheel"))) - (user-account - (name "root") - (password %root-password) - (system? #t) - (home-directory "/root") - (uid 0) - (group "root") - (shell (file-append dash-next "/bin/dash"))) - %base-user-accounts)) - - (groups - (cons* (user-group - (name "adbusers")) - %base-groups)) - - #|System level packages|# - (packages - (list #|admin |# btop inetutils isc-dhcp opendoas shadow zzz - #|base |# coreutils diffutils findutils grep patch sed tar which - #|certs |# nss-certs - #|compression |# gzip xz zstd - #|gawk |# gawk - #|guile |# guile-next guile-colorized guile-readline - #|less |# less - #|linux |# e2fsprogs iproute kmod procps psmisc util-linux - #|man |# man-db man-pages - #|shells |# dash-next - #|texinfo |# info-reader - #|text-editors|# kakoune - #|vpn |# wireguard-tools)) - - #|Do not generate a sudoers file|# - (sudoers-file #f) - - #|Run some programs from each package with file owner privileges|# - (setuid-programs - (map-setuid-programs - (shadow `("passwd" "chfn" "sg" "su" "newgrp" "newuidmap" "newgidmap")) - (inetutils `("ping" "ping6")) - (opendoas `("doas")) - (fuse-2 `("fusermount")) - (fuse `("fusermount3")) - (util-linux `("mount" "umount")))) - - #|Allow resolution of '.local' host names with mDNS|# - (name-service-switch %mdns-host-lookup-nss) - - #|System services|# - (services - (list #|TTY services|# - (service virtual-terminal-service-type) - (service console-font-service-type - (associate-right - (%default-console-font `("tty1" "tty2")))) - (service agetty-service-type - (agetty-configuration - (extra-options `("-L")) - (term "vt100") - (tty #f))) - (service mingetty-service-type - (mingetty-configuration (tty "tty1"))) - (service mingetty-service-type - (mingetty-configuration (tty "tty2"))) - - #|Login services|# - (service login-service-type) - (service elogind-service-type) - - #|Log services|# - (service rottlog-service-type) - (service syslog-service-type - (syslog-configuration - (syslogd (file-append inetutils "/libexec/syslogd")) - (config-file %default-syslog.conf))) - (service log-cleanup-service-type - (log-cleanup-configuration - (directory "/var/log/guix/drvs") - (expiry (* 3 30 24 3600)))) - - #|IPC services|# - (service dbus-root-service-type) - - #|Avahi service|# - (service avahi-service-type - (avahi-configuration - (wide-area? #t))) - - #|Guix services|# - (service guix-service-type - (guix-configuration - (discover? #t) - (build-accounts 16) - (build-machines - (list #~(build-machine - (name "yumiko") - (systems (list "x86_64-linux")) - (host-key #$(plain-file-content - ssh-key:yumiko.pub)) - (private-key "/root/.ssh/id_ed25519") - (user "radio") - (port 2222)))) - (authorized-keys - (cons* substitute-key:yuria.pub - substitute-key:yumiko.pub - %default-authorized-guix-keys)) - (extra-options `("--max-jobs=8" "--cores=4")))) - (service guix-publish-service-type - (guix-publish-configuration - (port 8080) - (host "0.0.0.0") - (advertise? #t) - (compression `(("zstd" 3))))) - - #|Mcron service|# - (service mcron-service-type - (mcron-configuration - (jobs (list #~(job "5 0 * * *" - "guix gc --optimize --free-space=5G"))))) - - #|Device management services|# - (service udev-service-type - (udev-configuration - (udev eudev) - (rules (list alsa-utils - android-udev-rules - crda - fuse - lvm2)))) - - #|Network services|# - (service static-networking-service-type - (list (static-networking - (addresses - (list (network-address - (device "lo") - (value "127.0.0.1/8")))) - (provision '(loopback))))) - (service ntp-service-type) - (service wpa-supplicant-service-type - (wpa-supplicant-configuration - (config-file "/etc/wpa_supplicant.conf") - (interface "wlp2s0") - (extra-options `("-B")))) - (service dhcp-client-service-type - (dhcp-client-configuration - (interfaces 'all))) - (service tor-service-type) - (simple-service 'extra-hosts - hosts-service-type - (list (host "192.168.100.33" "yumiko.local" - `("yumiko" "substitutes.yumiko")))) - - #|Power management services|# - (service tlp-service-type - (tlp-configuration - (cpu-scaling-governor-on-ac `("performance")) - (cpu-scaling-governor-on-bat `("powersave")) - (cpu-scaling-min-freq-on-ac 1500000) - (cpu-scaling-max-freq-on-ac 3500000) - (cpu-scaling-min-freq-on-bat 1000000) - (cpu-scaling-max-freq-on-bat 3000000) - (cpu-min-perf-on-ac 0) - (cpu-max-perf-on-ac 100) - (cpu-min-perf-on-bat 0) - (cpu-max-perf-on-bat 40) - (cpu-boost-on-ac? #t) - (cpu-boost-on-bat? #f) - (nmi-watchdog? #t) - (start-charge-thresh-bat0 70) - (stop-charge-thresh-bat0 90))) - (service thinkfan-service-type - (thinkfan-configuration - (thinkfan thinkfan-next) - (config-file file:thinkfan-config))) - (service thermald-service-type) - - #|Memory management services|# - (service zram-device-service-type - (zram-device-configuration - (size (round/ (ram-total) 4)) - (compression-algorithm 'lz4))) - - #|Doas configuration services|# - (simple-service 'miscellaneous-permissions doas-service-type - (list (permit (identity ":wheel") - (setenv `(("GUILE_LOAD_PATH" . #t)))) - (permit (identity ":wheel") - (nopass? #t) - (command "guix") - (args `("pull"))))) - (simple-service 'text-editors-permissions doas-service-type - (map (lambda (cmd) - (permit (identity ":wheel") - (keepenv? #t) - (command cmd))) - `("kak" "emacsclient"))) - (simple-service 'power-management-permissions doas-service-type - (map (lambda (cmd) - (permit (identity ":wheel") - (nopass? #t) - (command cmd) - (args '()))) - `("zzz" "halt" "reboot"))) - (simple-service 'shepherd-status-permissions doas-service-type - (map (lambda (action) - (permit (identity ":wheel") - (nopass? #t) - (command "herd") - (args (list action)))) - `("status" "detailed-status"))) - (simple-service 'service-management-permissions doas-service-type - (flat-map (lambda (service action) - (permit (identity ":wheel") - (nopass? #t) - (command "herd") - (args (map symbol->string - (list action service))))) - '(tor networking wpa-supplicant) - '(doc stop start enable status restart disable))) - #|Special file services|# - (service special-files-service-type - `(("/bin/sh" ,(file-append dash-next "/bin/dash")) - ("/usr/bin/env" ,(file-append coreutils "/bin/env")))) - - (simple-service 'extra-sysctl-settings sysctl-service-type - `(("vm.swappiness" . "180") - ("vm.watermark_boost_factor" . "0") - ("vm.watermark_scale_factor" . "125") - ("vm.page-cluster" . "0"))) - (simple-service 'security-syctl-settings sysctl-service-type - (alist-delete "net.core.bpf_jit_harden" - %kicksecure-sysctl-rules)) - - #|Base services|# - (service urandom-seed-service-type) - (service nscd-service-type))))) - -operating-system diff --git a/operating-systems/buer/files/ssh-keys.scm b/operating-systems/buer/files/ssh-keys.scm deleted file mode 100644 index 8257859..0000000 --- a/operating-systems/buer/files/ssh-keys.scm +++ /dev/null @@ -1,10 +0,0 @@ -(define-module (buer files ssh-keys) - #:use-module (gnu) - #:export (yumiko.pub)) - -(define yumiko.pub - (plain-file "yumiko.pub" - (format #f - "ssh-ed25519 ~ - AAAAC3NzaC1lZDI1NTE5AAAAIPaMmUA71F2BJPkVvArx6VGP21QMuJq4+mD7DHUPWcg9 ~ - guix@yumiko"))) diff --git a/operating-systems/buer/files/substitute-keys.scm b/operating-systems/buer/files/substitute-keys.scm deleted file mode 100644 index f941c11..0000000 --- a/operating-systems/buer/files/substitute-keys.scm +++ /dev/null @@ -1,22 +0,0 @@ -(define-module (buer files substitute-keys) - #:use-module (gnu) - #:export (yuria.pub - yumiko.pub)) - -(define yuria.pub - (plain-file "yuria.pub" - "(public-key - (ecc - (curve Ed25519) - (q #D5D0C1203D294B410DA106DDC1713B74CBB27353D53F4EE3D9D26972E8687424#) - ) - )")) - -(define yumiko.pub - (plain-file "yumiko.pub" - "(public-key - (ecc - (curve Ed25519) - (q #EBD4DD318A84F9F0AD13300D8A2ACF022F16088DA59B57E539F6DC3BD9C33A52#) - ) - )")) diff --git a/operating-systems/buer/files/thinkfan.scm b/operating-systems/buer/files/thinkfan.scm deleted file mode 100644 index b00b4ad..0000000 --- a/operating-systems/buer/files/thinkfan.scm +++ /dev/null @@ -1,6 +0,0 @@ -(define-module (buer files thinkfan) - #:use-module (gnu) - #:export (config)) - -(define config - (local-file "../../../files/thinkfan/thinkfan.conf")) diff --git a/modules/radix/artwork.scm b/radix/artwork.scm similarity index 100% rename from modules/radix/artwork.scm rename to radix/artwork.scm diff --git a/modules/radix/combinators.scm b/radix/combinators.scm similarity index 91% rename from modules/radix/combinators.scm rename to radix/combinators.scm index a8e07bd..de967d4 100644 --- a/modules/radix/combinators.scm +++ b/radix/combinators.scm @@ -38,10 +38,9 @@ if these arguments satisfy every other predicate in PREDICATES." (else #f)))))) (define (disjoin . predicates) - "Returns a procedure that is the inclusive disjunction of every predicate in -PREDICATES. The returned procedure takes an arbitrary number of arguments, and -returns #t if these arguments satisfy exactly one predicate in PREDICATES, and -#f otherwise." + "Returns a procedure that is the disjunction of every predicate in PREDICATES. +The returned procedure takes an arbitrary number of arguments, and returns #t if + these arguments satisfy exactly one predicate in PREDICATES, and #f otherwise." (lambda args (match (filter (partial (flip apply) args) predicates) ((_) #t) diff --git a/modules/radix/home/services.scm b/radix/home/services.scm similarity index 100% rename from modules/radix/home/services.scm rename to radix/home/services.scm diff --git a/modules/radix/home/services/gnupg.scm b/radix/home/services/gnupg.scm similarity index 100% rename from modules/radix/home/services/gnupg.scm rename to radix/home/services/gnupg.scm diff --git a/modules/radix/home/services/shells.scm b/radix/home/services/shells.scm similarity index 100% rename from modules/radix/home/services/shells.scm rename to radix/home/services/shells.scm diff --git a/modules/radix/home/services/xdg.scm b/radix/home/services/xdg.scm similarity index 100% rename from modules/radix/home/services/xdg.scm rename to radix/home/services/xdg.scm diff --git a/modules/radix/home/services/zathura.scm b/radix/home/services/zathura.scm similarity index 100% rename from modules/radix/home/services/zathura.scm rename to radix/home/services/zathura.scm diff --git a/modules/radix/packages.scm b/radix/packages.scm similarity index 100% rename from modules/radix/packages.scm rename to radix/packages.scm diff --git a/modules/radix/packages/admin.scm b/radix/packages/admin.scm similarity index 100% rename from modules/radix/packages/admin.scm rename to radix/packages/admin.scm diff --git a/radix/packages/base.scm b/radix/packages/base.scm new file mode 100644 index 0000000..524f02b --- /dev/null +++ b/radix/packages/base.scm @@ -0,0 +1,14 @@ +(define-module (radix packages base) + #:use-module (gnu packages base) + #:use-module (gnu packages linux) + #:use-module (guix packages) + #:use-module (guix transformations)) + +(define with-recent-kernel-headers + (package-input-rewriting + `((,linux-libre-headers . ,linux-libre-headers-6.7)))) + +(define-public glibc-with-recent-kernel-headers + (with-recent-kernel-headers glibc)) + +glibc-with-recent-kernel-headers diff --git a/modules/radix/packages/cpp.scm b/radix/packages/cpp.scm similarity index 100% rename from modules/radix/packages/cpp.scm rename to radix/packages/cpp.scm diff --git a/modules/radix/packages/fonts.scm b/radix/packages/fonts.scm similarity index 100% rename from modules/radix/packages/fonts.scm rename to radix/packages/fonts.scm diff --git a/modules/radix/packages/image-viewers.scm b/radix/packages/image-viewers.scm similarity index 100% rename from modules/radix/packages/image-viewers.scm rename to radix/packages/image-viewers.scm diff --git a/modules/radix/packages/linux.scm b/radix/packages/linux.scm similarity index 100% rename from modules/radix/packages/linux.scm rename to radix/packages/linux.scm diff --git a/modules/radix/packages/patches/sioyek-parse-link-uri.patch b/radix/packages/patches/sioyek-parse-link-uri.patch similarity index 100% rename from modules/radix/packages/patches/sioyek-parse-link-uri.patch rename to radix/packages/patches/sioyek-parse-link-uri.patch diff --git a/modules/radix/packages/pdf.scm b/radix/packages/pdf.scm similarity index 100% rename from modules/radix/packages/pdf.scm rename to radix/packages/pdf.scm diff --git a/radix/packages/qt.scm b/radix/packages/qt.scm new file mode 100644 index 0000000..2efaffd --- /dev/null +++ b/radix/packages/qt.scm @@ -0,0 +1,157 @@ +(define-module (radix packages qt) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages cmake) + #:use-module (gnu packages compression) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gtk) + #:use-module (gnu packages gl) + #:use-module (gnu packages vulkan) + #:use-module (gnu packages markup) + #:use-module (gnu packages perl) + #:use-module (gnu packages qt) + #:use-module (gnu packages xorg) + #:use-module (guix build-system cmake) + #:use-module (guix build-system qt) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix search-paths) + #:use-module (guix utils) + #:use-module ((guix licenses) #:prefix license:)) + +(define qt-url + (@@ (gnu packages qt) qt-url)) + +(define-public qt6ct + (package + (name "qt6ct") + (version "1.6") + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://sourceforge/qt6ct/qt6ct-" version ".tar.bz2")) + (sha256 + (base32 "14742vs32m98nbfb6mad0i8ciff6f46gfcb6v03p4hh2dvhhqgfn")))) + (build-system qt-build-system) + (arguments + (list + #:tests? #f ; No target + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda _ + (substitute* '("src/qt6ct-qtplugin/CMakeLists.txt" + "src/qt6ct-style/CMakeLists.txt") + (("\\$\\{PLUGINDIR\\}") + (string-append #$output "/lib/qt6/plugins")))))))) + (native-inputs + (list qttools)) + (inputs + (list qtsvg)) + (synopsis "Qt6 Configuration Tool") + (description "Qt6CT is a program that allows users to configure Qt6 +settings (such as icons, themes, and fonts) in desktop environments or +window managers, that don't provide Qt integration by themselves.") + (home-page "https://qt6ct.sourceforge.io/") + (license license:bsd-2))) + +(define-public qtspeech + (package + (inherit qtsvg) + (name "qtspeech") + (version "6.5.2") + (source (origin + (method url-fetch) + (uri (qt-url name version)) + (sha256 + (base32 + "1cnlc9x0wswzl7j2imi4kvs9zavs4z1mhzzfpwr6d9zlfql9rzw8")))) + (arguments + (list + #:configure-flags #~(list "-DQT_BUILD_TESTS=ON") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'set-display + (lambda _ + ;; Make Qt render "offscreen", required for tests. + (setenv "QT_QPA_PLATFORM" "offscreen")))))) + (inputs (list qtbase)) + (native-inputs (list perl qtdeclarative qtmultimedia qtxmlpatterns)) + (synopsis "Qt Speech module") + (description "The Qt Speech module enables a Qt application to support +accessibility features such as text-to-speech, which is useful for end-users +who are visually challenged or cannot access the application for whatever +reason. The most common use case where text-to-speech comes in handy is when +the end-user is driving and cannot attend the incoming messages on the phone. +In such a scenario, the messaging application can read out the incoming +message."))) + +(define-public qt3d + (package + (inherit qtbase) + (name "qt3d") + (version "6.6.0") + (source + (origin + (method url-fetch) + (uri (qt-url name version)) + (sha256 + (base32 + "0apwq6cqxn1xszhaawrz14yyy9akbmh6i5yys3v74kbz4537ma0d")))) + (propagated-inputs `()) + (native-inputs (list perl)) + (inputs (list mesa qtbase-5 vulkan-headers zlib)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'configure-qmake + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((tmpdir (string-append (getenv "TMPDIR"))) + (qmake (string-append tmpdir "/qmake")) + (qt.conf (string-append tmpdir "/qt.conf"))) + (symlink (which "qmake") qmake) + (setenv "PATH" + (string-append tmpdir ":" + (getenv "PATH"))) + (with-output-to-file qt.conf + (lambda () + (format #t "[Paths] + Prefix=~a~ + ArchData=lib/qt5~ + Data=share/qt5~ + Documentation=share/doc/qt5~ + Headers=include/qt5~ + Libraries=lib~ + LibraryExecutables=lib/qt5/libexec~ + Binaries=bin~ + Tests=tests~ + Plugins=lib/qt5/plugins~ + Imports=lib/qt5/imports~ + Qml2Imports=lib/qt5/qml~ + Translations=share/qt5/translations~ + Settings=etc/xdg~ + Examples=share/doc/qt5/examples~ + HostPrefix=~a~ + HostData=lib/qt5~ + HostBinaries=bin~ + HostLibraries=lib~ + + [EffectiveSourcePaths]~ + HostPrefix=~a~ + HostData=lib/qt5" + #$output #$output #$(this-package-input + "qtbase"))))))) + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "qmake" + "QT_BUILD_PARTS = libs tools tests"))) + (add-before 'check 'set-display + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen")))))) + (synopsis "Qt module for 3D") + (description "The Qt3d module provides classes for displaying 3D."))) + +qt3d diff --git a/modules/radix/packages/seninha.scm b/radix/packages/seninha.scm similarity index 100% rename from modules/radix/packages/seninha.scm rename to radix/packages/seninha.scm diff --git a/modules/radix/packages/shells.scm b/radix/packages/shells.scm similarity index 100% rename from modules/radix/packages/shells.scm rename to radix/packages/shells.scm diff --git a/modules/radix/packages/syndication.scm b/radix/packages/syndication.scm similarity index 100% rename from modules/radix/packages/syndication.scm rename to radix/packages/syndication.scm diff --git a/modules/radix/packages/toys.scm b/radix/packages/toys.scm similarity index 100% rename from modules/radix/packages/toys.scm rename to radix/packages/toys.scm diff --git a/modules/radix/packages/wm.scm b/radix/packages/wm.scm similarity index 100% rename from modules/radix/packages/wm.scm rename to radix/packages/wm.scm diff --git a/modules/radix/packages/xdisorg.scm b/radix/packages/xdisorg.scm similarity index 100% rename from modules/radix/packages/xdisorg.scm rename to radix/packages/xdisorg.scm diff --git a/radix/repl/command.scm b/radix/repl/command.scm new file mode 100644 index 0000000..f43cf66 --- /dev/null +++ b/radix/repl/command.scm @@ -0,0 +1,46 @@ +(define-module (radix repl command) + #:use-module (guix packages) + #:use-module (system repl command) + #:use-module (radix combinators)) + +(define-meta-command ((clear repl) repl) + "Clear REPL." + (system* "printf" (object->string "\\033c"))) + +(define-meta-command ((edit filename) repl filename) + "Open FILENAME using the editor (getenv \"EDITOR\")." + (system* (getenv "EDITOR") filename)) + +(define-meta-command ((home _) repl) + "Open FILENAME using the editor (getenv \"EDITOR\")." + (system* (getenv "EDITOR") + (string-append (getenv "XDG_CONFIG_HOME") + "/guix/home.scm"))) + +(define-meta-command ((system _) repl) + "Open FILENAME using the editor (getenv \"EDITOR\")." + (system* (getenv "EDITOR") "/etc/config.scm")) + +(define-meta-command ((source module) repl module) + "Open MODULE source file using the editor (getenv \"EDITOR\"). +Returns #f if no file defining MODULE is found in %load-path." + (system* (getenv "EDITOR") + (false-if-exception + (car (filter file-exists? + (map (partial (flip string-append) + (module-filename + (resolve-module module)) + "/") + %load-path)))))) + +#;(define-meta-command ((definition symbol) repl symbol) + "Open the module that defines SYMBOL using the editor (getenv \"EDITOR\"). +If multiple modules define" + (system* (getenv "EDITOR") + (false-if-exception + (car (filter file-exists? + (map (partial (flip string-append) + (module-filename + (resolve-module module)) + "/") + %load-path)))))) diff --git a/modules/radix/services/admin.scm b/radix/services/admin.scm similarity index 100% rename from modules/radix/services/admin.scm rename to radix/services/admin.scm diff --git a/modules/radix/services/pm.scm b/radix/services/pm.scm similarity index 100% rename from modules/radix/services/pm.scm rename to radix/services/pm.scm diff --git a/modules/radix/system/monitoring.scm b/radix/system/monitoring.scm similarity index 58% rename from modules/radix/system/monitoring.scm rename to radix/system/monitoring.scm index b023788..35432b4 100644 --- a/modules/radix/system/monitoring.scm +++ b/radix/system/monitoring.scm @@ -1,6 +1,8 @@ (define-module (radix system monitoring) #:use-module (srfi srfi-26) #:use-module (ice-9 rdelim) + #:use-module (ice-9 regex) + #:use-module (ice-9 textual-ports) #:export (current-memory-info current-ram-usage current-swap-usage @@ -8,6 +10,28 @@ current-battery-capacity)) +(define (current-memory-info) + (define (string-replace str match substitution) + (regexp-substitute/global #f (string-match match str) + 'pre substitution 'post)) + (define (remove-units str) + (string-replace str " Kb" "")) + (define (change-keyword-value-separator str) + (string-replace str ": +" " . ")) + (define (open-parens str) + (string-append "[" (string-replace str "^" "[") "]")) + (define (close-parens str) + (string-append (string-replace str "$" "]") "]")) + (call-with-input-file "/proc/meminfo" + (lambda (port) + (with-input-from-string + ((compose close-parens + open-parens + change-keyword-value-separator + remove-units) + (get-string-all port)) + read)))) + #|memory usage monitoring utilities|# (define (current-memory-info) (let* ((port (open "/proc/meminfo" O_RDONLY)) @@ -31,11 +55,10 @@ lines))) (define (ram-total) - (let* ((port (open "/proc/meminfo" O_RDONLY)) - (_ (read port)) - (mem-in-b (* (read port) 1024))) - (close-input-port port) - mem-in-b)) + (call-with-input-file "/proc/meminfo" + (lambda (port) + (read port) + (* (read port))))) (define (current-ram-usage) (apply - (map (cut assoc-ref (current-memory-info) <>) @@ -47,9 +70,5 @@ #|battery usage monitoring utilities|# (define (current-battery-capacity) - (let* ((port (open "/sys/class/power_supply/BAT0/capacity" - O_RDONLY)) - (battery-level (read port))) - (close-input-port port) - battery-level)) - + (call-with-input-file "/sys/class/power_supply/BAT0/capacity" + read)) diff --git a/modules/radix/system/security.scm b/radix/system/security.scm similarity index 100% rename from modules/radix/system/security.scm rename to radix/system/security.scm diff --git a/modules/radix/system/setuid.scm b/radix/system/setuid.scm similarity index 100% rename from modules/radix/system/setuid.scm rename to radix/system/setuid.scm diff --git a/modules/radix/utils.scm b/radix/utils.scm similarity index 100% rename from modules/radix/utils.scm rename to radix/utils.scm diff --git a/screenshots/awesome-1.jpg b/screenshots/awesome-1.jpg deleted file mode 100644 index 44a9359..0000000 Binary files a/screenshots/awesome-1.jpg and /dev/null differ diff --git a/screenshots/awesome-2.jpg b/screenshots/awesome-2.jpg deleted file mode 100644 index 2270036..0000000 Binary files a/screenshots/awesome-2.jpg and /dev/null differ