Compare commits
8 Commits
macbook
...
dfcdcec184
| Author | SHA1 | Date | |
|---|---|---|---|
| dfcdcec184 | |||
| ab7ec26b22 | |||
| f601c02cad | |||
| c15f2b2dae | |||
| 273941e2d7 | |||
| cbe5675693 | |||
| adfb29b719 | |||
| 38db689511 |
@ -117,7 +117,7 @@
|
|||||||
#slang=en
|
#slang=en
|
||||||
|
|
||||||
# Play Finnish audio if available, fall back to English otherwise.
|
# Play Finnish audio if available, fall back to English otherwise.
|
||||||
#alang=fi,en
|
alang=en
|
||||||
|
|
||||||
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
||||||
# If the file seems to be valid UTF-8, prefer UTF-8.
|
# If the file seems to be valid UTF-8, prefer UTF-8.
|
||||||
@ -142,3 +142,5 @@
|
|||||||
--sub-auto=all
|
--sub-auto=all
|
||||||
|
|
||||||
--sub-file-paths=sub:subtitles
|
--sub-file-paths=sub:subtitles
|
||||||
|
|
||||||
|
sub-scale=1.5
|
||||||
|
|||||||
@ -39,3 +39,5 @@ miniflux-url "https://miniflux.woopwoopserver.com/"
|
|||||||
|
|
||||||
miniflux-login "woopwoop"
|
miniflux-login "woopwoop"
|
||||||
miniflux-passwordeval "pass show miniflux"
|
miniflux-passwordeval "pass show miniflux"
|
||||||
|
|
||||||
|
reload-threads 5
|
||||||
|
|||||||
@ -3,9 +3,11 @@ return {
|
|||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
branch = 'main',
|
||||||
-- init = function(plugin)
|
-- init = function(plugin)
|
||||||
-- require("nvim-treesitter")
|
-- require("nvim-treesitter")
|
||||||
-- end,
|
-- end,
|
||||||
|
-- TODO: old options format, need to reconfigure
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = { "python", "rust", "javascript" }, -- one of "all" or a list of languages
|
ensure_installed = { "python", "rust", "javascript" }, -- one of "all" or a list of languages
|
||||||
ignore_install = { "phpdoc", "comment", "rst" }, -- List of parsers to ignore installing
|
ignore_install = { "phpdoc", "comment", "rst" }, -- List of parsers to ignore installing
|
||||||
@ -34,8 +36,13 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function (_, opts)
|
config = function(_, opts)
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
-- enable treesitter highlighting
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
callback = function(args)
|
||||||
|
pcall(vim.treesitter.start, args.buf)
|
||||||
|
end,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
# shortcut bindings to app and directions
|
# shortcut bindings to app and directions
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $term alacritty
|
set $term alacritty
|
||||||
set $menu tofi-drun | xargs swaymsg exec --
|
# set $menu tofi-drun | xargs swaymsg exec --
|
||||||
|
# set $menu tofi_prefix_hack && tofi-drun | xargs swaymsg exec --
|
||||||
|
set $menu j4-dmenu-desktop --i3-ipc --dmenu=bemenu
|
||||||
|
|
||||||
set $left h
|
set $left h
|
||||||
set $down j
|
set $down j
|
||||||
@ -25,10 +27,14 @@ exec ~/Scripts/ntfy/ntfy_subscribe.sh &
|
|||||||
xwayland force
|
xwayland force
|
||||||
exec xrandr --output DP-2 --primary
|
exec xrandr --output DP-2 --primary
|
||||||
|
|
||||||
|
# set swaysock env to make swaymsg commands accessible for systemd
|
||||||
|
exec --no-startup-id systemctl --user set-environment SWAYSOCK=$SWAYSOCK
|
||||||
|
exec --no-startup-id systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS
|
||||||
|
|
||||||
bar {
|
bar {
|
||||||
id 1
|
id 1
|
||||||
mode hide
|
# TODO enable after bemenu focus bug fix
|
||||||
|
# mode hide
|
||||||
tray_output none
|
tray_output none
|
||||||
font Hack Nerd Font 9
|
font Hack Nerd Font 9
|
||||||
status_command "~/Scripts/sway/bar.sh"
|
status_command "~/Scripts/sway/bar.sh"
|
||||||
@ -43,13 +49,14 @@ bar {
|
|||||||
# you can get the names of your outputs by running: swaymsg -t get_outputs
|
# you can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
output DP-2 position 0 0 mode 2560x1440@144Hz
|
output DP-2 position 0 0 mode 2560x1440@144Hz
|
||||||
output HDMI-A-1 position 2560 360 mode 1920x1080@60Hz
|
output HDMI-A-1 position 2560 360 mode 1920x1080@60Hz
|
||||||
|
output HDMI-A-2 position 4480 360 mode 1920x1080@60Hz disable
|
||||||
# output * bg /home/nikita/Pictures/wallpapers/nord-street.png fill
|
# output * bg /home/nikita/Pictures/wallpapers/nord-street.png fill
|
||||||
|
|
||||||
|
|
||||||
# input configuration
|
# input configuration
|
||||||
# you can get the names of your inputs by running: swaymsg -t get_inputs
|
# you can get the names of your inputs by running: swaymsg -t get_inputs
|
||||||
# read `man 5 sway-input` for more information about this section.
|
# read `man 5 sway-input` for more information about this section.
|
||||||
input type:pointer {
|
input "1133:16505:Logitech_G_Pro" {
|
||||||
pointer_accel 0
|
pointer_accel 0
|
||||||
accel_profile "flat"
|
accel_profile "flat"
|
||||||
}
|
}
|
||||||
@ -83,8 +90,19 @@ bindsym --to-code $mod+minus exec "swaymsg bar 1 mode toggle"
|
|||||||
# open windows with id "in_scratchpad" in scratchpad
|
# open windows with id "in_scratchpad" in scratchpad
|
||||||
for_window [app_id="in_scratchpad"] move container to scratchpad, focus
|
for_window [app_id="in_scratchpad"] move container to scratchpad, focus
|
||||||
|
|
||||||
# # open apps in specified workspaces
|
|
||||||
assign [class="steam"] workspace 15
|
# for_window [title="Steam Big Picture Mode" class="steam"] exec "/home/nikita/Scripts/sway/enable_tv_gaming_mode.sh"
|
||||||
|
|
||||||
|
# assign [class="steam" title="^(?!.*Steam Big Picture Mode).*"] workspace 15
|
||||||
|
# for_window [class="steam" title="^(?!.*Steam Big Picture Mode).*"] exec "/home/nikita/Scripts/sway/disable_tv_gaming_mode.sh"
|
||||||
|
|
||||||
|
|
||||||
|
# dont idle screen when any app in fullscreen is open
|
||||||
|
for_window [shell=".*"] inhibit_idle fullscreen
|
||||||
|
# dont idle screen when any steam game is visible
|
||||||
|
for_window [class="steam_app_.*"] inhibit_idle visible
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
assign [app_id="DBeaver"] workspace 22
|
assign [app_id="DBeaver"] workspace 22
|
||||||
assign [class="jetbrains-datagrip"] workspace 23
|
assign [class="jetbrains-datagrip"] workspace 23
|
||||||
@ -92,7 +110,8 @@ assign [app_id="taxsee.im.desktop*"] workspace 24
|
|||||||
|
|
||||||
assign [app_id="Element"] workspace number 25
|
assign [app_id="Element"] workspace number 25
|
||||||
assign [class="Element"] workspace number 25
|
assign [class="Element"] workspace number 25
|
||||||
assign [app_id="librewolf"] workspace number 12
|
|
||||||
|
exec ~/Scripts/sway/browser_workspace_assign.sh
|
||||||
|
|
||||||
# powermenu
|
# powermenu
|
||||||
bindsym --to-code $mod+SHIFT+BackSpace exec ~/Scripts/tofi/powermenu.sh
|
bindsym --to-code $mod+SHIFT+BackSpace exec ~/Scripts/tofi/powermenu.sh
|
||||||
@ -100,6 +119,8 @@ bindsym --to-code $mod+SHIFT+BackSpace exec ~/Scripts/tofi/powermenu.sh
|
|||||||
# vpn selector
|
# vpn selector
|
||||||
bindsym --to-code $mod+SHIFT+v exec ~/Scripts/tofi/select_vpn.sh
|
bindsym --to-code $mod+SHIFT+v exec ~/Scripts/tofi/select_vpn.sh
|
||||||
|
|
||||||
|
bindsym --to-code $mod+SHIFT+g exec ~/Scripts/tofi/select_desktop_mode.sh
|
||||||
|
|
||||||
# start search in browser
|
# start search in browser
|
||||||
bindsym --to-code $mod+slash exec ~/Scripts/general/bin/browser_search_web
|
bindsym --to-code $mod+slash exec ~/Scripts/general/bin/browser_search_web
|
||||||
|
|
||||||
@ -150,6 +171,16 @@ workspace 27 output HDMI-A-1
|
|||||||
workspace 28 output HDMI-A-1
|
workspace 28 output HDMI-A-1
|
||||||
workspace 29 output HDMI-A-1
|
workspace 29 output HDMI-A-1
|
||||||
|
|
||||||
|
workspace 31 output HDMI-A-2
|
||||||
|
workspace 32 output HDMI-A-2
|
||||||
|
workspace 33 output HDMI-A-2
|
||||||
|
workspace 34 output HDMI-A-2
|
||||||
|
workspace 35 output HDMI-A-2
|
||||||
|
workspace 36 output HDMI-A-2
|
||||||
|
workspace 37 output HDMI-A-2
|
||||||
|
workspace 38 output HDMI-A-2
|
||||||
|
workspace 39 output HDMI-A-2
|
||||||
|
|
||||||
# move mouse to focused window/workspace
|
# move mouse to focused window/workspace
|
||||||
mouse_warping output
|
mouse_warping output
|
||||||
focus_wrapping workspace
|
focus_wrapping workspace
|
||||||
@ -205,6 +236,17 @@ bindsym --to-code --no-warn $mod+Alt+7 workspace 27
|
|||||||
bindsym --to-code --no-warn $mod+Alt+8 workspace 28
|
bindsym --to-code --no-warn $mod+Alt+8 workspace 28
|
||||||
bindsym --to-code --no-warn $mod+Alt+9 workspace 29
|
bindsym --to-code --no-warn $mod+Alt+9 workspace 29
|
||||||
|
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+1 workspace 31
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+2 workspace 32
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+3 workspace 33
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+4 workspace 34
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+5 workspace 35
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+6 workspace 36
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+7 workspace 37
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+8 workspace 38
|
||||||
|
bindsym --to-code --no-warn $mod+Ctrl+9 workspace 39
|
||||||
|
|
||||||
|
|
||||||
# does not work,
|
# does not work,
|
||||||
# bindsym --to-code --no-warn $mod+Shift_R+1 workspace 21
|
# bindsym --to-code --no-warn $mod+Shift_R+1 workspace 21
|
||||||
# bindsym --to-code --no-warn $mod+Shift_R+2 workspace 22
|
# bindsym --to-code --no-warn $mod+Shift_R+2 workspace 22
|
||||||
@ -253,11 +295,22 @@ bindsym --to-code $mod+Shift+bracketleft exec playerctl -p mpd volume 0.05-
|
|||||||
bindsym --to-code $mod+Shift+bracketright exec playerctl -p mpd volume 0.05+
|
bindsym --to-code $mod+Shift+bracketright exec playerctl -p mpd volume 0.05+
|
||||||
bindsym --to-code $mod+Shift+y exec playerctl -p mpd shuffle Toggle
|
bindsym --to-code $mod+Shift+y exec playerctl -p mpd shuffle Toggle
|
||||||
|
|
||||||
|
set $sink_pc "alsa_output.pci-0000_29_00.0.analog-stereo"
|
||||||
|
set $sink_tv "alsa_output.pci-0000_2f_00.1.hdmi-stereo-extra3"
|
||||||
|
set $sink_combined "combined_output"
|
||||||
|
|
||||||
# special keys to adjust volume via pulseaudio
|
# special keys to adjust volume via pulseaudio
|
||||||
bindsym --to-code --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
|
bindsym --to-code --locked XF86AudioMute exec pactl set-sink-mute $sink_pc toggle
|
||||||
bindsym --to-code --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
|
|
||||||
bindsym --to-code --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
|
bindsym --to-code --locked XF86AudioLowerVolume exec pactl set-sink-volume $sink_pc -5%
|
||||||
bindsym --to-code --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
|
bindsym --to-code --locked XF86AudioRaiseVolume exec pactl set-sink-volume $sink_pc +5%
|
||||||
|
|
||||||
|
bindsym --to-code --locked $mod+XF86AudioLowerVolume exec pactl set-sink-volume $sink_tv -2.5%
|
||||||
|
bindsym --to-code --locked $mod+XF86AudioRaiseVolume exec pactl set-sink-volume $sink_tv +2.5%
|
||||||
|
|
||||||
|
bindsym --to-code --locked $mod+XF86AudioMute exec pactl set-sink-mute $sink_tv toggle
|
||||||
|
|
||||||
|
bindsym --to-code --locked XF86AudioMicMute exec pactl set-source-mute $sink_pc toggle
|
||||||
bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause
|
bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause
|
||||||
bindsym --to-code --locked XF86AudioPause exec playerctl play-pause
|
bindsym --to-code --locked XF86AudioPause exec playerctl play-pause
|
||||||
bindsym --to-code --locked XF86AudioNext exec playerctl next
|
bindsym --to-code --locked XF86AudioNext exec playerctl next
|
||||||
|
|||||||
@ -36,14 +36,21 @@
|
|||||||
"peer-port-random-on-start": false,
|
"peer-port-random-on-start": false,
|
||||||
"peer-socket-tos": "le",
|
"peer-socket-tos": "le",
|
||||||
"pex-enabled": true,
|
"pex-enabled": true,
|
||||||
|
"pidfile": "",
|
||||||
"port-forwarding-enabled": true,
|
"port-forwarding-enabled": true,
|
||||||
"preallocation": 1,
|
"preallocation": 1,
|
||||||
|
"preferred_transports": [
|
||||||
|
"utp",
|
||||||
|
"tcp"
|
||||||
|
],
|
||||||
"prefetch-enabled": true,
|
"prefetch-enabled": true,
|
||||||
|
"proxy_url": null,
|
||||||
"queue-stalled-enabled": true,
|
"queue-stalled-enabled": true,
|
||||||
"queue-stalled-minutes": 30,
|
"queue-stalled-minutes": 30,
|
||||||
"ratio-limit": 2,
|
"ratio-limit": 2.0,
|
||||||
"ratio-limit-enabled": false,
|
"ratio-limit-enabled": false,
|
||||||
"rename-partial-files": false,
|
"rename-partial-files": false,
|
||||||
|
"reqq": 2000,
|
||||||
"rpc-authentication-required": false,
|
"rpc-authentication-required": false,
|
||||||
"rpc-bind-address": "0.0.0.0",
|
"rpc-bind-address": "0.0.0.0",
|
||||||
"rpc-enabled": true,
|
"rpc-enabled": true,
|
||||||
@ -65,15 +72,22 @@
|
|||||||
"script-torrent-done-seeding-filename": "",
|
"script-torrent-done-seeding-filename": "",
|
||||||
"seed-queue-enabled": false,
|
"seed-queue-enabled": false,
|
||||||
"seed-queue-size": 10,
|
"seed-queue-size": 10,
|
||||||
|
"sequential_download": false,
|
||||||
|
"sleep-per-seconds-during-verify": 100,
|
||||||
"speed-limit-down": 100,
|
"speed-limit-down": 100,
|
||||||
"speed-limit-down-enabled": false,
|
"speed-limit-down-enabled": false,
|
||||||
"speed-limit-up": 100,
|
"speed-limit-up": 100,
|
||||||
"speed-limit-up-enabled": false,
|
"speed-limit-up-enabled": false,
|
||||||
"start-added-torrents": true,
|
"start-added-torrents": true,
|
||||||
|
"start_paused": false,
|
||||||
"tcp-enabled": true,
|
"tcp-enabled": true,
|
||||||
"torrent-added-verify-mode": "fast",
|
"torrent-added-verify-mode": "fast",
|
||||||
|
"torrent_complete_verify_enabled": false,
|
||||||
"trash-original-torrent-files": false,
|
"trash-original-torrent-files": false,
|
||||||
"umask": "022",
|
"umask": "022",
|
||||||
"upload-slots-per-torrent": 8,
|
"upload-slots-per-torrent": 8,
|
||||||
"utp-enabled": true
|
"utp-enabled": true,
|
||||||
|
"watch-dir": "",
|
||||||
|
"watch-dir-enabled": false,
|
||||||
|
"watch-dir-force-generic": false
|
||||||
}
|
}
|
||||||
@ -8,6 +8,9 @@ export XDG_SESSION_TYPE=wayland
|
|||||||
export HOMEBREW_NO_AUTO_UPDATE=true
|
export HOMEBREW_NO_AUTO_UPDATE=true
|
||||||
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
||||||
|
|
||||||
|
export BEMENU_SCALE='1.1'
|
||||||
|
export BEMENU_OPTS='--tf #7bc6e2 --hf #7bc6e2 --fn "Input Mono" 12 --hp 8 --ignorecase --single-instance --wrap'
|
||||||
|
|
||||||
if command -v dbus-update-activation-environment >/dev/null; then
|
if command -v dbus-update-activation-environment >/dev/null; then
|
||||||
dbus-update-activation-environment XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
|
dbus-update-activation-environment XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
|
||||||
fi
|
fi
|
||||||
|
|||||||
2
.zshrc
2
.zshrc
@ -22,7 +22,7 @@ bindkey '^j' down-line-or-history
|
|||||||
alias v="nvim"
|
alias v="nvim"
|
||||||
alias ta='tmux at || tmux'
|
alias ta='tmux at || tmux'
|
||||||
alias ls="ls --color"
|
alias ls="ls --color"
|
||||||
alias homeaudio="ncmpcpp -h 192.168.0.100"
|
alias homeaudio="ncmpcpp -h 192.168.1.100"
|
||||||
alias lg="lazygit"
|
alias lg="lazygit"
|
||||||
alias acpoet='source $( poetry env list --full-path | grep Activated | cut -d" " -f1 )/bin/activate'
|
alias acpoet='source $( poetry env list --full-path | grep Activated | cut -d" " -f1 )/bin/activate'
|
||||||
alias rutracker='RUTRACKER_USERNAME=$(pass show rutracker | grep -oP "username:\K.*") RUTRACKER_PASSWORD=$(pass show rutracker | head -n 1) rust_rutracker_cli'
|
alias rutracker='RUTRACKER_USERNAME=$(pass show rutracker | grep -oP "username:\K.*") RUTRACKER_PASSWORD=$(pass show rutracker | head -n 1) rust_rutracker_cli'
|
||||||
|
|||||||
Reference in New Issue
Block a user