From 11136f2b2b8e39706ffadb998e0ca3203414dabd Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 7 Jul 2021 23:03:13 -0400 Subject: [PATCH] Initial commit --- LICENSE | 19 +++++++++++++++++++ README | 1 + etc/acpi/actions/lid.sh | 4 ++++ etc/acpi/events/bar | 2 ++ etc/acpi/events/lid | 2 ++ etc/doas.conf | 39 +++++++++++++++++++++++++++++++++++++++ etc/inittab | 11 +++++++++++ etc/profile | 19 +++++++++++++++++++ etc/wpa_supplicant.conf | 6 ++++++ 9 files changed, 103 insertions(+) create mode 100644 LICENSE create mode 100644 README create mode 100755 etc/acpi/actions/lid.sh create mode 100644 etc/acpi/events/bar create mode 100644 etc/acpi/events/lid create mode 100644 etc/doas.conf create mode 100644 etc/inittab create mode 100644 etc/profile create mode 100644 etc/wpa_supplicant.conf diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..95b8a53 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright © 2021 Armaan Bhojwani + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README b/README new file mode 100644 index 0000000..f7d70c5 --- /dev/null +++ b/README @@ -0,0 +1 @@ +Some notable files from my /etc \ No newline at end of file diff --git a/etc/acpi/actions/lid.sh b/etc/acpi/actions/lid.sh new file mode 100755 index 0000000..4aaf322 --- /dev/null +++ b/etc/acpi/actions/lid.sh @@ -0,0 +1,4 @@ +#!/usr/bin/sh + +grep -q close /proc/acpi/button/lid/*/state +[ $? = 0 ] && zzz diff --git a/etc/acpi/events/bar b/etc/acpi/events/bar new file mode 100644 index 0000000..5e77a19 --- /dev/null +++ b/etc/acpi/events/bar @@ -0,0 +1,2 @@ +event=ac_adapter* +action=pkill -RTMIN+9 dwmblocks diff --git a/etc/acpi/events/lid b/etc/acpi/events/lid new file mode 100644 index 0000000..cd6411c --- /dev/null +++ b/etc/acpi/events/lid @@ -0,0 +1,2 @@ +event=button/lid +action=/etc/acpi/actions/lid.sh diff --git a/etc/doas.conf b/etc/doas.conf new file mode 100644 index 0000000..9207036 --- /dev/null +++ b/etc/doas.conf @@ -0,0 +1,39 @@ +# Set rules here. +# Priority increases with linenumber. +# See doas.conf(5) for details. + +# permit persist :wheel +# permit nopass root + +# This config file isn't very powerful at all compared to +# the likes of sudo's. It's very difficult to tell it that +# we want to permit running the package manager and package +# manager alone (hence the 'git'/'env' listings). +# +# Further, the 'persist' feature is too strict and will beg +# you for a password every time 'doas' is run from a script`. +# Despite sudo's complexity, I recommened it over doas for +# better control. +# +# I'm working on a better overall solution. + +# Allow wheel to run kiss with password required. +# permit persist :wheel cmd env +# permit persist :wheel cmd git args fetch +# permit persist :wheel cmd git args diff +# permit persist :wheel cmd git args merge + +# Allow wheel to run kiss without a password. +# permit nopass :wheel cmd env +# permit nopass :wheel cmd git args fetch +# permit nopass :wheel cmd git args diff +# permit nopass :wheel cmd git args merge + +permit persist keepenv insult :wheel +permit nopass :wheel cmd kiss +permit nopass :wheel cmd reboot +permit nopass :wheel cmd poweroff +permit nopass :wheel cmd zzz +permit nopass root as armaa cmd slock +permit nopass keepenv root as root + diff --git a/etc/inittab b/etc/inittab new file mode 100644 index 0000000..6fbc6e3 --- /dev/null +++ b/etc/inittab @@ -0,0 +1,11 @@ +::sysinit:/lib/init/rc.boot +::restart:/sbin/init +::shutdown:/lib/init/rc.shutdown +::respawn:runsvdir -P /var/service 'log: ................................................................................................................................................................................................................................................................' + +tty1::respawn:/bin/getty 38400 tty1 +tty2::respawn:/bin/getty 38400 tty2 + +::once:/usr/bin/alsactl restore +::once:/usr/bin/chmod -R 0777 /dev/video0 /dev/video1 /dev/snd/ +# ::shutdown:/bin/umount -a -r diff --git a/etc/profile b/etc/profile new file mode 100644 index 0000000..dd3dfb0 --- /dev/null +++ b/etc/profile @@ -0,0 +1,19 @@ +# /etc/profile +# +# System wide environment and startup programs. + +# Set default path (/usr/sbin:/sbin:/bin included for non-KISS Linux chroots). +export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin + +# Set default umask. +umask 022 + +# Load profiles from /etc/profile.d +for file in /etc/profile.d/*.sh; do + [ -r "$file" ] && . "$file" +done + +unset file + +export ENV="$HOME/.config/ash/ashrc" +export HISTFILE="$HOME/.local/state/ash/history" \ No newline at end of file diff --git a/etc/wpa_supplicant.conf b/etc/wpa_supplicant.conf new file mode 100644 index 0000000..e64112c --- /dev/null +++ b/etc/wpa_supplicant.conf @@ -0,0 +1,6 @@ +network={ + ssid="ADLittle" + psk=3b7abef5d1ba517f841c097652eac27d2f41eae2ae5741a14c85fe1f84584bf9 +} + +ctrl_interface=wlan0 -- 2.39.2