<commit_before>-- {{{ License
-- rc.lua, works with awesome 3.4.1x
-- author: joedicastro <joe [at] joedicastro.com>
-- based on multiple rc.lua files from different awesome users
--
-- This work is licensed under the Creative Commons Attribution Share
-- Alike License: http://creativecommons.org/licenses/by-sa/3.0/
-- }}}

-- {{{ Cheat Sheet
-- {{{ Key Bindings
-- ===============================================================  KEY BINDINGS

------------------------------------------------------------ Launch Applications
--
-- Win  +  Enter                    Terminal
-- Win  +  F1                       Ranger (File manager)
-- Win  +  F2                       Firefox
-- Win  +  F3                       Thunderbird
-- Win  +  F4                       Gvim
-- Win  +  F5                       tmux
-- Win  +  F6                       ncmpcpp
-- Win  +  F7                       Start gif screencast recording LR + screenkey
-- Win  +  F8                       Start gif screencast recording LowRes
-- Win  +  F9                       Start gif screencast recording HighRes
-- Win  +  F10                      Stop gif screencast recording
-- Win  +  F11                      Start mkv screencast recording
-- Win  +  F12                      Stop mkv screencast recording
--
------------------------------------------------------------------ Shell prompts
--
-- Win  +  r                        Launch a command line prompt into status bar
-- Win  +  x                        Launch a Lua prompt into status bar
--
--------------------------------------------------------------------- Navigation
--
-- Win  +  j/k                      Focus on next/previous client
-- Win  +  u                        Focus first urgent client
-- Win  +  Left                     Previous tag
-- Win  +  Right                    Next tag
-- Win  +  1-9                      Show tag 1-9
-- Win  +  Control  +  j/k          Focus next/previous Screen
-- Win  +  Escape                   Revert tag history (previous selected tag)
-- Win  +  Tab                      Swap between clients
--
----------------------------------------------------------------- Client Control
--
-- Win  +  m                        Maximize client
-- Win  +  n                        Minimize client
-- Win  +  Control  +  n            Restore (=unminimize) a random client
-- Win  +  f                        Set client fullscreen
-- Win  +  c                        Kill focused client
-- Win  +  t                        Toggle "always visible" (on top)
-- Win  +  i                        Show/hide client border
-- Win  +  Shift    +  t            Show/hide client titlebar
-- Win  +  Shift    +  r            Redraw focused client
--
------------------------------------------------------------------------ Layouts
--
-- Win  +  Shift    +  j/k          Swap clients
-- Win  +  o                        Move client to next screen
-- Win  +  l/h                      Change master width by 5%
-- Win  +  Shift    +  l/h          Number of windows for master area +1/-1
-- Win  +  Control  +  l/h          Number of columns for stack area +1/-1
-- Win  +  Space                    Next layout
-- Win  +  Shift    +  Space        Previous layout
-- Win  +  Control  +  Space        Toggle client floating state
-- Win  +  Control  +  Enter        Swap focused client with master
-- Win  +  Control  +  1-9          Enable/Disable view of tag 1-9
-- Win  +  Shift    +  1-9          Tag current client with 1-9 tag
-- Win  +  Shift  +  Ctrl  +  1-9   Enable/Disable tag 1-9 for current client
-- win  +  Shift    +  F1-9         Tag marked clients with 1-9 tag
-- Win  +  ,                        Move client to previous tag
-- Win  +  .                        Move client to next tag
--
------------------------------------------------------------------ Miscellaneous
--
-- Win  +  b                        Hide/Show status bar (Wibox)
-- Win  +  e                        Revelation
-- Win  +  p                        Menubar (app launcher)
-- Win  +  y                        Lock Screen
-- Print Screen                     Take a screenshot
--
---------------------------------------------------------------- Awesome Control
--
-- Win  +  Ctrl     +  r            Restart Awesome
-- Win  +  Shift    +  q            Quit Awesome
-- Win  +  w                        Show Awesome menu
--
--
----------------------------------------------------------------- System Control
--
-- Win  +  o                        Shutdown system
-- Win  +  s                        Suspend system
-- Win  +  z                        Reboot system
--
---------------------------------------------------------------- Multimedia keys
--
-- Play media key              Play mpd song in playlist
-- Stop media key              Stop mpd reproduction
-- Prev media key              Previous song in mpd playlist
-- Next media key              Next song in mpd playlist
-- Raise volume media key      Raise Volume 2dB
-- Lower volume media key      Lower Volume 2dB
-- Mute media key              Mute volume
--
-- Special controls for an external keyboard with only volume control keys
-- Win  +  Raise volume        Next song in mpd playlist
-- Win  +  Lower volume        Previous song in mpd playlist
-- Win  +  Mute                Toggle mpd reproduction
--
-- }}}
-- {{{ Mouse Bindings
-- =============================================================  MOUSE BINDINGS

--------------------------------------------------------------------- Navigation
--
-- Button 1 on tag name             View tag
-- Button 4,5 on tag name           Switch to previous/next tag
-- Button 4,5 on root window        Switch to previous/next tag
-- Button 1,3,4,5 on layout symbol  Switch to previous/next layout
--
------------------------------------------------------------ Layout modification
--
-- Win + Button 1 on tag name       Tag current client with this tag only
-- Win + Button 3 on tag name       Toggle this tag for client
-- Button 3 on tag name             Add this tag to current view
-- Win + Button 1 on client         Move window
-- Win + Button 3 on client         Resize window
--
---------------------------------------------------------------- Awesome Control
--
-- Button 3                         Toggle awesome menu
--
------------------------------------------------------------------------ Widgets
--
-- Button 1 on mpd icon              Toggle mpd reproduction
-- Button 3 on mpd icon              Launch ncmpcpp
-- Button 1 on mpd status            Play next song
-- Button 3 on mpd status            Play previous song
-- Button 1 on memory usage          Launch `memory_usage.py`
-- Button 1 on cpu usage             Launch htop
-- Button 3 on cpu usage             Launch nmon
-- Button 1 on filesystem usage      Launch ncdu
-- Button 1 on network usage         Launch wicd curses
-- Button 3 on network usage         Launch ethstatus
-- Button 1 on sound volume          Launch alsamixer
--
-- }}}
-- }}}

-- {{{ Load libraries
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- Vicious library
require("vicious")
-- Eminent library
require("eminent")
-- Revelation
require("revelation")
-- Calendar
require("cal")
-- Menubar
require("menubar")
-- }}}

-- {{{ Run only one instance per program
function run_once(cmd)
  findme = cmd
  firstspace = cmd:find(" ")
  if firstspace then
    findme = cmd:sub(0, firstspace-1)
  end
  awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme ..
                              " > /dev/null || (" .. cmd .. ")")
end
-- }}}

-- {{{ Some initializations
-- start the composite manager to provide transparency support
-- run_once("xcompmgr -I1 -O1 -Ff")<commit_msg>Awesome: adaptar la configuracion a los ultimos cambios en los widgets vicious<commit_after>-- {{{ License
-- rc.lua, works with awesome 3.4.1x
-- author: joedicastro <joe [at] <EMAIL>>
-- based on multiple rc.lua files from different awesome users
--
-- This work is licensed under the Creative Commons Attribution Share
-- Alike License: http://creativecommons.org/licenses/by-sa/3.0/
-- }}}

-- {{{ Cheat Sheet
-- {{{ Key Bindings
-- ===============================================================  KEY BINDINGS

------------------------------------------------------------ Launch Applications
--
-- Win  +  Enter                    Terminal
-- Win  +  F1                       Ranger (File manager)
-- Win  +  F2                       Firefox
-- Win  +  F3                       Thunderbird
-- Win  +  F4                       Gvim
-- Win  +  F5                       tmux
-- Win  +  F6                       ncmpcpp
-- Win  +  F7                       Start gif screencast recording LR + screenkey
-- Win  +  F8                       Start gif screencast recording LowRes
-- Win  +  F9                       Start gif screencast recording HighRes
-- Win  +  F10                      Stop gif screencast recording
-- Win  +  F11                      Start mkv screencast recording
-- Win  +  F12                      Stop mkv screencast recording
--
------------------------------------------------------------------ Shell prompts
--
-- Win  +  r                        Launch a command line prompt into status bar
-- Win  +  x                        Launch a Lua prompt into status bar
--
--------------------------------------------------------------------- Navigation
--
-- Win  +  j/k                      Focus on next/previous client
-- Win  +  u                        Focus first urgent client
-- Win  +  Left                     Previous tag
-- Win  +  Right                    Next tag
-- Win  +  1-9                      Show tag 1-9
-- Win  +  Control  +  j/k          Focus next/previous Screen
-- Win  +  Escape                   Revert tag history (previous selected tag)
-- Win  +  Tab                      Swap between clients
--
----------------------------------------------------------------- Client Control
--
-- Win  +  m                        Maximize client
-- Win  +  n                        Minimize client
-- Win  +  Control  +  n            Restore (=unminimize) a random client
-- Win  +  f                        Set client fullscreen
-- Win  +  c                        Kill focused client
-- Win  +  t                        Toggle "always visible" (on top)
-- Win  +  i                        Show/hide client border
-- Win  +  Shift    +  t            Show/hide client titlebar
-- Win  +  Shift    +  r            Redraw focused client
--
------------------------------------------------------------------------ Layouts
--
-- Win  +  Shift    +  j/k          Swap clients
-- Win  +  o                        Move client to next screen
-- Win  +  l/h                      Change master width by 5%
-- Win  +  Shift    +  l/h          Number of windows for master area +1/-1
-- Win  +  Control  +  l/h          Number of columns for stack area +1/-1
-- Win  +  Space                    Next layout
-- Win  +  Shift    +  Space        Previous layout
-- Win  +  Control  +  Space        Toggle client floating state
-- Win  +  Control  +  Enter        Swap focused client with master
-- Win  +  Control  +  1-9          Enable/Disable view of tag 1-9
-- Win  +  Shift    +  1-9          Tag current client with 1-9 tag
-- Win  +  Shift  +  Ctrl  +  1-9   Enable/Disable tag 1-9 for current client
-- win  +  Shift    +  F1-9         Tag marked clients with 1-9 tag
-- Win  +  ,                        Move client to previous tag
-- Win  +  .                        Move client to next tag
--
------------------------------------------------------------------ Miscellaneous
--
-- Win  +  b                        Hide/Show status bar (Wibox)
-- Win  +  e                        Revelation
-- Win  +  p                        Menubar (app launcher)
-- Win  +  y                        Lock Screen
-- Print Screen                     Take a screenshot
--
---------------------------------------------------------------- Awesome Control
--
-- Win  +  Ctrl     +  r            Restart Awesome
-- Win  +  Shift    +  q            Quit Awesome
-- Win  +  w                        Show Awesome menu
--
--
----------------------------------------------------------------- System Control
--
-- Win  +  o                        Shutdown system
-- Win  +  s                        Suspend system
-- Win  +  z                        Reboot system
--
---------------------------------------------------------------- Multimedia keys
--
-- Play media key              Play mpd song in playlist
-- Stop media key              Stop mpd reproduction
-- Prev media key              Previous song in mpd playlist
-- Next media key              Next song in mpd playlist
-- Raise volume media key      Raise Volume 2dB
-- Lower volume media key      Lower Volume 2dB
-- Mute media key              Mute volume
--
-- Special controls for an external keyboard with only volume control keys
-- Win  +  Raise volume        Next song in mpd playlist
-- Win  +  Lower volume        Previous song in mpd playlist
-- Win  +  Mute                Toggle mpd reproduction
--
-- }}}
-- {{{ Mouse Bindings
-- =============================================================  MOUSE BINDINGS

--------------------------------------------------------------------- Navigation
--
-- Button 1 on tag name             View tag
-- Button 4,5 on tag name           Switch to previous/next tag
-- Button 4,5 on root window        Switch to previous/next tag
-- Button 1,3,4,5 on layout symbol  Switch to previous/next layout
--
------------------------------------------------------------ Layout modification
--
-- Win + Button 1 on tag name       Tag current client with this tag only
-- Win + Button 3 on tag name       Toggle this tag for client
-- Button 3 on tag name             Add this tag to current view
-- Win + Button 1 on client         Move window
-- Win + Button 3 on client         Resize window
--
---------------------------------------------------------------- Awesome Control
--
-- Button 3                         Toggle awesome menu
--
------------------------------------------------------------------------ Widgets
--
-- Button 1 on mpd icon              Toggle mpd reproduction
-- Button 3 on mpd icon              Launch ncmpcpp
-- Button 1 on mpd status            Play next song
-- Button 3 on mpd status            Play previous song
-- Button 1 on memory usage          Launch `memory_usage.py`
-- Button 1 on cpu usage             Launch htop
-- Button 3 on cpu usage             Launch nmon
-- Button 1 on filesystem usage      Launch ncdu
-- Button 1 on network usage         Launch wicd curses
-- Button 3 on network usage         Launch ethstatus
-- Button 1 on sound volume          Launch alsamixer
--
-- }}}
-- }}}

-- {{{ Load libraries
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- Vicious library
vicious = require("vicious")
-- Eminent library
require("eminent")
-- Revelation
require("revelation")
-- Calendar
require("cal")
-- Menubar
require("menubar")
-- }}}

-- {{{ Run only one instance per program
function run_once(cmd)
  findme = cmd
  firstspace = cmd:find(" ")
  if firstspace then
    findme = cmd:sub(0, firstspace-1)
  end
  awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme ..
                              " > /dev/null || (" .. cmd .. ")")
end
-- }}}

-- {{{ Some initializations
-- start the composite manager to provide transparency support
-- run_once("xcompmgr -I1 -O1 -Ff")
{'fraction_non_alphanumeric': 0.2008669599031045, 'fraction_numerical': 0.009817045961624275, 'mean_word_length': 1.0569031073816704, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 74, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1300633', 'n_tokens_mistral': 3972, 'n_tokens_neox': 3666, 'n_words': 1451}