idk anymore
This commit is contained in:
parent
eb1cf0474c
commit
1f264b5207
10 changed files with 49 additions and 27 deletions
Binary file not shown.
|
|
@ -6,6 +6,7 @@ abbr --add ll ll -a
|
||||||
abbr --add adl album-dl.fish
|
abbr --add adl album-dl.fish
|
||||||
abbr --add vv nvim
|
abbr --add vv nvim
|
||||||
abbr --add tr gio trash
|
abbr --add tr gio trash
|
||||||
|
abbr --add --set-cursor tldr curl cheat.sh/%
|
||||||
|
|
||||||
function alacritty
|
function alacritty
|
||||||
command alacritty msg create-window $argv
|
command alacritty msg create-window $argv
|
||||||
|
|
@ -15,18 +16,6 @@ function mvi --description 'Launches mpv with mvi configuration'
|
||||||
mpv --config-dir=$HOME/.config/mvi/ $argv
|
mpv --config-dir=$HOME/.config/mvi/ $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
function open --description 'Opens a file in its default application'
|
|
||||||
argparse h/help -- $argv
|
|
||||||
or return
|
|
||||||
|
|
||||||
if set -ql _flag_help
|
|
||||||
echo "open [-h|--help] [STRING]"
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
|
|
||||||
niri msg action spawn -- xdg-open $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
# BEGIN opam configuration
|
# BEGIN opam configuration
|
||||||
# This is useful if you're using opam as it adds:
|
# This is useful if you're using opam as it adds:
|
||||||
# - the correct directories to the PATH
|
# - the correct directories to the PATH
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ font=Adwaita Sans 10
|
||||||
|
|
||||||
default-timeout=5000
|
default-timeout=5000
|
||||||
|
|
||||||
|
layer=overlay
|
||||||
anchor=top-center
|
anchor=top-center
|
||||||
margin=12
|
margin=12
|
||||||
padding=8
|
padding=8
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ vim.cmd.colorscheme("gruvbox")
|
||||||
-- [[ Set up keymaps ]] See `:h vim.keymap.set()`, `:h mapping`, `:h keycodes`
|
-- [[ Set up keymaps ]] See `:h vim.keymap.set()`, `:h mapping`, `:h keycodes`
|
||||||
|
|
||||||
-- Use <Esc> to exit terminal mode
|
-- Use <Esc> to exit terminal mode
|
||||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
|
vim.keymap.set("t", "<Leader><Esc>", "<C-\\><C-n>")
|
||||||
|
|
||||||
-- Map <A-j>, <A-k>, <A-h>, <A-l> to navigate between windows in any modes
|
-- Map <A-j>, <A-k>, <A-h>, <A-l> to navigate between windows in any modes
|
||||||
vim.keymap.set({ "t", "i" }, "<A-h>", "<C-\\><C-n><C-w>h")
|
vim.keymap.set({ "t", "i" }, "<A-h>", "<C-\\><C-n><C-w>h")
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,10 @@
|
||||||
"rev": "6010e588e9ed14724880f244d7fa3df8f0be3f46",
|
"rev": "6010e588e9ed14724880f244d7fa3df8f0be3f46",
|
||||||
"src": "https://github.com/nvim-mini/mini.diff"
|
"src": "https://github.com/nvim-mini/mini.diff"
|
||||||
},
|
},
|
||||||
|
"mini.files": {
|
||||||
|
"rev": "fafacfecdd6c5a66bb10d173a749f3c098e84498",
|
||||||
|
"src": "https://github.com/nvim-mini/mini.files"
|
||||||
|
},
|
||||||
"mini.hipatterns": {
|
"mini.hipatterns": {
|
||||||
"rev": "add8d8abad602787377ec5d81f6b248605828e0f",
|
"rev": "add8d8abad602787377ec5d81f6b248605828e0f",
|
||||||
"src": "https://github.com/nvim-mini/mini.hipatterns"
|
"src": "https://github.com/nvim-mini/mini.hipatterns"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
top's Config File (Linux processes with windows)
|
top's Config File (Linux processes with windows)
|
||||||
Id:k, Mode_altscr=0, Mode_irixps=1, Delay_time=3.0, Curwin=0
|
Id:k, Mode_altscr=0, Mode_irixps=1, Delay_time=3.0, Curwin=0
|
||||||
Def fieldscur= 75 81 103 105 119 123 129 121 137 111 117 115 139 76 78 82 84 86 88 90
|
Def fieldscur= 75 81 103 105 119 123 129 120 137 111 117 115 139 76 78 82 84 86 88 90
|
||||||
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
|
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
|
||||||
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
|
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
|
||||||
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
|
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
|
||||||
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
|
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
|
||||||
winflags=195348, sortindx=18, maxtasks=0, graph_cpus=1, graph_mems=1, double_up=0, combine_cpus=0, core_types=0
|
winflags=457524, sortindx=14, maxtasks=0, graph_cpus=1, graph_mems=1, double_up=0, combine_cpus=0, core_types=0
|
||||||
summclr=2, msgsclr=11, headclr=15, taskclr=7
|
summclr=2, msgsclr=11, headclr=15, taskclr=7
|
||||||
Job fieldscur= 75 77 115 111 117 80 103 105 137 119 123 128 120 79 139 82 84 86 88 90
|
Job fieldscur= 75 77 115 111 117 80 103 105 137 119 123 128 120 79 139 82 84 86 88 90
|
||||||
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
|
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ c.fileselect.folder.command = ['alacritty', '-e', 'ranger', '--choosedir={}']
|
||||||
c.fileselect.multiple_files.command = ['alacritty', '-e', 'ranger', '--choosefiles={}']
|
c.fileselect.multiple_files.command = ['alacritty', '-e', 'ranger', '--choosefiles={}']
|
||||||
c.fileselect.single_file.command = ['alacritty', '-e', 'ranger', '--choosefile={}']
|
c.fileselect.single_file.command = ['alacritty', '-e', 'ranger', '--choosefile={}']
|
||||||
|
|
||||||
|
c.colors.webpage.preferred_color_scheme = 'dark'
|
||||||
|
|
||||||
config.bind('<Ctrl-v>', 'spawn mpv {url}')
|
config.bind('<Ctrl-v>', 'spawn mpv {url}')
|
||||||
|
|
||||||
c.content.blocking.enabled = True
|
c.content.blocking.enabled = True
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Alacritty Daemon
|
Description=Alacritty Daemon
|
||||||
Before=graphical-session.target
|
After=graphical-session.target
|
||||||
After=graphical-session-pre.target
|
|
||||||
PartOf=graphical-session.target
|
PartOf=graphical-session.target
|
||||||
StartLimitIntervalSec=30
|
|
||||||
StartLimitBurst=3
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=alacritty --daemon --socket %t/alacritty.sock
|
ExecStart=alacritty --daemon
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=graphical-session-pre.target
|
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@
|
||||||
"format-ethernet": "",
|
"format-ethernet": "",
|
||||||
"format-disconnected": "", //An empty format will hide the module.
|
"format-disconnected": "", //An empty format will hide the module.
|
||||||
"tooltip-format": "{ifname}",
|
"tooltip-format": "{ifname}",
|
||||||
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
|
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
|
||||||
"tooltip-format-ethernet": "{ifname} ",
|
"tooltip-format-ethernet": " {ifname}",
|
||||||
"tooltip-format-disconnected": "Disconnected",
|
"tooltip-format-disconnected": "Disconnected",
|
||||||
"min-length": 2
|
"min-length": 2
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,34 @@ function audio_sink
|
||||||
wpctl set-default $ids[$input]
|
wpctl set-default $ids[$input]
|
||||||
end
|
end
|
||||||
|
|
||||||
set options " Open Location" " Select Audio Source" " Select Audio Sink"
|
function network_connection
|
||||||
|
set options (nmcli --terse --mode multiline connection show | grep "NAME:" | string replace "NAME:" "" | string split "\n")
|
||||||
|
|
||||||
|
set input (menu $options)
|
||||||
|
|
||||||
|
notify-send "Connect to network $input" (nmcli connection up $input)
|
||||||
|
end
|
||||||
|
|
||||||
|
function bluetooth_connection
|
||||||
|
set dump (bluetoothctl devices | string replace "Device " "" | string split -m 1 " ")
|
||||||
|
|
||||||
|
set ids
|
||||||
|
set names
|
||||||
|
|
||||||
|
for i in (seq (count $dump))
|
||||||
|
if test (math $i % 2) -eq 0
|
||||||
|
set -a names $dump[$i]
|
||||||
|
else
|
||||||
|
set -a ids $dump[$i]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
set input (math (menu --index $names) + 1)
|
||||||
|
|
||||||
|
notify-send "Connect to bluetooth device $names[$input]" (bluetoothctl connect $ids[$input] | string collect)
|
||||||
|
end
|
||||||
|
|
||||||
|
set options " Open Location" " Select Audio Source" " Select Audio Sink" " Select Bluetooth" " Select Network"
|
||||||
set input (menu $options)
|
set input (menu $options)
|
||||||
|
|
||||||
switch $input
|
switch $input
|
||||||
|
|
@ -78,4 +105,10 @@ switch $input
|
||||||
|
|
||||||
case $options[3]
|
case $options[3]
|
||||||
audio_sink
|
audio_sink
|
||||||
|
|
||||||
|
case $options[4]
|
||||||
|
bluetooth_connection
|
||||||
|
|
||||||
|
case $options[5]
|
||||||
|
network_connection
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue