wip
This commit is contained in:
parent
f00131a401
commit
b49b7ed34d
@ -10,8 +10,5 @@ file_has_line "/etc/profile" "export FEAT_BRIGHTNESS=brightnessctl"
|
||||
# power
|
||||
install tlp
|
||||
systemctl enable tlp --now
|
||||
cp_chown custom/laptop-tlp.conf /etc/tlp.conf root:root 644
|
||||
cp_chown custom/_laptop.sh.yrz.am/tlp.conf /etc/tlp.conf root:root 644
|
||||
systemctl restart tlp
|
||||
|
||||
# apps
|
||||
install libreoffice-still
|
||||
|
7
arch-root/_install/greetd.toml
Normal file
7
arch-root/_install/greetd.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[default_session]
|
||||
command = "agreety --cmd .local/bin/init"
|
||||
source_profile = false
|
||||
user = "greeter"
|
@ -6,19 +6,22 @@ PACKAGES=(
|
||||
|
||||
# system
|
||||
linux base linux-firmware lvm2 sudo polkit # base
|
||||
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # system
|
||||
openssh man-db restic htop # admin utils
|
||||
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # system
|
||||
openssh man-db restic htop # admin utils
|
||||
|
||||
# generic runtime
|
||||
nodejs dash
|
||||
|
||||
# cli programs
|
||||
vifm vim # navigation & editors
|
||||
dash shellcheck # shell scripting
|
||||
shellcheck # shell scripting
|
||||
hugo miniserve neomutt translate-shell # www
|
||||
gnupg pass pass-otp # crypt
|
||||
jq libqalculate imagemagick # data processing
|
||||
git zip # others
|
||||
|
||||
# desktop env
|
||||
greetd wlr-randr sway swaybg swayidle xorg-xwayland # basic
|
||||
greetd wlr-randr sway swaybg swayidle # basic
|
||||
foot bemenu-wayland i3blocks mako libnotify # terminals, ui
|
||||
wev wl-clipboard wtype slurp grim # interaction
|
||||
ttf-roboto ttf-roboto-mono ttf-font-awesome # fonts
|
||||
@ -31,6 +34,9 @@ PACKAGES=(
|
||||
# extensions
|
||||
vim-ale vim-fugitive
|
||||
|
||||
# not so good
|
||||
telegram-desktop libreoffice-still
|
||||
|
||||
)
|
||||
|
||||
install() {
|
||||
@ -89,6 +95,8 @@ while read -r entity; do
|
||||
fi
|
||||
done </root/users.conf
|
||||
|
||||
cp_chown greetd.toml /etc/greetd/config.toml root:root 644
|
||||
|
||||
custom_script="./custom/$(cat /etc/hostname).sh"
|
||||
if [ -f "$custom_script" ]; then
|
||||
echo "Executing host-specific $custom_script"
|
||||
|
6
arch-user/bin/init
Executable file
6
arch-user/bin/init
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/profile
|
||||
. ~/.profile
|
||||
|
||||
sway --unsupported-gpu >>~/.local/state/sway/out.log 2>>~/.local/state/sway/err.log
|
@ -14,6 +14,7 @@ else
|
||||
)
|
||||
fi
|
||||
LIST+=(
|
||||
"gui" "telegram-desktop"
|
||||
"gui" "gimp"
|
||||
"gui" "sqlitebrowser"
|
||||
# tui
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
export SESSION_START_COMMAND="sway --unsupported-gpu"
|
||||
export PATH=$PATH:~/.local/bin
|
||||
|
@ -3,6 +3,7 @@
|
||||
set $mod Mod4
|
||||
set $altmod Mod4+Mod5
|
||||
set $altmod2 Mod4+Shift
|
||||
set $kbmod Alt_R
|
||||
set $fwd m
|
||||
set $left n
|
||||
set $up e
|
||||
@ -44,7 +45,7 @@ input "type:keyboard" {
|
||||
xkb_layout us(yz),ru(yz)
|
||||
repeat_rate 50
|
||||
}
|
||||
bindsym --to-code Super_L input "type:keyboard" xkb_switch_layout next; exec pkill -SIGRTMIN+1 i3blocks
|
||||
bindsym --to-code $kbmod input "type:keyboard" xkb_switch_layout next; exec pkill -SIGRTMIN+1 i3blocks
|
||||
input "type:touchpad" {
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
@ -52,81 +53,90 @@ input "type:touchpad" {
|
||||
############################################
|
||||
|
||||
############### workspaces #################
|
||||
bindsym --to-code $mod+a workspace 1:a
|
||||
bindsym --to-code $mod+r workspace 2:r
|
||||
bindsym --to-code $mod+s workspace 3:s
|
||||
bindsym --to-code $mod+t workspace 4:t
|
||||
bindsym --to-code $mod+g workspace 5:g
|
||||
bindsym --to-code $altmod+a move container to workspace 1:a
|
||||
bindsym --to-code $altmod+r move container to workspace 2:r
|
||||
bindsym --to-code $altmod+s move container to workspace 3:s
|
||||
bindsym --to-code $altmod+t move container to workspace 4:t
|
||||
bindsym --to-code $altmod+g move container to workspace 5:g
|
||||
bindsym --to-code {
|
||||
$mod+a workspace 1:a
|
||||
$mod+r workspace 2:r
|
||||
$mod+s workspace 3:s
|
||||
$mod+t workspace 4:t
|
||||
$mod+g workspace 5:g
|
||||
$altmod+a move container to workspace 1:a
|
||||
$altmod+r move container to workspace 2:r
|
||||
$altmod+s move container to workspace 3:s
|
||||
$altmod+t move container to workspace 4:t
|
||||
$altmod+g move container to workspace 5:g
|
||||
}
|
||||
bindgesture swipe:right workspace prev
|
||||
bindgesture swipe:left workspace next
|
||||
############################################
|
||||
|
||||
############### containers #################
|
||||
# top row - layout modes, resize
|
||||
bindsym --to-code $mod+q layout stacking
|
||||
bindsym --to-code $mod+w layout tabbed
|
||||
bindsym --to-code $mod+f fullscreen
|
||||
bindsym --to-code $mod+p layout toggle split
|
||||
bindsym --to-code $mod+l split v
|
||||
bindsym --to-code $mod+u split h
|
||||
bindsym --to-code $mod+y split none
|
||||
bindsym --to-code {
|
||||
$mod+q layout stacking
|
||||
$mod+w layout tabbed
|
||||
$mod+f fullscreen
|
||||
$mod+p layout toggle split
|
||||
$mod+l split v
|
||||
$mod+u split h
|
||||
$mod+y split none
|
||||
}
|
||||
# mid row - focus, movement
|
||||
bindsym --to-code $mod+$fwd focus child
|
||||
bindsym --to-code $mod+$left focus left
|
||||
bindsym --to-code $mod+$up focus up
|
||||
bindsym --to-code $mod+$down focus down
|
||||
bindsym --to-code $mod+$right focus right
|
||||
bindsym --to-code $mod+$bwd focus parent
|
||||
bindsym --to-code $altmod+$left move left 40px
|
||||
bindsym --to-code $altmod+$up move up 40px
|
||||
bindsym --to-code $altmod+$down move down 40px
|
||||
bindsym --to-code $altmod+$right move right 40px
|
||||
bindsym --to-code $altmod2+$left resize shrink width 2ppt or 40px
|
||||
bindsym --to-code $altmod2+$up resize shrink height 4ppt or 40px
|
||||
bindsym --to-code $altmod2+$down resize grow height 4ppt or 40px
|
||||
bindsym --to-code $altmod2+$right resize grow width 2ppt or 40px
|
||||
bindsym --to-code {
|
||||
$mod+$fwd focus child
|
||||
$mod+$left focus left
|
||||
$mod+$up focus up
|
||||
$mod+$down focus down
|
||||
$mod+$right focus right
|
||||
$mod+$bwd focus parent
|
||||
$altmod+$left move left 40px
|
||||
$altmod+$up move up 40px
|
||||
$altmod+$down move down 40px
|
||||
$altmod+$right move right 40px
|
||||
$altmod2+$left resize shrink width 2ppt or 40px
|
||||
$altmod2+$up resize shrink height 4ppt or 40px
|
||||
$altmod2+$down resize grow height 4ppt or 40px
|
||||
$altmod2+$right resize grow width 2ppt or 40px
|
||||
}
|
||||
# bottom row - modeless, extra focus
|
||||
bindsym --to-code {
|
||||
$altmod+x move scratchpad
|
||||
$mod+x scratchpad show
|
||||
$altmod+z floating toggle
|
||||
$mod+z focus mode_toggle
|
||||
$mod+k focus prev sibling
|
||||
$mod+h sticky toggle
|
||||
$mod+Comma opacity minus 0.1
|
||||
$mod+Period opacity plus 0.1
|
||||
$mod+slash focus next sibling
|
||||
}
|
||||
floating_modifier $mod normal
|
||||
bindsym --to-code $altmod+x move scratchpad
|
||||
bindsym --to-code $mod+x scratchpad show
|
||||
bindsym --to-code $altmod+z floating toggle
|
||||
bindsym --to-code $mod+z focus mode_toggle
|
||||
bindsym --to-code $mod+k focus prev sibling
|
||||
bindsym --to-code $mod+h sticky toggle
|
||||
bindsym --to-code $mod+Comma opacity minus 0.1
|
||||
bindsym --to-code $mod+Period opacity plus 0.1
|
||||
bindsym --to-code $mod+slash focus next sibling
|
||||
############################################
|
||||
|
||||
################## actions ####################
|
||||
# copy paste
|
||||
bindsym --to-code $mod+d exec wtype -P XF86Cut
|
||||
bindsym --to-code $mod+c exec wtype -P XF86Copy
|
||||
bindsym --to-code $mod+v exec wtype -P XF86Paste
|
||||
# media
|
||||
bindsym --to-code XF86MonBrightnessDown exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%- && pkill -SIGRTMIN+2 i3blocks
|
||||
bindsym --to-code XF86MonBrightnessUp exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%+ && pkill -SIGRTMIN+2 i3blocks
|
||||
bindsym --to-code XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||
bindsym --to-code XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% && pkill -SIGRTMIN+2 i3blocks
|
||||
bindsym --to-code XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% && pkill -SIGRTMIN+2 i3blocks
|
||||
bindsym --to-code XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||
# basic scripts
|
||||
bindsym --to-code $mod+Escape kill
|
||||
bindsym --to-code $mod+Return exec footclient
|
||||
bindsym --to-code $mod+Space exec run.sh
|
||||
bindsym --to-code {
|
||||
# generic
|
||||
$mod+Escape kill
|
||||
# copy paste
|
||||
$mod+d exec wtype -P XF86Cut
|
||||
$mod+c exec wtype -P XF86Copy
|
||||
$mod+v exec wtype -P XF86Paste
|
||||
# media
|
||||
XF86MonBrightnessDown exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%- && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86MonBrightnessUp exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%+ && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||
# basic scripts
|
||||
$mod+Return exec footclient
|
||||
$mod+Space exec run.sh
|
||||
}
|
||||
##############################################
|
||||
|
||||
################# daemons ####################
|
||||
exec swayidle -w \
|
||||
timeout 280 'notify-send "Suspend in 20s" "Produce some acivity or run inhibit to cancel" -a "swayidle" -t 20000' \
|
||||
timeout 300 'systemctl suspend'
|
||||
exec foot -s
|
||||
exec mako
|
||||
exec ~/.local/bin/mako/init.sh
|
||||
exec swayidle
|
||||
##############################################
|
||||
|
||||
############## app-specific ##################
|
||||
|
2
arch-user/config/swayidle/config
Normal file
2
arch-user/config/swayidle/config
Normal file
@ -0,0 +1,2 @@
|
||||
timeout 280 'notify-send "Suspend in 20s" "Produce some acivity or run inhibit to cancel" -a "idle" -t 20000'
|
||||
timeout 300 'systemctl suspend'
|
@ -10,7 +10,7 @@ export THEME_OPACITY_LOW=0.2
|
||||
export THEME_OPACITY_MID=0.55
|
||||
export THEME_OPACITY_HIGH=0.85
|
||||
export THEME_SIZE_FONT_BASE_PX=16
|
||||
export THEME_SiZE_FONT_SMALL_MULT=0.875
|
||||
export THEME_SIZE_FONT_SMALL_MULT=0.875
|
||||
export THEME_SIZE_FONT_LARGE_MULT=1.1125
|
||||
export THEME_FONT_REGULAR=Roboto
|
||||
export THEME_FONT_MONO="Roboto Mono"
|
||||
|
@ -14,7 +14,7 @@ xkb_symbols "yz" {
|
||||
replace key <LCTL> { [ Super_L ] };
|
||||
replace key <LALT> { [ ISO_Level3_Shift ] };
|
||||
replace key <RCTL> { [ Alt_L ] };
|
||||
|
||||
replace key <LWIN> { [ Alt_R ] };
|
||||
# layer3
|
||||
# TODO: migrate to type=ALPHANUMERIC
|
||||
# This would fix caps lock which i dont use anyway
|
||||
|
@ -10,9 +10,30 @@ umask 002
|
||||
[[ "$(id -u)" == "0" ]] && echo "ERROR: wrong user" >&1 && exit 1
|
||||
|
||||
####### file structure #########
|
||||
mkdir -p \
|
||||
~/.config ~/.local/bin ~/.local/share ~/.cache \
|
||||
~/tmp ~/know ~/dev ~/dl
|
||||
USER_DIRS=(
|
||||
##### xdg #####
|
||||
~/.config
|
||||
~/.local/bin # bkp=weak
|
||||
~/.local/share # bkp=weak
|
||||
~/.local/state
|
||||
~/.cache
|
||||
# app
|
||||
~/.local/state/sway
|
||||
################
|
||||
##### user #####
|
||||
# core knowledge base
|
||||
~/know # bkp=true,roam=true
|
||||
# large blobs for knowledge base
|
||||
~/know-lfs # Large blobs for knowledge base. bkp=weak
|
||||
# temp files with manual bulk cleanup
|
||||
~/tmp
|
||||
# downloads
|
||||
~/dl # bkp=weak
|
||||
# development - external vcs, tons of deps, etc.
|
||||
~/dev # bkp=weak
|
||||
################
|
||||
)
|
||||
mkdir -p "${USER_DIRS[@]}"
|
||||
################################
|
||||
|
||||
########## scripts #############
|
||||
@ -35,6 +56,7 @@ cp -rf config/i3blocks ~/.config
|
||||
cp -rf config/git ~/.config
|
||||
cp -rf config/vim ~/.config
|
||||
cp -rf config/xkb ~/.config
|
||||
cp -rf config/swayidle ~/.config
|
||||
|
||||
# non-xdg
|
||||
cp -rf config/bash ~/.config
|
||||
|
Loading…
Reference in New Issue
Block a user