Compare commits
3 Commits
82d39545c7
...
171950fc52
Author | SHA1 | Date | |
---|---|---|---|
171950fc52 | |||
b49b7ed34d | |||
f00131a401 |
@ -10,8 +10,5 @@ file_has_line "/etc/profile" "export FEAT_BRIGHTNESS=brightnessctl"
|
|||||||
# power
|
# power
|
||||||
install tlp
|
install tlp
|
||||||
systemctl enable tlp --now
|
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
|
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
|
# system
|
||||||
linux base linux-firmware lvm2 sudo polkit # base
|
linux base linux-firmware lvm2 sudo polkit # base
|
||||||
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # system
|
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # system
|
||||||
openssh man-db restic htop # admin utils
|
openssh man-db restic htop # admin utils
|
||||||
|
|
||||||
|
# generic runtime
|
||||||
|
nodejs dash
|
||||||
|
|
||||||
# cli programs
|
# cli programs
|
||||||
vifm vim # navigation & editors
|
vifm vim # navigation & editors
|
||||||
dash shellcheck # shell scripting
|
shellcheck # shell scripting
|
||||||
hugo miniserve neomutt translate-shell # www
|
hugo miniserve neomutt translate-shell # www
|
||||||
gnupg pass pass-otp # crypt
|
gnupg pass pass-otp # crypt
|
||||||
jq libqalculate imagemagick # data processing
|
jq libqalculate imagemagick # data processing
|
||||||
git zip # others
|
git zip # others
|
||||||
|
|
||||||
# desktop env
|
# 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
|
foot bemenu-wayland i3blocks mako libnotify # terminals, ui
|
||||||
wev wl-clipboard wtype slurp grim # interaction
|
wev wl-clipboard wtype slurp grim # interaction
|
||||||
ttf-roboto ttf-roboto-mono ttf-font-awesome # fonts
|
ttf-roboto ttf-roboto-mono ttf-font-awesome # fonts
|
||||||
@ -31,6 +34,9 @@ PACKAGES=(
|
|||||||
# extensions
|
# extensions
|
||||||
vim-ale vim-fugitive
|
vim-ale vim-fugitive
|
||||||
|
|
||||||
|
# not so good
|
||||||
|
telegram-desktop libreoffice-still
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
@ -89,6 +95,8 @@ while read -r entity; do
|
|||||||
fi
|
fi
|
||||||
done </root/users.conf
|
done </root/users.conf
|
||||||
|
|
||||||
|
cp_chown greetd.toml /etc/greetd/config.toml root:root 644
|
||||||
|
|
||||||
custom_script="./custom/$(cat /etc/hostname).sh"
|
custom_script="./custom/$(cat /etc/hostname).sh"
|
||||||
if [ -f "$custom_script" ]; then
|
if [ -f "$custom_script" ]; then
|
||||||
echo "Executing host-specific $custom_script"
|
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
|
fi
|
||||||
LIST+=(
|
LIST+=(
|
||||||
|
"gui" "telegram-desktop"
|
||||||
"gui" "gimp"
|
"gui" "gimp"
|
||||||
"gui" "sqlitebrowser"
|
"gui" "sqlitebrowser"
|
||||||
# tui
|
# tui
|
||||||
@ -23,6 +24,7 @@ LIST+=(
|
|||||||
"float_tui" "nmtui"
|
"float_tui" "nmtui"
|
||||||
"float_tui" "bluetoothctl"
|
"float_tui" "bluetoothctl"
|
||||||
"man" "man"
|
"man" "man"
|
||||||
|
"float_tui" "node"
|
||||||
"term" "term"
|
"term" "term"
|
||||||
# native
|
# native
|
||||||
"screen_pick" "screenshot output"
|
"screen_pick" "screenshot output"
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
brig="$(brightnessctl set "$1" -m | sed -e 's/.*,\([0-9]*\)%.*/\1/')"
|
brig="$(brightnessctl set "$1" -m | sed -e 's/.*,\([0-9]*\)%.*/\1/')"
|
||||||
notif_id_file=/dev/shm/workspace-$USER-notify-brig
|
|
||||||
read -r notif_id < "$notif_id_file"
|
|
||||||
notify-send -t 2000 -h "int:value:$brig" -a "brightness" "$brig%" \
|
notify-send -t 2000 -h "int:value:$brig" -a "brightness" "$brig%" \
|
||||||
--replace-id="${notif_id:-99999999}" --print-id > "$notif_id_file"
|
-h string:x-canonical-private-synchronous:brightness
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export SESSION_START_COMMAND=sway
|
|
||||||
export PATH=$PATH:~/.local/bin
|
export PATH=$PATH:~/.local/bin
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $altmod Mod4+Mod5
|
set $altmod Mod4+Mod5
|
||||||
set $altmod2 Mod4+Shift
|
set $altmod2 Mod4+Shift
|
||||||
|
set $kbmod Alt_R
|
||||||
set $fwd m
|
set $fwd m
|
||||||
set $left n
|
set $left n
|
||||||
set $up e
|
set $up e
|
||||||
@ -44,7 +45,7 @@ input "type:keyboard" {
|
|||||||
xkb_layout us(yz),ru(yz)
|
xkb_layout us(yz),ru(yz)
|
||||||
repeat_rate 50
|
repeat_rate 50
|
||||||
}
|
}
|
||||||
bindsym --to-code Shift+ISO_Level3_Shift 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" {
|
input "type:touchpad" {
|
||||||
tap enabled
|
tap enabled
|
||||||
natural_scroll enabled
|
natural_scroll enabled
|
||||||
@ -52,81 +53,90 @@ input "type:touchpad" {
|
|||||||
############################################
|
############################################
|
||||||
|
|
||||||
############### workspaces #################
|
############### workspaces #################
|
||||||
bindsym --to-code $mod+a workspace 1:a
|
bindsym --to-code {
|
||||||
bindsym --to-code $mod+r workspace 2:r
|
$mod+a workspace 1:a
|
||||||
bindsym --to-code $mod+s workspace 3:s
|
$mod+r workspace 2:r
|
||||||
bindsym --to-code $mod+t workspace 4:t
|
$mod+s workspace 3:s
|
||||||
bindsym --to-code $mod+g workspace 5:g
|
$mod+t workspace 4:t
|
||||||
bindsym --to-code $altmod+a move container to workspace 1:a
|
$mod+g workspace 5:g
|
||||||
bindsym --to-code $altmod+r move container to workspace 2:r
|
$altmod+a move container to workspace 1:a
|
||||||
bindsym --to-code $altmod+s move container to workspace 3:s
|
$altmod+r move container to workspace 2:r
|
||||||
bindsym --to-code $altmod+t move container to workspace 4:t
|
$altmod+s move container to workspace 3:s
|
||||||
bindsym --to-code $altmod+g move container to workspace 5:g
|
$altmod+t move container to workspace 4:t
|
||||||
|
$altmod+g move container to workspace 5:g
|
||||||
|
}
|
||||||
bindgesture swipe:right workspace prev
|
bindgesture swipe:right workspace prev
|
||||||
bindgesture swipe:left workspace next
|
bindgesture swipe:left workspace next
|
||||||
############################################
|
############################################
|
||||||
|
|
||||||
############### containers #################
|
############### containers #################
|
||||||
# top row - layout modes, resize
|
# top row - layout modes, resize
|
||||||
bindsym --to-code $mod+q layout stacking
|
bindsym --to-code {
|
||||||
bindsym --to-code $mod+w layout tabbed
|
$mod+q layout stacking
|
||||||
bindsym --to-code $mod+f fullscreen
|
$mod+w layout tabbed
|
||||||
bindsym --to-code $mod+p layout toggle split
|
$mod+f fullscreen
|
||||||
bindsym --to-code $mod+l split v
|
$mod+p layout toggle split
|
||||||
bindsym --to-code $mod+u split h
|
$mod+l split v
|
||||||
bindsym --to-code $mod+y split none
|
$mod+u split h
|
||||||
|
$mod+y split none
|
||||||
|
}
|
||||||
# mid row - focus, movement
|
# mid row - focus, movement
|
||||||
bindsym --to-code $mod+$fwd focus child
|
bindsym --to-code {
|
||||||
bindsym --to-code $mod+$left focus left
|
$mod+$fwd focus child
|
||||||
bindsym --to-code $mod+$up focus up
|
$mod+$left focus left
|
||||||
bindsym --to-code $mod+$down focus down
|
$mod+$up focus up
|
||||||
bindsym --to-code $mod+$right focus right
|
$mod+$down focus down
|
||||||
bindsym --to-code $mod+$bwd focus parent
|
$mod+$right focus right
|
||||||
bindsym --to-code $altmod+$left move left 40px
|
$mod+$bwd focus parent
|
||||||
bindsym --to-code $altmod+$up move up 40px
|
$altmod+$left move left 40px
|
||||||
bindsym --to-code $altmod+$down move down 40px
|
$altmod+$up move up 40px
|
||||||
bindsym --to-code $altmod+$right move right 40px
|
$altmod+$down move down 40px
|
||||||
bindsym --to-code $altmod2+$left resize shrink width 2ppt or 40px
|
$altmod+$right move right 40px
|
||||||
bindsym --to-code $altmod2+$up resize shrink height 4ppt or 40px
|
$altmod2+$left resize shrink width 2ppt or 40px
|
||||||
bindsym --to-code $altmod2+$down resize grow height 4ppt or 40px
|
$altmod2+$up resize shrink height 4ppt or 40px
|
||||||
bindsym --to-code $altmod2+$right resize grow width 2ppt or 40px
|
$altmod2+$down resize grow height 4ppt or 40px
|
||||||
|
$altmod2+$right resize grow width 2ppt or 40px
|
||||||
|
}
|
||||||
# bottom row - modeless, extra focus
|
# 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
|
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 ####################
|
################## actions ####################
|
||||||
# copy paste
|
bindsym --to-code {
|
||||||
bindsym --to-code $mod+d exec wtype -P XF86Cut
|
# generic
|
||||||
bindsym --to-code $mod+c exec wtype -P XF86Copy
|
$mod+Escape kill
|
||||||
bindsym --to-code $mod+v exec wtype -P XF86Paste
|
# copy paste
|
||||||
# media
|
$mod+d exec wtype -P XF86Cut
|
||||||
bindsym --to-code XF86MonBrightnessDown exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%- && pkill -SIGRTMIN+2 i3blocks
|
$mod+c exec wtype -P XF86Copy
|
||||||
bindsym --to-code XF86MonBrightnessUp exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%+ && pkill -SIGRTMIN+2 i3blocks
|
$mod+v exec wtype -P XF86Paste
|
||||||
bindsym --to-code XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle && pkill -SIGRTMIN+2 i3blocks
|
# media
|
||||||
bindsym --to-code XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% && pkill -SIGRTMIN+2 i3blocks
|
XF86MonBrightnessDown exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%-
|
||||||
bindsym --to-code XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% && pkill -SIGRTMIN+2 i3blocks
|
XF86MonBrightnessUp exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%
|
||||||
bindsym --to-code XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+2 i3blocks
|
XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||||
# basic scripts
|
XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% && pkill -SIGRTMIN+2 i3blocks
|
||||||
bindsym --to-code $mod+Escape kill
|
XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% && pkill -SIGRTMIN+2 i3blocks
|
||||||
bindsym --to-code $mod+Return exec footclient
|
XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||||
bindsym --to-code $mod+Space exec run.sh
|
# basic scripts
|
||||||
|
$mod+Return exec footclient
|
||||||
|
$mod+Space exec run.sh
|
||||||
|
}
|
||||||
##############################################
|
##############################################
|
||||||
|
|
||||||
################# daemons ####################
|
################# 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 foot -s
|
||||||
exec mako
|
exec ~/.local/bin/mako/init.sh
|
||||||
|
exec swayidle
|
||||||
##############################################
|
##############################################
|
||||||
|
|
||||||
############## app-specific ##################
|
############## 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_MID=0.55
|
||||||
export THEME_OPACITY_HIGH=0.85
|
export THEME_OPACITY_HIGH=0.85
|
||||||
export THEME_SIZE_FONT_BASE_PX=16
|
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_SIZE_FONT_LARGE_MULT=1.1125
|
||||||
export THEME_FONT_REGULAR=Roboto
|
export THEME_FONT_REGULAR=Roboto
|
||||||
export THEME_FONT_MONO="Roboto Mono"
|
export THEME_FONT_MONO="Roboto Mono"
|
||||||
|
@ -14,7 +14,7 @@ xkb_symbols "yz" {
|
|||||||
replace key <LCTL> { [ Super_L ] };
|
replace key <LCTL> { [ Super_L ] };
|
||||||
replace key <LALT> { [ ISO_Level3_Shift ] };
|
replace key <LALT> { [ ISO_Level3_Shift ] };
|
||||||
replace key <RCTL> { [ Alt_L ] };
|
replace key <RCTL> { [ Alt_L ] };
|
||||||
|
replace key <LWIN> { [ Alt_R ] };
|
||||||
# layer3
|
# layer3
|
||||||
# TODO: migrate to type=ALPHANUMERIC
|
# TODO: migrate to type=ALPHANUMERIC
|
||||||
# This would fix caps lock which i dont use anyway
|
# 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
|
[[ "$(id -u)" == "0" ]] && echo "ERROR: wrong user" >&1 && exit 1
|
||||||
|
|
||||||
####### file structure #########
|
####### file structure #########
|
||||||
mkdir -p \
|
USER_DIRS=(
|
||||||
~/.config ~/.local/bin ~/.local/share ~/.cache \
|
##### xdg #####
|
||||||
~/tmp ~/know ~/dev ~/dl
|
~/.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 #############
|
########## scripts #############
|
||||||
@ -35,6 +56,7 @@ cp -rf config/i3blocks ~/.config
|
|||||||
cp -rf config/git ~/.config
|
cp -rf config/git ~/.config
|
||||||
cp -rf config/vim ~/.config
|
cp -rf config/vim ~/.config
|
||||||
cp -rf config/xkb ~/.config
|
cp -rf config/xkb ~/.config
|
||||||
|
cp -rf config/swayidle ~/.config
|
||||||
|
|
||||||
# non-xdg
|
# non-xdg
|
||||||
cp -rf config/bash ~/.config
|
cp -rf config/bash ~/.config
|
||||||
@ -58,4 +80,6 @@ sed '/^#/d' config/bemenu/config.sh >> ~/.profile
|
|||||||
cp_subst data/qutebrowser/start.html.tmpl ~/.local/share/qutebrowser/start.html
|
cp_subst data/qutebrowser/start.html.tmpl ~/.local/share/qutebrowser/start.html
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
swaymsg reload
|
swaymsg reload || true
|
||||||
|
|
||||||
|
echo ok
|
||||||
|
Loading…
Reference in New Issue
Block a user