small pixel drawing of a pufferfish dotfiles

Add mail config, laptop things, new status cmd
j3s j3s@c3f.net
Mon, 23 Dec 2019 17:14:39 -0600
commit

a7a51c30397e6ec41f2badf1950ea0d0c44ca88b

parent

f347ab298a912a86b7cc212443076af01c07a228

3 files changed, 30 insertions(+), 11 deletions(-)

jump to
A .config/aerc/accounts.conf

@@ -0,0 +1,10 @@

+[c3f] +source = imaps://j3s@mail.c3f.net:993 +source-cred-cmd = pass c3f +outgoing = smtp+plain://j3s@mail.c3f.net:587 +outgoing-cred-cmd = pass c3f +default = INBOX +smtp-starttls = yes +from = jes <j3s@c3f.net> +copy-to = Sent +
M .config/sway/config.config/sway/config

@@ -24,24 +24,22 @@ #

# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) output * bg /home/j3s/pix/lainbakka.jpg fill # -# Example configuration: -# -# output DP-1 resolution 3840x2160 position 1920,0 -# + +# clamshell mode +set $laptop eDP-1 +bindswitch --reload lid:on output $laptop disable +bindswitch --reload lid:off output $laptop enable + # You can get the names of your outputs by running: swaymsg -t get_outputs ### Idle configuration -# -# Example configuration: -# exec swayidle -w \ timeout 700 'swaylock -f -c 000000' \ timeout 900 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f -c 000000' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when +# This will lock your screen after 700 seconds of inactivity, then turn off +# your displays after another 900 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. ### Input configuration

@@ -222,7 +220,7 @@ position top

# When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %l:%M %p'; do sleep 1; done + status_command while ~/.config/sway/status; do sleep 1; done colors { statusline #ffffff
A .config/sway/status

@@ -0,0 +1,11 @@

+#!/bin/sh + +date_formatted=$(date "+%a %F %H:%M") + +linux_version=$(uname -r | cut -d '-' -f1) + +battery_status=$(cat /sys/class/power_supply/BAT0/status) + +battery_perc=$(cat /sys/class/power_supply/BAT0/capacity) + +echo "$linux_version | $battery_perc% $battery_status | $date_formatted "