sudo su # assume root
parted /dev/sda -- mklabel gpt
parted /dev/sda -- mkpart primary 512MiB -8GiB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A list specifies the old and new names of a workspace, then the workspace 'old' is renamed to 'new' if | |
# 'new' does not exist, UNLESS swapping 'old' and 'new' satisfies the name requirements. The 3rd list | |
# item specifies the output where the new workspace is to be moved; there may only be two but guessing | |
# which one is hard, it's easier to be explicit. | |
function move_workspace_to_output_helper { # Make new the current workspace. | |
swaymsg "workspace number $1" # Map output letter to output name. Do not insist on the colon being absent or present. | |
case "${2:0:1}" in z) swaymsg "move workspace to HDMI-A-2" ;; x) swaymsg "move workspace to HDMI-A-1" ;; c) swaymsg "move workspace to VGA-1" ;; esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcfg | |
linux-dev /dev/input/by-path/platform-i8042-serio-0-event-kbd | |
process-unmapped-keys yes | |
) | |
;; layers | |
(defalias | |
super (layer-toggle super) | |
alt_nav (layer-toggle alt_nav) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local CONTEXT = 8 | |
-- change line col text | |
-- 4 18 9 change one | |
-- 3 28 21 change two | |
-- 2 39 23 change three | |
-- 1 54 13 another change | |
local function get_text(changelist, current) | |
local width = 0 |