Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cba7dbc066 | |||
| 3ac8ae36e3 | |||
| 16868d83bd | |||
| 16040195e2 | |||
| 4fd2004bb6 | |||
| 85b5bf4456 | |||
| aba2481826 | |||
| 5d09ceffdc | |||
| b5cafeca18 | |||
| 03e30cd9bf | |||
| c9bd821773 | |||
| 485b6b8f28 | |||
| bfe4e2468d | |||
| 784a9612b5 | |||
| f72e228239 | |||
| fdd7dd56fe | |||
| b69015fdec | |||
| 7c9bed8adb | |||
| 271de703f9 | |||
| dd0e47d099 | |||
| b05094b29c | |||
| c6f0abdeea | |||
| bb7a3820c9 | |||
| fbe5990908 | |||
| 3bec9a1d82 | |||
| 9c7713e6c7 |
@ -29,4 +29,5 @@ scripts:.local/bin/httpstatus .local/bin/apco .local/bin/bb .local/bin/emoji .lo
|
|||||||
music:.local/bin/mpv-service.sh .config/systemd/user/mpv.service .local/bin/player
|
music:.local/bin/mpv-service.sh .config/systemd/user/mpv.service .local/bin/player
|
||||||
copypasta:.local/bin/copy .local/bin/pasta
|
copypasta:.local/bin/copy .local/bin/pasta
|
||||||
starsector:.java/.userPrefs/com/fs/starfarer/prefs.xml .local/share/applications/starsector.desktop .local/bin/starsector
|
starsector:.java/.userPrefs/com/fs/starfarer/prefs.xml .local/share/applications/starsector.desktop .local/bin/starsector
|
||||||
|
bambu:.local/share/icons/bambu-studio.svg .local/share/applications/bambu-studio.desktop
|
||||||
all:%less %t %note %tmux %zsh %nvim %git %yazi"
|
all:%less %t %note %tmux %zsh %nvim %git %yazi"
|
||||||
|
|||||||
@ -145,7 +145,7 @@ vim.cmd.highlight({ "DiagnosticInfo", "guifg=Grey" })
|
|||||||
vim.cmd.highlight({ "DiagnosticHint", "guifg=Grey" })
|
vim.cmd.highlight({ "DiagnosticHint", "guifg=Grey" })
|
||||||
|
|
||||||
-- Russian commands
|
-- Russian commands
|
||||||
opt.langmap = 'ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz'
|
-- opt.langmap = 'ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz'
|
||||||
|
|
||||||
|
|
||||||
vim.o.viewdir = vim.fn.stdpath('cache')..'/view'
|
vim.o.viewdir = vim.fn.stdpath('cache')..'/view'
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
set preview_images true
|
|
||||||
set preview_images_method ueberzug
|
|
||||||
|
|
||||||
# Show VCS info
|
|
||||||
set vcs_aware true
|
|
||||||
|
|
||||||
default_linemode devicons
|
|
||||||
|
|
||||||
set viewmode miller
|
|
||||||
|
|
||||||
map <F3> exit
|
|
||||||
map ,x exit
|
|
||||||
@ -3,8 +3,9 @@ configuration {
|
|||||||
terminal: "alacritty";
|
terminal: "alacritty";
|
||||||
font: "xft:FiraCode 12";
|
font: "xft:FiraCode 12";
|
||||||
kb-accept-entry: "Ctrl+m,Return";
|
kb-accept-entry: "Ctrl+m,Return";
|
||||||
kb-row-up: "Ctrl+k";
|
kb-row-up: "Ctrl+e,Up";
|
||||||
kb-row-down: "Ctrl+j";
|
kb-row-down: "Ctrl+n,Down";
|
||||||
|
kb-move-end: "Control+j";
|
||||||
kb-remove-to-eol: "";
|
kb-remove-to-eol: "";
|
||||||
}
|
}
|
||||||
@theme "Arc-Dark"
|
@theme "Arc-Dark"
|
||||||
|
|||||||
@ -38,13 +38,12 @@ bindsym --to-code $mod+Shift+r reload
|
|||||||
|
|
||||||
set $menu rofi -show drun -m -1
|
set $menu rofi -show drun -m -1
|
||||||
bindsym --to-code $mod+d exec $menu
|
bindsym --to-code $mod+d exec $menu
|
||||||
bindsym $mod+o exec --no-startup-id slm_rofi
|
|
||||||
|
|
||||||
# Change focus
|
# Change focus
|
||||||
bindsym --to-code $mod+h focus left
|
bindsym --to-code $mod+h focus left
|
||||||
bindsym --to-code $mod+j focus down
|
bindsym --to-code $mod+n focus down
|
||||||
bindsym --to-code $mod+k focus up
|
bindsym --to-code $mod+e focus up
|
||||||
bindsym --to-code $mod+l focus right
|
bindsym --to-code $mod+i focus right
|
||||||
bindsym --to-code $mod+Left focus left
|
bindsym --to-code $mod+Left focus left
|
||||||
bindsym --to-code $mod+Down focus down
|
bindsym --to-code $mod+Down focus down
|
||||||
bindsym --to-code $mod+Up focus up
|
bindsym --to-code $mod+Up focus up
|
||||||
@ -52,19 +51,19 @@ bindsym --to-code $mod+Right focus right
|
|||||||
|
|
||||||
# Move focused window
|
# Move focused window
|
||||||
bindsym --to-code $mod+Shift+h move left
|
bindsym --to-code $mod+Shift+h move left
|
||||||
bindsym --to-code $mod+Shift+j move down
|
bindsym --to-code $mod+Shift+n move down
|
||||||
bindsym --to-code $mod+Shift+k move up
|
bindsym --to-code $mod+Shift+e move up
|
||||||
bindsym --to-code $mod+Shift+l move right
|
bindsym --to-code $mod+Shift+i move right
|
||||||
bindsym --to-code $mod+Shift+Left move left
|
bindsym --to-code $mod+Shift+Left move left
|
||||||
bindsym --to-code $mod+Shift+Down move down
|
bindsym --to-code $mod+Shift+Down move down
|
||||||
bindsym --to-code $mod+Shift+Up move up
|
bindsym --to-code $mod+Shift+Up move up
|
||||||
bindsym --to-code $mod+Shift+Right move right
|
bindsym --to-code $mod+Shift+Right move right
|
||||||
|
|
||||||
|
|
||||||
bindsym --to-code $mod+Ctrl+Shift+l move workspace to output right
|
|
||||||
bindsym --to-code $mod+Ctrl+Shift+h move workspace to output left
|
bindsym --to-code $mod+Ctrl+Shift+h move workspace to output left
|
||||||
bindsym --to-code $mod+Ctrl+Shift+k move workspace to output up
|
bindsym --to-code $mod+Ctrl+Shift+n move workspace to output up
|
||||||
bindsym --to-code $mod+Ctrl+Shift+j move workspace to output down
|
bindsym --to-code $mod+Ctrl+Shift+e move workspace to output down
|
||||||
|
bindsym --to-code $mod+Ctrl+Shift+i move workspace to output right
|
||||||
|
|
||||||
|
|
||||||
bindsym --to-code $mod+f fullscreen toggle
|
bindsym --to-code $mod+f fullscreen toggle
|
||||||
@ -112,6 +111,8 @@ mode $exitmode {
|
|||||||
}
|
}
|
||||||
bindsym --to-code $mod+x mode $exitmode
|
bindsym --to-code $mod+x mode $exitmode
|
||||||
|
|
||||||
|
bindsym --to-code $mod+Shift+x exec --no-startup-id ~/.config/sway/scripts/power-menu.sh
|
||||||
|
|
||||||
# switch to workspace
|
# switch to workspace
|
||||||
bindsym --to-code $mod+1 workspace number $ws1
|
bindsym --to-code $mod+1 workspace number $ws1
|
||||||
bindsym --to-code $mod+2 workspace number $ws2
|
bindsym --to-code $mod+2 workspace number $ws2
|
||||||
@ -171,6 +172,8 @@ mode $presizemode {
|
|||||||
}
|
}
|
||||||
bindsym --to-code $mod+r mode $resizemode
|
bindsym --to-code $mod+r mode $resizemode
|
||||||
|
|
||||||
|
bindsym --release --border button2 kill
|
||||||
|
|
||||||
input type:keyboard {
|
input type:keyboard {
|
||||||
xkb_layout us,ru
|
xkb_layout us,ru
|
||||||
xkb_variant colemak,
|
xkb_variant colemak,
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
# Hide cursor
|
# Hide cursor
|
||||||
seat seat0 hide_cursor when-typing enable
|
seat seat0 hide_cursor when-typing enable
|
||||||
seat seat0 hide_cursor 5000
|
seat seat0 hide_cursor 5000
|
||||||
|
seat seat0 fallback true
|
||||||
|
|
||||||
|
|
||||||
set $font_size 11
|
set $font_size 11
|
||||||
|
|||||||
13
home/user/.config/sway/scripts/power-menu.sh
Executable file
13
home/user/.config/sway/scripts/power-menu.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
choice=$(echo -e "Exit\nReboot\nShutdown\nSuspend\nLock\nBlack\nUEFI" | rofi -dmenu -p "Power Menu:" -i)
|
||||||
|
|
||||||
|
case "${choice}" in
|
||||||
|
Exit) swaymsg exit ;;
|
||||||
|
Reboot) systemctl reboot ;;
|
||||||
|
Shutdown) shutdown -h now ;;
|
||||||
|
Suspend) ~/.config/sway/scripts/lock-telegram.sh && systemctl suspend ;;
|
||||||
|
Lock) ~/.config/sway/scripts/lock-telegram.sh && swaylock -f ;;
|
||||||
|
Black) magick canvas:none PNG:- | feh --class black -YFx - ;;
|
||||||
|
UEFI) systemctl reboot --firmware-setup ;;
|
||||||
|
esac
|
||||||
@ -41,7 +41,7 @@ bind Y {
|
|||||||
display-popup -E -w 90% -h 80% "nvim /tmp/tmux-buffer"
|
display-popup -E -w 90% -h 80% "nvim /tmp/tmux-buffer"
|
||||||
}
|
}
|
||||||
|
|
||||||
bind t display-popup -E -h 70% -w 60% -d "${HOME}"
|
bind t display-popup -E -h 70% -w 60% -d "#{pane_current_path}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -106,23 +106,23 @@ bind F5 reload-config
|
|||||||
|
|
||||||
# Panes navigation
|
# Panes navigation
|
||||||
bind -n M-h select-pane -L
|
bind -n M-h select-pane -L
|
||||||
bind -n M-l select-pane -R
|
bind -n M-n select-pane -D
|
||||||
bind -n M-j select-pane -D
|
bind -n M-e select-pane -U
|
||||||
bind -n M-k select-pane -U
|
bind -n M-i select-pane -R
|
||||||
|
|
||||||
|
|
||||||
# Resizing
|
# Resizing
|
||||||
bind -n C-M-l resize-pane -R
|
|
||||||
bind -n C-M-h resize-pane -L
|
bind -n C-M-h resize-pane -L
|
||||||
bind -n C-M-j resize-pane -D
|
bind -n C-M-n resize-pane -D
|
||||||
bind -n C-M-k resize-pane -U
|
bind -n C-M-e resize-pane -U
|
||||||
|
bind -n C-M-i resize-pane -R
|
||||||
|
|
||||||
|
|
||||||
# Swappings panes
|
# Swappings panes
|
||||||
bind -n M-L swap-pane -d -Z -t '{right-of}'
|
|
||||||
bind -n M-H swap-pane -d -Z -t '{left-of}'
|
bind -n M-H swap-pane -d -Z -t '{left-of}'
|
||||||
bind -n M-J swap-pane -d -Z -t '{down-of}'
|
bind -n M-N swap-pane -d -Z -t '{down-of}'
|
||||||
bind -n M-K swap-pane -d -Z -t '{up-of}'
|
bind -n M-E swap-pane -d -Z -t '{up-of}'
|
||||||
|
bind -n M-I swap-pane -d -Z -t '{right-of}'
|
||||||
|
|
||||||
|
|
||||||
# Sync panes
|
# Sync panes
|
||||||
@ -169,7 +169,7 @@ bind -r ">" swap-window -d -t +1
|
|||||||
|
|
||||||
|
|
||||||
# Windows splitting
|
# Windows splitting
|
||||||
bind -n M-Enter split-window -d -h -b -l $_tmux_other_pane_size -c "#{pane_current_path}"
|
bind -n "M-'" split-window -d -h -b -l $_tmux_other_pane_size -c "#{pane_current_path}"
|
||||||
bind -n M-t split-window -v -l 20% -c "#{pane_current_path}"
|
bind -n M-t split-window -v -l 20% -c "#{pane_current_path}"
|
||||||
bind \\ split-window -h -c "#{pane_current_path}"
|
bind \\ split-window -h -c "#{pane_current_path}"
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|||||||
@ -21,6 +21,7 @@
|
|||||||
"custom/battery",
|
"custom/battery",
|
||||||
"custom/pomodoro",
|
"custom/pomodoro",
|
||||||
"custom/bluetooth",
|
"custom/bluetooth",
|
||||||
|
"custom/ScrollMPRIS",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/language",
|
"custom/language",
|
||||||
"custom/userhost",
|
"custom/userhost",
|
||||||
@ -29,6 +30,10 @@
|
|||||||
"custom/power",
|
"custom/power",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
"sway/workspaces": {
|
||||||
|
"disable-scroll": true,
|
||||||
|
},
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": " {:%d.%m.%y %a %H:%M}",
|
"format": " {:%d.%m.%y %a %H:%M}",
|
||||||
"format-alt": "{:%H:%M}",
|
"format-alt": "{:%H:%M}",
|
||||||
@ -64,6 +69,22 @@
|
|||||||
"interval": 5,
|
"interval": 5,
|
||||||
"return-type": "text",
|
"return-type": "text",
|
||||||
},
|
},
|
||||||
|
"custom/ScrollMPRIS": {
|
||||||
|
"name": "custom-scrollmedia",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "ScrollMPRIS -s 80 -w 20 --scroll wrapping --format '{title} - {artist}'",
|
||||||
|
"on-click": "playerctl play-pause",
|
||||||
|
"on-click-right": "playerctl next",
|
||||||
|
"on-middle-click": "playerctl previous",
|
||||||
|
},
|
||||||
|
"custom/media": {
|
||||||
|
"exec": "playerctl metadata --format '{{title}} - {{artist}}' | cut -c -30",
|
||||||
|
"interval": 1,
|
||||||
|
"on-click": "playerctl play-pause",
|
||||||
|
"on-click-right": "playerctl next",
|
||||||
|
"on-middle-click": "playerctl previous",
|
||||||
|
"format": " {}",
|
||||||
|
},
|
||||||
"custom/bluetooth": {
|
"custom/bluetooth": {
|
||||||
"exec": "~/.config/waybar/scripts/builder.sh bluetooth_battery",
|
"exec": "~/.config/waybar/scripts/builder.sh bluetooth_battery",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
|
|||||||
@ -14,6 +14,7 @@ window#waybar {
|
|||||||
transition-duration: .5s;
|
transition-duration: .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
@ -21,6 +22,10 @@ window#waybar {
|
|||||||
border-bottom: 2px solid transparent;
|
border-bottom: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background: rgba(255, 255, 255, 0.1);
|
background: rgba(255, 255, 255, 0.1);
|
||||||
@ -38,6 +43,8 @@ window#waybar {
|
|||||||
#cpu,
|
#cpu,
|
||||||
#custom-cpu_temp,
|
#custom-cpu_temp,
|
||||||
#custom-bluetooth,
|
#custom-bluetooth,
|
||||||
|
#custom-media,
|
||||||
|
#custom-scrollmedia,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#custom-pomodoro,
|
#custom-pomodoro,
|
||||||
#custom-language,
|
#custom-language,
|
||||||
@ -56,6 +63,10 @@ window#waybar {
|
|||||||
color: #81C784;
|
color: #81C784;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-media, #custom-scrollmedia {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
#pulseaudio.muted {
|
#pulseaudio.muted {
|
||||||
color: #2a5c45;
|
color: #2a5c45;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,18 @@
|
|||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "h"
|
||||||
|
run = "leave"
|
||||||
|
desc = "Назад (вверх по иерархии)"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "n"
|
||||||
|
run = "arrow next"
|
||||||
|
desc = "Вниз"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "e"
|
||||||
|
run = "arrow prev"
|
||||||
|
desc = "Вверх"
|
||||||
|
|
||||||
[[mgr.append_keymap]]
|
[[mgr.append_keymap]]
|
||||||
on = [ "c", "e" ]
|
on = [ "c", "e" ]
|
||||||
run = "shell -- flipbit x %h"
|
run = "shell -- flipbit x %h"
|
||||||
@ -13,7 +28,7 @@ run = "plugin jump-to-char"
|
|||||||
desc = "Jump to char"
|
desc = "Jump to char"
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
[[mgr.prepend_keymap]]
|
||||||
on = "l"
|
on = "i"
|
||||||
run = "plugin smart-enter"
|
run = "plugin smart-enter"
|
||||||
desc = "Enter the child directory, or open the file"
|
desc = "Enter the child directory, or open the file"
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,3 @@
|
|||||||
[[plugin.deps]]
|
|
||||||
use = "masaki39/git"
|
|
||||||
rev = "2f72da1"
|
|
||||||
hash = "ab9df3b5436af53de798d9d887bdadcd"
|
|
||||||
|
|
||||||
[[plugin.deps]]
|
[[plugin.deps]]
|
||||||
use = "yazi-rs/plugins:mount"
|
use = "yazi-rs/plugins:mount"
|
||||||
rev = "bfdc423"
|
rev = "bfdc423"
|
||||||
@ -23,5 +18,10 @@ use = "yazi-rs/plugins:chmod"
|
|||||||
rev = "bfdc423"
|
rev = "bfdc423"
|
||||||
hash = "5b1c276b75cae91cbbdbe7863f39a540"
|
hash = "5b1c276b75cae91cbbdbe7863f39a540"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:git"
|
||||||
|
rev = "4dc7f1b"
|
||||||
|
hash = "5bb0bfab901d3601c370eafdd66edd31"
|
||||||
|
|
||||||
[flavor]
|
[flavor]
|
||||||
deps = []
|
deps = []
|
||||||
|
|||||||
@ -73,6 +73,7 @@ alias beeptime='beep -D 400 -l 400 -r "$(date +%I)" -f 440 -n -D 1000 -l 0 -n -D
|
|||||||
|
|
||||||
# vim
|
# vim
|
||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
|
alias v='nvim'
|
||||||
alias svi="sudo --preserve-env nvim"
|
alias svi="sudo --preserve-env nvim"
|
||||||
|
|
||||||
# git
|
# git
|
||||||
@ -80,6 +81,7 @@ for al in s d di co col cob ds u ps pst pl pr hs last lastd df amend br fuck sw
|
|||||||
do
|
do
|
||||||
alias "g${al}"="git ${al}"
|
alias "g${al}"="git ${al}"
|
||||||
done
|
done
|
||||||
|
alias gc=gcim
|
||||||
|
|
||||||
|
|
||||||
# net
|
# net
|
||||||
|
|||||||
@ -1,11 +1,19 @@
|
|||||||
# vim: ft=zsh
|
# vim: ft=zsh
|
||||||
|
|
||||||
|
__read_single_char() {
|
||||||
|
local char
|
||||||
|
stty -echo -icanon min 1 time 0 2>/dev/null
|
||||||
|
char=$(dd bs=1 count=1 2>/dev/null)
|
||||||
|
stty echo icanon 2>/dev/null
|
||||||
|
printf "%s" "${char}"
|
||||||
|
}
|
||||||
|
|
||||||
__ask_user() {
|
__ask_user() {
|
||||||
local answer
|
local answer
|
||||||
local question="${1}"
|
local question="${1}"
|
||||||
local default_value="${2}"
|
local default_value="${2}"
|
||||||
printf '%s' "${question} (default=${default_value}): " >&2
|
printf '%s' "${question} (default=${default_value}): " >&2
|
||||||
read -r answer
|
answer="$(__read_single_char)"
|
||||||
|
|
||||||
if [ -z "${answer}" ]; then
|
if [ -z "${answer}" ]; then
|
||||||
answer="${default_value}"
|
answer="${default_value}"
|
||||||
|
|||||||
@ -1,11 +1,9 @@
|
|||||||
|
|
||||||
# vim ft=zsh
|
# vim ft=zsh
|
||||||
|
|
||||||
|
|
||||||
install_if_not_exists() {
|
install_if_not_exists() {
|
||||||
local path="${HOME}/.config/zsh/plugins/${1}"
|
local path="${HOME}/.config/zsh/plugins/${1}"
|
||||||
if [ ! -d "${path}" ]; then
|
if [ ! -d "${path}" ]; then
|
||||||
/usr/bin/git clone "https://github.com/${1}" "${path}"
|
git clone "https://github.com/${1}" "${path}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#command
|
#command
|
||||||
h left-scroll
|
h left-scroll
|
||||||
l right-scroll
|
i right-scroll
|
||||||
^N next-file
|
^N next-file
|
||||||
^P prev-file
|
^P prev-file
|
||||||
|
|||||||
9
home/user/.local/share/applications/bambu-studio.desktop
Normal file
9
home/user/.local/share/applications/bambu-studio.desktop
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Exec=bambu-studio
|
||||||
|
Name=Bambu Studio
|
||||||
|
Type=Application
|
||||||
|
Keywords=3D;printer;slicer;bambu;printing;gcode;manufacturing;принтер;3д;бамбу;ифьиг;
|
||||||
|
Icon=bambu-studio
|
||||||
|
Comment=3D Printing Slicer for Bambu Lab printers
|
||||||
|
GenericName=Slicer
|
||||||
|
Categories=Graphics;3DGraphics;Engineering;
|
||||||
1
home/user/.local/share/icons/bambu-studio.svg
Normal file
1
home/user/.local/share/icons/bambu-studio.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg fill="#00AE42" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bambu Lab</title><path d="M12.662 24V8.959l8.535 3.369V24zm-9.859-.003v-7.521l8.534-3.371-.001 10.892zM2.803 0h8.533l.001 11.672-8.534 3.369zm9.859 0h8.535v10.892l-8.535-3.371z"/></svg>
|
||||||
|
After Width: | Height: | Size: 279 B |
@ -39,7 +39,9 @@ export FZF_DEFAULT_OPTS="\
|
|||||||
ctrl-/:toggle-preview,\
|
ctrl-/:toggle-preview,\
|
||||||
ctrl-a:toggle-all,\
|
ctrl-a:toggle-all,\
|
||||||
ctrl-p:preview-up,\
|
ctrl-p:preview-up,\
|
||||||
ctrl-n:preview-down,\
|
ctrl-l:preview-down,\
|
||||||
|
ctrl-n:down,\
|
||||||
|
ctrl-e:up,\
|
||||||
ctrl-u:clear-query,\
|
ctrl-u:clear-query,\
|
||||||
ctrl-o:toggle,\
|
ctrl-o:toggle,\
|
||||||
ctrl-y:preview-top,\
|
ctrl-y:preview-top,\
|
||||||
@ -47,6 +49,8 @@ ctrl-g:preview-bottom,\
|
|||||||
tab:replace-query\
|
tab:replace-query\
|
||||||
"
|
"
|
||||||
|
|
||||||
|
export GTK_THEME=Adwaita:dark
|
||||||
|
|
||||||
export BROWSERCLI=w3m
|
export BROWSERCLI=w3m
|
||||||
test -z "${BROWSER}" && BROWSER=firefox
|
test -z "${BROWSER}" && BROWSER=firefox
|
||||||
export BROWSER
|
export BROWSER
|
||||||
|
|||||||
3
install-hooks/bambu/pre-install
Executable file
3
install-hooks/bambu/pre-install
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh -eu
|
||||||
|
wget -c -O ~/.local/bin/bambu-studio https://github.com/bambulab/BambuStudio/releases/download/v02.08.02.61/BambuStudio_ubuntu24.04-v02.08.02.61-20260820225108.AppImage
|
||||||
|
chmod +x ~/.local/bin/bambu-studio
|
||||||
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo "pacman -S sway swaybg i3blocks waybar swaylock swayidle wl-clipboard ydotool grim slurp mako wlr-randr rofi jq brightnessctl kanshi wtype"
|
echo "pacman -S sway swaybg i3blocks waybar swaylock swayidle wl-clipboard ydotool grim slurp mako wlr-randr rofi jq brightnessctl kanshi wtype playerctl"
|
||||||
|
echo "yay -S scrollmpris-git"
|
||||||
|
|||||||
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
description = "NixOS configuration with flakes";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
|
||||||
nixosConfigurations.thek4n = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
modules = [
|
|
||||||
./hosts/thek4n/default.nix
|
|
||||||
./hosts/thek4n/home.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# `nixos-rebuild switch --flake .#thek4n`
|
|
||||||
default = self.nixosConfigurations.thek4n;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Использование grub
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.device = "/dev/sda";
|
|
||||||
boot.loader.grub.useOSProber = true;
|
|
||||||
|
|
||||||
networking.hostName = "thek4n";
|
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Moscow";
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
services.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
services.greetd = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
default_session = {
|
|
||||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd sway";
|
|
||||||
user = "greeter";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.user."thek4n" = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "thek4n";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "uucp" "input" "fuse" ];
|
|
||||||
packages = with pkgs; [ ];
|
|
||||||
initialPassword = "changeme";
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
alacritty bat brightnessctl ctags fd ffmpeg fzf glow
|
|
||||||
grim highlight imagemagick jq yq kanshi less lesspipe mako
|
|
||||||
man mpv noto-fonts p7zip poppler resvg ripgrep rofi slurp
|
|
||||||
socat sway swaybg swayidle swaylock tmux tree-sitter ueberzug
|
|
||||||
waybar wget wl-clipboard wlr-randr wtype yazi ydotool zoxide
|
|
||||||
docker httpie exa zsh
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
programs.sway = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc."sway/config" = {
|
|
||||||
text = ''
|
|
||||||
set $mod Mod4
|
|
||||||
set $term alacritty
|
|
||||||
|
|
||||||
bindsym $mod+Return exec $term
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "26.05";
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
todo:
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
|
|
||||||
users.thek4n = { pkgs, ... }: {
|
|
||||||
home.homeDirectory = "/home/thek4n";
|
|
||||||
home.username = "thek4n";
|
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ ];
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "thek4n";
|
|
||||||
userEmail = "thek4n@yandex.ru";
|
|
||||||
extraConfig = {
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
pull.rebase = false;
|
|
||||||
core.editor = "nvim";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
viAlias = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "thek4n";
|
|
||||||
userEmail = "thek4n@yandex.ru";
|
|
||||||
};
|
|
||||||
|
|
||||||
# home.file.".config/nvim/init.lua".source = ./nvim/init.lua;
|
|
||||||
# home.file.".zshrc".source = ./zsh/.zshrc;
|
|
||||||
# home.file.".gitconfig".source = ./git/.gitconfig;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Loading…
x
Reference in New Issue
Block a user