Commit graph

201 commits

Author SHA1 Message Date
Pig Monkey
29a395bc0b add qcode to browser chooser
easily open URLs on your phone!
2016-02-05 18:11:21 -08:00
Pig Monkey
9e9f078483 add qcode script
To make this script particularly useful, configure a keyboard shortcut
for it and tell i3 to float the feh window.

Example:
4f7c1c9ea6

Original script source:
https://raw.githubusercontent.com/lathan/dotfiles/master/scripts/clipqr.sh
2016-02-05 18:09:57 -08:00
Pig Monkey
009998dbb6 use firejail 0.9.38 symlink invocation
https://l3net.wordpress.com/2016/02/04/firejail-0-9-38-release-announcement/

Existing users will need to remove the old wrapper scripts first

    # rm /usr/local/bin{chromium,firefox,weechat,rtorrent}
2016-02-05 18:04:53 -08:00
Pig Monkey
55f2e67694 set slim background
Image stolen from reddit user Dr_Chew, who seems not to care about
licesning.

https://www.reddit.com/r/Cyberpunk/comments/3ynwwg/hosaka_onosendai_cyberspace_7_logo/
2016-02-04 09:21:11 -08:00
Pig Monkey
cc4eb05b95 update firewarden 2016-01-31 17:55:18 -08:00
Pig Monkey
4c65124e31 quote zathura args to avoid weirdness 2016-01-31 17:44:32 -08:00
Pig Monkey
bc8d833a17 merge firewarden and disposable
Existing users should remove /usr/local/bin/disposable
2016-01-31 17:35:40 -08:00
Pig Monkey
577c9bfc67 jail zathura
For shady PDFs, firewarden is still the better solution, but jailing
zathura with the generic profile isn't going to hurt anything when
viewing trusted docs.
2016-01-30 17:53:55 -08:00
Pig Monkey
a71ce2b0cf merge tlp package tasks 2016-01-30 16:17:47 -08:00
Pig Monkey
8d3a7c8533 add cron handler 2016-01-30 16:10:21 -08:00
Pig Monkey
157805398d breakout cron role 2016-01-30 16:07:54 -08:00
Pig Monkey
27064030a3 add sshd handler 2016-01-30 16:05:33 -08:00
Pig Monkey
2e84ecca61 always prep sshd
There isn't any reason not to do this. We still only actually enable the
service when asked to in the config.
2016-01-30 16:03:08 -08:00
Pig Monkey
48912b59db add handlers
This should mostly eliminate the need to manually reload/restart
services (or reboot the machine) after updates.
2016-01-30 16:01:47 -08:00
Pig Monkey
87839409bc update nmtrust 2016-01-30 15:17:42 -08:00
Pig Monkey
e58061025d breakout cups tasks to role 2016-01-30 14:37:55 -08:00
Pig Monkey
d55cc7d734 better git-annex config options 2016-01-30 14:17:47 -08:00
Pig Monkey
9e362a2999 add clean up tasks for toggling units in config 2016-01-30 14:17:01 -08:00
Pig Monkey
499cc7463b reorganize lowbatt script
Check for status and only continue if the battery is discharging.
2016-01-30 13:33:43 -08:00
Pig Monkey
479312353d fix rfkill masking
I think I originally got this from the official TLP docs, but
systemd-rfkill isn't a template, so we don't actually want the @ in
there.

Fixes some of #18.
2016-01-29 08:37:45 -08:00
Pig Monkey
173a2a69e7 fix typo 2016-01-28 22:32:23 -08:00
Pig Monkey
48c3184c9b refactor low battery handling
udev was not distinguishing between multiple batteries. It was
suspending the system when the secondary battery reached the threshold,
even if the primary battery was still full, which is not the desired
behaviour.

There may be a way to tell udev which battery we care about, but it was
easier for me to just write a shell script that handles all the logic.
The script warns when the primary battery is low and suspends when the
primary battery is critical.

I tried calling the script with a single udev rule with a capacity range
of 0-10, however that resulted in no warnings and suspending only when
the battery went to 0%. Not useful. With two rules with different ranges
like this, the system is consistently suspended at 5%, which is what I
want. I sometimes get warnings in the 6-10% range, but not consistently.
I don't know why.

If the warnings won't work, we could create a systemd timer to call the
script every ~60 seconds or so. That will definitely work, but it seems
like udev should be able to handle this.
2016-01-28 22:25:29 -08:00
Pig Monkey
7531a055b2 warn on low battery
Addresses part of #18
2016-01-28 20:27:55 -08:00
Pig Monkey
4faff9eff5 install ethtool
needed for TLP to disable Wake On LAN
2016-01-28 19:45:47 -08:00
Pig Monkey
f3d0466320 suspend on low battery
This really should hibernate rather than suspend, but hibernation
doesn't work on my system for some reason.

Partially addresses #18
2016-01-28 19:34:46 -08:00
Pig Monkey
b8a827504f install: support suspend
After making these changes to an existing system, rebuild grub and make
images.

    # grub-mkconfig -o /boot/grub/grub.cfg
    # mkinitcpio -p linux
    # mkinitcpio -p linux-grsec
2016-01-28 19:29:06 -08:00
Peter Hogg
1086c99424 Merge pull request #17 from jshuping/more_tools
add pv and minicom
2016-01-28 19:04:30 -08:00
John Shuping
56b1d03347 add pv and minicom 2016-01-27 18:27:20 -05:00
Peter Hogg
f0a09ee8d1 Merge pull request #15 from jshuping/vbox_guest_utils
add virtualbox-guest-utils
2016-01-27 11:16:10 -08:00
John Shuping
38039e9987 add virtualbox-guest-utils
makes arch happy in a vbox vm, doesn't appear to hurt otherwise
2016-01-26 23:04:57 -05:00
Pig Monkey
0c45b02586 only run grub tasks on grub systems
I've never used a conditional in a handler before, but I think this
works. Fixes part of #14.
2016-01-26 09:24:35 -08:00
Peter Hogg
05c7a286bd Merge pull request #13 from jshuping/fix_sshd_config
Fix minor typo in sshd_config template
2016-01-26 09:21:47 -08:00
John Shuping
0732944f58 AllowUsers only wants the username 2016-01-26 08:27:55 -05:00
Pig Monkey
72a1065cfe install MAT 2016-01-24 19:39:21 -08:00
Pig Monkey
7b97c088db remove vbox module build
This doesn't actually fix the grsec problem, and will fail if running in
the vanilla kernel during the grsec install process.
2016-01-23 11:03:10 -08:00
Pig Monkey
9972a8ba6c install sshuttle 2016-01-21 21:28:36 -08:00
Pig Monkey
be6565c68b split vm role into virtualbox and vagrant 2016-01-21 19:27:31 -08:00
Pig Monkey
736254ddc9 rename network role 2016-01-21 19:23:03 -08:00
Pig Monkey
9e2c800f65 add macchiato role 2016-01-21 19:19:13 -08:00
Pig Monkey
23088a9a82 add iptables roll 2016-01-21 19:16:26 -08:00
Pig Monkey
b80feb22f9 remove unused git-annex dispatchers 2016-01-21 18:07:11 -08:00
Pig Monkey
e0b0d5ed27 upgrade nmtrust and change git-annex trust behaviour 2016-01-21 18:05:26 -08:00
Pig Monkey
7285bc50f5 install formd 2016-01-21 17:46:39 -08:00
Pig Monkey
6bddfddb19 update README to reflect nmtrust changes 2016-01-20 19:47:29 -08:00
Pig Monkey
75fbc07fd8 replace AUR packages for git-annex and pandoc
These both have a bunch of haskell dependencies, but now that git-annex
is available in Community enough of the dependencies are shared between
them that it seems worthwhile to do this. Fewer AUR packages is more
better.
2016-01-20 19:33:01 -08:00
Pig Monkey
70e0d28703 move trusted network framework to submodule 2016-01-20 19:23:13 -08:00
Pig Monkey
7a6d602dcb add localhost to resolvconf 2016-01-20 18:03:11 -08:00
Pig Monkey
07570a6ec2 add network diagnostic tools 2016-01-20 17:42:10 -08:00
Pig Monkey
90190826e1 enable trim timer 2016-01-20 17:41:45 -08:00
Pig Monkey
13d82bbffe removel lynx 2016-01-20 16:08:01 -08:00