Skip to content

Instantly share code, notes, and snippets.

@fenimore
Last active December 4, 2017 21:02
Show Gist options
  • Save fenimore/e2c6ea14691ae575cfa1 to your computer and use it in GitHub Desktop.
Save fenimore/e2c6ea14691ae575cfa1 to your computer and use it in GitHub Desktop.
Dotfiles
user_pref("javascript.options.strict", false);
user_pref("javascript.options.showInConsole", false);
define_key(content_buffer_normal_keymap, "d", "follow-new-buffer");
let (home = get_home_directory()) {
home.append("home.html");
homepage = home.path;
}
session_pref("xpinstall.whitelist.required", false);
url_completion_use_history = true;
session_pref('browser.history_expire_days', 2);
require("new-tabs.js");
define_webjump("z", "javascript:var d = document, s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet.loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(o);");
require("clicks-in-new-buffer.js");
clicks_in_new_buffer_target = OPEN_NEW_BUFFER_BACKGROUND;
clicks_in_new_buffer_button = 1;
define_webjump("conk", "http://conkeror.org");
define_webjump("arch", "http://wiki.archlinux.org");
define_webjump("gmail", "http://gmail.com");
define_webjump("hn", "http://news.ycombinator.com");
define_webjump("xk", "http://xkcd.com");
//url_remoting_fn = load_url_in_new_buffer;
//load ursl in new buffers
download_buffer_automatic_open_target = OPEN_NEW_BUFFER_BACKGROUND;
xkcd_add_title = true;
add_hook("mode_line_hook", mode_line_adder(buffer_count_widget), true);
load_paths.unshift("chrome://conkeror-contrib/content/");
require("mode-line-buttons.js");
mode_line_add_buttons(standard_mode_line_buttons, true);
function define_switch_buffer_key (key, buf_num) {
define_key(default_global_keymap, key,
function (I) {
switch_to_buffer(I.window,
I.window.buffers.get_buffer(buf_num));
});
}
for (let i=0; i<10; i++) {
define_switch_buffer_key(String((i+1)%10), i);
}
dumpln("Config loaded");
startup_message off
escape C-z
exec xterm
exec setxkbmap -option compose:lwin
# use the name of the program rather than the title in the window list
defwinname name
bind b exec conkeror
bind g exec gedit
bind h exec libreoffice
bind f exec firefox
bind m exec nautilus
# Printscreen!
definekey top Print exec import -window root ~/ss-`date +%Y%m%d%H%M%S`.png
# Volume
##VOLUME
# I don't know which of these work...
definekey top S-XF86AudioRaiseVolume exec amixer set Master 5%+
definekey top S-XF86AudioMute exec amixer Master 0%
definekey top S-XF86AudioLowerVolume exec amixer set Master 5%-
definekey top XF86AudioRaiseVolume exec amixer set Master 5%+
definekey top XF86AudioMute exec amixer set Master 0%
definekey top XF86AudioLowerVolume exec amixer set Master 5%-
definekey top s-Up exec amixer set Master 5%+
definekey top s-Down exec amixer set Master 5%-
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec /usr/bin/ratpoison
# register the flag key to compose
exec setxkbmap -option compose:lwin
xterm*font: *-fixed-*-*-*-18-*
XTerm*Background: black
XTerm*Foreground: white
conky.config = {
-- -- Conky settings -- #
background = true,
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
-- -- Window specifications -- #
own_window = true,
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_colour = '#000000',
minimum_width = 370,
minimum_height = 700,
border_inner_margin = 25,
border_outer_margin = 0,
alignment = 'bottom_right',
gap_x = 50,
gap_y = 50,
-- -- Graphics settings -- #
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
-- Conky on second monitor
xinerama_head = 2,
-- -- Text settings -- #
-- Ícones: ${font Conky Icons by Carelli:size=14}
use_xft = true,
font = 'Ubuntu Mono:size=12',
xftalpha = 0.8,
uppercase = false,
default_color = '#FFFFFF',
-- format_human_readable = true,
};
conky.text = [[
${color #000000}${font Conky Icons by Carelli:size=30}ƃ ${color}${font Conky Icons by Carelli:size=14}ǒ${font} ${uptime}
${hr 2}
${font}${distribution} - ${kernel}
${color #f8df58}${font Conky Icons by Carelli:size=14}i ${font}${exec curl ipinfo.io/ip}${color}
#${color #f8df58}${font Conky Icons by Carelli:size=14}E${goto 85}${font}UP${goto 225}${font}DOWN${color}
${goto 50}${font Conky Icons by Carelli:size=14}Ƃ ${font}${goto 85}${upspeed wlp58s0}${goto 200}${font Conky Icons by Carelli:size=14}Ɓ ${font}${downspeed wlp58s0}
${goto 50}${font Conky Icons by Carelli:size=14}h ${font}${goto 85}${addrs wlp58s0}
${goto 50}${font Conky Icons by Carelli:size=14}Ǘ ${font}${goto 85}${wireless_essid wlp58s0} : ${wireless_link_qual wlp58s0}%
#${goto 50}${font Conky Icons by Carelli:size=14}Ɓ ${font}${goto 85}${downspeed wlp58s0}${goto 225}${downspeed wlp58s0}
# Temp doesn't word for Nvme solid state drive
#${goto 50}${font Conky Icons by Carelli:size=14}ǘ ${font}${goto 85}sda: ${hddtemp} ºC sdb: ${hddtemp /dev/sdb} ºC
${color #f8df58}${font Conky Icons by Carelli:size=14}ň ${font}DISK${color}
${goto 50}${font Conky Icons by Carelli:size=14}Ǒ ${font}${goto 85}Root:${goto 140}${fs_bar 7,75 /}${goto 225}${fs_free_perc /}%
#${goto 50}${font Conky Icons by Carelli:size=14}M ${font}${goto 85}Dados:${goto 140}${fs_bar 7,75 /mnt/Home}${goto 225}${fs_free_perc /mnt/Home}%
# Disk IO
${goto 50}nvme read: ${diskio_read /dev/nvme0n1p1}${goto 225} nvme write: ${diskio_write /dev/nvme0n1p1}
${goto 50}${diskiograph_read /dev/nvme0n1p1 20,80 2216e1 2216e1}${goto 225}${diskiograph_write /dev/nvme0n1p1 20,80 DD3A21 DD3A21}
${color #f8df58}${font Conky Icons by Carelli:size=14}Ŵ ${font}CPU${voffset -5.5}${goto 225}${font Conky Icons by Carelli:size=14}B ${font}MEMORY${color}${font}
${goto 50}${cpu cpu0}%${goto 92}${cpubar 7,80 cpu0}${goto 225}RAM:${goto 268}$memperc%${goto 302}${membar 7,80}
${goto 50}${cpu cpu1}%${goto 92}${cpubar 7,80 cpu1}${goto 225}SWAP:${goto 268}$swapperc%${goto 302}${swapbar 7,80}
${goto 50}${cpu cpu2}%${goto 92}${cpubar 7,80 cpu2}
${goto 50}${cpu cpu3}%${goto 92}${cpubar 7,80 cpu3}
${color #f8df58}${font Conky Icons by Carelli:size=14}Ŷ ${font}PROCESSES
${goto 40}Name ${goto 170}PID${goto 225}CPU${goto 280}MEM${color}
${goto 40}${top name 1} ${goto 170}${top pid 1}${goto 225}${top cpu 1}${goto 280}${top mem 1}
${goto 40}${top name 2} ${goto 170}${top pid 2}${goto 225}${top cpu 2}${goto 280}${top mem 2}
${goto 40}${top name 3} ${goto 170}${top pid 3}${goto 225}${top cpu 3}${goto 280}${top mem 3}
${goto 40}${top name 4} ${goto 170}${top pid 4}${goto 225}${top cpu 4}${goto 280}${top mem 4}
${goto 40}${top name 5} ${goto 170}${top pid 5}${goto 225}${top cpu 5}${goto 280}${top mem 5}
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment