new configs
This commit is contained in:
parent
f3ab049a81
commit
4c81c0ca4a
10 changed files with 107 additions and 14 deletions
|
|
@ -70,11 +70,11 @@ if status is-interactive
|
||||||
set fish_pager_color_selected_prefix black --bold --underline
|
set fish_pager_color_selected_prefix black --bold --underline
|
||||||
set fish_pager_color_secondary_completion
|
set fish_pager_color_secondary_completion
|
||||||
|
|
||||||
if test $XDG_CURRENT_DESKTOP = "niri"
|
# if test $XDG_CURRENT_DESKTOP = "niri"
|
||||||
dconf write /org/gnome/desktop/wm/preferences/button-layout "'appmenu'"
|
# dconf write /org/gnome/desktop/wm/preferences/button-layout "'appmenu'"
|
||||||
else
|
# else
|
||||||
dconf reset /org/gnome/desktop/wm/preferences/button-layout
|
# dconf reset /org/gnome/desktop/wm/preferences/button-layout
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
function menu --description 'Opens a menu of a list of Strings and writes the result to stdout'
|
function menu --description 'Opens a menu of a list of Strings and writes the result to stdout'
|
||||||
argparse h/help p/prompt=? index -- $argv
|
argparse h/help p/prompt=? mesg=? placeholder=? index -- $argv
|
||||||
or return
|
or return
|
||||||
|
|
||||||
if set -ql _flag_help
|
if set -ql _flag_help
|
||||||
|
|
@ -17,6 +17,10 @@ function menu --description 'Opens a menu of a list of Strings and writes the re
|
||||||
set -a fuzzel_args "--placeholder=$_flag_placeholder"
|
set -a fuzzel_args "--placeholder=$_flag_placeholder"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if set -ql _flag_mesg
|
||||||
|
set -a fuzzel_args "--mesg=$_flag_mesg"
|
||||||
|
end
|
||||||
|
|
||||||
if set -ql _flag_index
|
if set -ql _flag_index
|
||||||
set -a fuzzel_args "--index"
|
set -a fuzzel_args "--index"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ output "eDP-1" {
|
||||||
position x=320 y=1441
|
position x=320 y=1441
|
||||||
}
|
}
|
||||||
|
|
||||||
output "HDMI-A-1" {
|
output "ViewSonic Corporation VX2758A-2K XLK245220057" {
|
||||||
position x=0 y=0
|
position x=0 y=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -297,7 +297,6 @@ hotkey-overlay {
|
||||||
// This option will also fix border/focus ring drawing behind some semitransparent windows.
|
// This option will also fix border/focus ring drawing behind some semitransparent windows.
|
||||||
// After enabling or disabling this, you need to restart the apps for this to take effect.
|
// After enabling or disabling this, you need to restart the apps for this to take effect.
|
||||||
prefer-no-csd
|
prefer-no-csd
|
||||||
|
|
||||||
// You can change the path where screenshots are saved.
|
// You can change the path where screenshots are saved.
|
||||||
// A ~ at the front will be expanded to the home directory.
|
// A ~ at the front will be expanded to the home directory.
|
||||||
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
vim.treesitter.start()
|
vim.treesitter.start()
|
||||||
|
|
||||||
|
vim.opt.spelllang = "de"
|
||||||
|
vim.opt.spell = true
|
||||||
|
|
||||||
-- vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
-- vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||||
-- vim.wo[0][0].foldmethod = 'expr'
|
-- vim.wo[0][0].foldmethod = 'expr'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
vim.o.guifont = "Adwaita Mono:h12"
|
vim.o.guifont = "Adwaita Mono:h12"
|
||||||
vim.g.neovide_cursor_animation_length = 0.04
|
|
||||||
-- vim.g.neovide_cursor_trail_size = 0.1
|
|
||||||
|
|
||||||
-- Disable mouse input
|
-- Disable mouse input
|
||||||
vim.o.mouse = ""
|
vim.o.mouse = ""
|
||||||
|
|
@ -138,7 +136,6 @@ vim.api.nvim_create_autocmd('FileType', {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
vim.pack.add({ "https://github.com/mason-org/mason.nvim" })
|
vim.pack.add({ "https://github.com/mason-org/mason.nvim" })
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"modules-left": ["niri/workspaces"],
|
"modules-left": ["niri/workspaces"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": ["bluetooth", "network", "wireplumber#source", "wireplumber#sink","idle_inhibitor", "battery"],
|
"modules-right": ["bluetooth", "network", "wireplumber#source", "wireplumber#sink", "mpd", "idle_inhibitor", "battery"],
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
|
|
@ -49,7 +49,9 @@
|
||||||
"tooltip-format": "{node_name} ({volume}%)",
|
"tooltip-format": "{node_name} ({volume}%)",
|
||||||
"on-click-right": "wpsinkmenu.fish",
|
"on-click-right": "wpsinkmenu.fish",
|
||||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||||
"scroll-step": 5
|
"scroll-step": 5,
|
||||||
|
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- --limit 1.5 && volumenotify.fish",
|
||||||
|
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.5 && volumenotify.fish"
|
||||||
},
|
},
|
||||||
|
|
||||||
"wireplumber#source": {
|
"wireplumber#source": {
|
||||||
|
|
@ -62,6 +64,39 @@
|
||||||
"scroll-step": 5
|
"scroll-step": 5
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"mpd": {
|
||||||
|
"format": "{stateIcon}",
|
||||||
|
"format-stopped": "",
|
||||||
|
"format-disconnected": "",
|
||||||
|
"tooltip-format": "{artist} - {album} - {title}\n{elapsedTime:%M:%S}/{totalTime:%M:%S}\n{consumeIcon} {randomIcon} {repeatIcon} {singleIcon}",
|
||||||
|
"state-icons": {
|
||||||
|
"playing": "",
|
||||||
|
"paused": ""
|
||||||
|
},
|
||||||
|
"consume-icons": {
|
||||||
|
"on": "",
|
||||||
|
"off": ""
|
||||||
|
},
|
||||||
|
"random-icons": {
|
||||||
|
"on": "",
|
||||||
|
"off": ""
|
||||||
|
},
|
||||||
|
"repeat-icons": {
|
||||||
|
"on": "",
|
||||||
|
"off": ""
|
||||||
|
},
|
||||||
|
"single-icons": {
|
||||||
|
"on": "",
|
||||||
|
"off": ""
|
||||||
|
},
|
||||||
|
"on-click": "mpc toggle",
|
||||||
|
"on-click-middle": "mpc stop",
|
||||||
|
"on-click-right": "mpdmenu.fish",
|
||||||
|
"on-scroll-down": "mpc volume -5 && mpdvolumenotify.fish",
|
||||||
|
"on-scroll-up": "mpc volume +5 && mpdvolumenotify.fish"
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"states": {
|
"states": {
|
||||||
|
|
|
||||||
43
.local/scripts/mpdmenu.fish
Executable file
43
.local/scripts/mpdmenu.fish
Executable file
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
set message
|
||||||
|
|
||||||
|
if test (mpc status %consume%) = "on"
|
||||||
|
set -a message ""
|
||||||
|
else
|
||||||
|
set -a message ""
|
||||||
|
end
|
||||||
|
|
||||||
|
if test (mpc status %random%) = "on"
|
||||||
|
set -a message ""
|
||||||
|
else
|
||||||
|
set -a message ""
|
||||||
|
end
|
||||||
|
|
||||||
|
if test (mpc status %repeat%) = "on"
|
||||||
|
set -a message ""
|
||||||
|
else
|
||||||
|
set -a message ""
|
||||||
|
end
|
||||||
|
|
||||||
|
if test (mpc status %single%) = "on"
|
||||||
|
set -a message ""
|
||||||
|
else
|
||||||
|
set -a message ""
|
||||||
|
end
|
||||||
|
|
||||||
|
set options " Play/Pause" " Stop" " Next" " Previous" " Consume" " Random" " Repeat" " Single"
|
||||||
|
|
||||||
|
set input (menu --mesg="$(mpc current --format "%artist% - %album% - %title%")
|
||||||
|
$(string join -- ' ' $message)" $options)
|
||||||
|
|
||||||
|
switch $input
|
||||||
|
case $options[1]
|
||||||
|
mpc consume
|
||||||
|
case $options[2]
|
||||||
|
mpc random
|
||||||
|
case $options[3]
|
||||||
|
mpc repeat
|
||||||
|
case $options[4]
|
||||||
|
mpc single
|
||||||
|
end
|
||||||
9
.local/scripts/mpdvolumenotify.fish
Executable file
9
.local/scripts/mpdvolumenotify.fish
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
set volume (mpc status "%volume%" | string trim --chars " %")
|
||||||
|
|
||||||
|
if test $volume = "-1"
|
||||||
|
set volume "0"
|
||||||
|
end
|
||||||
|
|
||||||
|
notify-send -c 'status' -h int:value:$volume "MPD Volume" "$volume%"
|
||||||
2
.local/scripts/reset-buttom-layout.sh
Executable file
2
.local/scripts/reset-buttom-layout.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#! /usr/bin/env sh
|
||||||
|
dconf reset /org/gnome/desktop/wm/preferences/button-layout
|
||||||
1
.local/share/fonts/.uuid
Normal file
1
.local/share/fonts/.uuid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
b5ea300d-161f-46d0-84be-1a410ed8f894
|
||||||
Loading…
Add table
Add a link
Reference in a new issue