Compare commits
31 Commits
0cff64e473
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 075406dfd5 | |||
| 4d4816c775 | |||
| 037a9bf75c | |||
| 76b6aa95c6 | |||
| 031a79f163 | |||
| de54e28460 | |||
| 556724c5b4 | |||
| 3337df5150 | |||
| fa4b94ee34 | |||
| 0bef633b6b | |||
| cb6624f417 | |||
| 9f7779d659 | |||
| 41a983fb9f | |||
| 1be6624a5d | |||
| bb9df4eb14 | |||
| 7138a0da41 | |||
| ac02b92b12 | |||
| 26c21e0eb5 | |||
| 100fb11e94 | |||
| 5b1e1f92ba | |||
| c9399ce79c | |||
| 1e3b32e415 | |||
| 1db83dfde5 | |||
| 5690771db8 | |||
| 84367ee7ae | |||
| 6cb2f36f65 | |||
| e6033c5f3c | |||
| db284281b7 | |||
| 763156b093 | |||
| 92b9393d03 | |||
| 04d8df3111 |
@@ -5,15 +5,15 @@ lines=8
|
|||||||
inner-pad=8
|
inner-pad=8
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background=#000000ff
|
background=#00000033
|
||||||
text=#888888ff
|
text=#888888FF
|
||||||
selection=#777777ff
|
selection=#BBBBFFFF
|
||||||
selection-text=#000000ff
|
selection-text=#000000FF
|
||||||
border=#777777ff
|
border=#BBBBFFFF
|
||||||
match=#ffffffff
|
match=#FFFFFFFF
|
||||||
selection-match=#ffffffff
|
selection-match=#FF44FFFF
|
||||||
|
|
||||||
[border]
|
[border]
|
||||||
width=2
|
width=3
|
||||||
radius=0
|
radius=6
|
||||||
selection-radius=0
|
selection-radius=6
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
theme = "LiquidCarbonTransparent"
|
theme = "LiquidCarbonTransparent"
|
||||||
|
|
||||||
background-blur = 255
|
background-blur = 0
|
||||||
background-opacity = 0.98
|
background-opacity = 0.7
|
||||||
|
|
||||||
window-height = 40
|
window-height = 40
|
||||||
window-width = 140
|
window-width = 140
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Configuration file for GRUB.
|
||||||
|
#
|
||||||
|
GRUB_DEFAULT=0
|
||||||
|
#GRUB_HIDDEN_TIMEOUT=0
|
||||||
|
#GRUB_HIDDEN_TIMEOUT_QUIET=false
|
||||||
|
GRUB_TIMEOUT=5
|
||||||
|
GRUB_DISTRIBUTOR="Void"
|
||||||
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 apparmor=1 security=apparmor slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on randomize_kstack_offset=on vsyscall=on debugfs=off ipv6.disable=1 random.trust_cpu=off"
|
||||||
|
# Uncomment to use basic console
|
||||||
|
#GRUB_TERMINAL_INPUT="console"
|
||||||
|
# Uncomment to disable graphical terminal
|
||||||
|
#GRUB_TERMINAL_OUTPUT=console
|
||||||
|
#GRUB_BACKGROUND=/usr/share/void-artwork/splash.png
|
||||||
|
#GRUB_GFXMODE=1920x1080x32
|
||||||
|
#GRUB_DISABLE_LINUX_UUID=true
|
||||||
|
#GRUB_DISABLE_RECOVERY=true
|
||||||
|
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
|
||||||
|
# modes only. Entries specified as foreground/background.
|
||||||
|
#GRUB_COLOR_NORMAL="light-blue/black"
|
||||||
|
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e /etc/default/grub ]; then
|
||||||
|
sudo rm /etc/default/grub
|
||||||
|
fi
|
||||||
|
|
||||||
|
install_dotfiles "/" "$DOTFILES_DIR" "grub"
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e /etc/iwd/main.conf ]; then
|
||||||
|
sudo rm /etc/iwd/main.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
install_dotfiles "/" "$DOTFILES_DIR" "iwd"
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e /var/lib/dbus/machine-id ]; then
|
||||||
|
sudo rm /var/lib/dbus/machine-id
|
||||||
|
fi
|
||||||
|
|
||||||
|
install_dotfiles "/" "$DOTFILES_DIR" "machine-id"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_dotfiles "$HOME" "$DOTFILES_DIR" "mango"
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_dotfiles "$HOME" "$DOTFILES_DIR" "river"
|
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_dotfiles "$HOME" "$DOTFILES_DIR" "tmux"
|
||||||
+5
-1
@@ -6,10 +6,14 @@ INSTALLING DOTFILES:
|
|||||||
|
|
||||||
. "$DOTFILES_DIR/install-emptty.sh"
|
. "$DOTFILES_DIR/install-emptty.sh"
|
||||||
. "$DOTFILES_DIR/install-fuzzel.sh"
|
. "$DOTFILES_DIR/install-fuzzel.sh"
|
||||||
|
. "$DOTFILES_DIR/install-grub.sh"
|
||||||
. "$DOTFILES_DIR/install-ghostty.sh"
|
. "$DOTFILES_DIR/install-ghostty.sh"
|
||||||
. "$DOTFILES_DIR/install-helix.sh"
|
. "$DOTFILES_DIR/install-helix.sh"
|
||||||
|
. "$DOTFILES_DIR/install-iwd.sh"
|
||||||
|
. "$DOTFILES_DIR/install-machine-id.sh"
|
||||||
. "$DOTFILES_DIR/install-mako.sh"
|
. "$DOTFILES_DIR/install-mako.sh"
|
||||||
. "$DOTFILES_DIR/install-river.sh"
|
. "$DOTFILES_DIR/install-mango.sh"
|
||||||
. "$DOTFILES_DIR/install-scooter.sh"
|
. "$DOTFILES_DIR/install-scooter.sh"
|
||||||
|
. "$DOTFILES_DIR/install-tmux.sh"
|
||||||
. "$DOTFILES_DIR/install-yazi.sh"
|
. "$DOTFILES_DIR/install-yazi.sh"
|
||||||
. "$DOTFILES_DIR/install-zsh.sh"
|
. "$DOTFILES_DIR/install-zsh.sh"
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
[General]
|
||||||
|
EnableNetworkConfiguration=true
|
||||||
|
UseDefaultInterface=true
|
||||||
|
AddressRandomization=network
|
||||||
|
AddressRandomizationRange=full
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
NameResolvingService=resolvconf
|
||||||
|
EnableIPv6=false
|
||||||
|
|
||||||
|
[Scan]
|
||||||
|
DisablePeriodicScan=true
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
b08dfa6083e7567a1921a715000001fb
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
output=*
|
output=*
|
||||||
anchor=top-right
|
anchor=top-right
|
||||||
width=300
|
width=400
|
||||||
height=100
|
height=120
|
||||||
|
|
||||||
margin=10
|
margin=10
|
||||||
padding=10
|
padding=10
|
||||||
|
|
||||||
border-size=1
|
border-size=3
|
||||||
border-color=#ffffff80
|
border-radius=6
|
||||||
background-color=#000000ff
|
border-color=#BBBBFFFF
|
||||||
text-color=#aaaaaaff
|
background-color=#44443311
|
||||||
|
text-color=#BBBBFFFF
|
||||||
|
|
||||||
default-timeout=5000
|
default-timeout=5000
|
||||||
max-visible=5
|
max-visible=5
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#enabling-animations
|
||||||
|
|
||||||
|
animations=1
|
||||||
|
layer_animations=1
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#custom-bezier-curves
|
||||||
|
|
||||||
|
# Open animation bezier curve
|
||||||
|
animation_curve_open=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
# Move animation bezier curve
|
||||||
|
animation_curve_move=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
# Tag animation bezier curve
|
||||||
|
animation_curve_tag=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
# Close animation bezier curve
|
||||||
|
animation_curve_close=0.08,0.92,0,1
|
||||||
|
|
||||||
|
# Focus change (opacity transition) animation bezier curve
|
||||||
|
animation_curve_focus=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
# Close opacity animation bezier curve
|
||||||
|
animation_curve_opafadein=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
# Open opacity animation bezier curve
|
||||||
|
animation_curve_opafadeout=0.5,0.5,0.5,0.5
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#durations
|
||||||
|
|
||||||
|
# Move animation duration (ms)
|
||||||
|
animation_duration_move=300
|
||||||
|
|
||||||
|
# Open animation duration (ms)
|
||||||
|
animation_duration_open=200
|
||||||
|
|
||||||
|
# Tag animation duration (ms)
|
||||||
|
animation_duration_tag=200
|
||||||
|
|
||||||
|
# Close animation duration (ms)
|
||||||
|
animation_duration_close=200
|
||||||
|
|
||||||
|
# Focus change (opacity transition) animation duration (ms)
|
||||||
|
animation_duration_focus=0
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#fade-settings
|
||||||
|
|
||||||
|
# Enable fade-in effect (0: disable, 1: enable)
|
||||||
|
animation_fade_in=1
|
||||||
|
|
||||||
|
# Enable fade-out effect (0: disable, 1: enable)
|
||||||
|
animation_fade_out=1
|
||||||
|
|
||||||
|
# Starting opacity for fade-in animations (0.0–1.0)
|
||||||
|
fadein_begin_opacity=0.5
|
||||||
|
|
||||||
|
# Starting opacity for fade-out animations (0.0–1.0)
|
||||||
|
fadeout_begin_opacity=0.5
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#tag-animation-direction
|
||||||
|
|
||||||
|
# Tag animation direction (1: horizontal, 0: vertical)
|
||||||
|
tag_animation_direction=1
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#animation-types
|
||||||
|
|
||||||
|
animation_type_open=slide
|
||||||
|
animation_type_close=slide
|
||||||
|
layer_animation_type_open=slide
|
||||||
|
layer_animation_type_close=slide
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/animations#zoom-settings
|
||||||
|
|
||||||
|
zoom_initial_ratio=0.4
|
||||||
|
zoom_end_ratio=0.8
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# https://mangowm.github.io/docs/bindings/mouse-gestures#axis-bindings
|
||||||
|
|
||||||
|
axisbind=SUPER,UP,viewtoleft_have_client
|
||||||
|
axisbind=SUPER,DOWN,viewtoright_have_client
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# https://mangowm.github.io/docs/bindings/mouse-gestures#gesture-bindings
|
||||||
|
|
||||||
|
# 3-finger: Window focus
|
||||||
|
gesturebind=none,left,3,focusdir,left
|
||||||
|
gesturebind=none,right,3,focusdir,right
|
||||||
|
gesturebind=none,up,3,focusdir,up
|
||||||
|
gesturebind=none,down,3,focusdir,down
|
||||||
|
|
||||||
|
# 4-finger: Workspace navigation
|
||||||
|
gesturebind=none,left,4,viewtoright_have_client
|
||||||
|
gesturebind=none,right,4,viewtoleft_have_client
|
||||||
|
gesturebind=none,up,4,toggleoverview
|
||||||
|
gesturebind=none,down,4,toggleoverview
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
# https://mangowm.github.io/docs/bindings/keys
|
||||||
|
|
||||||
|
# key name refer to `xev` or `wev` command output,
|
||||||
|
# mod keys name: super,ctrl,alt,shift,none
|
||||||
|
|
||||||
|
# reload config
|
||||||
|
bind=ALT+SHIFT,r,reload_config
|
||||||
|
|
||||||
|
# menu and terminal
|
||||||
|
bind=Alt,space,spawn,fuzzel
|
||||||
|
bind=Alt,Return,spawn,ghostty
|
||||||
|
|
||||||
|
# screenshot
|
||||||
|
bind=NONE,Print,spawn,$HOME/.config/mango/scripts/screenshot/fullscreen.sh
|
||||||
|
bind=NONE,XF86SelectiveScreenshot,spawn,$HOME/.config/mango/scripts/screenshot/region.sh
|
||||||
|
|
||||||
|
# exit
|
||||||
|
bind=SUPER,m,quit
|
||||||
|
bind=ALT,q,killclient,
|
||||||
|
|
||||||
|
# volume
|
||||||
|
bind=NONE,XF86AudioRaiseVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
|
bind=NONE,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
|
bind=NONE,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
|
||||||
|
bind=SUPER,a,spawn,$HOME/.config/mango/scripts/tui/wiremix.sh
|
||||||
|
bind=SUPER,w,spawn,$HOME/.config/mango/scripts/tui/impala.sh
|
||||||
|
bind=SUPER,b,spawn,$HOME/.config/mango/scripts/tui/btop.sh
|
||||||
|
|
||||||
|
# brightness
|
||||||
|
bind=NONE,XF86MonBrightnessUp,spawn,light -A 5
|
||||||
|
bind=NONE,XF86MonBrightnessDown,spawn,light -U 5
|
||||||
|
|
||||||
|
# switch window focus
|
||||||
|
bind=SUPER,Tab,focusstack,next
|
||||||
|
bind=ALT,Left,focusdir,left
|
||||||
|
bind=ALT,Right,focusdir,right
|
||||||
|
bind=ALT,Up,focusdir,up
|
||||||
|
bind=ALT,Down,focusdir,down
|
||||||
|
|
||||||
|
# swap window
|
||||||
|
bind=SUPER+SHIFT,Up,exchange_client,up
|
||||||
|
bind=SUPER+SHIFT,Down,exchange_client,down
|
||||||
|
bind=SUPER+SHIFT,Left,exchange_client,left
|
||||||
|
bind=SUPER+SHIFT,Right,exchange_client,right
|
||||||
|
|
||||||
|
# switch window status
|
||||||
|
bind=SUPER,g,toggleglobal,
|
||||||
|
bind=ALT,Tab,toggleoverview,
|
||||||
|
bind=ALT,backslash,togglefloating,
|
||||||
|
bind=ALT,a,togglemaximizescreen,
|
||||||
|
bind=ALT,f,togglefullscreen,
|
||||||
|
bind=ALT+SHIFT,f,togglefakefullscreen,
|
||||||
|
bind=SUPER,i,minimized,
|
||||||
|
bind=SUPER,o,toggleoverlay,
|
||||||
|
bind=SUPER+SHIFT,I,restore_minimized
|
||||||
|
bind=ALT,z,toggle_scratchpad
|
||||||
|
|
||||||
|
# scroller layout
|
||||||
|
bind=ALT,e,set_proportion,1.0
|
||||||
|
bind=ALT,x,switch_proportion_preset,
|
||||||
|
bind=alt+super+ctrl,Left,scroller_stack,left
|
||||||
|
bind=alt+super+ctrl,Right,scroller_stack,right
|
||||||
|
bind=alt+super+ctrl,Up,scroller_stack,up
|
||||||
|
bind=alt+super+ctrl,Down,scroller_stack,down
|
||||||
|
|
||||||
|
#dwindle layout(manual split mode)
|
||||||
|
bind=alt+shift,Return,dwindle_toggle_split_direction
|
||||||
|
|
||||||
|
# switch layout
|
||||||
|
bind=SUPER,n,switch_layout
|
||||||
|
|
||||||
|
# tag switch
|
||||||
|
bind=SUPER,Left,viewtoleft,0
|
||||||
|
bind=CTRL,Left,viewtoleft_have_client,0
|
||||||
|
bind=SUPER,Right,viewtoright,0
|
||||||
|
bind=CTRL,Right,viewtoright_have_client,0
|
||||||
|
bind=CTRL+SUPER,Left,tagtoleft,0
|
||||||
|
bind=CTRL+SUPER,Right,tagtoright,0
|
||||||
|
|
||||||
|
bind=Ctrl,1,view,1,0
|
||||||
|
bind=Ctrl,2,view,2,0
|
||||||
|
bind=Ctrl,3,view,3,0
|
||||||
|
bind=Ctrl,4,view,4,0
|
||||||
|
bind=Ctrl,5,view,5,0
|
||||||
|
bind=Ctrl,6,view,6,0
|
||||||
|
bind=Ctrl,7,view,7,0
|
||||||
|
bind=Ctrl,8,view,8,0
|
||||||
|
bind=Ctrl,9,view,9,0
|
||||||
|
|
||||||
|
# tag: move client to the tag and focus it
|
||||||
|
# tagsilent: move client to the tag and not focus it
|
||||||
|
# bind=Alt,1,tagsilent,1
|
||||||
|
bind=Alt,1,tag,1,0
|
||||||
|
bind=Alt,2,tag,2,0
|
||||||
|
bind=Alt,3,tag,3,0
|
||||||
|
bind=Alt,4,tag,4,0
|
||||||
|
bind=Alt,5,tag,5,0
|
||||||
|
bind=Alt,6,tag,6,0
|
||||||
|
bind=Alt,7,tag,7,0
|
||||||
|
bind=Alt,8,tag,8,0
|
||||||
|
bind=Alt,9,tag,9,0
|
||||||
|
|
||||||
|
# monitor switch
|
||||||
|
bind=alt+shift,Left,focusmon,left
|
||||||
|
bind=alt+shift,Right,focusmon,right
|
||||||
|
bind=SUPER+Alt,Left,tagmon,left
|
||||||
|
bind=SUPER+Alt,Right,tagmon,right
|
||||||
|
|
||||||
|
# gaps
|
||||||
|
bind=ALT+SHIFT,X,incgaps,1
|
||||||
|
bind=ALT+SHIFT,Z,incgaps,-1
|
||||||
|
bind=ALT+SHIFT,R,togglegaps
|
||||||
|
|
||||||
|
# movewin
|
||||||
|
bind=CTRL+SHIFT,Up,movewin,+0,-50
|
||||||
|
bind=CTRL+SHIFT,Down,movewin,+0,+50
|
||||||
|
bind=CTRL+SHIFT,Left,movewin,-50,+0
|
||||||
|
bind=CTRL+SHIFT,Right,movewin,+50,+0
|
||||||
|
|
||||||
|
# resizewin
|
||||||
|
bind=CTRL+ALT,Up,resizewin,+0,-50
|
||||||
|
bind=CTRL+ALT,Down,resizewin,+0,+50
|
||||||
|
bind=CTRL+ALT,Left,resizewin,-50,+0
|
||||||
|
bind=CTRL+ALT,Right,resizewin,+50,+0
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# https://mangowm.github.io/docs/bindings/mouse-gestures#mouse-bindings
|
||||||
|
|
||||||
|
mousebind=SUPER,btn_left,moveresize,curmove
|
||||||
|
mousebind=NONE,btn_middle,togglemaximizescreen,0
|
||||||
|
mousebind=SUPER,btn_right,moveresize,curresize
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# https://mangowm.github.io/docs/bindings/mouse-gestures#switch-bindings
|
||||||
|
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
# https://mangowm.github.io/docs/
|
||||||
|
|
||||||
|
exec-once=~/.config/mango/scripts/exec-once.sh
|
||||||
|
exec=~/.config/mango/scripts/exec.sh
|
||||||
|
|
||||||
|
source=./input/keyboard.conf
|
||||||
|
source=./input/mouse.conf
|
||||||
|
source=./input/trackpad.conf
|
||||||
|
|
||||||
|
source=./bindings/keyboard.conf
|
||||||
|
source=./bindings/mouse.conf
|
||||||
|
source=./bindings/gesture.conf
|
||||||
|
source=./bindings/axis.conf
|
||||||
|
source=./bindings/switch.conf
|
||||||
|
|
||||||
|
source=./layouts/dwindle.conf
|
||||||
|
source=./layouts/master-stack.conf
|
||||||
|
source=./layouts/scroller.conf
|
||||||
|
|
||||||
|
source=./monitors.conf
|
||||||
|
|
||||||
|
source=./look/blur.conf
|
||||||
|
source=./look/colors.conf
|
||||||
|
source=./look/corners.conf
|
||||||
|
source=./look/cursor.conf
|
||||||
|
source=./look/dimensions.conf
|
||||||
|
source=./look/opacity.conf
|
||||||
|
source=./look/shadows.conf
|
||||||
|
|
||||||
|
source=./animation/animation.conf
|
||||||
|
source=./animation/curves.conf
|
||||||
|
source=./animation/durations.conf
|
||||||
|
source=./animation/fade.conf
|
||||||
|
source=./animation/tag.conf
|
||||||
|
source=./animation/types.conf
|
||||||
|
source=./animation/zoom.conf
|
||||||
|
|
||||||
|
source=./rules/layer.conf
|
||||||
|
source=./rules/tag.conf
|
||||||
|
source=./rules/window.conf
|
||||||
|
|
||||||
|
source=./overview.conf
|
||||||
|
|
||||||
|
source=./misc/focus.conf
|
||||||
|
source=./misc/input.conf
|
||||||
|
source=./misc/multi-monitor.conf
|
||||||
|
source=./misc/system.conf
|
||||||
|
source=./misc/tags.conf
|
||||||
|
source=./misc/window.conf
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# How many times a key repeats per second.
|
||||||
|
repeat_rate=25
|
||||||
|
|
||||||
|
# Delay (ms) before a held key starts repeating.
|
||||||
|
repeat_delay=180
|
||||||
|
|
||||||
|
# Enable NumLock on startup.
|
||||||
|
numlockon=0
|
||||||
|
|
||||||
|
# XKB rules file (e.g., evdev, base). Usually auto-detected.
|
||||||
|
# xkb_rules_rules
|
||||||
|
|
||||||
|
# Keyboard model (e.g., pc104, macbook).
|
||||||
|
# xkb_rules_model
|
||||||
|
|
||||||
|
# Keyboard layout code (e.g., us, de, us,de).
|
||||||
|
xkb_rules_layout=us
|
||||||
|
|
||||||
|
# Layout variant (e.g., dvorak, colemak, intl).
|
||||||
|
# xkb_rules_variant
|
||||||
|
|
||||||
|
# XKB options (e.g., caps:escape, ctrl:nocaps).
|
||||||
|
xkb_rules_options=ctrl:nocaps
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Invert scrolling direction.
|
||||||
|
mouse_natural_scrolling=0
|
||||||
|
|
||||||
|
# 0 — No acceleration.
|
||||||
|
# 1 — Flat: no dynamic acceleration. Pointer speed = original input speed × (1 + mouse_accel_speed).
|
||||||
|
# 2 — Adaptive: slow movement results in less acceleration, fast movement results in more.
|
||||||
|
mouse_accel_profile=0
|
||||||
|
|
||||||
|
# Speed adjustment (-1.0 to 1.0).
|
||||||
|
mouse_accel_speed=0.0
|
||||||
|
|
||||||
|
# Swap left and right buttons.
|
||||||
|
left_handed=0
|
||||||
|
|
||||||
|
# Scroll factor for axis scroll speed (0.1–10.0).
|
||||||
|
axis_scroll_factor=1.0
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
# Set to 1 to disable the trackpad entirely.
|
||||||
|
disable_trackpad=0
|
||||||
|
|
||||||
|
# Tap to trigger a left click.
|
||||||
|
tap_to_click=1
|
||||||
|
|
||||||
|
# Tap and hold to drag items.
|
||||||
|
tap_and_drag=1
|
||||||
|
|
||||||
|
# Invert scrolling direction (natural scrolling).
|
||||||
|
trackpad_natural_scrolling=1
|
||||||
|
|
||||||
|
# 0 — No acceleration.
|
||||||
|
# 1 — Flat: no dynamic acceleration. Pointer speed = original input speed × (1 + mouse_accel_speed).
|
||||||
|
# 2 — Adaptive: slow movement results in less acceleration, fast movement results in more.
|
||||||
|
trackpad_accel_profile=2
|
||||||
|
|
||||||
|
# Speed adjustment (-1.0 to 1.0).
|
||||||
|
trackpad_accel_speed=0.0
|
||||||
|
|
||||||
|
# The mouse button that use for scrolling(272 to 279):
|
||||||
|
# 272 — Left button.
|
||||||
|
# 273 — Right button.
|
||||||
|
# 274 — Middle button.
|
||||||
|
# 275 — Side button.
|
||||||
|
# 276 — Extra button.
|
||||||
|
# 277 — Forward button.
|
||||||
|
# 278 — Back button.
|
||||||
|
# 279 — Task button.
|
||||||
|
scroll_button=274
|
||||||
|
|
||||||
|
# 0 — Never send scroll events (no scrolling).
|
||||||
|
# 1 — Two-finger scrolling: send scroll events when two fingers are logically down on the device.
|
||||||
|
# 2 — Edge scrolling: send scroll events when a finger moves along the bottom or right edge.
|
||||||
|
# 4 — Button scrolling: send scroll events when a button is held and the device moves along a scroll axis.
|
||||||
|
scroll_method=1
|
||||||
|
|
||||||
|
# 0 — No software click emulation.
|
||||||
|
# 1 — Button areas: use software-defined areas on the touchpad to generate button events.
|
||||||
|
# 2 — Clickfinger: the number of fingers determines which button is pressed.
|
||||||
|
click_method=1
|
||||||
|
|
||||||
|
# 0 — Send events from this device normally.
|
||||||
|
# 1 — Do not send events from this device.
|
||||||
|
# 2 — Disable this device when an external pointer device is plugged in.
|
||||||
|
send_events_mode=0
|
||||||
|
|
||||||
|
# Lock dragging after tapping.
|
||||||
|
drag_lock=1
|
||||||
|
|
||||||
|
# Disable trackpad while typing.
|
||||||
|
disable_while_typing=0
|
||||||
|
|
||||||
|
# Swap left/right buttons.
|
||||||
|
left_handed=0
|
||||||
|
|
||||||
|
# Emulate middle button.
|
||||||
|
middle_button_emulation=0
|
||||||
|
|
||||||
|
# Minimum swipe threshold when use gesture.
|
||||||
|
swipe_min_threshold=1
|
||||||
|
|
||||||
|
# 0 — 1/2/3 finger tap maps to left / right / middle.
|
||||||
|
# 1 — 1/2/3 finger tap maps to left / middle / right.
|
||||||
|
button_map=0
|
||||||
|
|
||||||
|
# Scroll factor for trackpad scroll speed (0.1–10.0).
|
||||||
|
trackpad_scroll_factor=1.0
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/layouts#dwindle-layout
|
||||||
|
|
||||||
|
# Ratio used for new splits (0.05–0.95).
|
||||||
|
dwindle_split_ratio=0.5
|
||||||
|
|
||||||
|
# Pick the split axis from the cursor's position inside the focused window. The new window appears on the cursor's side.
|
||||||
|
dwindle_smart_split=0
|
||||||
|
|
||||||
|
# Side-by-side splits: where the new window goes. 0 = follow cursor, 1 = right, 2 = left.
|
||||||
|
dwindle_hsplit=1
|
||||||
|
|
||||||
|
# Top/bottom splits: where the new window goes. 0 = follow cursor, 1 = below, 2 = above.
|
||||||
|
dwindle_vsplit=1
|
||||||
|
|
||||||
|
# Keep the sibling's split orientation when a window is closed.
|
||||||
|
dwindle_preserve_split=0
|
||||||
|
|
||||||
|
# When dragging to resize, move the split toward the cursor regardless of which side was grabbed.
|
||||||
|
dwindle_smart_resize=0
|
||||||
|
|
||||||
|
# Drag-to-tile drop preview.
|
||||||
|
# 1 = 2-zone preview matching dwindle_split_ratio,
|
||||||
|
# 0 = 4-quadrant preview.
|
||||||
|
dwindle_drop_simple_split=1
|
||||||
|
|
||||||
|
# Manually split windows mode.
|
||||||
|
dwindle_manual_split=0
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/layouts#master-stack-layouts
|
||||||
|
|
||||||
|
# New windows become the master window.
|
||||||
|
new_is_master=1
|
||||||
|
|
||||||
|
# The split ratio between master and stack areas.
|
||||||
|
default_mfact=0.55
|
||||||
|
|
||||||
|
# Number of allowed master windows.
|
||||||
|
default_nmaster=1
|
||||||
|
|
||||||
|
# Disable gaps when only one window is present.
|
||||||
|
smartgaps=0
|
||||||
|
|
||||||
|
# (Center Tile) Master spreads across screen if no stack exists.
|
||||||
|
center_master_overspread=0
|
||||||
|
|
||||||
|
# (Center Tile) Center master when only one stack window exists.
|
||||||
|
center_when_single_stack=1
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/layouts#scroller-layout
|
||||||
|
|
||||||
|
# Width reserved on sides when window ratio is 1.
|
||||||
|
scroller_structs=20
|
||||||
|
|
||||||
|
# Default width proportion for new windows.
|
||||||
|
scroller_default_proportion=0.8
|
||||||
|
|
||||||
|
# Always center the focused window (1 = enable).
|
||||||
|
scroller_focus_center=0
|
||||||
|
|
||||||
|
# Center focused window only if it was outside the view.
|
||||||
|
scroller_prefer_center=0
|
||||||
|
|
||||||
|
# Allow windows to overspread when there's extra space.
|
||||||
|
scroller_prefer_overspread=1
|
||||||
|
|
||||||
|
# Focus windows even if partially off-screen.
|
||||||
|
edge_scroller_pointer_focus=1
|
||||||
|
|
||||||
|
# Presets for cycling window widths.
|
||||||
|
scroller_proportion_preset=0.5,0.8,1.0
|
||||||
|
|
||||||
|
# Ignore proportion adjustments for single windows.
|
||||||
|
scroller_ignore_proportion_single=1
|
||||||
|
|
||||||
|
# Default proportion for single windows in scroller. Requires scroller_ignore_proportion_single=0 to take effect.
|
||||||
|
scroller_default_proportion_single=1.0
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/effects#blur
|
||||||
|
|
||||||
|
# Enable blur for windows.
|
||||||
|
blur=1
|
||||||
|
|
||||||
|
# Enable blur for layer surfaces (like bars/docks).
|
||||||
|
blur_layer=1
|
||||||
|
|
||||||
|
# Caches the wallpaper and blur background, significantly reducing GPU usage.
|
||||||
|
# Disabling it will significantly increase GPU consumption and may cause rendering lag.
|
||||||
|
# Highly recommended.
|
||||||
|
blur_optimized=0
|
||||||
|
|
||||||
|
# The strength (radius) of the blur.
|
||||||
|
blur_params_radius=10
|
||||||
|
|
||||||
|
# Number of passes. Higher = smoother but more expensive.
|
||||||
|
blur_params_num_passes=3
|
||||||
|
|
||||||
|
# Blur noise level.
|
||||||
|
blur_params_noise=0.02
|
||||||
|
|
||||||
|
# Blur brightness adjustment.
|
||||||
|
blur_params_brightness=0.9
|
||||||
|
|
||||||
|
# Blur contrast adjustment.
|
||||||
|
blur_params_contrast=0.9
|
||||||
|
|
||||||
|
# Blur saturation adjustment.
|
||||||
|
blur_params_saturation=1.2
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/theming#colors
|
||||||
|
|
||||||
|
# Background color of the root window
|
||||||
|
# rootcolor=0x201B14FF
|
||||||
|
rootcolor=0x000024FF
|
||||||
|
|
||||||
|
# Inactive window border
|
||||||
|
bordercolor=0x5555CCFF
|
||||||
|
|
||||||
|
# Drop shadow when dragging windows
|
||||||
|
dropcolor=0x8FBA7C55
|
||||||
|
|
||||||
|
# Split window border color in manual dwindle layout
|
||||||
|
splitcolor=0xEB441EFF
|
||||||
|
|
||||||
|
# Active window border
|
||||||
|
focuscolor=0xBBBBFFFF
|
||||||
|
|
||||||
|
# Urgent window border (alerts)
|
||||||
|
urgentcolor=0xAD401fDD
|
||||||
|
|
||||||
|
maximizescreencolor=0x89AA61FF
|
||||||
|
scratchpadcolor=0x516C93FF
|
||||||
|
globalcolor=0xb153A7FF
|
||||||
|
overlaycolor=0x14A57CFF
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/effects#opacity--corner-radius
|
||||||
|
|
||||||
|
# Window corner radius in pixels
|
||||||
|
border_radius=8
|
||||||
|
|
||||||
|
# Corner radius location (0=all, 1=top-left, 2=top-right, 3=bottom-left, 4=bottom-right)
|
||||||
|
border_radius_location_default=0
|
||||||
|
|
||||||
|
# Disable radius if only one window is visible
|
||||||
|
no_radius_when_single=0
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/theming#cursor-theme
|
||||||
|
|
||||||
|
cursor_size=24
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/theming#dimensions
|
||||||
|
|
||||||
|
# Border width in pixels.
|
||||||
|
borderpx=3
|
||||||
|
|
||||||
|
# Horizontal inner gap (between windows).
|
||||||
|
gappih=5
|
||||||
|
|
||||||
|
# Vertical inner gap.
|
||||||
|
gappiv=5
|
||||||
|
|
||||||
|
# Horizontal outer gap (between windows and screen edges).
|
||||||
|
gappoh=5
|
||||||
|
|
||||||
|
# Vertical outer gap.
|
||||||
|
gappov=5
|
||||||
|
|
||||||
|
# Scratchpad
|
||||||
|
scratchpad_width_ratio=0.8
|
||||||
|
scratchpad_height_ratio=0.9
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/effects#opacity--corner-radius
|
||||||
|
|
||||||
|
# Opacity for the active window (0.0 - 1.0)
|
||||||
|
focused_opacity=1.0
|
||||||
|
|
||||||
|
# Opacity for inactive windows
|
||||||
|
unfocused_opacity=1.0
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# https://mangowm.github.io/docs/visuals/effects#shadows
|
||||||
|
|
||||||
|
# Enable shadows.
|
||||||
|
shadows=0
|
||||||
|
|
||||||
|
# Enable shadows for layer surfaces.
|
||||||
|
layer_shadows=0
|
||||||
|
|
||||||
|
# Only draw shadows for floating windows (saves performance).
|
||||||
|
shadow_only_floating=1
|
||||||
|
|
||||||
|
# Size of the shadow.
|
||||||
|
shadows_size=10
|
||||||
|
|
||||||
|
# Shadow blur amount.
|
||||||
|
shadows_blur=15
|
||||||
|
|
||||||
|
# Shadow X offset.
|
||||||
|
shadows_position_x=0
|
||||||
|
|
||||||
|
# Shadow Y offset.
|
||||||
|
shadows_position_y=0
|
||||||
|
|
||||||
|
# Color of the shadow.
|
||||||
|
shadowscolor=0x000000FF
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# https://mangowm.github.io/docs/configuration/miscellaneous#focus--input
|
||||||
|
|
||||||
|
# Automatically focus windows when they request activation.
|
||||||
|
focus_on_activate=1
|
||||||
|
|
||||||
|
# Focus follows the mouse cursor.
|
||||||
|
sloppyfocus=1
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# https://mangowm.github.io/docs/configuration/miscellaneous#focus--input
|
||||||
|
|
||||||
|
# Warp the cursor to the center of the window when focus changes via keyboard.
|
||||||
|
warpcursor=1
|
||||||
|
|
||||||
|
# Hide the cursor after N seconds of inactivity (0 to disable).
|
||||||
|
cursor_hide_timeout=0
|
||||||
|
|
||||||
|
# Allow dragging a tiled window onto another to swap their positions.
|
||||||
|
drag_tile_to_tile=1
|
||||||
|
|
||||||
|
# Allow dragging a tiled window temporarily to small size.
|
||||||
|
drag_tile_small=1
|
||||||
|
|
||||||
|
# Corner for drag-to-tile detection (0: none, 1–3: corners, 4: auto-detect).
|
||||||
|
drag_corner=3
|
||||||
|
|
||||||
|
# Warp cursor when dragging windows to tile.
|
||||||
|
drag_warp_cursor=1
|
||||||
|
|
||||||
|
# Timeout (ms) for detecting consecutive scroll events for axis bindings.
|
||||||
|
axis_bind_apply_timeout=100
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# https://mangowm.github.io/docs/configuration/miscellaneous#multi-monitor--tags
|
||||||
|
|
||||||
|
# Allow directional focus to cross monitor boundaries.
|
||||||
|
focus_cross_monitor=0
|
||||||
|
|
||||||
|
# Allow exchanging clients across monitor boundaries.
|
||||||
|
exchange_cross_monitor=0
|
||||||
|
|
||||||
|
# Share the scratchpad pool across all monitors.
|
||||||
|
scratchpad_cross_monitor=0
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# https://mangowm.github.io/docs/configuration/miscellaneous#system--hardware
|
||||||
|
|
||||||
|
# Keep XWayland running even when no X11 apps are open (reduces startup lag).
|
||||||
|
xwayland_persistence=1
|
||||||
|
|
||||||
|
# Enable drm_syncobj timeline support (helps with gaming stutter/lag). Requires restart.
|
||||||
|
syncobj_enable=0
|
||||||
|
|
||||||
|
# Allow the lock screen to be transparent.
|
||||||
|
allow_lock_transparent=0
|
||||||
|
|
||||||
|
# Allow shortcuts to be inhibited by clients.
|
||||||
|
allow_shortcuts_inhibit=1
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# https://mangowm.github.io/docs/configuration/miscellaneous#multi-monitor--tags
|
||||||
|
|
||||||
|
# Allow directional focus to cross into other tags.
|
||||||
|
focus_cross_tag=0
|
||||||
|
|
||||||
|
# Toggling the current tag switches back to the previously viewed tag.
|
||||||
|
view_current_to_back=0
|
||||||
|
|
||||||
|
# Only allow one scratchpad (named or standard) to be visible at a time.
|
||||||
|
single_scratchpad=1
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# https://mangowm.github.io/docs/configuration/miscellaneous#window-behavior
|
||||||
|
|
||||||
|
# Snap floating windows to edges or other windows.
|
||||||
|
enable_floating_snap=0
|
||||||
|
|
||||||
|
# Max distance (pixels) to trigger floating snap.
|
||||||
|
snap_distance=30
|
||||||
|
|
||||||
|
# Remove window borders when only one window is visible on the tag.
|
||||||
|
no_border_when_single=0
|
||||||
|
|
||||||
|
# Allow invisible clients (e.g., background audio players) to inhibit idle.
|
||||||
|
idleinhibit_ignore_visible=0
|
||||||
|
|
||||||
|
# Interval (1.0–16.0) to refresh tiled window resize during drag. Too small may cause application lag.
|
||||||
|
drag_tile_refresh_interval=8.0
|
||||||
|
|
||||||
|
# Interval (1.0–16.0) to refresh floating window resize during drag. Too small may cause application lag.
|
||||||
|
drag_floating_refresh_interval=8.0
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/overview
|
||||||
|
|
||||||
|
# Size of the hot area trigger zone in pixels.
|
||||||
|
hotarea_size=10
|
||||||
|
|
||||||
|
# Toggles overview when the cursor enters the configured corner.
|
||||||
|
enable_hotarea=1
|
||||||
|
|
||||||
|
# Corner that triggers the hot area (0: top-left, 1: top-right, 2: bottom-left, 3: bottom-right).
|
||||||
|
hotarea_corner=2
|
||||||
|
|
||||||
|
# Circles focus through windows in overview; releasing the mod key exits overview (0: disable, 1: enable).
|
||||||
|
ov_tab_mode=0
|
||||||
|
|
||||||
|
# Inner gap in overview mode.
|
||||||
|
overviewgappi=5
|
||||||
|
|
||||||
|
# Outer gap in overview mode.
|
||||||
|
overviewgappo=30
|
||||||
|
|
||||||
|
# Disables resizing of windows in overview mode(use snap to display).
|
||||||
|
ov_no_resize=1
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/rules#layer-rules
|
||||||
|
|
||||||
|
# No blur or animation for slurp selection layer (avoids occlusion and ghosting in screenshots)
|
||||||
|
layerrule=noanim:1,noblur:1,layer_name:selection
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/rules#tag-rules
|
||||||
|
|
||||||
|
tagrule=id:1,layout_name:tile
|
||||||
|
tagrule=id:2,layout_name:tile
|
||||||
|
tagrule=id:3,layout_name:tile
|
||||||
|
tagrule=id:4,layout_name:tile
|
||||||
|
tagrule=id:5,layout_name:tile
|
||||||
|
tagrule=id:6,layout_name:tile
|
||||||
|
tagrule=id:7,layout_name:tile
|
||||||
|
tagrule=id:8,layout_name:tile
|
||||||
|
tagrule=id:9,layout_name:tile
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# https://mangowm.github.io/docs/window-management/rules#window-rules
|
||||||
|
|
||||||
|
windowrule=noblur:1,appid:slurp
|
||||||
|
windowrule=isfloating:1,appid:satty
|
||||||
|
windowrule=isfloating:1,animation_type_open:fade,animation_type_close:fade,appid:ghostty,title:d.wiremix
|
||||||
|
windowrule=isfloating:1,animation_type_open:fade,animation_type_close:fade,appid:ghostty,title:d.impala
|
||||||
|
windowrule=isfloating:1,animation_type_open:fade,animation_type_close:fade,appid:ghostty,title:d.btop
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pkill -9 pipewire
|
||||||
|
pipewire &
|
||||||
|
|
||||||
|
sleep 0.25
|
||||||
|
|
||||||
|
pkill -9 wireplumber
|
||||||
|
wireplumber &
|
||||||
|
|
||||||
|
awww-daemon --no-cache &
|
||||||
|
|
||||||
|
if [ -f ~/.desolate/wallpaper/image.jpg ]; then
|
||||||
|
sleep 0.25
|
||||||
|
awww img ~/.desolate/wallpaper/image.jpg
|
||||||
|
fi
|
||||||
Executable
+1
@@ -0,0 +1 @@
|
|||||||
|
#!/bin/sh
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
TARGET_DIR="$HOME/screenshots"
|
||||||
|
TARGET_FILE="$(date +%Y-%m-%d-%H%M%S-%2N).png"
|
||||||
|
TARGET_PATH="$TARGET_DIR/$TARGET_FILE"
|
||||||
|
|
||||||
|
ensure_target_dir()
|
||||||
|
{
|
||||||
|
if [ ! -d "$TARGET_DIR" ]; then
|
||||||
|
mkdir -p "$TARGET_DIR"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
is_slurping()
|
||||||
|
{
|
||||||
|
pgrep -x slurp >/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
. ~/.config/mango/scripts/screenshot/common.sh
|
||||||
|
|
||||||
|
ensure_target_dir
|
||||||
|
grim - | satty --filename - \
|
||||||
|
--output-filename "$TARGET_PATH" \
|
||||||
|
--actions-on-enter "save-to-file","save-to-clipboard","exit" \
|
||||||
|
--actions-on-escape "save-to-clipboard","exit" \
|
||||||
|
--copy-command "wl-copy --type image/png" \
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
. ~/.config/mango/scripts/screenshot/common.sh
|
||||||
|
|
||||||
|
if is_slurping; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ensure_target_dir
|
||||||
|
geometry=$(slurp -d); [ -z "$geometry" ] && exit 1
|
||||||
|
|
||||||
|
grim -g "$geometry" - | satty --filename - \
|
||||||
|
--output-filename "$TARGET_PATH" \
|
||||||
|
--actions-on-enter "save-to-file","save-to-clipboard","exit" \
|
||||||
|
--actions-on-escape "save-to-clipboard","exit" \
|
||||||
|
--copy-command "wl-copy --type image/png" \
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
$HOME/.config/mango/scripts/tui/run.sh "btop"
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
$HOME/.config/mango/scripts/tui/run.sh "impala"
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
tui=$1
|
||||||
|
|
||||||
|
if ! pgrep -x "$tui" >/dev/null; then
|
||||||
|
ghostty --title="d.$tui" -e "$tui"
|
||||||
|
fi
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
$HOME/.config/mango/scripts/tui/run.sh "wiremix"
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
FIFO="$XDG_RUNTIME_DIR/sandbar"
|
|
||||||
[ -e "$FIFO" ] && rm -f "$FIFO"
|
|
||||||
mkfifo "$FIFO"
|
|
||||||
|
|
||||||
while cat "$FIFO"; do :; done | sandbar \
|
|
||||||
-font "Hack Nerd Font:size=15" \
|
|
||||||
-active-fg-color "#000000ff" \
|
|
||||||
-active-bg-color "#ccccccff" \
|
|
||||||
-inactive-fg-color "#888888ff" \
|
|
||||||
-inactive-bg-color "#000000ff" \
|
|
||||||
-urgent-fg-color "#000000" \
|
|
||||||
-urgent-bg-color "#cc241d" \
|
|
||||||
-title-fg-color "#aaaaaa" \
|
|
||||||
-title-bg-color "#000000ff" \
|
|
||||||
-vertical-padding 4
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Tiled Layout
|
|
||||||
|
|
||||||
rivertile -view-padding 4 -outer-padding 0 -main-ratio 0.5 &
|
|
||||||
riverctl default-layout rivertile
|
|
||||||
riverctl default-attach-mode above
|
|
||||||
|
|
||||||
# Move cursor to the center of focused window
|
|
||||||
riverctl set-cursor-warp on-focus-change
|
|
||||||
|
|
||||||
. "$HOME/.config/river/init-keymaps"
|
|
||||||
. "$HOME/.config/river/init-input"
|
|
||||||
|
|
||||||
# Background Color
|
|
||||||
riverctl background-color 0x000000
|
|
||||||
|
|
||||||
pkill -9 pipewire
|
|
||||||
riverctl spawn 'pipewire'
|
|
||||||
|
|
||||||
riverctl spawn 'mako'
|
|
||||||
|
|
||||||
riverctl spawn "$HOME/.config/river/bar"
|
|
||||||
riverctl spawn "$HOME/.config/river/status"
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
riverctl set-repeat 50 180
|
|
||||||
riverctl keyboard-layout -options ctrl:nocaps us
|
|
||||||
|
|
||||||
for device in $(riverctl list-inputs | grep -i touchpad); do
|
|
||||||
riverctl input "$device" tap-button-map left-right-middle
|
|
||||||
riverctl input "$device" tap enabled
|
|
||||||
riverctl input "$device" scroll-method two-finger
|
|
||||||
riverctl input "$device" natural-scroll enabled
|
|
||||||
riverctl input "$device" drag enabled
|
|
||||||
riverctl input "$device" disable-while-typing disabled
|
|
||||||
done
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------
|
|
||||||
# MOUSE
|
|
||||||
# ---------------------
|
|
||||||
|
|
||||||
riverctl map-pointer normal Super BTN_LEFT move-view
|
|
||||||
riverctl map-pointer normal Super BTN_RIGHT resize-view
|
|
||||||
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
|
|
||||||
|
|
||||||
# ---------------------
|
|
||||||
# KEYBOARD
|
|
||||||
# ---------------------
|
|
||||||
|
|
||||||
mod=Mod1
|
|
||||||
|
|
||||||
riverctl map normal $mod Return spawn 'sh -c "ghostty & sleep 0.2 && riverctl focus-view next"'
|
|
||||||
riverctl map normal $mod Space spawn 'fuzzel'
|
|
||||||
riverctl map normal $mod q close
|
|
||||||
riverctl map normal $mod m spawn 'riverctl exit'
|
|
||||||
riverctl map normal $mod+Shift l spawn 'waylock -init-color 0x000000 -input-color 0x111111 -fail-color 0x220000'
|
|
||||||
riverctl map normal $mod f toggle-float
|
|
||||||
|
|
||||||
# Screenshots
|
|
||||||
riverctl map normal None Print spawn '
|
|
||||||
FILE_NAME=$(date +"%Y-%m-%d-%H-%M-%S") &&
|
|
||||||
FILE="$HOME/$FILE_NAME.png" &&
|
|
||||||
grim - | wl-copy --type image/png &&
|
|
||||||
wl-paste --type image/png > "$FILE" &&
|
|
||||||
notify-send --icon="$FILE" "$FILE_NAME" "Full screen shot saved and copied"
|
|
||||||
'
|
|
||||||
riverctl map normal None XF86SelectiveScreenshot spawn '
|
|
||||||
FILE_NAME=$(date +"%Y-%m-%d-%H-%M-%S") &&
|
|
||||||
FILE="$HOME/$FILE_NAME.png" &&
|
|
||||||
grim -g "$(slurp)" - | wl-copy --type image/png &&
|
|
||||||
wl-paste --type image/png > "$FILE" &&
|
|
||||||
notify-send --icon="$FILE" "$FILE_NAME" "Screen region shot saved and copied"
|
|
||||||
'
|
|
||||||
|
|
||||||
# Volume
|
|
||||||
riverctl map normal None XF86AudioRaiseVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+'
|
|
||||||
riverctl map normal None XF86AudioLowerVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-'
|
|
||||||
riverctl map normal None XF86AudioMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'
|
|
||||||
|
|
||||||
# Brightness
|
|
||||||
riverctl map normal None XF86MonBrightnessUp spawn 'light -A 5'
|
|
||||||
riverctl map normal None XF86MonBrightnessDown spawn 'light -U 5'
|
|
||||||
|
|
||||||
# Navigation
|
|
||||||
riverctl map normal $mod h focus-view left
|
|
||||||
riverctl map normal $mod j focus-view down
|
|
||||||
riverctl map normal $mod k focus-view up
|
|
||||||
riverctl map normal $mod l focus-view right
|
|
||||||
|
|
||||||
riverctl map normal $mod Tab focus-view previous
|
|
||||||
riverctl map normal $mod+Shift Tab focus-view next
|
|
||||||
|
|
||||||
# Tags Navigation
|
|
||||||
for i in $(seq 1 9); do
|
|
||||||
tag=$((1 << ($i - 1)))
|
|
||||||
riverctl map normal $mod $i set-focused-tags $tag
|
|
||||||
riverctl map normal $mod+Shift $i spawn "riverctl set-view-tags $tag && riverctl set-focused-tags $tag"
|
|
||||||
done
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
#!/bin/env sh
|
|
||||||
|
|
||||||
MEM_FG_C="#CD95D7"
|
|
||||||
CPU_FG_C="#9EA7D9"
|
|
||||||
BAT_FG_C="#AED481"
|
|
||||||
VOL_FG_C="#EEEEEE"
|
|
||||||
BRG_FG_C="#FFCA28"
|
|
||||||
DAT_FG_C="#FE8964"
|
|
||||||
TIM_FG_C="#FE8964"
|
|
||||||
|
|
||||||
#
|
|
||||||
|
|
||||||
cpu()
|
|
||||||
{
|
|
||||||
cpu=$(top -bn1 | awk '/Cpu\(s\):/ {print $2 + $4 "%"}')
|
|
||||||
}
|
|
||||||
|
|
||||||
memory()
|
|
||||||
{
|
|
||||||
memory=$(free -m | awk '/^Mem:/ {printf "%.1f", $3/2024}')
|
|
||||||
}
|
|
||||||
|
|
||||||
disk() {
|
|
||||||
disk="$(df -h | awk 'NR==2{print $4}')"
|
|
||||||
}
|
|
||||||
|
|
||||||
cdate()
|
|
||||||
{
|
|
||||||
cdate="$(date "+%a %d %b")"
|
|
||||||
}
|
|
||||||
|
|
||||||
ctime()
|
|
||||||
{
|
|
||||||
ctime="$(date "+%I:%M:%S %p")"
|
|
||||||
}
|
|
||||||
|
|
||||||
battery()
|
|
||||||
{
|
|
||||||
# read -r bat_status </sys/class/power_supply/BAT0/status
|
|
||||||
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
|
|
||||||
battery="$bat_capacity"
|
|
||||||
}
|
|
||||||
|
|
||||||
vol()
|
|
||||||
{
|
|
||||||
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f\n", $2*100}')
|
|
||||||
}
|
|
||||||
|
|
||||||
brightness()
|
|
||||||
{
|
|
||||||
brightness=$(light -G | awk '{print int($1)}')
|
|
||||||
}
|
|
||||||
|
|
||||||
display()
|
|
||||||
{
|
|
||||||
memory_str="^fg($MEM_FG_C) $memory^fg()"
|
|
||||||
cpu_str="^fg($CPU_FG_C) $cpu^fg()"
|
|
||||||
battery_str="^fg($BAT_FG_C)$battery^fg()"
|
|
||||||
volume_str="^fg($VOL_FG_C) $vol^fg()"
|
|
||||||
brightness_str="^fg($BRG_FG_C) $brightness^fg()"
|
|
||||||
date_str="^fg($DAT_FG_C) $cdate^fg()"
|
|
||||||
time_str="^fg($TIM_FG_C) $ctime^fg()"
|
|
||||||
|
|
||||||
echo "all status $memory_str $cpu_str $battery_str $volume_str $brightness_str $date_str $time_str" >"$FIFO"
|
|
||||||
}
|
|
||||||
|
|
||||||
printf "%s" "$$" > "$XDG_RUNTIME_DIR/status_pid"
|
|
||||||
FIFO="$XDG_RUNTIME_DIR/sandbar"
|
|
||||||
[ -e "$FIFO" ] || mkfifo "$FIFO"
|
|
||||||
sec=0
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
sleep 1 &
|
|
||||||
wait && {
|
|
||||||
[ $((sec % 1)) -eq 0 ] && memory
|
|
||||||
[ $((sec % 1)) -eq 0 ] && cpu
|
|
||||||
# [ $((sec % 1)) -eq 0 ] && disk
|
|
||||||
[ $((sec % 60)) -eq 0 ] && battery
|
|
||||||
[ $((sec % 1)) -eq 0 ] && vol
|
|
||||||
[ $((sec % 1)) -eq 0 ] && brightness
|
|
||||||
[ $((sec % 1)) -eq 0 ] && cdate
|
|
||||||
[ $((sec % 1)) -eq 0 ] && ctime
|
|
||||||
|
|
||||||
[ $((sec % 1)) -eq 0 ] && display
|
|
||||||
|
|
||||||
sec=$((sec + 1))
|
|
||||||
}
|
|
||||||
done
|
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
|
||||||
|
battery="$bat_capacity"
|
||||||
|
|
||||||
|
echo "$battery"
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
brightness=$(light -G | awk '{print int($1)}')
|
||||||
|
|
||||||
|
echo "$brightness"
|
||||||
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
cpu=$(top -bn1 | awk '/Cpu\(s\):/ {print $2 + $4}' | tr -d '\n')
|
||||||
|
echo "$cpu"
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
date="$(date "+%a %d %b")"
|
||||||
|
|
||||||
|
echo "$date"
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
memory=$(free -m | awk '/^Mem:/ {printf "%.1f", $3/1024}')
|
||||||
|
|
||||||
|
echo "$memory"
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
time="$(date "+%I:%M %p")"
|
||||||
|
|
||||||
|
echo "$time"
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
# Enable 256-color and true-color (24-bit) support in tmux
|
||||||
|
set -g default-terminal "screen-256color" # Set terminal type for 256-color support
|
||||||
|
set -ga terminal-overrides ",*256col*:Tc" # Override to enable true-color for compatible terminals
|
||||||
|
|
||||||
|
unbind r
|
||||||
|
bind r source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
|
bind-key h select-pane -L
|
||||||
|
bind-key j select-pane -D
|
||||||
|
bind-key k select-pane -U
|
||||||
|
bind-key l select-pane -R
|
||||||
|
|
||||||
|
set-option -g status-position top
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
set -g set-clipboard on
|
||||||
|
set -g status-interval 1
|
||||||
|
set -g detach-on-destroy off
|
||||||
|
|
||||||
|
# Enable vi mode to allow vim movements
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
# Start selecting text with "v"
|
||||||
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
|
# Copy text with "y"
|
||||||
|
bind -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
|
# Do not exit copy mode when dragging with mouse
|
||||||
|
unbind -T copy-mode-vi MouseDragEnd1Pane
|
||||||
|
|
||||||
|
# Start windows and panes at 1 instead of 0
|
||||||
|
set -g base-index 1
|
||||||
|
set -g pane-base-index 1
|
||||||
|
set -g renumber-windows on # automatically renumber windows when one is closed
|
||||||
|
|
||||||
|
|
||||||
|
# DATA
|
||||||
|
|
||||||
|
cpu="#(~/.config/tmux/cpu.sh)"
|
||||||
|
mem="#(~/.config/tmux/mem.sh)"
|
||||||
|
bat="#(~/.config/tmux/bat.sh)"
|
||||||
|
volume="#(~/.config/tmux/volume.sh)"
|
||||||
|
bright="#(~/.config/tmux/brightness.sh)"
|
||||||
|
date="#(~/.config/tmux/date.sh)"
|
||||||
|
time="#(~/.config/tmux/time.sh)"
|
||||||
|
|
||||||
|
# STYLE
|
||||||
|
|
||||||
|
c_status_bg="default"
|
||||||
|
c_status_fg="#CCCCCC"
|
||||||
|
|
||||||
|
c_status_left_bg=$c_status_bg
|
||||||
|
c_status_left_fill="#A3BE8C"
|
||||||
|
c_status_left_fg="#000000"
|
||||||
|
c_session_bg=$c_status_left_bg
|
||||||
|
c_session_fill=$c_status_left_fill
|
||||||
|
c_session_fg=$c_status_left_fg
|
||||||
|
|
||||||
|
c_status_middle_bg=$c_status_bg
|
||||||
|
c_window_current_bg=$c_status_middle_bg
|
||||||
|
c_window_current_fill="#88C0D0"
|
||||||
|
c_window_current_fg="#000000"
|
||||||
|
c_window_bg=$c_status_middle_bg
|
||||||
|
c_window_fill="#224444"
|
||||||
|
c_window_fg="#88C0D0"
|
||||||
|
|
||||||
|
c_status_right_bg=$c_status_bg
|
||||||
|
c_status_right_fill="#CD96CD"
|
||||||
|
c_status_right_fg="#242424"
|
||||||
|
c_cpu_bg=$c_status_right_fill
|
||||||
|
c_cpu_fg=$c_status_right_fg
|
||||||
|
c_mem_bg=$c_status_right_fill
|
||||||
|
c_mem_fg=$c_status_right_fg
|
||||||
|
c_batt_bg=$c_status_right_fill
|
||||||
|
c_batt_fg=$c_status_right_fg
|
||||||
|
c_volume_bg=$c_status_right_fill
|
||||||
|
c_volume_fg=$c_status_right_fg
|
||||||
|
c_bright_bg=$c_status_right_fill
|
||||||
|
c_bright_fg=$c_status_right_fg
|
||||||
|
c_date_bg="#ABABAB"
|
||||||
|
c_date_fg=$c_status_right_fg
|
||||||
|
c_time_bg="#ABABAB"
|
||||||
|
c_time_fg=$c_status_right_fg
|
||||||
|
|
||||||
|
c_message_bg="#EEB422"
|
||||||
|
c_message_fg="#111111"
|
||||||
|
|
||||||
|
c_mode_bg="#CD96CD"
|
||||||
|
c_mode_fg="#101010"
|
||||||
|
|
||||||
|
c_pane_border="#5D478B"
|
||||||
|
c_pane_active_border="#B452CD"
|
||||||
|
|
||||||
|
|
||||||
|
session_pill="#[fg=${c_session_fg},bg=${c_session_fill}] #S #[fg=${c_session_fill},bg=${c_session_bg}]"
|
||||||
|
|
||||||
|
window_current_pill="#[fg=${c_window_current_fill}]#[fg=${c_window_current_fg},bg=${c_window_current_fill}] #I #W #[fg=${c_window_current_fill},bg=${c_window_current_bg}]"
|
||||||
|
window_pill="#[fg=${c_window_fill}]#[fg=${c_window_fg},bg=${c_window_fill}] #I #W #[fg=${c_window_fill},bg=${c_window_bg}]"
|
||||||
|
|
||||||
|
cpu_pill="#[fg=${c_cpu_bg}]#[fg=${c_cpu_fg},bg=${c_cpu_bg}] ${cpu}%#[fg=${c_cpu_bg},bg=${c_status_right_bg}]"
|
||||||
|
mem_pill="#[fg=${c_mem_bg}]#[fg=${c_mem_fg},bg=${c_mem_bg}] ${mem}G#[fg=${c_mem_bg},bg=${c_status_right_bg}]"
|
||||||
|
batt_pill="#[fg=${c_batt_bg}]#[fg=${c_batt_fg},bg=${c_batt_bg}] ${bat}%#[fg=${c_batt_bg},bg=${c_status_right_bg}]"
|
||||||
|
volume_pill="#[fg=${c_volume_bg}]#[fg=${c_volume_fg},bg=${c_volume_bg}] ${volume}%#[fg=${c_volume_bg},bg=${c_status_right_bg}]"
|
||||||
|
bright_pill="#[fg=${c_bright_bg}]#[fg=${c_bright_fg},bg=${c_bright_bg}] ${bright}%#[fg=${c_bright_bg},bg=${c_status_right_bg}]"
|
||||||
|
date_pill="#[fg=${c_date_bg}]#[fg=${c_date_fg},bg=${c_date_bg}] ${date}#[fg=${c_date_bg},bg=${c_status_right_bg}]"
|
||||||
|
time_pill="#[fg=${c_time_bg}]#[fg=${c_time_fg},bg=${c_time_bg}] ${time}#[fg=${c_time_bg},bg=${c_status_right_bg}]"
|
||||||
|
|
||||||
|
set -g status-justify centre
|
||||||
|
set -g status-left-length 200
|
||||||
|
set -g status-right-length 200
|
||||||
|
set -g status-style "fg=${c_status_fg},bg=${c_status_bg}"
|
||||||
|
set -g status-left ${session_pill}
|
||||||
|
set -g status-right "${cpu_pill} ${mem_pill} ${batt_pill} ${volume_pill} ${bright_pill} ${date_pill} ${time_pill}"
|
||||||
|
set -g window-status-current-format $window_current_pill
|
||||||
|
set -g window-status-format $window_pill
|
||||||
|
set -g message-style "fg=${c_message_fg},bg=${c_message_bg}"
|
||||||
|
set -g mode-style "fg=${c_mode_fg},bg=${c_mode_bg}"
|
||||||
|
set -g pane-border-style "fg=${c_pane_border}"
|
||||||
|
set -g pane-active-border-style "fg=${c_pane_active_border}"
|
||||||
|
|
||||||
|
|
||||||
|
# Enable second level status line and make it empty
|
||||||
|
set -g status 2
|
||||||
|
set -g status-format[1] ''
|
||||||
|
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu pipefail
|
||||||
|
|
||||||
|
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f\n", $2*100}')
|
||||||
|
|
||||||
|
echo "$volume"
|
||||||
@@ -6,11 +6,11 @@ gum style --foreground 4 "
|
|||||||
ASSIGNING GROUPS:
|
ASSIGNING GROUPS:
|
||||||
"
|
"
|
||||||
|
|
||||||
for file in "$GROUPS_DIR"/*; do
|
for file in "$GROUPS_DIR"/*.group; do
|
||||||
|
|
||||||
[ ! -f "$file" ] && continue
|
[ ! -f "$file" ] && continue
|
||||||
|
|
||||||
group="$(basename "$file")"
|
group="$(basename "${file%.group}")"
|
||||||
|
|
||||||
if sudo usermod -aG $group $USER; then
|
if sudo usermod -aG $group $USER; then
|
||||||
gum style --foreground 10 "✓ $group"
|
gum style --foreground 10 "✓ $group"
|
||||||
-30
@@ -25,15 +25,7 @@ install_service()
|
|||||||
|
|
||||||
local service="$1"
|
local service="$1"
|
||||||
|
|
||||||
if [ -e "/var/service/$service" ]; then
|
|
||||||
sudo rm -rf "/var/service/$service"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if sudo ln -s "/etc/sv/$service" "/var/service/"; then
|
if sudo ln -s "/etc/sv/$service" "/var/service/"; then
|
||||||
if [ ! -f "/etc/sv/$service/down" ]; then
|
|
||||||
sudo touch "/etc/sv/$service/down"
|
|
||||||
fi
|
|
||||||
|
|
||||||
gum style --foreground 10 "✓ $service"
|
gum style --foreground 10 "✓ $service"
|
||||||
else
|
else
|
||||||
gum style --foreground 9 "✗ $service"
|
gum style --foreground 9 "✗ $service"
|
||||||
@@ -56,28 +48,6 @@ remove_service()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run_service()
|
|
||||||
{
|
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
|
||||||
echo echo "✗ no service provided!"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local service="$1"
|
|
||||||
|
|
||||||
if [ -f "/etc/sv/$service/down" ]; then
|
|
||||||
sudo rm "/etc/sv/$service/down"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if sudo sv up "$service"; then
|
|
||||||
gum style --foreground 10 "✓ $service"
|
|
||||||
else
|
|
||||||
gum style --foreground 9 "✗ $service"
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
install_dotfiles()
|
install_dotfiles()
|
||||||
{
|
{
|
||||||
if [ $# -ne 3 ]; then
|
if [ $# -ne 3 ]; then
|
||||||
|
|||||||
+2
-8
@@ -9,16 +9,10 @@ GROUPS_DIR="$DESOLATE_DIR/groups"
|
|||||||
. "$HOME/.desolate/helpers.sh"
|
. "$HOME/.desolate/helpers.sh"
|
||||||
|
|
||||||
. "$PACKAGES_DIR/install.sh"
|
. "$PACKAGES_DIR/install.sh"
|
||||||
. "$SERVICES_DIR/install.sh"
|
|
||||||
. "$DOTFILES_DIR/install.sh"
|
. "$DOTFILES_DIR/install.sh"
|
||||||
. "$DESOLATE_DIR/assign-groups.sh"
|
. "$GROUPS_DIR/assign.sh"
|
||||||
. "$SERVICES_DIR/run.sh"
|
. "$SERVICES_DIR/install.sh"
|
||||||
|
|
||||||
gum style --foreground 15 "
|
gum style --foreground 15 "
|
||||||
Done!
|
Done!
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ -f /tmp/reboot ]; then
|
|
||||||
sudo rm /tmp/reboot
|
|
||||||
sudo reboot
|
|
||||||
fi
|
|
||||||
|
|||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "alsa-pipewire"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "awww"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "impala"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "iwd"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "mangowc"
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_package "nerd-fonts"
|
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "openresolv"
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if install_package "river"; then
|
|
||||||
if [ ! -d "/run/user/$(id -u)" ]; then
|
|
||||||
sudo mkdir "/run/user/$(id -u)"
|
|
||||||
fi
|
|
||||||
sudo chmod 700 "/run/user/$(id -u)"
|
|
||||||
fi
|
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "rtkit"
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_package "sandbar"
|
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "satty"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "tmux"
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package "xorg-server-xwayland"
|
||||||
@@ -12,7 +12,6 @@ if [ $(command -v zsh) >/dev/null 2>&1 ]; then
|
|||||||
gum style --foreground 9 "✗ failed to change shell to zsh: $error"
|
gum style --foreground 9 "✗ failed to change shell to zsh: $error"
|
||||||
else
|
else
|
||||||
gum style --foreground 15 "✓ changed shell to zsh"
|
gum style --foreground 15 "✓ changed shell to zsh"
|
||||||
sudo touch /tmp/reboot
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
+10
-3
@@ -6,7 +6,9 @@ gum style --foreground 4 "
|
|||||||
INSTALLING PACKAGES:
|
INSTALLING PACKAGES:
|
||||||
"
|
"
|
||||||
|
|
||||||
|
. "$PACKAGES_DIR/install-alsa-pipewire.sh"
|
||||||
. "$PACKAGES_DIR/install-apparmor.sh"
|
. "$PACKAGES_DIR/install-apparmor.sh"
|
||||||
|
. "$PACKAGES_DIR/install-awww.sh"
|
||||||
. "$PACKAGES_DIR/install-bash-completion.sh"
|
. "$PACKAGES_DIR/install-bash-completion.sh"
|
||||||
. "$PACKAGES_DIR/install-bat.sh"
|
. "$PACKAGES_DIR/install-bat.sh"
|
||||||
. "$PACKAGES_DIR/install-btop.sh"
|
. "$PACKAGES_DIR/install-btop.sh"
|
||||||
@@ -18,26 +20,31 @@ INSTALLING PACKAGES:
|
|||||||
. "$PACKAGES_DIR/install-ghostty.sh"
|
. "$PACKAGES_DIR/install-ghostty.sh"
|
||||||
. "$PACKAGES_DIR/install-grim.sh"
|
. "$PACKAGES_DIR/install-grim.sh"
|
||||||
. "$PACKAGES_DIR/install-helix.sh"
|
. "$PACKAGES_DIR/install-helix.sh"
|
||||||
|
. "$PACKAGES_DIR/install-impala.sh"
|
||||||
|
. "$PACKAGES_DIR/install-iwd.sh"
|
||||||
. "$PACKAGES_DIR/install-less.sh"
|
. "$PACKAGES_DIR/install-less.sh"
|
||||||
. "$PACKAGES_DIR/install-libnotify.sh"
|
. "$PACKAGES_DIR/install-libnotify.sh"
|
||||||
. "$PACKAGES_DIR/install-light.sh"
|
. "$PACKAGES_DIR/install-light.sh"
|
||||||
. "$PACKAGES_DIR/install-mako.sh"
|
. "$PACKAGES_DIR/install-mako.sh"
|
||||||
|
. "$PACKAGES_DIR/install-mangowc.sh"
|
||||||
. "$PACKAGES_DIR/install-mesa-dri.sh"
|
. "$PACKAGES_DIR/install-mesa-dri.sh"
|
||||||
. "$PACKAGES_DIR/install-nerd-fonts.sh"
|
|
||||||
. "$PACKAGES_DIR/install-noto-fonts.sh"
|
. "$PACKAGES_DIR/install-noto-fonts.sh"
|
||||||
|
. "$PACKAGES_DIR/install-openresolv.sh"
|
||||||
. "$PACKAGES_DIR/install-pipewire.sh"
|
. "$PACKAGES_DIR/install-pipewire.sh"
|
||||||
. "$PACKAGES_DIR/install-ripgrep.sh"
|
. "$PACKAGES_DIR/install-ripgrep.sh"
|
||||||
. "$PACKAGES_DIR/install-river.sh"
|
. "$PACKAGES_DIR/install-rtkit.sh"
|
||||||
. "$PACKAGES_DIR/install-sandbar.sh"
|
. "$PACKAGES_DIR/install-satty.sh"
|
||||||
. "$PACKAGES_DIR/install-seatd.sh"
|
. "$PACKAGES_DIR/install-seatd.sh"
|
||||||
. "$PACKAGES_DIR/install-slurp.sh"
|
. "$PACKAGES_DIR/install-slurp.sh"
|
||||||
. "$PACKAGES_DIR/install-socklog-void.sh"
|
. "$PACKAGES_DIR/install-socklog-void.sh"
|
||||||
. "$PACKAGES_DIR/install-stow.sh"
|
. "$PACKAGES_DIR/install-stow.sh"
|
||||||
|
. "$PACKAGES_DIR/install-tmux.sh"
|
||||||
. "$PACKAGES_DIR/install-tree.sh"
|
. "$PACKAGES_DIR/install-tree.sh"
|
||||||
. "$PACKAGES_DIR/install-udisks2.sh"
|
. "$PACKAGES_DIR/install-udisks2.sh"
|
||||||
. "$PACKAGES_DIR/install-usbutils.sh"
|
. "$PACKAGES_DIR/install-usbutils.sh"
|
||||||
. "$PACKAGES_DIR/install-waylock.sh"
|
. "$PACKAGES_DIR/install-waylock.sh"
|
||||||
. "$PACKAGES_DIR/install-wiremix.sh"
|
. "$PACKAGES_DIR/install-wiremix.sh"
|
||||||
. "$PACKAGES_DIR/install-wl-clipboard.sh"
|
. "$PACKAGES_DIR/install-wl-clipboard.sh"
|
||||||
|
. "$PACKAGES_DIR/install-xorg-server-xwayland.sh"
|
||||||
. "$PACKAGES_DIR/install-yazi.sh"
|
. "$PACKAGES_DIR/install-yazi.sh"
|
||||||
. "$PACKAGES_DIR/install-zsh.sh"
|
. "$PACKAGES_DIR/install-zsh.sh"
|
||||||
|
|||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e /etc/resolv.conf ]; then
|
||||||
|
sudo rm /etc/resolv.conf
|
||||||
|
fi
|
||||||
|
install_service "iwd"
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_service "river"
|
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_service "rtkit"
|
||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -d /etc/pipewire/pipewire.conf.d ]; then
|
||||||
|
sudo mkdir -p /etc/pipewire/pipewire.conf.d
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Session Manager
|
||||||
|
|
||||||
|
if [ -e /etc/pipewire/pipewire.conf.d/10-wireplumber.conf ]; then
|
||||||
|
sudo ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# PulseAudio Interface
|
||||||
|
|
||||||
|
if [ -e /etc/pipewire/pipewire.conf.d/20-pipewire-pulse.conf ]; then
|
||||||
|
sudo ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ALSA Integration
|
||||||
|
|
||||||
|
if [ ! -d /etc/alsa/conf.d ]; then
|
||||||
|
sudo mkdir -p /etc/alsa/conf.d
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e /usr/share/alsa/alsa.conf.d/50-pipewire.conf ]; then
|
||||||
|
sudo ln -s /usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf ]; then
|
||||||
|
sudo ln -s /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
|
||||||
|
fi
|
||||||
+5
-1
@@ -8,7 +8,11 @@ INSTALLING SERVICES:
|
|||||||
|
|
||||||
. "$SERVICES_DIR/install-chronyd.sh"
|
. "$SERVICES_DIR/install-chronyd.sh"
|
||||||
. "$SERVICES_DIR/install-dbus.sh"
|
. "$SERVICES_DIR/install-dbus.sh"
|
||||||
. "$SERVICES_DIR/install-emptty.sh"
|
. "$SERVICES_DIR/install-iwd.sh"
|
||||||
|
. "$SERVICES_DIR/install-rtkit.sh"
|
||||||
. "$SERVICES_DIR/install-seatd.sh"
|
. "$SERVICES_DIR/install-seatd.sh"
|
||||||
. "$SERVICES_DIR/install-socklog-unix.sh"
|
. "$SERVICES_DIR/install-socklog-unix.sh"
|
||||||
. "$SERVICES_DIR/install-nanoklogd.sh"
|
. "$SERVICES_DIR/install-nanoklogd.sh"
|
||||||
|
. "$SERVICES_DIR/install-wireplumber.sh"
|
||||||
|
|
||||||
|
. "$SERVICES_DIR/install-emptty.sh"
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
run_service "chronyd"
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
run_service "dbus"
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user