Merge branch 'master' of git.cyberia.club:j3s/dotfiles
j3s j3s@cyberia.club
Wed, 11 Dec 2019 09:50:31 -0600
12 files changed,
301 insertions(+),
1 deletions(-)
M
.config/git/config
→
.config/git/config
@@ -27,6 +27,11 @@ format = * %s [%an]
[user] name = j3s email = j3s@cyberia.club +[sendemail] + smtpserver = mail.c3f.net + smtpuser = j3s + smtpencryption = tls + smtpserverport = 587 [includeIf "gitdir:~/git/"] path = ~/.config/git/config-work [includeIf "gitdir:~/howdocs/"]
A
.config/sway/config
@@ -0,0 +1,222 @@
+# Default config for sway + +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l +# Your preferred terminal emulator +set $term st +# Your preferred application launcher +# Note: it's recommended that you pass the final command to sway +set $menu dmenu_path | dmenu | xargs swaymsg exec -- + +### Output configuration +# +# 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 +# +# You can get the names of your outputs by running: swaymsg -t get_outputs + +### Idle configuration +# +# Example configuration: +# +# exec swayidle -w \ +# timeout 300 'swaylock -f -c 000000' \ +# timeout 600 '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 +# resumed. It will also lock your screen before your computer goes to sleep. + +### Input configuration +input "1133:49979:Logitech_K840_Mechanical_Corded_Keyboard" { + xkb_layout us + xkb_options ctrl:nocaps +} + +input "1452:591:USB_Keychron_K2_USB_DEVICE" { + xkb_layout us + xkb_options ctrl:nocaps +} + +input "1452:597:Keychron_K2" { + xkb_layout us + xkb_options ctrl:nocaps +} +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + +### Key bindings +# +# Basics: +# + # Start a terminal + bindsym $mod+Return exec $term + + # Kill focused window + bindsym $mod+Shift+q kill + + # Start your launcher + bindsym $mod+d exec $menu + + # Drag floating windows by holding down $mod and left mouse button. + # Resize them with right mouse button + $mod. + # Despite the name, also works for non-floating windows. + # Change normal to inverse to use left mouse button for resizing and right + # mouse button for dragging. + floating_modifier $mod normal + + # Reload the configuration file + bindsym $mod+Shift+c reload + + # Exit sway (logs you out of your Wayland session) + bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' +# +# Moving around: +# + # Move your focus around + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up + bindsym $mod+$right focus right + # Or use $mod+[up|down|left|right] + bindsym $mod+Left focus left + bindsym $mod+Down focus down + bindsym $mod+Up focus up + bindsym $mod+Right focus right + + # Move the focused window with the same, but add Shift + bindsym $mod+Shift+$left move left + bindsym $mod+Shift+$down move down + bindsym $mod+Shift+$up move up + bindsym $mod+Shift+$right move right + # Ditto, with arrow keys + bindsym $mod+Shift+Left move left + bindsym $mod+Shift+Down move down + bindsym $mod+Shift+Up move up + bindsym $mod+Shift+Right move right +# +# Workspaces: +# + # Switch to workspace + bindsym $mod+1 workspace 1 + bindsym $mod+2 workspace 2 + bindsym $mod+3 workspace 3 + bindsym $mod+4 workspace 4 + bindsym $mod+5 workspace 5 + bindsym $mod+6 workspace 6 + bindsym $mod+7 workspace 7 + bindsym $mod+8 workspace 8 + bindsym $mod+9 workspace 9 + bindsym $mod+0 workspace 10 + # Move focused container to workspace + bindsym $mod+Shift+1 move container to workspace 1 + bindsym $mod+Shift+2 move container to workspace 2 + bindsym $mod+Shift+3 move container to workspace 3 + bindsym $mod+Shift+4 move container to workspace 4 + bindsym $mod+Shift+5 move container to workspace 5 + bindsym $mod+Shift+6 move container to workspace 6 + bindsym $mod+Shift+7 move container to workspace 7 + bindsym $mod+Shift+8 move container to workspace 8 + bindsym $mod+Shift+9 move container to workspace 9 + bindsym $mod+Shift+0 move container to workspace 10 + # Note: workspaces can have any name you want, not just numbers. + # We just use 1-10 as the default. +# +# Layout stuff: +# + # You can "split" the current object of your focus with + # $mod+b or $mod+v, for horizontal and vertical splits + # respectively. + bindsym $mod+b splith + bindsym $mod+v splitv + + # Switch the current container between different layout styles + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + + # Make the current focus fullscreen + bindsym $mod+f fullscreen + + # Toggle the current focus between tiling and floating mode + bindsym $mod+Shift+space floating toggle + + # Swap focus between the tiling area and the floating area + bindsym $mod+space focus mode_toggle + + # Move focus to the parent container + bindsym $mod+a focus parent +# +# Scratchpad: +# + # Sway has a "scratchpad", which is a bag of holding for windows. + # You can send windows there and get them back later. + + # Move the currently focused window to the scratchpad + bindsym $mod+Shift+minus move scratchpad + + # Show the next scratchpad window or hide the focused scratchpad window. + # If there are multiple scratchpad windows, this command cycles through them. + bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + # Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + 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:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + +include /etc/sway/config.d/*
A
.public.key
@@ -0,0 +1,42 @@
+-----BEGIN PGP PUBL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R +m9SWTDAlFv2iLOsc2B6P0UX5Uq5lj0DcljeZwdU+kjjrlg2Nx5p0JRzgay3eUa0q +FDyGXOlCxHg7WCpCdSOdZngc+1CEaUinCqHExM13+tx9pJ3tlEe72sWAob5LSFNc +vMZvi+LrN2D2MCBtwkh0swK+R6Kr/mqNnYpwVgddYW6h6WNKsYNFxZDcqyMG2HvR +HojzKHEF/zqlHyy2Drrh5eWUK5XTKM4JxWr8TKy0AXXdNEwvee3KX7lTd/xM9syx +pyHfmTKLg0m122NhRhdGbAs7xsdt7Bha +=WhFi +-----END PGP PUBLIC KEY BLOCK-----
A
bin/nostromo/pastesrv
@@ -0,0 +1,4 @@
+#!/bin/sh + +ssh c3f.net "cat > /usr/share/nginx/paste/$1" +echo "https://p.c3f.net/$1"
A
bin/nostromo/scr
@@ -0,0 +1,7 @@
+#!/bin/sh + +if [ "$1" = "" ]; then + grim -g "$(slurp)" "$HOME/pix/ss/$(date +%s).png" +elif [ "$1" = "stdout" ]; then + grim -g "$(slurp)" -t png - +fi
A
bin/nostromo/taste
@@ -0,0 +1,13 @@
+for fgbg in $(seq 38 48) ; do # Foreground / Background + for color in $(seq 238 255) ; do # Colors + # Display the color + printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color + # Display 6 colors per lines + if [ $((($color + 1) % 6)) == 4 ] ; then + echo # New line + fi + done + echo # New line +done + +exit 0